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" ];