refactoring hosts too big

This commit is contained in:
ari committed 2026-09-25 14:51:13 -04:00
1 parent da102d5b47
commit b5bde292d2
112 files changed
+2270 -1625

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
let
ports = {
nixServe = 5000;
lockdPort = 4001;
mountdPort = 4002;
statdPort = 4000;
};
openPorts = builtins.attrValues ports;
in
{
imports = [
./services.nix
./hardware-configuration
./hardware.nix
];
boot.loader.grub.device = lib.mkForce "/dev/disk/by-id/ata-KINGSTON_SA400S37240G_50026B7785904215";
programs.nh.clean.extraArgs = "--keep-since 30d --keep 5";
skyg = {
user.enable = true;
nixos.common = {
ssh-server.enable = true;
containers.openMetricsPort = true;
};
server.exporters.enable = true;
networkDrives = {
enable = true;
bigBox2.enable = false;
};
};
skyg.nixos.common.cachePush.enable = false;
}
@@ -0,0 +1,20 @@
#
# Clanker ! Do not modify this file!
#
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "xhci_pci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.loader.grub = {
enable = true;
device = "/dev/sda";
efiSupport = false;
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
@@ -0,0 +1,10 @@
#
# Clanker ! Do not modify this file!
#
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
./boot.nix
./file-system.nix
];
}
@@ -0,0 +1,36 @@
#
# Clanker ! Do not modify this file!
#
{ config, lib, pkgs, modulesPath, ... }:
{
fileSystems."/" = {
device = "/dev/disk/by-uuid/5bf4a352-412f-47e1-9455-68f3aa629722";
fsType = "btrfs";
options = [ "subvol=@root" "compress=zstd" "noatime" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/ccc80fd2-b38b-412b-9988-12a3194a5b57";
fsType = "ext4";
};
fileSystems."/var" = {
device = "/dev/disk/by-uuid/5bf4a352-412f-47e1-9455-68f3aa629722";
fsType = "btrfs";
options = [ "compress=zstd" "subvol=@var" "noatime" ];
};
fileSystems."/nix" = {
device = "/dev/disk/by-uuid/8cd6e560-4db9-4cf1-8048-27a7c6308965";
fsType = "btrfs";
options = [ "compress=zstd" "subvol=@nix" "noatime" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/6f4b2adc-5818-41ea-a4ba-720fb96b8f98";
fsType = "btrfs";
options = [ "compress=zstd" "subvol=@home" "noatime" ];
};
fileSystems."/data/fourTerra" = {
device = "/dev/sde1";
fsType = "btrfs";
options = [ "compress=zstd" "subvol=@data" "noatime" ];
};
swapDevices = [ ];
}
+4
View File
@@ -0,0 +1,4 @@
{ ... }:
{
services.fwupd.enable = true;
}
+31
View File
@@ -0,0 +1,31 @@
{ ... }:
let
ports = {
nixServe = 5000;
lockdPort = 4001;
mountdPort = 4002;
statdPort = 4000;
};
openPorts = builtins.attrValues ports;
in
{
services.nix-serve = {
enable = true;
secretKeyFile = "/home/ari/cache-keys/cache-priv-key.pem";
port = ports.nixServe;
};
skyg.nixos.common.networking.nfsServer.enable = true;
services.nfs.server = {
lockdPort = ports.lockdPort;
mountdPort = ports.mountdPort;
statdPort = ports.statdPort;
extraNfsdConfig = '''';
exports = ''
/data/fourTerra 10.0.0.0/16(rw,wdelay,insecure,no_root_squash,no_subtree_check,sec=sys,rw,insecure,no_root_squash,no_all_squash)
'';
};
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;
}