nix-home/xiaoxuan.nix

87 lines
1.6 KiB
Nix
Raw Normal View History

2021-09-08 12:10:59 -07:00
{ config, lib, pkgs, username, user-email, home-dir, enable-gui, ... }:
with lib; if !enable-gui then {} else {
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"
];
}