mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 15:00:42 +00:00
Add home impermanence
This commit is contained in:
parent
6a16de8d16
commit
9dd5d40494
4 changed files with 93 additions and 1 deletions
|
@ -50,10 +50,32 @@
|
|||
];
|
||||
};
|
||||
|
||||
home = {
|
||||
enable = true;
|
||||
persistentMountPoint = "/persist/home";
|
||||
extraDirectories = [
|
||||
"Downloads"
|
||||
"Personal"
|
||||
"Media"
|
||||
"dots"
|
||||
|
||||
".local/share/gnupg"
|
||||
".local/share/wakatime"
|
||||
".local/share/nvim"
|
||||
".local/state/nvim"
|
||||
".local/share/zsh"
|
||||
".local/cargo"
|
||||
".local/go"
|
||||
];
|
||||
extraFiles = [
|
||||
".config/git/git-credentials"
|
||||
];
|
||||
};
|
||||
|
||||
# Configure automatic root subvolume wiping on boot from initrd
|
||||
autoWipeBtrfs = {
|
||||
enable = true;
|
||||
devices."/dev/disk/by-label/NIXOS-FS".subvolumes = [ "root" ];
|
||||
devices."/dev/disk/by-label/NIXOS-FS".subvolumes = [ "root" "home" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue