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

42 lines
792 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2024-02-29 09:53:34 -05:00
let
cfg = config.host.apps.development;
2024-02-29 09:53:34 -05:00
in
with lib;
{
options = {
host.apps.development = {
enable = mkEnableOption (mdDoc "Enables development tools");
kubernetes.enable = mkEnableOption (mdDoc "Enables kubectl, virtctl, and similar tools.");
};
};
2024-02-29 09:53:34 -05:00
config = mkMerge [
(mkIf cfg.enable {
host.ui.flatpak.enable = true;
2024-02-29 09:53:34 -05:00
services.flatpak.packages = [
"com.vscodium.codium"
"dev.k8slens.OpenLens"
];
2024-05-04 10:40:10 -04:00
environment.systemPackages = with pkgs; [
statix # Nix linting tool
];
})
(mkIf cfg.kubernetes.enable {
environment.systemPackages = with pkgs; [
kubectl
kubernetes-helm
kubevirt # Virtctl command-line tool
];
})
];
}