mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-02-23 08:27:10 +01:00
policy.json in extra file, default to reject
This commit is contained in:
parent
b143437c89
commit
87b5b7ab00
16
home/vinzenz/.config/containers/policy.json
Normal file
16
home/vinzenz/.config/containers/policy.json
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"default": [
|
||||||
|
{
|
||||||
|
"type": "reject"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transports": {
|
||||||
|
"docker-daemon": {
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"type": "insecureAcceptAnything"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -48,22 +48,7 @@ inputs@{ pkgs, ... }:
|
||||||
|
|
||||||
home.file."policy.json" = {
|
home.file."policy.json" = {
|
||||||
target = ".config/containers/policy.json";
|
target = ".config/containers/policy.json";
|
||||||
text = ''
|
text = builtins.readFile ./.config/containers/policy.json;
|
||||||
{
|
|
||||||
"default": [
|
|
||||||
{
|
|
||||||
"type": "insecureAcceptAnything"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"transports":
|
|
||||||
{
|
|
||||||
"docker-daemon":
|
|
||||||
{
|
|
||||||
"": [{"type":"insecureAcceptAnything"}]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue