stockholm/lass/2configs/bitcoin.nix

45 lines
1006 B
Nix
Raw Normal View History

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 = {
2017-08-06 14:10:01 +00:00
bch = {
name = "bch";
description = "user for bch stuff";
home = "/home/bch";
useDefaultShell = true;
createHome = true;
2021-06-05 10:16:08 +00:00
packages = [ pkgs.electron-cash ];
isNormalUser = true;
2017-08-06 14:10:01 +00:00
};
2015-07-16 13:51:01 +00:00
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
}