diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-10-18 16:18:16 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-10-18 16:22:16 +0000 |
commit | ecd16a4c7e5f58fd41a9e5bae10673b3b8136ebc (patch) | |
tree | 63bea4182e0fd7a8b098eab19ca1ea6b569b4257 /modules/workstation | |
parent | a0e7625eed02cfdd9800421e62f4fd3815a5a363 (diff) |
ws/podman: init
Diffstat (limited to 'modules/workstation')
-rw-r--r-- | modules/workstation/default.nix | 1 | ||||
-rw-r--r-- | modules/workstation/podman/default.nix | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/modules/workstation/default.nix b/modules/workstation/default.nix index a965fe1d2a9..a4d003f1957 100644 --- a/modules/workstation/default.nix +++ b/modules/workstation/default.nix @@ -19,6 +19,7 @@ ./devel ./emacs ./pass + ./podman ]; }; 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 + ''; + }; + +} |