This repository has been archived on 2024-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
desktop_nixos_config_legacy/home/gui/autorandr.nix

18 lines
332 B
Nix

{
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;
};
};
}