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

36 lines
716 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"
];
2024-05-04 10:40:10 -04:00
environment.systemPackages = with pkgs; [
statix # Nix linting tool
];
2024-03-11 12:27:30 -04:00
})
2024-03-21 16:17:06 -04:00
(mkIf cfg.kubernetes.enable {
2024-03-11 12:27:30 -04:00
environment.systemPackages = with pkgs; [
kubectl
kubernetes-helm
kubevirt # Virtctl command-line tool
];
})
];
2024-02-29 09:53:34 -05:00
}