mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 03:26:17 +00:00
feat: split config more
This commit is contained in:
40
modules/nixos/usecases/development.nix
Normal file
40
modules/nixos/usecases/development.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user