added workspace

This commit is contained in:
John Lancaster
2024-09-16 04:26:40 +00:00
parent 404ce85430
commit 8286851834
2 changed files with 24 additions and 0 deletions

16
ad-nix.code-workspace Normal file
View File

@@ -0,0 +1,16 @@
{
"folders": [
{
"path": "/srv/appdaemon/ad-nix"
},
{
"path": "/usr/src/app"
},
{
"path": "/conf"
}
],
"settings": {
"python.defaultInterpreterPath": "/usr/src/app/.venv/bin/python3"
}
}

View File

@@ -46,6 +46,14 @@ in
services.vscode-server.enable = true;
services.openssh.enable = true;
system.activationScripts.ensureDirectory = ''
if [ ! -d /conf ]; then
mkdir /conf
chmod 0755 /conf
chown appdaemon:users /conf
fi
'';
security.sudo-rs = {
enable = true;
execWheelOnly = false;