biggg refactor, holy shit

This commit is contained in:
Noa Aarts 2024-11-11 11:16:27 +01:00
parent a3da6ab3af
commit 4c55bc97f6
Signed by: noa
GPG key ID: 1850932741EFF672
10 changed files with 111 additions and 394 deletions

View file

@ -8,9 +8,6 @@ let
cfg = config.modules.apps;
in
{
options.modules.apps = {
enable = lib.mkEnableOption "enable desktop applications";
};
imports = [
./firefox.nix
@ -20,15 +17,4 @@ in
./thunderbird.nix
];
config = lib.mkIf cfg.enable {
modules.apps = {
firefox.enable = true;
git.enable = true;
kitty.enable = true;
zsh = {
enable = true;
enableAliases = true;
};
};
};
}

View file

@ -10,13 +10,12 @@ in
{
options.modules.apps.zsh = {
enable = lib.mkEnableOption "enable zsh with oh-my-zsh";
enableAliases = lib.mkEnableOption "whether to enable shellAliases";
};
config = lib.mkIf cfg.enable {
programs.zsh = {
enable = true;
shellAliases = lib.mkIf cfg.enableAliases {
shellAliases = {
update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos";
nb = "nix build -L";
ns = "nix shell -L";