about summary refs log tree commit diff stats
path: root/bootstrap
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-04-03 16:26:03 +0200
committerene <ene@sils.li>2023-04-03 16:26:03 +0200
commite0edc239aca1062216f39e3ddc6e630ec229ae7e (patch)
tree82ac1d5328f44d1dc3401d8c419cb81623d9e353 /bootstrap
parentFeat(system/hardware): Add onlykey support (diff)
downloadnixos-config-e0edc239aca1062216f39e3ddc6e630ec229ae7e.tar.gz
nixos-config-e0edc239aca1062216f39e3ddc6e630ec229ae7e.zip
Fix(bootstrap/setup): Permissions for persistent home
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/setup/setup.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap/setup/setup.sh b/bootstrap/setup/setup.sh
index 6cbd8ee1..d8007a14 100755
--- a/bootstrap/setup/setup.sh
+++ b/bootstrap/setup/setup.sh
@@ -29,8 +29,9 @@ nixos-install --flake git+https://git.sils.li/ene/nixos-config#${host} --no-root
 git clone https://git.sils.li/ene/nixos-config /mnt/srv/etc/nixos
 
 # setup persistent home dir
-mkdir -p /mnt/srv/home
-chmod 777 /mnt/srv/home
+mkdir --parents /mnt/srv/home
+chown 1000:100 --recursive /mnt/srv/home
+chmod 700 /mnt/srv/home
 
 readp "Do you want to continue with the user configuration setup?[N/y]: " result;
 case "$result" in