move options back out to their config files, improve documentation

This commit is contained in:
greyweather committed 2026-09-02 00:05:28 +01:00
1 parent 70ac7954ad
commit 9c13923c2e
30 files changed
+344 -233

No files matched your search

+9 -2
View File
@@ -1,6 +1,13 @@
{ inputs, self, ... }: {
imports = [ (inputs.helpers.mkMirroredModulesFlakeModule "globalOptions" ({ lib, ... }: {
options.features.shells.zsh = {
enable = lib.mkEnableOption "`zsh`";
antidote.enable = lib.mkEnableOption "Antidote, a plugin manager for `zsh`";
};
})) ];
flake.nixosModules.global = { config, pkgs, lib, ... }: {
config = lib.mkIf (config.features.shells.zsh.enable) {
config = lib.mkIf (config.features.shells.zsh.enable || config.features.shells.defaultShell == "zsh") {
programs.zsh.enable = true;
home-manager.users.grey = lib.mkIf (config.features.nixos.home-manager.enable) {
@@ -11,7 +18,7 @@
};
flake.homeModules.global = { pkgs, config, lib, ... }: {
config = lib.mkIf (config.features.shells.zsh.enable) {
config = lib.mkIf (config.features.shells.zsh.enable || config.features.shells.defaultShell == "zsh") {
home.shell.enableZshIntegration = true;
programs.kitty.shellIntegration.enableZshIntegration = true;