Skip to content

Commit 2c1808f

Browse files
authored
Merge pull request #2506 from Scrumplex/nix/fix-hm-systemd-warning
fix(nix): set warnings as top-level config
2 parents d7b6865 + c9a3533 commit 2c1808f

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

nix/home-module.nix

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,14 @@ in
182182
};
183183

184184
config = lib.mkIf cfg.enable {
185+
warnings = lib.mkIf cfg.systemd.enable [
186+
''
187+
Running noctalia-shell as a systemd service has been deprecated!
188+
See https://docs.noctalia.dev/getting-started/nixos/#running-the-shell for details.
189+
''
190+
];
191+
185192
systemd.user.services.noctalia-shell = lib.mkIf cfg.systemd.enable {
186-
warnings = [
187-
''
188-
Running noctalia-shell as a systemd service has been deprecated!
189-
See https://docs.noctalia.dev/getting-started/nixos/#running-the-shell for details.
190-
''
191-
];
192193
Unit = {
193194
Description = "Noctalia Shell - Wayland desktop shell";
194195
Documentation = "https://docs.noctalia.dev";

0 commit comments

Comments
 (0)