summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-03 15:04:48 +0200
committerSoispha <soispha@vhack.eu>2023-07-04 16:31:26 +0200
commit1c4672d602de2a6022f759996025cb7df0237862 (patch)
tree4a7c996693d167e1885db7046227c6d3acc7ad6f /flake.nix
parentFix(system/services/nix-sync): Remove slash from cachePath (diff)
downloadnixos-server-1c4672d602de2a6022f759996025cb7df0237862.tar.gz
nixos-server-1c4672d602de2a6022f759996025cb7df0237862.zip
Feat(system/file_system_layout): Add impermanence
Diffstat (limited to '')
-rw-r--r--flake.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index eff0f44..edfb3c4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -10,6 +10,12 @@
       inputs.systems.follows = "systems";
     };
 
+    # modules
+    impermanence = {
+      url = "github:nix-community/impermanence";
+      inputs = {
+      };
+    };
     simple-nixos-mailserver = {
       url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.05";
       inputs = {
@@ -21,7 +27,9 @@
   outputs = {
     self,
     nixpkgs,
+    # modules
     simple-nixos-mailserver,
+    impermanence,
     ...
   } @ attrs: let
     system = "x86_64-linux";
@@ -33,6 +41,7 @@
       modules = [
         ./hosts/server1/configuration.nix
         simple-nixos-mailserver.nixosModule
+        impermanence.nixosModules.impermanence
       ];
     };
     devShells."${system}" = {