Giter Club home page Giter Club logo

Comments (15)

dustinlyons avatar dustinlyons commented on May 3, 2024 1

Sorry about that, I'll get a patch out shortly.

from nixos-config.

dustinlyons avatar dustinlyons commented on May 3, 2024 1

Yeah, then I can just sed/replace another token as part of install before using the flake. I can get it out within the next couple hours, gotta do some work stuff first.

from nixos-config.

dustinlyons avatar dustinlyons commented on May 3, 2024

Okay, I've made this change:

  • During bin/apply, you'll get asked to choose the installation disk. We also now give you a warning that the disk will be reformatted.

I haven't had time to test it, however, I think it's correct. If you want to give it a try, just follow the steps as you did before and run bin/apply. If there are any errors, they are likely syntactical, as I didn't introduce anything new or novel. This means I can quickly fix them, or the bin/apply script may require minor edits on your end.

Essentially, we need the correct device name in the nixos/disk-config.nix file. The bin/apply script assists in doing that by replacing the token %DISK% found inside nixos/disk-config.nix with the user's input.

Let me know how it goes.

Thank you!

from nixos-config.

TonyBostonTB avatar TonyBostonTB commented on May 3, 2024

Since I have to issue following command
sudo nix run --extra-experimental-features 'nix-command flakes' github:dustinlyons/nixos-config#installWithSecrets
I do get an error where the installer doesn't find "/dev/%DISK%" of course
I do not get to a point where I may issue "bin/apply

from nixos-config.

dustinlyons avatar dustinlyons commented on May 3, 2024

Okay, sorry about that. I was confusing myself with the Mac installation. The bin/apply actually runs as part of the installWithSecrets nix-command. But that was broken now that the %DISK% token was introduced, so I just released a patch. To test, I'm currently building a new VM by just running

sudo nix run --extra-experimental-features 'nix-command flakes' github:dustinlyons/nixos-config#install

So can you try again?

from nixos-config.

TonyBostonTB avatar TonyBostonTB commented on May 3, 2024

Cool! Moving forward with this.
Now the next issue is that, if running the setup with keys, one would not have a chance to set an own github repo for nix-secrets. It's always trying to use your own repo.

As a sidenote: As far as I understand, you'll have to put your SSH Keys in the ROOT USers $HOME as you running sudo iwht the install command, correct?

from nixos-config.

dustinlyons avatar dustinlyons commented on May 3, 2024

Yes, check out these steps here: https://github.com/dustinlyons/nixos-config#2-optional-setup-secrets

To use secrets, you need to have created this repo beforehand. The repo can be empty just needs to exist.

There are helper commands that give you a few options to bring your keys in. Let me know if you need any clarification on the README steps.

from nixos-config.

TonyBostonTB avatar TonyBostonTB commented on May 3, 2024

Sure I did that setup and brought my own keys, but if I run the install command, it tries to use your repo for the secrets

error: unable to download https://api.github.com/repos/dustinlyons/nix-secrets/commits/main*: HTTP errar
• 404
response body:
"message": "Not Found"
"documentation_url": "https://docs.github.com/rest/commits/commits#get-a-commit"
(use
*--show-trace' to show detailed location information)
configuration file /mnt/etc/nixos/configuration.nix doesn't exist

from nixos-config.

dustinlyons avatar dustinlyons commented on May 3, 2024

Oh, understood! Let me patch that shortly :) I'll add that to the installation.

from nixos-config.

TonyBostonTB avatar TonyBostonTB commented on May 3, 2024

Maybe asking for the correct repo in the setup would be sufficient

from nixos-config.

dustinlyons avatar dustinlyons commented on May 3, 2024

Can you try now?

from nixos-config.

TonyBostonTB avatar TonyBostonTB commented on May 3, 2024

Awesome. Installation went fine. Only thing after reboot, my user password didn't work. Had to set it again with the root user. And thanks for the quick support here, much appreciated!

from nixos-config.

dustinlyons avatar dustinlyons commented on May 3, 2024

@TonyBostonTB Awesome, great to hear! Yeah, when you enter your password during installation that's actually for root. User pass isn't set during installation. I need to find a proper way to either have a default password or let the user set it.

What else would be helpful for first-time usage? Anything you're finding confusing/hard to use?

I probably need to add the default key bindings to the README and how to change them.

from nixos-config.

TonyBostonTB avatar TonyBostonTB commented on May 3, 2024

Actually after the first reboot, nothing really works. I get a huge segfault list with failed files and did stop for now to further investigate. :(
If somebody is interested, I might install again and get to all the errors in a new issue.

from nixos-config.

dustinlyons avatar dustinlyons commented on May 3, 2024

Oh wow, okay. I've got it running on a VM and an x86 machine w/ UEFI at home, and this should be very reproducible, the whole point of Nix :). So something is going on. I'd love to see the errors you're getting if you have the time. Thanks for all the input so far.

from nixos-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.