From 34a6d389f34b2548b3ae9fad77508620a0358817 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Sat, 22 Jul 2023 08:29:12 -0400 Subject: [PATCH] Disable Linux-only modules on Darwin (#130) Fixes #129 Co-authored-by: Daniel Thwaites --- modules/kde/hm.nix | 2 +- modules/swaylock/hm.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/kde/hm.nix b/modules/kde/hm.nix index 9777024..9f54570 100644 --- a/modules/kde/hm.nix +++ b/modules/kde/hm.nix @@ -134,7 +134,7 @@ let in { options.stylix.targets.kde.enable = - config.lib.stylix.mkEnableTarget "KDE" true; + config.lib.stylix.mkEnableTarget "KDE" pkgs.stdenv.hostPlatform.isLinux; config = lib.mkIf config.stylix.targets.kde.enable { qt = { diff --git a/modules/swaylock/hm.nix b/modules/swaylock/hm.nix index d4adc6d..f8794f3 100644 --- a/modules/swaylock/hm.nix +++ b/modules/swaylock/hm.nix @@ -1,4 +1,4 @@ -{ options, config, lib, ... }: +{ pkgs, options, config, lib, ... }: with config.lib.stylix.colors; @@ -12,7 +12,7 @@ let in { options.stylix.targets.swaylock = { - enable = config.lib.stylix.mkEnableTarget "Swaylock" true; + enable = config.lib.stylix.mkEnableTarget "Swaylock" pkgs.stdenv.hostPlatform.isLinux; useImage = lib.mkOption { description = lib.mdDoc '' Whether to use your wallpaper image for the Swaylock background.