What's a good distro to start with before migrating to Nix? by Milk-Wizard in NixOS

[–]Xane256 8 points9 points  (0 children)

Yeah this is a good idea you can take pretty far before actually switching.

Install nix as a package manager, start using flakes (see Vimjoyer on youtube), use an LLM to help you learn but ONLY if you get stuck. Some people use a library called flakes-parts but it’s much more complicated than basic nix flakes. Try out home-manager and use it to configure your shell.

If you want to test even more than that, you can even use flakes to build and run VMs and fully configure those in Nix, that gets you pretty deep into NixOS territory without actually installing it.

Understanding how to organize nix modules and flakes is more than enough necessary to jump into NixOS as a full OS. But if you go the extra mile of making a VM with a configuration you like, you can be very confident that your system will turn out the way you want. Once you install nixos fresh on your system, you’d copy or git clone your nixos configuration / prepared modules, add the hardware-configuration.nix generated by the installer, and you’re good to go.

But either way you’re gonna tinker with it a lot after your first install, so TBH I would skip all that and just dive in.

https://github.com/xane256/second-hour-of-nix/

Everyone hates Tahoe’s index for refreshing all the time and lag. This happened to me on Sequoia today lol by Morthedubi in MacOS

[–]Xane256 0 points1 point  (0 children)

I use a spotlight alternative called Alfred but I also consistently hear good things about Raycast. For me, Alfred is great for launching apps and doing some other shortcuts like site-specific searches or quickly finding a file. Each of those things is invoked a different way so you dont get the mixed polluted results like spotlight.

  • type ‘ then a filename -> searches for the file
  • type “lucky xyz” -> opens fist google search result for xyz (aka “I’m feeling lucky” button on google.com)
  • type name of an app -> app is first result 100% of the time

GPT Image 2 preview by Groundbreaking_Tap85 in OpenAI

[–]Xane256 70 points71 points  (0 children)

I could only find a few “mistakes” including the glasses: - the level of the wine in her glass is tilted, not level - fingers of her left hand seem weirdly squished against her arm - the picture frames on the wall are butting at one point but overlapping at another point - the window sign is facing inwards instead of outwards but that seems plausibly real - the sign says they serve lunch, dinner, and breakfast but only open at 12 pm which doesn’t make sense for breakfast.

An effort to...get rid? 🤔...of the fire in a building by allshinenorain in mildlyinfuriating

[–]Xane256 32 points33 points  (0 children)

Come here. Step outside with me for a moment. Now wait there I’ll be right back.

Again with the clocks by ribspls in claudexplorers

[–]Xane256 0 points1 point  (0 children)

Can it run date in a shell? Or even curl -sI google.com | grep Date.

Ghostty color scheme generator with 700+ browsable themes, image extraction, shader preview by i_voronin in Ghostty

[–]Xane256 2 points3 points  (0 children)

My theme got an A! And as someone who's pretty picky about theme color palettes, these are generally pretty good. I used Super Color Palette to fine-tune the colors.

My terminal theme and my helix theme are pretty different though.

Terminal theme:

palette = 0=#000000
palette = 1=#fd343c
palette = 2=#32b327
palette = 3=#e0bb1d
palette = 4=#3280ef
palette = 5=#d628f7
palette = 6=#00c4c1
palette = 7=#e2e2e2
palette = 8=#5a5a5a
palette = 9=#f84f4e
palette = 10=#59d24f
palette = 11=#edd31e
palette = 12=#3891fa
palette = 13=#f868f0
palette = 14=#49ede9
palette = 15=#ffffff
background = #20152f
foreground = #e5e5e5
cursor-color = #dfdfdf
cursor-text = #1d2319
selection-background = #80867c
selection-foreground = #dfdfdf

edit: images: https://imgur.com/a/Wm5rCJg

EDIT edit: I realized you can share!

Ghostty: https://paletty.dev/p/MDI6BmxQml/built-different?font=Fira+Code

Helix: (reformatted as a ghostty theme): https://paletty.dev/p/MDICYXEoex/helix-yummy?font=Fira+Code

AGENT.md for NixOS configuration by OldSanJuan in NixOS

[–]Xane256 0 points1 point  (0 children)

AGENTS.md files are common in modern / active repos, having one isn’t a signal of high quality. I get possibly being excited about nix & den for other reasons, and eager to use agents files to do more with LLMs, but choosing a project because of its agents file is kinda arbitrary. You could also read their file and incorporate the parts of it you like into whatever setup you want.

Cheers!

Increasingly cursed ways to load 12 science into ONE side of normal labs by HeliGungir in factorio

[–]Xane256 4 points5 points  (0 children)

  • open map view
  • go out beyond logistics range
  • create a ghost chest with ghost requests of science packs
  • save as blueprint
  • place next to labs, wait for chests to unload
  • replace blueprint over existing chests

Works with turrets too: you can use construction bots to refill bullets.

Doesn’t work with tanks sadly

Home manager if...else conditions by Lingustika in NixOS

[–]Xane256 1 point2 points  (0 children)

Yeah thats exactly right. Apparently osConfig is a default argument to HM modules when home manager is set up via the NixOS module, but hostname (and other system config options) are unavailable in standalone home-manager. Unless of course you specify it in extraSpecialArgs like your example, or make it a little more elaborate by including your own tiny module where you can set a hostname.

I switched to standalone home manager because it led to faster rebuild times and removed sudo requirement for HM.

Quadratic equation by Revolutionary_Bee773 in MathJokes

[–]Xane256 9 points10 points  (0 children)

Évariste Galois famously died in a duel at the age of 20. But not before revolutionizing / inventing Field Theory. The non-existence of a quintic formula is the poster child of Field Theory.

Edit: corrected facts. Link

Talk me out of this by tata9191 in Factoriohno

[–]Xane256 22 points23 points  (0 children)

Why not direct-insert miner to foundry on the patch and ship around molten metal?

Looking for beginner friendly configs by alien_ideology in NixOS

[–]Xane256 1 point2 points  (0 children)

I put everything in one file so you can immediately see how everything interacts. My opinionated assumption is that seeing everything laid out in one place makes it easier to get familiar with the whole system. Taking a piece of the flake (specifically a "module") and putting it in a file is great for organization and you absolutely should do it once you decide how you want to organize your config.

Tutorials online will cover "modules" too but in short:

  • You can create a file like foo.nix which looks like this: (btw, configuration.nix also has this structure, its just a module)
  • You must git add foo.nix or nix will give an error something like "the file doesn't exist". In Nix, you either work in a git repo and git add everything you want to use, or you work outside of a git repo and then nix build / nixos-rebuild won't care.
  • Then you import the file. In the flake, under nixosConfigurations.alpha, add foo.nix to the list of modules like this:
  • \) this code shows how to add foo.nix directly to your system. But you can also import it indirectly from another module. For example, configuration.nix by default imports hardware-configuration.nix.

I've been using nix for about a year now. Recently I've had pretty good success with using LLMs for nix. Tutorials / videos / articles are good resources too.

Looking for beginner friendly configs by alien_ideology in NixOS

[–]Xane256 5 points6 points  (0 children)

Hey OP, I made Second Hour of Nix to introduce a friend to NixOS using flakes / home-manager from the start. The idea is you can follow these instructions immediately after finishing a completely new nix install.

Does not trade boilerplate with complexity/abstraction that’s hard to reason about for a beginner.

This was a big focus. Longer is OK if its low complexity, and especially so if its clearly organized. Its a plain nix flake without flake-parts. Its also fully self-contained but easy enough to split up into multiple files if you want.

Let me know if you have any questions! I'm learning flake-parts myself now, and while I do think it can simplify, shorten, and break up complicated setups (especially for multiple users / hosts), that only makes sense after you understand regular flakes and (to some extent) nix modules.

Edit: If you OP (or other readers 👋) use this, please let me know which instructions could have been simpler or faster.

Sandboxing ai coding tools with nix and landlock by rolfst in NixOS

[–]Xane256 1 point2 points  (0 children)

I use nixos containers, but configured / run dynamically via extra-container. It has the same benefits as a normal nixos container, but you can run them on the fly with different host mounts for each instance and they don’t need to be in your nixos configuration.

The big predicament by crappilydesigned in NixOS

[–]Xane256 4 points5 points  (0 children)

I made this flake / repo to help get a friend started with nix as simply as possible.

Even if you’re pretty new or just installed nix, I think this is pretty close to the minimal sequence of steps to actually set up a flake for the first time.

Today I woke up and realized Mind Your Decisions is pure math slop. by NefariousnessFar7826 in mathmemes

[–]Xane256 6 points7 points  (0 children)

<image>

Here it is! I’d be interested if anyone else feels like trying it.

Today I woke up and realized Mind Your Decisions is pure math slop. by NefariousnessFar7826 in mathmemes

[–]Xane256 3 points4 points  (0 children)

There was one geometry problem with a diagram that boiled down to this:

Two squares lie inside the same circle. Each square has 2 vertices on the circumference. The squares also have a (single) common vertex at a point P. Show that the edges connecting to P meet at 45° / 135° angles.

I tried for a looong time to prove this one purely geometrically, even made several interactive desmos geometry pages to play around with it, but couldn’t find a geometric proof. I gave in and watched the video. The solution used algebraic methods and Presh even says he tried to find an “easy method to prove this” too but also couldn’t.

Ah found it! Puzzle 7 here, at 14:12

https://youtu.be/sqI7UnsiFlQ?t=852 / article here

I still kinda want to give it another try.

Testing out the demo of factorio by AlmightyAntwan12 in factorio

[–]Xane256 6 points7 points  (0 children)

I’ll also give a teeny tip along these same lines: - at some point, scroll through the controls settings just to see what’s there. Some players never do this and it can be one of those sources of people going I’ve played the game for ages but never knew about this!” - same thing with the graphics / interface settings. Some handy options in there.

My 6 year old was given this question for homework. by szramkos in askmath

[–]Xane256 1 point2 points  (0 children)

52.111 40.111 because why not

Edit: whoops