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;