This commit is contained in:
KoenDR06 2025-09-28 23:25:20 +02:00
parent 08f81591fa
commit d42fca2eaa
4 changed files with 51 additions and 0 deletions

View file

@ -2,5 +2,6 @@
imports = [
./nix.nix
./locale.nix
./secrets.nix
];
}

26
modules/base/secrets.nix Normal file
View file

@ -0,0 +1,26 @@
{
lib,
config,
inputs,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.horseman.base.secrets;
in {
options = {
horseman.base.secrets = {
enable = mkEnableOption "";
};
};
config = mkIf cfg.enable {
environment.systemPackages = [
inputs.agenix.packages.x86_64-linux.default
];
age.secrets.wifi = {
file = ../../secrets/wifi.age;
path = "/run/secrets/wifi.conf";
};
};
}