117 lines
2.8 KiB
Nix
117 lines
2.8 KiB
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
# Home Manager needs a bit of information about you and the paths it should
|
||
|
# manage.
|
||
|
home.username = "digyx";
|
||
|
home.homeDirectory = "/var/home/digyx";
|
||
|
|
||
|
# This value determines the Home Manager release that your configuration is
|
||
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||
|
# introduces backwards incompatible changes.
|
||
|
#
|
||
|
# You should not change this value, even if you update Home Manager. If you do
|
||
|
# want to update the value, then make sure to first check the Home Manager
|
||
|
# release notes.
|
||
|
home.stateVersion = "23.05"; # Please read the comment before changing.
|
||
|
|
||
|
# The home.packages option allows you to install Nix packages into your
|
||
|
# environment.
|
||
|
home.packages = [
|
||
|
pkgs.ripgrep
|
||
|
pkgs.fd
|
||
|
pkgs.sd
|
||
|
pkgs.bat
|
||
|
pkgs.just
|
||
|
pkgs.tokei
|
||
|
];
|
||
|
|
||
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||
|
# plain files is through 'home.file'.
|
||
|
home.file = {
|
||
|
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
||
|
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
||
|
# # symlink to the Nix store copy.
|
||
|
# ".screenrc".source = dotfiles/screenrc;
|
||
|
|
||
|
# # You can also set the file content immediately.
|
||
|
# ".gradle/gradle.properties".text = ''
|
||
|
# org.gradle.console=verbose
|
||
|
# org.gradle.daemon.idletimeout=3600000
|
||
|
# '';
|
||
|
};
|
||
|
|
||
|
# You can also manage environment variables but you will have to manually
|
||
|
# source
|
||
|
#
|
||
|
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||
|
#
|
||
|
# or
|
||
|
#
|
||
|
# /etc/profiles/per-user/digyx/etc/profile.d/hm-session-vars.sh
|
||
|
#
|
||
|
# if you don't want to manage your shell through Home Manager.
|
||
|
home.sessionVariables = {
|
||
|
# EDITOR = "emacs";
|
||
|
};
|
||
|
|
||
|
# Let Home Manager install and manage itself.
|
||
|
programs.home-manager.enable = true;
|
||
|
|
||
|
programs.fish = {
|
||
|
enable = true;
|
||
|
interactiveShellInit = ''
|
||
|
set fish_greeting
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
programs.starship = {
|
||
|
enable = true;
|
||
|
enableFishIntegration = true;
|
||
|
};
|
||
|
|
||
|
programs.rtx = {
|
||
|
enable = true;
|
||
|
enableFishIntegration = true;
|
||
|
};
|
||
|
|
||
|
programs.zoxide = {
|
||
|
enable = true;
|
||
|
enableFishIntegration = true;
|
||
|
};
|
||
|
|
||
|
programs.git = {
|
||
|
enable = true;
|
||
|
userName = "Roman Godmaire";
|
||
|
userEmail = "godmaire@twilit.io";
|
||
|
|
||
|
delta = {
|
||
|
enable = true;
|
||
|
options = {
|
||
|
side-by-side = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
extraConfig = {
|
||
|
init = {
|
||
|
defaultBranch = "main";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
programs.emacs = {
|
||
|
enable = true;
|
||
|
package = pkgs.emacs;
|
||
|
};
|
||
|
|
||
|
programs.neovim = {
|
||
|
enable = true;
|
||
|
defaultEditor = true;
|
||
|
};
|
||
|
|
||
|
programs.yazi = {
|
||
|
enable = true;
|
||
|
enableFishIntegration = true;
|
||
|
};
|
||
|
}
|