about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-02 12:36:35 +0900
committersefidel <contact@sefidel.net>2023-09-02 12:36:35 +0900
commite8eccb1d82087834529b8d37f409fc5a275efc49 (patch)
tree5714161ab96d9521e621f312d75492dc1993f8f9 /nixos
parent2de7210c3a1a0cf1ed9cd5055ac4388f5552bae7 (diff)
downloadnixrc-e8eccb1d82087834529b8d37f409fc5a275efc49.tar.gz
nixrc-e8eccb1d82087834529b8d37f409fc5a275efc49.zip
feat(nixos/alpha): persist cups settings
Diffstat (limited to 'nixos')
-rw-r--r--nixos/alpha/configuration.nix4
-rw-r--r--nixos/default.nix1
2 files changed, 5 insertions, 0 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 5346f55..ea4c5d0 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -181,6 +181,10 @@
   services.avahi.enable = true;
   services.avahi.nssmdns = true;
 
+  environment.persistence."/persist".directories = [
+    "/etc/cups"
+  ];
+
   services.pcscd.enable = true;
 
   programs.dconf.enable = true;
diff --git a/nixos/default.nix b/nixos/default.nix
index 86ab055..3be741d 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -9,6 +9,7 @@
       ../modules/cachix
       ../modules/keyd-qol.nix
       inputs.sops-nix.nixosModules.sops
+      inputs.impermanence.nixosModules.impermanence
     ];
   };