Compare commits

..

4 commits

Author SHA1 Message Date
Chandler Swift
ff4f0a88fa
sam: Mount UTM host share
This requires that I explicitly specify `chandler`'s UID and GID.
2025-12-22 13:10:03 -06:00
Chandler Swift
3f464bd791
sam: Add openconnect 2025-12-22 13:10:03 -06:00
Chandler Swift
c9ce1b7c19
sam: Install azure-cli resource-graph extension 2025-12-22 13:10:03 -06:00
Chandler Swift
80dc37f30e
sam: Set git help.autoCorrect=prompt 2025-12-22 13:10:03 -06:00
2 changed files with 32 additions and 1 deletions

View file

@ -62,7 +62,9 @@
}; };
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
users.groups.users.gid = 100;
users.users.chandler = { users.users.chandler = {
uid = 1000;
isNormalUser = true; isNormalUser = true;
description = "Chandler Swift"; description = "Chandler Swift";
extraGroups = [ "networkmanager" "wheel" "docker"]; extraGroups = [ "networkmanager" "wheel" "docker"];
@ -83,7 +85,7 @@
# 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
]) ])
@ -102,6 +104,9 @@
jujutsu jujutsu
killall killall
kubectl kubectl
# From https://github.com/NixOS/nixpkgs/pull/370555
# I don't expect this to be backported, so this should be removed with 25.11
(import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/a5ea75e611fb5bf6898d7d72401f6cb2aacf30f0.tar.gz") {}).openconnect
pv pv
ripgrep ripgrep
unzip unzip
@ -139,6 +144,7 @@
lfs.enable = true; lfs.enable = true;
# TODO: delta or diff-so-fancy or difftastic # TODO: delta or diff-so-fancy or difftastic
extraConfig = { extraConfig = {
help.autoCorrect = "prompt";
init.defaultBranch = "main"; init.defaultBranch = "main";
diff.wsErrorHighlight = "all"; diff.wsErrorHighlight = "all";
pull.ff = "only"; pull.ff = "only";

View file

@ -24,6 +24,31 @@
options = [ "fmask=0077" "dmask=0077" ]; options = [ "fmask=0077" "dmask=0077" ];
}; };
fileSystems."/mnt/utm" = {
device = "share";
fsType = "9p";
options = [
"trans=virtio"
"version=9p2000.L"
"rw"
"_netdev"
"nofail"
"auto"
];
};
fileSystems."/home/chandler/shared_with_host" = {
device = "/mnt/utm";
fsType = "fuse.bindfs";
options = [
"map=502/${builtins.toString config.users.users.chandler.uid}:@20/@${builtins.toString config.users.groups.users.gid}"
"x-systemd.requires=/mnt/utm"
"_netdev"
"nofail"
"auto"
];
};
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/6c923fd7-5b0a-4dd5-b1ce-6cd4ea144275"; } [ { device = "/dev/disk/by-uuid/6c923fd7-5b0a-4dd5-b1ce-6cd4ea144275"; }
]; ];