linking ad-nix gitea repo
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user