refactor: username

This commit is contained in:
Ryan Yin
2023-12-25 11:31:18 +08:00
parent d2a1bb18eb
commit 3b548b581c
6 changed files with 21 additions and 34 deletions
+6 -8
View File
@@ -1,9 +1,7 @@
{
imports = [
../base.nix
./nix-core.nix
./apps.nix
./system.nix
];
{mylib, ...}: {
imports =
(mylib.scanPaths ./.)
++ [
../base.nix
];
}
+11
View File
@@ -0,0 +1,11 @@
{username, ...}: {
# Define a user account. Don't forget to set a password with passwd.
users.users."${username}" = {
home = "/Users/${username}";
# set user's default shell back to zsh
# `chsh -s /bin/zsh`
# DO NOT change the system's default shell to nushell! it will break some apps!
# It's better to change only starship/alacritty/vscode's shell to nushell!
};
}