nixos-config/users/simon/modules/sway/kanshi.nix

27 lines
609 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, nixosConfig, ... }:
let
getMachineConfig = machine:
if lib.hasAttr machine machineConfigs
then lib.getAttr machine machineConfigs
else { };
machineConfigs = {
# mayushii is handled separately in sways main configuration.
# See it for more details.
# mayushii = { };
sayuri = {
home.outputs = lib.singleton {
criteria = "Acer Technologies Acer B277K 0x0000F36C";
mode = "3840x2160";
scale = 2.0;
};
};
};
in
{
services.kanshi = {
enable = true;
profiles = getMachineConfig (nixosConfig.networking.hostName);
};
}