!oNSIfazDqEcwhcOjSL:matrix.org

disko

409 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko111 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
27 Jun 2024
@lassulus:lassul.uslassulusjust running the formatScript output from disko would not kill the disk15:55:32
@colemickens:matrix.orgcolemickensI 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:lassul.uslassulus

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:lassul.uslassulusbtw, why are you running nixos-anywhere again?16:37:24
@lassulus:lassul.uslassulusyou can also just use nixos-rebuild --target-host 16:37:40
@colemickens:matrix.orgcolemickens 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:matrix.orgcolemickens
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:lassul.uslassulusthe script was not tested, but I hope you get the idea :)16:39:19
28 Jun 2024
@axiomss:matrix.orgaxiomss left the room.04:13:09

Show newer messages


Back to Room ListRoom Version: 10