linking ad-nix gitea repo
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
{ pkgs, modulesPath, ... }:
|
||||
{ pkgs, lib, modulesPath, ... }:
|
||||
let
|
||||
stateVersion = "24.05";
|
||||
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
|
||||
{
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user