mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
users/admin: make the account passwordless
This commit is contained in:
parent
8021cb270e
commit
57078178f3
@ -1,5 +1,4 @@
|
||||
# This is the main account for servers. It is also used for managing the
|
||||
# installations with deploy-rs.
|
||||
# Mainly used for managing the installations with deploy-rs.
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
@ -8,7 +7,6 @@ in
|
||||
{
|
||||
users.users.${name} = {
|
||||
description = "The administrator account for the servers.";
|
||||
hashedPassword = "$6$KXZD6NvjtSkle/id$ECs7zIwDBOlQiFACsyot1gyjKG9UWMlUdRknVujE9efpHMQGx7.YZWyJ0VkV0ja0BPzeF/EzTu6n4EEF5ZHPD0";
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
useDefaultShell = true;
|
||||
@ -18,6 +16,17 @@ in
|
||||
];
|
||||
};
|
||||
|
||||
# We're going passwordless, baybee!
|
||||
security.sudo.extraRules = [{
|
||||
users = [ name ];
|
||||
options = [ "NOPASSWD" ];
|
||||
}];
|
||||
|
||||
security.doas.extraRules = [{
|
||||
users = [ name ];
|
||||
noPass = true;
|
||||
}];
|
||||
|
||||
# This is also a trusted user for the Nix daemon.
|
||||
nix.settings.trusted-users = [ name ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user