diff options
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 56 |
1 files changed, 52 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix index 0cf5609..5485ed9 100644 --- a/flake.nix +++ b/flake.nix @@ -4,10 +4,35 @@ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05-small"; - systems.url = "github:nix-systems/x86_64-linux"; + # inputs for following + systems = { + url = "github:nix-systems/x86_64-linux"; # only evaluate for this system + }; + flake-compat = { + url = "github:edolstra/flake-compat"; + flake = false; + }; + crane = { + url = "github:ipetkov/crane"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-compat.follows = "flake-compat"; + flake-utils.follows = "flake-utils"; + rust-overlay.follows = "rust-overlay"; + }; + }; flake-utils = { url = "github:numtide/flake-utils"; - inputs.systems.follows = "systems"; + inputs = { + systems.follows = "systems"; + }; + }; + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs = { + nixpkgs.follows = "nixpkgs"; + flake-utils.follows = "flake-utils"; + }; }; # modules @@ -17,15 +42,33 @@ nixpkgs.follows = "nixpkgs"; }; }; - impermanence = { - url = "github:nix-community/impermanence"; + agenix = { + url = "github:ryantm/agenix"; 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 = { nixpkgs.follows = "nixpkgs"; + flake-compat.follows = "flake-compat"; + }; + }; + + # bins + ragenix = { + url = "github:yaxitech/ragenix"; + inputs = { + nixpkgs.follows = "nixpkgs"; + agenix.follows = "agenix"; + flake-utils.follows = "flake-utils"; + rust-overlay.follows = "rust-overlay"; + crane.follows = "crane"; }; }; }; @@ -37,6 +80,9 @@ simple-nixos-mailserver, impermanence, disko, + agenix, + # bins + ragenix, ... } @ attrs: let system = "x86_64-linux"; @@ -50,6 +96,7 @@ simple-nixos-mailserver.nixosModule disko.nixosModules.default impermanence.nixosModules.impermanence + agenix.nixosModules.default ]; }; devShells."${system}" = { @@ -62,6 +109,7 @@ ltex-ls cocogitto git-crypt + ragenix.packages."${system}".default ]; }; }; |