From 668c0dbf25b8f31385e38b3699bbdd9226da01fe Mon Sep 17 00:00:00 2001 From: ene Date: Thu, 16 Feb 2023 18:24:34 +0100 Subject: Feat(impermanence): Add full stack tempfs --- system/impermanence/default.nix | 67 +++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 30 deletions(-) (limited to 'system/impermanence') diff --git a/system/impermanence/default.nix b/system/impermanence/default.nix index 16ac3c47..dd0fa42e 100644 --- a/system/impermanence/default.nix +++ b/system/impermanence/default.nix @@ -7,39 +7,46 @@ impermanence.nixosModules.impermanence ]; - environment.persistence."/srv" = { - hideMounts = true; - directories = [ - "/var/log" - # TODO this needs to be checked - #"/var/lib/bluetooth" - #"/var/lib/nixos" - #"/var/lib/systemd/coredump" - { - directory = "/var/lib/colord"; - user = "colord"; - group = "colord"; - mode = "u=rwx,g=rx,o="; - } - ]; - files = [ - "/etc/machine-id" - { - file = "/etc/nix/id_rsa"; - parentDirectory = {mode = "u=rwx,g=,o=";}; - } - ]; - users.soispha = { - home = "/srv/home/soispha"; # TODO link this to ${config.users.users.soispha.homeDirectory} + environment.persistence = { + "/srv" = { + hideMounts = true; directories = [ - ".local/share" - ".cache" + "/var/log" + # TODO this needs to be checked + #"/var/lib/bluetooth" + #"/var/lib/nixos" + #"/var/lib/systemd/coredump" + { + directory = "/var/lib/colord"; + user = "colord"; + group = "colord"; + mode = "u=rwx,g=rx,o="; + } + ]; + files = [ + "/etc/machine-id" + { + file = "/etc/nix/id_rsa"; + parentDirectory = {mode = "u=rwx,g=,o=";}; + } + ]; + users.soispha = { + home = "/srv/home/soispha"; # TODO link this to ${config.users.users.soispha.homeDirectory} + directories = [ + ".local/share" + ".cache" - "media" - "repos" - "school" + "media" + "repos" + "school" + ]; + # TODO allowOther = true; + }; + }; + "/srv/nixos-config" = { + directories = [ + "/etc/nixos" ]; - # TODO allowOther = true; }; }; } -- cgit 1.4.1