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

32 lines
636 B
Nix
Raw Normal View History

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