move podman policy to home manager config, add arch btw

This commit is contained in:
müde 2026-02-22 14:34:19 +01:00
parent 866b518111
commit e9e3eea3d0
3 changed files with 19 additions and 27 deletions

View file

@ -1,23 +0,0 @@
{
"default": [
{
"type": "reject"
}
],
"transports": {
"docker-daemon": {
"": [
{
"type": "insecureAcceptAnything"
}
]
},
"docker": {
"docker.io/library/debian": [
{
"type": "insecureAcceptAnything"
}
]
}
}
}

View file

@ -9,6 +9,7 @@
./git.nix
./gnome.nix
./niri.nix
./podman.nix
./ssh.nix
./starship.nix
./swaylock.nix
@ -83,10 +84,6 @@
];
home.file = {
"policy.json" = {
target = ".config/containers/policy.json";
text = builtins.readFile ./.config/containers/policy.json;
};
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier";
};

View file

@ -0,0 +1,18 @@
{
services.podman = {
settings = {
policy = {
default = [ { type = "reject"; } ];
transports = {
docker-daemon = {
"" = [ { type = "insecureAcceptAnything"; } ];
};
docker = {
"docker.io/library/debian" = [ { type = "insecureAcceptAnything"; } ];
"docker.io/library/rust" = [ { type = "insecureAcceptAnything"; } ];
};
};
};
};
};
}