mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: added midnight miner
This commit is contained in:
parent
f2a69dcd0e
commit
009ad1223a
4 changed files with 14 additions and 35 deletions
|
|
@ -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
|
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,8 @@ in
|
||||||
phobos = {
|
phobos = {
|
||||||
imports = builtins.attrValues {
|
imports = builtins.attrValues {
|
||||||
inherit (modules)
|
inherit (modules)
|
||||||
plasma
|
microvm
|
||||||
sddm
|
midnight
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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 -"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue