mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 10:06:13 +01:00
3ccb236c4b
Signed-off-by: Magic_RB <magic_rb@redalder.org>
31 lines
747 B
Nix
31 lines
747 B
Nix
{ config, lib, secret, ... }:
|
|
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";
|
|
hashedPassword = secret.passwordHashes.main.generic;
|
|
description = "main";
|
|
|
|
uid = 1000;
|
|
|
|
extraGroups = [ "wheel" "audio" ]
|
|
++ (optional nm-enable "network-manager")
|
|
++ (optional docker-enable "docker");
|
|
|
|
openssh.authorizedKeys.keys =
|
|
[ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFVkFvalffJ/SMjJGG3WPiqCqFygnWzhGUaeALBIoCsJ (none)" ];
|
|
};
|
|
|
|
groups.main = {
|
|
gid = 1000;
|
|
};
|
|
};
|
|
}
|