2023-11-06 15:45:46 -08:00
|
|
|
{ username, user-email, home-dir, enable-gui, ... }:
|
|
|
|
{ pkgs, ... }:
|
2021-09-08 12:10:59 -07:00
|
|
|
|
2023-11-06 15:45:46 -08:00
|
|
|
with pkgs.lib; if !enable-gui then {} else {
|
2021-09-08 12:10:59 -07:00
|
|
|
home = {
|
2021-09-18 22:57:22 -07:00
|
|
|
packages = with pkgs; [
|
2021-09-08 12:10:59 -07:00
|
|
|
fcitx5-configtool
|
2021-09-18 22:57:22 -07:00
|
|
|
fcitx5-gtk
|
2021-09-08 12:10:59 -07:00
|
|
|
firefox
|
|
|
|
gnome.gnome-tweaks
|
|
|
|
google-chrome
|
|
|
|
imagemagick
|
|
|
|
jq
|
|
|
|
minecraft
|
|
|
|
pv
|
|
|
|
redshift
|
|
|
|
spotify
|
|
|
|
xclip
|
|
|
|
];
|
|
|
|
|
|
|
|
keyboard = {
|
|
|
|
layout = "us";
|
|
|
|
};
|
|
|
|
|
|
|
|
username = username;
|
|
|
|
};
|
|
|
|
|
2021-09-18 22:57:22 -07:00
|
|
|
## Sigh...have to wait for this
|
|
|
|
# i18n.inputMethod = {
|
|
|
|
# enabled = "fcitx5";
|
|
|
|
# fcitx5.addons = [ pkgs.fcitx5-rime ];
|
|
|
|
# };
|
2021-09-08 12:10:59 -07:00
|
|
|
|
|
|
|
programs = {
|
|
|
|
firefox.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
# gammastep = {
|
|
|
|
# enable = true;
|
|
|
|
# latitude = 47;
|
|
|
|
# longitude = 122;
|
|
|
|
# };
|
|
|
|
|
|
|
|
gnome-keyring.enable = true;
|
|
|
|
|
|
|
|
redshift = {
|
|
|
|
enable = true;
|
2021-09-18 22:57:22 -07:00
|
|
|
latitude = "47";
|
|
|
|
longitude = "122";
|
2021-09-08 12:10:59 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
accounts.email.accounts = {
|
|
|
|
Fudo = {
|
|
|
|
primary = true;
|
|
|
|
address = "xiaoxuan@fudo.org";
|
|
|
|
aliases = [ "xiaoxuan@selby.ca" ];
|
|
|
|
userName = "xiaoxuan";
|
|
|
|
realName = "Xiaoxuan Jin";
|
|
|
|
imap = {
|
|
|
|
host = "mail.fudo.org";
|
2021-09-18 22:57:22 -07:00
|
|
|
tls.enable = true;
|
|
|
|
port = 993;
|
2021-09-08 12:10:59 -07:00
|
|
|
};
|
|
|
|
smtp = {
|
|
|
|
host = "mail.fudo.org";
|
2021-09-18 22:57:22 -07:00
|
|
|
port = 587;
|
2021-09-08 12:10:59 -07:00
|
|
|
tls = {
|
|
|
|
enable = true;
|
|
|
|
useStartTls = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
GMail = {
|
|
|
|
address = "clairejin1223@gmail.com";
|
|
|
|
flavor = "gmail.com";
|
|
|
|
realName = "Xiaoxuan Jin";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.user.tmpfiles.rules = [
|
|
|
|
"L+ /mnt/documents/${username} - - - - ${home-dir}/Documents"
|
|
|
|
"L+ /mnt/downloads/${username} - - - - ${home-dir}/Downloads"
|
|
|
|
];
|
|
|
|
}
|