dotfiles/nixos/home.nix

72 lines
1.6 KiB
Nix
Raw Normal View History

2022-04-29 01:23:43 +00:00
{ pkgs, lib, user, ... }:
2021-08-09 12:19:21 +00:00
let
2022-04-23 16:27:17 +00:00
notes_path = "$HOME/dev/personal/notes";
2021-08-09 12:19:21 +00:00
2022-01-22 16:01:52 +00:00
in {
2022-04-29 01:23:43 +00:00
home-manager.users.${user} = {
2021-08-09 12:19:21 +00:00
2022-04-28 22:55:15 +00:00
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
# Applications
_1password-gui
discord
# neomutt
himalaya # Email
mpv # Video viewer
sxiv # Image viewer
zathura # PDF viewer
qbittorrent
# Encryption
gnupg
pass
];
gtk.enable = true;
gtk.theme = { name = "Adwaita-dark"; };
home.sessionVariables = {
2022-04-29 00:54:37 +00:00
NIXOS_CONFIG = builtins.toString ./.;
DOTS = builtins.toString ../.;
2022-04-28 22:55:15 +00:00
NOTES_PATH = "${notes_path}";
2022-01-22 20:58:20 +00:00
};
2021-08-09 12:45:46 +00:00
2022-04-28 22:55:15 +00:00
# Other configs
xdg.configFile = {
"awesome/rc.lua".source = ./awesomerc.lua;
"qtile/config.py".source = ./qtile.py;
"direnvrc".text = "source $HOME/.nix-profile/share/nix-direnv/direnvrc";
"spectrwm/spectrwm.conf".source = ./spectrwm.conf;
};
programs.direnv = {
enable = true;
nix-direnv.enable = true;
2022-04-29 00:54:37 +00:00
config = { whitelist = { prefix = [ "${builtins.toString ../.}/" ]; }; };
2022-04-28 22:55:15 +00:00
};
2022-01-22 19:01:32 +00:00
2022-04-28 22:55:15 +00:00
# Email
# programs.himalaya = {
# enable = true;
# settings = {
# name = "${name}";
# downloads-dir = "~/Downloads";
# home = {
# default = true;
# email = "censored";
# imap-host = "censored";
# imap-port = 993;
# imap-login = "censored";
# imap-passwd-cmd = "cat ~/.config/himalaya/passwd";
# smtp-host = "censored";
# smtp-port = 587;
# smtp-login = "censored";
# smtp-passwd-cmd = "cat ~/.config/himalaya/passwd";
# };
# };
# };
2022-01-13 14:39:48 +00:00
};
2021-08-09 12:19:21 +00:00
}