fixed systemd sandboxing

This commit is contained in:
2026-03-30 12:59:54 -04:00
parent 93fc700fa2
commit 26e4620f8f
3 changed files with 16 additions and 10 deletions

View File

@@ -308,6 +308,7 @@
"usernamehw", "usernamehw",
"userprefs", "userprefs",
"vaninventory", "vaninventory",
"vdev",
"vfat", "vfat",
"victron", "victron",
"virt", "virt",

View File

@@ -5,6 +5,10 @@ in
{ {
networking.firewall.allowedTCPPorts = [ 5432 ]; networking.firewall.allowedTCPPorts = [ 5432 ];
# Symlink pg_wal to a ZFS dataset on the special (metadata) vdev for fast WAL writes
# this is required for systemd sandboxing
systemd.services.postgresql.serviceConfig.ReadWritePaths = [ "/zfs/media/database/postgres-wal" ];
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_17_jit; package = pkgs.postgresql_17_jit;

View File

@@ -20,15 +20,15 @@
// turns off all sounds and announcements // turns off all sounds and announcements
"accessibility.signals.terminalCommandFailed": { "accessibility.signals.terminalCommandFailed": {
"sound": "off", "sound": "off",
"announcement": "off" "announcement": "off",
}, },
"accessibility.signals.terminalQuickFix": { "accessibility.signals.terminalQuickFix": {
"sound": "off", "sound": "off",
"announcement": "off" "announcement": "off",
}, },
"accessibility.signals.terminalBell": { "accessibility.signals.terminalBell": {
"sound": "off", "sound": "off",
"announcement": "off" "announcement": "off",
}, },
// database settings // database settings
@@ -41,8 +41,8 @@
"driver": "PostgreSQL", "driver": "PostgreSQL",
"name": "main", "name": "main",
"database": "postgres", "database": "postgres",
"username": "richie" "username": "richie",
} },
], ],
// formatters // formatters
@@ -55,7 +55,7 @@
"[yaml]": { "editor.defaultFormatter": "redhat.vscode-yaml" }, "[yaml]": { "editor.defaultFormatter": "redhat.vscode-yaml" },
"[javascriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[javascriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[github-actions-workflow]": { "[github-actions-workflow]": {
"editor.defaultFormatter": "redhat.vscode-yaml" "editor.defaultFormatter": "redhat.vscode-yaml",
}, },
"[dockercompose]": { "[dockercompose]": {
"editor.insertSpaces": true, "editor.insertSpaces": true,
@@ -64,9 +64,9 @@
"editor.quickSuggestions": { "editor.quickSuggestions": {
"other": true, "other": true,
"comments": false, "comments": false,
"strings": true "strings": true,
}, },
"editor.defaultFormatter": "redhat.vscode-yaml" "editor.defaultFormatter": "redhat.vscode-yaml",
}, },
// spell check // spell check
@@ -78,7 +78,8 @@
"Corvidae", "Corvidae",
"drivername", "drivername",
"fastapi", "fastapi",
"syncthing" "sandboxing",
"syncthing",
], ],
// nix // nix
@@ -96,5 +97,5 @@
// new // new
"hediet.vscode-drawio.resizeImages": null, "hediet.vscode-drawio.resizeImages": null,
"hediet.vscode-drawio.appearance": "automatic", "hediet.vscode-drawio.appearance": "automatic",
"claudeCode.preferredLocation": "panel" "claudeCode.preferredLocation": "panel",
} }