From e969da0511ace3d0910f464eacc1b4db4c2ff93f Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 11 Jan 2026 18:30:12 +0100 Subject: Update Bismuth monitor layout Signed-off-by: Mel --- machines/bismuth/default.nix | 8 ++++---- machines/bismuth/home.nix | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'machines') diff --git a/machines/bismuth/default.nix b/machines/bismuth/default.nix index 02fda0f..a70d93c 100644 --- a/machines/bismuth/default.nix +++ b/machines/bismuth/default.nix @@ -15,10 +15,10 @@ ]; # set monitor configuration for gdm - # NOTE: maybe also use this for ~/.config/monitors.xml? - systemd.tmpfiles.rules = [ - "L+ /run/gdm/.config/monitors.xml - - - - ${../../configs/monitors.xml}" - ]; + # see ./home.nix for user session monitors + environment.etc = { + "xdg/monitors.xml".source = ../../configs/monitors.xml; + }; system.stateVersion = "23.11"; } diff --git a/machines/bismuth/home.nix b/machines/bismuth/home.nix index 2ba6f25..1eb223e 100644 --- a/machines/bismuth/home.nix +++ b/machines/bismuth/home.nix @@ -5,5 +5,15 @@ ../../modules/home/common.nix ]; + xdg.configFile = { + # monitor configuration for user, for user session and shell + # gdm runs outside of the user session, and we also set monitors + # for it, in ./default.nix + "monitors.xml" = { + source = ../../configs/monitors.xml; + force = true; # overwrite on change so that the source of truth is the declarative version + }; + }; + home.stateVersion = "23.11"; } -- cgit 1.4.1