diff --git a/homeConfigurations/muede/.config/containers/policy.json b/homeConfigurations/muede/.config/containers/policy.json deleted file mode 100644 index 245b3df..0000000 --- a/homeConfigurations/muede/.config/containers/policy.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "default": [ - { - "type": "reject" - } - ], - "transports": { - "docker-daemon": { - "": [ - { - "type": "insecureAcceptAnything" - } - ] - }, - "docker": { - "docker.io/library/debian": [ - { - "type": "insecureAcceptAnything" - } - ] - } - } -} diff --git a/homeConfigurations/muede/default.nix b/homeConfigurations/muede/default.nix index 7b4b688..4b5e1ec 100644 --- a/homeConfigurations/muede/default.nix +++ b/homeConfigurations/muede/default.nix @@ -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"; }; diff --git a/homeConfigurations/muede/podman.nix b/homeConfigurations/muede/podman.nix new file mode 100644 index 0000000..ea5b090 --- /dev/null +++ b/homeConfigurations/muede/podman.nix @@ -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"; } ]; + }; + }; + }; + }; + }; +}