create docker system user, refactor docker
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
425147aa3a
commit
1c75a6962e
@ -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
|
||||
|
11
systems/palatine-hill/docker.nix
Normal file
11
systems/palatine-hill/docker.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
virtualisation.docker.daemon.settings.data-root = "/var/lib/docker2";
|
||||
|
||||
users.users.docker-service = {
|
||||
isSystemUser = true;
|
||||
extraGroups = [ "docker" ];
|
||||
uid = 600;
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user