mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-01 06:31:04 +01:00
home-manager: add force option for gtk-2 config (#7073)
This adds gtk.gtk2.force enable option which maps directly onto home.files.${cfg2.configLocation}.force to allow overwrite of the gtkrc-2.0 file (workaround for bug #6188).
This commit is contained in:
parent
65d2282ff6
commit
d3f5d870e3
1 changed files with 10 additions and 4 deletions
|
|
@ -169,6 +169,8 @@ in
|
||||||
The location to put the GTK configuration file.
|
The location to put the GTK configuration file.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
force = lib.mkEnableOption "GTK 2 config force overwrite without creating a backup";
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk3 = {
|
gtk3 = {
|
||||||
|
|
@ -294,10 +296,14 @@ in
|
||||||
cfg.cursorTheme
|
cfg.cursorTheme
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file.${cfg2.configLocation}.text =
|
home.file.${cfg2.configLocation} = {
|
||||||
lib.concatMapStrings (l: l + "\n") (lib.mapAttrsToList formatGtk2Option gtkIni)
|
text =
|
||||||
+ cfg2.extraConfig
|
lib.concatMapStrings (l: l + "\n") (lib.mapAttrsToList formatGtk2Option gtkIni)
|
||||||
+ "\n";
|
+ cfg2.extraConfig
|
||||||
|
+ "\n";
|
||||||
|
|
||||||
|
inherit (cfg2) force;
|
||||||
|
};
|
||||||
|
|
||||||
home.sessionVariables.GTK2_RC_FILES = cfg2.configLocation;
|
home.sessionVariables.GTK2_RC_FILES = cfg2.configLocation;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue