totoro: set up podman socket support

This commit is contained in:
Luke Granger-Brown 2022-01-08 12:08:04 +00:00
parent 3e7541c14f
commit 506a584dea

View file

@ -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;