2024-05-07 22:02:59 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
let
|
|
|
|
cfg = config.host.apps.development;
|
2024-02-29 14:53:34 +00:00
|
|
|
in
|
|
|
|
with lib;
|
|
|
|
{
|
2024-05-07 22:02:59 +00:00
|
|
|
options = {
|
|
|
|
host.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
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
config = mkMerge [
|
|
|
|
(mkIf cfg.enable {
|
|
|
|
host.ui.flatpak.enable = true;
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
services.flatpak.packages = [
|
|
|
|
"com.vscodium.codium"
|
|
|
|
"dev.k8slens.OpenLens"
|
|
|
|
];
|
2024-05-04 14:40:10 +00:00
|
|
|
|
2024-05-07 22:02:59 +00: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
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|