nix/common/home-manager.nix

175 lines
3.5 KiB
Nix
Raw Normal View History

2022-07-25 14:59:32 +00:00
{ config, pkgs, ... }:
{
2022-08-01 21:11:10 +00:00
imports = [
<home-manager/nixos>
];
2022-07-25 14:59:32 +00:00
home-manager.users.sijmen = {
nixpkgs.config.allowUnfree = true;
home = {
stateVersion = config.system.stateVersion;
packages = with pkgs; [
# Office
2022-07-25 14:59:32 +00:00
aerc
libreoffice-fresh
# Programming
2022-08-01 21:11:10 +00:00
bacon
2022-08-07 13:25:59 +00:00
drone-cli
sublime-merge
tig
vscode-fhs
# Graphics
2022-08-01 21:11:10 +00:00
gimp
inkscape
# Internet
discord
httpie
2022-07-25 14:59:32 +00:00
tdesktop
transmission-gtk
w3m
wget
# Sound & Video
mpv
spotify
# System Tools
fd
2022-07-25 14:59:32 +00:00
gnome.gnome-tweaks
gnomeExtensions.openweather
pika-backup
silver-searcher
unzip
virt-manager
wl-clipboard
2022-07-25 14:59:32 +00:00
];
sessionVariables = {
MOZ_ENABLE_WAYLAND = 1;
NIXOS_OZONE_WL = 1;
QT_QPA_PLATFORM = "wayland";
SDL_VIDEODRIVER = "wayland";
EDITOR = "nvim";
};
shellAliases = {
".." = "cd ..";
"..." = "cd ../..";
config = "vim /etc/nixos/configuration.nix";
2022-08-05 11:30:16 +00:00
hmconf = "vim /etc/nixos/common/home-manager.nix";
2022-07-25 14:59:32 +00:00
switch = "sudo nixos-rebuild switch";
2022-07-30 13:59:10 +00:00
nr = "nix run --impure";
2022-07-25 14:59:32 +00:00
};
};
programs.git = {
enable = true;
lfs.enable = true;
userName = "Sijmen";
userEmail = "me@sijman.nl";
extraConfig = {
fetch.prune = true;
init.defaultBranch = "main";
push.autoSetupRemote = true;
safe.directory = [ "/etc/nixos" ];
};
};
programs.firefox = {
enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
forceWayland = true;
};
};
programs.neovim = {
enable = true;
vimAlias = true;
extraConfig = ''
2022-08-01 21:11:10 +00:00
luafile /etc/nixos/common/nvim.lua
2022-07-25 14:59:32 +00:00
'';
extraPackages = with pkgs; [
gcc
rnix-lsp
nodePackages.pyright
];
plugins = with pkgs.vimPlugins; [
bufferline-nvim
galaxyline-nvim
indentLine
neorg
nvim-colorizer-lua
nvim-compe
nvim-lspconfig
nvim-tree-lua
nvim-treesitter
nvim-web-devicons
2022-08-07 20:42:32 +00:00
onehalf
2022-07-25 14:59:32 +00:00
pears-nvim
plenary-nvim
Spacegray-vim
vim-closetag
vim-nix
];
};
2022-08-01 21:30:05 +00:00
programs.alot.enable = true;
programs.gpg.enable = true;
2022-07-30 13:59:10 +00:00
programs.home-manager.enable = true;
programs.mbsync.enable = true;
2022-08-01 21:30:05 +00:00
programs.password-store.enable = true;
programs.bash = {
enable = true;
initExtra = ''
source ${pkgs.fetchurl { url = "https://raw.githubusercontent.com/rupa/z/v1.11/z.sh"; sha256 = "f24e0791ba10f6a8301461da3fc50333eee2e009a19e5d0e9f3661f0d0446767"; }}
'';
};
2022-07-30 13:59:10 +00:00
programs.notmuch = {
enable = true;
hooks = {
preNew = "mbsync --all";
};
};
services.keybase.enable = true;
accounts.email.accounts.Personal = {
primary = true;
address = "me@sijmenschoon.nl";
aliases = [ "me@sijman.nl" "me@vijf.life" "info@sijmenschoon.nl" ];
realName = "Sijmen Schoon";
userName = "me@sijmenschoon.nl";
passwordCommand = "pass show email/personal";
imap.host = "imap.soverin.net";
smtp.host = "smtp.soverin.net";
folders.inbox = "INBOX";
mbsync = {
enable = true;
create = "maildir";
};
notmuch.enable = true;
};
2022-07-25 14:59:32 +00:00
imports = [ ./dconf.nix ];
};
}