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,21 +17,40 @@ in
{ {
imports = [ ]; imports = [ ];
environment.systemPackages = with pkgs; [ options.me = {
kanshi kanshi.enable = lib.mkOption {
]; type = lib.types.bool;
default = false;
me.swayIncludes = [ example = true;
exec_kanshi description = "Whether we want to install kanshi.";
];
home-manager.users.talexander =
{ pkgs, ... }:
{
home.file = {
".config/kanshi/config" = {
source = ./files/config_kanshi;
};
};
}; };
};
config = lib.mkIf config.me.kanshi.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [
];
}
(lib.mkIf config.me.graphical {
environment.systemPackages = with pkgs; [
kanshi
];
me.swayIncludes = [
exec_kanshi
];
home-manager.users.talexander =
{ pkgs, ... }:
{
home.file = {
".config/kanshi/config" = {
source = ./files/config_kanshi;
};
};
};
})
]
);
} }