Giter VIP home page Giter VIP logo

Comments (15)

dustinlyons avatar dustinlyons commented on May 2, 2024 2

Oh okay, in that case it may be tricky. If you want, just go inside of your template's apps/aarch64-darwin directory and change create-keys to this:

https://github.com/dustinlyons/nixos-config/blob/main/templates/starter-with-secrets/apps/aarch64-darwin/create-keys

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024 1

Oops, this was my fault. Can you try again with the latest?

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024 1

Hey, if you get this running okay, can you let me know? I'd love to add 'M3 Apple Silicon' to my list of confirmed working platforms. Thanks!

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024 1

Also both methods for installing Nix should work. I prefer the Determinate Systems installer as it details an easier uninstall path for users.

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024 1

I think we need to chmod +x the create-keys app. I missed that in the documentation.

So,

chmod +x apps/aarch64-darwin/apply && chmod +x apps/aarch64-darwin/build && chmod +x apps/aarch64-darwin/build-switch && chmod +x apps/aarch64-darwin/create-keys && chmod +x apps/aarch64-darwin/copy-keys && chmod +x apps/aarch64-darwin/check-keys

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024 1

Actually, one second, I think it's all keys or no keys. Let me make it work for either key.

from nixos-config.

oscarvarto avatar oscarvarto commented on May 2, 2024 1

@dustinlyons
nix run .#build completed successfully on M3 Max chip. I'd like to spend some time reviewing the changes it will do when I finally (other day) execute nix run .#build-switch.

Thank you very much for your help today.

from nixos-config.

oscarvarto avatar oscarvarto commented on May 2, 2024

@dustinlyons I am getting a "permission denied" error when trying to execute nix run .#create-keys:

nix run .#create-keys
Running create-keys for aarch64-darwin
/nix/store/njzb67j6a7wjhjvv1gapi2ng6rvj74h3-create-keys/bin/create-keys: line 4: /nix/store/dk7cnim2pcw3mxrirz5y6k6jyjxby86a-source/apps/aarch64-darwin/create-keys: Permission denied
/nix/store/njzb67j6a7wjhjvv1gapi2ng6rvj74h3-create-keys/bin/create-keys: line 4: exec: /nix/store/dk7cnim2pcw3mxrirz5y6k6jyjxby86a-source/apps/aarch64-darwin/create-keys: cannot execute: Undefined error: 0

Is it necessary to use sudo?

Edit: I tried with sudo, and it didn't work neither (I guess this was expected, and sudo shouldn't be used).
I've been trying to start with nix and flakes on my machine without success, since yesterday. This is not the first template I've tried.

Should I try uninstalling everything and restart? Maybe I have garbage after the first try...

from nixos-config.

oscarvarto avatar oscarvarto commented on May 2, 2024

That did the trick.

However, I decided to not overwrite my already existing id_ed25519 key pair. Is it possible to keep that but generate the id_ed25519_agenix.
Sorry if I am asking too much, or something that is not possible. It's just that I already have keys that identify me, I just don't have the last one ending in _agenix.

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024

I love all of these questions! I don't get to talk to users of this project enough, so this is really helpful for me.

I (er.. ChatGPT 😂) updated the app to first check for keys and give the user an interactive prompt; try now.

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024

Okay, try now.

from nixos-config.

oscarvarto avatar oscarvarto commented on May 2, 2024

@dustinlyons
Sorry for the noob question. I've already modified the template, how do I pull the most recent changes to the template (quickly) without throwing away my work?

Edit: Also, is there a discord, irc channel, or somewhere else we could have a more convenient interchange of words?

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024

I'm on freenode IRC if you want to jump in and chat. Channel is #nixos-config.

from nixos-config.

oscarvarto avatar oscarvarto commented on May 2, 2024

@dustinlyons Are you on freenode or liberachat? Just making sure.

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024

@oscarvarto I'm on freenode in #nixos-config.

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.