added no password for soteria

This commit is contained in:
John Lancaster
2026-03-29 22:22:04 -05:00
parent 311ab760ea
commit 205d9ea867
+14 -1
View File
@@ -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 -"