why does NixOS make the users' primary group "users" instead of the username like every other distro???
33 lines
695 B
Nix
33 lines
695 B
Nix
{ config, lib, pkgs, ...}:
|
|
let
|
|
cfg = config.nixfiles.common.me;
|
|
in
|
|
{
|
|
options.nixfiles.common.me = {
|
|
enable = lib.mkEnableOption "my user account";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
users.users.nullbite = {
|
|
uid = 1000;
|
|
group = "nullbite";
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ] ++ lib.optional config.nixfiles.packageSets.fun.enable "input";
|
|
packages = with pkgs; [
|
|
keychain
|
|
];
|
|
initialPassword = "changeme";
|
|
shell = pkgs.zsh;
|
|
};
|
|
|
|
users.groups.nullbite.gid = 1000;
|
|
|
|
# shell config
|
|
programs.zsh.enable = true;
|
|
programs.fzf = {
|
|
keybindings = true;
|
|
fuzzyCompletion = true;
|
|
};
|
|
};
|
|
}
|