commit 4c89e9aee6ae0610f85add0344bb68e070625536
parent a427b9da5e04263a8d373c7e8d55300edaf64666
Author: Daniel Barlow <dan@telent.net>
Date: Mon, 26 Sep 2022 21:02:10 +0100
add passwd and group in environment.etc
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/make-image.nix b/make-image.nix
@@ -38,7 +38,6 @@ let
/bin/init s 0755 0 0 ${s6-init-bin}/bin/init
/bin/sh s 0755 0 0 ${busybox}/bin/sh
/bin/busybox s 0755 0 0 ${busybox}/bin/busybox
- /etc/passwd f 0644 0 0 echo "root::0:0:root:/:/bin/sh"
'';
config-pseudofiles = pseudofile.write "config.etc"
diff --git a/modules/base.nix b/modules/base.nix
@@ -37,7 +37,8 @@ in {
PATH=${lib.makeBinPath (with pkgs; [ s6-init-bin busybox execline s6-linux-init s6-rc])}
export PATH
'');
-
+ passwd = { file = "root::0:0:root:/:/bin/sh\n"; };
+ group = { file = "root::0:\n"; };
};
};
};