mirror of
https://github.com/nix-community/home-manager
synced 2024-12-02 16:09:46 +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";
|
time = "2021-07-14T20:06:18+00:00";
|
||||||
|
condition = hostPlatform.isLinux;
|
||||||
message = ''
|
message = ''
|
||||||
A new module is available: 'services.volnoti'.
|
A new module is available: 'services.volnoti'.
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -23,7 +23,13 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
assertions = [
|
||||||
|
(lib.hm.assertions.assertPlatform "services.volnoti" pkgs
|
||||||
|
lib.platforms.linux)
|
||||||
|
];
|
||||||
|
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
systemd.user.services.volnoti = {
|
systemd.user.services.volnoti = {
|
||||||
Unit = { Description = "volnoti"; };
|
Unit = { Description = "volnoti"; };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue