summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2017-06-10 11:00:53 +0100
committerGitHub <noreply@github.com>2017-06-10 11:00:53 +0100
commitfbe658eea073cb36a7740c2f76f428c6ac792e73 (patch)
treebcbadf3aa18eff697231f5b940984ef0f899c5c1 /nixos/modules
parent3f0db2794fa7f002c264a5c449f93af75ffbe1f1 (diff)
parent451de09f513aca784837902082729e4cc8eca4ea (diff)
downloadnixlib-fbe658eea073cb36a7740c2f76f428c6ac792e73.tar
nixlib-fbe658eea073cb36a7740c2f76f428c6ac792e73.tar.gz
nixlib-fbe658eea073cb36a7740c2f76f428c6ac792e73.tar.bz2
nixlib-fbe658eea073cb36a7740c2f76f428c6ac792e73.tar.lz
nixlib-fbe658eea073cb36a7740c2f76f428c6ac792e73.tar.xz
nixlib-fbe658eea073cb36a7740c2f76f428c6ac792e73.tar.zst
nixlib-fbe658eea073cb36a7740c2f76f428c6ac792e73.zip
Merge pull request #26296 from gnidorah/master3
autorandr: 855c18b -> 1.1
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/misc/autorandr.nix14
1 files changed, 2 insertions, 12 deletions
diff --git a/nixos/modules/services/misc/autorandr.nix b/nixos/modules/services/misc/autorandr.nix
index 6746f3fec698..792a4c8375d9 100644
--- a/nixos/modules/services/misc/autorandr.nix
+++ b/nixos/modules/services/misc/autorandr.nix
@@ -22,19 +22,9 @@ in {
 
     environment.systemPackages = [ pkgs.autorandr ];
 
-    # systemd.unitPackages = [ pkgs.autorandr ];
+    systemd.packages = [ pkgs.autorandr ];
+
     systemd.services.autorandr = {
-      unitConfig = {
-        Description = "autorandr execution hook";
-        After = [ "sleep.target" ];
-        StartLimitInterval = "5";
-        StartLimitBurst = "1";
-      };
-      serviceConfig = {
-        ExecStart = "${pkgs.autorandr}/bin/autorandr --batch --change --default default";
-        Type = "oneshot";
-        RemainAfterExit = false;
-      };
       wantedBy = [ "sleep.target" ];
     };