summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 3af5b41..644fa4b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -10,6 +10,18 @@
       inputs.systems.follows = "systems";
     };
 
+    # modules
+    disko = {
+      url = "github:nix-community/disko";
+      inputs = {
+        nixpkgs.follows = "nixpkgs";
+      };
+    };
+    impermanence = {
+      url = "github:nix-community/impermanence";
+      inputs = {
+      };
+    };
     simple-nixos-mailserver = {
       url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.05";
       inputs = {
@@ -21,7 +33,10 @@
   outputs = {
     self,
     nixpkgs,
+    # modules
     simple-nixos-mailserver,
+    impermanence,
+    disko,
     ...
   } @ attrs: let
     system = "x86_64-linux";
@@ -36,6 +51,8 @@
         {
           mailserver = import ./system/mail {inherit (pkgs) lib;};
         }
+        disko.nixosModules.default
+        impermanence.nixosModules.impermanence
       ];
     };
     devShells."${system}" = {
@@ -54,3 +71,4 @@
   };
 }
 # vim: ts=2
+