treewide: remove user descriptions
User descriptions are stored in the `comment` field in /etc/passwd. In our case, these are completely redundant and don't add any useful information.
This commit is contained in:
parent
4f6ff408ef
commit
a942177ecf
@ -381,10 +381,7 @@ in {
|
|||||||
} // nbLib.allowTor;
|
} // nbLib.allowTor;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user}.group = cfg.group;
|
||||||
group = cfg.group;
|
|
||||||
description = "Bitcoin daemon user";
|
|
||||||
};
|
|
||||||
users.groups.${cfg.group} = {};
|
users.groups.${cfg.group} = {};
|
||||||
users.groups.bitcoinrpc = {};
|
users.groups.bitcoinrpc = {};
|
||||||
nix-bitcoin.operator.groups = [ cfg.group ];
|
nix-bitcoin.operator.groups = [ cfg.group ];
|
||||||
|
@ -203,14 +203,12 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
users.users.${cfg.nbxplorer.user} = {
|
users.users.${cfg.nbxplorer.user} = {
|
||||||
description = "nbxplorer user";
|
|
||||||
group = cfg.nbxplorer.group;
|
group = cfg.nbxplorer.group;
|
||||||
extraGroups = [ "bitcoinrpc" ];
|
extraGroups = [ "bitcoinrpc" ];
|
||||||
home = cfg.nbxplorer.dataDir;
|
home = cfg.nbxplorer.dataDir;
|
||||||
};
|
};
|
||||||
users.groups.${cfg.nbxplorer.group} = {};
|
users.groups.${cfg.nbxplorer.group} = {};
|
||||||
users.users.${cfg.btcpayserver.user} = {
|
users.users.${cfg.btcpayserver.user} = {
|
||||||
description = "btcpayserver user";
|
|
||||||
group = cfg.btcpayserver.group;
|
group = cfg.btcpayserver.group;
|
||||||
extraGroups = [ "nbxplorer" ]
|
extraGroups = [ "nbxplorer" ]
|
||||||
++ optional (cfg.btcpayserver.lightningBackend == "clightning") cfg.clightning.user;
|
++ optional (cfg.btcpayserver.lightningBackend == "clightning") cfg.clightning.user;
|
||||||
|
@ -107,7 +107,6 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = [ nbPkgs.clightning (hiPrio cfg.cli) ];
|
environment.systemPackages = [ nbPkgs.clightning (hiPrio cfg.cli) ];
|
||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
description = "clightning User";
|
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
extraGroups = [ "bitcoinrpc" ];
|
extraGroups = [ "bitcoinrpc" ];
|
||||||
};
|
};
|
||||||
|
@ -110,7 +110,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
description = "electrs User";
|
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
extraGroups = [ "bitcoinrpc" ] ++ optionals cfg.high-memory [ "bitcoin" ];
|
extraGroups = [ "bitcoinrpc" ] ++ optionals cfg.high-memory [ "bitcoin" ];
|
||||||
};
|
};
|
||||||
|
@ -147,7 +147,6 @@ in {
|
|||||||
(hiPrio cfg.cli)
|
(hiPrio cfg.cli)
|
||||||
];
|
];
|
||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
description = "joinmarket User";
|
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
home = cfg.dataDir;
|
home = cfg.dataDir;
|
||||||
extraGroups = [ "tor" ];
|
extraGroups = [ "tor" ];
|
||||||
|
@ -248,7 +248,6 @@ in {
|
|||||||
users.users.${cfg.user} = {
|
users.users.${cfg.user} = {
|
||||||
group = cfg.group;
|
group = cfg.group;
|
||||||
extraGroups = [ "bitcoinrpc" ];
|
extraGroups = [ "bitcoinrpc" ];
|
||||||
description = "Liquid sidechain user";
|
|
||||||
};
|
};
|
||||||
users.groups.${cfg.group} = {};
|
users.groups.${cfg.group} = {};
|
||||||
nix-bitcoin.operator.groups = [ cfg.group ];
|
nix-bitcoin.operator.groups = [ cfg.group ];
|
||||||
|
@ -271,7 +271,6 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
users.users.lnd = {
|
users.users.lnd = {
|
||||||
description = "LND User";
|
|
||||||
group = "lnd";
|
group = "lnd";
|
||||||
extraGroups = [ "bitcoinrpc" ];
|
extraGroups = [ "bitcoinrpc" ];
|
||||||
home = cfg.dataDir; # lnd creates .lnd dir in HOME
|
home = cfg.dataDir; # lnd creates .lnd dir in HOME
|
||||||
|
@ -82,7 +82,6 @@ in {
|
|||||||
services.clightning.enable = true;
|
services.clightning.enable = true;
|
||||||
|
|
||||||
users.users.recurring-donations = {
|
users.users.recurring-donations = {
|
||||||
description = "recurring-donations User";
|
|
||||||
group = "recurring-donations";
|
group = "recurring-donations";
|
||||||
extraGroups = [ "clightning" ];
|
extraGroups = [ "clightning" ];
|
||||||
};
|
};
|
||||||
|
@ -61,7 +61,6 @@ in {
|
|||||||
services.clightning.enable = true;
|
services.clightning.enable = true;
|
||||||
|
|
||||||
users.users.spark-wallet = {
|
users.users.spark-wallet = {
|
||||||
description = "spark-wallet User";
|
|
||||||
group = "spark-wallet";
|
group = "spark-wallet";
|
||||||
extraGroups = [ "clightning" ];
|
extraGroups = [ "clightning" ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user