swayr: avoid IFD
This commit is contained in:
parent
8264bfe3a0
commit
f1b1786ea7
1 changed files with 4 additions and 2 deletions
|
@ -6,8 +6,10 @@ let
|
||||||
cfg = config.programs.swayr;
|
cfg = config.programs.swayr;
|
||||||
tomlFormat = pkgs.formats.toml { };
|
tomlFormat = pkgs.formats.toml { };
|
||||||
configFile = tomlFormat.generate "config.toml" cfg.settings;
|
configFile = tomlFormat.generate "config.toml" cfg.settings;
|
||||||
finalConfig = pkgs.writeText "swayr.toml"
|
extraConfigFile = pkgs.writeText "extra-config.toml" cfg.extraConfig;
|
||||||
((builtins.readFile configFile) + cfg.extraConfig);
|
finalConfig = pkgs.runCommand "swayr.toml" { } ''
|
||||||
|
cat ${configFile} ${extraConfigFile} > $out
|
||||||
|
'';
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ lib.hm.maintainers."9p4" ];
|
meta.maintainers = [ lib.hm.maintainers."9p4" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue