diff options
| author | Mel <mel@rnrd.eu> | 2026-01-11 18:30:12 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-01-11 18:39:05 +0100 |
| commit | e969da0511ace3d0910f464eacc1b4db4c2ff93f (patch) | |
| tree | b412b55a0f66668d9a8bf9e1a45ba89d745df3a3 /machines/bismuth | |
| parent | 6fdc47c9606ddd298c7c9e5f9b83ec095e89998b (diff) | |
| download | minerals-e969da0511ace3d0910f464eacc1b4db4c2ff93f.tar.zst minerals-e969da0511ace3d0910f464eacc1b4db4c2ff93f.zip | |
Update Bismuth monitor layout
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/bismuth')
| -rw-r--r-- | machines/bismuth/default.nix | 8 | ||||
| -rw-r--r-- | machines/bismuth/home.nix | 10 |
2 files changed, 14 insertions, 4 deletions
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"; } |
