1

Modules/Color: Configure iconTheme and cursor using color module

This commit is contained in:
2025-11-14 14:19:57 +01:00
parent a9a7115774
commit a27dc9859b
7 changed files with 240 additions and 182 deletions

View File

@ -50,10 +50,12 @@ in {
|> builtins.concatStringsSep "\n")
''echo ${lib.concatStrings (lib.replicate 20 "=")}''
]);
in [
applyColors
printNixColors
];
in
[
applyColors
printNixColors
]
++ color.extraPackages;
# This module sets its own options to the values specified in a colorscheme file.
modules.color = let

View File

@ -50,6 +50,38 @@ in rec {
default = "JetBrainsMono Nerd Font Mono";
};
cursor = lib.mkOption {
type = lib.types.str;
description = "The cursor to use";
example = "Bibata-Modern-Classic";
default = "Bibata-Modern-Classic";
};
cursorSize = lib.mkOption {
type = lib.types.int;
description = "The cursor size";
example = 24;
default = 24;
};
iconTheme = lib.mkOption {
type = lib.types.str;
description = "The icon theme to use";
example = "Papirus";
default = "Papirus";
};
extraPackages = lib.mkOption {
type = lib.types.listOf lib.types.package;
description = "Extra packages to install";
example = ''
[
pkgs.bibata-cursors
]
'';
default = [];
};
# This option is set automatically
wallpapers = let
# Collect all the available wallpapers.