1
0
Fork 0
forked from fabian/nix_config
nix_config_fabian/home/gui/autorandr.nix

18 lines
332 B
Nix
Raw Normal View History

2024-09-05 20:28:09 +02:00
{
config,
pkgs,
lib,
...
}:
with lib; let
cfg = config.local.gui.autorandr;
in {
options.local.gui.autorandr.enable = mkEnableOption "Autorandr";
config = mkIf cfg.enable {
programs.autorandr = {
enable = true;
profiles."${config.local.platform}" = config.local.display.autorandrProfile;
};
};
}