added workspace
This commit is contained in:
16
ad-nix.code-workspace
Normal file
16
ad-nix.code-workspace
Normal 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"
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user