Add a config for the machine to recover the family disks.
This commit is contained in:
@@ -85,9 +85,9 @@
|
||||
set -xeuo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
#${this_nixos_config.config.system.build.destroyScript}
|
||||
${this_nixos_config.config.system.build.destroyScript}
|
||||
|
||||
#${this_nixos_config.config.system.build.formatScript}
|
||||
${this_nixos_config.config.system.build.formatScript}
|
||||
|
||||
${this_nixos_config.config.system.build.mountScript}
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ in
|
||||
IFS=$'\n\t'
|
||||
DIR="$( cd "$( dirname "''${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
NIX_REMOTE='local?root=/home/nixworker/persist/root' RUST_BACKTRACE=1 RUST_LOG=nix_builder=DEBUG ${nix_builder}/bin/nix-builder build --config ${./files/nix_builder.toml} --target odo --target odo_update --target odowork --target odowork_update --target quark --target quark_update --target hydra --target hydra_update --target controller0 --target controller0_update --target controller1 --target controller1_update --target controller2 --target controller2_update --target worker0 --target worker0_update --target worker1 --target worker1_update --target worker2 --target worker2_update
|
||||
NIX_REMOTE='local?root=/home/nixworker/persist/root' RUST_BACKTRACE=1 RUST_LOG=nix_builder=DEBUG ${nix_builder}/bin/nix-builder build --config ${./files/nix_builder.toml} --target odo --target odo_update --target odowork --target odowork_update --target quark --target quark_update --target hydra --target hydra_update --target controller0 --target controller0_update --target controller1 --target controller1_update --target controller2 --target controller2_update --target worker0 --target worker0_update --target worker1 --target worker1_update --target worker2 --target worker2_update --target family_disks --target family_disks_update
|
||||
'';
|
||||
restartIfChanged = false;
|
||||
serviceConfig = {
|
||||
|
||||
@@ -161,3 +161,19 @@ output_directory = "/home/nixworker/persist/nix_builder"
|
||||
update_branch = "kubernetes_update"
|
||||
|
||||
# TODO: Add steam deck
|
||||
|
||||
[[targets]]
|
||||
name = "family_disks"
|
||||
repo = "https://code.fizz.buzz/talexander/machine_setup.git"
|
||||
branch = "family_disks"
|
||||
path = "nix/configuration"
|
||||
attr = "nixosConfigurations.family_disks.config.system.build.toplevel"
|
||||
|
||||
[[targets]]
|
||||
name = "family_disks_update"
|
||||
repo = "https://code.fizz.buzz/talexander/machine_setup.git"
|
||||
branch = "family_disks"
|
||||
path = "nix/configuration"
|
||||
attr = "nixosConfigurations.family_disks.config.system.build.toplevel"
|
||||
update = true
|
||||
update_branch = "nix_update"
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
ddrescue
|
||||
tmux # For running rescues in the background
|
||||
rsync # For transferring rescued files
|
||||
htop # To check resource usage
|
||||
];
|
||||
}
|
||||
(lib.mkIf config.me.graphical {
|
||||
|
||||
Reference in New Issue
Block a user