mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add(nix): basic agenix config
This commit is contained in:
parent
20d49fd7b6
commit
ad31348634
4 changed files with 109 additions and 12 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue