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

51 lines
1000 B
Nix

{ self, pkgs, ... }:
{
imports = [
./nix-package-manager.nix
../../features/sops.nix
];
# Only use homebrew for casks.
homebrew.enable = 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)"
eval "$(devenv hook zsh)"
clear;fastfetch
'';
};
};
environment = {
shellAliases = import ../../features/aliases.nix { };
variables = import ../../features/xdg.nix { };
systemPackages = with pkgs; [
wget
btop
nerd-fonts.hack
devenv
ripgrep
fastfetch
];
};
# Don't touch this unless needed.
system = {
configurationRevision = self.rev or self.dirtyRev or null;
stateVersion = 6;
};
nixpkgs.hostPlatform = "aarch64-darwin";
}