diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-06 12:02:36 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-06 12:05:29 +0200 |
commit | d4bf84aa8d41f1bc12bdc49c10a0afdfb87f9f07 (patch) | |
tree | d2946c34af9dc90e0d6b34a72f7803dbe5050b99 /hosts/phobos/default.nix | |
parent | Firefox: Remove bypass-paywalls extension (diff) | |
download | nixos-config-d4bf84aa8d41f1bc12bdc49c10a0afdfb87f9f07.tar.gz nixos-config-d4bf84aa8d41f1bc12bdc49c10a0afdfb87f9f07.tar.bz2 nixos-config-d4bf84aa8d41f1bc12bdc49c10a0afdfb87f9f07.zip |
Phobos: Change filesystem to be encrypted+stateless
Diffstat (limited to 'hosts/phobos/default.nix')
-rw-r--r-- | hosts/phobos/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hosts/phobos/default.nix b/hosts/phobos/default.nix index 5bdd524..c31d832 100644 --- a/hosts/phobos/default.nix +++ b/hosts/phobos/default.nix @@ -1,6 +1,8 @@ { config, pkgs, lib, secrets, hostname, inputs, user, ... }: { imports = [ + "${inputs.impermanence}/nixos.nix" + ./hardware.nix ../../modules/bluetooth @@ -35,6 +37,17 @@ ''; */ + environment.persistence."/persist" = { + directories = [ + "/var/log" + "/var/lib" + ]; + files = [ + "/etc/machine-id" + "/etc/nix/id_rsa" + ]; + }; + environment.etc."nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database; } |