adapt config for use with standalone home-manager

This commit is contained in:
greyweather committed 2026-08-28 01:15:05 +01:00
1 parent 765f346eb6
commit 3af64e993c
19 files changed
+418 -287

No files matched your search

+8 -3
View File
@@ -12,8 +12,13 @@
};
};
flake.homeModules.global = { pkgs, osConfig, lib, ... }: {
config = lib.mkIf (osConfig.features.shells.zsh.enable) {
flake.homeModules.global = { pkgs, osConfig, config, lib, ... }: {
options.features.shells.zsh = {
enable = lib.mkEnableOption "zsh";
antidote.enable = lib.mkEnableOption "antidote";
};
config = (if builtins.hasAttr "osConfig" self then (lib.mkIf (osConfig.features.shells.zsh.enable || config.features.shells.zsh.enable)) else (lib.mkIf (config.features.shells.zsh.enable))) {
home.shell.enableZshIntegration = true;
programs.kitty.shellIntegration.enableZshIntegration = true;
@@ -21,7 +26,7 @@
programs.zsh = {
enable = true;
completionInit = "";
antidote = lib.mkIf (osConfig.features.shells.zsh.antidote.enable) {
antidote = (if builtins.hasAttr "osConfig" self then (lib.mkIf (osConfig.features.shells.zsh.antidote.enable || config.features.shells.zsh.antidote.enable)) else (lib.mkIf (config.features.shells.zsh.antidote.enable))) {
enable = true;
plugins = [
"getantidote/use-omz"