{ config, impermanence, ... }: { imports = [ 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" ]; 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" ]; # TODO allowOther = true; }; }; "/srv/nixos-config" = { directories = [ "/etc/nixos" ]; }; }; }