diff --git a/ad-nix.code-workspace b/ad-nix.code-workspace new file mode 100644 index 0000000..6378d7e --- /dev/null +++ b/ad-nix.code-workspace @@ -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" + } +} \ No newline at end of file diff --git a/configuration.nix b/configuration.nix index 03ea191..6918619 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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;