Disable Linux-only modules on Darwin (#130)

Fixes #129

Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
This commit is contained in:
Bernardo Meurer 2023-07-22 08:29:12 -04:00 committed by GitHub
parent dcf3bcf0ba
commit 34a6d389f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ let
in { in {
options.stylix.targets.kde.enable = 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 { config = lib.mkIf config.stylix.targets.kde.enable {
qt = { qt = {

View file

@ -1,4 +1,4 @@
{ options, config, lib, ... }: { pkgs, options, config, lib, ... }:
with config.lib.stylix.colors; with config.lib.stylix.colors;
@ -12,7 +12,7 @@ let
in { in {
options.stylix.targets.swaylock = { options.stylix.targets.swaylock = {
enable = config.lib.stylix.mkEnableTarget "Swaylock" true; enable = config.lib.stylix.mkEnableTarget "Swaylock" pkgs.stdenv.hostPlatform.isLinux;
useImage = lib.mkOption { useImage = lib.mkOption {
description = lib.mdDoc '' description = lib.mdDoc ''
Whether to use your wallpaper image for the Swaylock background. Whether to use your wallpaper image for the Swaylock background.