Add Catppuccin theme, home-manage sops-nix integration and update

system modules
This commit is contained in:
Jo 2025-05-12 00:20:08 +02:00
parent fa3bbb2f6f
commit 4dd0860251
12 changed files with 298 additions and 19 deletions

View file

@ -13,13 +13,13 @@
in {
options.${namespace}.system.shell = {
enable = mkEnableOption "custom user shells.";
installed = mkOpt types.listOf types.package [pkgs.fish] "List of shell packages to install";
installed = mkOpt (types.listOf types.package) [pkgs.fish] "List of shell packages to install";
default = mkOpt types.str "fish" "Set a custom shell as the default for all users.";
};
config = mkIf cfg.enable {
environment.shells = cfg.installed;
users.defaultUserShell = pkgs.${cfg.shell.type};
programs.${cfg.shell.type}.enable = true;
users.defaultUserShell = pkgs.${cfg.default};
programs.${cfg.default}.enable = true;
};
}

View file

@ -3,6 +3,7 @@
self,
pkgs,
config,
inputs,
...
}: let
inherit (lib) types mkEnableOption mkOption mkIf;
@ -66,7 +67,7 @@ in {
mkIf (userConfig.enable && homeConfigExists username) (
{osConfig, ...}: {
# Import user home configuration and general home modules
imports = [(getHomeConfigPath username)] ++ homeModules;
imports = [(getHomeConfigPath username) inputs.sops-nix.homeManagerModules.sops inputs.catppuccin.homeModules.default] ++ homeModules;
home.stateVersion = lib.mkDefault osConfig.system.stateVersion;
}