From 3d6b7a306d6fffffdce263e8fbd3dfe83be0a60e Mon Sep 17 00:00:00 2001 From: bandithedoge Date: Tue, 21 Jul 2026 22:42:08 +0200 Subject: [PATCH] modules/swaync: fix partially applied formats.json and add check.nix --- modules/swaync/check.nix | 14 ++++++++++++++ modules/swaync/module.nix | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 modules/swaync/check.nix diff --git a/modules/swaync/check.nix b/modules/swaync/check.nix new file mode 100644 index 0000000..c56fb59 --- /dev/null +++ b/modules/swaync/check.nix @@ -0,0 +1,14 @@ +{ self, pkgs }: +let + swayncWrapped = + (self.wrapperModules.swaync.apply { + inherit pkgs; + configOptions = { + keyboard-shortcuts = false; + }; + }).wrapper; +in +pkgs.runCommand "test-swaync" { nativeBuildInputs = [ swayncWrapped ]; } '' + swaync -v | grep "${swayncWrapped.version}" + touch $out +'' diff --git a/modules/swaync/module.nix b/modules/swaync/module.nix index ba40d84..68fc176 100644 --- a/modules/swaync/module.nix +++ b/modules/swaync/module.nix @@ -5,7 +5,7 @@ ... }: let - jsonFmt = config.pkgs.formats.json; + jsonFmt = config.pkgs.formats.json { }; in { _class = "wrapper"; @@ -14,7 +14,7 @@ in type = jsonFmt.type; default = { }; description = '' - SwayNotificationCenter configuration file. + SwayNotificationCenter configuration file. See {manpage}`swaync(5)` ''; };