diff options
author | lassulus <lass@aidsballs.de> | 2016-01-19 19:59:53 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-01-19 19:59:53 +0100 |
commit | 186d5cc95a7430136da3107734409511c64d7080 (patch) | |
tree | e7f3c970646bf5329b7e09f12338ffb640f97b6a /lass/2configs | |
parent | 403f5674117a1b85a01a7ad30cd94bbf72809aad (diff) |
l 2 bitcoin: add sudo config
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/bitcoin.nix | 7 |
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 + ''; } |