| 27 Jun 2024 |
lassulus | just running the formatScript output from disko would not kill the disk | 15:55:32 |
colemickens | I wonder how hard it would be to hack at nixos-anywhere to give it a flag to skip the deactive-disk. | 16:32:22 |
lassulus | should be already possible, you are using flakes I guess? you could say something like:
system.build.diskoScript = lib.mkForce (pkgs.writeScriptBin "disko-without-wipe" ''
${config.system.build.formatScript}
${config.system.build.mountScript}
'');
| 16:37:09 |
lassulus | btw, why are you running nixos-anywhere again? | 16:37:24 |
lassulus | you can also just use nixos-rebuild --target-host | 16:37:40 |
colemickens | lassulus: I want to tear down the Hetzner machines when I'm not using them. The goal is to have /nix and /home on a volume. So I can recreate server, re-run nixos-anyhwere, and have /nix and /home (and maybe /etc, I guess) restored. | 16:38:56 |
colemickens | In reply to @lassulus:lassul.us
should be already possible, you are using flakes I guess? you could say something like:
system.build.diskoScript = lib.mkForce (pkgs.writeScriptBin "disko-without-wipe" ''
${config.system.build.formatScript}
${config.system.build.mountScript}
'');
nice, thanks. | 16:38:57 |
lassulus | the script was not tested, but I hope you get the idea :) | 16:39:19 |
| 28 Jun 2024 |
| axiomss left the room. | 04:13:09 |