This commit is contained in:
shinya 2025-10-27 15:02:45 +01:00
parent 98ffbc9c9d
commit f4003b193f

View File

@ -22,7 +22,7 @@
theme = { theme = {
enable = lib.mkEnableOption "enable windows xp gtk theme for mate"; enable = lib.mkEnableOption "enable windows xp gtk theme for mate";
name = lib.mkOption { name = lib.mkOption {
type = lib.types.enum [ "Windows XP Luna" "Windows XP Embedded" "Windows XP Homestead Windows XP Metallic" "Windows XP Royale" "Windows XP Royale Dark" "Windows XP Zune" ]; type = lib.types.enum [ "Windows XP Luna" "Windows XP Embedded" "Windows XP Homestead" "Windows XP Metallic" "Windows XP Royale" "Windows XP Royale Dark" "Windows XP Zune" ];
default = "Windows XP Luna"; default = "Windows XP Luna";
description = "set the windows xp gtk theme for mate"; description = "set the windows xp gtk theme for mate";
}; };
@ -163,18 +163,18 @@
(lib.mkIf config.nixp.mate.theme.enable { (lib.mkIf config.nixp.mate.theme.enable {
dconf.settings = { dconf.settings = {
"org/mate/desktop/interface" = { "org/mate/desktop/interface" = {
gtk-theme = "${config.nixp.mate.theme.name}"; gtk-theme = config.nixp.mate.theme.name;
icon-theme = "windows-xp-icon-theme"; icon-theme = "windows-xp-icon-theme";
}; };
"org/mate/marco/general" = { "org/mate/marco/general" = {
theme = "${config.nixp.mate.theme.name}"; theme = config.nixp.mate.theme.name;
}; };
}; };
gtk = { gtk = {
theme = { theme = {
name = "${config.nixp.theme.name}"; name = config.nixp.theme.name;
package = windows-theme.packages.${system}.windows-xp-theme; package = windows-theme.packages.${system}.windows-xp-theme;
}; };
}; };