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:
parent
d6b1d42682
commit
17dc593930
16 changed files with 82 additions and 0 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue