mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 10:36:12 +01:00
25 lines
470 B
Nix
25 lines
470 B
Nix
|
{ config, pkgs, ... }:
|
||
|
let
|
||
|
nm-enable = config.networking.networkmanager.enable;
|
||
|
mkIf = pkgs.lib.mkIf;
|
||
|
in {
|
||
|
users = {
|
||
|
mutableUsers = false;
|
||
|
|
||
|
users.main = {
|
||
|
isNormalUser = true;
|
||
|
home = "/home/main";
|
||
|
hashedPassword = "<redacted>";
|
||
|
description = "main";
|
||
|
|
||
|
uid = 1000;
|
||
|
|
||
|
extraGroups = [ "wheel" "audio" ] ++ (if nm-enable then [ "networkmanager" ] else []);
|
||
|
};
|
||
|
|
||
|
groups.main = {
|
||
|
gid = 1000;
|
||
|
};
|
||
|
};
|
||
|
}
|