nix/home-manager.nix
2022-07-29 01:31:06 +02:00

105 lines
2 KiB
Nix

{ config, pkgs, ... }:
{
home-manager.users.sijmen = {
nixpkgs.config.allowUnfree = true;
home = {
stateVersion = config.system.stateVersion;
packages = with pkgs; [
aerc
discord
mpv
pika-backup
python3
spotify
sublime-merge
tdesktop
thunderbird
transmission-gtk
unzip
vscode-fhs
w3m
wget
wl-clipboard
tig
gnome.gnome-tweaks
gnomeExtensions.openweather
];
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";
switch = "sudo nixos-rebuild switch";
};
};
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 = ''
luafile /etc/nixos/nvim.lua
'';
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
pears-nvim
plenary-nvim
Spacegray-vim
vim-closetag
vim-nix
];
};
imports = [ ./dconf.nix ];
};
}