feat: multi user

This commit is contained in:
Ryan Yin
2024-08-16 10:33:07 +08:00
parent 42bcfeb47c
commit adc91138c5
9 changed files with 122 additions and 53 deletions

22
users/ryan/home.nix Normal file
View File

@@ -0,0 +1,22 @@
{pkgs, ...}: {
##################################################################################################################
#
# All Ryan's Home Manager Configuration
#
##################################################################################################################
imports = [
../../home/core.nix
../../home/fcitx5
../../home/i3
../../home/programs
../../home/rofi
../../home/shell
];
programs.git = {
userName = "Ryan Yin";
userEmail = "xiaoyin_c@qq.com";
};
}

14
users/ryan/nixos.nix Normal file
View File

@@ -0,0 +1,14 @@
{
##################################################################################################################
#
# NixOS Configuration
#
##################################################################################################################
users.users.ryan = {
# Ryan's authorizedKeys
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJx3Sk20pLL1b2PPKZey2oTyioODrErq83xG78YpFBoj ryan@ryan"
];
};
}

22
users/suzi/home.nix Normal file
View File

@@ -0,0 +1,22 @@
{pkgs, ...}: {
##################################################################################################################
#
# All Suzi's Home Manager Configuration
#
##################################################################################################################
imports = [
../../home/core.nix
./fcitx5
./i3
./programs
./rofi
./shell
];
programs.git = {
userName = "Suzi";
userEmail = "suzi@writefor.fun";
};
}

14
users/suzi/nixos.nix Normal file
View File

@@ -0,0 +1,14 @@
{
##################################################################################################################
#
# NixOS Configuration
#
##################################################################################################################
users.users.suzi = {
# Suzi's authorizedKeys
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJx3Sk20pLL1b2PPKZey2oTyioODrErq83xG78YpFBoj suzi@suzi"
];
};
}