diff options
author | makefu <github@syntax-fehler.de> | 2021-06-06 19:15:44 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-06-06 19:15:44 +0200 |
commit | 74058abe0b5da0753c2167d6bab29eb1eae88366 (patch) | |
tree | 748e9e75c0498161629597f7469933e69303168b /lass/2configs/bitcoin.nix | |
parent | 88a845f7a1a037bf6bcf23863d41f36c4cedcd7e (diff) | |
parent | a5bc9126db72f59062ff9d6a72b2fa35437b42cb (diff) |
Merge branch '21.05'
Diffstat (limited to 'lass/2configs/bitcoin.nix')
-rw-r--r-- | lass/2configs/bitcoin.nix | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/lass/2configs/bitcoin.nix b/lass/2configs/bitcoin.nix index 9f6fd3bf0..9aa97a8ce 100644 --- a/lass/2configs/bitcoin.nix +++ b/lass/2configs/bitcoin.nix @@ -4,12 +4,6 @@ let mainUser = config.users.extraUsers.mainUser; in { - krebs.per-user.bch.packages = [ - pkgs.electron-cash - ]; - krebs.per-user.bitcoin.packages = [ - pkgs.electrum - ]; users.extraUsers = { bch = { name = "bch"; @@ -17,6 +11,8 @@ in { home = "/home/bch"; useDefaultShell = true; createHome = true; + packages = [ pkgs.electron-cash ]; + isNormalUser = true; }; bitcoin = { name = "bitcoin"; @@ -24,10 +20,25 @@ in { home = "/home/bitcoin"; useDefaultShell = 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 = '' - ${mainUser.name} ALL=(bitcoin) NOPASSWD: ALL - ${mainUser.name} ALL=(bch) NOPASSWD: ALL + ${mainUser.name} ALL=(bch) ALL + ${mainUser.name} ALL=(bitcoin) ALL + ${mainUser.name} ALL=(monero) ALL ''; } |