diff options
author | ene <ene@sils.li> | 2023-04-03 16:26:03 +0200 |
---|---|---|
committer | ene <ene@sils.li> | 2023-04-03 16:26:03 +0200 |
commit | e0edc239aca1062216f39e3ddc6e630ec229ae7e (patch) | |
tree | 82ac1d5328f44d1dc3401d8c419cb81623d9e353 | |
parent | Feat(system/hardware): Add onlykey support (diff) | |
download | nixos-config-e0edc239aca1062216f39e3ddc6e630ec229ae7e.tar.gz nixos-config-e0edc239aca1062216f39e3ddc6e630ec229ae7e.zip |
Fix(bootstrap/setup): Permissions for persistent home
-rwxr-xr-x | bootstrap/setup/setup.sh | 5 |
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 |