commit | f6e225176996a13fd14bfbc7d08d7bc084cc851c | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Fri Sep 02 00:03:23 2022 +0100 |
committer | Skyler Grey <skyler3665@gmail.com> | Sun Sep 04 11:35:45 2022 +0100 |
tree | d69bc11109410ff93caa02fc86501a71c79dc368 | |
parent | 464794f575be34d1353a5c0fa04110bb542470a0 [diff] |
Install docker
diff --git a/modules/docker.nix b/modules/docker.nix new file mode 100644 index 0000000..666bd8c --- /dev/null +++ b/modules/docker.nix
@@ -0,0 +1,14 @@ +{username, ...}: { + config = { + virtualisation.docker.enable = true; + + users.users.${username}.extraGroups = ["docker"]; + + environment.persistence."/nix/persist".directories = [ + { + mode = "0710"; + directory = "/var/lib/docker"; + } + ]; + }; +}