diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-21 23:58:26 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-21 23:58:26 -0700 |
| commit | feff0a2c3995a2492fa0113b41f87ddb4b7df37c (patch) | |
| tree | 739e7ed2ae098d2f4ddcce8542dc50c3799c2898 | |
| parent | 773094cac1725b4de8f93af0be92aed8c8beadec (diff) | |
Persist required system dirs on copenhagen
| -rw-r--r-- | hosts/copenhagen/configuration.nix | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/hosts/copenhagen/configuration.nix b/hosts/copenhagen/configuration.nix index 6debb27..4251e69 100644 --- a/hosts/copenhagen/configuration.nix +++ b/hosts/copenhagen/configuration.nix @@ -9,7 +9,22 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; - networking.hostName = "copenhagen"; + fileSystems."/persist".neededForBoot = true; + environment.persistence."/persist/system" = { + hideMounts = true; + directories = [ + "/etc/nixos" + "/var/log" + "/var/lib/nixos" + "/var/lib/systemd/coredump" + ]; + files = [ + "/etc/machine-id" + ]; + }; + + programs.fuse.userAllowOther = true; + time.timeZone = "America/Los_Angeles"; users.users = { |