This commit is contained in:
parent
1b360709f8
commit
a3e4cd0e13
4 changed files with 4 additions and 13 deletions
20
modules2/docker.nix
Normal file
20
modules2/docker.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
flake.modules.nixos.pc = {
|
||||
virtualisation = {
|
||||
oci-containers.backend = "docker";
|
||||
|
||||
docker = {
|
||||
enable = true;
|
||||
|
||||
autoPrune = {
|
||||
enable = true;
|
||||
dates = "weekly";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
users.users.${config.flake.meta.owner.username}.extraGroups = [ "docker" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue