1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

modules: add platform assertions

This commit is contained in:
midchildan 2022-04-24 23:25:54 +09:00 committed by Robert Helgesson
parent d6b1d42682
commit 17dc593930
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
16 changed files with 82 additions and 0 deletions

View file

@ -27,6 +27,11 @@ in {
(mkIf cfg.enable {
home.packages = [ package ];
assertions = [
(hm.assertions.assertPlatform "services.kdeconnect" pkgs
platforms.linux)
];
systemd.user.services.kdeconnect = {
Unit = {
Description =
@ -46,6 +51,11 @@ in {
})
(mkIf cfg.indicator {
assertions = [
(hm.assertions.assertPlatform "services.kdeconnect" pkgs
platforms.linux)
];
systemd.user.services.kdeconnect-indicator = {
Unit = {
Description = "kdeconnect-indicator";