summary refs log tree commit diff
path: root/machines/bismuth
diff options
context:
space:
mode:
Diffstat (limited to 'machines/bismuth')
-rw-r--r--machines/bismuth/default.nix8
-rw-r--r--machines/bismuth/home.nix10
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";
 }