diff --git a/ops/nixos/totoro/default.nix b/ops/nixos/totoro/default.nix index 453dde173e..9cc1d3c0e9 100644 --- a/ops/nixos/totoro/default.nix +++ b/ops/nixos/totoro/default.nix @@ -34,7 +34,9 @@ in { "/srv/pancake" = zfs "tank/safe/srv/pancake"; "/persist" = zfs "tank/safe/persist"; + "/persist/var/lib/containers" = zfs "tank/safe/persist/containers"; "/store" = zfs "tank/local/store"; + "/store/run/containers" = zfs "tank/local/store/containers"; "/boot" = { device = "/dev/disk/by-uuid/D178-4E19"; @@ -55,7 +57,15 @@ in { powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; virtualisation = { podman.enable = true; + containers.storage.settings.storage = { + driver = "zfs"; + runroot = "/store/run/containers/storage"; + graphroot = "/persist/var/lib/containers/storage"; + }; }; + systemd.services.podman.path = lib.mkAfter [ + pkgs.zfs + ]; services.openssh.forwardX11 = true; @@ -103,7 +113,7 @@ in { }; users.users.lukegb = { packages = with depot.pkgs; [ irssi ]; - extraGroups = lib.mkAfter [ "libvirtd" "acme" ]; + extraGroups = lib.mkAfter [ "libvirtd" "acme" "podman" ]; }; users.users.pancake = { isSystemUser = true;