darwin,users: modify user config structure
This commit is contained in:
parent
6c6ad8380b
commit
fb0d9ba00d
3 changed files with 15 additions and 11 deletions
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./guanranwang.nix
|
./normal-users/guanranwang.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
|
@ -1,10 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
users.users.guanranwang = {
|
|
||||||
createHome = true;
|
|
||||||
description = "Guanran Wang";
|
|
||||||
home = "/Users/guanranwang";
|
|
||||||
shell = pkgs.fish;
|
|
||||||
};
|
|
||||||
}
|
|
14
flakes/darwin/users/normal-users/guanranwang.nix
Normal file
14
flakes/darwin/users/normal-users/guanranwang.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
users = {
|
||||||
|
knownUsers = [ "guanranwang" ];
|
||||||
|
users."guanranwang" = {
|
||||||
|
createHome = true;
|
||||||
|
description = "Guanran Wang";
|
||||||
|
home = "/Users/guanranwang";
|
||||||
|
shell = pkgs.fish;
|
||||||
|
uid = 501;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue