volnoti: add platform assert
This commit is contained in:
parent
cc6909d407
commit
996b439739
|
@ -2136,6 +2136,7 @@ in
|
|||
|
||||
{
|
||||
time = "2021-07-14T20:06:18+00:00";
|
||||
condition = hostPlatform.isLinux;
|
||||
message = ''
|
||||
A new module is available: 'services.volnoti'.
|
||||
'';
|
||||
|
|
|
@ -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"; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue