mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/containers: source policy from separate skopeo output
This commit is contained in:
parent
86d55aa667
commit
5da87a8c7b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, utils, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.virtualisation.containers;
|
cfg = config.virtualisation.containers;
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ in
|
||||||
|
|
||||||
environment.etc."containers/policy.json".source =
|
environment.etc."containers/policy.json".source =
|
||||||
if cfg.policy != { } then pkgs.writeText "policy.json" (builtins.toJSON cfg.policy)
|
if cfg.policy != { } then pkgs.writeText "policy.json" (builtins.toJSON cfg.policy)
|
||||||
else utils.copyFile "${pkgs.skopeo.src}/default-policy.json";
|
else "${pkgs.skopeo.policy}/default-policy.json";
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue