wimpysworld / nix-config

Wimpy's NixOS, nix-darwin & Home Manager Configurations ❄️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disko issues with install.sh

bananabr34d opened this issue · comments

I've been reviewing your config and noticed a couple things in the install.sh that could potentially present problems. First, on row 22 ls -1 nixos/*/boot.nix | cut -d'/' -f2 | grep -v iso it appears that you may be searching for an old file name boot.nix that has now been changed to disks.nix. Second, the code on rows 40-42 utilize a keyfile format that's not referenced in the encryption examples on disko's github page. I'd probably change "data.keyfile" on rows 40 and 41 to "secret.key" to match the name found here - disko github and prevent errors when users copy and paste their code.

Assuming you agree with the renaming of "data.keyfile" to "secret.key" you'll probably want to do the same change on rows 70-72 of the install.sh file too.

Of course, feel free to disregard if you disagree.

I wonder if this is why I have been having trouble with installing from latest ISO release 23.207.10?

I have tried all installation options listed in the readme

1 Use the graphical Calamares installer to install an adhoc system

[Installed MATE 1st time]
Issues:

  1. Could not complete install instructions, rebuild-home not found
  2. Terminal was not fish
  3. Theme was not dark, terminal font very hard to read

[Installed Pantheon 2nd time]
Issues:

  1. Could not complete install instructions, rebuild-home not found
  2. Terminal was not fish

2 Run install-system from a terminal

Issue:
ERROR! install-system could not find the required nixos/nix-vm/disks.nix

I experienced similar problems using the past iso release. The GUI install went fine though but home-rebuild script was not found. To be fair Calamares installer is good with wifi, sound, videos working ootb. Shell is bash and not fish though. There's no home manager so it resulted to my installation of home-manager following other tutorials. I have trouble using bash and its dotfiles in nix. I wish there's an easier way.

Oh, looking through install.sh some more it seems that the error I got was because I was choosing arbitrary host and user.
Instead it appears to be doing a match operation against pre-defined hosts and users.
Now it is running after changing to:
install-system vm nixos

Will see what happens

Update: Errored out, relating to /dev/vda
I think that perhaps the install method isn't particularly transferable to 3rd parties