From 3c6a664b7b5e01801ac22f73a02c91985b02e986 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sat, 2 Oct 2021 11:49:50 +0200 Subject: [PATCH] examples/configuration: show how to enable sudo/doas for `operator` This was brought up by a user on IRC. --- examples/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/configuration.nix b/examples/configuration.nix index dcf1f06..26f3cfc 100644 --- a/examples/configuration.nix +++ b/examples/configuration.nix @@ -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"; - }