diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 627fcef..b544b80 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -63,6 +63,7 @@ ./roles/shipwright ./roles/2ship2harkinian ./roles/nix_index + ./roles/flux ]; nix.settings.experimental-features = [ diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index 130b4aa..30b881c 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -38,6 +38,7 @@ me.docker.enable = true; me.emacs_flavor = "full"; me.firefox.enable = true; + me.flux.enable = true; me.git.config = ../../roles/git/files/gitconfig_home; me.gpg.enable = true; me.graphical = true; diff --git a/nix/configuration/roles/flux/default.nix b/nix/configuration/roles/flux/default.nix new file mode 100644 index 0000000..8f74d0a --- /dev/null +++ b/nix/configuration/roles/flux/default.nix @@ -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 { + }) + ] + ); +}