Modules/Color: Add options for icon and cursor packages
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
}: let
|
||||
inherit (config.modules) color;
|
||||
in {
|
||||
options.modules.color = import ./options.nix {inherit lib mylib;};
|
||||
options.modules.color = import ./options.nix {inherit lib mylib pkgs;};
|
||||
|
||||
config = {
|
||||
home.packages = let
|
||||
@ -54,6 +54,8 @@ in {
|
||||
[
|
||||
applyColors
|
||||
printNixColors
|
||||
color.iconPackage
|
||||
color.cursorPackage
|
||||
]
|
||||
++ color.extraPackages;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
mylib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
colorKeys = [
|
||||
@ -64,6 +65,13 @@ in rec {
|
||||
default = 24;
|
||||
};
|
||||
|
||||
cursorPackage = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
description = "The cursor package";
|
||||
example = pkgs.bibata-cursors;
|
||||
default = pkgs.bibata-cursors;
|
||||
};
|
||||
|
||||
iconTheme = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The icon theme to use";
|
||||
@ -71,6 +79,13 @@ in rec {
|
||||
default = "Papirus";
|
||||
};
|
||||
|
||||
iconPackage = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
description = "The icon theme package";
|
||||
example = pkgs.papirus-icon-theme;
|
||||
default = pkgs.papirus-icon-theme;
|
||||
};
|
||||
|
||||
extraPackages = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
description = "Extra packages to install";
|
||||
|
||||
Reference in New Issue
Block a user