Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { username, ... }: { |
Skyler Grey | f6e2251 | 2022-09-02 00:03:23 +0100 | [diff] [blame] | 2 | config = { |
Skyler Grey | a556b5e | 2023-02-26 12:47:32 +0000 | [diff] [blame] | 3 | virtualisation.docker = { |
| 4 | enable = true; |
| 5 | enableOnBoot = false; |
| 6 | }; |
Skyler Grey | f6e2251 | 2022-09-02 00:03:23 +0100 | [diff] [blame] | 7 | |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 8 | users.users.${username}.extraGroups = [ "docker" ]; |
Skyler Grey | f6e2251 | 2022-09-02 00:03:23 +0100 | [diff] [blame] | 9 | |
| 10 | environment.persistence."/nix/persist".directories = [ |
| 11 | { |
| 12 | mode = "0710"; |
| 13 | directory = "/var/lib/docker"; |
| 14 | } |
| 15 | ]; |
| 16 | }; |
| 17 | } |