blob: 0d1585ecadc17cb62532f5785bf2b2ef1f1ae3bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ config, lib, ... }:
let cfg = config.personal.user;
in {
options.personal.user = {
enable = lib.mkEnableOption "main user";
name = lib.mkOption {
type = lib.types.str;
default = "qaristote";
};
};
config.users.users."${cfg.name}" = lib.mkIf cfg.enable {
isNormalUser = true;
extraGroups = [ "wheel" ] ++ lib.optional config.sound.enable "sound"
++ lib.optional config.networking.networkmanager.enable "networkmanager";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK4wGbl3++lqCjLUhoRyABBrVEeNhIXYO4371srkRoyq qaristote@latitude-7490"
];
};
}
|