mirror of
https://github.com/Moe1369/nixos-config.git
synced 2024-10-18 04:14:08 +02:00
add docker module
This commit is contained in:
parent
a66ce507ab
commit
cd83b793bc
8
modules/system/docker/default.nix
Normal file
8
modules/system/docker/default.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ user, ... }:
|
||||
{
|
||||
virtualisation.docker.enable = true;
|
||||
users.users.${user}.extraGroups = [ "docker" ];
|
||||
virtualisation.docker.daemon.settings = {
|
||||
data-root = "/docker/data-root";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user