Welcome to my Nix config #11
Replies: 5 comments 4 replies
-
This is beautiful. I've been dabbling with Nix for almost 5 years both the package manager and the OS. I borked my Mac and wound up having to reinstall a fresh copy of Ventura just 2 days ago-- after having a play at trying to run NixOS on bare metal and seeing all the hardware limitations for this MacbookPro 14,2 model. I have an older 8,1 model that runs PopOS flawlessly and I was thinking "I could shift my efforts over to that machine and check it out, but I sure would like to investigate automating Homebrew since I have a fresh install again." which got me thinking "There's gotta be a way someone used Nix to automate Brew 🤔" And it led me here! With your toolkit here, I think I can do both! 👏 If I can get this working with both my Macbook-MacOS and MacBook-NixOS, then there shouldn't be any problems adding a third target PC/VM/Anything, right? How/Where to do that? |
Beta Was this translation helpful? Give feedback.
-
OK.
I also had to wrap my mind around mas -- I kept getting 1Password and
Wireguard trying to download from the AppStore 😅 But I found a new way to
automate App Store downloads so thanks for that!
The big problem I'm having now is there's no way to do a nix-shell -p
*some-app* without me manually renaming the old nix.conf again then putting
it back out the way; is this normal behavior or is something wrong? I
should also note my Mac is an Intel on the amd64_darwin architecture so I
had to go through and change that everywhere too. Maybe I missed/broke
something?
…On Mon, Oct 2, 2023 at 4:44 PM Dustin Lyons ***@***.***> wrote:
Hey, thanks! You got it. You can add new targets in the flake.nix file,
for either darwinConfigurations (if you're configuring Nix on Mac), or
nixosConfigurations (if you're configuring NixOS).
For example, I want to add my home lab server; I'll be adding that to
nixosConfigurations at some point. Then I just reference that target when I
want to build it:
sudo nixos-rebuild switch --flake .#homeLab
—
Reply to this email directly, view it on GitHub
<#11 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADMUUO4X362DW2XFGMM3RDX5MRSLAVCNFSM6AAAAAASL4LQ4GVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TCNRZGI3DI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
OK, next question-- how do I burn it down and rebuild the whole thing if I screw up? (I've got random permission errors happening in |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hey @StarrWulfe , I found this relevant thread which may solve your problem: https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/3 |
Beta Was this translation helpful? Give feedback.
-
👋 Welcome!
I'm using Discussions as a place to connect with other folks using this code. The hope is that you:
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions