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
+1
View File
@@ -7,6 +7,7 @@
./virt
./games
./browser
./shell
];
# Timzone and locales (same for all machines so I put it here)
+6
View File
@@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./zsh.nix
];
}
+15
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;
};
}