Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Tomokhov 4fc71ae229 script to override URL of all SP modules and selfprivacy-nixos-config 2024-02-29 04:42:30 +04:00
Alexander Tomokhov e5320df6ae config: modules: parameterize all subdomains 2024-02-29 04:42:30 +04:00
3 changed files with 55 additions and 39 deletions

View File

@ -0,0 +1,5 @@
#! /usr/bin/env bash
URL="${1:?no URL given}"
nix flake metadata --json | jq -r '.locks.nodes."sp-modules".inputs | keys[]' | while read line; do nix flake lock --override-input selfprivacy-nixos-config "$URL" --override-input sp-modules/$line "${URL}&dir=sp-modules/$line"; done

View File

@ -3,11 +3,11 @@
"bitwarden": {
"locked": {
"dir": "sp-modules/bitwarden",
"lastModified": 1706013455,
"narHash": "sha256-7ipT3pOeKvTRvREVUHjZkqFZpFxC7E83pR9+Mz+92C4=",
"lastModified": 1708710384,
"narHash": "sha256-1MrJNKbPDn0v7MjXu63au7KsIUr9Jto2df7u+ojOydw=",
"ref": "flakes",
"rev": "2d4e7e89a13c3778d4a91a694d848268b7faac99",
"revCount": 260,
"rev": "6619760f4709ec061d13a3ede149d4f1c08ce746",
"revCount": 269,
"type": "git",
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/bitwarden"
},
@ -53,11 +53,11 @@
"gitea": {
"locked": {
"dir": "sp-modules/gitea",
"lastModified": 1706013455,
"narHash": "sha256-7ipT3pOeKvTRvREVUHjZkqFZpFxC7E83pR9+Mz+92C4=",
"lastModified": 1708710384,
"narHash": "sha256-1MrJNKbPDn0v7MjXu63au7KsIUr9Jto2df7u+ojOydw=",
"ref": "flakes",
"rev": "2d4e7e89a13c3778d4a91a694d848268b7faac99",
"revCount": 260,
"rev": "6619760f4709ec061d13a3ede149d4f1c08ce746",
"revCount": 269,
"type": "git",
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/gitea"
},
@ -71,11 +71,11 @@
"jitsi-meet": {
"locked": {
"dir": "sp-modules/jitsi-meet",
"lastModified": 1706013455,
"narHash": "sha256-7ipT3pOeKvTRvREVUHjZkqFZpFxC7E83pR9+Mz+92C4=",
"lastModified": 1708710384,
"narHash": "sha256-1MrJNKbPDn0v7MjXu63au7KsIUr9Jto2df7u+ojOydw=",
"ref": "flakes",
"rev": "2d4e7e89a13c3778d4a91a694d848268b7faac99",
"revCount": 260,
"rev": "6619760f4709ec061d13a3ede149d4f1c08ce746",
"revCount": 269,
"type": "git",
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/jitsi-meet"
},
@ -112,11 +112,11 @@
"nextcloud": {
"locked": {
"dir": "sp-modules/nextcloud",
"lastModified": 1706013455,
"narHash": "sha256-7ipT3pOeKvTRvREVUHjZkqFZpFxC7E83pR9+Mz+92C4=",
"lastModified": 1708710384,
"narHash": "sha256-1MrJNKbPDn0v7MjXu63au7KsIUr9Jto2df7u+ojOydw=",
"ref": "flakes",
"rev": "2d4e7e89a13c3778d4a91a694d848268b7faac99",
"revCount": 260,
"rev": "6619760f4709ec061d13a3ede149d4f1c08ce746",
"revCount": 269,
"type": "git",
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/nextcloud"
},
@ -190,11 +190,11 @@
"ocserv": {
"locked": {
"dir": "sp-modules/ocserv",
"lastModified": 1706013455,
"narHash": "sha256-7ipT3pOeKvTRvREVUHjZkqFZpFxC7E83pR9+Mz+92C4=",
"lastModified": 1708710384,
"narHash": "sha256-1MrJNKbPDn0v7MjXu63au7KsIUr9Jto2df7u+ojOydw=",
"ref": "flakes",
"rev": "2d4e7e89a13c3778d4a91a694d848268b7faac99",
"revCount": 260,
"rev": "6619760f4709ec061d13a3ede149d4f1c08ce746",
"revCount": 269,
"type": "git",
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/ocserv"
},
@ -208,11 +208,11 @@
"pleroma": {
"locked": {
"dir": "sp-modules/pleroma",
"lastModified": 1706013455,
"narHash": "sha256-7ipT3pOeKvTRvREVUHjZkqFZpFxC7E83pR9+Mz+92C4=",
"lastModified": 1708710384,
"narHash": "sha256-1MrJNKbPDn0v7MjXu63au7KsIUr9Jto2df7u+ojOydw=",
"ref": "flakes",
"rev": "2d4e7e89a13c3778d4a91a694d848268b7faac99",
"revCount": 260,
"rev": "6619760f4709ec061d13a3ede149d4f1c08ce746",
"revCount": 269,
"type": "git",
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/pleroma"
},
@ -256,11 +256,11 @@
"selfprivacy-api": "selfprivacy-api"
},
"locked": {
"lastModified": 1706013455,
"narHash": "sha256-7ipT3pOeKvTRvREVUHjZkqFZpFxC7E83pR9+Mz+92C4=",
"lastModified": 1708710384,
"narHash": "sha256-1MrJNKbPDn0v7MjXu63au7KsIUr9Jto2df7u+ojOydw=",
"ref": "flakes",
"rev": "2d4e7e89a13c3778d4a91a694d848268b7faac99",
"revCount": 260,
"rev": "6619760f4709ec061d13a3ede149d4f1c08ce746",
"revCount": 269,
"type": "git",
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git"
},
@ -275,11 +275,11 @@
},
"locked": {
"dir": "sp-modules/simple-nixos-mailserver",
"lastModified": 1706013455,
"narHash": "sha256-7ipT3pOeKvTRvREVUHjZkqFZpFxC7E83pR9+Mz+92C4=",
"lastModified": 1708710384,
"narHash": "sha256-1MrJNKbPDn0v7MjXu63au7KsIUr9Jto2df7u+ojOydw=",
"ref": "flakes",
"rev": "2d4e7e89a13c3778d4a91a694d848268b7faac99",
"revCount": 260,
"rev": "6619760f4709ec061d13a3ede149d4f1c08ce746",
"revCount": 269,
"type": "git",
"url": "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git?dir=sp-modules/simple-nixos-mailserver"
},

View File

@ -19,25 +19,36 @@
},
"modules": {
"bitwarden": {
"enable": false
"enable": false,
"location": "SDA",
"subdomain": "password"
},
"gitea": {
"enable": false
"enable": false,
"location": "SDA",
"subdomain": "git"
},
"jitsi-meet": {
"enable": false
"enable": false,
"subdomain": "meet"
},
"nextcloud": {
"enable": true
"enable": true,
"location": "SDA",
"subdomain": "cloud"
},
"ocserv": {
"enable": false
"enable": false,
"subdomain": "vpn"
},
"pleroma": {
"enable": false
"enable": false,
"location": "SDA",
"subdomain": "social"
},
"simple-nixos-mailserver": {
"enable": true
"enable": true,
"location": "SDA"
}
}
}