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

32 lines
634 B
Nix
Raw Normal View History

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