From df3cffadaf3ae916ac87760abf606898c395bf0d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 12 Jul 2021 17:14:52 +0200 Subject: [PATCH] poseidon: enable docker and docker-compose --- base/users.nix | 1 + hosts/poseidon/default.nix | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/base/users.nix b/base/users.nix index 318a4ec..26a4219 100644 --- a/base/users.nix +++ b/base/users.nix @@ -13,6 +13,7 @@ in extraGroups = [ "media" "networkmanager" + "docker" "wheel" # Enable ‘sudo’ for the user. ]; shell = pkgs.fish; diff --git a/hosts/poseidon/default.nix b/hosts/poseidon/default.nix index bd9c4f8..487f79f 100644 --- a/hosts/poseidon/default.nix +++ b/hosts/poseidon/default.nix @@ -33,6 +33,10 @@ in package = pkgs.unstable.tailscale; }; + virtualisation.docker = { + enable = true; + }; + networking.hostName = "poseidon"; # Define your hostname. networking.domain = "alarsyo.net"; @@ -158,4 +162,8 @@ in # Takes a long while to build documentation.nixos.enable = false; + + environment.systemPackages = with pkgs; [ + docker-compose + ]; }