nixpkgs/nixos/modules/services/misc/autorandr.nix

35 lines
545 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.autorandr;
in {
options = {
services.autorandr = {
enable = mkEnableOption "handling of hotplug and sleep events by autorandr";
};
};
config = mkIf cfg.enable {
services.udev.packages = [ pkgs.autorandr ];
environment.systemPackages = [ pkgs.autorandr ];
2017-06-07 06:23:36 -04:00
systemd.packages = [ pkgs.autorandr ];
systemd.services.autorandr = {
wantedBy = [ "sleep.target" ];
};
};
2017-07-23 05:56:04 -04:00
meta.maintainers = with maintainers; [ gnidorah ];
}