Add role for flux.

This commit is contained in:
Tom Alexander
2025-02-01 11:30:52 -05:00
parent 4a63e1c23e
commit fc400a98db
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
flux.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install flux.";
};
};
config = lib.mkIf config.me.flux.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [
fluxcd
];
}
(lib.mkIf config.me.graphical {
})
]
);
}