2021-08-19 18:14:15 +02:00
|
|
|
{ config, lib, secret, ... }:
|
2021-04-11 00:25:36 +02:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
nm-enable = config.networking.networkmanager.enable;
|
|
|
|
docker-enable = config.virtualisation.docker.enable;
|
|
|
|
in {
|
|
|
|
users = {
|
|
|
|
mutableUsers = false;
|
|
|
|
|
|
|
|
users.main = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/main";
|
2021-08-19 18:14:15 +02:00
|
|
|
hashedPassword = secret.passwordHashes.main.generic;
|
2021-04-11 00:25:36 +02:00
|
|
|
description = "main";
|
|
|
|
|
|
|
|
uid = 1000;
|
|
|
|
|
|
|
|
extraGroups = [ "wheel" "audio" ]
|
|
|
|
++ (optional nm-enable "network-manager")
|
|
|
|
++ (optional docker-enable "docker");
|
2021-05-30 11:19:34 +02:00
|
|
|
|
|
|
|
openssh.authorizedKeys.keys =
|
|
|
|
[ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFVkFvalffJ/SMjJGG3WPiqCqFygnWzhGUaeALBIoCsJ (none)" ];
|
2021-04-11 00:25:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
groups.main = {
|
|
|
|
gid = 1000;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|