nixos/home-manager/home.nix

158 lines
3.6 KiB
Nix

# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
# If you want to use modules your own flake exports (from modules/home-manager):
# outputs.homeManagerModules.example
# Or modules exported from other flakes (such as nix-colors):
# inputs.nix-colors.homeManagerModules.default
# You can also split up your configuration and import pieces of it here:
# ./nvim.nix
];
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = _: true;
};
};
home = {
username = "ruben";
homeDirectory = "/home/ruben";
};
# this is a got damn NEO VIMME HOUSE !!
home.sessionVariables = {
EDITOR = "nvim";
};
# fuzzy command finder, required by a decent amount of things
programs.fzf = {
enable = true;
enableZshIntegration = true;
};
# my preferred shell customized to my needs
# TODO: theres only oh-my-zsh support out of the box, figure out
# how to customize sheldon and starship
programs.zsh = {
enable = true;
history.size = 50000;
syntaxHighlighting.enable = true;
};
programs.git = {
enable = true;
userName = "Sneexy";
userEmail = "sneexy@disroot.org";
signing.signByDefault = true;
#signing.key = ""; # TODO: fill this out
extraConfig = {
commit.verbose = true;
init.defaultBranch = "main";
};
};
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
vscodevim.vim
catppuccin.catppuccin-vsc
catppuccin.catppuccin-vsc-icons
arrterian.nix-env-selector
donjayamanne.githistory
];
userSettings = {
"editor.fontFamily" = "\'JetBrainsMono Nerd Font\', \'Terminus (TTF)\', \'Droid Sans Mono\', \'monospace\', monospace";
"editor.fontSize" = 16;
"workbench.colorTheme" = "Catppuccin Mocha";
#"workbench.iconTheme" = "material-icon-theme";
"files.eol" = "\n";
"editor.cursorBlinking" = "phase";
};
};
xdg.userDirs.enable = true;
# music!!
services.mpd = {
enable = true;
extraConfig = ''
''audio_output {
type "pipewire"
name "PipeWire"
}''
'';
};
# Add stuff for your user as you see fit:
programs.neovim.enable = true;
home.packages = with pkgs; [
btop
bat
duf
fastfetch
fd
delta
lsd
ripgrep
sd
starship
zoxide
usbutils
jq
ffmpeg_6-full
imagemagick
yt-dlp
mpv
nextcloud-client
];
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";
# Enable home-manager
programs.home-manager.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "23.05";
}