mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
Setup nixnuc, rework home manager files
This commit is contained in:
parent
ce3edc74b5
commit
493ac02c33
18 changed files with 273 additions and 100 deletions
26
modules/home-manager/common/all-darwin.nix
Normal file
26
modules/home-manager/common/all-darwin.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, genebean-omp-themes, ... }: {
|
||||
# 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-";
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue