l bitcoin: set isNormalUser, cleanup
This commit is contained in:
parent
af6a87e1bc
commit
f4a5add5a1
|
@ -4,12 +4,6 @@ let
|
||||||
mainUser = config.users.extraUsers.mainUser;
|
mainUser = config.users.extraUsers.mainUser;
|
||||||
in {
|
in {
|
||||||
|
|
||||||
krebs.per-user.bch.packages = [
|
|
||||||
pkgs.electron-cash
|
|
||||||
];
|
|
||||||
krebs.per-user.bitcoin.packages = [
|
|
||||||
pkgs.electrum
|
|
||||||
];
|
|
||||||
users.extraUsers = {
|
users.extraUsers = {
|
||||||
bch = {
|
bch = {
|
||||||
name = "bch";
|
name = "bch";
|
||||||
|
@ -17,6 +11,8 @@ in {
|
||||||
home = "/home/bch";
|
home = "/home/bch";
|
||||||
useDefaultShell = true;
|
useDefaultShell = true;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
packages = [ pkgs.electron-cash ];
|
||||||
|
isNormalUser = true;
|
||||||
};
|
};
|
||||||
bitcoin = {
|
bitcoin = {
|
||||||
name = "bitcoin";
|
name = "bitcoin";
|
||||||
|
@ -24,10 +20,25 @@ in {
|
||||||
home = "/home/bitcoin";
|
home = "/home/bitcoin";
|
||||||
useDefaultShell = true;
|
useDefaultShell = true;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
security.sudo.extraConfig = ''
|
security.sudo.extraConfig = ''
|
||||||
${mainUser.name} ALL=(bitcoin) NOPASSWD: ALL
|
${mainUser.name} ALL=(bch) ALL
|
||||||
${mainUser.name} ALL=(bch) NOPASSWD: ALL
|
${mainUser.name} ALL=(bitcoin) ALL
|
||||||
|
${mainUser.name} ALL=(monero) ALL
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user