summary refs log blame commit diff stats
path: root/system/impermanence/default.nix
blob: b60eb4caa402e52895ec811a6ca56ceb3a4c77db (plain) (tree)
1
2
3
4
5
6
7
8
9
        

                                                           
                   
                     

                        
                         

                    



                                    


                       
    
{...}: {
  # TODO: Only activate them if their module is also active
  imports = [
    ./mods/acme.nix
    ./mods/mail.nix
    ./mods/matrix.nix
    ./mods/minecraft.nix
    ./mods/nix-sync.nix
    ./mods/openssh.nix
    ./mods/postgresql.nix
    ./mods/users.nix
  ];

  environment.persistence."/srv" = {
    hideMounts = true;
    directories = [
      "/etc/nixos"
      "/var/log"
    ];
    files = [
      "/etc/machine-id"
    ];
  };
}