add(nix): basic agenix config

This commit is contained in:
Léana 江 2023-12-25 19:55:32 +01:00 committed by Léana 江
parent 20d49fd7b6
commit ad31348634
4 changed files with 109 additions and 12 deletions

View file

@ -9,6 +9,8 @@
};
wired.url = "github:Toqozz/wired-notify";
agenix.url = "github:ryantm/agenix";
};
outputs = {
@ -16,6 +18,7 @@
nixunstable,
home-manager,
wired,
agenix,
...
}: let
pkgsForSystem = system:
@ -46,6 +49,7 @@
unstableForSystem = system: import nixunstable {inherit system;};
wiredForSystem = system: wired.packages.${system};
agenixForSystem = system: agenix.packages.${system};
withSystem = (
device: system: hostname: let
@ -53,6 +57,7 @@
pkgs = pkgsForSystem system;
unstable = unstableForSystem system;
wired = wiredForSystem system;
agenix = agenixForSystem system;
inherit system hostname;
};
in (nixpkgs.lib.nixosSystem {