Comments (15)
Sorry about that, I'll get a patch out shortly.
from nixos-config.
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.
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.
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.
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.
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.
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.
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.
Oh, understood! Let me patch that shortly :) I'll add that to the installation.
from nixos-config.
Maybe asking for the correct repo in the setup would be sufficient
from nixos-config.
Can you try now?
from nixos-config.
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.
@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.
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.
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)
- dustinlyons/nix-secrets.git dependency HOT 6
- NixOS install `./bin/apply: No such file or directory` HOT 8
- Installation issue on NixOS with xvda boot disk HOT 3
- Installed new NixOS install using this repo, no GUI on reboot HOT 13
- macOS - User does not own "system" or "default" profile HOT 8
- error: selector 'bash' matches no derivations HOT 21
- Purpose of mail and name? HOT 2
- Networking wireless device fails to start HOT 3
- How to upgrade everything installed (Mac OSX Sonoma)? HOT 6
- Add -b backup to `home-manager switch` HOT 2
- error: experimental Nix feature 'nix-command' is disabled HOT 8
- starter config appears to expect secrets repo HOT 3
- Couple of issues found with the latest instructions/code HOT 4
- Homebrew not found HOT 4
- How can I fix this homebrew error? HOT 4
- Add option to choose editor during install
- Permission denied with homebrew HOT 4
- How can I add stylix HOT 1
- [Question] Have you considered adding a dock module to nix-darwin? HOT 1
- Does your configuration play with non nix-os Linux systems? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-config.