From 996b43973969b3453e23dd06d2fc19765fb31e9d Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 24 Jul 2021 00:37:06 +0200 Subject: [PATCH] volnoti: add platform assert --- modules/misc/news.nix | 1 + modules/services/volnoti.nix | 6 ++++++ 2 files changed, 7 insertions(+) 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"; };