Delete msft machines.

This commit is contained in:
Mariano Uvalle 2025-09-30 10:56:43 -07:00
parent 43671fd6ed
commit 6e37339af6
7 changed files with 0 additions and 461 deletions

View file

@ -1,75 +0,0 @@
{ self, pkgs, config, ... }: {
imports = [
../common/darwin
../../modules/common
./hotkeys.nix
];
# To reflect hotkeys without a login cycle.
system.activationScripts.postActivation.text = ''
sudo -u ${config.user.name} /System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
'';
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
neofetch
git-credential-manager
];
user.name = "jmug";
system.primaryUser = config.user.name;
homebrew = {
enable = true;
onActivation = {
autoUpdate = true;
cleanup = "uninstall";
upgrade = true;
};
caskArgs = {
no_quarantine = true;
};
taps = [];
brews = [];
casks = [
"ghostty"
"secretive"
"karabiner-elements"
"raycast"
"logi-options+"
"insta360-link-controller"
"displaylink"
"yubico-authenticator" # TODO: Defer to a module that manages yubikeys for darwin.
"docker-desktop"
"spotify"
];
};
fonts.packages = with pkgs; [
nerd-fonts.bigblue-terminal
];
users.users.${config.user.name}.home = config.user.homeDirectory;
nixpkgs.config.allowUnfree = true;
programs.zsh.enable = true;
# Necessary for using flakes on this system.
nix.settings.experimental-features = "nix-command flakes";
# Set Git commit hash for darwin-version.
system.configurationRevision = self.rev or self.dirtyRev or null;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 6;
# The platform the configuration will be used on.
nixpkgs.hostPlatform = "aarch64-darwin";
}

View file

@ -1,99 +0,0 @@
{
config,
pkgs,
pkgs-unstable,
user,
...
} :
let
username = user.name;
homeDirectory = user.homeDirectory;
in {
imports = [
../../home-modules/default.nix
../../home-modules/direnv.nix
../../home-modules/ghostty-config.nix
../../home-modules/homebrew.nix
../../home-modules/karabiner.nix
../../home-modules/lazygit.nix
../../home-modules/nvim.nix
../../home-modules/secretive.nix
../../home-modules/starship.nix
../../home-modules/tmux.nix
../../home-modules/zsh.nix
];
ghostty = {
font-size = "17.2";
window-decoration = true;
};
nvim = {
enable = true;
package = pkgs-unstable.neovim;
};
home = {
username = username;
homeDirectory = homeDirectory;
packages = with pkgs; [
jq
yq
nerd-fonts.bigblue-terminal
nerd-fonts.fira-code
azure-cli
pkgs-unstable.go
pkgs-unstable.gopls
pkgs-unstable.gotools
pkgs-unstable.mockgen
pkgs-unstable.kubernetes-controller-tools
pkgs-unstable.kubectl
pkgs-unstable.kubectl-node-shell
pkgs-unstable.kind
pkgs-unstable.kubernetes-helm
pkgs-unstable.claude-code
(pkgs-unstable.litellm.overrideAttrs (oldAttrs: rec {
version = "1.74.9";
src = pkgs.fetchFromGitHub {
owner = "BerriAI";
repo = "litellm";
tag = "v${version}-stable";
hash = "sha256-SGZwt2jzAQbOMlvudqPWat281su6OwT7JG2CNSMjL3A=";
};
}))
];
stateVersion = "25.05";
};
programs.zsh = {
shellAliases = {
# TODO BEGIN Interpolate the name of the host here.
flakeconf = "nvim ${homeDirectory}/nixos/flake.nix";
sysconf = "nvim ${homeDirectory}/nixos/hosts/macbook/configuration.nix";
homeconf = "nvim ${homeDirectory}/nixos/hosts/macbook/home.nix";
nvconf = "nvim ${homeDirectory}/nixos/home-modules/explicit-configs/nvim/init.lua";
# TODO: Interpolate the name of the host here.
rshellconf="source ${homeDirectory}/.zshrc";
radev = "${homeDirectory}/dev/aks-rp/bin/aksdev";
ksc = "KUBECONFIG=${homeDirectory}/Downloads/cxkubeconfig.yaml kubectl";
kso = "KUBECONFIG=${homeDirectory}/Downloads/overlaykubeconfig.yaml kubectl";
k = "kubectl";
nrsw = "sudo darwin-rebuild switch --flake ${homeDirectory}/nixos#msft-mac";
};
initExtra = ''
export GONOPROXY='github.com,golang.org,googlesource.com,opentelemetry.io,uber.org'
export GOPRIVATE='goms.io,*.goms.io'
export GOPROXY='https://goproxyprod.goms.io'
export PATH=$PATH:$HOME/bin
export PATH=$PATH:$HOME/go/bin
export PATH=$PATH:$HOME/.opencode/bin
export __AKS_DOCKER_BUILD_MOUNT_NETRC=1
'';
};
}

View file

@ -1,101 +0,0 @@
# This Nix expression defines a set of Apple Symbolic HotKeys to disable.
# (Thank you!) Definitions sourced from: https://github.com/andyjakubowski/dotfiles/blob/main/AppleSymbolicHotKeys%20Mapping
{ lib, ... }:
let
# some "Sensible" enums for AppleSymbolicHotKeys IDs based on their function.
hotkeyEnums = {
moveFocusToMenuBar = 7; # Control-fn-F2
moveFocusToDock = 8; # Control-fn-F3
moveFocusToActiveOrNextWindow = 9; # Control-fn-F4
moveFocusToWindowToolbar = 10; # Control-fn-F5
moveFocusToFloatingWindow = 11; # Control-fn-F6
turnKeyboardAccessOnOrOff = 12; # Control-fn-F1
changeWayTabMovesFocus = 13; # Control-fn-F7
moveFocusToNextWindow = 27; # Command-`
saveScreenToFile = 28; # Shift-Command-3
copyScreenToClipboard = 29; # Control-Shift-Command-3
saveSelectionToFile = 30; # Shift-Command-4
copySelectionToClipboard = 31; # Control-Shift-Command-4
missionControl = 32; # Control-UpArrow (standard key combination)
missionControlDedicatedKey = 34; # Control-UpArrow (often for a dedicated key like F3, params differ)
applicationWindows = 35; # Control-DownArrow
showDesktop = 36; # fn-F11 (standard key combination)
showDesktopDedicatedKey = 37; # fn-F11 (often for a dedicated key, params differ)
moveFocusToWindowDrawer = 51; # Option-Command-'
turnDockHidingOnOff = 52; # Option-Command-D
decreaseDisplayBrightness = 53; # fn-F14 (standard key combination)
increaseDisplayBrightness = 54; # fn-F15 (standard key combination)
decreaseDisplayBrightnessDedicatedKey = 55; # fn-F14 (dedicated key, params differ)
increaseDisplayBrightnessDedicatedKey = 56; # fn-F15 (dedicated key, params differ)
moveFocusToStatusMenus = 57; # Control-fn-F8
selectPreviousInputSource = 60; # Control-Space bar (if multiple inputs)
showSpotlightSearch = 64; # Command-Space bar
moveLeftASpace = 79; # Control-LeftArrow (standard key combination)
moveLeftASpaceDedicatedKey = 80; # Control-LeftArrow (dedicated key, params differ)
moveRightASpace = 81; # Control-RightArrow (standard key combination)
moveRightASpaceDedicatedKey = 82; # Control-RightArrow (dedicated key, params differ)
switchToDesktop1 = 118; # Control-1
switchToDesktop2 = 119; # Control-2
switchToDesktop3 = 120; # Control-3
switchToDesktop4 = 121; # Control-4
switchToDesktop5 = 122; # Control-5
switchToDesktop6 = 123; # Control-6
switchToDesktop7 = 124; # Control-7
switchToDesktop8 = 125; # Control-8
switchToDesktop9 = 126; # Control-9
showLaunchpad = 160; # None (default is disabled)
showNotificationCenter = 163; # None (default is disabled)
turnDoNotDisturbOnOff = 175; # None (default is disabled)
saveTouchBarToFile = 181; # Shift-Command-6 (Touch Bar specific)
copyTouchBarToClipboard = 182; # Control-Shift-Command-6 (Touch Bar specific)
screenshotAndRecordingOptions = 184; # Shift-Command-5
};
# Define which hotkeys you want to disable
# If you want to disable all hotkeys, you can use the `hotkeyEnums` directly
# If you want to keep some hotkeys enabled, simply comment them out or remove them from the following list.
disableHotKeys = with hotkeyEnums; [
selectPreviousInputSource
];
enabledHotKeys = with hotkeyEnums; [
moveLeftASpace
moveRightASpace
switchToDesktop1
switchToDesktop2
switchToDesktop3
switchToDesktop4
switchToDesktop5
switchToDesktop6
switchToDesktop7
switchToDesktop8
switchToDesktop9
];
uniqueSortedHotkeyIntegerIdsToDisable = lib.sort lib.lessThan disableHotKeys;
uniqueSortedHotkeyIntegerIdsToEnable = lib.sort lib.lessThan enabledHotKeys;
# Construct the target attribute set for the AppleSymbolicHotKeys dictionary.
disabledSymbolicHotKeys = lib.listToAttrs (
map (id: {
name = builtins.toString id; # Hotkey ID as a string key
value = { enabled = false; };
}) uniqueSortedHotkeyIntegerIdsToDisable
);
enabledSymbolicHotKeys = lib.listToAttrs (
map (id: {
name = builtins.toString id; # Hotkey ID as a string key
value = { enabled = true; };
}) uniqueSortedHotkeyIntegerIdsToEnable
);
symbolicHotkeys = disabledSymbolicHotKeys // enabledSymbolicHotKeys;
in
{
system.defaults.CustomUserPreferences = {
"com.apple.symbolichotkeys" = {
AppleSymbolicHotKeys = symbolicHotkeys;
};
};
}