all repos — nixfiles @ 4de959a979b253ecc846b01330b407468e9bedc0

System and user configuration, managed by nix and home-manager

Move autorandr to system
Alan Pearce alan@alanpearce.eu
Tue, 15 Oct 2019 19:27:02 +0200
commit

4de959a979b253ecc846b01330b407468e9bedc0

parent

f54cbbbdb371148f89a7551f93158f0c552326da

A system/autorandr/docked-close/config
@@ -0,0 +1,20 @@+output DP-1
+off
+output HDMI-1
+off
+output DP-2
+off
+output HDMI-2
+off
+output DP-2-3
+off
+output eDP-1
+off
+output DP-2-1
+mode 2560x1440
+pos 1920x0
+rate 59.95
+output DP-2-2
+mode 2560x1440
+pos 4480x0
+rate 59.95
A system/autorandr/docked-open/config
@@ -0,0 +1,23 @@+output DP-1
+off
+output HDMI-1
+off
+output DP-2
+off
+output HDMI-2
+off
+output DP-2-3
+off
+output eDP-1
+mode 1920x1080
+pos 0x0
+primary
+rate 60.03
+output DP-2-1
+mode 2560x1440
+pos 1920x0
+rate 59.95
+output DP-2-2
+mode 2560x1440
+pos 4480x0
+rate 59.95
A system/autorandr/laptop/config
@@ -0,0 +1,19 @@+output DP-1
+off
+output HDMI-1
+off
+output DP-2
+off
+output HDMI-2
+off
+output DP-2-1
+off
+output DP-2-2
+off
+output DP-2-3
+off
+output eDP-1
+mode 1920x1080
+pos 0x0
+primary
+rate 60.03
A system/autorandr/work-1/config
@@ -0,0 +1,21 @@+output DP-1
+off
+output HDMI-1
+off
+output DP-2
+off
+output HDMI-2
+mode 1920x1200
+pos 0x0
+primary
+rate 59.95
+output DP-2-1
+off
+output DP-2-2
+off
+output DP-2-3
+off
+output eDP-1
+mode 1920x1080
+pos 1920x0
+rate 60.03
M system/settings/hardware/laptop.nixsystem/settings/hardware/laptop.nix
@@ -32,6 +32,11 @@   programs.light.enable = true;
 
   services.autorandr.enable = true;
+  environment.etc.autorandr = {
+    enable = true;
+    source = ../../autorandr;
+    target = "xdg/autorandr";
+  };
 
   services.logind.extraConfig = ''
     IdleAction=suspend
D user/autorandr/.config/autorandr/docked-close/config
@@ -1,23 +0,0 @@-output DP1
-off
-output DP2
-off
-output DP2-3
-off
-output HDMI1
-off
-output HDMI2
-off
-output VIRTUAL1
-off
-output eDP1
-off
-output DP2-1
-mode 2560x1440
-pos 0x0
-primary
-rate 59.95
-output DP2-2
-mode 2560x1440
-pos 2560x0
-rate 59.95
D user/autorandr/.config/autorandr/docked-open/config
@@ -1,25 +0,0 @@-output DP1
-off
-output DP2
-off
-output DP2-3
-off
-output HDMI1
-off
-output HDMI2
-off
-output VIRTUAL1
-off
-output DP2-1
-mode 2560x1440
-pos 0x0
-primary
-rate 59.95
-output DP2-2
-mode 2560x1440
-pos 2560x0
-rate 59.95
-output eDP1
-mode 1920x1080
-pos 1632x1440
-rate 60.03
D user/autorandr/.config/autorandr/laptop/config
@@ -1,15 +0,0 @@-output DP1
-off
-output DP2
-off
-output HDMI1
-off
-output HDMI2
-off
-output VIRTUAL1
-off
-output eDP1
-mode 1920x1080
-pos 0x0
-primary
-rate 60.03
D user/autorandr/.config/autorandr/work-1/config
@@ -1,17 +0,0 @@-output DP1
-off
-output DP2
-off
-output HDMI1
-off
-output VIRTUAL1
-off
-output HDMI2
-mode 1920x1200
-pos 0x0
-primary
-rate 59.95
-output eDP1
-mode 1920x1080
-pos 1920x0
-rate 60.03
M user/satoshipad.nixuser/satoshipad.nix
@@ -2,7 +2,6 @@ { config, pkgs, ... }: 
 {
   imports = [
-    ./settings/autorandr.nix
     ./settings/base.nix
     ./settings/development/base.nix
     ./settings/dunst.nix
D user/settings/autorandr.nix
@@ -1,8 +0,0 @@-{ config, pkgs, ... }:
-
-{
-  xdg.configFile.autorandr = {
-    recursive = true;
-    source = ../autorandr/.config/autorandr;
-  };
-}