mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-19 16:09:19 +03:00
nixos/pay-respects: fix environment config
Unable to build flake since this was introduced, seems it clobbers other configuration attributes.
This commit is contained in:
parent
0aa475546e
commit
41f6c05504
1 changed files with 14 additions and 11 deletions
|
@ -8,11 +8,11 @@ let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
getExe
|
getExe
|
||||||
isBool
|
isBool
|
||||||
|
listToAttrs
|
||||||
literalExpression
|
literalExpression
|
||||||
maintainers
|
maintainers
|
||||||
mkEnableOption
|
mkEnableOption
|
||||||
mkIf
|
mkIf
|
||||||
mkMerge
|
|
||||||
mkOption
|
mkOption
|
||||||
mkPackageOption
|
mkPackageOption
|
||||||
optionalString
|
optionalString
|
||||||
|
@ -169,17 +169,20 @@ in
|
||||||
"url"
|
"url"
|
||||||
"model"
|
"model"
|
||||||
];
|
];
|
||||||
environment = mkMerge (
|
|
||||||
[
|
environment = {
|
||||||
{
|
etc = listToAttrs (
|
||||||
systemPackages = [ finalPackage ];
|
map (rule: {
|
||||||
}
|
name = "xdg/pay-respects/rules/${rule.command}.toml";
|
||||||
]
|
value = {
|
||||||
++ map (rule: {
|
source = generate "${rule.command}.toml" rule;
|
||||||
etc."xdg/pay-respects/rules/${rule.command}.toml".source = generate "${rule.command}.toml" rule;
|
};
|
||||||
}) cfg.runtimeRules
|
}) cfg.runtimeRules
|
||||||
);
|
);
|
||||||
|
|
||||||
|
systemPackages = [ finalPackage ];
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
bash.interactiveShellInit = initScript "bash";
|
bash.interactiveShellInit = initScript "bash";
|
||||||
fish.interactiveShellInit = optionalString config.programs.fish.enable (initScript "fish");
|
fish.interactiveShellInit = optionalString config.programs.fish.enable (initScript "fish");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue