Add Colmena to manage systems, use better pathing for smallfetch, use better mountpoints and hostnames from Colema

This commit is contained in:
Bun 2025-06-01 06:17:48 -04:00
parent 215ad6b1a7
commit 1f7d01bb4d
53 changed files with 254 additions and 166 deletions

View file

@ -12,7 +12,7 @@ let
in {
boot = {
# Latest kernel and IOMMU isolation
kernelPackages = pkgs.linuxPackages_latest;
kernelPackages = pkgs.linuxPackages_6_14;
kernelParams = commonKernelParams ++ [ "vfio-pci.ids=10de:1f82,10de:10fa" ];
# Load into GPU before video driver
@ -24,6 +24,9 @@ in {
# Secure boot
lanzaboote.enable = true;
# Emulate different architectures for remote builds
binfmt.emulatedSystems = [ "aarch64-linux" ];
};
# Use second GPU on boot

View file

@ -0,0 +1,10 @@
{ config, ... }:
{
deployment = {
tags = [
"desktop"
"pc"
];
targetHost = "4e4:535:9d47:f367:becd:6557:458d:5b1b";
};
}

View file

@ -2,6 +2,7 @@
{
imports = [
./boot
./colmena
./disko
./filesystems
./hardware
@ -9,8 +10,6 @@
../../modules/system
];
networking.hostName = "tower";
system = {
desktop.enable = true;
nvidia.enable = true;

View file

@ -1,6 +1,6 @@
{ config, ... }:
{ config, nodes, ... }:
{
fileSystems = with config.services.mycelium.ips; {
fileSystems = with config.sysusers; with nodes; {
# Games and such
"/mnt/Linux1" = {
device = "/dev/disk/by-uuid/b2901f8c-ffda-4b88-bb63-a9ea0c96ccb4";
@ -39,8 +39,8 @@
};
# Network mounts
"/home/${config.sysusers.main}/Network/Midas" = {
device = "[${midas}]:/storage";
"/home/${main}/Network/Midas" = {
device = "[${midas.config.deployment.targetHost}]:/storage";
fsType = "nfs4";
options = [
"noauto"
@ -48,8 +48,8 @@
"x-systemd.automount"
];
};
"/home/${config.sysusers.main}/Network/Kitty" = {
device = "[${kitty}]:/storage/bun";
"/home/${main}/Network/Kitty" = {
device = "[${kitty.config.deployment.targetHost}]:/storage/${main}";
fsType = "nfs4";
options = [
"noauto"
@ -57,8 +57,8 @@
"x-systemd.automount"
];
};
"/home/${config.sysusers.main}/Network/Prophet" = {
device = "[${prophet}]:/storage";
"/home/${main}/Network/Prophet" = {
device = "[${prophet.config.deployment.targetHost}]:/storage";
fsType = "nfs4";
options = [
"noauto"