linking ad-nix gitea repo

This commit is contained in:
John Lancaster
2024-09-14 00:20:25 +00:00
parent d8b3967829
commit dd6a687971

View File

@@ -1,7 +1,12 @@
{ pkgs, modulesPath, ... }: { pkgs, lib, modulesPath, ... }:
let let
stateVersion = "24.05"; stateVersion = "24.05";
unstable = import <nixos-unstable> {}; unstable = import <nixos-unstable> {};
ad_src = builtins.fetchGit {
url = "https://gitea.john-stream.com/john/ad-nix";
ref = "main";
};
adTargetPath = "/srv/appdaemon/ad-nix";
in in
{ {
imports = [ imports = [
@@ -23,6 +28,12 @@ in
# appdaemon # 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; virtualisation.docker.enable = true;
services.vscode-server.enable = true; services.vscode-server.enable = true;
services.openssh.enable = true; services.openssh.enable = true;