Update to (somewhat?) dendritic pattern
Heavily inspired by https://github.com/Doc-Steve/dendritic-design-with-flake-parts. > Atomic commits? Never heard of them!
This commit is contained in:
26
modules/nix/tools/secrets.nix
Normal file
26
modules/nix/tools/secrets.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ inputs, ... }: {
|
||||
flake-file.inputs = {
|
||||
agenix = {
|
||||
url = "github:ryantm/agenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
secrets = {
|
||||
url = "path:./secrets";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.nixos.secrets = { pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.agenix.nixosModules.default
|
||||
];
|
||||
environment.systemPackages = [ inputs.agenix.packages.${pkgs.stdenv.hostPlatform.system}.default ];
|
||||
};
|
||||
|
||||
flake.modules.homeManager.secrets = { pkgs, ... }: {
|
||||
imports = [
|
||||
inputs.agenix.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user