From dd6a687971def55242e2d01d42a5f0a4cdb38d33 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:20:25 +0000 Subject: [PATCH] linking ad-nix gitea repo --- configuration.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 06a60f2..1724f8d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,7 +1,12 @@ -{ pkgs, modulesPath, ... }: +{ pkgs, lib, modulesPath, ... }: let stateVersion = "24.05"; unstable = import {}; + ad_src = builtins.fetchGit { + url = "https://gitea.john-stream.com/john/ad-nix"; + ref = "main"; + }; + adTargetPath = "/srv/appdaemon/ad-nix"; in { imports = [ @@ -23,6 +28,12 @@ in # appdaemon ]; + # Alternatively, use a symlink + system.activationScripts.linkAdNix = lib.mkForce '' + echo "Linking ad-nix repository to ${adTargetPath}" + ln -sfn ${ad_src} ${adTargetPath} + ''; + virtualisation.docker.enable = true; services.vscode-server.enable = true; services.openssh.enable = true;