Compare commits
9
Commits
64d786553e
...
17885cf054
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17885cf054 | ||
|
|
53644b5d25 | ||
|
|
07a9703730 | ||
|
|
b27c4be4f4 | ||
|
|
dbd9425843 | ||
|
|
1ce4d10e4b | ||
|
|
5c5c87d5f7 | ||
|
|
da2fbe4f42 | ||
|
|
c795bcd492 |
No files matched your search
@@ -117,7 +117,6 @@
|
|||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/pinwheel/configuration.nix
|
./hosts/pinwheel/configuration.nix
|
||||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-10th-gen
|
|
||||||
./hosts/pinwheel/home.nix
|
./hosts/pinwheel/home.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../config-manager/default.nix
|
../../config-manager/default.nix
|
||||||
@@ -14,6 +14,9 @@
|
|||||||
];
|
];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
hardware.trackpoint.device = "TPPS/2 Synaptics TrackPoint";
|
||||||
|
services.thermald.enable = lib.mkDefault true;
|
||||||
|
|
||||||
users.users.alex = {
|
users.users.alex = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "alex";
|
description = "alex";
|
||||||
|
|||||||
@@ -1,56 +1,34 @@
|
|||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports =
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
||||||
"xhci_pci"
|
|
||||||
"thunderbolt"
|
|
||||||
"nvme"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" =
|
||||||
device = "/dev/disk/by-uuid/9c3ef2ad-0244-4310-9984-2e548ced3e22";
|
{ device = "/dev/mapper/luks-b05ba0f3-51f9-48d1-8d14-fcbff7c13c5b";
|
||||||
fsType = "ext4";
|
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" = {
|
fileSystems."/boot" =
|
||||||
device = "/dev/disk/by-uuid/FCAE-6849";
|
{ device = "/dev/disk/by-uuid/D449-C034";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
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;
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
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;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
@@ -27,6 +27,10 @@ let
|
|||||||
inherit statusLine;
|
inherit statusLine;
|
||||||
theme = "dark";
|
theme = "dark";
|
||||||
editorMode = "vim";
|
editorMode = "vim";
|
||||||
|
attribution = {
|
||||||
|
commit = false;
|
||||||
|
pr = false;
|
||||||
|
};
|
||||||
hooks = {
|
hooks = {
|
||||||
PostToolUse = [
|
PostToolUse = [
|
||||||
{
|
{
|
||||||
@@ -56,8 +60,9 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
programs.zsh.shellAliases = {
|
programs.zsh.shellAliases = {
|
||||||
wclaude = "CLAUDE_CONFIG_DIR=$HOME/.claude-personal claude";
|
claude = "pclaude";
|
||||||
pclaude = "CLAUDE_CONFIG_DIR=$HOME/.claude-work claude";
|
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;
|
home.file.".claude-work/settings.json".text = settings;
|
||||||
|
|||||||
@@ -49,10 +49,6 @@ in
|
|||||||
|
|
||||||
efi.canTouchEfiVariables = true;
|
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 = {
|
sharedSettings = {
|
||||||
"general.smoothScroll" = true;
|
"general.smoothScroll" = true;
|
||||||
"apz.gtk.kinetic_scroll.enabled" = false;
|
"apz.gtk.kinetic_scroll.enabled" = false;
|
||||||
@@ -118,6 +125,7 @@ in
|
|||||||
home.packages = [
|
home.packages = [
|
||||||
ff
|
ff
|
||||||
ff-alex
|
ff-alex
|
||||||
|
ff-work
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -54,4 +54,17 @@ in
|
|||||||
ExecStart = "${pkgs.playerctl}/bin/playerctld";
|
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 = {
|
age = {
|
||||||
secrets = {
|
secrets = {
|
||||||
"syncthing-cert".file = ../../../../secrets/pinwheel/syncthing-cert.age;
|
"syncthing-cert".file = ../../../../secrets/pinwheel/syncthing-cert.age;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
services.tailscale.enable = true;
|
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
|
# 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
|
# netmap's "resolve <tailnet>.ts.net locally via MagicDNS" hint is dropped
|
||||||
|
|||||||
@@ -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";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -9,6 +9,18 @@ let
|
|||||||
gitEnabled = config.mod.git.enable;
|
gitEnabled = config.mod.git.enable;
|
||||||
goEnabled = config.mod.go.enable;
|
goEnabled = config.mod.go.enable;
|
||||||
openvpnEnabled = config.mod.openvpn.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
|
in
|
||||||
{
|
{
|
||||||
home-manager.users.alex = {
|
home-manager.users.alex = {
|
||||||
@@ -77,7 +89,7 @@ EOF
|
|||||||
pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin
|
pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin
|
||||||
])
|
])
|
||||||
|
|
||||||
pkgs.graphite-cli
|
graphite-cli
|
||||||
|
|
||||||
pkgs.postman
|
pkgs.postman
|
||||||
pkgs.grpcurl
|
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`
|
# Needed for `copilot`
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
programs.nix-ld.libraries = [
|
programs.nix-ld.libraries = [
|
||||||
@@ -138,21 +157,18 @@ EOF
|
|||||||
age.secrets = {
|
age.secrets = {
|
||||||
"work-gitconfig" = lib.mkIf gitEnabled {
|
"work-gitconfig" = lib.mkIf gitEnabled {
|
||||||
file = ../../../../secrets/pinwheel/work-gitconfig.age;
|
file = ../../../../secrets/pinwheel/work-gitconfig.age;
|
||||||
path = "/home/alex/code/work/.work-gitconfig";
|
|
||||||
owner = "alex";
|
owner = "alex";
|
||||||
group = "users";
|
group = "users";
|
||||||
};
|
};
|
||||||
|
|
||||||
"work-github-token" = lib.mkIf gitEnabled {
|
"work-github-token" = lib.mkIf gitEnabled {
|
||||||
file = ../../../../secrets/pinwheel/work-github-token.age;
|
file = ../../../../secrets/pinwheel/work-github-token.age;
|
||||||
path = "/home/alex/code/work/.work-github-token";
|
|
||||||
owner = "alex";
|
owner = "alex";
|
||||||
group = "users";
|
group = "users";
|
||||||
};
|
};
|
||||||
|
|
||||||
"work-go-private" = lib.mkIf goEnabled {
|
"work-go-private" = lib.mkIf goEnabled {
|
||||||
file = ../../../../secrets/pinwheel/work-go-private.age;
|
file = ../../../../secrets/pinwheel/work-go-private.age;
|
||||||
path = "/home/alex/code/work/.work-go-private";
|
|
||||||
owner = "alex";
|
owner = "alex";
|
||||||
group = "users";
|
group = "users";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
@@ -21,12 +21,12 @@ in {
|
|||||||
"pinwheel/alex.pinwheel-github.com-signing.pub.age".publicKeys = [ pinwheel alex ];
|
"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.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/alex.pinwheel-git.ppp.pm.pub.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/alex.pinwheel-git.ppp.pm.pub.age".publicKeys = [ pinwheel alex ];
|
||||||
|
|
||||||
"pinwheel/work-gitconfig.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-gitconfig.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/work-github-token.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-github-token.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/work-go-private.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-go-private.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/work-staging-ovpn.age".publicKeys = [ pinwheel alex ];
|
"pinwheel/work-staging-ovpn.age".publicKeys = [ pinwheel alex ];
|
||||||
"pinwheel/work-production-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.age".publicKeys = [ manatee alex ];
|
||||||
"manatee/root.manatee.pub.age".publicKeys = [ manatee alex ];
|
"manatee/root.manatee.pub.age".publicKeys = [ manatee alex ];
|
||||||
|
|||||||
Reference in new issue
Block a user