Comments (3)
@edolstra I would be quite curious if you had thoughts around the hostname problem above and if that impacts our discussion about this, since it seems like we can't offer full isolation anyways (with default settings).
from nix-installer.
Noting Docker seems to work fine with some relatively straighforward patches:
However podman seems to lack some permissions:
Dockerfile:
FROM ubuntu
RUN apt update -y
RUN apt install curl systemd -y
COPY nix-installer /nix-installer
diff --git a/src/action/common/configure_nix_daemon_service.rs b/src/action/common/configure_nix_daemon_service.rs
index 8fc418a..31969d9 100644
--- a/src/action/common/configure_nix_daemon_service.rs
+++ b/src/action/common/configure_nix_daemon_service.rs
@@ -33,11 +33,11 @@ impl ConfigureNixDaemonService {
}
| OperatingSystem::Darwin => (),
_ => {
- if !Path::new("/run/systemd/system").exists() {
- return Err(ActionError::Custom(Box::new(
- ConfigureNixDaemonServiceError::InitNotSupported,
- )));
- }
+ // if !Path::new("/run/systemd/system").exists() {
+ // return Err(ActionError::Custom(Box::new(
+ // ConfigureNixDaemonServiceError::InitNotSupported,
+ // )));
+ // }
},
};
@@ -142,24 +142,24 @@ impl Action for ConfigureNixDaemonService {
.await
.map_err(ActionError::Command)?;
- execute_command(
- Command::new("systemctl")
:...skipping...
diff --git a/src/action/common/configure_nix_daemon_service.rs b/src/action/common/configure_nix_daemon_service.rs
index 8fc418a..31969d9 100644
--- a/src/action/common/configure_nix_daemon_service.rs
+++ b/src/action/common/configure_nix_daemon_service.rs
@@ -33,11 +33,11 @@ impl ConfigureNixDaemonService {
}
| OperatingSystem::Darwin => (),
_ => {
- if !Path::new("/run/systemd/system").exists() {
- return Err(ActionError::Custom(Box::new(
- ConfigureNixDaemonServiceError::InitNotSupported,
- )));
- }
+ // if !Path::new("/run/systemd/system").exists() {
+ // return Err(ActionError::Custom(Box::new(
+ // ConfigureNixDaemonServiceError::InitNotSupported,
+ // )));
+ // }
},
};
@@ -142,24 +142,24 @@ impl Action for ConfigureNixDaemonService {
.await
.map_err(ActionError::Command)?;
- execute_command(
- Command::new("systemctl")
- .process_group(0)
- .arg("daemon-reload")
- .stdin(std::process::Stdio::null()),
- )
- .await
- .map_err(ActionError::Command)?;
-
- execute_command(
- Command::new("systemctl")
- .process_group(0)
- .arg("enable")
- .arg("--now")
- .arg(SOCKET_SRC),
- )
- .await
- .map_err(ActionError::Command)?;
+ // execute_command(
+ // Command::new("systemctl")
+ // .process_group(0)
+ // .arg("daemon-reload")
+ // .stdin(std::process::Stdio::null()),
+ // )
+ // .await
+ // .map_err(ActionError::Command)?;
+
+ // execute_command(
+ // Command::new("systemctl")
+ // .process_group(0)
+ // .arg("enable")
+ // .arg("--now")
+ // .arg(SOCKET_SRC),
+ // )
+ // .await
+ // .map_err(ActionError::Command)?;
},
};
from nix-installer.
In #196 we're testing auto-uid allocation which may impact the final outcome of this.
from nix-installer.
Related Issues (20)
- <autogenerated-issue> HOT 2
- nix-installer hangs on testing nix install via zsh
- Uninstall not possible HOT 4
- Fails to install in OrbStack HOT 2
- ssl cert file behavior document HOT 2
- nix installer on alpine linux(userland) HOT 1
- The keychain has an existing password for a non-existing "Nix Store" volume HOT 3
- Could not find service "org.nixos.darwin-store" in domain for system HOT 2
- nix-daemon not found when systemd tries to start nix-daemon.service
- ARMv6 support?
- "No such file or directory" for "mount -d" when installing nix
- nix: not found on root user PATH using sudo after linux multiuser install HOT 1
- <autogenerated-issue>
- Multiple nix entries in PATH in bash HOT 1
- Unable to nix on ublue aurora.
- I'm trying to update Nix using the installer so I can update devenv, but I got this HOT 1
- Draft: Unable to Uninstall Nix HOT 1
- Proxy environment variables are ignored (/etc/systemd/system/nix-daemon.service.d/override.conf is not created)
- <autogenerated-issue>
- Nix-Darwin flake fails to install after using DS nix installer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-installer.