From c9a3533312efd5bac1b19af4683b200534dc0cf5 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Mon, 20 Apr 2026 18:53:57 +0200 Subject: [PATCH] fix(nix): set warnings as top-level config Signed-off-by: Sefa Eyeoglu --- nix/home-module.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nix/home-module.nix b/nix/home-module.nix index c39f20097..6260ea9d9 100644 --- a/nix/home-module.nix +++ b/nix/home-module.nix @@ -182,13 +182,14 @@ in }; config = lib.mkIf cfg.enable { + warnings = lib.mkIf cfg.systemd.enable [ + '' + Running noctalia-shell as a systemd service has been deprecated! + See https://docs.noctalia.dev/getting-started/nixos/#running-the-shell for details. + '' + ]; + systemd.user.services.noctalia-shell = lib.mkIf cfg.systemd.enable { - warnings = [ - '' - Running noctalia-shell as a systemd service has been deprecated! - See https://docs.noctalia.dev/getting-started/nixos/#running-the-shell for details. - '' - ]; Unit = { Description = "Noctalia Shell - Wayland desktop shell"; Documentation = "https://docs.noctalia.dev";