From 0dcc3bab30e1a4c5cdf1856d32d1125d2a4f131a Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Tue, 16 Sep 2025 23:26:04 +0800 Subject: [PATCH 1/3] 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; }; } From 428d394465513aec89b7f12182b514da759b0de7 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Tue, 16 Sep 2025 23:30:53 +0800 Subject: [PATCH 2/3] feat: Add seahorse to manage secrets with gnome-keyring --- home/david/modules/programs/niri/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/david/modules/programs/niri/default.nix b/home/david/modules/programs/niri/default.nix index 76d72d3..95fe8b8 100644 --- a/home/david/modules/programs/niri/default.nix +++ b/home/david/modules/programs/niri/default.nix @@ -50,6 +50,7 @@ in wl-clipboard cliphist swayimg + seahorse ]) ++ [ niri ]; qt = { From 105d1c771de215a5f74607a23c73427a5ec357f4 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Tue, 16 Sep 2025 23:34:31 +0800 Subject: [PATCH 3/3] feat(niri): improve window-rule for steam notification windows --- home/david/modules/programs/niri/config.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/david/modules/programs/niri/config.nix b/home/david/modules/programs/niri/config.nix index 45f411b..bccbbb0 100644 --- a/home/david/modules/programs/niri/config.nix +++ b/home/david/modules/programs/niri/config.nix @@ -641,15 +641,15 @@ in (match [ { app-id = "^steam$"; - title = "^notification.*$"; + title = "^notificationtoasts_\\d+_desktop$"; } ]) (leaf "open-floating" [ true ]) (leaf "open-focused" [ false ]) (leaf "default-floating-position" [ { - x = 0; - y = 0; + x = 10; + y = 10; "relative-to" = "bottom-right"; } ])