mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Restructure Darwin configuration
So far, this is just based on mightymac. The other devices will be updated soon.
This commit is contained in:
parent
ce3a1b5e20
commit
f95cc09e13
45 changed files with 14 additions and 18 deletions
|
|
@ -1,29 +0,0 @@
|
|||
{ username, ... }: {
|
||||
# dawrwin-specific shell config
|
||||
programs.zsh = {
|
||||
initExtra = ''
|
||||
function otpon() {
|
||||
osascript -e 'tell application "yubiswitch" to KeyOn'
|
||||
}
|
||||
function otpoff() {
|
||||
osascript -e 'tell application "yubiswitch" to KeyOff'
|
||||
}
|
||||
|
||||
# Include Puppet's normal bin folder since it is installed via Homebrew
|
||||
export PATH=$PATH:/opt/puppetlabs/bin
|
||||
export PATH=$PATH:/opt/puppetlabs/pdk/bin
|
||||
export PATH=$PATH:/opt/puppetlabs/puppet/bin
|
||||
'';
|
||||
oh-my-zsh.plugins = [ "macos" ];
|
||||
shellAliases = {
|
||||
currentwifi = "networksetup -getairportnetwork en0 |cut -d ':' -f2- | cut -d ' ' -f2-";
|
||||
nixdiff = "cd ~/repos/dots && darwin-rebuild build --flake . && nvd diff /run/current-system result";
|
||||
nixup = "darwin-rebuild switch --flake ~/repos/dots";
|
||||
uwgconnect = "networksetup -setairportnetwork en0 SecureWest";
|
||||
uwgforget = "networksetup -removepreferredwirelessnetwork en0 SecureWest";
|
||||
ykey = "pkill -9 gpg-agent && source ~/.zshrc; ssh-add -L";
|
||||
};
|
||||
};
|
||||
|
||||
sops.age.keyFile = "/Users/${username}/Library/Application Support/sops/age/keys.txt";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue