feat: split config more

This commit is contained in:
2024-04-12 11:00:06 +02:00
parent 5d510a1989
commit 6e0e34e425
11 changed files with 199 additions and 61 deletions

View File

@@ -0,0 +1,40 @@
{
config,
lib,
pkgs,
username,
...
}:
with lib;
let
cfg = config.usecases.development;
in
{
imports = [
./development/angular.nix
./development/svelte.nix
./development/docker.nix
];
options.usecases.development = {
enable = mkEnableOption "Enable development tools";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
gh
git-filter-repo
ripgrep
jq
httpie
];
home-manager.users.${username} = {
programs = {
lazygit.enable = true;
};
};
};
}