Modules/Color: Add options for icon and cursor packages
This commit is contained in:
@ -63,7 +63,9 @@ in
|
|||||||
font = builtins.head nixosConfig.fonts.fontconfig.defaultFonts.monospace;
|
font = builtins.head nixosConfig.fonts.fontconfig.defaultFonts.monospace;
|
||||||
cursor = "miku-cursor-linux";
|
cursor = "miku-cursor-linux";
|
||||||
cursorSize = 64;
|
cursorSize = 64;
|
||||||
|
cursorPackage = inputs.waifu-cursors.packages.${pkgs.system}.all;
|
||||||
iconTheme = "Papirus";
|
iconTheme = "Papirus";
|
||||||
|
iconPackage = pkgs.papirus-icon-theme;
|
||||||
wallpaper = "Windows";
|
wallpaper = "Windows";
|
||||||
|
|
||||||
accent = "mauve";
|
accent = "mauve";
|
||||||
@ -100,6 +102,7 @@ in
|
|||||||
trails.enable = true;
|
trails.enable = true;
|
||||||
hyprspace.enable = false; # Always broken
|
hyprspace.enable = false; # Always broken
|
||||||
hyprpanel.enable = false;
|
hyprpanel.enable = false;
|
||||||
|
caelestia.enable = true;
|
||||||
|
|
||||||
keybindings = {
|
keybindings = {
|
||||||
main-mod = "SUPER";
|
main-mod = "SUPER";
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
}: let
|
}: let
|
||||||
inherit (config.modules) color;
|
inherit (config.modules) color;
|
||||||
in {
|
in {
|
||||||
options.modules.color = import ./options.nix {inherit lib mylib;};
|
options.modules.color = import ./options.nix {inherit lib mylib pkgs;};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
home.packages = let
|
home.packages = let
|
||||||
@ -54,6 +54,8 @@ in {
|
|||||||
[
|
[
|
||||||
applyColors
|
applyColors
|
||||||
printNixColors
|
printNixColors
|
||||||
|
color.iconPackage
|
||||||
|
color.cursorPackage
|
||||||
]
|
]
|
||||||
++ color.extraPackages;
|
++ color.extraPackages;
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
mylib,
|
mylib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
colorKeys = [
|
colorKeys = [
|
||||||
@ -64,6 +65,13 @@ in rec {
|
|||||||
default = 24;
|
default = 24;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cursorPackage = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
description = "The cursor package";
|
||||||
|
example = pkgs.bibata-cursors;
|
||||||
|
default = pkgs.bibata-cursors;
|
||||||
|
};
|
||||||
|
|
||||||
iconTheme = lib.mkOption {
|
iconTheme = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "The icon theme to use";
|
description = "The icon theme to use";
|
||||||
@ -71,6 +79,13 @@ in rec {
|
|||||||
default = "Papirus";
|
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 {
|
extraPackages = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.package;
|
type = lib.types.listOf lib.types.package;
|
||||||
description = "Extra packages to install";
|
description = "Extra packages to install";
|
||||||
|
|||||||
@ -34,11 +34,15 @@ in {
|
|||||||
assertion = builtins.hasAttr "hyprlock" nixosConfig.security.pam.services;
|
assertion = builtins.hasAttr "hyprlock" nixosConfig.security.pam.services;
|
||||||
message = "Can't enable Hyprland module without Hyprlock PAM service!";
|
message = "Can't enable Hyprland module without Hyprlock PAM service!";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
assertion = hyprland.hyprpanel.enable != hyprland.caelestia.enable;
|
||||||
|
message = "Can't enable Hyprpanel and Caelestia at the same time!";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# iconTheme.package = lib.mkDefault pkgs.papirus-icon-theme;
|
iconTheme.package = lib.mkDefault color.iconPackage;
|
||||||
iconTheme.name = color.iconTheme;
|
iconTheme.name = color.iconTheme;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -50,7 +54,7 @@ in {
|
|||||||
pointerCursor = {
|
pointerCursor = {
|
||||||
gtk.enable = lib.mkDefault true;
|
gtk.enable = lib.mkDefault true;
|
||||||
x11.enable = lib.mkDefault true;
|
x11.enable = lib.mkDefault true;
|
||||||
# package = lib.mkDefault pkgs.bibata-cursors;
|
package = lib.mkDefault color.cursorPackage;
|
||||||
name = color.cursor;
|
name = color.cursor;
|
||||||
size = color.cursorSize;
|
size = color.cursorSize;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
}: {
|
}: {
|
||||||
enable = hyprland.dunst.enable;
|
enable = hyprland.dunst.enable;
|
||||||
|
|
||||||
# iconTheme.package = pkgs.papirus-icon-theme;
|
iconTheme.package = color.iconPackage;
|
||||||
iconTheme.name = color.iconTheme;
|
iconTheme.name = color.iconTheme;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@ -21,7 +21,7 @@ in {
|
|||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# iconTheme.package = pkgs.papirus-icon-theme;
|
iconTheme.package = color.iconPackage;
|
||||||
iconTheme.name = color.iconTheme;
|
iconTheme.name = color.iconTheme;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ in {
|
|||||||
pointerCursor = {
|
pointerCursor = {
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
x11.enable = true;
|
x11.enable = true;
|
||||||
# package = inputs.waifu-cursors.packages.${pkgs.system}.all;
|
package = color.cursorPackage;
|
||||||
name = color.cursor;
|
name = color.cursor;
|
||||||
size = color.cursorSize;
|
size = color.cursorSize;
|
||||||
};
|
};
|
||||||
|
|||||||
@ -24,7 +24,7 @@ in {
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
modi = "run,drun,ssh,filebrowser";
|
modi = "run,drun,ssh,filebrowser";
|
||||||
show-icons = true;
|
show-icons = true;
|
||||||
icon-theme = "Papirus";
|
icon-theme = color.iconTheme;
|
||||||
drun-display-format = "{icon} {name}";
|
drun-display-format = "{icon} {name}";
|
||||||
disable-history = false;
|
disable-history = false;
|
||||||
hide-scrollbar = true;
|
hide-scrollbar = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user