From 83c1a08fbb382e003fd0f53be6c069078c8630d4 Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 1 Dec 2023 19:58:41 +0900 Subject: [PATCH] Add docker-compose --- nixos/hosts/framework-server/default.nix | 1 + nixos/hosts/framework-server/docker.nix | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/framework-server/default.nix b/nixos/hosts/framework-server/default.nix index 0acb1bd0..8cdb1a99 100644 --- a/nixos/hosts/framework-server/default.nix +++ b/nixos/hosts/framework-server/default.nix @@ -41,5 +41,6 @@ "tailscaled-autoconnect.service" ]; }; + services.tailscale.authKeyFile = "/run/secrets/tailscale_keys/framework-server"; } \ No newline at end of file diff --git a/nixos/hosts/framework-server/docker.nix b/nixos/hosts/framework-server/docker.nix index 15865a12..6f8ab317 100644 --- a/nixos/hosts/framework-server/docker.nix +++ b/nixos/hosts/framework-server/docker.nix @@ -1,4 +1,4 @@ -{ ... }: { +{ pkgs, ... }: { virtualisation.docker = { enable = true; enableOnBoot = true; @@ -7,4 +7,6 @@ storageDriver = "btrfs"; liveRestore = true; }; + environment.systemPackages = with pkgs; [ docker-compose ]; + } \ No newline at end of file