Merge #159: Remove bitcoin, clightning, electrs, liquid user home directory
159f551b93
Remove bitcoin, clightning, electrs, liquid user home directory (nixbitcoin) Pull request description: ACKs for top commit: jonasnick: ACK159f551b93
Tree-SHA512: 3c0f8611a75e92d178792097aa5cecf1c14ec95e29667fa6e3fe9047a77345ebdf1924bf9b92f58ded7d682be21a5b1316870b6e9c7ec19b1118b2e7dfe27ce6
This commit is contained in:
commit
176e4e7e62
@ -330,7 +330,6 @@ in {
|
|||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
description = "Bitcoin daemon user";
|
description = "Bitcoin daemon user";
|
||||||
home = cfg.dataDir;
|
|
||||||
};
|
};
|
||||||
users.groups.${cfg.group} = {};
|
users.groups.${cfg.group} = {};
|
||||||
users.groups.bitcoinrpc = {};
|
users.groups.bitcoinrpc = {};
|
||||||
|
@ -8,6 +8,7 @@ let
|
|||||||
configFile = pkgs.writeText "config" ''
|
configFile = pkgs.writeText "config" ''
|
||||||
autolisten=${if cfg.autolisten then "true" else "false"}
|
autolisten=${if cfg.autolisten then "true" else "false"}
|
||||||
network=bitcoin
|
network=bitcoin
|
||||||
|
bitcoin-datadir=${config.services.bitcoind.dataDir}
|
||||||
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
|
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
|
||||||
always-use-proxy=${if cfg.always-use-proxy then "true" else "false"}
|
always-use-proxy=${if cfg.always-use-proxy then "true" else "false"}
|
||||||
${optionalString (cfg.bind-addr != null) "bind-addr=${cfg.bind-addr}"}
|
${optionalString (cfg.bind-addr != null) "bind-addr=${cfg.bind-addr}"}
|
||||||
@ -76,7 +77,6 @@ in {
|
|||||||
description = "clightning User";
|
description = "clightning User";
|
||||||
group = "clightning";
|
group = "clightning";
|
||||||
extraGroups = [ "bitcoinrpc" ];
|
extraGroups = [ "bitcoinrpc" ];
|
||||||
home = cfg.dataDir;
|
|
||||||
};
|
};
|
||||||
users.groups.clightning = {};
|
users.groups.clightning = {};
|
||||||
|
|
||||||
|
@ -107,7 +107,6 @@ in {
|
|||||||
description = "electrs User";
|
description = "electrs User";
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
extraGroups = [ "bitcoinrpc" "bitcoin"];
|
extraGroups = [ "bitcoinrpc" "bitcoin"];
|
||||||
home = cfg.dataDir;
|
|
||||||
};
|
};
|
||||||
users.groups.${cfg.group} = {};
|
users.groups.${cfg.group} = {};
|
||||||
}
|
}
|
||||||
|
@ -235,7 +235,6 @@ in {
|
|||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
description = "Liquid sidechain user";
|
description = "Liquid sidechain user";
|
||||||
home = cfg.dataDir;
|
|
||||||
};
|
};
|
||||||
users.groups.${cfg.group} = {};
|
users.groups.${cfg.group} = {};
|
||||||
nix-bitcoin.secrets.liquid-rpcpassword.user = "liquid";
|
nix-bitcoin.secrets.liquid-rpcpassword.user = "liquid";
|
||||||
|
@ -156,7 +156,7 @@ in {
|
|||||||
description = "LND User";
|
description = "LND User";
|
||||||
group = "lnd";
|
group = "lnd";
|
||||||
extraGroups = [ "bitcoinrpc" ];
|
extraGroups = [ "bitcoinrpc" ];
|
||||||
home = cfg.dataDir;
|
home = cfg.dataDir; # lnd creates .lnd dir in HOME
|
||||||
};
|
};
|
||||||
users.groups.lnd = {};
|
users.groups.lnd = {};
|
||||||
nix-bitcoin.secrets = {
|
nix-bitcoin.secrets = {
|
||||||
|
Loading…
Reference in New Issue
Block a user