nix/common/home-manager.nix

191 lines
4.1 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 = {
2022-08-08 12:43:21 +00:00
imports = [
./home-manager/home.nix
./home-manager/gtk.nix
];
2022-08-08 12:13:58 +00:00
2022-08-08 12:43:21 +00:00
nixpkgs.config.allowUnfree = true;
home.stateVersion = config.system.stateVersion;
2022-08-08 00:11:34 +00:00
2022-08-08 14:08:50 +00:00
programs = {
2022-10-04 14:57:21 +00:00
alacritty = {
enable = false;
settings = {
window.decorations = "none";
colors = {
primary = {
background = "0xfafafa";
foreground = "0x383a42";
};
normal = {
black = "0x383a42";
red = "0xe45649";
green = "0x50a14f";
yellow = "0xc18401";
blue = "0x0184bc";
magenta = "0xa626a4";
cyan = "0x0997b3";
white = "0xfafafa";
};
bright = {
black = "0x383a42";
red = "0xe45649";
green = "0x50a14f";
yellow = "0xc18401";
blue = "0x0184bc";
magenta = "0xa626a4";
cyan = "0x0997b3";
white = "0xfafafa";
};
};
};
};
2022-08-08 14:08:50 +00:00
git = {
enable = true;
lfs.enable = true;
2022-08-12 00:13:22 +00:00
package = pkgs.gitAndTools.gitFull;
2022-08-08 14:08:50 +00:00
userName = "Sijmen";
userEmail = "me@sijman.nl";
signing = {
signByDefault = true;
key = "0xDAF7821E067D9C48";
};
extraConfig = {
fetch.prune = true;
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
safe.directory = [ "/etc/nixos" ];
};
};
2022-08-08 14:08:50 +00:00
firefox = {
enable = true;
2022-12-17 16:41:04 +00:00
package = pkgs.firefox-wayland;
2022-07-25 14:59:32 +00:00
};
2022-10-04 14:53:46 +00:00
chromium.enable = true;
2022-08-08 14:08:50 +00:00
neovim = {
enable = true;
vimAlias = true;
extraConfig = ''
luafile /etc/nixos/common/nvim.lua
'';
extraPackages = with pkgs; [
gcc
rnix-lsp
nodePackages.pyright
];
plugins = with pkgs.vimPlugins; [
bufferline-nvim
2022-08-12 00:14:31 +00:00
cmp-nvim-lsp
cmp_luasnip
2022-10-25 13:50:11 +00:00
ctrlp-vim
2022-08-08 14:08:50 +00:00
galaxyline-nvim
indentLine
2022-10-25 13:50:11 +00:00
leap-nvim
2022-08-08 14:08:50 +00:00
lualine-nvim
2022-08-12 00:14:31 +00:00
luasnip
2022-08-08 14:08:50 +00:00
neorg
2022-08-12 00:14:31 +00:00
nvim-cmp
2022-08-08 14:08:50 +00:00
nvim-colorizer-lua
nvim-lspconfig
nvim-tree-lua
nvim-treesitter.withAllGrammars
2022-08-08 14:08:50 +00:00
nvim-web-devicons
onehalf
pears-nvim
plenary-nvim
vim-closetag
vim-nix
2022-10-25 13:50:11 +00:00
vim-startuptime
2022-08-08 14:08:50 +00:00
];
2022-07-25 14:59:32 +00:00
};
2022-09-19 21:27:01 +00:00
tmux = {
enable = true;
prefix = "C-a";
extraConfig = ''
set -g mouse on
set-option -g set-titles on
set-option -g set-titles-string "#W"
'';
};
2022-08-08 14:08:50 +00:00
alot.enable = true;
gpg.enable = true;
home-manager.enable = true;
mbsync.enable = true;
password-store.enable = true;
2022-08-12 00:14:03 +00:00
msmtp.enable = true;
2022-07-25 14:59:32 +00:00
2022-08-08 14:08:50 +00:00
bash = {
enable = true;
initExtra = ''
source ${pkgs.fetchurl { url = "https://raw.githubusercontent.com/rupa/z/v1.11/z.sh"; sha256 = "f24e0791ba10f6a8301461da3fc50333eee2e009a19e5d0e9f3661f0d0446767"; }}
'';
};
2022-11-01 00:32:23 +00:00
mpv = {
enable = true;
config = {
script-opts = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp";
};
};
yt-dlp = {
enable = true;
settings = {
sponsorblock-mark = "sponsor,selfpromo,intro,outro,poi_highlight";
};
};
2022-07-30 13:59:10 +00:00
};
2022-10-31 01:49:37 +00:00
services.gpg-agent = {
enable = true;
pinentryFlavor = "qt";
};
2022-07-30 13:59:10 +00:00
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";
};
2022-08-12 00:14:03 +00:00
msmtp.enable = true;
2022-07-30 13:59:10 +00:00
};
2022-07-25 14:59:32 +00:00
};
}