Skip to content

Commit

Permalink
fix(gnome): workaround for monitors.xml issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Dec 15, 2024
1 parent f6ebb5e commit 9d9bf6e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions home-manager/modules/gnome/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@ if isLinux then {
Categories=Network;InstantMessaging;Chat;
'';
} // lib.attrsets.optionalAttrs (!isThinkpad) {
# On desktop, statically configure monitors
"monitors.xml".source = ../../../conf.d/gnome-monitors.xml;
"monitors.xml" = {
# On desktop, statically configure monitors
source = ../../../conf.d/gnome-monitors.xml;
# for whatever reason home-manager has issues with this
# and thinks it will clobber the file, but it's the one
# generating the file; just delete the backup as a workaround
onChange = ''
rm -f /home/mat/.config/monitors.xml.backup /home/mat/.config/monitors.xml~
'';
};
};
} else
{ }

0 comments on commit 9d9bf6e

Please sign in to comment.