Created
August 18, 2023 10:17
-
-
Save tom-butler/d3a1caf896bb04599fb16d0b4b64ee5c to your computer and use it in GitHub Desktop.
nix-darwin configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
security.pam.enableSudoTouchIdAuth = true; | |
networking.hostName = "mbp"; | |
# List packages installed in system profile. To search by name, run: | |
# $ nix-env -qaP | grep wget | |
environment.systemPackages = | |
[ | |
pkgs.bazel_6 | |
pkgs.cilium-cli | |
pkgs.direnv | |
pkgs.fluxcd | |
pkgs.fzf | |
pkgs.git | |
pkgs.jq | |
pkgs.kubectl | |
pkgs.kubectx | |
pkgs.openssl | |
pkgs.vim | |
pkgs.wget | |
pkgs.which | |
]; | |
# Use a custom configuration.nix location. | |
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix | |
# environment.darwinConfig = "$HOME/.config/nixpkgs/darwin/configuration.nix"; | |
# Auto upgrade nix package and the daemon service. | |
services.nix-daemon.enable = true; | |
# nix.package = pkgs.nix; | |
# Create /etc/zshrc that loads the nix-darwin environment. | |
programs.zsh.enable = true; # default shell on catalina | |
programs.zsh.enableBashCompletion = true; | |
programs.zsh.enableFzfCompletion = true; | |
programs.zsh.enableFzfGit = true; | |
programs.zsh.enableFzfHistory = true; | |
programs.zsh.promptInit = '' | |
NEWLINE=$'\n' | |
PROMPT="%F{magenta}%~/ %F{green}%T%f%(?.. %F{red}X %?%f )$NEWLINE%F{cyan}%n:~$%f " | |
''; | |
# programs.fish.enable = true; | |
# Used for backwards compatibility, please read the changelog before changing. | |
# $ darwin-rebuild changelog | |
system.stateVersion = 4; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment