Don't install kanshi on non-graphical installs.

This commit is contained in:
Tom Alexander 2025-01-23 20:20:08 -05:00
parent 3be710b4ad
commit e3fee206a1
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -17,6 +17,22 @@ in
{
imports = [ ];
options.me = {
kanshi.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install kanshi.";
};
};
config = lib.mkIf config.me.kanshi.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [
];
}
(lib.mkIf config.me.graphical {
environment.systemPackages = with pkgs; [
kanshi
];
@ -34,4 +50,7 @@ in
};
};
};
})
]
);
}