2021-02-02 20:10:25 +01:00
|
|
|
{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib }:
|
|
|
|
{ config, ... }:
|
2020-12-26 23:36:50 +01:00
|
|
|
let
|
|
|
|
nm-enable = config.networking.networkmanager.enable;
|
2021-01-10 20:05:04 +01:00
|
|
|
docker-enable = config.virtualisation.docker.enable;
|
2021-02-02 20:10:25 +01:00
|
|
|
mkIf = nixpkgs.lib.mkIf;
|
2020-12-26 23:36:50 +01:00
|
|
|
in {
|
|
|
|
users = {
|
|
|
|
mutableUsers = false;
|
|
|
|
|
|
|
|
users.main = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/main";
|
2021-01-18 20:24:07 +01:00
|
|
|
hashedPassword = "$6$F6w9J7PuM$O/0rEIRIjc9fWvZ2DPxttFU6vj0hKsyry0xO6CnVv6/2sbryCerZZDP2qlXHthSRPtgTfpnN0eaZa.RQDid5T.";
|
2020-12-26 23:36:50 +01:00
|
|
|
description = "main";
|
|
|
|
|
|
|
|
uid = 1000;
|
|
|
|
|
2021-01-10 20:05:04 +01:00
|
|
|
extraGroups = [ "wheel" "audio" ]
|
|
|
|
++ (if nm-enable then [ "networkmanager" ] else [])
|
|
|
|
++ (if docker-enable then [ "docker" ] else []);
|
2020-12-26 23:36:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
groups.main = {
|
|
|
|
gid = 1000;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|