capt_zap has quit [Read error: Connection reset by peer]
capt_zap has joined #nixos
alp has quit [Ping timeout: 272 seconds]
cmk_zzz has quit [Quit: cmk_zzz]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
cmk_zzz has joined #nixos
Henson has joined #nixos
nij has joined #nixos
<nij>
Hello! New to nixOS. Just bought a new hard disk and am trying to install on a minimal interface. I'm folloing the official doc has no luck connecting to the Wifi via wpa_supplicant.. there are several trouble shoots online too. Tried.. with no luck either. Would anyone help?
<nij>
I created passwd for the default user nixos, and created a passwd for root. I logged into root, and ran `wpa_supplicant -i wls1 -c <(wpa_passphrase "SSID" "PASSWORD")`
Henson has quit [Ping timeout: 240 seconds]
<nij>
Now I get
<nij>
wls1: CTRL-EVENT-CONNECTED - Connection to 06....:53 completed [id=0 id_str=]
<nij>
But I'm still in the prompt... I don't know if I should cut the interface.
<DigitalKiwi>
error: The option `nix.buildMachines.[definition 1-entry 4].buildCores' defined in `/home/kiwi/projects/github/nix-configs/modules/distributed-builds.nix' does not exist.
<DigitalKiwi>
why's that happening now
janneke has joined #nixos
nixbitcoin has quit [Remote host closed the connection]
nixbitcoin has joined #nixos
<cole-h>
`buildCores` doesn't exist? ;)
leungbk has joined #nixos
<cole-h>
DigitalKiwi: You probably want to set `nix.buildCores` on the buildMachine itself
<DigitalKiwi>
the config used to work
ninjin has quit [Remote host closed the connection]
ninjin has joined #nixos
<cole-h>
Dunno what to tell you, except that it doesn't work now :P
<DigitalKiwi>
yeah i got that :D
<DigitalKiwi>
so did it just...not do anything before?
<cole-h>
Maybe? If you know what nixpkgs revision you were on before (assuming you updated it recently), you could use that to track it down.
<DigitalKiwi>
nixos-unstable
<cole-h>
(Note the presence of the word "revision")
<cole-h>
So it seems that previously it did nothing indeed.
<DigitalKiwi>
ah thanks
<Graypup_>
hmm I am doJailbreak'ing a misbehaving Cabal package, microlens, and it is not taking: it's still failing on a dependency version error
<jackdk>
Graypup_: the offending dep may be inside a conditional. I usually resort to patching the cabal file in such instances.
<Graypup_>
:barf:
<Graypup_>
it's base versions
<Graypup_>
>:( I guess I'll just switch back to ghc865 and stop wasting my time with this (I updated to avoid a haddock bug but if it's going to be this way I'll just turn off the bloody haddock)
<jackdk>
base versions inside a conditional? do you have a snippet?
<Graypup_>
microlens in nixos-20.03, haven't looked too much further
<Graypup_>
coolio! I should do that then, would make my files more compact
<jackdk>
I only rarely use callCabal2Nix; if I'm providing a nix shell for my own projects I tend to commit the cabal2nix'd file, and if I'm hacking on someone else's package I use developPackage, which does the callCabal2Nix for me.
<Graypup_>
yeah I've just been checking them in and leaving notes as to why they're there
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
user_0x58 has quit [Ping timeout: 260 seconds]
user_0x58 has joined #nixos
noudle has joined #nixos
proofofkeags has quit [Ping timeout: 246 seconds]
philr has joined #nixos
philr_ has quit [Ping timeout: 240 seconds]
Asmadeus has joined #nixos
simba2 has joined #nixos
simba2 has quit [Ping timeout: 256 seconds]
konobi has quit [Remote host closed the connection]
konobi has joined #nixos
cole-h has quit [Quit: Goodbye]
zupo has joined #nixos
<est31>
why isn't rustup cached on hydra?
<est31>
I downloaded it just fine
<est31>
but now updating my system, it decides to compile it
<est31>
why?
sangoma has joined #nixos
luna has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @xrelkd opened pull request #93163 → nixos/slock: make the package configurable → https://git.io/JJswQ
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol_ has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
palo1 has joined #nixos
mallox has joined #nixos
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
o1lo01ol_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
proofofkeags has joined #nixos
inkbottle has quit [Quit: Konversation terminated!]
janneke has quit [Quit: janneke quits Mes'sing]
janneke has joined #nixos
proofofkeags has quit [Ping timeout: 260 seconds]
superbaloo has quit [Ping timeout: 240 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
zupo has joined #nixos
orivej has joined #nixos
<lovesegfault>
Is anyone having trouble building glibc?
<lihram>
does anyone have experience with creating a default.nix script for their LaTeX document? I normally use tectonic to build those, but it seems to block the network connection when I run nix-build
<lovesegfault>
You can add texlive directly as a buildInput
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<lovesegfault>
Full disclosure: I have not done what you're asking, I have however made nix-shells to write latex in
<lihram>
Alright, I'll see if it skips any downloading if it has texlive locally
<lovesegfault>
Also, in the past I used latexmk and it was "fine"
<lovesegfault>
I've had a fascination with Arara but haven't had a chance to use it
ixxie_ has joined #nixos
<ixxie_>
If I have two windows of firefox (or any other program) open, do they run in distinct processes and share zero overhead?
o1lo01ol1o has joined #nixos
ixxie_ has quit [Client Quit]
<ixxie>
Trying to figure out whether its decadant to split my tabs by window :D
<lihram>
Oh, haha. You should be fine doing that
user_0x58 has quit [Ping timeout: 260 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<lihram>
Now I'm wondering why texlive is allowed to make network calls in nix-build whereas my default.nix is not
<lovesegfault>
lihram: I don't think it is
orivej has quit [Ping timeout: 240 seconds]
<lovesegfault>
Mind you, it's fine to make netcalls in the fetch phase
<lovesegfault>
otherwise nothing would ever work :P
<lihram>
Right, okay
copy has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
<maier>
I'm having trouble with sendmail on a NixOS server (first time I'm trying to use it). I did `nix-env -iA nixos.system-sendmail`, and then tried sending a simple mail to myself (same exact command worked on my macOS system). But nothing happens when doing Ctrl+D on a new blank line
<maier>
Ctrl+D itself works just fine on the server, e.g. with `cat >> foo`
<maier>
Is system-sendmail even the correct package? It contains a binary named `sendmail`, but I don't know how to debug this issue since I'm not getting any errors. I'm just stuck on that blank line.
moet has quit [Quit: leaving]
avn has joined #nixos
user_0x58 has joined #nixos
<maier>
,locate sendmail
<{^_^}>
Found in packages: exim, msmtp, quilt, ssmtp, vmime, busybox, postfix, nullmailer, system-sendmail
<immae>
maier: there are several providers for sendmail. I don’t know about system-sendmail in particular but sometimes you have to finish your e-mail with new-line + dot + new-line
smatting has quit [Ping timeout: 264 seconds]
<immae>
also, in your case you probably want to configure a "user-oriented" mailer (I think msmtp is good for that?)
orivej has quit [Ping timeout: 256 seconds]
smatting has joined #nixos
<maier>
immae: this is just a test to see where the problem lies when a Haskell package tries using the "sendmail" binary
<immae>
ah
chimay has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<maier>
immae: but thanks, I'll check out different kinds of finishing the text
<immae>
then man sendmail may give you a command line argument to add to finish with ctrl+D
chimay has joined #nixos
<maier>
immae: I'm missing (some?) manpages it seems... let me see where I can get those
<maier>
I'm also wondering why I don't have or where I could get a system sendmail binary (say in /run/current-system/bin). I'd add it to my configuration.nix then.
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<immae>
ok. In any case there are many "packages" that provide a sendmail binary (including the package named Sendmail). Usually they require to be suid (so somewhere in /run/wrappers) so it cannot "just" work with a nix-env command
<immae>
That’s if you want a fully functionnal mailer agent
alp has joined #nixos
<immae>
the easiest (I think) to configure is nullmailer, you should look at https://nixos.org/nixos/options.html for how to do it ;) (it will add the suid wrapper automatically where needed)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user_0x58 has quit [Ping timeout: 260 seconds]
<maier>
immae: thanks a lot! I hope that's then still compatible with the Haskell package
<maier>
immae++
<{^_^}>
immae's karma got increased to 21, that's Numberwang!
<immae>
you’re welcome!
<maier>
immae: The doc for system-sendmail even says: A sendmail wrapper that calls the system sendmail. Do not install as system-wide sendmail!
<maier>
I wonder what that's about though. Does that mean I should not add system-sendmail to my configuration.nix' systemPackages? And then what *is* the actual "system sendmail" referenced here?
justanotheruser has quit [Ping timeout: 256 seconds]
<srhb>
maier: All of these wrapping shenanigans is because of the potential SUID bit
<srhb>
maier: binaries in the nix store cannot have suid set, so we need to create them out-of-band with Nix itself.
thc202 has joined #nixos
<srhb>
maier: Normally, /run/wrappers/bin is on your path, so if you have a suid sendmail wrapper there, you don't need the system-sendmail wrapper
<srhb>
It is however useful as an indirection when used as a buildinput
<srhb>
Because it tries to be smart about finding the right sendmail, whether suid wrapped or not.
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
<srhb>
That way packages don't have to care about the specifics of how it's implemented, just like you don't have to care whether sendmail comes from /run/wrappers/bin or some other $PATH component, as long as it's somewhere in $PATH
avaq has joined #nixos
mariatsji has quit [Remote host closed the connection]
kreyren has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 180 seconds.]
kreyren has joined #nixos
mariatsji has joined #nixos
mariatsji has quit [Ping timeout: 258 seconds]
o1lo01ol1o has joined #nixos
claudiii_ has quit []
claudiii has joined #nixos
werner291 has joined #nixos
bahamas has joined #nixos
<bahamas>
how does nix-env --uninstall work? running it with an installed package doesn't seem to do anything: there is no output and the package stills shows up in the output of `nix-env -q`
<dminuoso>
nix-env --help also amusingly depends on nroff, but that appears to be a missing dependency
asymptotically has joined #nixos
<dminuoso>
bahamas: The query operates on the store paths that are installed in the current generation of the active profile. This is the default.
<dminuoso>
Thus, try `-qa` instead
<maier>
srhb: thanks! I didn't even know beforehand that `sendmail` wasn't just a binary but usually a wrapper around some mail "program".
__monty__ has joined #nixos
<bahamas>
dminuoso: I don't understand the difference. I would expect nix-env --uninstall to uninstall the package from the environment of the active profile. thus, it would create a new generation without the package. what am I misunderstanding?
reanimus has quit [Ping timeout: 260 seconds]
_reanimus_ has joined #nixos
mariatsji has joined #nixos
justanotheruser has joined #nixos
sangoma has quit [Ping timeout: 240 seconds]
mariatsji has quit [Ping timeout: 240 seconds]
sigmundv has joined #nixos
sangoma has joined #nixos
avn has quit [Read error: Connection reset by peer]
ixxie has quit [Quit: Lost terminal]
proofofkeags has joined #nixos
<MaksymB>
Hi! I installed NixOS on a separate partition alongside my arch linux system. I can reboot into nixos successfully, but I want to run it in a systemd container inside my host system. How would I do it? I tried to run a shell in nixos container with `systemd-nspawn -D /mnt/`. It drops me into a shell, but the whole environment hasn't been setup, so
<MaksymB>
`/run/wrappers/bin` is empty and even basic commands don't work. I also tried to run an init script `systemd-nspawn -D /mnt /nix/store/HASH-nixos-system-nixos-20.09pre234236.c87c474b17a/init`. This sort of works, but doesn't show to me any login shell after the message `[ OK ] Reached target Multi-User System`. What else can I try? Thanks.
<sangoma>
Hey guys I installed archlinux-nix and nix on my archlinux box but when I run nix-channel --update I get: warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
waleee-cl has joined #nixos
proofofkeags has quit [Ping timeout: 258 seconds]
smatting has quit [Ping timeout: 265 seconds]
<Graypup_>
sangoma, I get that too and it seems to not matter
<Graypup_>
does anyone know how to build a derivation with just some files in it?
cosimone has joined #nixos
<{^_^}>
[nixpkgs] @prusnak opened pull request #93170 → python3Packages.bip_utils: init at 1.0.5 → https://git.io/JJsMN
<sangoma>
Okay thanks :Graypup_.
<Graypup_>
I am sidestepping my derivation question by actually putting it with the package that makes most sense to stick it on
smatting has joined #nixos
MidHotaru has joined #nixos
alp has quit [Ping timeout: 260 seconds]
raghavsood has quit [Remote host closed the connection]
smatting_ has joined #nixos
smatting has quit [Ping timeout: 256 seconds]
<nij>
Help... I got my nixOS installed, but kept failing on compiling binaries I like from github. Many packages are missing.
<nij>
I manually installed those packages using `nix-env -iA gnumake gcc harfbuzz freetype fontconfig`
<nij>
But after doing that, `sudo make install` still complains about not finding harfbuzz, freetype2, fontconfig in pkg-config search path.
<ocharles>
Is there anything in nixpkgs lib to concat a list of attrsets into an attrset?
<ocharles>
Searching 'union' in both attrsets.nix and lists.nix doesn't yield anything, nor is there anything useful matching 'concat' that I can see
<Graypup_>
ocharles, hmm I'm almost certain I've seen this reading a lot of nixpkgs lib code but my memory is that of a drunk squirrel
<ocharles>
:)
<Graypup_>
anyone knowing more about the haskell builder: where do I put documentation inputs and how do I do it? just put ./whatever? or do I have to bind it to a variable?
wnklmnn has joined #nixos
Extends has joined #nixos
<Graypup_>
ocharles, recursiveUpdate in lib/attrsets.nix perhaps?
MmeQuignon has joined #nixos
detran has quit [Ping timeout: 240 seconds]
detran has joined #nixos
<dminuoso>
How do I figure out why a binary is available in my profile? Im trying to figure out how to get rid of `bundle` in my profile.
work_ has joined #nixos
<srk>
nix-env -q
j4ng5y[m] has joined #nixos
<srk>
dminuoso: mm.. for i in $( nix-env -q --no-name --out-path ); do nix why-depends $i $( which bundle ); done
orivej has joined #nixos
nikita` has joined #nixos
nixuser has joined #nixos
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
wnklmnn has quit [Quit: Leaving]
mariatsji has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
MmeQuignon has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @aanderse merged pull request #93075 → sweethome3d: improve performance by enabling OpenGL for java2d → https://git.io/JJ3ev
<ocharles>
In https://github.com/NixOS/nixops/blob/master/nix/keys.nix#L217 systemd.services is defined in terms of deployment.keys. We have an internal module that extends systemd.services with a new "secrets" attribute, which we'd like to have populate deployment.keys. If I do `config.deployment.keys = builtins.trace config.systemd.services {}` I end up with infinite recursion
<ocharles>
This makes sense - deployment.keys is defined in terms of systemd.services, but systemd.services is defined in terms of deployment.keys.
<ocharles>
But is there a solution to this? I tried using mkBefore and mkAfter on my deployment.keys definition, but that doesn't help
<dminuoso>
srk: well I wish there was better ergonomics here. I frequently end up trying to figure out really badly why something is in my profile at all.
<dminuoso>
And it would really help if the tooling could provide me with a concise answer "this comes from your configuration.nix" or "this comes from your nix-shell"
<srk>
dminuoso: keep it declarative via home-manager, nix-env -i is a bit of an anti-pattern
<dminuoso>
(Whether it's a bin or lib in my profile, or a package)
<srk>
I see
cfricke has quit [Quit: WeeChat 2.8]
<dminuoso>
Ultimately I suppose, its my own fault for not using --pure shells.
<simpson>
Somewhat. Like, yes, if you use your env less then it'll have less stuff in it; but also, sometimes packages really do have too much stuff in their closure, and when you find offenders, you can usually shrink what they propagate.
dermetfan has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @oxalica opened pull request #93176 → swapview: init at 0.1.0 → https://git.io/JJs7v
codygman has quit [Read error: Connection reset by peer]
<lordcirth>
Is there a way I can set "nix-env --list-generations", when run as root (not sudo) to show system generations by default? Or is there a better command to work with system generations specifically?
<LambdaDuck>
Is there a shorthand or common alternative in nix for avoiding a lot of parentheses when nesting many function calls? y = f (g (h (w x)))
<noonien>
hello folks
<tpw_rules>
what exactly does toPythonModule do? it's not working on a package i'm making and i have no idea what to expect
<noonien>
is there a way to get the date at which a nix derivation was created, or added to the store?
chrmb has joined #nixos
artemist has quit [Remote host closed the connection]
artemist has joined #nixos
fling has joined #nixos
<LambdaDuck>
minuser: That pull request hasn't been merged yet, so that's why it doesn't show up in the search. Is your question about how to install it directly from the PR?
<noonien>
how does the garbage collector know how old a derivation in my nix store is?
<minuser>
LambdaDuck well actually, i guess i could use this overlay that the wayfire wiki recommends: https://github.com/colemickens/nixpkgs-wayland i am trying to setup all the packages for wayland and wayfire in my configuration.nix file
<LambdaDuck>
noonien: It doesn't. It just knows how old profiles are and after it deletes old profiles, it deletes anything that is not reachable from a profile or another gc-root.
<noonien>
oh, i see
<noonien>
so there's no way to see when a devrivation was created/added to my nix store?
<lordcirth>
I have a .zip of a paid program; I seem to recall there being a recommended method of using nix-store --add, then making a custom package that uses it to make services and such. Any examples?
<{^_^}>
[nixpkgs] @worldofpeace pushed 42 commits to gnome-20.03: https://git.io/JJGTe
<noonien>
i'm trying to recover some files, that are in the nix store, but i can't tell what version is the latest
<LambdaDuck>
noonien: You might be able to look in /nix/var/log/drvs for the log of when it was built if it was built locally
<noonien>
its from a `src = ./path;`, and i think that doesn't make any logs (i can't find any)
<LambdaDuck>
noonien: If they are connected to an old profile, that might be the easiest way.
<lordcirth>
Do I use an overlay? Or somehow reference the nix-store path directly in configuration.nix ?
<LambdaDuck>
noonien: I see no reason why it wouldn't make a log in that case, but I'm not sure. The logs are in directories with the first two characters in the derivation hash.
<noonien>
yesh, there don't seem to be any logs for those specifc derivations
<noonien>
well, the output paths anyway
nature has joined #nixos
<LambdaDuck>
I see
<noonien>
should i look for the hash of the .drv that created that output instead?
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<LambdaDuck>
lordcirth: I think you could reference a local path in the overlay (without quotation marks around it) and it will automatically be added to the store. I don't know if that is the ideomatic way to do it though
<noonien>
yeah, i should have looked for the hash of the derivation, not the output path
<noonien>
is there an way to get the path to the derivation that created an output path?
cosimone has quit [Quit: Quit.]
<LambdaDuck>
noonien: There is probably a simpler way, but you could search drv files in nix store for the name of the output path
<noonien>
yeah, i did that but i was wondering if there was an easier way
<noonien>
that'll do for now though, wanted to know if there was a better way, thanks!
justanotheruser has quit [Ping timeout: 240 seconds]
orivej_ has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
o1lo01ol_ has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
minuser has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @danieldk opened pull request #93193 → rocm-runtime-ext: init at 3.5.1 → https://git.io/JJGTb
<evanjs>
something like "error: cannot read '/nix/store/194rpabwl6afnq5fn1kadqxk0n565xgb-modules/hub', since path '/nix/store/194rpabwl6afnq5fn1kadqxk0n565xgb-modules' is not valid, at /home/demo/overlay/config/modules/default.nix:10:6"
<evanjs>
I vaguely recall something about disabled modules something something
<lordcirth>
evanjs, that parses! Thanks! Since that's not the default it really should be mentioned ...
foxmitmox has joined #nixos
<evanjs>
yeah there are plenty of cases where I wonder about stuff in the docs, but in this case, you have to import something into scope if you want to use it, etc
<tpw_rules>
its build setup is pretty awful and i'm having trouble expressing it to nix
<evanjs>
Oh boy... I sense a big one here
sangoma has quit [Quit: WeeChat 2.8]
<evanjs>
something like tensor or OpenCV in terms of size, from a first glance?
<tpw_rules>
sort of. but as both a blessing and a curse, it builds almost all the libraries it needs itself
<fabianhjr>
Quick question, I am trying to launch obs-studio with extra deps by using `nix-shell -p fftw` and running it on a terminal to see what is going on. There is a log entry that reads: `error: os_dlopen(/home/fabian/.config/obs-studio/plugins/spectralizer/bin/64bit/spectralizer.so->/home/fabian/.config/obs-studio/plugins/spectralizer/bin/64bit/spectralizer.so): libfftw3.so.3: cannot open shared object file: No such file or directory`
<tpw_rules>
so i've got it and the python module building after much consternation. but i don't know how to install it
ml| has joined #nixos
fabianhjr has quit [Read error: Connection reset by peer]
mariatsji has joined #nixos
<evanjs>
tpw_rules: have you defined an installPhase or etc?
<tpw_rules>
the way they support is you just make install-python or whatever and it writes directly to your python packages
<evanjs>
or did you mean installing the expressoin
<tpw_rules>
site-packages
fabianhjr has joined #nixos
<tpw_rules>
which it can't here because they are read only
<fabianhjr>
sorry, client crashed.
<fabianhjr>
Anyways, I can see with nix-locate that fftw does have that dynamic library file: `fftw.out 0 s /nix/store/a7rxcqh36z1n00600d156h4nh83k1mi2-fftw-double-3.3.8/lib/libfftw3.so.3`
<fabianhjr>
so I am at a loss on how to proceed.
proofofkeags has quit [Ping timeout: 264 seconds]
<jackdk>
fabianhjr: you'll have to make the loader aware of that file. I have to run out the door sorry but that dir needs to be in LD_LIBRARY_PATH one way or another, or you might be able to patch the spectralizer.so to make it aware of that dir.
inquisitiv3[m] has joined #nixos
inquisitiv3[m] is now known as inquisitiv3
mariatsji has quit [Ping timeout: 264 seconds]
karakedi has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
orivej has joined #nixos
<fabianhjr>
thanks jackdk, will go from the LD_LIBRARY_PATH pointer. :3
zupo has joined #nixos
captn3m0 has quit [Ping timeout: 246 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
captn3m0 has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<fresheyeball>
I am trying to do a nix build inside a docker container, that makes a docker container
<fresheyeball>
can I build a docker container with nix, without kvm?
<evanjs>
hrmm.... cargo test seems to be ignoring my skipping of tests lol
<colemickens>
that builds a docker image tar.gz using a nix-build inside a nixos/nix container. I think that's what you're looking for.
<evanjs>
erm, and feature flags? what?
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
fresheyeball has quit [Ping timeout: 240 seconds]
tru_tru has quit [Ping timeout: 256 seconds]
fresheyeball has joined #nixos
<evanjs>
I was hesitant to put test flags in cargoBuildFlags, but I guess that might be required?
<evanjs>
Should have the same effect in this case, anyway
<evanjs>
(flag is offline_tests)
stevenxl has joined #nixos
dingenskirchen has joined #nixos
KarlJoad has joined #nixos
alp has joined #nixos
<KarlJoad>
What is the "standard" naming convention for nix files for a project?
<infinisil>
KarlJoad: I personally only make sure that the default.nix can be built with just `nix-build`, and everything else be exposed with attributes under it
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<infinisil>
Maybe have a separate ci.nix file for CI too
mariatsji has joined #nixos
<infinisil>
(which wouldn't be called by people)
<KarlJoad>
So default.nix should allow a full `nix-build` and a shell.nix for a `nix-shell` environment?
knupfer has quit [Client Quit]
<infinisil>
Ah yes, shell.nix for nix-shell too
knupfer has joined #nixos
<KarlJoad>
This project won't have CI handled by Nix, so that's not a problem.
knupfer has quit [Client Quit]
<infinisil>
But yeah, default.nix for `nix-build` and shell.nix for `nix-shell`
<KarlJoad>
infinisil: Gotcha. Thanks!
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
silver has joined #nixos
seku has quit [Quit: Connection closed]
codezero has quit [Quit: Ping timeout (120 seconds)]
<tpw_rules>
evanjs: i'm not sure how to get installing a wheel to work correctly when building. other packages do it, but i don't know how. it's just like magic
codezero has joined #nixos
<ixxie>
anybody know much about Arion?
averell- has joined #nixos
averell has quit [Ping timeout: 258 seconds]
averell- is now known as averell
mariatsji has quit [Ping timeout: 240 seconds]
<fabianhjr>
fresheyeball, i dont use kvm. You just need nix
gustavderdrache has quit [Quit: Leaving.]
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 265 seconds]
civodul has joined #nixos
hololeap has joined #nixos
<hololeap>
would anyone here be willing to give me a short compare/contrast between nix and gentoo?
<hololeap>
*nixos
<KarlJoad>
hololeap: NixOS is a GNU/Linux distribution that uses the Nix programming language to describe the desired state of the system.
<simpson>
There's a bit less compiling, a bit less configuration, and a lot less USE flags.
<KarlJoad>
To build the system, Nix expressions are evaluated. In projects, this means you would download dependencies and build them manually. However, because of the way Nix works, as a functional language, if the input is the same, the output should be the same.
<simpson>
I don't miss *anything* about Gentoo, FWIW, other than tools like `keychain` which came out of the Gentoo development community. (And which we have packaged in nixpkgs!)
<KarlJoad>
Thus, if the input to your system package is the same as what the build server uses, then you download the already-compiled binary.
<evanjs>
tpw_rules: did you check the buildPythonPackage internals or similar projects, like OpenCV or Tensorflow, etc?
<evanjs>
I wonder if you could just use buildPythonPackage for the python part of it or etc
<nature>
Do you necessarily need to reboot after doing a nix-rebuild or if not when is it required ? I just saw a videos with someone saying that you should reboot after a nix-rebuild and find is really strange
<tpw_rules>
the problem with buildPythonPackage is that the python package doesn't exist until the rest of the project is built. you can't just run setup.py on a fresh copy
<Yaniel>
you don't have to reboot after `nixos-rebuild switch`
<Yaniel>
except for some stuff like updating the kernel
<Yaniel>
but some services may get confused if you don'
<fabianhjr>
nature: you dont have to reboot but things like kernel / things loaded once during boot wont hotswap
<Yaniel>
t
<nature>
okok so like when I do pacman -Syu, that video was confusing.. makes more sense now thanks Yaniel and fabianhjr :)
knupfer has quit [Quit: knupfer]
stteevveen has joined #nixos
<Yaniel>
there is also `nixos-rebuild boot` which is what I mostly use
knupfer has joined #nixos
<nature>
what does it do ?
<fabianhjr>
will switch links on next boot
<Yaniel>
it changes the configuration you will boot into next time
<hololeap>
thanks simpson, KarlJoad ... although it seems like it would be less customizable without USE flags
<Yaniel>
without touching the current running one in any way
stteevveen has quit [Remote host closed the connection]
<hololeap>
or are you just saying there are _less_ USE flags (or their equivalent)
<nature>
ok so this means that literally nothing changes until you reboot ?
<simpson>
hololeap: I'm saying that, rather than USE flags, which are cross-cutting, most packages are configured ala carte. Additionally, there's only one single systemwide configuration file, /etc/nixos/configuration.nix, which declares the layout of the entire system.
lsix has quit [Quit: WeeChat 2.8]
<fabianhjr>
nature: yeah
<ixxie>
hololeap: there is also an elaborate configuration option system that allows you to centrally manage a lot of settings through your configuration files
<nature>
nixos is really awesome, so far I love it, gonna play around a bit more in my VM and will probably switch to it on my laptop :)
<nature>
also out of curiosity what is the footprint of a minimal nixos install ?
<ixxie>
hololeap: I didn't go too far here, because I use home-manager to configure my user environment declaratively: https://github.com/ixxie/dotfiles
<ixxie>
hololeap: and this is just the basics, you can go very far with this
<nature>
fabianhjr: Thanks, I thikn I may be falling in love haha and the community is really great and very helpful so far :D
<colemickens>
andronig: you can make a standalone nix file like the example in the README and then add to to imports = [] in one of your config files.
<colemickens>
andronig: or you can merge it yourself into one of your existing files
<andronig>
so i could make a standalone nix file, then import it into say configuration.nix?
<fabianhjr>
Yeah, my configuration.nix does that: `imports = [ ./hardware-configuration.nix ./cachix.nix ];`
<andronig>
ok so cachix is an overlay
<andronig>
in ur example
MmeQuignon has quit [Quit: WeeChat 2.8]
<simpson>
andronig: No, it's `nixpkgs.overlays`, and not `imports`, that controls overlays.
<simpson>
Or maybe I didn't read carefully enough and you're grabbing the nixpkgs-wayland overlay built from Cachix?
<colemickens>
simpson: the nix file andronig is being encouraged to import sets nixpkgs.overlays.
<colemickens>
(or adds to it, as it were)
<andronig>
sorry, im a bit confused. so after i add and modify the .nix file, how do i make the configuration.nix aware of it. but before that i need to add cachix to imports and that's all i do to setup cachix?
<mightybyte>
NinjaTrappeur: I did some more work on Zeus today. Fixed a few bugs that snuck through and added support for the GitHub status API. So now you'll see proper red/green status on GitHub PRs.
<mightybyte>
It should be in a pretty usable state.
<colemickens>
andronig: I think we had you on the right track.
<colemickens>
andronig: if you write a ./wayland.nix next to configuration.nix, then you can add `./wayland.nix` to the ` imports = [ ... ] ` section of your configuration.nix and it should do what you want.
<colemickens>
and wayland.nix contains the chunk from the README.md.
karakedi has quit [Remote host closed the connection]
<andronig>
weird, Yaniel it still gives me issues when i rebuild the configuration. im installing wayfire and it was complaining about the meson version so i updated it, but it still complains about having the old version
<andronig>
bqv oh idk, i just attribute attributes to oop languages, i thought nix was a scripting lingo
sigmundv has quit [Read error: Connection reset by peer]
<Yaniel>
ah, yea the overlay wouldn't know about things you install with nix-env
<bqv>
it's neither
<andronig>
ohh
<bqv>
it's a poorly typed functional language
<andronig>
and alright
sigmundv has joined #nixos
<colemickens>
I was afraid of this :(
detran has quit [Ping timeout: 240 seconds]
phreedom has quit [Remote host closed the connection]
<andronig>
yaniel, how can i update the .nix file to use the unstable channel
phreedom has joined #nixos
proofofkeags has joined #nixos
<bqv>
imperative nix usage; not even once.
<colemickens>
andronig: the problem is that nix-env reads and the nixpkgs component from NIX_PATH..
<colemickens>
andronig: which, if you followed the instructions we discussed, won't really know about your overlay.
<colemickens>
For that, someone else will have to jump in, or you'll have to consult the Overlays page on nixos.wiki.
dermetfan has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 256 seconds]
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @sikmir to master « routino: enable on darwin (#93085) »: https://git.io/JJGZ8
<{^_^}>
[nixpkgs] @dotlambda merged pull request #93085 → routino: enable on darwin → https://git.io/JJ3Cm
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
fabianhjr has quit [Quit: Leaving.]
__monty__ has quit [Quit: leaving]
anderslundstedt has quit [Quit: leaving]
Cale has quit [Read error: Connection reset by peer]
vykook has quit [Ping timeout: 258 seconds]
anderslundstedt has joined #nixos
<andronig>
colemickens im in a weird situation because im trying to install the overlay itself
Cale has joined #nixos
<andronig>
so obviously nixos wont be able to see it
<colemickens>
andronig: the overlay just provides packages on top of nixpkgs.
<colemickens>
Unfortunately there are many ways to view nixpkgs.
orivej has quit [Quit: No Ping reply in 180 seconds.]
<colemickens>
from nixos-rebuild, when it loads configuration.nix, it knows how to use the overlay.
<colemickens>
but nix-env doesn't know about the overlay, so any `nix-env` command won't work.
<colemickens>
tbh, it'd really just be easiest if you put it in your system packages and install it that way and remove it from nix-env for now.
<andronig>
how do i do that
<colemickens>
Or like I said, go the other route for utilizing hte overlay, which by default will make it visible to nix-env or both.
<andronig>
oh wait
<andronig>
you mean like
o1lo01ol1o has quit [Remote host closed the connection]
<andronig>
make everything unstable?
orivej has joined #nixos
o1lo01ol1o has joined #nixos
<colemickens>
andronig: If you mean that it will apply the overlay system wide, yes. In theory it could be somewhat destabilizing.
<colemickens>
I've not really heard of issues.
dingenskirchen has quit [Remote host closed the connection]
<colemickens>
(In the future, it is possible to just pull individual packages from it.)
<andronig>
t
dingenskirchen has joined #nixos
<colemickens>
But, the Overlays page in the wiki covers the scenario of how to make the overlay available to nix-env (and you can then choose whether to also use it system-wide).
<colemickens>
But I don't use nix that way, personally, so its hard for me to advise on.
<andronig>
"~/.config/nixpkgs/overlays.nix"
<andronig>
i have to add it there i guess
mallox has quit [Quit: WeeChat 2.8]
KarlJoad has quit [Quit: ERC (IRC client for Emacs 26.3)]
<colemickens>
Yes, you're headed in the right direction
erasmas has quit [Quit: leaving]
justanotheruser has joined #nixos
<tpw_rules>
how can i use a glob in a src for mkDerivation? i've finally got this python thing working, but i need to do src="${theotherpackage}/path/*.whl" to install the wheel using buildPythonPackage
o1lo01ol1o has quit [Ping timeout: 272 seconds]
tru_tru has quit [Ping timeout: 240 seconds]
<tpw_rules>
i can't know the wheel name ahead of time and i can't set it to a fixed name
oida has quit [Remote host closed the connection]
oida has joined #nixos
andronig has quit [Read error: Connection reset by peer]
andronig has joined #nixos
tru_tru has joined #nixos
mariatsji has joined #nixos
tru_tru has quit [Ping timeout: 246 seconds]
cr4y1 has quit [Remote host closed the connection]
orivej_ has joined #nixos
cr4y1 has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
cr4y1 has quit [Remote host closed the connection]
mariatsji has quit [Ping timeout: 258 seconds]
cr4y1 has joined #nixos
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<bbigras>
sway is outdated! distro literally unusable.
foxmitmox has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
chrmb has quit [Read error: Connection reset by peer]
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
mariatsji has joined #nixos
chrmb has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
cr4y1 has quit [Remote host closed the connection]
mariatsji has quit [Ping timeout: 260 seconds]
cr4y1 has joined #nixos
<mica[m]>
bbigras: so update it?
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
pamplemousse has quit [Ping timeout: 246 seconds]
<bbigras>
mica: I was joking.
tru_tru has joined #nixos
philr has joined #nixos
lunik1 has quit [Quit: :x]
andronig has quit [Read error: Connection reset by peer]
codygman has quit [Ping timeout: 260 seconds]
Rusty1 has joined #nixos
ixxie has quit [Quit: Lost terminal]
lunik1 has joined #nixos
codygman has joined #nixos
Shados has quit [Read error: Connection reset by peer]
Shados has joined #nixos
Fulgen has quit [Ping timeout: 260 seconds]
<colemickens>
oh no it is me
Fulgen has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<jneplokh>
I was going through the logs and saw some people had issues with Nix Options failing to load, and now I am having a similar issue with Nixpkgs, but only on Chrome/Chromium. Safari loads it
<jneplokh>
These are the logs I am referring to. One of them is more recent, is there a way to further diagnose and see if it is an issue with my browser?
<jneplokh>
raghavsood, did you ever solve it?
Fare has joined #nixos
<{^_^}>
[nixpkgs] @veprbl opened pull request #93203 → arrow-cpp: fix darwin build by linking against libzstd_static → https://git.io/JJGWK
mbrgm_ has joined #nixos
<Fare>
I have an idea to improve the nix docker image: have a parameter for a number of lone packages at the end, and all the other packages will be equidistributed in the remaining packages (out of 99 by default, 125 max).
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm_ is now known as mbrgm
<Fare>
Right now, my image has ~177 packages, and the ~78 last ones make a big ~750MB layer (uncompressed)