aboutsummaryrefslogtreecommitdiff
path: root/modules/workstation/podman/default.nix
blob: 915bcf4eb41bbfff9287cea4a51820d9febeea33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
    '';
  };

}