<samueldr>
anyone has experience or any notes about using Nix without having Nix installed... thinking e.g. a docker container
<samueldr>
the use case would be to give the ability to "Nix phobic" contributors to a project to be able to build it without involving Nix on their main system
<ldlework>
samueldr: that nix can just be installed along side apt or brew has pretty much worked for me in salespitching
<samueldr>
btw, I know there's an official Nix docker image, I know we can build custom docker images
<samueldr>
ldlework: assume it won't :)
<ldlework>
what would a person even do with a nix container
<ldlework>
install like emacs and then be like "i guess it can install packages" :D
<samueldr>
heh
<samueldr>
it is not for using Nixpkgs, it's for a project where Nix is used as the tooling, but outputs are "independent from the store"
<ldlework>
I think a well-made simulator would be more useful
<samueldr>
a nix-build produces artifacts that are in no way attached to the nix store
<ldlework>
But Docker had insane marketing success thanks to a well-made simulator a coworker made early on.
<samueldr>
ah
<samueldr>
it's not about selling nix
<ldlework>
You mentioned getting nix phobic people to try it.
<samueldr>
it's about allowing contributors to "just run the build" without caring much about having Nix on their system
<ldlework>
contributors to nix that don't haven nix?
<samueldr>
"it" was "my project" not Nix
<ldlework>
you mean like, submitting packages to nixpkgs that you've only ever tested in a container?
<samueldr>
nope
<samueldr>
let me retry
<ldlework>
samueldr: I'm confused!
xcmw has joined #nixos
<ldlework>
haha
<samueldr>
>> the use case would be to give the ability for "Nix phobic" contributors to a project (https://github.com/Tow-Boot/Tow-Boot) to be able to build the project without having to install Nix on their main system
<samueldr>
it *may* also have value for windows users and maybe even macOS
<ldlework>
samueldr: a container seems like a good use-case for that, minus the fact that developing anything out of a container is a horrid experience.
<ldlework>
like, if the dev tools are in there too
<ldlework>
i hate that
<samueldr>
right, limited to building
<ldlework>
sounds like a sensible choice then
<samueldr>
maybe at some point some form of "give me a dev dir" helper to
<samueldr>
too*
<samueldr>
like, "I know how to manage my compiler, just give me the source it would build with"
superherointj has joined #nixos
<samueldr>
but that's irrelevant to this discusssion :)
<ldlework>
i mean it's definitely better than nothing, if potential bug fixers or whatever wont bother to do anything but type out the fix
<samueldr>
really the idea is that if you have a board, but don't use Nix, don't care for it, but don't mind running a docker container, you can "just" run the build using that
<samueldr>
(and hopefully later make them a convert, but that's another discussion)
<samueldr>
so yeah, anyone has had experiences, good and bad, and/or notes? :)
<samueldr>
I'll end up looking into it *anyway*, so it's not like it's blocking me
<samueldr>
>> hash mismatch in fixed-output derivation
<superherointj>
Yes, but how come that?
<samueldr>
`leaveDotGit = true;` could be the culprit
<samueldr>
it is known to be not-really-fixed-actually
<samueldr>
given it also fails on x86_64 with a hash mismatch, there is likely to be a hash mismatch here
<clever>
once the x86 hydra builds that, the tainted x86-based $out will be in the public cache, and the aarch64 builders will just fetch it, and mask the problem
<samueldr>
clever: probably irrelevant though
melg8 has quit [Quit: Connection closed]
<clever>
ah, it could also be version related, or even time related
<samueldr>
but yes, that's how leaveDotGit looks like it works in the end
<samueldr>
by luck the derivation has been saved in the cache
<samueldr>
superherointj: try without leaveDotGit, and with fetchFromGitHub
<clever>
if .git is missing, it wil default to DRONE_COMMIT and DRONE_TAG i think
<clever>
so if nix sets those 2 vars, it will still report the version it was built from
rajivr has joined #nixos
h0m1 has quit [Ping timeout: 276 seconds]
h0m1 has joined #nixos
est31 has quit [Ping timeout: 240 seconds]
est31 has joined #nixos
<superherointj>
Thanks for the ideas. I'll investigate this tomorrow. (Too late here. Too tired also.) I have pasted our conversation on the issue. I hope you don't mind.
<euank>
superherointj: thanks for making that PR btw! I've wanted to get rid of the leaveDotGit for ages on that, and just never had the time.
<euank>
The non-deterministic hash has hit me before, and I figured we'd end up patching the `git` dependency out of scripts eventually. Happy to help with that if you want
<superherointj>
euank, I would appreciate your help on this. If you suggest the needed changes on the PR, that can speed up things.
<euank>
I'll give it a look in a bit
<superherointj>
euank, as it is too late here, I might answer in 8hrs if you don't mind. :)
<euank>
Absolutely, no worries. I'm in PST, so it's still early evening for me.
<euank>
One more silly idea I've thought about before is making a sorta "mock git" wrapper, which is added to the path as git and can respond to things like `git rev-parse HEAD` or `git describe` correctly for the current commit.
<euank>
That seems like it could be a more generic way to solve this problem than patching out build scripts that use 'git' just to check what tag you're building etc.
<euank>
But for each individual build, it seems much easier to just patch the build process itself, and that's probably the "more correct" thing to do anyway. I think updating the build to not depend on git is the right thing here too.
<euank>
Just sorta throwing the "mock git wrapper" idea out there in case someone else has either thought about it before, or built it
<justanotheruser>
how can I determine which options impact dependency selection? I assume there are cases in which the attribute set of a package alone doesn't determine dependencies, for example perhaps in some cases the dependency is determined by kernel version. Basically, I'm trying to find all permutations of dependencies a package can have.
<dminuoso>
I dont think there's a generic solution for that, justanotheruser.
<dminuoso>
Intuitively that seems like the halting decision problem.
<dminuoso>
Consider, that in some cases some of these options are even under user control.
<justanotheruser>
dminuoso: you mean the user overrides the package?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
Consider a simple example of programs.java.package
<dminuoso>
At any rate, such a generic solution seems like it would require solving the halting problem.
<hyper_ch4>
hmmm, I have one public ipv4 and nat and two different servers.. each one should listen to a specific domain. On my router I do port forward 443 tcp to nixos where I'm trying to setup a reverse nginx proxy. I do have entries as vhost for each domain but I only get 500 from nginx
<hyper_ch4>
anyone can look at my setup?
<Kritnich>
hyper_ch4: relevant config and nginx log as paste and I can take a look, omit sensitive data if there's any
<justanotheruser>
Is there documented best practices on abstracting away a programs actual configuration file?
konobi has joined #nixos
<derjohn_mob>
Q: when I do nixos-rebuild --switch then I get global (root) package updates ...... for user (security) package update each user has to do this on his own?
Mysterio` has joined #nixos
<derjohn_mob>
currently my "unstable" newest release caused a compilwe run .... is that, when a release is new and there is no repo cache yet?
<dminuoso>
Given `$ nix-build '<nixpkgs>' -A firefox` Im trying to consult the nix-build manual page, but I cant seem to find documentation on that first argument.
<derjohn_mob>
thibm, Thx. Is there a something around, that writes the package requirements to the configuration.nix ? like "nix-package --add-global or so.
<thibm>
derjohn_mob: not that I am aware of
<thibm>
derjohn_mob: that is in fact not easy to do, and IMHO would not be a good idea. It would prevent users to understand how NixOS works.
<derjohn_mob>
thibm, well, with nix-env you do not have to edit a "package list file". It's just annoying, to edit a single file and it will bloat a little, if I put some 100 package in that list. Should I go for some include file for packages in that file? Is there a best practice?
Izorkin has joined #nixos
azrdev has joined #nixos
mlen has quit [Ping timeout: 268 seconds]
<manveru>
derjohn_mob: i did something like that a while ago... basically writing a json file of package names and then just reading that and selecting its packages
<thibm>
derjohn_mob: there are several ways to install packages, use the one your more comfortable with.
<azrdev>
I'm running spotifyd on a headless raspberry, and I'd like to play/pause [/skip/volume+/vol-/toggle shuffle] its playback from other devices without needing a spotify client there. the way to go seems to be spotifyds' mpris interface + sth like playerctl, but mpris requires a dbus session bus, which is not spawned because I have no graphical/DE session
beertoagunfight has joined #nixos
<azrdev>
so: does anybody have a recipe for a dbus session bus on a headless box?
<derjohn_mob>
hmmm .... can I simply add .nix file to /etc/nixos/... ? Will all .nix files there be processes automatically?
<manveru>
derjohn_mob: no, but you can import them
<sterni>
dminuoso: here is usually fine or on the nix discord, of the haskell mantainers I am most active here I think, feel free to ping me here as well :)
<sterni>
do you have any specific question right now?
<dminuoso>
Well I was merely wondering how to change the optimization level for a particular package. I generate it via callCabal2nix
jgt_ has quit [Ping timeout: 246 seconds]
<sterni>
dminuoso: I would have to look up how you do it exactly, but I presume via a configure flag passed to cabal? you can use haskell.lib.appendConfigureFlags for that
derjohn has quit [Ping timeout: 260 seconds]
<dminuoso>
Uh heh. a configure flag, now this spoiled me has to figure out what this ancient incantation even does.
<sterni>
theoretically haskell.lib.appendConfigureFlags (haskellPackages.callCabal2nix …) [ "my-flag" ] should work for that purpose
aj__ has joined #nixos
<sterni>
if you want to change more stuff around you may want to look at haskell.lib.overrideCabal
beertoagunfight has quit [Ping timeout: 268 seconds]
fendor has quit [Quit: Leaving]
<dminuoso>
sterni: I see, presumblaby I can then just append "--ghc-option=-O2"#
<dminuoso>
Cheers!
saschagrunert has quit [Remote host closed the connection]
saschagrunert has joined #nixos
derjohn_mob has joined #nixos
derjohn has quit [Ping timeout: 252 seconds]
ahmedelgabri has quit [Ping timeout: 250 seconds]
derjohn has joined #nixos
beertoagunfight has joined #nixos
derjohn_mob has quit [Ping timeout: 240 seconds]
derjohn_mob has joined #nixos
derjohn has quit [Read error: Connection reset by peer]
MysteriousSilver has joined #nixos
Harry19 has joined #nixos
janneke has joined #nixos
<MysteriousSilver>
Hi! Currently learning nix-pills, in node working-derivation, what does the builder.sh do?
derjohn has joined #nixos
ArdaXi_ has joined #nixos
zupo has joined #nixos
monotux has joined #nixos
<t_unix[m]>
it seems the derivation `libvpx-1.7.0-armv7l-unknown-linux-gnueabihf` is broken. It fails to link "its own" objects. An example: `vpx_dsp_rtcd.c:(.text+0xe08): undefined reference to `vpx_avg_4x4_neon'`
<t_unix[m]>
I could not find an issue that describes this behavior.
derjohn_mob has quit [Ping timeout: 252 seconds]
cocreature has joined #nixos
ahmedelgabri has joined #nixos
<t_unix[m]>
or am I subject to "You are doing it wrong"? Is there some build server that continously (cross) builds every (default repository) derivation I can cross check?
justan0theruser has quit [Ping timeout: 276 seconds]
justanotheruser has joined #nixos
ahmedelgabri has quit [Ping timeout: 260 seconds]
derjohn_mob has joined #nixos
mlen has quit [Ping timeout: 252 seconds]
zupo_ has joined #nixos
derjohn has quit [Ping timeout: 260 seconds]
S0rin_ has joined #nixos
mlen has joined #nixos
zupo has quit [Ping timeout: 265 seconds]
S0rin has quit [Ping timeout: 240 seconds]
<exarkun>
Why don't I get a .git with fetchFromGitHub?
melg8 has quit [Quit: Connection closed]
<philipp>
It loads an archive of a revision, not the entire repository.
beertoagunfight has quit [Ping timeout: 240 seconds]
phalrax has joined #nixos
<phalrax>
Hi, anybody using alertmanager and could provide their config as a sample? not sure where I'm supposed to define the actual alerts services.prometheus.globalConfig?
MinceR has joined #nixos
HenrikK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AWizzArd has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
Harry19 has quit [Quit: Connection closed]
<philipp>
exarkun I don't think there is a fetcher that does this. What problem are you trying to solve?
<exarkun>
without knowing its own version, it fails its test suite. even if I were to skip the relevant tests, then another application that interacts with it checks its version and refuses to operate if it doesn't like what it sees. :/
<sterni>
exarkun: another viable option is to patch that stuff in manually
arjen-jonathan has quit [Ping timeout: 245 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
MysteriousSilver has quit [Ping timeout: 250 seconds]
<MysteriousSilver>
Hi! Can someone explain what `with (import <nixpkgs> {});` does? I understand the 'import nixpkgs' part, but why the empty brackets?
<dminuoso>
MysteriousSilver: thats a function application
<dminuoso>
i.e. the result of `import <nixpkgs>` is applied to an empty attrset
<dminuoso>
You can configure a couple things about it, like set overlays. Or you just keep everything at its default (and specify an empty attrset)
<MysteriousSilver>
Ya, now I get it
<MysteriousSilver>
thanks
kidbuu has joined #nixos
ahmedelgabri has joined #nixos
<dupon1>
Hi, I'm trying to package an application and the `fetchurl` always 404 but it works when I'm doing it manually. It tells "error: cannot download <PACKAGE> from any mirror". My google-fu and duckduckgo-fu give me no answer about fetchurl and 404
<pennae>
wondering how hard it would be to build a Thing that wraps a derivation such that every binary, when called, runs in a sandboxed with isolated $HOME and whatnot
gustavderdrache has joined #nixos
<maralorn>
pennae: There are pushes to do systemd hardening for nixos handling.
<maralorn>
pennae: And yeah, I think it’s totally possible.
<pennae>
maralorn: thinking about stuff like minecraft
<pennae>
maybe if we're bored enough we'll try. would be neat to have done in two weeks
<maralorn>
I am totally not an expert. Isn‘t bubblewrap a tool for this?
<pennae>
yup! we have a script that calls bubblewrap with appropriate arguments. missing: a derivation wrapper that automatically applies that script to all binaries in /bin
<pennae>
should be doable, but would have to also allow for sandbox joining eg for browsers
zupo_ has quit [Remote host closed the connection]
<pennae>
or just give up on the idea and use firejail instead. :/
<MysteriousSilver>
I'm currently learning nix-pills, node generic builder. Running `nix-build` returns an error saying `/nix/store/...-builder.sh: No such file`. What do i do?
<legendofmiracles>
Question, the readme of nixpkgs says it only has 60k packages but the package searcher says it has 80k, should that number be updated?
<Frosku>
What's the nixos way to install pip packages?
kidbuu has quit [Quit: kidbuu]
rtjure has quit [Quit: Leaving]
<simpson>
Typically, we don't. We can't directly import metadata from PyPI as it's not rich enough, so we have to hand-maintain hundreds of package descriptions. However, the Pareto principle applies, and we have "most" of the packages you'll want.
<simpson>
FSVO "most". And of course you can create a virtualenv from `pythonPackages.virtualenv` and use the pip in there. `python3Packages`, `pypyPackages`, etc. let you pick the interpreter.
stree has quit [Ping timeout: 252 seconds]
avaq has joined #nixos
fendor has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
<dupon1>
still trying to package an application but libraries bundled in the DEB file are discarded at the end of the of the installPhase. I am missing something or I can prevent this behaviour?
ddellaco_ has joined #nixos
<simpson>
It's up to you to copy what you want into $out during installPhase.
<simpson>
dupon1: Oh, it's unfree. Sorry, I can't test the build right now. But I don't see anything wrong, unless `cp -R` has quirky behavior I don't know about.
<simpson>
Maybe one of the post-install phases does something?
<dupon1>
simpson: yes it's unfree T_T (doing my best to stay on NixOS at work). With vebosity enabled I notice it's copied but I everything is shrinked and `strip` is ran
<{^_^}>
[nixpkgs] @iosmanthus opened pull request #122595 → vscode-extensions: remote-ssh acquires user's home directory from `/etc/passwd` → https://github.com/NixOS/nixpkgs/pull/122595
teehemkay has quit [Remote host closed the connection]
chessai has quit [Remote host closed the connection]
NemesisD has quit [Remote host closed the connection]
chessai has joined #nixos
NemesisD has joined #nixos
teehemkay has joined #nixos
m4ts has quit [Ping timeout: 252 seconds]
zupo has joined #nixos
m4ts has joined #nixos
orivej has joined #nixos
bahamas has quit [Quit: leaving]
Havvy has joined #nixos
isHavvy has quit [Ping timeout: 252 seconds]
Walker3R has joined #nixos
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JsfWJ
Reventlov has joined #nixos
Walker3R has quit [Client Quit]
benlyn has joined #nixos
Reventlov is now known as Guest93923
<numkem>
I'm looking to deploy nixos servers using terraform, the provider from tweag seems to do what I need but is there a way to use a ssh_config file? I need to go through a bastion server to reach the hosts
<urkk>
with `nix-build --check --keep-failed ...` I get an permission error: "error: renaming '/nix/store/...3c9-plot.drv.chroot/nix/store/...g0c-plot' to '/nix/store/...g0c-plot.check': Permission denied"
ddellaco_ has joined #nixos
<urkk>
the nix store has "drwxrwxr-t 12555 myuser nixbld" permissions
Sigyn has quit [Quit: i've seen things you people wouldn't believe. spam bots on fire off the shoulder of sigyn. i watched k-line beams glitter in the dark near the Tannhäuser Gate. all these moments will be lost in time, like tears in rain. time to /die]
domogled has joined #nixos
<simpson>
How much Nix is available on OpenBSD? It seems like we have some partial awareness of it in nixpkgs.
ahmed_elgabri has quit [Ping timeout: 245 seconds]
<qyliss>
simpson: if you're just interested in BSD in general, we're down to one remaining blocker for cross-compilation to NetBSD, and aiming for a pure native bootstrap after that
ahmed_elgabri has joined #nixos
beertoagunfight has joined #nixos
<simpson>
qyliss: I'm interested in pledge(), unveil(), Capsicum, that sort of thing. I'm willing to trade a bit of effort and time for better support on kernels that have these.
<qyliss>
and I don't think anybody's working on it, because doing cross first, and then generating binaries for a pure bootstrap is much more maintainable than trying to keep an impure native bootstrap working.
ahmed_elgabri has quit [Ping timeout: 245 seconds]
<simpson>
Makes sense. What's required for Nix to self-host on a new kernel? C++ and Rust?
<qyliss>
don't think rust is required for stable nix
<qyliss>
C, C++, and Perl, I think
<qyliss>
last time I tried with NetBSD perl was the blocker to building Nix
<qyliss>
(the main overall blocker for NetBSD at the moment is that binaries get the wrong dynamic linker path, but that doesn't matter for cross builds, only if you actually want to _run_ the produced binaries) :P
zupo_ has quit [Ping timeout: 252 seconds]
<MichaelRaskin>
In unstable Nix Perl is not required, at least
<qyliss>
MichaelRaskin: not directly
<qyliss>
but it's in the build closure
<simpson>
Okay, cool. Personally, I need to (0) find FreeBSD-compatible hardware, (1) set up a FreeBSD machine in my homelab, (2) port Monte to FreeBSD, and possibly (3) write a Monte-on-Nix package manager, before coming back to this.
<drakonis>
hmm, interestnig.
<simpson>
Gah, I forgot #freebsd-nix exists! I was looking for channels starting with #nix-, whoops.
<qyliss>
yeah it's a bit confusing
<qyliss>
simpson: there's also been BSD talk in #nixos-exotic recently
<simpson>
Rad, thanks.
<drakonis>
wait there's a specific channel for that?
<aramend>
I'm trying to build a cabal project that uses gloss in build depends. To manage dependencies I'm doing all of this inside a flake.nix that calls cabal2nix. I'd like to add a flag for building the gloss dependency, +glfw, since I'm unable to build using the default glut choice. I can't find a way effect this at all, never mind inside my project setup. Any suggestions?
<clever>
hrnz: i think that only works if network-manager is in control
Valodim[m] has joined #nixos
<hrnz>
you can probably also use tlp to disable the powersave mode of your wifi device
gustavderdrache has quit [Quit: Leaving.]
<erich0>
@hrnz i'm using wpa_supplicant without NetworkManager
<simpson>
drakonis: I also want a pledge(). Less specifically, I want an engineering culture that is willing to adopt these sorts of capability-oriented ideas.
<apache8080>
what exactly causes the "repeated question" error when generate-config.pl runs for the kernel build? I am getting this error on a config that isn't set in my .config
fuiltilt has joined #nixos
yaoifangirl420[m has joined #nixos
sshow[m] has joined #nixos
billalive[m] has joined #nixos
sabikin[m] has joined #nixos
juanfra__ has joined #nixos
demostanis[m] has joined #nixos
axx has joined #nixos
catern is now known as catern-
dominicusin[m] has joined #nixos
cfricke has quit [Quit: WeeChat 3.1]
kevincox has joined #nixos
catern- is now known as catern
hyiltiz has joined #nixos
hyiltiz has joined #nixos
hyiltiz has quit [Changing host]
hpfr has joined #nixos
danielrf[m] has joined #nixos
emily has joined #nixos
kloenk has joined #nixos
bbigras has joined #nixos
<fuzzypixelz49>
network acting up today
LuxExUmbra has joined #nixos
Michael[m]3 has joined #nixos
AxelHanikel[m] has joined #nixos
[Kitty][m] has joined #nixos
JaakkoLuttinen[m has joined #nixos
FreeVariable has joined #nixos
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<numkem>
what would be the proper way to pass arbitrary arguments to nix-instanciate? so that I can have access to them inside the derivations (passed as argument to them)
<{^_^}>
Escape this in '' strings with: \\n\\[\\033[1;31m\\][\\[\\e]0;\\u@\\h: \\w\\a\\]\\u@\\h:\\w]\\$\\[\\033[0m\\]
<{^_^}>
Escape this in " strings with: \\\\n\\\\[\\\\033[1;31m\\\\][\\\\[\\\\e]0;\\\\u@\\\\h: \\\\w\\\\a\\\\]\\\\u@\\\\h:\\\\w]\\\\$\\\\[\\\\033[0m\\\\]
<ajshell1>
Does anyone have any experience with getting NixOS on ZFS to work with non-legacy mounted datasets? I have it set up like that now, but whenever I boot, systemd throws a hissy fit, dumps me into emergency mode, but then lets me continue on my merry way without issues after pressing ctrl+d.
<ajshell1>
cole-h: I'm relatively new to NixOS,so would I just put that snippet of code in my /etc/nixos/configuration.nix file, or what?
<cole-h>
I think all you need is to add `options = ["zfsutil"];` to your `/` and `/nix` datasets in your hardware-configuration
<cole-h>
(maybe)
<cole-h>
I've yet to attempt this, but I've done a decent amount of thinking on the topic
<ajshell1>
I'll give it a shot. Heck, I'll give anything a shot as long as it involves less work than manually changing mountpoints for all my 60-something datasets
<cole-h>
because nixos's stage 1 (or was it 2?) calls mount on all the hardware-config filesystems, you need to tell it to specify the option that `zfs mount` itself uses to allow it to work
<ajshell1>
(Also, keep in mind that I have two pools)
<numkem>
my use case is I'm working with the tweag terraform provider for nixos and it has support for keys but I'd like to have access to them to be able to pass information from terraform to nix derivations
<ajshell1>
Strangely, systemd onlythrows that error after importing my second pool.
<cole-h>
the only datasets you need to have in your hardware-config.nix is the `/` and `/nix` datasets I believe
ahmed_elgabri has joined #nixos
<cole-h>
the rest will automount because of zfs-mount.service I think
<lovesegfault>
Can someone remind me what's the right way of dealing with a package where the src I want to build is a subdir of the git repo?
<lovesegfault>
I remember there was something I could set like rootDir or something like that
<qyliss>
lovesegfault: sourceRoot
pixelfog has joined #nixos
pixelfog has quit [Client Quit]
zeta_0 has joined #nixos
<lovesegfault>
qyliss: bingo, thank you!
<qyliss>
:)
<lovesegfault>
qyliss++
<{^_^}>
qyliss's karma got increased to 144
vidbina has quit [Ping timeout: 240 seconds]
ddellaco_ has joined #nixos
<zeta_0>
I installed nixos on wsl2, and tried to install home-manager like usual, but whenever I place: `imports = [ <home-manager/nixos> ];` in configuration.nix, it throws an error: `cannot find /home/nixos, please set NIX_PATH`, why am I getting this error and how do I fix it ? I installed home-manager fine on my the nixos machines on my laptop and raspberry pi, why is this issue happening with wsl2 ?
<{^_^}>
[nixpkgs] @maralorn pushed 147 commits to haskell-updates: https://git.io/JsJar
cr4y1 has joined #nixos
ddellaco_ has quit [Ping timeout: 246 seconds]
apache8080 has quit [Quit: WeeChat 1.9.1]
<ajshell1>
what's the nix package equivalent of base-devel?
apache8080 has joined #nixos
rj has quit [Quit: rj]
<evils>
ajshell1: stdenv
tokudan has quit [Quit: Dunno.]
tokudan has joined #nixos
luxemboye has quit [Ping timeout: 240 seconds]
<ajshell1>
evils: That doesn't seem to include "make". Where do I get that?
cognemo has quit [Ping timeout: 240 seconds]
bl1nk has joined #nixos
<cole-h>
gnumake
luxemboye has joined #nixos
<ajshell1>
Thanks
cognemo has joined #nixos
<evils>
,libraries ajshell1
<{^_^}>
ajshell1: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
john2gb0 has quit [Ping timeout: 268 seconds]
<ajshell1>
*SIGH*: "/bin/gcc is not a full path to an existing compiler tool"
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #122655 → treewide: Some LLVM / bootstrapping / cross cleanups especially for consistency → https://github.com/NixOS/nixpkgs/pull/122655
john2gb0 has joined #nixos
<ajshell1>
You know what? Fuck this shit. I'm done. I'm going back to Arch.
<evils>
ajshell1: my initial answer was a bit maliciously correct, we don't install dependencies on nixos
<ajshell1>
So long and thanks for all the fish!
ajshell1 has quit [Quit: WeeChat 2.9]
<cole-h>
yikes
<evils>
ajshell1: mind if i give an honest try at helping you?
<immae>
too late I guess, you might find hime/her on #archlinux though
jgt_ has joined #nixos
<zeta_0>
so could any of you help me with my issue? ^
<cole-h>
If we could, we would
exondation has joined #nixos
<cole-h>
Unfortunately, I at least know nothing of WSL2 + Nix.
alexherbo2 has quit [Ping timeout: 240 seconds]
supersandro2000 is now known as Guest72470
Guest72470 has quit [Killed (orwell.freenode.net (Nickname regained by services))]
supersandro2000 has joined #nixos
<bourbon>
not sure you can help someone who's tryna `/bin/gcc` on nix
<evils>
i wanted to try it at least once :P
jgt_ has quit [Ping timeout: 240 seconds]
teej has quit [Quit: Connection closed for inactivity]
<zeta_0>
cole-h: it's cool, I'm happy that I was finally able to get nixos working on my raspberry pi 4, now if I could get nixos working good on wsl2, then I'd be able to use nix/nixos on my windows machine, which would be awesome, everybody at work uses windows machines, so nixos on wsl2 would be amazing.
<colemickens>
zeta_0: um, nixos + wsl2 + wslg + sway under windows
<colemickens>
like, good job microsoft, you've got me seriously considering a future where I just run windows "on the desktop" instead of linux, maybe.
<colemickens>
I don't know if anyone's actually tested it yet, but Sway should run under Weston so...
<zeta_0>
colemickens: cool, I got nixos working on wsl2, the next to things that I'm try to get working: home-manager and nixos-vscode-server, then I can have my local user packages and use nix-shell in vscode in my windows machine.
kwork has quit [Remote host closed the connection]
ahmed_elgabri has quit [Ping timeout: 245 seconds]
kwork has joined #nixos
beertoagunfight has quit [Ping timeout: 268 seconds]
<qyliss>
Is there a function for copying a single file out of another derivation (to reduce closure size) or do I have to do it manually with runCommand?
<tpw_rules>
can you not use cp ${fooDerivation}/myCoolFile?
<tpw_rules>
what command would you run with runCommand qyliss ?
civodul has quit [Ping timeout: 260 seconds]
tertl3 has quit [Quit: Connection closed for inactivity]
zeta_0 has quit [Quit: rcirc on GNU Emacs 27.1]
apache8080 has quit [Ping timeout: 265 seconds]
<qyliss>
tpw_rules: exactly that
<tpw_rules>
i don't understand why you would use runCommand to do that and not put it in a postUnpack or something?
MysteriousSilver has joined #nixos
<tpw_rules>
unless the goal is to take a file from the other derivation and make its own store path
<qyliss>
that's exactly the goal
<qyliss>
to reduce closure size
mbrgm_ has joined #nixos
<qyliss>
look at qemu-utils for an example of what I'm trying to do
m0rphism has quit [Ping timeout: 252 seconds]
<tpw_rules>
i guess your way is better if more than one package needs to use the file. anyway i'm not aware of such a function
mbrgm has quit [Ping timeout: 250 seconds]
mbrgm_ is now known as mbrgm
<tpw_rules>
i can't find the derivation for qemu-utils