mv zsh to module

This commit is contained in:
smayzy 2025-07-08 17:43:52 +02:00
parent 6966de63c9
commit a5edf53519
4 changed files with 23 additions and 1 deletions

View File

@ -13,6 +13,7 @@
prism.enable = true;
fzf.enable = true;
firefox.enable = true;
zsh.enable = true;
};
home-manager = {
@ -98,5 +99,4 @@
];
};
programs.zsh.enable = true;
}

View File

@ -7,6 +7,7 @@
./virt
./games
./browser
./shell
];
# Timzone and locales (same for all machines so I put it here)

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./zsh.nix
];
}

15
modules/nix/shell/zsh.nix Normal file
View File

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.zsh.enable = mkOption {
type = types.bool;
default = false;
description = "zsh";
};
config = mkIf config.smayzy.zsh.enable {
programs.zsh.enable = true;
};
}