diff --git a/configs/filesystems/impermanence.nix b/configs/filesystems/impermanence.nix index e8663c2..cdff177 100644 --- a/configs/filesystems/impermanence.nix +++ b/configs/filesystems/impermanence.nix @@ -105,6 +105,21 @@ # Directories to persist between boots fileSystems."/persist".neededForBoot = true; environment.persistence."/persist" = { + # Hide the mounts from showing up in the file manager. hideMounts = true; + files = [ + "/etc/ssh/ssh_host_ed25519_key" + "/etc/ssh/ssh_host_ed25519_key.pub" + "/etc/machine-id" + ]; + users.rafiq = { + directories = [ + "repos" + ]; + files = [ + ".config/sops/age/keys.txt" + ".ssh/id_ed25519" + ]; + }; }; } diff --git a/configs/shell/scripts/deploy.sh b/configs/shell/scripts/deploy.sh index 7370a76..96b926f 100755 --- a/configs/shell/scripts/deploy.sh +++ b/configs/shell/scripts/deploy.sh @@ -24,6 +24,8 @@ done # Prepare temporary directory and copy necessary files root=$(mktemp -d) +mkdir -p ${root}/persist +root=${root}/persist sudo cp --verbose --archive --parents /etc/ssh/ssh_host_* ${root} sudo cp --verbose --archive --parents ~/.ssh/id_ed25519 ${root} sudo cp --verbose --archive --parents ~/.config/sops/age/keys.txt ${root}