diff options
| author | Arslaan Pathan <[email protected]> | 2026-06-11 13:08:49 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-06-11 13:08:49 +1200 |
| commit | 0836c4b05b02907e0d00a4f6d8f80fa157e051f4 (patch) | |
| tree | 968e2fef722c66ad2796a195faefb0a714262c0a /nix | |
| parent | d766053b0d4262931626e41b63a8acac4921bb5c (diff) | |
| download | yerbalinux-0836c4b05b02907e0d00a4f6d8f80fa157e051f4.tar.xz yerbalinux-0836c4b05b02907e0d00a4f6d8f80fa157e051f4.zip | |
Add a non-root user
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/rootfs.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nix/rootfs.nix b/nix/rootfs.nix index c5769e6..a437a48 100644 --- a/nix/rootfs.nix +++ b/nix/rootfs.nix @@ -12,6 +12,7 @@ stdenv.mkDerivation { mkdir -p rootfs/usr/{lib,bin} mkdir -p rootfs/etc/runit mkdir -p rootfs/etc/service + mkdir -p rootfs/home/yerba chmod -R u+w rootfs # Basic setup end @@ -53,6 +54,7 @@ stdenv.mkDerivation { echo "sysfs /sys sysfs defaults 0 0" >> rootfs/etc/fstab echo "devtmpfs /dev devtmpfs defaults 0 0" >> rootfs/etc/fstab echo "root::0:0:root:/root:/bin/sh" > rootfs/etc/passwd + echo "yerba::1000:1000:yerba:/home/yerba:/bin/sh" >> rootfs/etc/passwd echo "root:x:0:" > rootfs/etc/group echo "yerba-live" > rootfs/etc/hostname # Basic files setup end |
