volnoti: add platform assert

This commit is contained in:
Robert Helgesson 2021-07-24 00:37:06 +02:00
parent cc6909d407
commit 996b439739
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
2 changed files with 7 additions and 0 deletions

View File

@ -2136,6 +2136,7 @@ in
{
time = "2021-07-14T20:06:18+00:00";
condition = hostPlatform.isLinux;
message = ''
A new module is available: 'services.volnoti'.
'';

View File

@ -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"; };