summary refs log tree commit diff stats
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
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.lock16
-rw-r--r--flake.nix8
2 files changed, 22 insertions, 2 deletions
diff --git a/flake.lock b/flake.lock
index de4b429..c3a2daf 100644
--- a/flake.lock
+++ b/flake.lock
@@ -371,6 +371,21 @@
         "type": "github"
       }
     },
+    "impermanence": {
+      "locked": {
+        "lastModified": 1690797372,
+        "narHash": "sha256-GImz19e33SeVcIvBB7NnhbJSbTpFFmNtWLh7Z85Y188=",
+        "owner": "nix-community",
+        "repo": "impermanence",
+        "rev": "e3a7acd113903269a1b5c8b527e84ce7ee859851",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nix-community",
+        "repo": "impermanence",
+        "type": "github"
+      }
+    },
     "lanzaboote": {
       "inputs": {
         "crane": "crane_2",
@@ -752,6 +767,7 @@
         "flake-compat": "flake-compat",
         "flake-utils": "flake-utils",
         "home-manager": "home-manager",
+        "impermanence": "impermanence",
         "lanzaboote": "lanzaboote",
         "nixneovim": "nixneovim",
         "nixpkgs": "nixpkgs",
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;};
           };
         }
       ];