zsh: init zsh module
This commit is contained in:
parent
5f10495f6d
commit
cb376aa64b
2 changed files with 38 additions and 8 deletions
|
@ -28,19 +28,18 @@ in
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
openssh.enable = true;
|
openssh.enable = true;
|
||||||
};
|
};
|
||||||
|
shells.zsh = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.amadaluzian-zsh;
|
||||||
|
};
|
||||||
system.pipewire.enable = true;
|
system.pipewire.enable = true;
|
||||||
wms.niri.enable = true;
|
wms.niri.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs.git = {
|
||||||
git = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitFull;
|
package = pkgs.gitFull;
|
||||||
};
|
};
|
||||||
zsh = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
deluge = {
|
deluge = {
|
||||||
|
|
31
hosts/shared/zsh.nix
Normal file
31
hosts/shared/zsh.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.alqueva.shells.zsh;
|
||||||
|
|
||||||
|
inherit (lib.modules) mkIf;
|
||||||
|
inherit (lib.options) mkEnableOption mkPackageOption;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.alqueva.shells.zsh = {
|
||||||
|
enable = mkEnableOption "zsh";
|
||||||
|
package = mkPackageOption pkgs "zsh" { };
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment = {
|
||||||
|
systemPackages = [ cfg.package ];
|
||||||
|
shells = [ cfg.package ];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
autosuggestions.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue