[NODES] New node, goliath.

This commit is contained in:
Kat Inskip 2023-04-16 08:43:42 -07:00
parent 3979de8a15
commit 572dd0e4db
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
31 changed files with 303 additions and 135 deletions

View file

@ -71,7 +71,7 @@
.${string.toLower config.type};
modules = with tree; [
tree.modules.${config.folder}
tree.modules.common
#tree.modules.common
tree.${config.folder}.common
tree.kat.user.${config.folder}
common

91
systems/goliath.nix Normal file
View file

@ -0,0 +1,91 @@
_: let
hostConfig = {
config,
lib,
tree,
pkgs,
...
}: {
imports = with tree.nixos.hardware;
[
common-wifi-bt
sound
]
++ (with tree.nixos.roles; [
graphical
gaming
gnome
bootable
])
++ (with tree.kat; [
gui
gnome
]);
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
boot.supportedFilesystems = ["ntfs"];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/cf7fc410-4e27-4797-8464-a409766928c1";
fsType = "ext4";
};
"/boot/efi" = {
device = "/dev/disk/by-uuid/D0D8-F8BF";
fsType = "vfat";
};
};
boot.initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
# Enable swap on luks
boot.initrd.luks.devices."luks-111c4857-5d73-4e75-89c7-43be9b044ade".device = "/dev/disk/by-uuid/111c4857-5d73-4e75-89c7-43be9b044ade";
boot.initrd.luks.devices."luks-111c4857-5d73-4e75-89c7-43be9b044ade".keyFile = "/crypto_keyfile.bin";
boot.initrd.luks.devices."luks-af144e7f-e35b-49e7-be90-ef7001cc2abd".device = "/dev/disk/by-uuid/af144e7f-e35b-49e7-be90-ef7001cc2abd";
services.openssh = {
hostKeys = [
{
bits = 4096;
path = "/var/lib/secrets/${config.networking.hostName}-osh-pk";
type = "rsa";
}
{
path = "/var/lib/secrets/${config.networking.hostName}-ed25519-osh-pk";
type = "ed25519";
}
];
extraConfig = ''
HostCertificate /var/lib/secrets/${config.networking.hostName}-osh-cert
HostCertificate /var/lib/secrets/${config.networking.hostName}-osh-ed25519-cert
'';
};
swapDevices = [
{device = "/dev/disk/by-uuid/bebdb14c-4707-4e05-848f-5867764b7c27";}
];
networking = {
hostId = "dddbb888";
useDHCP = false;
};
system.stateVersion = "21.11";
};
in {
arch = "x86_64";
type = "NixOS";
modules = [
hostConfig
];
}

View file

@ -5,10 +5,12 @@ _: let
common-pc-laptop-ssd
] ++ (with tree.nixos.roles; [
graphical
sway
laptop
bootable
]) ++ (with tree; [
kat.gui
kat.sway
]);
fileSystems = {