Initial shared NixOS modules
This commit is contained in:
10
home/default/bash.nix
Normal file
10
home/default/bash.nix
Normal 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
9
home/default/basic.nix
Normal 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
11
home/default/direnv.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
|
||||
nix-direnv = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
21
home/default/git.nix
Normal file
21
home/default/git.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user