I'm so tired of all this crap...
Some checks failed
Test action / kaas (push) Failing after 0s

This commit is contained in:
Chris Kruining 2025-12-18 16:22:43 +01:00
parent 821767765f
commit 73929e0cf9
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 44 additions and 8 deletions

View file

@ -0,0 +1,32 @@
{
lib,
config,
namespace,
inputs,
...
}: let
inherit (lib) mkIf mkEnableOption mkForce;
cfg = config.${namespace}.desktop.cosmic;
in {
options.${namespace}.desktop.cosmic = {
enable =
mkEnableOption "Enable Cosmic desktop"
// {
default = config.${namespace}.desktop.use == "cosmic";
};
};
config = mkIf cfg.enable {
services = {
displayManager = {
cosmic-greeter.enable = true;
autoLogin = {
enable = true;
user = "chris";
};
};
desktopManager.cosmic.enable = true;
};
};
}