Add two new servers

This commit is contained in:
Bun 2025-06-06 14:54:14 -04:00
parent 26fd8569fe
commit 51044e15eb
25 changed files with 208 additions and 78 deletions

View file

@ -1,10 +1,11 @@
{ ... }:
{ pkgs, ... }:
{
boot = {
kernelPackages = pkgs.linuxPackages_hardened;
kernelParams = [
"amdgpu.si_support=1"
"radeon.si_support=0"
];
lanzaboote.enable = true;
loader.systemd-boot.enable = true;
};
}

View file

@ -5,13 +5,16 @@
./disko
./filesystems
./hardware
./user
];
system = {
nixos.tags = [ "pc" ];
nixos.tags = [ "server" ];
stateVersion = "25.05";
};
deployment.targetHost = "";
deployment.targetHost = "5dd:9cd7:f286:e2c7:4c3b:c2e1:7832:97a3";
networking.hostId = "0917a5c1";
services.nfs.server.enable = true;
}

View file

@ -24,17 +24,11 @@
mountOptions = [ "umask=0077" ];
};
};
luks = {
main = {
size = "100%";
content = {
type = "luks";
name = "${config.networking.hostName}-disk";
settings.allowDiscards = true;
passwordFile = "/tmp/secret.key";
content = {
type = "lvm_pv";
vg = "${config.networking.hostName}";
};
type = "lvm_pv";
vg = "${config.networking.hostName}";
};
};
};
@ -78,7 +72,7 @@
# Impermanence
"/persist" = {
mountpoint = "/persist";
mountOptions = [
mountOptions = [
"compress=zstd"
"ssd"
];
@ -90,7 +84,7 @@
};
};
swap = {
size = "8G";
size = "2G";
content = {
type = "swap";
discardPolicy = "both";

View file

@ -11,9 +11,6 @@
];
};
# Network mounts
"kitty".enable = true;
"midas".enable = true;
"prophet".enable = true;
"detritus".enable = false;
};
}

View file

@ -1 +0,0 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBQE+a1E88+ELJ5cDOMPlc9lnV1ysVndchgJ4MxCjeWd

View file

@ -1,11 +0,0 @@
{ config, pkgs, ... }:
{
home-manager.users."${config.vars.mainUser}" = {
home = {
desktop.enable = true;
gaming.enable = true;
};
wayland.windowManager.sway.package = pkgs.swayfx;
};
}