aerospace: don't use ifd
This commit is contained in:
parent
b8082c6803
commit
124b99dbd1
1 changed files with 9 additions and 2 deletions
|
|
@ -320,7 +320,7 @@ in
|
|||
home = {
|
||||
packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
|
||||
file.".config/aerospace/aerospace.toml".text =
|
||||
file.".config/aerospace/aerospace.toml".source =
|
||||
let
|
||||
generatedConfig = tomlFormat.generate "aerospace" (
|
||||
filterNulls (
|
||||
|
|
@ -332,8 +332,15 @@ in
|
|||
}
|
||||
)
|
||||
);
|
||||
extraConfig = pkgs.writeText "aerospace-extra-config" cfg.extraConfig;
|
||||
in
|
||||
builtins.readFile generatedConfig + lib.optionalString (cfg.extraConfig != "") "${cfg.extraConfig}";
|
||||
pkgs.runCommandLocal "aerospace.toml"
|
||||
{
|
||||
inherit generatedConfig extraConfig;
|
||||
}
|
||||
''
|
||||
cat "$generatedConfig" "$extraConfig" > "$out"
|
||||
'';
|
||||
};
|
||||
|
||||
launchd.agents.aerospace = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue