added no password for soteria
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ inputs, ... }:
|
{ inputs, lib, ... }:
|
||||||
let
|
let
|
||||||
username = "john";
|
username = "john";
|
||||||
hostname = "soteria";
|
hostname = "soteria";
|
||||||
@@ -16,6 +16,19 @@ in
|
|||||||
# nixos.restic-envoy
|
# nixos.restic-envoy
|
||||||
{
|
{
|
||||||
networking.hostName = hostname;
|
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";
|
# nix.settings.build-dir = "/var/tmp/nix-build";
|
||||||
# systemd.tmpfiles.rules = [
|
# systemd.tmpfiles.rules = [
|
||||||
# "d /var/tmp/nix-build 1777 root root -"
|
# "d /var/tmp/nix-build 1777 root root -"
|
||||||
|
|||||||
Reference in New Issue
Block a user