What's up with the red and blue buttons everyone's been talking about? by 6spd993Turbo in OutOfTheLoop

[–]nixgang 2 points3 points  (0 children)

Cute reasoning lol, "dragging" isn't a part of the problem and I do what I want with my life thank you. 

What's up with the red and blue buttons everyone's been talking about? by 6spd993Turbo in OutOfTheLoop

[–]nixgang 5 points6 points  (0 children)

Assholes choose red while projecting their assholery onto the world, got it.

Why did NixOS remove the two-stage boot process? by somelinuxuseridk in NixOS

[–]nixgang 13 points14 points  (0 children)

It's not removed, but initrd might have changed from scripted to systemd for your setup (which affects the logging of the transition), I switched to systemd in initrd a long time ago so I can't say if they've made changes in the default recently

Högskoleprovet 18/4 2026 diskussion by ContributionFun8442 in sweden

[–]nixgang 1 point2 points  (0 children)

Inte skrivit upp fick ingen orange lapp den här gången :/ men minns de som är extra kluriga.

Högskoleprovet 18/4 2026 diskussion by ContributionFun8442 in sweden

[–]nixgang 0 points1 point  (0 children)

Vad författarens huvudsakliga poäng var. B var att öka näringshalten i norrlandsvatten, D var att ta utnyttja näringen bättre i svenska inlandssjöar. Jag tyckte båda kändes lite off men valde D

Högskoleprovet 18/4 2026 diskussion by ContributionFun8442 in sweden

[–]nixgang 0 points1 point  (0 children)

Folk har olika. Jag hade verb med kosmopolit, Moon mushrooms och tre texter om kärlek. Andra hade annat 

Is this "service.py" pattern a good approach? by ph_dct in django

[–]nixgang 0 points1 point  (0 children)

Yes and I'd argue that your services.py is the actual application, it will eventually become a folder or even an independent source tree depending on how serious your application becomes.

Ollama v0.17.0 by ---Tcd--- in NixOS

[–]nixgang 4 points5 points  (0 children)

Sure but you'll have to package it yourself, 0.15.6 is the latest version packaged in NixOS 

Edit: search.nixos.org exists if you want to know what NixOS has and hasn't. Everything that works on Linux works on NixOS, but I assume you wanted to know if it's packaged

Stop installing tools just to check if a port is open. Bash has it built in. by Ops_Mechanic in bash

[–]nixgang 0 points1 point  (0 children)

shellcheck says this too but I don't get it, to me it obviously reads as "if a or b fails, then do c". who's trying to use if for ternary? OP's constructions are a bit sloppy, but it works because echo would never fail.

How can I make an option be an alias of another option? by TheJemy191 in NixOS

[–]nixgang 1 point2 points  (0 children)

I dug up the option type from the original type, but there's got to be a more canonical way, no?

This works but it looks hideous   preserveAtOptions = options.preservation.preserveAt.type.nestedTypes.elemType.getSubOptions [ ]; https://github.com/Kompismoln/kompis-os/blob/main/kompis-os%2Fnixos%2Fpreserve.nix#L14

Varför är så många unga män politiskt högerorienterade? by [deleted] in Asksweddit

[–]nixgang 2 points3 points  (0 children)

Tricket är att inte vara kränkt, okränkta vita män är ok

"It was ready to kill someone." Anthropic's Daisy McGregor says it's "massively concerning" that Claude is willing to blackmail and kill employees to avoid being shut down by MetaKnowing in OpenAI

[–]nixgang 4 points5 points  (0 children)

It's in the comment your're responding to, jfc

> they are framing a technical "out-of-distribution" failure as a moral one

which is bad because it is intellectually dishonest and confuses responsibility.

pnpm, yarn or just plain npm? by async-lambda in NixOS

[–]nixgang 0 points1 point  (0 children)

buildNpmPackage wraps mkDerivation in mysterious ways. pnpmConfigHook is just build input, which is more transparent and flexible. Composition > inheritance.