Files
nixos-dotfiles/home.nix
BalrajSinghGidda 133238d1c7 new stuff
2025-12-13 00:12:08 +05:30

120 lines
2.9 KiB
Nix

{ config, pkgs, ... }:
let
dotfiles = "${config.home.homeDirectory}/nixos-dotfiles/config";
bin = "${config.home.homeDirectory}/nixos-dotfiles/bin";
create_symlink = path: config.lib.file.mkOutOfStoreSymlink path;
configs = {
nvim = "nvim";
qtile = "qtile";
rofi = "rofi";
picom = "picom";
kitty = "kitty";
};
in
{
home.username = "balraj";
home.homeDirectory = "/home/balraj";
home.stateVersion = "25.05";
programs.bash = {
enable = true;
bashmount.enable = true;
enableCompletion = true;
shellAliases = {
nc = "nvim ~/nixos-dotfiles/.";
btw = "echo I use NixOS, btw";
nrs = "sudo nixos-rebuild switch --flake ~/nixos-dotfiles/#nixos-server-btw";
edit-config = "nvim ~/nixos-dotfiles/configuration.nix";
edit-home-config = "nvim ~/nixos-dotfiles/home.nix";
make-py-devshell = "bash ${bin}/make-py-devshell";
make-cpp-devshell = "bash ${bin}/make-cpp-devshell";
ls = "eza --long -ahF --no-user --no-permissions --git --icons=always --color=always --grid";
cd = "z";
bm = "bashmount";
};
historyIgnore = [
"ls"
"exit"
];
bashrcExtra = ''
export PS1="\[\e[38;5;75m\]\u@\h \[\e[38;5;113m\]\w \[\e[38;5;189m\]\$ \[\e[0m\]"
export MANPAGER="nvim +Man!"
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow'
eval "$(direnv hook bash)"
eval "$(zoxide init bash)"
export POSH_SESSION_ID="5019232b-7132-4b5d-a914-4ddc9b73b2a3";source $'/home/balraj/.cache/oh-my-posh/init.8949049596678462984.sh'
nitch
'';
};
programs.git = {
enable = true;
settings.user.name = "BalrajSinghGidda";
settings.user.email = "anonystargamerz@gmail.com";
};
programs.gh = {
enable = true;
gitCredentialHelper = {
enable = true;
hosts = [
"https://github.com"
"https://gist.github.com"
];
};
settings = {
git_protocol = "https";
prompt = "enable";
editor = "nvim";
};
};
programs.gemini-cli = {
enable = true;
settings = {
"theme" = "Default";
"vimMode" = true;
"preferredEditor" = "nvim";
"autoAccept" = true;
};
defaultModel = "gemini-2.5-pro";
};
xdg.configFile = builtins.mapAttrs
(name: subpath: {
source = create_symlink "${dotfiles}/${subpath}";
recursive = true;
})
configs;
# xdg.configFile."qtile" = {
# source = create_symlink "${dotfiles}/qtile";
# recursive = true;
#
# (pkgs.writeShellApplication {
# name = "ns";
# runtimeInputs = with pkgs; [
# fzf
# nix-search-tv
# ];
# text = builtins.readFile "${pkgs.nix-search-tv.src}/nixpkgs.sh";
# })
#
# VV
home.packages = with pkgs; [
ripgrep
nil
nixpkgs-fmt
nodejs
gcc
yazi
flatpak
eza
zoxide
python313Packages.euporie
];
}