added no password for soteria
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ inputs, ... }:
|
||||
{ inputs, lib, ... }:
|
||||
let
|
||||
username = "john";
|
||||
hostname = "soteria";
|
||||
@@ -16,6 +16,19 @@ in
|
||||
# nixos.restic-envoy
|
||||
{
|
||||
networking.hostName = hostname;
|
||||
|
||||
# Removes password for sudo
|
||||
security.sudo-rs.extraRules = lib.mkAfter [
|
||||
{
|
||||
users = [ username ];
|
||||
commands = [
|
||||
{
|
||||
command = "ALL";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
# nix.settings.build-dir = "/var/tmp/nix-build";
|
||||
# systemd.tmpfiles.rules = [
|
||||
# "d /var/tmp/nix-build 1777 root root -"
|
||||
|
||||
Reference in New Issue
Block a user