use imports and split programs into their own files for organization

This commit is contained in:
= 2024-03-11 03:30:34 -05:00
parent 88107ecd41
commit a442323649
25 changed files with 850 additions and 357 deletions

View file

@ -1,8 +1,9 @@
{ pkgs, settings, ... }: {
{ settings, ylib, ... } @ args: {
home.stateVersion = "23.11";
programs.home-manager.enable = true;
home.username = settings.user.username;
home.homeDirectory = "/home/${settings.user.username}";
programs.home-manager.enable = true;
imports = ylib.umport { paths = [ ./programs ]; recursive = true; };
}

View file

@ -0,0 +1,55 @@
{ settings, ... }:
{
programs.git = {
enable = true;
userEmail = settings.user.git.email;
userName = settings.user.git.name;
extraConfig = {
core.pager = "cat";
core.editor = "nvim";
pull.rebase = false;
};
difftastic = {
enable = true;
background = "dark";
};
# TODO move from common system? Need root user home managed too...
# aliases: {}
ignores = [
# --------------
# Intellij
# --------------
"*.iml"
# --------------
# MAC OS
# --------------
".DS_Store"
".AppleDouble"
".LSOverride"
# Icon must end with two \r
"Icon"
# Thumbnails
"._*"
# Files that might appear in the root of a volume
".DocumentRevisions-V100"
".fseventsd"
".Spotlight-V100"
".TemporaryItems"
".Trashes"
".VolumeIcon.icns"
".com.apple.timemachine.donotpresent"
# Directories potentially created on remote AFP share
".AppleDB"
".AppleDesktop"
"Network Trash Folder"
"Temporary Items"
".apdisk"
];
};
}