Rename modules/home to modules/home-manager
@@ -0,0 +1,39 @@
|
||||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
|
||||
cfg = config.modules.desktop;
|
||||
in
|
||||
{
|
||||
options.modules.desktop =
|
||||
with lib.frajul;
|
||||
with lib.types;
|
||||
{
|
||||
colorscheme = mkOpt str "catppuccin-mocha" "Theme to use for the desktop";
|
||||
enable = mkBoolOpt false "Enable desktop";
|
||||
};
|
||||
|
||||
# Do not make conditional, just toggle things on and off
|
||||
imports = [ inputs.nix-colors.homeManagerModules.default ];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
# home.sessionVariables.GTK_THEME = "Catppuccin-Mocha-Compact-Blue-dark";
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = inputs.nix-colors.colorschemes.${cfg.colorscheme}.slug;
|
||||
package = gtkThemeFromScheme { scheme = inputs.nix-colors.colorschemes.${cfg.colorscheme}; };
|
||||
};
|
||||
iconTheme = {
|
||||
name = "Papirus-Dark";
|
||||
package = pkgs.papirus-icon-theme;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 823 KiB |
|
After Width: | Height: | Size: 759 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 1024 KiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 499 KiB |
|
After Width: | Height: | Size: 607 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 719 KiB |
|
After Width: | Height: | Size: 464 KiB |
|
After Width: | Height: | Size: 831 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 354 KiB |
|
After Width: | Height: | Size: 861 KiB |
|
After Width: | Height: | Size: 98 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 267 KiB |
|
After Width: | Height: | Size: 239 KiB |
|
After Width: | Height: | Size: 299 KiB |
|
After Width: | Height: | Size: 10 MiB |
|
After Width: | Height: | Size: 2.7 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 4.0 MiB |
|
After Width: | Height: | Size: 261 KiB |
|
After Width: | Height: | Size: 269 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 216 KiB |
|
After Width: | Height: | Size: 342 KiB |
|
After Width: | Height: | Size: 412 KiB |
|
After Width: | Height: | Size: 595 KiB |