From f7a4052cf74987ba1c25a0128039ed1545d9e300 Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 3 Jul 2023 15:04:48 +0200 Subject: Feat(system/disks): Add disko with impermanence --- flake.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'flake.nix') 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 + -- cgit 1.4.1