From 009ad1223a9fcb5b6c5ada2a90a1d7e291373a86 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 13 Nov 2025 18:56:52 -0600 Subject: [PATCH] feat: added midnight miner --- modules/home/default.nix | 23 ----------------------- modules/nixos/default.nix | 4 ++-- modules/nixos/guests/midnight/default.nix | 11 +++++++---- systems/phobos/config/filesystem.nix | 11 +++++------ 4 files changed, 14 insertions(+), 35 deletions(-) diff --git a/modules/home/default.nix b/modules/home/default.nix index 5e8b3ec..3b738bc 100755 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -121,30 +121,7 @@ in "${phobos.name}-${user0}" = { imports = builtins.attrValues { inherit (modules) - bitwarden cli - element - emote - espanso - feishin - flameshot - floorp - ghostty - gnomeCalculator - haskell - imageViewing - libreOffice - mpv - obsidian - okular - signal - systemMonitor - theming - tor - usbImager - vesktop - virtManager - zed ; }; }; diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index e34fe50..3371dd8 100755 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -37,8 +37,8 @@ in phobos = { imports = builtins.attrValues { inherit (modules) - plasma - sddm + microvm + midnight ; }; }; diff --git a/modules/nixos/guests/midnight/default.nix b/modules/nixos/guests/midnight/default.nix index ffe9b93..0cf9059 100755 --- a/modules/nixos/guests/midnight/default.nix +++ b/modules/nixos/guests/midnight/default.nix @@ -12,11 +12,12 @@ let ceres = devices.ceres.name; eris = devices.eris.name; deimos = devices.deimos.name; + phobos = devices.phobos.name; hostname = config.networking.hostName; deviceLogic = - var0: var1: var2: var3: + var0: var1: var2: var3: var4: if hostname == ceres then var0 else if hostname == eris then @@ -25,10 +26,12 @@ let var2 else if hostname == deimos then var3 + else if hostname == phobos then + var4 else var0; - macOctet = deviceLogic "57" "58" "59" "60"; + macOctet = deviceLogic "57" "58" "59" "60" "61"; in { microvm = { @@ -38,7 +41,7 @@ in config = let macAddress = "02:00:00:00:00:${macOctet}"; - workers = deviceLogic 45 4 20 6; + workers = deviceLogic 45 4 20 6 2; in { environment.systemPackages = [ @@ -68,7 +71,7 @@ in mac = macAddress; } ]; - mem = deviceLogic 52100 5120 22000 1024; + mem = deviceLogic 52100 5120 22000 1024 7168; shares = [ { mountPoint = "/nix/.ro-store"; diff --git a/systems/phobos/config/filesystem.nix b/systems/phobos/config/filesystem.nix index 2cb057d..3ed34c9 100755 --- a/systems/phobos/config/filesystem.nix +++ b/systems/phobos/config/filesystem.nix @@ -14,19 +14,18 @@ in { fileSystems = { "/" = { - device = "/dev/disk/by-uuid/c9a82c93-1da4-4cd1-a1fa-26483271a2bb"; + device = "/dev/disk/by-uuid/1c4d207a-e055-406c-ba9b-7b2cf48c87f2"; fsType = "ext4"; }; "/boot" = { - device = "/dev/disk/by-uuid/71CA-765A"; + device = "/dev/disk/by-uuid/DFCA-22A5"; fsType = "vfat"; options = phobos.boot.options; }; }; - - swapDevices = [ - { device = "/dev/disk/by-uuid/74007bf1-6e2f-425e-99fa-d35990f4ea37"; } - ]; + # swapDevices = [ + # { device = "/dev/disk/by-uuid/74007bf1-6e2f-425e-99fa-d35990f4ea37"; } + # ]; systemd.tmpfiles.rules = [ "Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"