1
0

Initial shared NixOS modules

This commit is contained in:
2025-06-23 17:44:56 -07:00
commit 1061e07deb
11 changed files with 464 additions and 0 deletions

10
home/default/bash.nix Normal file
View File

@@ -0,0 +1,10 @@
{ ... }:
{
programs.bash = {
enable = true;
historyFileSize = 2000000000;
historySize = 100000000;
shellOptions = [ "histappend" "cmdhist" ];
historyControl = [ "ignoredups" "ignorespace" ];
};
}

9
home/default/basic.nix Normal file
View File

@@ -0,0 +1,9 @@
{ config, lib, ... }:
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Home Manager needs a bit of information about you and the paths it should manage.
home.username = lib.mkDefault "tb";
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
}

11
home/default/direnv.nix Normal file
View File

@@ -0,0 +1,11 @@
{ ... }:
{
programs.direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv = {
enable = true;
};
};
}

21
home/default/git.nix Normal file
View File

@@ -0,0 +1,21 @@
{ ... }:
{
programs.git = {
enable = true;
lfs.enable = true;
extraConfig = {
pull.ff = "only";
merge.conflictstyle = "zdiff3";
init.defaultBranch = "main";
diff.algorithm = "histogram";
transfer.fsckobjects = true;
fetch.fsckobjects = true;
receive.fsckObjects = true;
log.date = "iso";
};
};
}