mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 03:56:12 +01:00
d3e46e5413
Signed-off-by: Magic_RB <magic_rb@redalder.org>
28 lines
577 B
Nix
28 lines
577 B
Nix
{ config, lib, ... }:
|
|
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 = "<REDACTED>";
|
|
description = "main";
|
|
|
|
uid = 1000;
|
|
|
|
extraGroups = [ "wheel" "audio" ]
|
|
++ (optional nm-enable "network-manager")
|
|
++ (optional docker-enable "docker");
|
|
};
|
|
|
|
groups.main = {
|
|
gid = 1000;
|
|
};
|
|
};
|
|
}
|