1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

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