swayr: avoid IFD

This commit is contained in:
Shahar "Dawn" Or 2024-12-24 05:21:39 +07:00 committed by GitHub
parent 8264bfe3a0
commit f1b1786ea7
Failed to generate hash of commit

View file

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