Modules/Color: Don't install icon/cursor packages on headless systems
This commit is contained in:
@ -53,25 +53,28 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
color = {
|
color = {
|
||||||
|
installPackages = !headless;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
bibata-cursors
|
bibata-cursors
|
||||||
inputs.waifu-cursors.packages.${pkgs.system}.all
|
inputs.waifu-cursors.packages.${pkgs.system}.all
|
||||||
];
|
];
|
||||||
|
|
||||||
scheme = "catppuccin-mocha";
|
|
||||||
font = builtins.head nixosConfig.fonts.fontconfig.defaultFonts.monospace;
|
|
||||||
cursor = "Bibata-Modern-Classic";
|
cursor = "Bibata-Modern-Classic";
|
||||||
cursorSize = 24;
|
cursorSize = 24;
|
||||||
cursorPackage = pkgs.bibata-cursors;
|
cursorPackage = pkgs.bibata-cursors;
|
||||||
|
|
||||||
iconTheme = "Papirus";
|
iconTheme = "Papirus";
|
||||||
iconPackage = pkgs.papirus-icon-theme;
|
iconPackage = pkgs.papirus-icon-theme;
|
||||||
wallpaper = "Windows";
|
|
||||||
|
|
||||||
|
scheme = "catppuccin-mocha";
|
||||||
accent = "mauve";
|
accent = "mauve";
|
||||||
accentHl = "pink";
|
accentHl = "pink";
|
||||||
accentDim = "lavender";
|
accentDim = "lavender";
|
||||||
accentText = "base";
|
accentText = "base";
|
||||||
|
|
||||||
|
wallpaper = "Windows";
|
||||||
|
font = builtins.head nixosConfig.fonts.fontconfig.defaultFonts.monospace;
|
||||||
};
|
};
|
||||||
|
|
||||||
docs.enable = !headless;
|
docs.enable = !headless;
|
||||||
|
|||||||
@ -54,10 +54,9 @@ in {
|
|||||||
[
|
[
|
||||||
applyColors
|
applyColors
|
||||||
printNixColors
|
printNixColors
|
||||||
color.iconPackage
|
|
||||||
color.cursorPackage
|
|
||||||
]
|
]
|
||||||
++ color.extraPackages;
|
++ (lib.optionals color.installPackages [color.iconPackage color.cursorPackage])
|
||||||
|
++ (lib.optionals color.installPackages color.extraPackages);
|
||||||
|
|
||||||
# This module sets its own options to the values specified in a colorscheme file.
|
# This module sets its own options to the values specified in a colorscheme file.
|
||||||
modules.color = let
|
modules.color = let
|
||||||
|
|||||||
@ -97,6 +97,8 @@ in rec {
|
|||||||
default = [];
|
default = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
installPackages = lib.mkEnableOption "Install cursor and icon themes";
|
||||||
|
|
||||||
# This option is set automatically
|
# This option is set automatically
|
||||||
wallpapers = let
|
wallpapers = let
|
||||||
# Collect all the available wallpapers.
|
# Collect all the available wallpapers.
|
||||||
|
|||||||
Reference in New Issue
Block a user