Compare commits

...

8 commits

Author SHA1 Message Date
Chandler Swift
7ffe208af9
sam: Squelch post-quantum warn on Azure Devops SSH
Connecting to ADO gives this warning:

    ** WARNING: connection is not using a post-quantum key exchange algorithm.
    ** This session may be vulnerable to "store now, decrypt later" attacks.
    ** The server may need to be upgraded. See https://openssh.com/pq.html

ADO doesn't support any flavor of keys besides RSA. There are several
issues open about this on their feedback site, and it's been radio
silence:

https://developercommunity.visualstudio.com/t/support-non-rsa-keys-for-ssh-authentication/365980
https://developercommunity.visualstudio.com/t/11032779

And Microsoft has nothing to say besides vague "we've routed your
feedback to the appropriate product team".

There's more information on the warning at OpenSSH's docs page:

https://www.openssh.org/pq.html
2026-02-11 09:37:20 -06:00
Chandler Swift
0f38e26d7f
Update git settings to match renamed upstream vars
evaluation warning: chandler profile: The option `programs.git.userName' defined in `/home/chandler/projects/machine-config/sam/configuration.nix' has been renamed to `programs.git.settings.user.name'.
    evaluation warning: chandler profile: The option `programs.git.extraConfig' defined in `/home/chandler/projects/machine-config/sam/configuration.nix' has been renamed to `programs.git.settings'.
2026-02-10 10:38:36 -06:00
Chandler Swift
b765bb1a97
Update addKeysToAgent key
evaluation warning: chandler profile: The option `programs.ssh.addKeysToAgent' defined in `/home/chandler/projects/machine-config/sam/configuration.nix' has been renamed to `programs.ssh.matchBlocks.*.addKeysToAgent'.
2026-02-10 10:34:30 -06:00
Chandler Swift
052854db38
sam: Echo command/context on k 2026-02-10 10:34:30 -06:00
Chandler Swift
a0a3e0f720
sam: Add kubectl completion and "k" alias 2026-02-10 10:34:27 -06:00
Chandler Swift
fdc7e241de
sam: Use home-manager first-class option to install Go 2026-02-03 10:13:31 -06:00
Chandler Swift
4f529eb2f6
sam: Add azcli bastion and ssh extensions
I needed this for troubleshooting some bastion performance issues for Jacob.
2026-02-03 10:12:00 -06:00
Chandler Swift
4cc18ec445
oscar: Remove NIXOS_OZONE_WL, now unneeded
Per the Wiki, this has been unnecessary since 25.05, when Chromium and
Electron started defaulting to Wayland-native on Wayland systems:

https://wiki.nixos.org/wiki/Wayland#Electron_and_Chromium
2026-02-03 10:02:22 -06:00
2 changed files with 30 additions and 11 deletions

View file

@ -98,7 +98,6 @@
}; };
environment.sessionVariables = { environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
BUILDKIT_PROGRESS = "plain"; BUILDKIT_PROGRESS = "plain";
}; };
@ -248,11 +247,11 @@
programs.git = { programs.git = {
enable = true; enable = true;
userEmail = "chandler@chandlerswift.com";
userName = "Chandler Swift";
lfs.enable = true; lfs.enable = true;
# TODO: delta or diff-so-fancy or difftastic # TODO: delta or diff-so-fancy or difftastic
extraConfig = { settings = {
user.name = "Chandler Swift;
user.email = "chandler@chandlerswift.com";
init.defaultBranch = "main"; init.defaultBranch = "main";
pull.ff = "only"; pull.ff = "only";
#init.templatedir = "~/.git-template"; # unsure what this was intended to do -- default hooks, maybe? #init.templatedir = "~/.git-template"; # unsure what this was intended to do -- default hooks, maybe?
@ -287,7 +286,7 @@
programs.ssh = { programs.ssh = {
enable = true; enable = true;
addKeysToAgent = "yes"; matchBlocks."*".addKeysToAgent = "yes";
matchBlocks = { matchBlocks = {
bert = { bert = {
user = "root"; user = "root";

View file

@ -93,13 +93,13 @@
(azure-cli.withExtensions [ (azure-cli.withExtensions [
# azure-cli.extensions.automation # azure-cli.extensions.automation
azure-cli.extensions.azure-devops azure-cli.extensions.azure-devops
# azure-cli.extensions.bastion azure-cli.extensions.bastion
# azure-cli.extensions.fleet # azure-cli.extensions.fleet
# azure-cli.extensions.interactive # azure-cli.extensions.interactive
# azure-cli.extensions.log-analytics # azure-cli.extensions.log-analytics
azure-cli.extensions.resource-graph azure-cli.extensions.resource-graph
# azure-cli.extensions.serial-console # azure-cli.extensions.serial-console
# azure-cli.extensions.ssh azure-cli.extensions.ssh
]) ])
iperf iperf
units units
@ -131,7 +131,6 @@
clang clang
go
go-tools go-tools
gopls gopls
@ -140,6 +139,26 @@
programs.bash = { programs.bash = {
enable = true; enable = true;
historyControl = [ "ignoredups" "ignorespace" ]; historyControl = [ "ignoredups" "ignorespace" ];
initExtra = ''
# https://kubernetes.io/docs/reference/kubectl/quick-reference/#bash
source <(kubectl completion bash)
k() {
if [[ -t 1 ]]; then # stdout is a terminal
tput dim # Konsole's default theme requires some adjustment
printf "$ kubectl --context %q" "$(kubectl config current-context 2>/dev/null)"
printf " %q" "$@"
echo
tput sgr0
fi
kubectl "$@"
}
complete -o default -F __start_kubectl k
'';
};
programs.go = {
enable = true;
env.GOPATH = [ "/home/chandler/.local/share/go" ];
}; };
programs.direnv = { programs.direnv = {
@ -150,10 +169,10 @@
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Chandler Swift";
lfs.enable = true; lfs.enable = true;
# TODO: delta or diff-so-fancy or difftastic # TODO: delta or diff-so-fancy or difftastic
extraConfig = { settings = {
user.name = "Chandler Swift";
help.autoCorrect = "prompt"; help.autoCorrect = "prompt";
init.defaultBranch = "main"; init.defaultBranch = "main";
diff.wsErrorHighlight = "all"; diff.wsErrorHighlight = "all";
@ -202,7 +221,8 @@
programs.ssh = { programs.ssh = {
enable = true; enable = true;
addKeysToAgent = "yes"; matchBlocks."*".addKeysToAgent = "yes";
matchBlocks."ssh.dev.azure.com".extraOptions.WarnWeakCrypto = "no-pq-kex";
includes = [ includes = [
"config.d/*" "config.d/*"
]; ];