mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-13 19:00:19 +01:00
file structure refactor
This commit is contained in:
parent
b1c4d7ab2f
commit
893764b9ae
9 changed files with 45 additions and 31 deletions
|
|
@ -43,7 +43,9 @@
|
|||
./graphical.nix
|
||||
./extra_info.nix
|
||||
./localinfo.nix
|
||||
./wm.nix
|
||||
./wm
|
||||
./rustdev.nix
|
||||
./git
|
||||
inputs.zsh-traxys.home-managerModule."${system}"
|
||||
inputs.hm-nvim-traxys.home-managerModule."${system}"
|
||||
];
|
||||
|
|
|
|||
30
git/default.nix
Normal file
30
git/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Quentin Boyer";
|
||||
userEmail = config.extraInfo.email;
|
||||
delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
line-numbers = true;
|
||||
syntax-theme = "Dracula";
|
||||
plus-style = "auto \"#121bce\"";
|
||||
plus-emph-style = "auto \"#6083eb\"";
|
||||
};
|
||||
};
|
||||
extraConfig = {
|
||||
diff = {
|
||||
algorithm = "histogram";
|
||||
};
|
||||
core = {
|
||||
excludesfile = "${config.home.homeDirectory}/.gitignore";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.file = {
|
||||
".gitignore".source = ./gitignore;
|
||||
};
|
||||
}
|
||||
30
home.nix
30
home.nix
|
|
@ -12,18 +12,12 @@ let
|
|||
};
|
||||
in
|
||||
{
|
||||
home.sessionVariables = {
|
||||
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
bitwarden-cli
|
||||
rustup
|
||||
nodePackages.vscode-json-languageserver
|
||||
exa
|
||||
python3
|
||||
topgrade
|
||||
cargo-edit
|
||||
rsync
|
||||
fd
|
||||
niv
|
||||
|
|
@ -60,35 +54,11 @@ in
|
|||
enable = true;
|
||||
};
|
||||
|
||||
git = {
|
||||
enable = true;
|
||||
userName = "Quentin Boyer";
|
||||
userEmail = config.extraInfo.email;
|
||||
delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
line-numbers = true;
|
||||
syntax-theme = "Dracula";
|
||||
plus-style = "auto \"#121bce\"";
|
||||
plus-emph-style = "auto \"#6083eb\"";
|
||||
};
|
||||
};
|
||||
extraConfig = {
|
||||
diff = {
|
||||
algorithm = "histogram";
|
||||
};
|
||||
core = {
|
||||
excludesfile = "${config.home.homeDirectory}/.gitignore";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
zoxide = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
home.file = {
|
||||
".gitignore".source = ./gitignore;
|
||||
"bin" = {
|
||||
source = ./scripts;
|
||||
recursive = true;
|
||||
|
|
|
|||
12
rustdev.nix
Normal file
12
rustdev.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
home.sessionVariables = {
|
||||
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
rustup
|
||||
cargo-edit
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue