diff options
author | Soispha <soispha@vhack.eu> | 2023-07-03 15:04:48 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-03 15:04:48 +0200 |
commit | f7a4052cf74987ba1c25a0128039ed1545d9e300 (patch) | |
tree | 4217794c7a31abe47596e4ca7b71614775eb64d1 /flake.nix | |
parent | Build(flake): Update (diff) | |
download | nixos-server-f7a4052cf74987ba1c25a0128039ed1545d9e300.tar.gz nixos-server-f7a4052cf74987ba1c25a0128039ed1545d9e300.zip |
Feat(system/disks): Add disko with impermanence
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 18 |
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 + |