This commit is contained in:
Ryan 2024-05-01 04:19:12 +00:00 committed by GitHub
commit 305b374e04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 3 deletions

View File

@ -139,6 +139,14 @@ in {
};
gtk2 = {
force = mkOption {
type = types.bool;
default = false;
description = ''
Whether to force replace the existing configuration.
'';
};
extraConfig = mkOption {
type = types.lines;
default = "";
@ -269,9 +277,12 @@ in {
cfg.cursorTheme
];
home.file.${cfg2.configLocation}.text =
concatMapStrings (l: l + "\n") (mapAttrsToList formatGtk2Option gtkIni)
+ cfg2.extraConfig + "\n";
home.file.${cfg2.configLocation} = {
force = cfg2.force;
text =
concatMapStrings (l: l + "\n") (mapAttrsToList formatGtk2Option gtkIni)
+ cfg2.extraConfig + "\n";
};
home.sessionVariables.GTK2_RC_FILES = cfg2.configLocation;