l 2 bitcoin: add sudo config
This commit is contained in:
parent
403f567411
commit
186d5cc95a
@ -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
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user