feat: add initial config
This commit is contained in:
commit
fb98563bb6
26 changed files with 576 additions and 0 deletions
32
system/users.nix
Normal file
32
system/users.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
users.mutableUsers = false;
|
||||
|
||||
users.users.nudelerde = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
hashedPassword = "$y$j9T$NiaiVxQKs0C1V4VdCFKBO.$P6RfBDTyJfPJJzKyHf9PJEy9Ku5M6AU57U98nVD6wP6";
|
||||
};
|
||||
|
||||
users.users.autossh-incoming = {
|
||||
isSystemUser = true;
|
||||
group = "autossh-incoming";
|
||||
createHome = true;
|
||||
home = "/var/lib/autossh-incoming";
|
||||
};
|
||||
|
||||
users.groups.autossh-incoming = {};
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "nudelerde" ];
|
||||
commands = [
|
||||
{
|
||||
command = "ALL";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue