From 40ebb62101c83de81e5fd7c3cfe5cea2ed21b1ad Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sat, 15 Apr 2023 17:04:14 +0200 Subject: [PATCH] swaylock: add platform assertion --- modules/programs/swaylock.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/programs/swaylock.nix b/modules/programs/swaylock.nix index cb68d9761..9299e6459 100644 --- a/modules/programs/swaylock.nix +++ b/modules/programs/swaylock.nix @@ -40,6 +40,11 @@ in { }; config = mkIf cfg.enable { + assertions = [ + (lib.hm.assertions.assertPlatform "programs.swaylock" pkgs + lib.platforms.linux) + ]; + home.packages = [ cfg.package ]; xdg.configFile."swaylock/config" = mkIf (cfg.settings != { }) {