2024-01-06 01:19:35 +01:00
|
|
|
|
# SPDX-FileCopyrightText: 2021-2022 Simon Bruder <simon@sbruder.de>
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
2021-07-17 14:10:02 +02:00
|
|
|
|
{ lib, nixosConfig, ... }:
|
|
|
|
|
let
|
|
|
|
|
getMachineConfig = machine:
|
|
|
|
|
if lib.hasAttr machine machineConfigs
|
|
|
|
|
then lib.getAttr machine machineConfigs
|
|
|
|
|
else { };
|
|
|
|
|
|
|
|
|
|
machineConfigs = {
|
2022-08-25 14:49:31 +02:00
|
|
|
|
# mayushii is handled separately in sway’s main configuration.
|
|
|
|
|
# See it for more details.
|
|
|
|
|
# mayushii = { };
|
2022-12-30 19:52:58 +01:00
|
|
|
|
hitagi = {
|
2022-01-15 15:09:38 +01:00
|
|
|
|
home.outputs = lib.singleton {
|
|
|
|
|
criteria = "Acer Technologies Acer B277K 0x0000F36C";
|
|
|
|
|
mode = "3840x2160";
|
|
|
|
|
scale = 2.0;
|
|
|
|
|
};
|
|
|
|
|
};
|
2021-07-17 14:10:02 +02:00
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
services.kanshi = {
|
|
|
|
|
enable = true;
|
|
|
|
|
profiles = getMachineConfig (nixosConfig.networking.hostName);
|
|
|
|
|
};
|
|
|
|
|
}
|