examples/configuration: show how to enable sudo/doas for `operator`

This was brought up by a user on IRC.
This commit is contained in:
Erik Arvstedt 2021-10-02 11:49:50 +02:00
parent 4d5bc810eb
commit 3c6a664b7b
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 4 additions and 1 deletions

View File

@ -243,6 +243,10 @@
openssh.authorizedKeys.keys = [ "" ];
};
# FIXME: Uncomment this to allow the operator user to run
# commands as root with `sudo` or `doas`
# users.users.operator.extraGroups = [ "wheel" ];
# FIXME: add packages you need in your system
environment.systemPackages = with pkgs; [
vim
@ -261,5 +265,4 @@
# When upgrading to a backwards-incompatible release, nix-bitcoin will display an
# an error and provide hints for migrating your config to the new release.
nix-bitcoin.configVersion = "0.0.51";
}