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

44 lines
923 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
2024-12-06 16:46:10 +00:00
namespace,
...
}:
2024-02-29 14:53:34 +00:00
let
2024-12-06 16:46:10 +00:00
cfg = config.${namespace}.apps.development;
2024-02-29 14:53:34 +00:00
in
{
options = {
2024-12-06 16:46:10 +00:00
${namespace}.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-02-29 14:53:34 +00:00
2024-08-02 21:55:48 +00:00
config = lib.mkMerge [
(lib.mkIf cfg.enable {
2024-12-06 16:46:10 +00:00
${namespace} = {
packages = with pkgs; [
2024-11-22 17:28:56 +00:00
nil # Nix Language server: https://github.com/oxalica/nil
nix-prefetch-scripts
];
ui.flatpak = {
enable = true;
packages = [ "com.vscodium.codium" ];
};
2024-06-25 18:13:15 +00:00
};
})
2024-08-02 21:55:48 +00:00
(lib.mkIf cfg.kubernetes.enable {
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" ];
})
];
}