nix-conf/home-manager/home.nix
Thiago Sposito cab6411899
feat: update flake inputs and home config
- bump flake-parts, home-manager, nixpkgs, nixvim, search
- add code-cursor to allowUnfree and home packages
- adjust firewall config under networking
2025-09-19 14:45:29 -03:00

137 lines
2.7 KiB
Nix

{ pkgs
, lib
, ...
}:
{
imports = [
./custom.nix
./gnome
./nvim
./zsh.nix
];
nixpkgs = {
config = {
allowUnfree = true;
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"code-cursor"
"ollama-cuda"
"steam-original"
"steam-run"
"steam"
"steamtinkerlaunch"
];
};
};
home = {
homeDirectory = "/home/thiago";
packages = with pkgs; [
code-cursor
direnv
fira-code
firefox
heroic
hwinfo
inkscape
keymapp
lazygit
libinput
nerd-fonts.fira-code
nil
nixd
nixpkgs-fmt
nixfmt-rfc-style
nordic
obsidian
ollama-cuda
pinentry-curses
python3
ripgrep
statix
steam
uget
unzip
waydroid
wl-clipboard
zed-editor
];
username = "thiago";
};
programs = {
git = {
aliases = {
br = "branch";
ca = "commit --amend";
can = "commit --amend --no-edit";
ci = "commit";
co = "checkout";
lg = "log --oneline --graph --decorate --all";
st = "status";
};
enable = true;
extraConfig = {
color.ui = "auto";
core = {
editor = "nvim";
autocrlf = "input";
};
init.defaultBranch = "main";
pull.rebase = true;
};
lfs.enable = true;
signing = {
key = "EC7C84664FF515B63AD510B63065EA73A976D430";
signByDefault = false;
};
userEmail = "th.spo@pm.me";
userName = "Thiago Sposito";
};
gpg = {
enable = true;
package = pkgs.gnupg;
};
home-manager.enable = true;
kitty = {
enable = true;
keybindings = {
# splitting
"ctrl+shift+enter" = "new_window";
"ctrl+shift+\\" = "new_window --location=hsplit";
# resizing
"ctrl+alt+left" = "resize_window narrower";
"ctrl+alt+right" = "resize_window wider";
"ctrl+alt+up" = "resize_window taller";
"ctrl+alt+down" = "resize_window shorter";
};
settings = {
hide_window_decorations = "titlebar-only";
font_size = 18;
font_family = "GohuFont 14 Nerd Font Mono";
inactive_text_alpha = "0.6";
# background_blur = 32;
background_opacity = 1.0;
};
};
vscode = {
enable = true;
};
};
services.gpg-agent = {
enable = true;
enableZshIntegration = true;
pinentry.package = pkgs.pinentry-curses;
};
systemd.user.startServices = "sd-switch";
home.stateVersion = "25.11";
}