32 lines
625 B
Nix
32 lines
625 B
Nix
|
{
|
||
|
pkgs,
|
||
|
lib,
|
||
|
...
|
||
|
}: {
|
||
|
users = {
|
||
|
knownUsers = ["guanranwang"];
|
||
|
users."guanranwang" = {
|
||
|
createHome = true;
|
||
|
description = "Guanran Wang";
|
||
|
home = "/Users/guanranwang";
|
||
|
shell = pkgs.fish;
|
||
|
uid = 501;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
### Options
|
||
|
myFlake.darwin.networking.dns = lib.mkDefault "alidns";
|
||
|
time.timeZone = lib.mkDefault "Asia/Shanghai";
|
||
|
|
||
|
### Flakes
|
||
|
imports = [
|
||
|
../../../../../darwin/flake-modules/home-manager.nix
|
||
|
];
|
||
|
|
||
|
### home-manager
|
||
|
home-manager.users.guanranwang.imports = map (n: ../../../home-manager/${n}) [
|
||
|
"default.nix"
|
||
|
"profiles/command-line/darwin"
|
||
|
];
|
||
|
}
|