modules/kanshi: make hostname specific

This commit is contained in:
fleaz 2022-06-04 23:49:08 +00:00
parent da65cc93b8
commit ad6be150a3
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083

View file

@ -1,7 +1,17 @@
{ nixosConfig, ... }:
let
machines = {
milhouse = {
"laptop" = {
outputs = [
{
services.kanshi = {
enable = true;
profiles = {
criteria = "eDP-1";
scale = 1.0;
}
];
};
};
jimbo = {
"laptop" = {
outputs = [
{
@ -31,5 +41,12 @@
};
};
};
in
{
services.kanshi = {
enable = true;
#profiles = lookup machines "milhouse";
profiles = machines."${nixosConfig.networking.hostName}";
};
}