mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-01-23 06:53:24 +01:00
profile/zsh: init
This commit is contained in:
parent
4370685504
commit
74ec60d50d
2 changed files with 20 additions and 0 deletions
|
|
@ -23,5 +23,6 @@
|
|||
./update
|
||||
./usb-iso
|
||||
./webcam
|
||||
./zsh
|
||||
];
|
||||
}
|
||||
|
|
|
|||
19
profiles/zsh/default.nix
Normal file
19
profiles/zsh/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue