2015-07-16 13:51:01 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2016-01-19 18:59:53 +00:00
|
|
|
let
|
|
|
|
mainUser = config.users.extraUsers.mainUser;
|
|
|
|
in {
|
2015-07-16 13:51:01 +00:00
|
|
|
|
|
|
|
users.extraUsers = {
|
|
|
|
bitcoin = {
|
|
|
|
name = "bitcoin";
|
|
|
|
description = "user for bitcoin stuff";
|
|
|
|
home = "/home/bitcoin";
|
|
|
|
useDefaultShell = true;
|
|
|
|
createHome = true;
|
2021-06-05 10:16:08 +00:00
|
|
|
packages = [ pkgs.electrum ];
|
|
|
|
isNormalUser = true;
|
|
|
|
};
|
|
|
|
monero = {
|
|
|
|
name = "monero";
|
|
|
|
description = "user for monero stuff";
|
|
|
|
home = "/home/monero";
|
|
|
|
useDefaultShell = true;
|
|
|
|
createHome = true;
|
|
|
|
packages = [
|
|
|
|
pkgs.monero
|
|
|
|
pkgs.monero-gui
|
|
|
|
];
|
|
|
|
isNormalUser = true;
|
2015-07-16 13:51:01 +00:00
|
|
|
};
|
|
|
|
};
|
2016-01-19 18:59:53 +00:00
|
|
|
security.sudo.extraConfig = ''
|
2021-06-05 10:16:08 +00:00
|
|
|
${mainUser.name} ALL=(bch) ALL
|
|
|
|
${mainUser.name} ALL=(bitcoin) ALL
|
|
|
|
${mainUser.name} ALL=(monero) ALL
|
2016-01-19 18:59:53 +00:00
|
|
|
'';
|
2015-07-16 13:51:01 +00:00
|
|
|
}
|