disable kde on non-graphical systems

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-23 21:05:51 +01:00
parent b7714d7411
commit c0569e59ed
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 6 additions and 2 deletions

View file

@ -4,6 +4,7 @@ _: {
./editors
./ssh
./desktop
./stylix
];
home-manager.users.root.imports = [
./home-manager.nix

View file

@ -11,7 +11,6 @@
./pipewire.nix
./firefox/system.nix
stylix.nixosModules.stylix
./stylix
];
home-manager.users.darkkirb.imports =
if config.isGraphical then

View file

@ -80,7 +80,8 @@ let
};
in
{
home-manager.users.root.stylix.enable = lib.mkForce false;
home-manager.users.root.stylix.targets.kde.enable = lib.mkForce false;
home-manager.users.darkkirb.stylix.targets.kde.enable = config.isGraphical;
stylix = {
enable = true;
image = bgPng;
@ -108,5 +109,8 @@ in
name = "Noto Color Emoji";
};
};
targets = {
kde.enable = config.isGraphical;
};
};
}