impermanence for real
This commit is contained in:
parent
0c8df4dd20
commit
831b1293fc
2 changed files with 42 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
imports = [
|
||||
./boot.nix
|
||||
./hardware.nix
|
||||
./impermanence.nix
|
||||
./nix.nix
|
||||
./packages.nix
|
||||
./services.nix
|
||||
|
|
|
|||
41
hosts/desktops/common/impermanence.nix
Normal file
41
hosts/desktops/common/impermanence.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.persistent.main = {
|
||||
persistentStoragePath = "/persistent";
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
"/etc/ssh/ssh_host_rsa_key"
|
||||
"/etc/ssh/ssh_host_rsa_key.pub"
|
||||
];
|
||||
directories = [
|
||||
"/var/log"
|
||||
"/var/lib/bluetooth"
|
||||
"/var/lib/docker"
|
||||
"/var/lib/nixos"
|
||||
"/var/lib/flatpak"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/etc/NetworkManager/system-connections"
|
||||
];
|
||||
users.user = {
|
||||
directories = [
|
||||
"Documents"
|
||||
"Games"
|
||||
"Music"
|
||||
"Pictures"
|
||||
"Projects"
|
||||
"Videos"
|
||||
"VMs"
|
||||
".mozilla"
|
||||
".local/share/containers"
|
||||
".local/share/direnv"
|
||||
".local/share/flatpak"
|
||||
".local/share/Steam"
|
||||
".cache/nix"
|
||||
".cache/flatpak"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue