This commit is contained in:
Nathan McCarty 2025-01-09 10:58:16 -05:00
parent 1e35472464
commit cf648f81ad
7 changed files with 78 additions and 56 deletions

View file

@ -23,7 +23,10 @@
"/share" "/share"
]; ];
}; };
libPackages = with pkgs; [ readline70 openssl ]; libPackages = with pkgs; [
readline70
openssl
];
in in
pkgs.mkShell { pkgs.mkShell {
buildInputs = buildInputs =

View file

@ -19,8 +19,7 @@
controlMaster = "auto"; controlMaster = "auto";
controlPersist = "10m"; controlPersist = "10m";
# Configure known hosts # Configure known hosts
matchBlocks = matchBlocks = {
{
}; };
}; };
} }

View file

@ -5,37 +5,43 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = imports = [
[
]; ];
nix.settings.trusted-users = [ "root" "nathan" ]; nix.settings.trusted-users = [
"root"
"nathan"
];
programs.ssh.extraConfig = '' programs.ssh.extraConfig = ''
Host eu.nixbuild.net Host eu.nixbuild.net
PubkeyAcceptedKeyTypes ssh-ed25519 PubkeyAcceptedKeyTypes ssh-ed25519
ServerAliveInterval 60 ServerAliveInterval 60
IPQoS throughput IPQoS throughput
IdentityFile /home/nathan/.ssh/id_ed25519 IdentityFile /home/nathan/.ssh/id_ed25519
''; '';
programs.ssh.knownHosts = { programs.ssh.knownHosts = {
nixbuild = { nixbuild = {
hostNames = [ "eu.nixbuild.net" ]; hostNames = [ "eu.nixbuild.net" ];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM"; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM";
}; };
}; };
nix = { nix = {
distributedBuilds = true; distributedBuilds = true;
buildMachines = [ buildMachines = [
{ hostName = "eu.nixbuild.net"; {
hostName = "eu.nixbuild.net";
system = "x86_64-linux"; system = "x86_64-linux";
maxJobs = 100; maxJobs = 100;
supportedFeatures = [ "benchmark" "big-parallel" ]; supportedFeatures = [
"benchmark"
"big-parallel"
];
} }
]; ];
}; };
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;

View file

@ -1,31 +1,45 @@
# 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,
pkgs,
modulesPath,
...
}:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/0a846b89-7219-47c1-9db5-362e3c018964"; device = "/dev/disk/by-uuid/0a846b89-7219-47c1-9db5-362e3c018964";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/D1C9-AFA9"; device = "/dev/disk/by-uuid/D1C9-AFA9";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [
"fmask=0077"
"dmask=0077"
];
}; };
swapDevices = swapDevices = [
[ { device = "/dev/disk/by-uuid/bf35a46f-552c-4b37-a68b-c2fcf132f359"; } { device = "/dev/disk/by-uuid/bf35a46f-552c-4b37-a68b-c2fcf132f359"; }
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -45,7 +45,7 @@
services.tailscale.enable = true; services.tailscale.enable = true;
nix.settings.system-features = ["x86_64-linux"]; nix.settings.system-features = [ "x86_64-linux" ];
nix.settings.experimental-features = [ nix.settings.experimental-features = [
"nix-command" "nix-command"