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