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
+3 -14
View File
@@ -1,20 +1,9 @@
{ config, pkgs, ... }:
{
imports = [
./fcitx5
./i3
./programs
./rofi
./shell
];
{username, ...}: {
# Home Manager needs a bit of information about you and the
# paths it should manage.
home = {
username = "ryan";
homeDirectory = "/home/ryan";
inherit username;
homeDirectory = "/home/${username}";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
+3 -2
View File
@@ -1,6 +1,7 @@
{
pkgs,
config,
username,
...
}: {
programs = {
@@ -14,7 +15,7 @@
firefox = {
enable = true;
profiles.ryan = {};
profiles.${username} = {};
};
};
}
}
+2 -3
View File
@@ -7,7 +7,6 @@
programs.git = {
enable = true;
userName = "Ryan Yin";
userEmail = "xiaoyin_c@qq.com";
# ... Other options ...
};
}
}