mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
volnoti: add platform assert
This commit is contained in:
parent
cc6909d407
commit
996b439739
2 changed files with 7 additions and 0 deletions
|
@ -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