create docker system user, refactor docker

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-06-13 23:09:48 -04:00 committed by Alice Huston
parent 425147aa3a
commit 1c75a6962e
2 changed files with 12 additions and 2 deletions

View File

@ -6,6 +6,7 @@
}:
{
imports = [
./docker.nix
./hydra.nix
./networking.nix
./nextcloud.nix
@ -47,8 +48,6 @@
};
};
virtualisation.docker.daemon.settings.data-root = "/var/lib/docker2";
environment.systemPackages = with pkgs; [
attic-client
attic

View File

@ -0,0 +1,11 @@
{ ... }:
{
virtualisation.docker.daemon.settings.data-root = "/var/lib/docker2";
users.users.docker-service = {
isSystemUser = true;
extraGroups = [ "docker" ];
uid = 600;
};
}