diff --git a/modules/misc/news.nix b/modules/misc/news.nix index bda956fab..ae63cd2a6 100644 --- a/modules/misc/news.nix +++ b/modules/misc/news.nix @@ -2136,6 +2136,7 @@ in { time = "2021-07-14T20:06:18+00:00"; + condition = hostPlatform.isLinux; message = '' A new module is available: 'services.volnoti'. ''; diff --git a/modules/services/volnoti.nix b/modules/services/volnoti.nix index c788a5db3..466fe4a5c 100644 --- a/modules/services/volnoti.nix +++ b/modules/services/volnoti.nix @@ -23,7 +23,13 @@ in { }; config = mkIf cfg.enable { + assertions = [ + (lib.hm.assertions.assertPlatform "services.volnoti" pkgs + lib.platforms.linux) + ]; + home.packages = [ cfg.package ]; + systemd.user.services.volnoti = { Unit = { Description = "volnoti"; };