From 6efc4bd51e866f1729bcb77f57ce1d24a8e384df Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 20 Jan 2025 00:50:02 +0000 Subject: [PATCH] t490: add docker Add Docker which is needed by DDEV, which I need to quickly get HTTP and SSL running for a project. There is https://devenv.sh/blog/2023/03/02/devenv-06-generating-containers-and-instant-shell-activation/#hosts-and-certificates that mentions provisioning certificates for a local domain name, which is something I'll look at in the future. --- nix/hosts/t490/configuration.nix | 2 ++ nix/hosts/t490/modules/docker.nix | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 nix/hosts/t490/modules/docker.nix diff --git a/nix/hosts/t490/configuration.nix b/nix/hosts/t490/configuration.nix index ca07106..e885188 100644 --- a/nix/hosts/t490/configuration.nix +++ b/nix/hosts/t490/configuration.nix @@ -8,6 +8,8 @@ ./services ./users.nix + ./modules/docker.nix + ../common ../../users/opdavies ]; diff --git a/nix/hosts/t490/modules/docker.nix b/nix/hosts/t490/modules/docker.nix new file mode 100644 index 0000000..3314fcd --- /dev/null +++ b/nix/hosts/t490/modules/docker.nix @@ -0,0 +1,5 @@ +{ + virtualisation.docker.enable = true; + + users.users.opdavies.extraGroups = [ "docker" ]; +}