This commit is contained in:
Ezri Zhu 2024-09-28 21:45:04 -04:00
parent 01f5b5f1ee
commit 08af19070e
Signed by: ezri
SSH key fingerprint: SHA256:PjS2hKMfl3gJ5Furjjq+kXa4ZvS1c0gb4/djAxxAf6c
3 changed files with 68 additions and 1 deletions

58
hosts/jude.nix Normal file
View file

@ -0,0 +1,58 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "ahci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/16a8c885-a0a5-4d22-8d59-21d29bdca98d";
fsType = "ext4";
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
time.timeZone = "America/Chicago";
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
networking.firewall.enable = false;
networking = {
hostName = "jade";
search = ["wolfgirl.systems"];
nameservers = [ "9.9.9.10" "149.112.112.10" "2620:fe::10" "2620:fe::fe:10"];
dhcpcd.enable = false;
interfaces.ens18.ipv4.addresses = [{
address = "23.143.82.34";
prefixLength = 24;
}];
interfaces.ens18.ipv6.addresses = [{
address = "2602:fc26:12:1::35";
prefixLength = 48;
}];
defaultGateway = {
address = "23.143.82.1";
interface = "ens18";
};
defaultGateway6 = {
address = "2602:fc26:12::1";
interface = "ens18";
};
};
swapDevices = [ {
device = "/swapfile";
size = 4*1024;
randomEncryption.enable = true;
}];
system.stateVersion = "24.05";
}

View file

@ -20,7 +20,7 @@
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
time.timeZone = "Europe/Amsterdam";
time.timeZone = "Europe/London";
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
networking.firewall.enable = false;

View file

@ -25,4 +25,13 @@ in
./common
];
};
"jude" = { pkgs, ... }: {
deployment = {
targetHost = "23.143.82.34";
};
imports = [
./hosts/jude.nix
./common
];
};
}