Skip to content

Commit

Permalink
Remove bitcoin, clightning, electrs, liquid user home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nixbitcoin committed Apr 24, 2020
1 parent faed304 commit 663969c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion modules/bitcoind.nix
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ in {
users.users.${cfg.user} = {
group = cfg.group;
description = "Bitcoin daemon user";
home = cfg.dataDir;
};
users.groups.${cfg.group} = {};
users.groups.bitcoinrpc = {};
Expand Down
2 changes: 1 addition & 1 deletion modules/clightning.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let
configFile = pkgs.writeText "config" ''
autolisten=${if cfg.autolisten then "true" else "false"}
network=bitcoin
bitcoin-datadir=${config.services.bitcoind.dataDir}
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
always-use-proxy=${if cfg.always-use-proxy then "true" else "false"}
${optionalString (cfg.bind-addr != null) "bind-addr=${cfg.bind-addr}"}
Expand Down Expand Up @@ -76,7 +77,6 @@ in {
description = "clightning User";
group = "clightning";
extraGroups = [ "bitcoinrpc" ];
home = cfg.dataDir;
};
users.groups.clightning = {};

Expand Down
1 change: 0 additions & 1 deletion modules/electrs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ in {
description = "electrs User";
group = cfg.group;
extraGroups = [ "bitcoinrpc" "bitcoin"];
home = cfg.dataDir;
};
users.groups.${cfg.group} = {};
}
Expand Down
1 change: 0 additions & 1 deletion modules/liquid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ in {
users.users.${cfg.user} = {
group = cfg.group;
description = "Liquid sidechain user";
home = cfg.dataDir;
};
users.groups.${cfg.group} = {};
nix-bitcoin.secrets.liquid-rpcpassword.user = "liquid";
Expand Down

0 comments on commit 663969c

Please sign in to comment.