Cleanup and documentation

This commit is contained in:
Jan Kremer 2026-02-24 17:51:58 +01:00
parent 0556712d59
commit 2351c09b7b
No known key found for this signature in database
8 changed files with 16 additions and 69 deletions

View file

@ -32,10 +32,6 @@
]; ];
trusted-users = [ "jan" ]; trusted-users = [ "jan" ];
}; };
gc = {
automatic = true;
dates = "weekly";
};
}; };
users.users.jan = { users.users.jan = {
@ -61,10 +57,10 @@
nh = { nh = {
enable = true; enable = true;
# clean = { ## nix.gc already handles this clean = {
# enable = true; enable = true;
# extraArgs = "--keep-since 4d --keep 3"; extraArgs = "--keep-since 7d --keep 3";
# }; };
flake = "${config.users.users.jan.home}/.config/nix"; flake = "${config.users.users.jan.home}/.config/nix";
}; };
}; };

View file

@ -28,12 +28,12 @@
"@admin" "@admin"
]; ];
}; };
# gc.automatic = true;
}; };
nixpkgs = { nixpkgs = {
hostPlatform = "aarch64-darwin"; hostPlatform = "aarch64-darwin";
config.allowUnfree = true; config.allowUnfree = true;
## TODO List packages that require this
}; };
home-manager = { home-manager = {
@ -50,16 +50,11 @@
enable = true; enable = true;
onActivation = { onActivation = {
upgrade = true; upgrade = true;
cleanup = "zap"; cleanup = "zap"; # Remove all files from the package
}; };
}; };
programs = { security.pam.services.sudo_local.touchIdAuth = true; # Enable TouchID for sudo
zsh.enable = true;
fish.enable = true;
};
security.pam.services.sudo_local.touchIdAuth = true;
system = { system = {
primaryUser = "jan"; primaryUser = "jan";
@ -72,6 +67,7 @@
mru-spaces = false; mru-spaces = false;
largesize = 64; largesize = 64;
magnification = false; magnification = false;
## TODO Check if this works again
# persistent-apps = [ # persistent-apps = [
# "/Applications/Safari.app" # "/Applications/Safari.app"
# "/System/Applications/Mail.app" # "/System/Applications/Mail.app"
@ -88,11 +84,10 @@
}; };
finder = { finder = {
AppleShowAllExtensions = true; AppleShowAllExtensions = true;
FXPreferredViewStyle = "clmv"; FXPreferredViewStyle = "clmv"; # Column view
ShowPathbar = true; ShowPathbar = true; # Show path at bottom
_FXShowPosixPathInTitle = true; _FXShowPosixPathInTitle = true; # Show path at top
}; };
# screencapture.location = "~/Pictures/Bildschirmfotos";
}; };
## Set Git commit hash for darwin-version. ## Set Git commit hash for darwin-version.

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
## Catppuccin (https://catppuccin.com/) ## Catppuccin (https://catppuccin.com/)
## Only use dark theme until Helix supports light theme (will be in the next release)
programs = { programs = {
bat = { bat = {
config.theme = "catppuccin-macchiato"; config.theme = "catppuccin-macchiato";

View file

@ -23,23 +23,17 @@
## Mute login message in terminal ## Mute login message in terminal
file.".hushlogin".text = ""; file.".hushlogin".text = "";
sessionVariables = { ## Mute direnv output
DIRENV_LOG_FORMAT = ""; sessionVariables.DIRENV_LOG_FORMAT = "";
};
shellAliases = { shellAliases = {
"yt" = "yt-dlp"; "yt" = "yt-dlp"; # Download video
"yta" = "yt-dlp -x"; "yta" = "yt-dlp -x"; # Download audio
}; };
packages = [ inputs.agenix.packages.${pkgs.stdenv.hostPlatform.system}.default ]; packages = [ inputs.agenix.packages.${pkgs.stdenv.hostPlatform.system}.default ];
}; };
age = {
# identityPaths = [ "~/.ssh/id_ed25519" ];
secrets."openai".file = ../secrets/openai.age;
};
xdg = { xdg = {
enable = true; enable = true;
userDirs = { userDirs = {

View file

@ -3,10 +3,6 @@
./ignores.nix ./ignores.nix
]; ];
home.sessionVariables = {
GITHUB_TOKEN = "$(gh auth token)";
};
programs = { programs = {
git = { git = {
enable = true; enable = true;
@ -64,16 +60,5 @@
}; };
}; };
}; };
gh = {
enable = true;
settings.git_protocol = "ssh";
};
sapling = {
enable = true;
userName = "Jan Kremer";
userEmail = "mail@jankremer.eu";
};
}; };
} }

View file

@ -1,7 +1,6 @@
{ {
imports = [ imports = [
./bat.nix ./bat.nix
# ./fish.nix
./starship.nix ./starship.nix
./zsh.nix ./zsh.nix
]; ];

View file

@ -1,22 +0,0 @@
{
programs.fish = {
enable = true;
interactiveShellInit = # fish
''
set fish_greeting
set fish_vi_key_bindings
set fish_vi_cursor
eval $(/opt/homebrew/bin/brew shellenv fish)
'';
shellAbbrs = {
gs = "git status";
gc = "git commit";
gca = "git commit -a";
gcaa = "git commit -a --amend";
gco = "git checkout";
};
};
}

View file

@ -2,7 +2,6 @@
{ {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
# enableVteIntegration = true;
dotDir = "${config.xdg.configHome}/zsh"; dotDir = "${config.xdg.configHome}/zsh";
history = { history = {
path = "${config.xdg.stateHome}/zsh/zsh_history"; path = "${config.xdg.stateHome}/zsh/zsh_history";