start to remove modules in favour of options
This commit is contained in:
23 files changed
+302
-389
No files matched your search
@@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user