nix: nil && nixfmt
This commit is contained in:
parent
bdded85026
commit
acd49eef51
1 changed files with 33 additions and 41 deletions
|
@ -13,6 +13,9 @@
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
nil
|
||||||
|
nixfmt
|
||||||
|
|
||||||
devenv
|
devenv
|
||||||
direnv
|
direnv
|
||||||
|
|
||||||
|
@ -66,25 +69,23 @@
|
||||||
|
|
||||||
# Shell configurations
|
# Shell configurations
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
fish_add_path $HOME/.emacs.d/bin/
|
fish_add_path $HOME/.emacs.d/bin/
|
||||||
fish_add_path $HOME/.cargo/bin/
|
fish_add_path $HOME/.cargo/bin/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
loginShellInit = ''
|
loginShellInit = ''
|
||||||
set -x XDG_DATA_DIRS $HOME/.nix-profile/share:$XDG_DATA_DIRS
|
set -x XDG_DATA_DIRS $HOME/.nix-profile/share:$XDG_DATA_DIRS
|
||||||
set -x DIRENV_LOG_FORMAT
|
set -x DIRENV_LOG_FORMAT
|
||||||
set -x SSH_AUTH_SOCK /run/user/1000/keyring/ssh
|
set -x SSH_AUTH_SOCK /run/user/1000/keyring/ssh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
'';
|
'';
|
||||||
|
|
||||||
functions = {
|
functions = { update = "nix-channel --update && home-manager switch"; };
|
||||||
update = "nix-channel --update && home-manager switch";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.mise.enable = true;
|
programs.mise.enable = true;
|
||||||
|
@ -93,36 +94,27 @@
|
||||||
|
|
||||||
# Programming configurations
|
# Programming configurations
|
||||||
programs.git = {
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = "Roman Godmaire";
|
||||||
|
userEmail = "godmaire@twilit.io";
|
||||||
|
|
||||||
|
delta = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Roman Godmaire";
|
options = { side-by-side = true; };
|
||||||
userEmail = "godmaire@twilit.io";
|
|
||||||
|
|
||||||
delta = {
|
|
||||||
enable = true;
|
|
||||||
options = {
|
|
||||||
side-by-side = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
init = {
|
|
||||||
defaultBranch = "main";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = { init = { defaultBranch = "main"; }; };
|
||||||
|
};
|
||||||
|
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.emacs29-pgtk;
|
package = pkgs.emacs29-pgtk;
|
||||||
|
|
||||||
extraPackages = epkgs: with epkgs; [
|
extraPackages = epkgs: with epkgs; [ pdf-tools vterm ];
|
||||||
pdf-tools
|
};
|
||||||
vterm
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue