!RRerllqmbATpmbJgCn:nixos.org

Nix / NixOS

3852 Members
Nix/NixOS user help channel | Latest NixOS: 24.05 (Uakari) | Ask your question here or on https://discourse.nixos.org | All NixOS rooms are moderated! Ask for help in #moderation:nixos.org659 Servers

Load older messages


SenderMessageTime
22 Oct 2024
@k900:0upti.meK900I wouldn't expect it to work right now tbh10:51:52
@k900:0upti.meK900Nixpkgs does some pretty cursed things to compilers10:52:02
@b_lin:matrix.orgb_linI've been trying to debug it10:52:13
@b_lin:matrix.orgb_linand i'd hate to disagree with you10:52:21
@k900:0upti.meK900And no one implemented C++ module support in our stdenvs10:52:22
@b_lin:matrix.orgb_linthe wrappers and derivations are madness10:52:31
@raf:notashelf.devraf I'm still not yet done "building" it :') - last time I ended up building cmake from source, thanks to having gc'd yesterday I'm doing that again 10:55:02
@raf:notashelf.devraf fortunately I have a build server  10:55:12
@raf:notashelf.devraf if I had a decent wifi connection it would be done by now 10:55:20
@savolla:matrix.orgsavolla

hi, I have multiple specializations and I import them inside my configuration.nix like this.

  specialisation = {

    minimal = {
      imports = [../modules/minimal.nix];
    };

    musician = {
      imports = [../modules/musician.nix];
    };

    gaming = {
      imports = [../modules/gaming.nix];
    };

  };

but I think this is not the correct syntax. how should I import these modules?

11:26:02
@k900:0upti.meK900Seems OK to me?11:26:17
@k900:0upti.meK900What about it is not correct?11:26:23
@savolla:matrix.orgsavolla

here's the error message:

       error: The option `specialisation.gaming.imports' does not exist. Definition values:
       - In `/home/savolla/.config/nixos/system/configuration.nix':
           [
             /home/savolla/.config/nixos/modules/gaming.nix
           ]

11:27:05
@savolla:matrix.orgsavolla the import is not accepted I guess 11:27:20
@rgrunbla:matrix.orgRémy GrünblattHey. I'd like to have a small dev server running (inside a flake), e.g. mdbook serve, what are my options ? I use shellHook right now but the main problem I'm « facing » is that when I leave the server, i'm still in the shell…11:28:13
@rgrunbla:matrix.orgRémy GrünblattI guess one solution would be to go with devenv, but that means using yet another piece of software that's not nix11:29:25
@k900:0upti.meK900
In reply to@savolla:matrix.org

here's the error message:

       error: The option `specialisation.gaming.imports' does not exist. Definition values:
       - In `/home/savolla/.config/nixos/system/configuration.nix':
           [
             /home/savolla/.config/nixos/modules/gaming.nix
           ]

It needs to be specialisation.gaming.configuration.imports = [ ... ]
11:34:36
@savolla:matrix.orgsavolla K900: you're such a life saver 11:35:12
@savolla:matrix.orgsavollawill try in a minute11:35:29
@savolla:matrix.orgsavollait worked! thanks <311:37:43
@matrss:matrix.orgmatrss
In reply to @rgrunbla:matrix.org
Hey. I'd like to have a small dev server running (inside a flake), e.g. mdbook serve, what are my options ? I use shellHook right now but the main problem I'm « facing » is that when I leave the server, i'm still in the shell…
You could make it so that nix run <flake> starts the process, then no shell is involved at all.
11:40:31
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯ (you could alternatively use exec mdbook serve or mdbook serve; exit in the shell hook, but indeed, it is better put something into packages or apps so you can nix run.) 11:45:35
@lordmzte:mzte.deLordMZTE Well in this case the flake probably packages a static website and not an application, so I don't think nix ruǹ is suitable here. I think it'd be best to perhaps install a custom command for running a dev server in the dev shell. 11:46:57
@niko:nrab.lolniko ⚡️ changed their profile picture.11:49:17
@matthewcroughan:defenestrate.itmatthewcroughanIn the nixpkgs toml writer, can I override a value to be empty and make it not end up in the resulting toml file?12:04:35
@matthewcroughan:defenestrate.itmatthewcroughan null doesn't work 12:04:44
@aktaboot:tchncs.deaktaboot changed their profile picture.12:11:07
@mjm:midna.devmjmI think you need to remove it from the value you’re writing before passing it off to the writer12:36:47
@rnhmjoj:maxwell.ydns.eu@rnhmjoj:maxwell.ydns.eu left the room.12:39:37
@julius:mtx.liftm.deˈt͡sɛːzaɐ̯ matthewcroughan: https://ryantm.github.io/nixpkgs/functions/library/attrsets/#function-library-lib.attrsets.filterAttrsRecursive Heh, I knew there was a useful function for this, but the example is exactly what you need. 12:50:03

Show newer messages


Back to Room ListRoom Version: 10