From f1b1786ea77739dcd181b920d430e30fb1608b8a Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Tue, 24 Dec 2024 05:21:39 +0700 Subject: [PATCH] swayr: avoid IFD --- modules/programs/swayr.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/programs/swayr.nix b/modules/programs/swayr.nix index 250a3e01..c45ed063 100644 --- a/modules/programs/swayr.nix +++ b/modules/programs/swayr.nix @@ -6,8 +6,10 @@ let cfg = config.programs.swayr; tomlFormat = pkgs.formats.toml { }; configFile = tomlFormat.generate "config.toml" cfg.settings; - finalConfig = pkgs.writeText "swayr.toml" - ((builtins.readFile configFile) + cfg.extraConfig); + extraConfigFile = pkgs.writeText "extra-config.toml" cfg.extraConfig; + finalConfig = pkgs.runCommand "swayr.toml" { } '' + cat ${configFile} ${extraConfigFile} > $out + ''; in { meta.maintainers = [ lib.hm.maintainers."9p4" ];