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
|
2024-06-24 15:38:28 +00:00
|
|
|
cfg = config.aux.system.apps.development;
|
2024-02-29 14:53:34 +00:00
|
|
|
in
|
|
|
|
{
|
2024-05-07 22:02:59 +00:00
|
|
|
options = {
|
2024-06-24 15:38:28 +00:00
|
|
|
aux.system.apps.development = {
|
2024-08-02 21:55:48 +00:00
|
|
|
enable = lib.mkEnableOption "Enables development tools";
|
|
|
|
kubernetes.enable = lib.mkEnableOption "Enables kubectl, virtctl, and similar tools.";
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
|
|
|
};
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-08-02 21:55:48 +00:00
|
|
|
config = lib.mkMerge [
|
|
|
|
(lib.mkIf cfg.enable {
|
2024-07-04 18:57:52 +00:00
|
|
|
aux.system = {
|
2024-08-05 13:49:07 +00:00
|
|
|
packages = with pkgs; [
|
|
|
|
nixd
|
2024-08-05 14:12:50 +00:00
|
|
|
nix-prefetch-scripts
|
2024-08-05 13:49:07 +00:00
|
|
|
];
|
2024-07-04 18:57:52 +00:00
|
|
|
ui.flatpak = {
|
|
|
|
enable = true;
|
|
|
|
packages = [ "com.vscodium.codium" ];
|
|
|
|
};
|
2024-06-25 18:13:15 +00:00
|
|
|
};
|
2024-05-07 22:02:59 +00:00
|
|
|
})
|
2024-08-02 21:55:48 +00:00
|
|
|
(lib.mkIf cfg.kubernetes.enable {
|
2024-05-07 22:02:59 +00:00
|
|
|
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" ];
|
2024-05-07 22:02:59 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|