dotfiles/nixos/home.nix
2022-04-28 21:23:43 -04:00

72 lines
1.6 KiB
Nix

{ pkgs, lib, user, ... }:
let
notes_path = "$HOME/dev/personal/notes";
in {
home-manager.users.${user} = {
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 = {
NIXOS_CONFIG = builtins.toString ./.;
DOTS = builtins.toString ../.;
NOTES_PATH = "${notes_path}";
};
# 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;
config = { whitelist = { prefix = [ "${builtins.toString ../.}/" ]; }; };
};
# 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";
# };
# };
# };
};
}