diff options
Diffstat (limited to 'modules/workstation/podman')
-rw-r--r-- | modules/workstation/podman/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/workstation/podman/default.nix b/modules/workstation/podman/default.nix new file mode 100644 index 00000000000..915bcf4eb41 --- /dev/null +++ b/modules/workstation/podman/default.nix @@ -0,0 +1,35 @@ +{ pkgs, ... }: + +{ + home.packages = [ pkgs.podman ]; + + xdg.configFile."podman/containers/libpod.conf" = { + text = '' + runtime_path = ["${pkgs.runc}/bin/runc"] + conmon_path = ["${pkgs.conmon}/bin/conmon"] + ''; + }; + + xdg.configFile."podman/containers/policy.json" = { + text = builtins.toJSON { + default = [ { type = "insecureAcceptAnything"; } ]; + }; + }; + + xdg.configFile."podman/containers/registries.conf" = { + text = '' + [registries.search] + registries = ['docker.io'] + ''; + }; + + xdg.configFile."podman/containers/storage.conf" = { + text = '' + [storage] + driver = "zfs" + runroot = "/tmp/1000" + graphroot = "/home/.local/podman + ''; + }; + +} |