set services to default retooling
This commit is contained in:
@@ -3,20 +3,11 @@
|
||||
{
|
||||
config = lib.mkMerge [
|
||||
|
||||
# Server-Desktop Role most services enabled
|
||||
# Server-Desktop Role — services already default to on,
|
||||
# so we only need to set features here
|
||||
(lib.mkIf config.sovran_systemsOS.roles.server-desktop {
|
||||
sovran_systemsOS.features = {
|
||||
synapse = true;
|
||||
bitcoin = true;
|
||||
coturn = true;
|
||||
vaultwarden = true;
|
||||
haven = false;
|
||||
mempool = false;
|
||||
bip110 = false;
|
||||
element-calling = false;
|
||||
bitcoin-core = false;
|
||||
rdp = false;
|
||||
};
|
||||
# All services are default=true, nothing to set
|
||||
# All features are default=false, nothing to set
|
||||
})
|
||||
|
||||
# Desktop role
|
||||
@@ -25,11 +16,14 @@
|
||||
services.desktopManager.gnome.enable = true;
|
||||
})
|
||||
|
||||
# Bitcoin node role
|
||||
# Bitcoin node role — only bitcoin, disable other services
|
||||
(lib.mkIf config.sovran_systemsOS.roles.node {
|
||||
sovran_systemsOS.features = {
|
||||
sovran_systemsOS.services = {
|
||||
bitcoin = true;
|
||||
bip110 = false;
|
||||
synapse = false;
|
||||
vaultwarden = false;
|
||||
wordpress = false;
|
||||
nextcloud = false;
|
||||
};
|
||||
})
|
||||
|
||||
|
||||
@@ -11,11 +11,37 @@
|
||||
node = lib.mkEnableOption "Bitcoin Node Only Role";
|
||||
};
|
||||
|
||||
# ── Services (default ON — user can disable in custom.nix) ──
|
||||
services = {
|
||||
synapse = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Matrix Synapse homeserver";
|
||||
};
|
||||
bitcoin = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Bitcoin Ecosystem (bitcoind, electrs, lnd, rtl, btcpay)";
|
||||
};
|
||||
vaultwarden = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Vaultwarden password manager";
|
||||
};
|
||||
wordpress = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "WordPress (raw PHP served by Caddy)";
|
||||
};
|
||||
nextcloud = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Nextcloud (raw PHP served by Caddy)";
|
||||
};
|
||||
};
|
||||
|
||||
# ── Features (default OFF — user can enable in custom.nix) ──
|
||||
features = {
|
||||
coturn = lib.mkEnableOption "TURN server";
|
||||
synapse = lib.mkEnableOption "Matrix Synapse";
|
||||
bitcoin = lib.mkEnableOption "Bitcoin Ecosystem";
|
||||
vaultwarden = lib.mkEnableOption "Vaultwarden";
|
||||
haven = lib.mkEnableOption "Haven NOSTR relay";
|
||||
bip110 = lib.mkEnableOption "BIP-110 Bitcoin Better Money";
|
||||
mempool = lib.mkEnableOption "Bitcoin Mempool Explorer";
|
||||
@@ -29,5 +55,10 @@
|
||||
default = "";
|
||||
description = "Nostr public key (npub1...) for Haven relay";
|
||||
};
|
||||
|
||||
packages.bip110 = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
description = "BIP-110 bitcoind-knots package";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user