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