this post was submitted on 06 Dec 2023
9 points (100.0% liked)

NixOS

992 readers
1 users here now

NixOS is a Linux distribution built on top of the Nix package manager. Its declarative configuration allows reliable system upgrades via several official channels of stability and size.

This community discusses NixOS, Nix, and everything related.

founded 1 year ago
MODERATORS
 

Edit: my issues came from copying source .nix configurations for the pig manager, not configurations that I would include on my computer. Finding how to include what where was much easier with search.nixos.org

Hi, I've finally cleansed my system of windows and switched fully into nix. I want to learn this OS the right way, but have ran into some noob troubles. Any help would be greatly appreciated. Ideally, these changes are things I would include in my configuration.nix

  • How to install electrum wallet on nixos? I found this default.nix for electrum and thought it would be as easy as nix-build default.nix but was mistaken. It says " cannot evaluate a function that has an argument without a value ('fetchurl') Nix attempted to evaluate a function as a top level expression" but on a later line that value is inputted to the function (if I understand right)

src = fetchurl { url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz"; sha256 = "sha256-BxxC1xVKToUjgBo4mEeK9Tdhbd/+doHcTTJsXDtaELg="; };

  • How to install KVantum Theme Manager? I was following this guide and tried to add gcc/g++ and the x11 package dependencies but I get undefined variables for the x11 libraries. Some recommend using stdenv.mkDerivations but I haven't used that much nix before so I'm not certain if I should be going down that rabbit hole
top 9 comments
sorted by: hot top controversial new old
[–] kurumin@linux.community 4 points 10 months ago (1 children)

Thank you dor addin the edit to the top. It helped me too!

[–] ComradeKhoumrag@infosec.pub 4 points 10 months ago (1 children)

Every time I help another Linux user, I grow one more hair towards my wizard beard

[–] kurumin@linux.community 4 points 10 months ago

I bet you already look like papa Marx

[–] pol@infosec.pub 3 points 11 months ago (1 children)

You'll get back to it, I'm pretty sure.

[–] OwenEverbinde@lemmy.myserv.one 4 points 11 months ago (1 children)

Yeah, going directly from Windows to NixOS is a harsh transition.

[–] ComradeKhoumrag@infosec.pub 3 points 11 months ago (1 children)

I've been running an Ubuntu base for years, but windows kept overwriting the boot loader so I finally cracked. Been wanting to switch to Debian for a while and nix seemed desirable for its functional design paradigm

[–] OwenEverbinde@lemmy.myserv.one 3 points 11 months ago (1 children)

Oh, you're coming from Ubuntu! That's a much more manageable transition.

[–] ComradeKhoumrag@infosec.pub 3 points 11 months ago

It's gonna be a long transition haha, but I've learned a lot about OSs over the years just using CLI in Ubuntu, I'm looking forward to nix as something I'll struggle with for the next few years haha

[–] OwenEverbinde@lemmy.myserv.one 3 points 11 months ago* (last edited 11 months ago)

I'm finding some details in this stackoverflow question

According to the question's first comment,

Those default arguments get filled in when you're invoked with pkgs.callPackage, but nix-build doesn't do that. –

Charles Duffy Dec 2, 2022 at 16:05

Then one of the answers says:

This worked for me:

nix-build -E 'with import {}; callPackage ./default.nix {}'

Definitely try this more complicated nix-build command.

I don't currently have a NixOS system myself, though, so I'm not really able to test it out. I switched back to Debian because it's more user friendly and I'm not quite ready for NixOS.