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:
Erik Arvstedt 2021-02-01 22:53:13 +01:00
parent 4f6ff408ef
commit a942177ecf
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
9 changed files with 1 additions and 13 deletions

View File

@ -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 ];

View File

@ -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;

View File

@ -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" ];
}; };

View File

@ -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" ];
}; };

View File

@ -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" ];

View File

@ -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 ];

View File

@ -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

View File

@ -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" ];
}; };

View File

@ -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" ];
}; };