summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2023-08-02 12:12:09 +0200
committersils <sils@sils.li>2023-08-02 12:15:05 +0200
commit212d5951f8eca9713788ae4d08707f54363d4ecb (patch)
tree7f1f179141402e7e50005a8e2513364d9cd954a9 /flake.nix
parentFix(u/sils/nixneovim): Switcht to nvim-cmp (diff)
downloadnix-config-212d5951f8eca9713788ae4d08707f54363d4ecb.tar.gz
nix-config-212d5951f8eca9713788ae4d08707f54363d4ecb.zip
Feat(flake): Add impermanence
Diffstat (limited to '')
-rw-r--r--flake.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index d896f93..71459ec 100644
--- a/flake.nix
+++ b/flake.nix
@@ -9,6 +9,8 @@
       inputs.nixpkgs.follows = "nixpkgs";
     };
 
+    impermanence.url = "github:nix-community/impermanence";
+
     # inputs for following
     nixneovim = {
       url = "github:nixneovim/nixneovim";
@@ -111,12 +113,13 @@
     prismlauncher,
     lanzaboote,
     nixneovim,
+    impermanence,
     ...
   } @ attrs: let
     system = "x86_64-linux";
     pkgs = import nixpkgs {
       inherit system;
-      overlays = [ nixneovim.overlays.default ];
+      overlays = [nixneovim.overlays.default];
     };
 
     sysLib = shell_library.lib.${system};
@@ -125,6 +128,7 @@
       inherit system;
       specialArgs = attrs;
       modules = [
+        impermanence.nixosModules.impermanence
         lanzaboote.nixosModules.lanzaboote
         ./hosts/thinklappi
         home-manager.nixosModules.home-manager
@@ -133,7 +137,7 @@
             useGlobalPkgs = true;
             useUserPackages = true;
             users.sils = import ./users/sils;
-            extraSpecialArgs = {inherit pkgs system sysLib river_init_lesser yambar_cpu yambar_memory prismlauncher nixneovim;};
+            extraSpecialArgs = {inherit pkgs system sysLib river_init_lesser yambar_cpu yambar_memory prismlauncher nixneovim impermanence;};
           };
         }
       ];