hosts/*: clean and standardize format

This commit is contained in:
Infinidoge 2025-03-11 14:42:23 -04:00
parent f70739f81c
commit 3a5c6800fa
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
13 changed files with 62 additions and 135 deletions

View file

@ -12,10 +12,10 @@
system.stateVersion = "21.11";
info.loc.home = true;
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID7uX1myj9ghv7wMoL038oGDCdScdyLd7RvYdnoioSBh root@Infini-DESKTOP";
info.loc.home = true;
persist.directories = [
"/srv"
];

View file

@ -1,5 +1,4 @@
{
config,
lib,
pkgs,
private,
@ -9,11 +8,8 @@
imports = [
./hardware-configuration.nix
./disks.nix
./secrets
./web.nix
private.nixosModules.minecraft-servers
./authentik.nix
./conduwuit.nix
@ -33,23 +29,23 @@
./thelounge.nix
./torrenting.nix
./vaultwarden.nix
./web.nix
];
networking.hostId = "8fa7a57c";
system.stateVersion = "23.11";
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPjmvE76BcPwZSjeNGzlguDQC67Yxa3uyOf5ZmVDWNys root@Infini-DL360";
info.loc.purdue = true;
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPjmvE76BcPwZSjeNGzlguDQC67Yxa3uyOf5ZmVDWNys root@Infini-DL360";
networking.hostId = "8fa7a57c";
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.binfmt.addEmulatedSystemsToNixSandbox = true;
nix.distributedBuilds = false;
modules = {
hardware.form.server = true;
};
modules.hardware.form.server = true;
universe.programming.all.enable = true;
@ -111,9 +107,7 @@
"net.ipv6.conf.all.forwarding" = true;
};
hardware.infiniband = {
enable = true;
};
hardware.infiniband.enable = true;
services.fail2ban.enable = true;
@ -159,8 +153,6 @@
redirectCode = 302;
};
services.minecraft-servers.servers.emd-server.autoStart = lib.mkForce false;
services.borgbackup.jobs."persist" =
let
tmux = lib.getExe pkgs.tmux;

View file

@ -1,5 +1,4 @@
{
config,
pkgs,
lib,
...
@ -14,10 +13,10 @@
system.stateVersion = "23.05";
info.loc.purdue = true;
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF7PmPq/7e+YIVAvIcs6EOJ3pZVJhinwus6ZauJ3aVp0 root@Infini-FRAMEWORK";
info.loc.purdue = true;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.binfmt.addEmulatedSystemsToNixSandbox = true;
@ -68,8 +67,10 @@
extraRemotes = [ "lvfs-testing" ];
uefiCapsuleSettings.DisableCapsuleUpdateOnDisk = "true";
};
systemd.services.fwupd-refresh.after = [ "network-online.target" ];
systemd.services.fwupd-refresh.requires = [ "network-online.target" ];
systemd.services.fwupd-refresh = {
after = [ "network-online.target" ];
requires = [ "network-online.target" ];
};
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
@ -87,35 +88,6 @@
script = "${lib.getExe pkgs.brightnessctl} set 50%";
};
nix.buildMachines = [
#{
# hostName = "infini-desktop";
# system = "x86_64-linux";
# supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
# protocol = "ssh-ng";
# maxJobs = 16;
# speedFactor = 8;
# sshUser = "remotebuild";
#}
{
hostName = "infini-dl360";
systems = [
"x86_64-linux"
"aarch64-linux"
];
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
protocol = "ssh-ng";
maxJobs = 32;
speedFactor = 16;
sshUser = "remotebuild";
}
];
networking.firewall.allowedUDPPorts = [ 51820 ];
networking.wg-quick.interfaces.wg0 = {

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ ... }:
{
imports = [
./hardware-configuration.nix
@ -7,10 +7,10 @@
system.stateVersion = "23.05";
info.loc.purdue = true;
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEG8fY684SPKeOUsJqaV6LJwwztWxztaU9nAHPBxBtyU root@Infini-OPTIPLEX";
info.loc.purdue = true;
boot.loader.timeout = 1;
modules = {
@ -30,24 +30,4 @@
defaultShared = true;
openFirewall = true;
};
nix.buildMachines = [
{
hostName = "infini-dl360";
systems = [
"x86_64-linux"
"aarch64-linux"
];
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
protocol = "ssh-ng";
maxJobs = 32;
speedFactor = 16;
sshUser = "remotebuild";
}
];
}

View file

@ -1,8 +1,8 @@
{
inputs,
config,
lib,
pkgs,
lib,
...
}:
with lib;
@ -16,9 +16,7 @@ with lib;
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIwPqTFCztLbYFFUej42hRzzCBzG6BCZIb7zXi2cxeJp root@Infini-RASPBERRY";
modules = {
hardware.form.raspi = true;
};
modules.hardware.form.raspi = true;
nixpkgs.overlays = [
(final: super: {
@ -64,17 +62,6 @@ with lib;
fsType = "ext4";
};
home.programs.man.generateCaches = false;
documentation = {
enable = false;
doc.enable = false;
man.enable = false;
man.man-db.enable = false;
man.mandoc.enable = false;
nixos.enable = false;
};
hardware.deviceTree = {
enable = true;
# filter = "*rpi-4-*.dtb";

View file

@ -5,21 +5,17 @@
./filesystems.nix
];
networking.hostId = "3275c7d3";
system.stateVersion = "23.11";
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO8oViHNz64NG51uyll/q/hrSGwoHRgvYI3luD/IWTUT root@Infini-SD";
networking.hostId = "3275c7d3";
modules.hardware.form.server = true;
boot.kernelPackages = pkgs.linuxPackages;
hardware.infiniband = {
enable = true;
};
modules = {
hardware = {
form.server = true;
};
};
hardware.infiniband.enable = true;
networking = {
interfaces.eno4 = {
@ -43,6 +39,4 @@
echo "eth" > /sys/bus/pci/devices/0000:04:00.0/mlx4_port2
'';
};
system.stateVersion = "23.11";
}

View file

@ -7,30 +7,14 @@
system.stateVersion = "22.05";
info.loc.home = true;
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO8ptHWTesaUzglq01O8OVqeAGxFhXutUZpkgPpBFqzY root@Infini-SERVER";
modules = {
hardware = {
# gpu.nvidia = true;
form.server = true;
};
services.apcupsd = {
enable = false;
primary = false;
config = {
address = "192.168.1.212";
};
};
};
info.loc.home = true;
modules.hardware.form.server = true;
boot.loader.timeout = 1;
services = {
avahi.reflector = true;
};
persist.directories = [
"/srv"
];

View file

@ -1,17 +1,15 @@
{
private,
config,
lib,
pkgs,
private,
...
}:
{
system.stateVersion = "23.11";
modules.hardware.form.server = true;
modules.secrets.enable = false;
info.loc.home = false;
system.stateVersion = "23.11";
networking = {
domain = "cs.purdue.edu";

View file

@ -6,18 +6,17 @@
];
system.stateVersion = "24.11";
networking.hostId = "deadbeef";
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB0fWuozCHyPrkFKPcnqX1MyUAgnn2fJEpDSoD7bhDA4 root@Infini-STICK";
networking.hostId = "deadbeef";
boot.kernelPackages = pkgs.linuxPackages;
modules = {
hardware = {
modules.hardware = {
audio.enable = true;
form.portable = true;
};
};
universe.programming.c.enable = false;

View file

@ -6,10 +6,11 @@
];
system.stateVersion = "25.05";
networking.hostId = "85eb2d89"; # "hestia" in base64->hex
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBanlhzmtBf5stg2yYdxqb9FzFZmum/rlWod/akWQI3c root@hestia";
networking.hostId = "85eb2d89"; # "hestia" in base64->hex
modules.hardware.form.server = true;
modules.backups.enable = false; # hestia is a backup target
boot.loader.timeout = 1;

View file

@ -6,10 +6,11 @@
];
system.stateVersion = "25.05";
networking.hostId = "8ab8acd3"; # "iris00" in base64->hex
age.rekey.hostPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGsdARqD3MibvnpcUxOZVtstIu9djk+umwFR5tzqKATH root@iris";
networking.hostId = "8ab8acd3"; # "iris00" in base64->hex
modules.hardware.form.server = true;
modules.backups.enable = false; # testing server
boot.loader.timeout = 1;

View file

@ -1,13 +1,12 @@
{ pkgs, ... }:
{
system.stateVersion = "24.11";
modules.hardware.form.server = true;
modules.secrets.enable = false;
info.loc.home = false;
info.loc.purdue = true;
system.stateVersion = "24.11";
home-manager.useUserPackages = false;
universe.programming.all.enable = true;

View file

@ -157,4 +157,24 @@ in
group = "remotebuild";
};
users.groups.remotebuild = { };
nix.buildMachines = [
{
hostName = "infini-dl360";
systems = [
"x86_64-linux"
"aarch64-linux"
];
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
protocol = "ssh-ng";
maxJobs = 32;
speedFactor = 16;
sshUser = "remotebuild";
}
];
}