mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
29 lines
769 B
Nix
29 lines
769 B
Nix
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib }:
|
|
{ config, ... }:
|
|
let
|
|
nm-enable = config.networking.networkmanager.enable;
|
|
docker-enable = config.virtualisation.docker.enable;
|
|
mkIf = nixpkgs.lib.mkIf;
|
|
in {
|
|
users = {
|
|
mutableUsers = false;
|
|
|
|
users.main = {
|
|
isNormalUser = true;
|
|
home = "/home/main";
|
|
hashedPassword = "$6$F6w9J7PuM$O/0rEIRIjc9fWvZ2DPxttFU6vj0hKsyry0xO6CnVv6/2sbryCerZZDP2qlXHthSRPtgTfpnN0eaZa.RQDid5T.";
|
|
description = "main";
|
|
|
|
uid = 1000;
|
|
|
|
extraGroups = [ "wheel" "audio" ]
|
|
++ (if nm-enable then [ "networkmanager" ] else [])
|
|
++ (if docker-enable then [ "docker" ] else []);
|
|
};
|
|
|
|
groups.main = {
|
|
gid = 1000;
|
|
};
|
|
};
|
|
}
|