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
c39ad5181e
commit
ada1ed4b14
4 changed files with 13 additions and 7 deletions
|
|
@ -116,6 +116,7 @@
|
|||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.lix-module.nixosModules.default
|
||||
inputs.nur.modules.nixos.default
|
||||
inputs.microvm.nixosModules.host
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
deimos = inputs.self.lib.mkLinuxSystem [
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ in
|
|||
plymouth
|
||||
sddm
|
||||
wireguard
|
||||
microvm
|
||||
midnight
|
||||
;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
2
modules/nixos/guests/midnight/default.nix
Normal file → Executable file
2
modules/nixos/guests/midnight/default.nix
Normal file → Executable file
|
|
@ -38,7 +38,7 @@ in
|
|||
config =
|
||||
let
|
||||
macAddress = "02:00:00:00:00:${macOctet}";
|
||||
workers = deviceLogic 45 4 6 6;
|
||||
workers = deviceLogic 45 4 16 6;
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ let
|
|||
ceres = devices.ceres;
|
||||
eris = devices.eris;
|
||||
hostname = config.networking.hostName;
|
||||
deviceLogic = if hostname == mars.name then deimos else mars;
|
||||
|
||||
in
|
||||
{
|
||||
|
|
@ -35,6 +34,12 @@ in
|
|||
rebuild-eris:
|
||||
nixos-rebuild switch --flake ~/projects/dotfiles#${eris.name} --target-host ${eris.ip.address0} --sudo --ask-sudo-password --show-trace
|
||||
|
||||
rebuild-mars:
|
||||
nixos-rebuild switch --flake ~/projects/dotfiles#${mars.name} --target-host ${mars.ip.address0} --sudo --ask-sudo-password --show-trace
|
||||
|
||||
rebuild-deimos:
|
||||
nixos-rebuild switch --flake ~/projects/dotfiles#${deimos.name} --target-host ${deimos.ip.address0} --sudo --ask-sudo-password --show-trace
|
||||
|
||||
rebuild-lamda:
|
||||
nixos-rebuild switch --flake ~/projects/lamdagibson#lamdagibson --target-host denise@${lamdaIP} --sudo --ask-sudo-password --show-trace
|
||||
|
||||
|
|
@ -53,6 +58,9 @@ in
|
|||
eris:
|
||||
ssh ${eris.ip.address0}
|
||||
|
||||
deimos:
|
||||
ssh ${deimos.ip.address0}
|
||||
|
||||
lamda:
|
||||
ssh denise@${lamdaIP}
|
||||
|
||||
|
|
@ -61,10 +69,5 @@ in
|
|||
|
||||
forgejo:
|
||||
ssh root@${instances.forgejo.interface.ip}
|
||||
|
||||
${deviceLogic.name}:
|
||||
ssh ${deviceLogic.ip.address0}
|
||||
|
||||
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue