add zsh module

This commit is contained in:
lucy 2026-10-19 20:49:30 +02:00
commit 4af229a564
7 changed files with 32 additions and 6 deletions

View file

@ -0,0 +1,7 @@
{ ... }: {
flake.nixosModules.programs = {
programs.niri.enable = true;
programs.steam.enable = true;
programs.direnv.enable = true;
};
}

View file

@ -0,0 +1,19 @@
{ ... }: {
flake.nixosModules.zsh = {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
ohMyZsh = {
enable = true;
theme = "gentoo";
};
shellInit = ''
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket"
eval "$(devenv hook zsh)"
'';
};
system.userActivationScripts.zshrc = "touch .zshrc";
};
}

View file

@ -6,6 +6,7 @@
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
};
};
}

View file

@ -1,6 +1,5 @@
{ inputs, ... }: {
flake.nixosModules.stylixTargets = {
imports = [ inputs.stylix.nixosModules.stylix ];
stylix.autoEnable = false;
stylix.targets = {
gtk.enable = true;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 MiB