profile/zsh: init

This commit is contained in:
Felix Buehler 2026-01-11 19:07:14 +01:00
parent 4370685504
commit 74ec60d50d
2 changed files with 20 additions and 0 deletions

View file

@ -23,5 +23,6 @@
./update
./usb-iso
./webcam
./zsh
];
}

19
profiles/zsh/default.nix Normal file
View file

@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.zsh;
in
{
options.my.profiles.zsh = with lib; {
enable = mkEnableOption "zsh profile";
};
config = lib.mkIf cfg.enable {
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
};
}