26 lines
578 B
Nix
26 lines
578 B
Nix
{ inputs, ... }: {
|
|
flake-file.inputs = {
|
|
agenix = {
|
|
url = "github:ryantm/agenix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
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
|
|
];
|
|
};
|
|
}
|