!oNSIfazDqEcwhcOjSL:matrix.org

disko

411 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko113 Servers

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


SenderMessageTime
24 Jun 2024
@lassulus:lassul.uslassulussure13:29:09
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @alina:kescher.at
i'm reading the source code to see if what i'm currently coding is too similar from an architectual perspective and if it wouldn't be better to just create a PR, so more stupid questions may arise if that's okay :p
If the module option is improperly named or is in the wrong place, please suggest something else, would love it
13:31:16
25 Jun 2024
@axiomss:matrix.orgaxiomss joined the room.22:06:24
27 Jun 2024
@colemickens:matrix.orgcolemickenshi yall, I'm trying to use a Hetzner volume for nix+home, but when I do this, it breaks nixos-anywhere: https://github.com/colemickens/nixcfg/commit/905507248b37c782a69d7fbd1ab1509e750b743b02:34:54
@colemickens:matrix.orgcolemickensany advice?02:34:56
@colemickens:matrix.orgcolemickens
machine will boot into nixos in 6s...
+ echo machine will boot into nixos in 6s...
+ test -e /dev/kmsg
+ exec
Warning: Permanently added '94.130.73.187' (ED25519) to the list of known hosts.
Warning: Permanently added '94.130.73.187' (ED25519) to the list of known hosts.
ssh: connect to host 94.130.73.187 port 22: Connection timed out
ssh: connect to host 94.130.73.187 port 22: No route to host

and it just repeats the last line forever

02:35:19
@colemickens:matrix.orgcolemickensIf I don't enable disk2, the naive regular hetzner nixos-anywhere deploy seems to work fine.02:35:35
@colemickens:matrix.orgcolemickens (fixing disk2.content.partitions."nix".name doesn't seem to fix it) 02:42:48
@colemickens:matrix.orgcolemickensdoes disko have an idempotent mode of operation? I want to use it with nixos-anywhere to have ephemeral hetzner instances with a persistent volume04:29:36
@colemickens:matrix.orgcolemickensinitial tests indicates that disko seems to happily just reformat the persistent disk :/04:29:48
@colemickens:matrix.orgcolemickenssurely there must be a "skipFormat" option i can set for subsequent deploys after initial setup, right?04:30:11
@lassulus:lassul.uslassulusThe formatScript should be idempotent06:01:12
@colemickens:matrix.orgcolemickens lassulus: can you say more? When I deploy a Hetzner box with an attached disk, run nixos-anywhere, write a file into my /home, and then repeat the process, the /home is wiped and fresh. 15:51:49
@lassulus:lassul.uslassulusyes, nixos-anywhere runs the diskoScript15:55:06
@lassulus:lassul.uslassulusthat one runs the deactivate-disk script, this one destroys the disk15:55:19
@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

Show newer messages


Back to Room ListRoom Version: 10