l 2 bitcoin: add sudo config

This commit is contained in:
lassulus 2016-01-19 19:59:53 +01:00
parent 403f567411
commit 186d5cc95a

View File

@ -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
'';
}