From 0dcc3bab30e1a4c5cdf1856d32d1125d2a4f131a Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Tue, 16 Sep 2025 23:26:04 +0800 Subject: [PATCH] feat(cosmic): Add cosmic profile for Tytonidae --- .../Tytonidae/specialisation/cosmic.nix | 9 +++++++++ nixos/modules/gui/cosmic.nix | 16 +++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 nixos/configurations/Tytonidae/specialisation/cosmic.nix diff --git a/nixos/configurations/Tytonidae/specialisation/cosmic.nix b/nixos/configurations/Tytonidae/specialisation/cosmic.nix new file mode 100644 index 0000000..7a1ff3d --- /dev/null +++ b/nixos/configurations/Tytonidae/specialisation/cosmic.nix @@ -0,0 +1,9 @@ +{ lib, ... }: +{ + config.specialisation.cosmic = { + inheritParentConfig = true; + configuration = { + youthlic.gui.enabled = lib.mkForce "cosmic"; + }; + }; +} diff --git a/nixos/modules/gui/cosmic.nix b/nixos/modules/gui/cosmic.nix index 041e631..2c19e20 100644 --- a/nixos/modules/gui/cosmic.nix +++ b/nixos/modules/gui/cosmic.nix @@ -8,18 +8,12 @@ let in { config = lib.mkIf (cfg.enabled == "cosmic") { - # Enable the X11 windowing system. - # You can disable this if you're only using the Wayland session. - services.xserver = { - display = 0; - enable = true; - xkb = { - layout = "us"; - variant = ""; + services = { + desktopManager.cosmic = { + enable = true; + xwayland.enable = true; }; + displayManager.cosmic-greeter.enable = true; }; - - services.desktopManager.cosmic.enable = true; - services.displayManager.cosmic-greeter.enable = true; }; }