nix-darwin: make several changes to home and system configuration specific to darwin platform

This commit is contained in:
2026-07-21 14:30:17 -04:00
parent 2ac6ab0dd5
commit 87fc9e3c01
4 changed files with 63 additions and 9 deletions
+23 -2
View File
@@ -23,12 +23,32 @@
};
};
settings.experimental-features = "nix-command flakes";
settings = {
experimental-features = [
"nix-command"
"flakes"
];
use-xdg-base-directories = true;
};
};
# Enables Touch ID for sudo prompts.
security.pam.services.sudo_local.touchIdAuth = true;
programs = {
zsh = {
enable = true;
enableCompletion = true;
enableAutosuggestions = true;
enableSyntaxHighlighting = true;
interactiveShellInit = ''
eval "$(jump shell)"
'';
};
};
environment = {
variables = rec {
XDG_CACHE_HOME = "$HOME/.cache";
@@ -43,13 +63,14 @@
ls = "ls --color=tty";
ff = "clear;fastfetch";
nb = "nix-build";
nix-rebuild = "sudo darwin-rebuild switch";
};
systemPackages = with pkgs; [
wget
fastfetch
btop
nerd-fonts.hack
jump
];
};