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

43 lines
851 B
Nix
Raw Normal View History

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