refactor(module): clean up some module inputs

feat(module): add use-lix option to nix module

feat(module): update fish config for catppuccin
This commit is contained in:
Jo 2024-09-10 10:46:16 +02:00
parent 3f767068d2
commit fde4abd59d
16 changed files with 173 additions and 115 deletions
modules/nixos/common/shell

View file

@ -18,17 +18,11 @@ let
in {
options.${namespace}.common.shell = {
enable = mkEnableOption "Modify the standard shell options";
package = mkOption {
type = types.str;
default = "fish";
example = "fish";
description = "Select an appropriate shell environment (bash, fish, zsh...)";
};
};
config = mkIf cfg.enable {
environment.shells = with pkgs; [ ${cfg.package} ];
users.defaultUserShell = pkgs.${cfg.package};
programs.${cfg.package}.enable = true;
environment.shells = with pkgs; [ fish ];
users.defaultUserShell = pkgs.fish;
programs.fish.enable = true;
};
}