Commit graph

72 commits

Author SHA1 Message Date
agent-engineering
060194b734 install.sh: fix swap creation and partition-range bugs
Review of branch t490-dualboot (laptop-config#1) found three correctness
issues in the new install.sh. This commit fixes them:

1. parted mkpart range used '-NIXOS_SIZE 100%' which on a T490 with a
   recovery partition at the end of the disk would overlap that
   recovery partition and fail. The new code computes the start of the
   freed space as the new end of the (now shrunken) Windows partition
   and uses explicit MiB offsets, so the new partition lands in the
   space ntfsresize actually freed.

2. SWAP_SIZE was advertised in the user-facing plan (lines 100-106 of
   the original) but no swap partition was ever created and swapon was
   never run. The new code creates a linux-swap partition after the
   NixOS root, runs mkswap, and swapon. The total shrink applied to
   the Windows partition is now nixos_bytes + swap_bytes.

3. The 'sort | tail -1' trick for finding the new partition breaks
   when more than one new partition is created (NixOS root + swap
   would both qualify) and is fragile for disks with 10+ existing
   partitions. The new code snapshots the partition list before mkpart
   and uses comm -13 to diff, then picks the lowest-numbered new
   partition for the NixOS root and the next one for swap.

Reported-by: agent-engineering review of sscoble/laptop-config#1
2026-06-06 05:48:45 -07:00
Hermes
921fc1402a T490 + Windows 11 dual-boot support
- modules/laptop.nix: add systemd-boot extraEntries for Windows Boot Manager
  Chainloads $ESP/EFI/Microsoft/Boot/bootmgfw.efi. sort-key 'z_windows' puts
  it after NixOS generations in the menu. Explicit entry works on all
  systemd-boot versions; NixOS 26.05 'Yarara' may also autodetect on
  shared ESP, in which case the duplicate is harmless.
- install.sh: guided dual-boot installer. Shrinks Win11 NTFS with ntfsresize
  (no data loss), creates NixOS ext4 root, mounts shared ESP, runs
  nixos-install with this flake. Idempotent except for the partition shrink.
- MIGRATION.md: new T490 + Windows 11 dual-boot section, with manual
  fallback and NixOS 26.05 compatibility notes.
2026-06-05 19:53:56 -07:00
Scott Scoble
50b12c542a pi: set default model to minimax-m3:cloud on ollama-cloud 2026-06-04 18:29:30 -07:00
Scott Scoble
f9f6ddc670 WGU prep: Windows VM setup, trackpad/trackpoint tweaks, aliases
- Add WGU Windows VM helper script + virtualization module (KVM/libvirt)
- Fix create-wgu-vn: mkdir before use, CPU topology, detect OS variant
- Add Webex, ZapZap, qalculate-gtk, libqalculate, tigervnc packages
- Add n97-mini VNC alias, switch nr to local flake path
- Tune trackpad (0.44) and TrackPoint (160/120) sensitivity
- Reduce mouse sensitivity to -0.2
- Move zapzap from desktop.nix alphabetically
- Remove OVMFFull from virtualisation (handled by swtpm/OVMF default)
- Bump flake inputs (home-manager, nixos-hardware, nixpkgs, pi-mono)
2026-06-04 11:44:32 -07:00
Scott Scoble
f367c42651 add obs, etc 2026-05-21 11:07:40 -07:00
Scott Scoble
746b703d70 update 2026-05-18 00:18:47 -07:00
Scott Scoble
ae98d6c2e5 Add discord, slack, zapzap, printing module, fix dup SSH 2026-05-17 10:02:27 -07:00
Scott Scoble
257cf60914 B&W cheatsheet for laser printer 2026-05-17 09:40:27 -07:00
Scott Scoble
8649dea73b Add printable keyboard cheatsheet + fix laptop.nix 2026-05-17 09:40:09 -07:00
Scott Scoble
1c76007990 Add printable keyboard cheatsheet (typst source + PDF) 2026-05-17 09:40:09 -07:00
Scott Scoble
32156dbc2b Fix: re-add openssh server inside module block (was orphaned outside) 2026-05-17 01:55:37 -07:00
Scott Scoble
afb0af1231 Fix laptop.nix: wineWow64, network tools, DNS, sudo, clean orphaned SSH 2026-05-17 01:47:21 -07:00
Scott Scoble
d09a73fd1f Fix wineWow64Packages, add network tools, imports 2026-05-17 01:38:55 -07:00
Scott Scoble
25165a1feb Add network debugging tools (dig, traceroute, mtr, nc) 2026-05-17 01:36:52 -07:00
Scott Scoble
5b0095b959 Fix pi.nix syntax - force overwrite existing config files 2026-05-17 01:34:26 -07:00
Scott Scoble
38e3a66bc7 Fix pi.nix: force overwrite existing config files 2026-05-17 01:29:56 -07:00
Scott Scoble
dcb684ae4e Add DNS fallback for cache.nixos.org access 2026-05-17 01:26:36 -07:00
Scott Scoble
a24d9fc6c6 Add passwordless sudo for sscoble 2026-05-17 01:18:04 -07:00
Scott Scoble
3e2fe60219 Add emulation module (steam, wine, retroarch, pcsx2, ppsspp) + pi config 2026-05-17 01:16:27 -07:00
Scott Scoble
b00ae1feb3 Add pi-dev npm package, npm-global bin to PATH 2026-05-17 00:25:36 -07:00
Scott Scoble
59e46f5ebd wallpaper-rotate auto-starts awww-daemon, eliminates wallpaper flash 2026-05-17 00:18:44 -07:00
Scott Scoble
9275d686f5 Disable zellij startup tips 2026-05-17 00:16:14 -07:00
Scott Scoble
918ddde31c Set native Hyprland wallpaper to eliminate flash before awww takes over 2026-05-17 00:14:55 -07:00
Scott Scoble
68954975f9 Fix awww-daemon start, rofi theme via external file, zellij bind fix 2026-05-17 00:12:21 -07:00
Scott Scoble
7a5e987717 Fix zellij inline bind, them rofi to Catppuccin Mocha via external file 2026-05-17 00:07:54 -07:00
Scott Scoble
d6f836c086 Fix zellij mode names (capitalized for v0.44.3) 2026-05-16 23:58:38 -07:00
Scott Scoble
1a06660f8c Add btop, fuzzel launcher, waybar CPU temperature widget, wallpapers 2026-05-16 23:54:03 -07:00
Scott Scoble
cbd86ec79e Add wallpaper rotation (4 wallpapers), fuzzel launcher, fix SSH/laptop.nix syntax 2026-05-16 23:49:24 -07:00
Scott Scoble
125edddec7 Add TrueNAS SMB mount (LAN + Tailscale fallback), SSH server, fix mountpoint dep 2026-05-16 23:26:43 -07:00
Scott Scoble
49de6db354 clean desktop.nix with force=true on ghostty+zellij, source=hyprland.conf, numeric waybar icons 2026-05-16 21:49:30 -07:00
Scott Scoble
00dcea8448 Restore original desktop.nix 2026-05-16 20:22:46 -07:00
Scott Scoble
e9935aba3e Fix waybar JSON syntax 2026-05-16 20:18:48 -07:00
Scott Scoble
b8902d5e9d Use source= instead of inline text for hyprland.conf; fix waybar force 2026-05-16 20:16:52 -07:00
Scott Scoble
f342692b11 Fix stray closing brace in desktop.nix 2026-05-16 20:12:32 -07:00
Scott Scoble
379f4af270 Fix desktop.nix: working hyprland config, numeric workspaces, NetworkManager 2026-05-16 20:11:38 -07:00
Scott Scoble
605a119f2d Enable NetworkManager service and add nmcli 2026-05-16 20:07:52 -07:00
Scott Scoble
bba4b28a63 Fix greetd to use start-hyprland 2026-05-16 19:48:40 -07:00
Scott Scoble
e805fcdbf0 Fix window rules for Hyprland 0.55 syntax (match:class ^()$, float on) 2026-05-16 19:32:56 -07:00
Scott Scoble
1dbbbd82fe Replace SDDM with greetd+tuigreet 2026-05-16 19:13:41 -07:00
Scott Scoble
e96a7c39d8 Fix sddm package attribute 2026-05-16 19:11:07 -07:00
Scott Scoble
4453adb0d4 Catppuccin SDDM theme, fix ghostty theme name 2026-05-16 19:08:12 -07:00
Scott Scoble
01b2554671 Add force=true to hyprland config override 2026-05-16 18:50:54 -07:00
Scott Scoble
500eee658a Remove deprecated options, fix trailing commas in binds 2026-05-16 18:49:32 -07:00
Scott Scoble
4c0b7914a0 Add papirus icons, wallpaper autostart 2026-05-16 18:12:26 -07:00
Scott Scoble
2d2f1461f7 Fix touchpad syntax, remove title block 2026-05-16 18:10:07 -07:00
Scott Scoble
7d63d60f1c Clean hyprland config, remove invalid options 2026-05-16 18:07:13 -07:00
Scott Scoble
829dca4b54 Fix touchpad config syntax, add window title bars 2026-05-16 17:57:21 -07:00
Scott Scoble
64fd429f7f Use insertNameservers for NetworkManager 2026-05-16 17:19:58 -07:00
Scott Scoble
cd869f33c8 Add fallback DNS nameservers 2026-05-16 17:16:32 -07:00
Scott Scoble
22d2aed0ee Fix rofi border syntax 2026-05-16 17:10:18 -07:00