Files
faumaray 620ae1577d vm gitea runner
Signed-off-by: faumaray <faumaray@gmail.com>
2026-10-29 21:28:40 +03:00

29 lines
673 B
Nix

# Docker: the rootful daemon (the Gitea Actions runner in dev/gitea-runner.nix
# runs its jobs on it) next to rootless Docker for the owner, on the btrfs
# storage driver. The owner joins the `docker` group.
{ config, ... }:
let
inherit (config.meta) owner;
in
{
flake.modules.nixos.docker = {
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
daemon.settings = {
experimental = true;
};
};
daemon.settings = {
experimental = true;
};
storageDriver = "btrfs";
};
users.users.${owner.name}.extraGroups = [ "docker" ];
};
}