2022-11-30 01:16:50 +01:00
|
|
|
{ config, pkgs, lib, ... } :
|
|
|
|
with lib;
|
2022-11-30 04:29:21 +01:00
|
|
|
let
|
|
|
|
cfg = config.local.gui.autorandr;
|
|
|
|
in
|
2022-11-30 01:16:50 +01:00
|
|
|
{
|
2022-11-30 04:29:21 +01:00
|
|
|
options.local.gui.autorandr.enable = mkEnableOption "Autorandr";
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.autorandr = {
|
|
|
|
enable = true;
|
|
|
|
profiles."${config.local.platform}" = config.local.display.autorandrProfile;
|
|
|
|
};
|
2022-11-30 01:55:34 +01:00
|
|
|
};
|
2022-11-30 01:16:50 +01:00
|
|
|
}
|