Files
frank-nix/hosts/shared/darwin.nix
T

74 lines
1.3 KiB
Nix

{ self, pkgs, ... }:
{
# Only use homebrew for casks.
homebrew.enable = true;
nix = {
gc = {
automatic = true;
interval = {
Hour = 3;
Minute = 15;
Weekday = 7;
};
options = "--delete-older-than 30d";
};
optimise = {
automatic = true;
interval = {
Hour = 3;
Minute = 15;
Weekday = 7;
};
};
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 = {
shellAliases = import ../../features/aliases.nix { inherit pkgs; };
variables = import ../../features/xdg.nix { inherit pkgs; };
systemPackages = with pkgs; [
wget
fastfetch
btop
nerd-fonts.hack
jump
ripgrep
];
};
# Don't touch this unless needed.
system = {
configurationRevision = self.rev or self.dirtyRev or null;
stateVersion = 6;
};
nixpkgs.hostPlatform = "aarch64-darwin";
}