move podman zfs config to the host itself
pre-commit / pre-commit (pull_request) Successful in 53s Details
pre-commit / pre-commit (push) Successful in 50s Details

pull/64/head
Tudor Roman 2024-01-30 10:39:24 +01:00
parent 711c53c29e
commit 3125054a31
Signed by: tudor
SSH Key Fingerprint: SHA256:3CwS9plgXBecpXImPGxDIaSktUXBejbV/zerZMqzzBk
3 changed files with 21 additions and 9 deletions

View File

@ -1,4 +1,8 @@
{config, ...}: {
{
config,
pkgs,
...
}: {
imports = [../_all ./hardware.nix];
systemModules.basePackages.enable = true;
@ -73,6 +77,20 @@
];
};
virtualisation = {
podman = {
enable = true;
extraPackages = [pkgs.zfs];
};
};
virtualisation.containers.storage.settings = {
storage.driver = "zfs";
storage.graphroot = "/var/lib/containers/storage";
storage.runroot = "/run/containers/storage";
storage.options.zfs.fsname = "rpool/root/podman";
};
security.sudo.wheelNeedsPassword = false;
services.zfs.autoSnapshot.enable = true;

View File

@ -29,6 +29,8 @@
fsType = "ext4";
};
# there's also rpool/root/podman for container storage
swapDevices = [];
# High-DPI console

View File

@ -119,14 +119,6 @@ in {
virtualisation.podman = {
enable = true;
extraPackages = [pkgs.zfs];
};
virtualisation.containers.storage.settings = {
storage.driver = "zfs";
storage.graphroot = "/var/lib/containers/storage";
storage.runroot = "/run/containers/storage";
storage.options.zfs.fsname = "rpool/root/podman";
};
systemd.services."gitea-runner-${escapedName}" = {