feat: added midnight miner

This commit is contained in:
Nick 2025-11-13 18:56:52 -06:00
parent f2a69dcd0e
commit 009ad1223a
4 changed files with 14 additions and 35 deletions

View file

@ -121,30 +121,7 @@ in
"${phobos.name}-${user0}" = { "${phobos.name}-${user0}" = {
imports = builtins.attrValues { imports = builtins.attrValues {
inherit (modules) inherit (modules)
bitwarden
cli cli
element
emote
espanso
feishin
flameshot
floorp
ghostty
gnomeCalculator
haskell
imageViewing
libreOffice
mpv
obsidian
okular
signal
systemMonitor
theming
tor
usbImager
vesktop
virtManager
zed
; ;
}; };
}; };

View file

@ -37,8 +37,8 @@ in
phobos = { phobos = {
imports = builtins.attrValues { imports = builtins.attrValues {
inherit (modules) inherit (modules)
plasma microvm
sddm midnight
; ;
}; };
}; };

View file

@ -12,11 +12,12 @@ let
ceres = devices.ceres.name; ceres = devices.ceres.name;
eris = devices.eris.name; eris = devices.eris.name;
deimos = devices.deimos.name; deimos = devices.deimos.name;
phobos = devices.phobos.name;
hostname = config.networking.hostName; hostname = config.networking.hostName;
deviceLogic = deviceLogic =
var0: var1: var2: var3: var0: var1: var2: var3: var4:
if hostname == ceres then if hostname == ceres then
var0 var0
else if hostname == eris then else if hostname == eris then
@ -25,10 +26,12 @@ let
var2 var2
else if hostname == deimos then else if hostname == deimos then
var3 var3
else if hostname == phobos then
var4
else else
var0; var0;
macOctet = deviceLogic "57" "58" "59" "60"; macOctet = deviceLogic "57" "58" "59" "60" "61";
in in
{ {
microvm = { microvm = {
@ -38,7 +41,7 @@ in
config = config =
let let
macAddress = "02:00:00:00:00:${macOctet}"; macAddress = "02:00:00:00:00:${macOctet}";
workers = deviceLogic 45 4 20 6; workers = deviceLogic 45 4 20 6 2;
in in
{ {
environment.systemPackages = [ environment.systemPackages = [
@ -68,7 +71,7 @@ in
mac = macAddress; mac = macAddress;
} }
]; ];
mem = deviceLogic 52100 5120 22000 1024; mem = deviceLogic 52100 5120 22000 1024 7168;
shares = [ shares = [
{ {
mountPoint = "/nix/.ro-store"; mountPoint = "/nix/.ro-store";

View file

@ -14,19 +14,18 @@ in
{ {
fileSystems = { fileSystems = {
"/" = { "/" = {
device = "/dev/disk/by-uuid/c9a82c93-1da4-4cd1-a1fa-26483271a2bb"; device = "/dev/disk/by-uuid/1c4d207a-e055-406c-ba9b-7b2cf48c87f2";
fsType = "ext4"; fsType = "ext4";
}; };
"/boot" = { "/boot" = {
device = "/dev/disk/by-uuid/71CA-765A"; device = "/dev/disk/by-uuid/DFCA-22A5";
fsType = "vfat"; fsType = "vfat";
options = phobos.boot.options; options = phobos.boot.options;
}; };
}; };
# swapDevices = [
swapDevices = [ # { device = "/dev/disk/by-uuid/74007bf1-6e2f-425e-99fa-d35990f4ea37"; }
{ device = "/dev/disk/by-uuid/74007bf1-6e2f-425e-99fa-d35990f4ea37"; } # ];
];
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -" "Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"