mv zsh to module
This commit is contained in:
parent
6966de63c9
commit
a5edf53519
@ -13,6 +13,7 @@
|
|||||||
prism.enable = true;
|
prism.enable = true;
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
|
zsh.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
@ -98,5 +99,4 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
./virt
|
./virt
|
||||||
./games
|
./games
|
||||||
./browser
|
./browser
|
||||||
|
./shell
|
||||||
];
|
];
|
||||||
|
|
||||||
# Timzone and locales (same for all machines so I put it here)
|
# Timzone and locales (same for all machines so I put it here)
|
||||||
|
|||||||
6
modules/nix/shell/default.nix
Normal file
6
modules/nix/shell/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./zsh.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
15
modules/nix/shell/zsh.nix
Normal file
15
modules/nix/shell/zsh.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user