mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Fix persist
This commit is contained in:
parent
aba1da6c1f
commit
41ae205f6a
5 changed files with 72 additions and 53 deletions
|
|
@ -3,15 +3,19 @@ with lib; {
|
|||
options.mods.impermanence.enable = mkEnableOption "enables impermanence";
|
||||
|
||||
config = mkIf config.mods.impermanence.enable {
|
||||
# environment.persistence."/persistent" = {
|
||||
# directories = [
|
||||
# "/var/lib/bluetooth"
|
||||
# "/var/lib/nixos"
|
||||
# "/var/lib/systemd/coredump"
|
||||
# "/etc/NetworkManager/system-connections"
|
||||
# ];
|
||||
# files = [ "/etc/machine-id" ];
|
||||
# };
|
||||
environment.persistence."/persist" = {
|
||||
directories =
|
||||
[ "/var/lib/nixos" "/var/lib/systemd/coredump" "/etc/nixos" ];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
"/etc/passwd"
|
||||
"/etc/group"
|
||||
"/etc/shadow"
|
||||
"/etc/subgid"
|
||||
"/etc/subuid"
|
||||
"/etc/sudoers"
|
||||
];
|
||||
};
|
||||
|
||||
boot.initrd.postResumeCommands = lib.mkAfter ''
|
||||
mkdir /btrfs_tmp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue