Compare commits
7 Commits
5c14b05c16
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
2624e68a7c
|
|||
|
4335687f48
|
|||
|
44cd77e46f
|
|||
|
5b66eb3049
|
|||
|
1eddde2bdb
|
|||
|
31c72186ad
|
|||
|
f566267663
|
+42
-7
@@ -105,6 +105,10 @@
|
|||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
pkgs-unstable.claude-code # Use unstable for latest version
|
pkgs-unstable.claude-code # Use unstable for latest version
|
||||||
yubikey-manager
|
yubikey-manager
|
||||||
|
# iOS interop
|
||||||
|
uxplay
|
||||||
|
libimobiledevice
|
||||||
|
ifuse
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
@@ -116,6 +120,12 @@
|
|||||||
pinentryPackage = pkgs.pinentry-gnome3;
|
pinentryPackage = pkgs.pinentry-gnome3;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# AirDrop-style file transfer (LocalSend)
|
||||||
|
programs.localsend = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
@@ -156,11 +166,6 @@
|
|||||||
# Allow /etc/hosts to be modified without system rebuild
|
# Allow /etc/hosts to be modified without system rebuild
|
||||||
environment.etc.hosts.mode = "0644";
|
environment.etc.hosts.mode = "0644";
|
||||||
|
|
||||||
# KiCad footprint libraries
|
|
||||||
environment.sessionVariables = {
|
|
||||||
KICAD9_FOOTPRINT_DIR = "${pkgs.kicad-small.libraries.footprints}/share/kicad/footprints";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable flakes and extras
|
# Enable flakes and extras
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
@@ -230,11 +235,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Open firewall for Tailscale
|
# Open firewall for Tailscale + UxPlay AirPlay receiver
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
checkReversePath = "loose";
|
checkReversePath = "loose";
|
||||||
trustedInterfaces = [ "tailscale0" "wg0" ];
|
trustedInterfaces = [ "tailscale0" "wg0" ];
|
||||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
allowedTCPPorts = [ 7000 7001 7100 ];
|
||||||
|
allowedUDPPorts = [ config.services.tailscale.port 6000 6001 7011 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Auto-connect tailscale on boot
|
# Auto-connect tailscale on boot
|
||||||
@@ -272,6 +278,35 @@
|
|||||||
|
|
||||||
services.pcscd.enable = true;
|
services.pcscd.enable = true;
|
||||||
|
|
||||||
|
# iPhone USB mount (libimobiledevice)
|
||||||
|
services.usbmuxd.enable = true;
|
||||||
|
|
||||||
|
# mDNS for AirPlay receiver (UxPlay) discovery from iPhone
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns4 = true;
|
||||||
|
openFirewall = true;
|
||||||
|
publish = {
|
||||||
|
enable = true;
|
||||||
|
addresses = true;
|
||||||
|
userServices = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Auto-start UxPlay with the graphical session so iOS Screen Mirroring
|
||||||
|
# can find this host without manually launching it.
|
||||||
|
systemd.user.services.uxplay = {
|
||||||
|
description = "UxPlay AirPlay Mirror Receiver";
|
||||||
|
partOf = [ "graphical-session.target" ];
|
||||||
|
after = [ "graphical-session.target" "pipewire.service" ];
|
||||||
|
wantedBy = [ "graphical-session.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStart = "${pkgs.uxplay}/bin/uxplay";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam.services = {
|
||||||
login.u2fAuth = true;
|
login.u2fAuth = true;
|
||||||
sudo.u2fAuth = true;
|
sudo.u2fAuth = true;
|
||||||
|
|||||||
Generated
+3
-3
@@ -92,11 +92,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776329215,
|
"lastModified": 1779536132,
|
||||||
"narHash": "sha256-a8BYi3mzoJ/AcJP8UldOx8emoPRLeWqALZWu4ZvjPXw=",
|
"narHash": "sha256-q+fF42iv/geEbHfgSzy3tS0FF/EyD6XTZ98E6yxiBO8=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b86751bc4085f48661017fa226dee99fab6c651b",
|
"rev": "3d8f0f3f72a6cd4d93d0ad13203f2ea1cb7e1456",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
bitwarden-cli
|
bitwarden-cli
|
||||||
lunarvim
|
lunarvim
|
||||||
minicom
|
minicom
|
||||||
kicad
|
|
||||||
ghostty
|
ghostty
|
||||||
gnupg
|
gnupg
|
||||||
pinentry-gnome3
|
pinentry-gnome3
|
||||||
@@ -272,6 +271,7 @@
|
|||||||
|
|
||||||
home.file.".claude/settings.json" = {
|
home.file.".claude/settings.json" = {
|
||||||
text = builtins.toJSON {
|
text = builtins.toJSON {
|
||||||
|
hasCompletedOnboarding = true;
|
||||||
permissions = {
|
permissions = {
|
||||||
allow = [
|
allow = [
|
||||||
"Edit"
|
"Edit"
|
||||||
@@ -284,6 +284,7 @@
|
|||||||
"WebSearch"
|
"WebSearch"
|
||||||
"Agent"
|
"Agent"
|
||||||
"NotebookEdit"
|
"NotebookEdit"
|
||||||
|
"Monitor"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
alwaysThinkingEnabled = true;
|
alwaysThinkingEnabled = true;
|
||||||
@@ -295,6 +296,8 @@
|
|||||||
env = {
|
env = {
|
||||||
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1";
|
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1";
|
||||||
OMC_PLUGIN_ROOT = "${oh-my-claudecode}";
|
OMC_PLUGIN_ROOT = "${oh-my-claudecode}";
|
||||||
|
#ANTHROPIC_BASE_URL = "http://10.0.1.16:20128/v1";
|
||||||
|
#ANTHROPIC_AUTH_TOKEN = "sk-634d6ea8670969de-qzxian-1a74cc97";
|
||||||
};
|
};
|
||||||
teammateMode = "tmux";
|
teammateMode = "tmux";
|
||||||
};
|
};
|
||||||
@@ -330,7 +333,7 @@
|
|||||||
proxyJump = "_JumpHost";
|
proxyJump = "_JumpHost";
|
||||||
};
|
};
|
||||||
"git" = {
|
"git" = {
|
||||||
hostname = "10.0.1.10";
|
hostname = "gitea.leeworks.dev";
|
||||||
port = 22;
|
port = 22;
|
||||||
user = "git";
|
user = "git";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user