pinwheel: Add enable option for zsh module
This commit is contained in:
@@ -19,6 +19,7 @@ in
|
|||||||
foot.enable = true;
|
foot.enable = true;
|
||||||
|
|
||||||
git.enable = true;
|
git.enable = true;
|
||||||
|
zsh.enable = true;
|
||||||
openvpn.enable = true;
|
openvpn.enable = true;
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,15 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
enabled = config.mod.zsh.enable;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
options = {
|
||||||
|
mod.zsh = {
|
||||||
|
enable = lib.mkEnableOption "enable zsh module";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf enabled {
|
||||||
home-manager.users.alex = {
|
home-manager.users.alex = {
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -56,4 +66,5 @@
|
|||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
environment.pathsToLink = [ "/share/zsh" ];
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user