From 8286851834c65a1df71bb2c4df8abb3257b713fe Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 16 Sep 2024 04:26:40 +0000 Subject: [PATCH] added workspace --- ad-nix.code-workspace | 16 ++++++++++++++++ configuration.nix | 8 ++++++++ 2 files changed, 24 insertions(+) create mode 100644 ad-nix.code-workspace 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;