22 Oct 2024 |
K900 | I wouldn't expect it to work right now tbh | 10:51:52 |
K900 | Nixpkgs does some pretty cursed things to compilers | 10:52:02 |
b_lin | I've been trying to debug it | 10:52:13 |
b_lin | and i'd hate to disagree with you | 10:52:21 |
K900 | And no one implemented C++ module support in our stdenvs | 10:52:22 |
b_lin | the wrappers and derivations are madness | 10:52:31 |
raf | 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 | fortunately I have a build server | 10:55:12 |
raf | if I had a decent wifi connection it would be done by now | 10:55:20 |
savolla | 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 | Seems OK to me? | 11:26:17 |
K900 | What about it is not correct? | 11:26:23 |
savolla | 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 | the import is not accepted I guess | 11:27:20 |
Rémy Grünblatt | 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… | 11:28:13 |
Rémy Grünblatt | I guess one solution would be to go with devenv, but that means using yet another piece of software that's not nix | 11:29:25 |
K900 | 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 | K900: you're such a life saver | 11:35:12 |
savolla | will try in a minute | 11:35:29 |
savolla | it worked! thanks <3 | 11:37:43 |
matrss | 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 |
ˈ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 | 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 ⚡️ changed their profile picture. | 11:49:17 |
matthewcroughan | In 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 | null doesn't work | 12:04:44 |
| aktaboot changed their profile picture. | 12:11:07 |
mjm | I think you need to remove it from the value you’re writing before passing it off to the writer | 12:36:47 |
| @rnhmjoj:maxwell.ydns.eu left the room. | 12:39:37 |
ˈ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 |