blob: 3f6a4f26ec647ca6af9fda3e1d2c7ed006d97418 [file] [log] [blame]
Skyler Grey252927a2022-10-18 22:18:15 +01001{ username, ... }: {
Skyler Greyf6e22512022-09-02 00:03:23 +01002 config = {
3 virtualisation.docker.enable = true;
4
Skyler Grey252927a2022-10-18 22:18:15 +01005 users.users.${username}.extraGroups = [ "docker" ];
Skyler Greyf6e22512022-09-02 00:03:23 +01006
7 environment.persistence."/nix/persist".directories = [
8 {
9 mode = "0710";
10 directory = "/var/lib/docker";
11 }
12 ];
13 };
14}