darwin,users: modify user config structure

This commit is contained in:
Guanran Wang 2023-09-25 15:47:48 +08:00
parent 6c6ad8380b
commit fb0d9ba00d
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
3 changed files with 15 additions and 11 deletions

View file

@ -2,6 +2,6 @@
{ {
imports = [ imports = [
./guanranwang.nix ./normal-users/guanranwang.nix
]; ];
} }

View file

@ -1,10 +0,0 @@
{ pkgs, ... }:
{
users.users.guanranwang = {
createHome = true;
description = "Guanran Wang";
home = "/Users/guanranwang";
shell = pkgs.fish;
};
}

View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
users = {
knownUsers = [ "guanranwang" ];
users."guanranwang" = {
createHome = true;
description = "Guanran Wang";
home = "/Users/guanranwang";
shell = pkgs.fish;
uid = 501;
};
};
}