1
0
Fork 0
nix-configuration/modules/apps/development.nix

41 lines
808 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2024-02-29 14:53:34 +00:00
let
cfg = config.aux.system.apps.development;
2024-02-29 14:53:34 +00:00
in
with lib;
{
options = {
aux.system.apps.development = {
enable = mkEnableOption (mdDoc "Enables development tools");
kubernetes.enable = mkEnableOption (mdDoc "Enables kubectl, virtctl, and similar tools.");
};
};
2024-02-29 14:53:34 +00:00
config = mkMerge [
(mkIf cfg.enable {
aux.system = {
packages = with pkgs; [ nixd ];
ui.flatpak = {
enable = true;
packages = [ "com.vscodium.codium" ];
};
2024-06-25 18:13:15 +00:00
};
})
(mkIf cfg.kubernetes.enable {
environment.systemPackages = with pkgs; [
kubectl
kubernetes-helm
kubevirt # Virtctl command-line tool
];
2024-06-04 18:18:45 +00:00
services.flatpak.packages = [ "dev.k8slens.OpenLens" ];
})
];
}