diff options
Diffstat (limited to 'users/tazjin/nixos/tverskoy')
-rw-r--r-- | users/tazjin/nixos/tverskoy/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/users/tazjin/nixos/tverskoy/default.nix b/users/tazjin/nixos/tverskoy/default.nix index 74c676f4e3f1..3c4b9dae1184 100644 --- a/users/tazjin/nixos/tverskoy/default.nix +++ b/users/tazjin/nixos/tverskoy/default.nix @@ -17,6 +17,10 @@ config: let monolithic = false; }; in lib.fix(self: { + imports = [ + "${depot.third_party.impermanence}/nixos.nix" + ]; + boot = { initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; initrd.kernelModules = [ ]; @@ -52,6 +56,7 @@ in lib.fix(self: { "/persist" = { device = "zpool/safe/persist"; fsType = "zfs"; + neededForBoot = true; }; "/boot" = { @@ -98,6 +103,18 @@ in lib.fix(self: { }; }; + environment.persistence."/persist" = { + directories = [ + "/var/log" + "/var/lib/bluetooth" + "/var/lib/systemd/coredump" + "/etc/NetworkManager/system-connections" + ]; + files = [ + "/etc/machine-id" + ]; + }; + security.rtkit.enable = true; services = { pipewire = { |