summaryrefslogtreecommitdiff
path: root/modules/nixos
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2026-04-21 12:51:47 -0600
committerDevin Finlinson <devin.finlinson@pm.me>2026-04-21 12:51:47 -0600
commit176c98d8f8cb77b884ba53a57a71d2f971d0d083 (patch)
tree0e83c0ee3457cf3350e8ccdc7f7648706a4afdb4 /modules/nixos
parentc869646365f34f7bd5c341b91dd77902a92a21de (diff)
parentd74d24d9a09402118fabb6a287f3d437d019346b (diff)
Merge branch 'master' of ssh://bosco:/srv/git/.flake
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/remote-build.nix20
-rw-r--r--modules/nixos/system-packages.nix1
-rw-r--r--modules/nixos/tailscale.nix1
3 files changed, 22 insertions, 0 deletions
diff --git a/modules/nixos/remote-build.nix b/modules/nixos/remote-build.nix
new file mode 100644
index 0000000..79da57e
--- /dev/null
+++ b/modules/nixos/remote-build.nix
@@ -0,0 +1,20 @@
+{ config, ... } : {
+ nix.distributedBuilds = true;
+ # nix.settings.builders-use-subsituters = true;
+ nix.buildMachines = [
+ {
+ hostName = "doretta";
+ systems = [ "x86_64-linux" "aarch64-linux"];
+ supportedFeatures = [
+ "nixos-test"
+ "benchmark"
+ "big-parallel"
+ "llvm"
+ ];
+ maxJobs = 2; # could be higher but slow internet
+ speedFactor = 1;
+ sshKey = "/root/.ssh/nixremote";
+ sshUser = "nixremote";
+ }
+ ];
+}
diff --git a/modules/nixos/system-packages.nix b/modules/nixos/system-packages.nix
index 07696ae..be78370 100644
--- a/modules/nixos/system-packages.nix
+++ b/modules/nixos/system-packages.nix
@@ -11,6 +11,7 @@
nvd
unzip
git
+ ack #like git-grep but works outside git repos
wl-clipboard
pciutils
usbutils
diff --git a/modules/nixos/tailscale.nix b/modules/nixos/tailscale.nix
index e3635fd..8fa49be 100644
--- a/modules/nixos/tailscale.nix
+++ b/modules/nixos/tailscale.nix
@@ -5,6 +5,7 @@
"--login-server https://bosco.myrmexia.xyz"
"--operator defin"
];
+ extraSetFlags = ["--netfilter-mode=nodivert"];
};
systemd.services.tailscaled.after = [ "systemd-networkd-wait-online.service" ];
networking.firewall = {