summaryrefslogtreecommitdiffstats
path: root/lass/2configs/bitcoin.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-01-19 19:59:53 +0100
committerlassulus <lass@aidsballs.de>2016-01-19 19:59:53 +0100
commit186d5cc95a7430136da3107734409511c64d7080 (patch)
treee7f3c970646bf5329b7e09f12338ffb640f97b6a /lass/2configs/bitcoin.nix
parent403f5674117a1b85a01a7ad30cd94bbf72809aad (diff)
l 2 bitcoin: add sudo config
Diffstat (limited to 'lass/2configs/bitcoin.nix')
-rw-r--r--lass/2configs/bitcoin.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/lass/2configs/bitcoin.nix b/lass/2configs/bitcoin.nix
index d3bccbf5c..2f4cd5710 100644
--- a/lass/2configs/bitcoin.nix
+++ b/lass/2configs/bitcoin.nix
@@ -1,6 +1,8 @@
{ config, pkgs, ... }:
-{
+let
+ mainUser = config.users.extraUsers.mainUser;
+in {
environment.systemPackages = with pkgs; [
electrum
];
@@ -14,4 +16,7 @@
createHome = true;
};
};
+ security.sudo.extraConfig = ''
+ ${mainUser.name} ALL=(bitcoin) NOPASSWD: ALL
+ '';
}