Compare commits

...
9 Commits
Author SHA1 Message Date
Alexander Heldt 17885cf054 pinwheel: Disable commit and PR attribution in ai settings 2026-09-30 09:32:21 +02:00
Alexander Heldt 53644b5d25 pinwheel: Open graphite links in work firefox profile 2026-09-30 09:30:46 +02:00
Alexander Heldt 07a9703730 pinwheel: Add encrypted naviterm config 2026-09-30 08:50:47 +02:00
Alexander Heldt b27c4be4f4 pinwheel: Set alex as tailscale operator 2026-09-30 08:42:58 +02:00
Alexander Heldt dbd9425843 pinwheel: Add naviterm config secret, fix syncthing dir ownership 2026-09-29 16:42:47 +02:00
Alexander Heldt 1ce4d10e4b pinwheel: Swap to new machine 2026-09-29 16:41:55 +02:00
Alexander Heldt 5c5c87d5f7 pinwheel: Fix swapped ai shell aliases, default to personal account 2026-09-29 15:08:34 +02:00
Alexander Heldt da2fbe4f42 pinwheel: fix ~/code/work ownership, drop custom secret paths
systemd-tmpfiles now ensures ~/code and ~/code/work are owned by
alex, since agenix previously created ~/code/work as root when the
work secrets pointed there directly.

Also drop the custom path= on work-gitconfig, work-github-token, and
work-go-private so they use agenix's default secret path instead of
living under ~/code/work.
2026-09-29 09:20:18 +02:00
Alexander Heldt c795bcd492 pinwheel: enable IPU6 MIPI webcam (ov08x40)
Adds hardware.ipu6 for the built-in MIPI camera, plus two overlay
fixes needed for it to actually work on this hardware:

- Pin icamerasrc-ipu6epmtl to the same release tag already used by
  ipu6-camera-bins/ipu6-camera-hal (20250923_ov02e). The version
  nixpkgs currently pulls is an Intel internal IoT/Panther-Lake
  validation build whose device table only lists external USB
  AR0234 test sensors, never the real ov08x40, so the camera never
  gets selected.

- Patch ipu6-camera-hal's hardcoded IVSC/CVS entity name from
  "Intel IVSC CSI" (the out-of-tree ivsc driver's name) to "Intel
  CVS" (the mainlined intel_cvs driver's name). The mismatch broke
  I2C bus address resolution for the sensor, which cascaded into
  wrong stream configs and black/missing video.
2026-09-29 08:25:37 +02:00
13 changed files with 117 additions and 48 deletions

No files matched your search

-1
View File
@@ -117,7 +117,6 @@
};
modules = [
./hosts/pinwheel/configuration.nix
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
./hosts/pinwheel/home.nix
];
};
+4 -1
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
imports = [
../../config-manager/default.nix
@@ -14,6 +14,9 @@
];
nixpkgs.config.allowUnfree = true;
hardware.trackpoint.device = "TPPS/2 Synaptics TrackPoint";
services.thermald.enable = lib.mkDefault true;
users.users.alex = {
isNormalUser = true;
description = "alex";
+13 -35
View File
@@ -1,56 +1,34 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
modulesPath,
...
}:
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/9c3ef2ad-0244-4310-9984-2e548ced3e22";
fileSystems."/" =
{ device = "/dev/mapper/luks-b05ba0f3-51f9-48d1-8d14-fcbff7c13c5b";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-f569d036-e500-4839-bc78-ce4b032840d8".device = "/dev/disk/by-uuid/f569d036-e500-4839-bc78-ce4b032840d8";
boot.initrd.luks.devices."luks-b05ba0f3-51f9-48d1-8d14-fcbff7c13c5b".device = "/dev/disk/by-uuid/b05ba0f3-51f9-48d1-8d14-fcbff7c13c5b";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/FCAE-6849";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D449-C034";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [
{
device = "/swapfile";
size = 48 * 1024; # 48GB
}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.npu.enable = true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+7 -2
View File
@@ -27,6 +27,10 @@ let
inherit statusLine;
theme = "dark";
editorMode = "vim";
attribution = {
commit = false;
pr = false;
};
hooks = {
PostToolUse = [
{
@@ -56,8 +60,9 @@ in
];
programs.zsh.shellAliases = {
wclaude = "CLAUDE_CONFIG_DIR=$HOME/.claude-personal claude";
pclaude = "CLAUDE_CONFIG_DIR=$HOME/.claude-work claude";
claude = "pclaude";
wclaude = "CLAUDE_CONFIG_DIR=$HOME/.claude-work command claude";
pclaude = "CLAUDE_CONFIG_DIR=$HOME/.claude-personal command claude";
};
home.file.".claude-work/settings.json".text = settings;
-4
View File
@@ -49,10 +49,6 @@ in
efi.canTouchEfiVariables = true;
};
initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
};
};
}
@@ -40,6 +40,13 @@ let
'';
};
ff-work = pkgs.writeShellApplication {
name = "ff-work";
text = ''
${wrapped}/bin/firefox-devedition -P work --new-window "$@"
'';
};
sharedSettings = {
"general.smoothScroll" = true;
"apz.gtk.kinetic_scroll.enabled" = false;
@@ -118,6 +125,7 @@ in
home.packages = [
ff
ff-alex
ff-work
];
};
+13
View File
@@ -54,4 +54,17 @@ in
ExecStart = "${pkgs.playerctl}/bin/playerctld";
};
};
# Ensure the parent dir of the secret's path is owned by alex; otherwise
# agenix creates it as root.
systemd.tmpfiles.rules = [
"d /home/alex/.config/naviterm 0755 alex users -"
];
age.secrets."naviterm-config" = {
file = ../../../../secrets/pinwheel/naviterm-config.age;
path = "/home/alex/.config/naviterm/config.ini";
owner = "alex";
group = "users";
};
}
@@ -69,6 +69,13 @@
};
};
# Ensure dataDir is owned by the syncthing user; otherwise the module creates it
# as root when making configDir (dataDir/.config/syncthing) on a fresh machine.
systemd.tmpfiles.rules = [
"d /home/alex/sync 0755 alex users -"
"d /home/alex/sync/.config 0755 alex users -"
];
age = {
secrets = {
"syncthing-cert".file = ../../../../secrets/pinwheel/syncthing-cert.age;
@@ -1,6 +1,7 @@
{ pkgs, ... }:
{
services.tailscale.enable = true;
services.tailscale.extraSetFlags = [ "--operator=alex" ];
# Pinned to 1.96.5. 1.98.0 regressed split-DNS handling under work-vpn: the
# netmap's "resolve <tailnet>.ts.net locally via MagicDNS" hint is dropped
+34
View File
@@ -0,0 +1,34 @@
{ ... }:
{
nixpkgs.overlays = [
(final: prev: {
ipu6epmtl-camera-hal = prev.ipu6epmtl-camera-hal.overrideAttrs (old: {
postPatch = (old.postPatch or "") + ''
substituteInPlace src/v4l2/MediaControl.cpp \
--replace-fail 'static const string ivscName = "Intel IVSC CSI";' \
'static const string ivscName = "Intel CVS";'
'';
});
gst_all_1 = prev.gst_all_1 // {
icamerasrc-ipu6epmtl = (prev.gst_all_1.icamerasrc-ipu6epmtl.override {
ipu6-camera-hal = final.ipu6epmtl-camera-hal;
}).overrideAttrs
(old: {
version = "20250923_ov02e";
src = final.fetchFromGitHub {
owner = "intel";
repo = "icamerasrc";
tag = "20250923_ov02e";
hash = "sha256-mKRK0Z3dnyvzvoL6BotpVFRtkb53GQw9wUOrHIUoEsA=";
};
});
};
})
];
hardware.ipu6 = {
enable = true;
platform = "ipu6epmtl";
};
}
+20 -4
View File
@@ -9,6 +9,18 @@ let
gitEnabled = config.mod.git.enable;
goEnabled = config.mod.go.enable;
openvpnEnabled = config.mod.openvpn.enable;
xdg-open-work = pkgs.writeShellScriptBin "xdg-open" ''
exec ff-work "$@"
'';
graphite-cli = pkgs.symlinkJoin {
name = "graphite-cli";
paths = [ pkgs.graphite-cli ];
nativeBuildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/gt --prefix PATH : ${xdg-open-work}/bin
'';
};
in
{
home-manager.users.alex = {
@@ -77,7 +89,7 @@ EOF
pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin
])
pkgs.graphite-cli
graphite-cli
pkgs.postman
pkgs.grpcurl
@@ -116,6 +128,13 @@ EOF
};
};
# Ensure ~/code/work is owned by alex; it was previously created as root by
# agenix when secrets had a custom path there.
systemd.tmpfiles.rules = [
"d /home/alex/code 0755 alex users -"
"d /home/alex/code/work 0755 alex users -"
];
# Needed for `copilot`
programs.nix-ld.enable = true;
programs.nix-ld.libraries = [
@@ -138,21 +157,18 @@ EOF
age.secrets = {
"work-gitconfig" = lib.mkIf gitEnabled {
file = ../../../../secrets/pinwheel/work-gitconfig.age;
path = "/home/alex/code/work/.work-gitconfig";
owner = "alex";
group = "users";
};
"work-github-token" = lib.mkIf gitEnabled {
file = ../../../../secrets/pinwheel/work-github-token.age;
path = "/home/alex/code/work/.work-github-token";
owner = "alex";
group = "users";
};
"work-go-private" = lib.mkIf goEnabled {
file = ../../../../secrets/pinwheel/work-go-private.age;
path = "/home/alex/code/work/.work-go-private";
owner = "alex";
group = "users";
};
+9
View File
@@ -0,0 +1,9 @@
age-encryption.org/v1
-> ssh-ed25519 vxPbZg TbqQ15JpILVDiol26OHBoGSJ2Sc3Bp4dZZN/8jv27GI
f6a//WZqpaIP2GoY3pobLNZlaRJUCKDQuPX3kV+4D/o
-> ssh-ed25519 +oNaHQ XLmbSz8yLrNLQOkB+cmjM41PEkENR4fXp6qIlWTgvRk
USuN6dKC/6BS6qHxexp4bdTeekwehAsw5Ar+vDukJFg
--- 8YVjx9pmiUVpKr/Jqt19aYTm501CPHHagd2uPM0QQPI
ÕÂŇþã ‚hˆ‚ube8%»àÁ‰¢¹£Ò+ôLaZÞë%Z\4¼#•]xp€8ª�ú0²´­ `ÚKÓ
óT¾Û:ˆV Cý˜7úûWQ Ô–¾Íx}ðü)mÄtí&ðBkï­r™
ú£M
+1 -1
View File
@@ -21,12 +21,12 @@ in {
"pinwheel/alex.pinwheel-github.com-signing.pub.age".publicKeys = [ pinwheel alex ];
"pinwheel/alex.pinwheel-git.ppp.pm.age".publicKeys = [ pinwheel alex ];
"pinwheel/alex.pinwheel-git.ppp.pm.pub.age".publicKeys = [ pinwheel alex ];
"pinwheel/work-gitconfig.age".publicKeys = [ pinwheel alex ];
"pinwheel/work-github-token.age".publicKeys = [ pinwheel alex ];
"pinwheel/work-go-private.age".publicKeys = [ pinwheel alex ];
"pinwheel/work-staging-ovpn.age".publicKeys = [ pinwheel alex ];
"pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ];
"pinwheel/naviterm-config.age".publicKeys = [ pinwheel alex ];
"manatee/root.manatee.age".publicKeys = [ manatee alex ];
"manatee/root.manatee.pub.age".publicKeys = [ manatee alex ];