start to remove modules in favour of options

This commit is contained in:
greyweather committed 2026-08-27 03:08:09 +01:00
1 parent 7245e872f6
commit f770b83b5c
23 files changed
+302 -389

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
{ inputs, self, ... }: {
flake.nixosModules.global = { config, pkgs, lib, ... }: {
options.features.shells.zsh = {
enable = lib.mkEnableOption "zsh";
antidote.enable = lib.mkEnableOption "antidote";
};
config = lib.mkIf (config.features.shells.zsh.enable) {
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
users.users."grey".shell = pkgs.zsh;
};
};
flake.homeModules.global = { pkgs, osConfig, lib, ... }: {
config = lib.mkIf (osConfig.features.shells.zsh.enable) {
home.shell.enableZshIntegration = true;
programs.kitty.shellIntegration.enableZshIntegration = true;
programs.zsh = {
enable = true;
completionInit = "";
antidote = lib.mkIf (osConfig.features.shells.zsh.antidote.enable) {
enable = true;
plugins = [
"getantidote/use-omz"
"ohmyzsh/ohmyzsh path:lib"
"ohmyzsh/ohmyzsh path:plugins/command-not-found"
"ohmyzsh/ohmyzsh path:themes/nanotech.zsh-theme"
"zsh-users/zsh-autosuggestions"
"zdharma-continuum/fast-syntax-highlighting"
];
};
};
};
};
}