<cole-h>
niso: Do you mean it crashes? Or what. Unclear on what "closes each time the window-manager is restarted" means
<niso>
cole-h: i couldn't find any logs about crashes (running it in verbose / checking my WM-logs / journalctl / etc) - it just quits
<niso>
cole-h: if running in verbose it prints "Goodby"
<cole-h>
What keys are you pressing to restart your wm?
<niso>
Win+Q
<cole-h>
X11 or Wayland?
<niso>
cole-h: X11
<niso>
cole-h: fixed the commit message
<cole-h>
niso: Have you tried 0.4.2 yet?
<cole-h>
Because your problem sounds similar to alacritty#3188
<niso>
cole-h: i'm on it (i wanted to build it withint a nix-shell before - however i ditched that and started updating the package instead)
pjan has quit [Remote host closed the connection]
<cole-h>
alacritty is already 0.4.2 on master, so you might have a better time backporting it
<niso>
i'll submit a PR once sucessfull
<cole-h>
(updated by yours truly)
<cole-h>
If you still have the problem, you might want to file an issue against Alacritty's tracker, or even ask in #alacritty
<niso>
btw, another question: locally i refactored godot into: godot.godot-server godot.godot-client godot.godot-headless
<niso>
i assume this would be discuraged for breaking backwards compatibility?
<cole-h>
¯\_(ツ)_/¯
<cole-h>
Sorry
<cole-h>
You could always open a PR for it and see what others say.
<niso>
i'm kinda wondering in general if there are conventions for restructuring the repos in place (e.g. i find it confusing that often there is: some_tool aswell as some-tool)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfLel
Wulfsta has joined #nixos
<niso>
alright - will do once sufficiently tested. just wanted to ask incase you are aware of anything
corpix has joined #nixos
<gchristensen>
nice
<gchristensen>
oops
<cole-h>
;^)
proofofkeags has quit [Remote host closed the connection]
<Wulfsta>
Currently I'm failing 58% of the way through the build
<Wulfsta>
I see a `make: *** [Makefile:180: all] Error 2`
<cole-h>
niso: Yeah, go ahead and resolve that
<niso>
cole-h: alright, thx!
<niso>
cole-h: another question: if i version-bump alacritty, should i create a PR towards the master and ask for it to be backported? or is there a better flow?
<cole-h>
(I can't resolve my own comments, or else I would have lol)
<cole-h>
niso: Master already has Alacritty 0.4.2, because of me lol
codygman has quit [Read error: Connection reset by peer]
<cole-h>
And I don't know if we accept version-bumping backports
<pingveno>
Is there a way to remotely restart a nixos computer that has full disk encryption? I have a NixOS desktop at work that I'm remoting into and I just upgraded it, but I can't restart it because a normal restart would be stopped at the LUKS passphrase stage.
<energizer>
pingveno: sometimes people leave /boot unencrypted for that reason and initrd.network.ssh.enable
lunik1 has quit [Read error: Connection reset by peer]
lunik1 has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
dooygoy has joined #nixos
<rotaerk>
in configuration.nix, the imports attribute lets you import other configuration.nix files ... if both the importing file and the imported file set a list attribute, such as the systemPackages, does it merge the lists or does the importing file override the list from the imported file?
<gchristensen>
it does merge
<cole-h>
I believe lists get merged
<rotaerk>
hmm cool; thanks
<niso>
cole-h: 0.4.2 works, i'll submit a PR to backport it
<kini>
Does grahamcofborg have ulimits / time limits / etc.? I just opened a draft PR and thought ofborg wouldn't try to test it... given enough nix-build workers the build can take 100+ GB of RAM and a fair amount of time
gustavderdrache has quit [Quit: Leaving.]
m0rphism has quit [Ping timeout: 265 seconds]
<cole-h>
Time limits, yes. Ulimits, I dunno. Exact figures, I also dunno.
jjakob has quit [Ping timeout: 272 seconds]
<niso>
cole-h: uhm, cargo's hash changed (i'm trying to build the cherry-picked version) - this is not normal, right?
jjakob has joined #nixos
<cole-h>
There were some Rust packaging changes. I don't know if they made it into 20.03. If so, the backport becomes less simple.
<evanjs>
wait what about rust :O
<cole-h>
s/If so/If not/
<evanjs>
also, think I got the nixops thing... had to modify the _network_. derp
jluttine has joined #nixos
<cole-h>
evanjs: niso is trying to backport Alacritty 0.4.2, but the cargo hash is different between the branches because of *waves hands* packaging changes
<evanjs>
e.g. nixops modify -d <network-uuid> ./network-expression path
<evanjs>
yeah I figured as soon as I saw hash
<evanjs>
those changes should have made it in IIRC
<evanjs>
but yeah the hash will have changed
sarcasticadmin has quit [Ping timeout: 256 seconds]
proofofkeags has joined #nixos
<niso>
evanjs: if the changes made it in, why would the hash change?
proofofkeags has quit [Remote host closed the connection]
dooygoy1 has quit [Ping timeout: 258 seconds]
proofofkeags has joined #nixos
shibboleth has quit [Quit: shibboleth]
h0m1 has quit [Ping timeout: 272 seconds]
drakonis has joined #nixos
h0m1 has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
morgrimm has quit [Ping timeout: 256 seconds]
<craige>
Loved your blog post on erasing the darlings gchristensen++ - worked well at both as a high level conceptual piece and instructional. I've shared it widdely for both reasons.
<{^_^}>
gchristensen's karma got increased to 278
proofofkeags has joined #nixos
<gchristensen>
wonderful, thanks, craige!
jkachmar has quit [Quit: Connection closed for inactivity]
rogue_koder_ has joined #nixos
<Wulfsta>
How do I get the path of the package I'm building in default.nix to set cmakeFlags?
<craige>
and I expect to be re-using most if not all of your examples. It was a road I was travelling down myself. It's nice to have someone light the way, gchristensen
<cole-h>
Wulfsta: You might be looking for `placeholder "out"` (replace "out" with whatever output you're using)
<Wulfsta>
I need to do: -DELMER_INSTALL_LIB_DIR=/nix/store/${hash}-elmerfem-8.4/lib
<Wulfsta>
cole-h: I'll search it up and see if it is, thanks!
orivej has quit [Ping timeout: 265 seconds]
morgrimm has joined #nixos
<{^_^}>
[nixpkgs] @savannidgerinel opened pull request #85907 → ZenStates: init at 0.1.0 → https://git.io/JfLJU
<lovesegfault>
I'm trying to understand what could cause those fails in the coreutils tests
<lovesegfault>
But I don't know enough about how Nix sets up the env for builds to have any ideas
Fare has joined #nixos
spacefrogg has joined #nixos
<rotaerk>
clever, is there a way to mess with that, such as if I want a file to *replace* what another file set
<rotaerk>
if not, that's fine I guess; I'll just have to change where I specify this setting
gentauro has quit [Read error: Connection reset by peer]
<clever>
rotaerk: mkForce can replace all other values, as with any other option
<rotaerk>
ah thanks
<rotaerk>
I have a configuration.nix in which I flip caps-lock and lctrl keys
gentauro has joined #nixos
<rotaerk>
and I have a configuration.vbox.nix where I don't want it to do that, because I have them flipped in Windows, and they cancel out
<clever>
rotaerk: for that, i would just use lib.mkIf
<clever>
rotaerk: make the value of xkbOptions depend on virtualization.virtualbox.guest.enable
<rotaerk>
hmm interesting
<Fare>
Hi. What's the official way to invoke nix-env? If I do `nix-env -f $NIXPKG -iA gerbil-unstable` it works, but even though I have export NIX_PATH="nixpkgs=$NIXPKGS" it doesn't work if I omit the -f argument.
<Fare>
I would like to be able to skip the constant -f argument and/or to tell my users how not to have to use it.
<clever>
Fare: nix-env -iA nixpkgs.foo looks in ~/.nix-defexpr/ not NIX_PATH
<clever>
Fare: nix-env -f '<nixpkgs>' -iA foo, will look in NIX_PATH
andi- has quit [Remote host closed the connection]
<clever>
Fare: but this will add a custom foo, so you can nix-env -iA foo.hello
<clever>
and that custom one could import <nixpkgs>
andi- has joined #nixos
<cole-h>
niso: Hah, guess I was too slow on becoming a maintainer. Feel free to drop me from the maintainer's list in alacritty. It'll be fixed for next time.
<clever>
to build whatever is in the default.nix of that repo
<Fare>
so I want to be able to tell them "do these things, and nix-env will use github.com/fare-patches/nixpkgs"
jlv38 has joined #nixos
turona has joined #nixos
<jlv38>
abathur: I couldn't find one with grep on nixpkgs, but I hoped something might exist elsewhere. In general, I'm not sure where I'd look for Nix libraries outside of nixpkgs lib.
jlv has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @zowoq opened pull request #85911 → dnscontrol: use subPackages, upstream vendor → https://git.io/JfLUn
<abathur>
jiv38: not aware of many util functions outside of the nixpkgs lib dir, within nixpkgs--doesn't mean someone hasn't written one
<Fare>
clever: whoa, I didn't know that would work!
drakonis has quit [Read error: Connection reset by peer]
<abathur>
if you're trying to use it in some obvious places, like a standard config file for some program that uses lots of colors
peelz has joined #nixos
<Fare>
unrelated question, does nix work on WSL ? On some other Windows setup?
<peelz>
is this a bad idea? mkEnableOption "" // { default = true; }
<abathur>
it may help to fish around for nix dotfiles that configure it as well to see if someone has written a color converter, or if everyone is just hardcoding them
<jlv38>
Fare: It didn't when I last tried, about a year ago or so.
<abathur>
I don't know enough about the math involved in HSL/HEX to know if the translator would be fairly trivial to write or not
<iuunno>
anyone have suggestions for getting flash to work in firefox?
<jlv38>
abathur: I actually started writing one. I got to the point where I have to convert the 0-1 rgb values to hex values, but I realized that there could be all kinds of edge cases with rounding, and I don't think there is even a decimal to hex converter in Nix.
<iuunno>
https://nixos.wiki/wiki/Chromium this is all i could find related to it, but neither suggestion seemed to cause flash to show up in my firefox plugins
<cole-h>
Anybody have a PDF editor they recommend?
<abathur>
yeah...
drakonis has joined #nixos
<jlv38>
iuunno: `programs.firefox.enableAdobeFlash` with home-manager. Last I checked, it breaks often because Adobe takes down the download links, but that may be fixed now.
<jlv38>
If nothing else, you can check how they do it.
<iuunno>
ok so home manager is the way then? i havent set that up yet
<iuunno>
is that doc i posted outdated?
<iuunno>
i was having problems with the build not being able to source the adobe link but i think that is fixed now
<jlv38>
iuunno: home-manager is one of the best things about NixOS, in my experience. The wiki is usually outdated.
<iuunno>
with the method they mention for doing it in configuration.nix
<iuunno>
ok, im coming from arch so used to reading wikis to learn what im supposed to be doing
<iuunno>
is the irc generally where its at to figure out what im doing wrong?
<cole-h>
There's also a Discourse
<iuunno>
ah i see
<iuunno>
ok thanks
<jlv38>
iuunno: IRC is usually very good. The official manuals, and the `man configuration.nix` and `man home-configuration.nix` pages are very useful.
zeta_0 has joined #nixos
zeta_0 has left #nixos [#nixos]
<jlv38>
Often, I can figure something out by just searching the man page for an option.
<jared-w>
Basically the git repos are the source of truth. The irc is the explanation for why. And the wiki is proof that documentation is always outdated :p
<abathur>
documentation is still a bit of a construction project :)
<iuunno>
ok ill stop trying to use the wiki lol
KindOne has joined #nixos
<iuunno>
alright im gonna go see if i can get home manager setup
<jared-w>
There's a few pages on it that are pretty good, but the rest need work in some way or another.
<iuunno>
and maybe set up my old weechat config again
<iuunno>
farewell
iuunno has quit [Remote host closed the connection]
<Ashy>
Fare: yeah i have nix running on WSL ubuntu
<energizer>
what is the magic that causes arch wiki to be so consistently helpful?
<drakonis>
the arch wiki covers basic use cases
<cole-h>
The magic is commonly referred to as "human beings"
<energizer>
but like, there are way more people who use ubuntu, but the arch wiki is way more helpful than the ubuntu docs
<drakonis>
because of arch's fame
<drakonis>
ubuntu has a utter lack of docs
<cole-h>
Because Ubuntu is easy mode Linux, and Arch is for tinkerers
<drakonis>
debian docs should be what you reference for ubuntu
<drakonis>
arch's wiki exists to compensate for the lack of setup
<jlv38>
Ok. I really can't figure out how to convert a float to an integer. There's no `ceil`, `floor`, `round`, `toInteger`, anything.
<energizer>
have you tried a recursive function that counts up until the greatest integer that's less than your float
<energizer>
or, first splitString "." toString
<energizer>
sorry, not helping :D
<jlv38>
energizer: does Nix really not support, you know.... math?
<energizer>
idk
<jlv38>
energizer: I'm writing the recursive function...
<energizer>
jlv38: just checking, you realize i was joking right?
<jlv38>
energizer: I literally cannot find any way to convert a float to an integer. I don't think Nix can do it.
<jlv38>
I've searched the Nix manual. The builtins. The lib.
<energizer>
float -> string -> list of string -> string -> int is probably a better way
<energizer>
as in int(str(1.2).split('.')[0])
<energizer>
or however you write that in nix
morgrimm has joined #nixos
<abathur>
hmm
<jlv38>
energizer: ok, but if I get an error, I'm doing the recursion...
<energizer>
lmao
<abathur>
I mean, Nix supports math, but it's a packaging language
<abathur>
it's surprisingly focused in some ways
<clever>
abathur: builtins.importNative
<clever>
,importNative
<{^_^}>
clever: Did you mean imperative?
<{^_^}>
nix-env has multiple drawbacks as an imperative package manager. nix-env -u will sometimes upgrade to the wrong thing; the outputs to install are very finicky to override; and packages that have been removed or are otherwise unavailable will remain in your profile without any warnings. Consider using a ,declarative setup instead.
<clever>
{^_^}: no :P
<abathur>
lol
<evils>
how would one change which version of virtualboxGuestAdditions 'virtualisation.virtualbox.guest.enable` uses?
<jlv38>
energizer: wait. Can Nix even convert a string to an integer?
<{^_^}>
[nixpkgs] @veprbl pushed commit from @ju1m to master « stig: use pytestCheckHook (#85364) »: https://git.io/JfLT0
morgrimm has quit [Ping timeout: 256 seconds]
iuunno has joined #nixos
<iuunno>
so uh heres a question
<iuunno>
when i installed nix i had to subscribe to the unstable channel because i needed a newer version of cwm than was in 19.xx
<iuunno>
but now the newer version is in 20.xx
<clever>
abathur: internally, importNative runs a c++ function, which can return any nix type, including a custom primop that accepts N args, and runs another c++ func
<jlv38>
I'm slowly going mad trying to do basic math in Nix.
<iuunno>
and the unstable channel has a problem with firefox and flash not getting updated to the correct source
<clever>
abathur: it could also return a set containing multiple primops, to do diff things
<jlv38>
I just wanted to define color values in a human friendly manner.
<abathur>
clever: you may be able to help jvl38 better; he's trying to convert HSL -> HEx
<clever>
iuunno: but you could also make just part of it use unstable, not all of it
<iuunno>
my nixpkgs for my user IS unstable
<iuunno>
but i dont think i nececarrily need it to be anymore cuz the one package i needed from unstable is now in 20.03
<clever>
iuunno: then you could just undo that
<iuunno>
sounds good
<iuunno>
this faq looks helpful tho also
<clever>
yeah, that lets you pull one thing from unstable, without changing the default
<iuunno>
another thing im not entirely sure i get is the destinction between a nixpkgs channel and nixos channel
<clever>
the only real difference is what tests have to pass before it updates
<jlv38>
clever: would that c++ trick work from a `nixos-rebuild`?
<iuunno>
they dont have a different set of packages usually then? at most they would have different versions of the same packages if one hasnt passed tests to be in sync with the other?
<clever>
jlv38: yeah, it would work from any nix expr
<clever>
jlv38: but IFD is probably a more sane option
<clever>
,ifd jlv38
<{^_^}>
jlv38: import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result. It has been described as "such a nice footgun."
<clever>
iuunno: the nixos-20.03 channel is also a fork, based on what master had in march of 2020
<clever>
iuunno: so it wont have anything that got added after march
waleee-cl has quit [Quit: Connection closed for inactivity]
<iuunno>
mhm so the firefox and flash build/wrapper will break next time adobe changes the url for flashplayer
<iuunno>
?
<clever>
iuunno: things like firefox and flash still get fixed in the release branches
<iuunno>
so packages get updates to keep them working but not updated to new versions?
<jlv38>
clever: so, theoretically, I could write a Python script to convert hsl to hex, and use `import-from-derivation` to use it to convert hsl to hex in Nix?
<clever>
that will run python on a thing, generate some output, then read the output into nix
iuunno has quit [Remote host closed the connection]
<abathur>
or use an existing command, since there's inevitably something?
<abathur>
can pastel do that? IIRC that's in nix
iqubic has quit [Read error: Connection reset by peer]
iqubic has joined #nixos
<jlv38>
I think Python even has a built in function to convert hsl to hex, but I'm almost done writing it in Nix. Definitly something to keep in mind for the future though.
<abathur>
maybe; so many batteries...
<abathur>
but the startup time for full python can be a bit
<abathur>
pastel's in rust, maybe it's quicker :D
proofofkeags has quit [Remote host closed the connection]
<abathur>
reliably takes me like 100+ms to run `python -c "print(1+1)"`
<abathur>
not sure how many colors you've got, but could add up if you've got a lot
<rotaerk>
bothers me that not all applications pay attention to the Xcursor settings in .Xresources
<rotaerk>
so my cursor changes depending on what window it's over
<Wulfsta>
rotaerk: Can't you set that in .xinit?
proofofkeags has joined #nixos
iuunno has joined #nixos
<iuunno>
alright so
<iuunno>
home manager set up
<iuunno>
removed anything firefox related that might be causing some sort of conflict(?) from other places
<iuunno>
configured with enableAdobeFlash in home.nix
<abathur>
fireworks?
<iuunno>
still no flash? built fine, i saw it mentioning it downloading flash from adobe
<iuunno>
but no flash in firefox ~_~
wolfshappen has quit [Ping timeout: 250 seconds]
morgrimm has joined #nixos
<rotaerk>
Wulfsta, don't have a .xinit; I don't use xinit afaik
proofofkeags has quit [Ping timeout: 250 seconds]
wolfshappen has joined #nixos
<jlv38>
iuunno: the `enableAdoveFlash` option has worked for me in the past. Are you sure you're running the Firefox configured by home-manager? I'm not sure what would happen if you have it installed in your system packages and home-manager.
<iuunno>
i uninstalled it from nix-env first, and also removed it from configuration.nix and did a rebuild switch and reboot
<iuunno>
is there any other place i might b forgetting?
morgrimm has quit [Ping timeout: 256 seconds]
<cole-h>
I will be soooo happy when unstable gets unblocked
<iuunno>
it actually looks like when i run nix-env -qas firefox that there are a bunch with S flag, but none installed at all
<jlv38>
iuunno: Hmm. If you remove Firefox from your home-manager configuration, do you still have Firefox?
<iuunno>
idk how that is possible when i am typing this in firefox rn?
<drakonis>
hmm, what do you mean?
<iuunno>
hmm ill try it
<drakonis>
you can remove it but it remains in the store until you collect its garbage
<iuunno>
maybe i need to collect garbage then
<drakonis>
uh
<drakonis>
have you tried reloading?
<iuunno>
i rebuilt and then rebooted
<jlv38>
iuunno: You shouldn't need to collect garbage. I meant, can you still open Firefox. As in, is it available to you as a user.
<iuunno>
is that what you mean?
jbox has quit [Quit: WeeChat 2.8]
<drakonis>
no
<drakonis>
i mean, reload firefox
<iuunno>
reload firefox? like kill and restart it? or that thing that makes you a new firefox profile or something like that?
<drakonis>
yes, kill and restart
<iuunno>
yeah i killed and restarted
<iuunno>
im gonna try the thing that sets it to default settings tho
<clever>
iuunno: what does `type firefox` return when ran in a shell?
xO1 has joined #nixos
<iuunno>
irefox is /home/otis/.nix-profile/bin/firefox
<iuunno>
missed the f
<iuunno>
but you get the point
<clever>
then its installed into nix-env, either with -i or home-manager
<iuunno>
its gotta be home-manager cuz i just uninstalled it with nix-env -e firefox
<iuunno>
and also nix-env -e firefox-bin
<rotaerk>
huh. didn't know about the type command. more useful than `which`
<contrun[m]>
I am trying to build a vm with local kernel source. Basically I replaced `linuxPackages_latest` with my `cleanSource ./.`. I encountered an error while trying to boot the created vm. This is because the modules are not built into my initrd. The error message is `modprobe: FATAL: Module ide_generic not found in directory /nix/store/w0h84jcr6wnajzycx8p6c69mf7npd2ap-kernel-modules/lib/modules/4.8.0
<contrun[m]>
How does `modprobe` works anyway? I surely have `virtio_console` in my directory.
<iuunno>
Something just happened when I did the restore to default settings thing inside of Firefox
<iuunno>
Before I had set enable Google talk plugin
<iuunno>
In configuration.nix
<iuunno>
But I removed every Firefox related thing
<drakonis>
contrun[m]: it invokes a kernel call for loading modules?
<iuunno>
And for some reason widevine was still showing up in Firefox pugins
<iuunno>
But now it's gone
<iuunno>
Still no flash tho
<clever>
iuunno: if home-manager is installing firefox, then it needs to configure all of the plugins
<iuunno>
Yeah that makes sense, but what doesn't make sense is that I believe I should have flash player then
<contrun[m]>
drakonis: My current kernel version is `5.6`. If I change my `boot.kernelPackages` to `5.5`, I will not be able to build a working initrd any more? Because I can not find modules path for `5.5`.
<clever>
iuunno: and after you kill firefox, youve confirmed there is no firefox in `ps aux | grep fire` ?
ddellacosta has quit [Ping timeout: 250 seconds]
<iuunno>
Mmmm yea
<contrun[m]>
drakonis: In reality, I have changed kernel version for multiple times. I will try to build a vm with older version of kernel to see if `modprobe` works in that case.
<clever>
iuunno: and how did you enable flash in home-manager?
<iuunno>
All that shows up is a nix search I did for ff
<iuunno27>
i do have flashplayer installed with nix-env, it shows up under nix-env -q, i didnt uninstall it from when i was trying to get it set up before, could that be causing some conflict?
<clever>
iuunno: firefox will only use the plugins that the wrapper shellscript exposes to it
<clever>
iuunno: ~/.nix-profile/bin/firefox will be a shell script that exposes plugins to firefox
<iuunno27>
well its the one in home-manager/bin/firefox no?
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
iuunno has quit [Remote host closed the connection]
<iuunno27>
there is a libflashplayer.so in that directory
<clever>
iuunno27: if you fully quit firefox, then start it with that shell script?
<iuunno27>
hmmm ok ill try
<iuunno27>
brb since im in irc in firefox
iuunno27 has quit [Remote host closed the connection]
iuunno has joined #nixos
<iuunno>
same thing
<iuunno>
nope
<iuunno>
no different
<clever>
just let flash die already? :P
<iuunno>
i need to play habbo hotel
chagra_ has joined #nixos
chagra has quit [Ping timeout: 256 seconds]
iuunno has quit [Remote host closed the connection]
endformationage has quit [Quit: WeeChat 2.6]
chagra_ has quit [Ping timeout: 260 seconds]
<dmj`>
macromedia flash?
<srhb>
dmj`: There's a name I haven't heard in a while..
<dmj`>
srhb: legends never die
iuunno has joined #nixos
<iuunno>
i dunno man
<contrun[m]>
My problem is due to the kernel built by me does not have the necessary files for `modprobe` to find modules. Those files can be generated with `depmod`. I didn't see `linuxPackage_latest` run `depmod` also. What is the right way to do that?
<clever>
contrun[m]: nixos runs depmod later on, when its combining all module packages
<clever>
contrun[m]: /run/current-system/kernel-modules has the combined results and depmod caches
zupo has joined #nixos
<jlv38>
Huh, the `mod` function has incorrect documentation and argument names.
<srhb>
jlv38: Oh?
<qy[m]>
Macromedia, what a company
<srhb>
jlv38: It looks right to me
<jlv38>
srhb: The documentation says it is used like `mod base num`, but the actual code is for `mod num base`.
<srhb>
Or maybe you're taking issue with base specifically
<iuunno>
hmmmm idk whats going on but chromeium has flash already installed but it doesnt work either
<contrun[m]>
clever: The building process of linuxPackage_latest must have ran `depmod`. I can confirm this as`/nix/store/r7lph3h97w4nc4aqy2ygfb2p3slmzffj-linux-5.6.3-modules` has the files generated by `depmod`. But when I use `linuxPackages_custom`, my kernel does not have the files generated by `depmod`.
<iuunno>
i just checked on my arch install to see if the new version of flash wasnt just completely broken or something but it works fine there
<{^_^}>
[nixpkgs] @zowoq opened pull request #85914 → nixos/containers: move libpod to nixos/podman → https://git.io/JfLIL
antpic01[m] has joined #nixos
<drakonis>
hm, neat, podman's improving
slack1256 has joined #nixos
<clever>
contrun[m]: how did you build the custom packages? it shouldnt be this complicated
<contrun[m]>
clever: I see the build script for custom kernel has `/nix/store/7a74523c3gkx9gwk4prasg71xf064bnd-kmod-26/bin/depmod -b $out -C $out/etc/depmod.d -a $kernelVersion`. But it didn't run somehow.
<clever>
contrun[m]: what are you trying to make custom on the kernel?
justanotheruser has quit [Ping timeout: 272 seconds]
<contrun[m]>
clever: I want to build a nixos with the kernel in the master, so that I can hopefully fix some kernel bugs.
<iuunno>
it doesnt work in vivaldi either, adobes check page says its disabled even when its set to allow
<srhb>
kalbasit: ping :) I had a weird experience with buildGoModule yesterday that I don't know whether you've seen. GitHub was acting up, and using a TOFU sha, I got different modshas with a rerun, which is scary. Re-reading the logs it turned out that several deps errored out with 504 from github. It seems like this should fail much earlier.
<contrun[m]>
clever: Thanks I will try it now.
hoijui has joined #nixos
palo1 has joined #nixos
astrofog has joined #nixos
asheshambasta has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
<contrun[m]>
clever: Unfortunately, I still have a lot of Kconfig to modify.
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
karantan has joined #nixos
zupo has quit [Client Quit]
zupo has joined #nixos
mallox has joined #nixos
rauno has joined #nixos
ok2` has quit [Ping timeout: 250 seconds]
morgrimm has quit [Ping timeout: 265 seconds]
FRidh has quit [Ping timeout: 250 seconds]
FRidh has joined #nixos
zupo has quit [Ping timeout: 250 seconds]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mallox has quit [Quit: WeeChat 2.8]
mallox has joined #nixos
slack1256 has quit [Remote host closed the connection]
dingenskirchen has quit [Quit: dingenskirchen]
<bdju>
recently my gtk file picker for firefox gets larger as I save more files. I have to keep shrinking it, it goes off-screen / on to the second monitor. very strange
justanotheruser has quit [Ping timeout: 265 seconds]
turbo_MaCk has joined #nixos
morgrimm has quit [Ping timeout: 256 seconds]
<typetetris>
I have a colleague with a single user nix install on a mac and that file simply doesn't exist.
<clever>
typetetris: then create it
<turbo_MaCk>
Hi everyone! I just want to ask, in case there is someone one who has that experience already, how can I define a build for a program that links to OpenCV lib (using pkgconfig)
<clever>
typetetris: add pkgconfig and opencv to buildInputs
nschoe has joined #nixos
smatting has joined #nixos
vidbina_ has joined #nixos
<nschoe>
Hi everyone, quick question: I used nix-store --add /path/to/lightdm-wallpaper.png to ass my wallpaper for lightdm in the store, so that lightdm has access to it. It worked until I nix-collect-garbage-ed it. How come? I have the /nix/store/<hash>-lightdm-wallpaper.png in my configuration.nix.
<nschoe>
So I reckong my system profile should somewhere, point to it nad it should not be garbagde-collected, right?
<{^_^}>
[nixpkgs] @xfix opened pull request #85919 → mosh: fix build with bash-completion 2.10 → https://git.io/JfLL7
<typetetris>
clever, okay will try that.
<clever>
nschoe: instead do something.wallpaper = /path/to/lightdm-wallpaper.png; directly in configuration.nix
<clever>
nschoe: then nix will add it to the store for you automatically, and copy it any time its missing
<typetetris>
clever, are there build caches for the darwin port, or should cache.nixos.org suffice?
<clever>
nschoe: the path must not be quoted
<clever>
typetetris: cache.nixos.org has darwin as well
slack1256 has joined #nixos
noudle has joined #nixos
<nschoe>
clever: thanks for answering. The thing is: I had started by doing this, but ligthdm doesn't have permission to read files in my home directory.
<nschoe>
So it had a black screen. This is why I thought "let's add it to the store"
<clever>
nschoe: then you quoted it when you shouldnt have
<clever>
nschoe: what is the exact line you put into configuration.nix?
<nschoe>
clever: right now I have: background = "/nix/store/jsmwsijh8nrnpcnjp6ks76qbbic2d8g1-red_planet_craters.jpg"; # Added with nix-store -add 9under services.xserver.displayManager.lightdm
<nschoe>
You're right, it's quoted. Good catch.
smatting has quit [Ping timeout: 264 seconds]
<clever>
nschoe: if you quote the path, nix wont know its a path, and none of the GC stuff will work
<clever>
nschoe: and if its unquoted, it can be outside the store, nix will copy it for you
<clever>
just background = ./background.jpg; and your done
negaduck has joined #nixos
<nschoe>
clever: I see that now. So just to make sure I understand: if I do background = /home/nschoe/wallpaper.pgn, then when runnig nixos-rebuild, nix will detect this file, and will copy it to the nix-store and *that*'s the one that will be used by lightdm, and lightdm will, in fact, *not* need to go read anything in my home dir. Am I correct?
<clever>
nschoe: correct
<clever>
nschoe: the process doing `nixos-rebuild` must have permission to read the file though
<clever>
nschoe: paths can be cast to a string automatically
<clever>
nschoe: when you try to cast a path to a string, nix will copy it to the store
<clever>
and you then wind up with the path to the copy instead
<nschoe>
Oh!
<nschoe>
Okay I see, so it _works_, but I reckon the lightdm.nix _should_ have this type as filepath instead, no?
<clever>
either works
xelxebar_ has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
<nschoe>
clever: hum... when I try to rebuild, I get "error: The option value `services.xserver.displayManager.lightdm.background' in `/etc/nixos/configuration.nix' is not of type `string'."
xelxebar has joined #nixos
<clever>
nschoe: then you want background = "${/home/nschoe/wallpaper.png}";
<nschoe>
That's the lin eI have in configuration.nix: background = /home/nschoe/Pictures/Wallpapers/red_planet_craters.jpg;
<FireFly>
is there a good reason for nixos-generate-config to prefer by-uuid over by-label? my perl-fu isn't super strong, but looking at nixos-generate-label.pl it seems to me that preferring labels should work fine (and is a bit nicerto read/less error-prone to visually compare)
<lassulus>
not all partitions have labels?
<hyper_ch>
uuid is unique... a label not necessarily
<hyper_ch>
partitions don't require to have labels
<FireFly>
lassulus: sure, but as it is findStableDevPath already tries to find both /dev/disk/by-uuid/... and /dev/disk/by-label/...
<FireFly>
just, checking for the former before the latter
<FireFly>
hyper_ch: hmm huh, I figured the labels would have to be unique..
<hyper_ch>
FireFly: labels don't have to be unique.... make two usb sticks and give them the same label and put them in at boot and see what happens
<FireFly>
*nod* fair
<hyper_ch>
while uuid should be by definition unique and you shouldn't be able to generate same uuid twice...
<hyper_ch>
(but I think you can manually alter the uuid and give the same to two devices)
<ashkitten>
or copy the disk image to another disk!
<hyper_ch>
:)
<hyper_ch>
right, forgot about that
<etu>
But if you clone a disk image you should scramble the uuid of the partition after that
<ashkitten>
unless you know what you're doing
turbo_MaCk has quit [Quit: WeeChat 2.8]
<hyper_ch>
btw, why don't I get an entry in the /etc/passwd file for root after rebuilding and rebooting? (notice: /etc is volatile and gets reset to nothing upon reboot)
<the_pumpkin_man[>
I tried to look at recently merged pull request, and these were opened and closed very recently
<the_pumpkin_man[>
So I was thinking some pull requests are just forgotten ?
<lassulus>
yes
<lassulus>
sadly they are
<etu>
the_pumpkin_man[: That happens, yes
<hyper_ch>
feel free to *ping* the reviewer :)
<the_pumpkin_man[>
Oh, but if this happens, were can I mention it ?
<etu>
the_pumpkin_man[: Helping out to review yourself helps people with commit access a lot :)
thc202 has joined #nixos
<hyper_ch>
just write a small message "any news on this?"
<etu>
the_pumpkin_man[: That way we can reduce this problem
<the_pumpkin_man[>
etu: It already got reviewed
<the_pumpkin_man[>
And I don't really understand how to do that
<etu>
the_pumpkin_man[: Yeah, I know. But I'm speaking more in general. If it gets lost by the amount of other PR's... It would help if more people reviewed so it would be easier to merge/close more things so things don't get lost as easily.
<the_pumpkin_man[>
I tried to copy my local nixpkgs from the nixos-unstable ( copied `/nix/store/jljmx6v0kd2iwwswz6nbnw04x6d6rlnn-nixos-20.09pre222244.22a3bf9fb9e/nixos` to my home), modified the lutris nix file and tried to nix-build
<the_pumpkin_man[>
But it was building a LOT of dependencies
o1lo01ol1o has joined #nixos
<the_pumpkin_man[>
And I thought "Was it rebuilding every little dependency of lutris ?"
<the_pumpkin_man[>
Do you really need to rebuild everything or does it use your cache ?
<etu>
It uses the cache and your local cache
<the_pumpkin_man[>
That's strange then
<etu>
If those aren't matching what you're trying to build, then it will build it.
<the_pumpkin_man[>
Because my system is up-to-date, and this only added one new dependency
<etu>
I would say that coping your nixpkgs from the store is strange, I would make a git clone of the github repo
cfricke has joined #nixos
<etu>
And then pull in the changed file on top of that
karantan has joined #nixos
<the_pumpkin_man[>
etu: I did that so I didn't had to redownload many packages from nixpkgs
<the_pumpkin_man[>
At least I hoped that
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<etu>
I would say that it's always best to test on latest master or wherever it's planned to merge the changeset to know the actual result of the merge.
<the_pumpkin_man[>
Well I thought that nixos-unstable was up-to-date because it also has the 0.5.5 version of lutris
<the_pumpkin_man[>
And redownloading + building everything takes a LOT of time
<etu>
nixos-unstable is based on master, but is always behind master since it's built on master being tested
karantan has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
chagra_ has joined #nixos
orivej has joined #nixos
__monty__ has joined #nixos
o1lo01ol1o has joined #nixos
<the_pumpkin_man[>
Well I just wrote a little message, I hope this will be merged
dingenskirchen has quit [Remote host closed the connection]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stree has quit [Read error: Connection reset by peer]
stree has joined #nixos
mrte has joined #nixos
peanutbutter144 has joined #nixos
mrte has quit [Max SendQ exceeded]
mrte has joined #nixos
domogled has quit [Ping timeout: 250 seconds]
rgrau has joined #nixos
domogled has joined #nixos
gnidorah has quit [Quit: Connection closed for inactivity]
domogled has quit [Ping timeout: 264 seconds]
benkolera has left #nixos ["User left"]
<{^_^}>
[nixpkgs] @andir opened pull request #85925 → llvm_10: link to the llvm compiler-rt share directory from the wrapper → https://git.io/JfLOy
<CRTified[m]>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bryanhonof>
Hello, I have a question about dynamic libraries in nixos. Is there a way to expose them to the system so that dlopen(3) can find them? I currently have a library in my nix store (vulkan-loader's libvulkan.so) but since it is in the store dlopen is unable to find it.
justanotheruser has quit [Ping timeout: 272 seconds]
cr4y1_ has quit [Read error: Connection reset by peer]
<srhb>
bryanhonof: This sounds like the sort of driver stuff that's already sort of impure and implemented through a common location in /run/opengl-driver and co
<srhb>
bryanhonof: I know very little about it, but perhaps that gives you a pointer to persue, eg. by looking at the codebase and commit history dealing with that path
vidbina_ has joined #nixos
cr4y1 has joined #nixos
<srhb>
pursue* even
zupo has joined #nixos
morgrimm has joined #nixos
<bryanhonof>
srhb: Ok, I will check out /run/opengl-driver. Thanks for the pointer!
<hyper_ch>
is there a way to build all the packages myself automagically instead of downloading the compiled versions from hydra? I'd like to stresstest the computer a bit
<hyper_ch>
sphalerite: what does that wizzardry do?
domogled has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @thomasjm opened pull request #85930 → Package Microsoft's Python Language Server → https://git.io/JfLno
domogled has joined #nixos
<sphalerite>
hyper_ch: that will first get everything from the binary cache, then rebuild the whole closure and check that the outputs are the same
<hyper_ch>
and that will keep my ram and cpus busy?
<sphalerite>
should do, yeah :)
<hyper_ch>
thx
fusion809 has quit [Quit: Connection closed]
bryanhonof is now known as [AFK]
domogled has quit [Ping timeout: 256 seconds]
domogled has joined #nixos
<arianvp>
did mkDerivation behaviour change in 20.03 ?
<arianvp>
I have buildEpends = [ pkgs.pkgconfig ]; buildPhase = "pkg-config"; and it says "command not found: pkg-config";
<arianvp>
but it is in path when I nix-shell into the derivation
<arianvp>
:/
<arianvp>
what am I missing here?
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
<arianvp>
oh it's buildInputs. lol not buildDepends
<arianvp>
nix needs types today
knupfer has quit [Quit: knupfer]
<sphalerite>
arianvp: you should use nativeBuildInputs for pkgconfig though
ArdaXi has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<sphalerite>
arianvp: firstly because cross compilation won't work otherwise, but also because strictDeps will default to true Soon™ so it won't even end up in PATH when building natively
knupfer has quit [Client Quit]
ArdaXi has joined #nixos
knupfer has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<{^_^}>
[nixpkgs] @adisbladis opened pull request #85933 → nixos/docker-containers: Use podman for declarative "docker" containers → https://git.io/JfLcH
chrismatheson has joined #nixos
[AFK] has quit [Remote host closed the connection]
lsix has joined #nixos
lunik1 has quit [Quit: :x]
lunik1 has joined #nixos
<{^_^}>
[nixpkgs] @falsifian opened pull request #85934 → dump: init at 0.4b46 → https://git.io/JfLCf
nschoe has joined #nixos
cfricke has joined #nixos
domogled has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-microlens-th: drop obsolete override »: https://git.io/JfLCC
<chrismatheson>
i can install packages on my machine with nix-env .... is there a way to define the set of packages that should be installed? like a package.json in nodejs ...
<jakobrs>
Do packages/etc need to be backported into nixos-unstable when applicable?
<siers>
lists.nix / subtractLists
<immae>
chrismatheson: yes you can write a derivation listing what you want and give it to nix-env
<immae>
For instance if you put that in foo.nix `{ pkgs ? import <nixpkgs> {} }: [ pkgs.bc ]` you can run `nix-env -i -f foo.nix` and it will install bc
<chrismatheson>
awesome thanks!!! :D
lorimer has joined #nixos
<chrismatheson>
my goal is to keep "my setup" under source control.
<chrismatheson>
so hopefully i can build up a derivation representing my dev env and have a simple backup for all the tweeks
dermetfan has quit [Ping timeout: 252 seconds]
<immae>
if you’re new to nix you can start there, but you’ll find other ways later when you get used to it
<chrismatheson>
thanks again @imm
<chrismatheson>
* thanks again @immae
<jakobrs>
chrismatheson: If you use -r with nix-env -i you can
<jakobrs>
It will remove the already installed packages
<Xe>
immae: do you know of an example of using that secrets module?
<jakobrs>
So then, when you do nix-env -ir -f ./foo.nix, it will set what packages you have installed to exactly those in foo.nix
<immae>
Xe: It’s in my open tabs because I want to try it some day, so no :)
<immae>
(I have another implementation for secrets but it results in secrets writen in the local store, so not ideal, I think infinisil one is better )
morgrimm has joined #nixos
c0c0 has joined #nixos
domogled has quit [Remote host closed the connection]
domogled1 has joined #nixos
CMCDragonkai1 has joined #nixos
iqubic` has joined #nixos
domogled1 is now known as domogled
Fare has quit [Ping timeout: 240 seconds]
domogled has quit [Remote host closed the connection]
<hyper_ch>
gchristensen: how did you set root password and stuff in your erase-your-darlings? I can't get it to properly set the password
reallymemorable has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
betawaffle has joined #nixos
<jakobrs>
Whenever I'm packaging a program, should I by default worry about exactly specifying dependencies as described in the Cross-compiling chapter of the nixpkgs manual?
<adisbladis>
hyper_ch: Do you have mutableUsers disabled?
<hyper_ch>
adisbladis: no, I have not
chagra_ has quit [Ping timeout: 265 seconds]
chagra_ has joined #nixos
<adisbladis>
hyper_ch: You're gonna want that for those kinds of setups
<adisbladis>
I believe there was some differences in how initialHashedPassword is handled in regards to mutableUsers
zupo_ has joined #nixos
<hyper_ch>
adisbladis: I use hashedPassword and not initialHashedPassword
<hyper_ch>
to my understanding, the hashedPassword should be applied upon every rebuild
zupo has quit [Ping timeout: 258 seconds]
markus1199 has quit [Ping timeout: 256 seconds]
<hyper_ch>
adisbladis: iiieeks.... "If the option users.mutableUsers is true, the password defined in one of the three options will only be set when the user is created for the first time."
<nschoe>
TheSirC[m]: (I suck at python and am a newbie at NixOS) shot in the dark: shouldn't you add 'gi' in your propagatedBuildInputs, in the list where "pygobject3 gst-python" are present?
hio has quit [Quit: Connection closed for inactivity]
<jakobrs>
mkDerivationWith multiStdenv.mkDerivation seems to work
dckc has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
<{^_^}>
[nixpkgs] @sjau opened pull request #85939 → easysnap: changing format for samba shadow_copy2 to work → https://git.io/JfLBU
itorres has joined #nixos
infandum has joined #nixos
<infandum>
If I'm using sandboxing, why would the resulting executable from the nix-env on a default.nix have links to shared objects on the system outside of /nix/store?
dckc has joined #nixos
<jakobrs>
When using multistdenv, do I specify 32-bit dependencies using pkgsCross?
sigmundv__ has quit [Ping timeout: 256 seconds]
dckc has quit [Ping timeout: 264 seconds]
dckc has joined #nixos
CMCDragonkai1 has quit [Ping timeout: 256 seconds]
<infandum>
immae: Thank you for all of your help yesterday, it works perfectly on my computer. However, when I try the same default.nix on another computer (ubuntu), it links to system libraries instead of the /nix/store libraries. Any idea why this would be?
<infandum>
It works on my computer (arch) but not on another (ubuntu)
<infandum>
I tried enabling sandboxing but that did not work
<immae>
what nix version is there on ubuntu ? (not that it should make a difference, but...)
<infandum>
on my arch setup everything is linking correctly (/nix/store for all shared objects) but for the ubuntu one it has some /nix/store and some /usr/lib or /lib, like blas.so
<immae>
(I’m trying it locally to see if I see anything)
<infandum>
immae: 2.3.4
<immae>
so sandbox should be enabled by default no?
WhatisRT has joined #nixos
<infandum>
immae: I thought so, but the website says it isn't
<infandum>
either way, I tried with a default nix.conf and with the sandboxing nix.conf
<infandum>
I thought that if a default.nix worked on one computer, it would work on all based on the reproducibility (and that it references only /nix/store in my primary computer)
<infinisil>
infandum: Well I suggested yesterday that you try to run the binary in a derivation, but you didn't seem to try that
<infandum>
infinisil: I couldn't get it to work
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shreyansh_k has quit [Quit: Konversation terminated!]
<immae>
(it’s still building on my system)
<infandum>
immae: It will take a while
<immae>
I can see that
<infandum>
I'm trying on a third computer
justanotheruser has quit [Ping timeout: 265 seconds]
<negaduck>
it seems I have a nvidia driver in nix store. Can I actually use it instead of one installed by ubuntu?
<negaduck>
in the end I'd like to use cuda from nix store, but I have to update the system-wide nvidia driver for this, and I'm afraid of ruining the set-up built by other people
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
chagra_ has quit [Ping timeout: 264 seconds]
domogled has quit [Remote host closed the connection]
domogled1 has joined #nixos
<bdju>
anyone else getting some vids that aren't working with youtube-dl recently? I hit two different ones today, but it's not all of them
<bdju>
oh maybe it's related to them rolling out AV1. I heard that was happening
domogled1 is now known as domogled
<hyper_ch>
sphalerite: it failed :(
fenedor has joined #nixos
<{^_^}>
[nixpkgs] @prusnak opened pull request #85941 → sd-image: use parallel pbzip2 implementation → https://git.io/JfLEj
zupo_ has joined #nixos
kaliumxyz has joined #nixos
ckoparkar has joined #nixos
fendor has quit [Ping timeout: 256 seconds]
kenran has quit [Quit: leaving]
<arianvp>
how to handel setcap binaries in nix?
<gchristensen>
no nixos?
<arianvp>
ah thanks; through nixos it is
<ckoparkar>
I wanted to ask for help with nix-2.3.4. Around 2 days ago, I accidentally deleted the ~/.cache/nix directory. Ever since then I'm running into all sorts of problems with nix. If I run "nix-env -i hello", it tries to install a LOT of packages, including things like bootstrap-tools, which should be install already. And it's never able to install all
<ckoparkar>
the derivations, and all nix commands eventually fail. Also, I get this warning every time: SQL logic error (in '/u/ckoparka/.cache/nix/binary
<ckoparkar>
-cache-v6.sqlite'
<hyper_ch>
gchristensen: my root entry in /etc/shadow is refusing to be filled with a password :(
gnidorah has quit [Quit: Connection closed for inactivity]
<gchristensen>
arianvp: security.wrappers
<gchristensen>
hyper_ch: that is odd
<ckoparkar>
But 'sqlite3 .cache/nix/binary-cache-v6.sqlite-journal 'pragma integrity_check' prints 'ok'
vidbina_ has joined #nixos
<gchristensen>
are you setting a root password with users.users.root.hashedPassword?
<ckoparkar>
I've tried re-installing nix from scratch, but it didn't help
<ckoparkar>
Has this happened to anyone before?
chagra_ has joined #nixos
<nschoe>
Hi, anyone uses LaTeX with NixOS? Or rather Org-mode and exports to PDF? I'm trying to export org docs to PDFs but it complains abotu missign 'wrapfig.py'. I do have 'textlive.combined.scheme-medium' though. Wodnering if I absolutely have to go to 'scheme-full' just for PDF conversion ;/
<gchristensen>
hyper_ch: your config for the root user is a lot more than you probably need. like, you should probably delete all that root config there and just set users.users.root.hashedPassword = "..."
<hyper_ch>
gchristensen: let's try
<gchristensen>
hyper_ch: and your root password is the result generated by mkpasswd -m sha-512 ?
<hyper_ch>
gchristensen: btw, I told you I can setup /home with zfs mount
<hyper_ch>
when I added a new user it didn't work anymore because isNormalUser makes sure home is created etc. and this happenes before zfs mount takes place... however using createHome = false; solves that issue
<hyper_ch>
so you can use zfs mount, add a new dataset for a user, generate teh user and then you have to chown it manually... but still less hassle than adding all new user homes as legacy mount in hardware-configuration
<hyper_ch>
gchristensen: yep, it was created by that and I also tried to copy the hash from other nixos systems
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<hyper_ch>
now I'm a total fan also of samba's Shadow_Copy2 and the way it works with file properties in windows... I wish same could be made for dolphin or other file managers
<nschoe>
No idea for org-to-pdf?
<immae>
infandum: what do you mean by "the website says it isn't"? (still building on my laptop)
<immae>
(I just reached the too-many-cells step so I’m close I think)
<{^_^}>
[nixpkgs] @kevinastock opened pull request #85942 → Replace ftp with https for ftp.gnu.org → https://git.io/JfLuM
<hyper_ch>
gchristensen: root:!:1:::::: --> only left hasedPassword in there for root
<immae>
If I remember correctly, sandbox is the default as of 2.3.X
justanotheruser has joined #nixos
ckoparkar has quit [Quit: Connection closed]
<immae>
infandum: building just finished for me and it correctly targets /nix/store only...
<immae>
Do you have a list of the libraries that go outside the store?
<infandum>
immae: YES!! As long as it works for others...
<infandum>
immae: For the ubuntu on my side, it's:
horek has joined #nixos
<hyper_ch>
gchristensen: can't get a password for root... otoh, maybe it's not so bad not having a root password as long as ssh-keybased login still works and login as different user with sudo right
<immae>
infandum: note that I only built it, I don’t know what to run from there
<infandum>
immae: To test, nix-env -f default.nix -i too-many-cells
<infandum>
then `too-many-cells -h`
<infandum>
I got a blas library error on the ubuntu computer
<gchristensen>
hyper_ch: I don't know what is going on, since my system does it just fine -- I wonder if it has to do with the mount order from your fancy zfsmounts
reallymemorable has joined #nixos
<hyper_ch>
gchristensen: it did create the entry for the other user and /root and /etc are legacy mounts
<infandum>
immae: On the third computer it works and links correctly (another arch linux) so it just failed on the ubuntu
<infandum>
what system are you running?
<immae>
arch
<infandum>
ah
jgeerds_ has joined #nixos
<infandum>
so it's either an ubuntu issue, just works on arch issue, or this particular ubuntu installation is wonky for some reason
o1lo01ol1o has quit [Remote host closed the connection]
<immae>
I see some possibilities: (1) either that the nix daemon is not properly sandboxed and has a leak from libraries (via environment variables for instance?), which would make it a build-time issue (2) or the build is okay but there are overrides at runtime for some reason
<immae>
I’m not at ease with those mecanisms so I don’t know how to test it
justanotheruser has quit [Ping timeout: 265 seconds]
<numkem>
I get `sudo: /nix/store/bbx5vym6kndsfwwlghrhzdw8civfnq7h-sudo-1.8.31/bin/sudo must be owned by uid 0 and have the setuid bit set` when trying to execute sudo through a Go program... Anything I should do for NixOS? It used to work just fine on Arch
<infinisil>
pikajude: Do you mean fixed-output derivations?
<MichaelRaskin>
pikajude: yes, but if a rebuild ends up not changing the output, you do not need to rebuild rev-deps
<pikajude>
infinisil: no
<pikajude>
MichaelRaskin: oh, i see, so it's about multiple build steps then
<infinisil>
Content addressable derivations currently at least aren't a thing in nix
<MichaelRaskin>
Yes. The way rebuilds propagate in Nix are a tradeoff, and now that we have more data it would be nice to improve it
<pikajude>
yeah i misspoke, content addressable store paths
knupfer has quit [Remote host closed the connection]
<MichaelRaskin>
infinisil: I think there are some pre-alpha branches with CA derivations?
<numkem>
nvm I got it I think, it's because I had sudo in my shell.nix... Sudo is an option so I'm assuming there are more than just pulling the package
<MichaelRaskin>
I think for 62 there was some PoC work
<gchristensen>
and regnat continues to work on it
<pikajude>
i see, so if, say, someone adds a comment to a line of bash source code, and you rebuild bash, it has the same output hash so it doesn't end up rebuilding the entire stdenv
<MichaelRaskin>
Yes
<MichaelRaskin>
That's the goal
<pikajude>
but even so, right now, the path that you query a substituter for is based on the hash of the derivation, right?
<MichaelRaskin>
Hard to achieve, of course…
tertl3 has quit [Quit: Connection closed for inactivity]
<pikajude>
ah i see, the rfc suggests having a well-known mapping of $out to $cas
<pikajude>
i guess the idea is not to get rid of the notion of $out entirely
lordcirth__ has quit [Remote host closed the connection]
<MichaelRaskin>
You kind of cannot
lordcirth__ has joined #nixos
<pikajude>
yeah, that's what i was wondering
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
drakonis has quit [Quit: WeeChat 2.8]
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
cole-h has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<simukis_>
is there an easy way to `nix-shell --pure` but so that it just reset `PATH`-like things and didn’t touch most of the other variables.
<simukis_>
(I’m aware of --keep, but it sounds very menial to list variables I care about)
asheshambasta has quit [Ping timeout: 272 seconds]
<srhb>
simukis_: You're probably better off not doing --pure and manually murdering variables you don't care about in a shellHook then.
<simukis_>
Does `shellHook` run before nix-shell sets up the $PATH? it would be great indeed if I could just `export PATH=` in a shellHook, but I suspect it won’t work that way
lordcirth__ has quit [Read error: Connection reset by peer]
<Th4tGuy>
has anyone recently use aws s3 as a binary cache? I'm trying to use it and keep getting aws error '' (unable to connect to endpoint). If i use the aws commandline everything works fine...
lordcirth has joined #nixos
braunse_ has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
emilis has joined #nixos
codygman has quit [Read error: Connection reset by peer]
ATuin has joined #nixos
Th4tGuy has quit [Remote host closed the connection]
<pingveno>
Now the viruses even have release schedules.
<srhb>
So the guess is that it can't figure out where locales live?
gulplante has quit [Quit: WeeChat 2.7.1]
<pingveno>
maaaaybe? I tried running `locale` and it was spitting out the expected locales.
<pingveno>
I have i18n.defaultLocale = "en_US.UTF-8"; in my configuration.nix.
kwannoel has joined #nixos
jakobrs has joined #nixos
<jakobrs>
Is it possible to make `nix-shell -p` also make man pages available?
o1lo01ol1o has quit [Remote host closed the connection]
<lassulus>
It normally does
<lassulus>
At least for me
<jakobrs>
If I run nix-shell -p man-pages, for example,
<jakobrs>
It won't add make the man pages available
<Yaniel>
I'd expect application-specific manpages to be part of the application's derivation
<jakobrs>
The man pages _are_ part of the derivation
<jakobrs>
nix-shell -p just doesn't make them available
<Yaniel>
not sure which pages would be included in the man-pages package
<jakobrs>
nix-env -iA does
<jakobrs>
It's not specific to that package
<immae>
infandum: great :D
<jakobrs>
This time I was trying to use squashfsTools
<Yaniel>
ah
<lassulus>
hmm /nix/store/bxi6n7aw03h2hfbpqsb095xy31bb70vv-squashfs-4.4 doesn't show manpages for me
ebopp has quit [Remote host closed the connection]
<lassulus>
so I don't see how they could be exported with nix-env
Desetude has joined #nixos
lordcirth has quit [Read error: Connection reset by peer]
lordcirth has joined #nixos
<{^_^}>
[nixpkgs] @mkg20001 opened pull request #85948 → tartube: init at 2.0.016 → https://git.io/JfLKP
fadenb has quit [Remote host closed the connection]
<lassulus>
but, for example, man r2 doesn't work normally for me, but inside nix-shell -p radare2 it works for me
morgrimm has quit [Remote host closed the connection]
glittershark has quit [Ping timeout: 250 seconds]
<lassulus>
so maybe its just squashfsTools missing manpages?
laika___ has joined #nixos
acarrico1 has joined #nixos
<laika___>
any scalaists around? i have an open PR for upgrading the dotty compiler expression to the latest RC
<laika___>
not sure if i need to track down someone with scala experience AND merge powers...
acarrico has quit [Ping timeout: 260 seconds]
zeta_0 has joined #nixos
o1lo01ol1o has joined #nixos
<pingveno>
Oh wow, I finally figured out what was happening with mosh. I had previous used `nix-env -iA nixpkgs.mosh` to install mosh, which is incorrect.
<pingveno>
I uninstalled that in favor of the system package and it all works correctly.
<lassulus>
laika___: you could just post the PR, maybe someone will pick it up
<jakobrs>
pingveno: Why is `nix-env -iA nixpkgs.mosh` incorrect?
<Izorkin>
How to need to merge #85856?
<pingveno>
I'm not exactly sure why, but the proper way to install it is apparently in configuration.nix.
<zeta_0>
the people in #emacs said that this is more related to linux, so i came to ask it here since i'm using nixos, i'm not sure how to troubleshoot this
<jakobrs>
Oh right you need to open ports in the firewall
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @matthewess to master « dotty: 0.20.0-RC1 -> 0.23.0-RC1 »: https://git.io/JfLKx
rogue_koder_ has quit [Ping timeout: 240 seconds]
<lassulus>
maybe there should be channel/discourse thread for stalled PRs where people can raise awareness, and there should be a mention in the template
<lassulus>
yes, if the opener doesn't respond thats the right way, but if the opener can't get maintainer awareness to merge something is another problem
<cole-h>
In that case, you get somebody else to review, and then post it in the "PRs already reviewed" Discourse thread
<cole-h>
Most times somebody asks for a review on here, somebody (even if not just me) is usually happy to oblige
<laika___>
lassulus: thanks :)
<Desetude>
I'm trying to setup a derivation where I need to cross compile for a generic i686-elf target with no libc. I have set crossSystem.config = "i686-elf", but how do I set it up to get the toolchain without libc?
kwannoel has quit [Quit: -a- IRC for Android 2.1.55]
sarcasticadmin has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 56 commits to haskell-updates: https://git.io/JfL6W
cirno999 has joined #nixos
o1lo01ol1o has joined #nixos
ravndal has quit [Quit: WeeChat 2.8]
laika___ has quit [Remote host closed the connection]
vyorkin has quit [Remote host closed the connection]
mchasard has joined #nixos
<mchasard>
hi
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
iqubic has joined #nixos
<mchasard>
how to upgrade system regularly its allways under console theres no graphic interface ?
<mchasard>
how to upgrade system
<benny>
I have to say re: PRs I feel sort of silly with my pull request trying to get the attention of a committer. I know everyone does it on their own spare time and now I'm also adding to their leisure workload with my silly merge request
o1lo01ol1o has joined #nixos
rogue_koder_ has quit [Ping timeout: 265 seconds]
<zeta_0>
hello there, i need to set: `export NODE_OPTIONS="--max-old-space-size=8192"` in order to fix an error that elm-ls is throwing: http://dpaste.com/3A03DN8 , i'm using lorri+direnv+direnv-emacs, so should i set this in the `.envrc` file or should i set it in a `shellHook` inside in the shell.nix file?
sarcasticadmin has quit [Ping timeout: 258 seconds]
doyougnu has joined #nixos
Ilya_G has joined #nixos
shibboleth has joined #nixos
rogue_koder_ has quit [Remote host closed the connection]
rogue_koder_ has joined #nixos
<Ilya_G>
I am installing nixpkgs.python37Packages.pystemd and it requires libsystemd-dev in order to work. That package does not exist, how should I go about adding it?
<infinisil>
Ilya_G: You mean you get an error when you're trying to use it?
<Ilya_G>
correct when I build it it says: pystemd/daemon.c:608:10: fatal error: systemd/sd-daemon.h: No such file or directory
<Ilya_G>
infinisil: this is caused by absence of libsystemd-dev library
<cole-h>
,locate systemd/sd-daemon.h
<{^_^}>
Found in packages: elogind, libudev.dev, systemd_with_lvm2.dev
<lordcirth>
handy command
<infinisil>
Ilya_G: Can't replicate on latest nixpkgs-unstable, this builds for me: nix-build channel:nixpkgs-unstable -A python3.pkgs.pystemd
<zeta_0>
in nixpkgs is elm packaged together with nodejs , or will i need to install it separately?
proofofkeags has quit [Remote host closed the connection]
<energizer>
are elm and node related?
fendor has quit [Read error: Connection reset by peer]
<zeta_0>
energizer: elm is used with node, so i was just wondering if they are packaged together, here's the shell.nix file that i have setup: https://dpaste.org/gSUy
fendor has joined #nixos
<zeta_0>
energizer: earlier i was having some problems with elm-language-server, so i was just trying to troubleshoot to see what was wrong
<zeta_0>
well i got elm-ls working on emacs, so nevermind
<zeta_0>
i got 2 other errors thrown, but they are more related to emacs: https://dpaste.org/8tCp
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/JfLMC
cr4y1 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfLM8
cr4y1 has joined #nixos
<zeta_0>
i got (lorri+direnv+emacs-direnv) setup pretty good, but i just to need to figure out a couple of edge cases with regards to environment variables, so i need to do some research on direnv, to understand the .envrc file better
ddellacosta has quit [Quit: WeeChat 2.2]
<cole-h>
worldofpeace: What's happening with #85417? IIRC, you were thinking of closing it. (I ask because it came up on peti's stream earlier, due to him requesting changes and the conversation being marked as resolved without changes applied)
<djahandarie>
Has anyone used nix to build a "vendored build environment" that can be shipped to another system (that doesn't have nix) to run the build?
<djahandarie>
It seems like it should be possible
fadenb has quit [Quit: killed]
<ornxka>
nix-build -kK --argstr system x86_64-linux --argstr crossSystem i686-linux -A chromiumDev
<thequux[m]>
energizer: I drop a .gitignore file next to shell.nix containing `/result`
<ornxka>
i run this and it builds firefox???
<lordcirth>
djahandarie, you mean run natively? Because it would be easy to build a vm image
<freeman42x[m]>
makefu: got it with pavcontrol, cheers makefu++
<{^_^}>
makefu's karma got increased to 5
<djahandarie>
lordcirth, yeah, natively. Though if you have a link for the VM image method that'd be cool to read about
<djahandarie>
(The basic constraint is the remote system has no internet access and doesn't have nix on it)
<zeta_0>
hello everyone, i'm a self taught junior developer currently looking for a coding job, anyways, are there any nix related jobs that you'd recommend i apply to as a junior developer? https://discourse.nixos.org/c/jobs/23
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol_ has joined #nixos
<zeta_0>
i'm searching all over the internet for remote jobs, so i figured i'd ask here, to see if anyone has some tips
doyougnu has quit [Ping timeout: 250 seconds]
justanotheruser has quit [Quit: WeeChat 2.7.1]
aveltras has quit [Quit: Connection closed for inactivity]
dermetfan has quit [Ping timeout: 265 seconds]
<zeta_0>
well, nevermind, i guess i'm better off asking this on reddit
<peelz>
how are overlays applied? I can't find where the `overlays` parameter goes past the "booter" point
cosimone has joined #nixos
gxt has quit [Remote host closed the connection]
zeta_0 has left #nixos ["rcirc on GNU Emacs 26.3"]
xeron832 has quit [Quit: ERC (IRC client for Emacs 26.3)]
glittershark has joined #nixos
alex57 has joined #nixos
<alex57>
Hi there. I'm trying to get NixOS working on Raspberry pi 4 with this guide - https://nixos.wiki/wiki/NixOS_on_ARM. Unfortunately Installation and Configuration steps are a bit obscure for me. I've downloaded latest aarm64 unstable image and flashed it on my sd card with `dd`, what are my next steps?
aaabbbbbbbbbb has joined #nixos
<aaabbbbbbbbbb>
Hi, does sombody have a working Samba share config; I want public share no username, no password when connecting from Windows machine?
<aaabbbbbbbbbb>
I've been going insane about this, tried a lot of options in samba, but nothing seems to work.
knupfer has quit [Quit: knupfer]
<evils>
alex57: put the sd card into your pi and connect power to your pi
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<alex57>
evils unfortunately, rpi4 doesn't seem to boot at all -- I get "rainbow screen"
<alex57>
should I tweak some configs before trying to boot?
reallymemorable has joined #nixos
iqubic` has joined #nixos
<evils>
alex57: going by my experience with the pi 3, no; you did use an sd_image right?
iqubic` has quit [Remote host closed the connection]
iqubic has quit [Ping timeout: 256 seconds]
<alex57>
evils, yes, as the guide suggested, tried both unstable and 19.09
<alex57>
evils, yes, as the guide suggested. I tried both unstable and 19.09
<{^_^}>
[nixos-homepage] @davidak opened pull request #412 → Add Commercial support page → https://git.io/JfLya
<energizer>
drakonis: like the git config file provides options so you dont have to add them on the cli, i want the same for nix
<drakonis>
you can't extend the current setup
thonkpod has quit [Quit: WeeChat 2.6]
<{^_^}>
[nixpkgs] @Wulfsta opened pull request #85962 → elmerfem: init at release-8.4 → https://git.io/JfLyK
thonkpod has joined #nixos
mupf has quit [Quit: WeeChat 2.7]
mupf has joined #nixos
srid has joined #nixos
aaabbbbbbbbbb has quit [Ping timeout: 265 seconds]
<energizer>
i just want `nix build` to always take `-o nix-result` by default
cosimone has quit [Quit: Quit.]
<ornxka>
nix-build /mnt/kagami/src/nixpkgs/master/default.nix -A pkgsi686Linux.chromium i run this (on x86_64) and it complains "error: unsupported CPU i686" because adoptopenjdk doesnt provide 32-bit binary packages
cosimone has joined #nixos
<ornxka>
is there a way i can just build it myself though?
iqubic has joined #nixos
<symphorien>
I don't think chromium can link at all on x86_32
mupf_ has joined #nixos
<ornxka>
ah, does that command run the toolchain as 32 bit?
<ornxka>
i can confirm that it doesnt
mupf has quit [Read error: Connection reset by peer]
<symphorien>
yes, everything is 32 bits with this command
<ornxka>
ahhh
<ornxka>
nix-build -kK --argstr system x86_64-linux --argstr crossSystem i686-linux -A chromium i tried this but a lot of packages fail with gcc: command not found
<alex57>
evils sorry, I misunderstood you a bit. You provided rpi4 specific image, but how it differs from combined aarch64 image? I why is it preffered. also https://github.com/NixOS/nixpkgs/issues/73828
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<evils>
alex57: i'm not familiar with the pi 4 specifically, maybe try #nixos-aarch64; why that image is preferred seems to be explained in that issue; how it differs, can be ascertained by comparing nixpkgs/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix to sd-image-aarch64.nix; did you try the rpi4 specific image?
<alex57>
evils gonna try, but it looks to be actually the same as aarch64 -- it has the same name
knupfer has quit [Ping timeout: 240 seconds]
<evils>
alex57: the different sd-image products do all have the same name, but have different hashes
jlv has joined #nixos
rgrau has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
reallymemorable has joined #nixos
<mupf>
6hls8gx0c7prqf6gc2s1q9kp5w57jnb4-unit-script-nixos-activation-start[11330]: /nix/store/6hls8gx0c7prqf6gc2s1q9kp5w57jnb4-unit-script-nixos-activation-start: line 22: XDG_CONFIG_HOME: parameter null or not set
<mupf>
Anyone able to help me with this?
shafox has quit [Remote host closed the connection]
<mupf>
exporting XDG_CONFIG_HOME doesn't seem to be enough
<visl>
I'm messing around with nix-shell and default.nix -- how do i create an alias or a small script to put on PATH? i tried adding `alias blah=path/to/script.sh` in shellHook but that doesn't seem to do anything
<iqubic>
How do I enable flash in firefox?
<cole-h>
add `firefox.enableAdobeFlash = true;` to your nixpkgs config
<cole-h>
Or `programs.firefox.enableAdobeFlash = true;` if you want to set it with home-manager
<numkem>
visl: maybe the easiest approach would be to change it in your `.bashrc` as nix-shell will open new bash shell
dermetfan has joined #nixos
emacsomancer has joined #nixos
<alex57>
evils thank you, I managed to boot my rpi with that image
<visl>
numkem: it actually might be the fact that i'm using direnv's `use_nix` in the directory that's causing the issue.. it looks like it works with nix-shell default.nix
<numkem>
visl: interesting, I do the same (using direnv). From I've learned there are some more magic nix-shell does
<evils>
alex57: :D
<cole-h>
lovesegfault: ping
<alex57>
evils it looks strange for me that wiki doesn't provide any clue about proper image for rpi4
<{^_^}>
[nixpkgs] @flokli opened pull request #85965 → make libusb1 dependencies explicit → https://git.io/JfL9v
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #85966 → 20.03 mutter backports → https://git.io/JfL9U
<lovesegfault>
cole-h: I don't think there's any news on the ML
* lovesegfault
checks email
<cole-h>
Yeah, just checked. Nothing, at least on the web archive
<lovesegfault>
yeah, nope
<numkem>
visl: would be super slick to be able to export functions as well and be portable while using your "own" shell (mostly going to be zsh these days I'd assume)
<cole-h>
Is this the same error that was on the old PR lovesegfault?
tgamblin53 has quit [Remote host closed the connection]
<cole-h>
Or is the "cannot find section .dynamic" stuff new
<lovesegfault>
cole-h: yes, but on different pkgs
<lovesegfault>
you can repro with rhash
<lovesegfault>
> cp: setting permissions for 'source': Function not implemented
<{^_^}>
error: syntax error, unexpected $undefined, expecting ')', at (string):306:29
<virus_dave>
... but a script that looks like this:
<virus_dave>
`#!/usr/bin/env nix-shell`
<virus_dave>
`#!nix-shell -i bash --pure -A my-der ./. `
<virus_dave>
`echo NIX_PATH=$NIX_PATH`
<virus_dave>
...shows the env variable empty?
bqv has quit [Remote host closed the connection]
<simpson>
That's a good question! I was going to guess --pure, but you've got it in both spots. The man page doesn't say directly, but maybe the parenting of the invoked shells is slightly different when nix-shell is used as a shebang interpreter. pstree or similar may be able to show you that structure.
<peelz>
gchristensen: what would you think of adding stepping commands to nix-repl? `:si <expr>` to step in, `:so` to step out, etc. that way you could debug complex `let ... in ...` expressions
o1lo01ol_ has quit [Remote host closed the connection]
<gchristensen>
sounds cool!
o1lo01ol1o has joined #nixos
tmp has joined #nixos
<evanjs>
nix repl eval lol
<peelz>
gchristensen: I'll open an issue then if you think it's a good idea. It's not a fully fleshed-out idea yet but I think it's a good starting point
<{^_^}>
[nixpkgs] @flokli pushed 3 commits to release-20.03: https://git.io/JfL7J
<evanjs>
iqubic: I honestly don't know. I haven't used flash in forever, but you could always pin an older version of nixpkgs and use firefox from there
<evanjs>
not sure what the best route for current firefox versions is, though
<iqubic>
I'm able to make it work by just using Google-Chrome for now.
erasmas has quit [Quit: leaving]
Bunogi has joined #nixos
<evanjs>
iqubic: "All plugin related options, except for the adobe flash player, have been removed, since Firefox from version 52 onwards no longer supports npapi plugins "
<cole-h>
evanjs: Curious: does putting the hyphen in the ExecStartPre's contents work?
<cole-h>
(re your comment on that systemd issue)
<evanjs>
cole-h: I've tried, but -- wait lemme cat it to be certain
<evanjs>
iqubic: and wait it looks like enableAdobeFlash is still in tree IIUC?
proofofkeags has quit [Ping timeout: 260 seconds]
<cole-h>
It is, but because of the issue I linked earlier, it seems to be broken (or at least, not fixed)
Desetude has quit [Quit: WeeChat 2.7.1]
<evanjs>
oh okay I missed that
<evanjs>
cole-h: I'm assigning a multiline script to ExecStartPre. Prefixing each line with - doesn'
alex57 has quit [Remote host closed the connection]
<evanjs>
doesn't work, and shows each line, well, just like that, starting with a -
<iqubic>
evanjs: I'm able to set the value of enableAdobeFlash to true, but that doesn't make flash work for me.
<evanjs>
iqubic: yeah, as col-h mentioned earlier, none of them seem to work atm --> #76943
<virus_dave>
ok so, if i cannot rely on nix-shell shebangs, my next thought is to have a wrapper script which just does something like `nix-shell --pure ./. -A my-der --command "my-command $@". What's the appropriate way to pass arbitrary positional parameters to `my-command` this way? $@ seems to not work quite right
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfL7o
Aishawhite has quit [Client Quit]
emilis has quit [Quit: Leaving]
<abathur>
virus_dave: may help to better understand what you're trying to accomplish? I don't recall a condition where NIX_PATH still mattered once inside nix-shell
justanotheruser has quit [Ping timeout: 256 seconds]
reallymemorable has joined #nixos
<abathur>
or why you're trying to override it?
teto has quit [Ping timeout: 272 seconds]
mzan has quit [Ping timeout: 256 seconds]
mbrgm has quit [Ping timeout: 265 seconds]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
<virus_dave>
OK, so the difference between the two is that the non-shebang case is executing /etc/bashrc, which is what's setting this, whereas the shbang version is not (unless i change that `-i bash` to `-i "bash -i"`)
<virus_dave>
for context, i'm trying to convert a use of Bazel on mac to be only used from within a minimal nix pure environment. This allows bazel to see the same minimal, deterministic environment from different machines, which makes shared build and test result caching highly effective.
<virus_dave>
some of those things done via bazel (in particular, some tests) require spawning their own nix-shell with particular packages, which tests then make use of
dansho has joined #nixos
jb55 has joined #nixos
ixxie has quit [Quit: Lost terminal]
dingenskirchen has quit [Quit: dingenskirchen]
cjpbirkbeck has quit [Quit: cjpbirkbeck]
dingenskirchen has joined #nixos
<abathur>
on the basic behavior, --command runs in an interactive shell
<abathur>
and -i "bash -i" is of course also setting up an interactive shell
<abathur>
but it's worth realizing that nix-shell is already a little bit of a hack for dev/isolation environments (i.e., it's *for* experimenting with packing stuff), so there are some rough edges relative to what you'd design precisely for the purpose
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JfL5I
srid has quit [Quit: Connection closed for inactivity]
gustavderdrache has quit [Quit: Leaving.]
<abathur>
it may also be helpful to use something like `env -i` to genuinely clear the environment and assert more explicit control over it
proofofkeags has quit [Ping timeout: 265 seconds]
<abathur>
depending on exactly what you're doing, it may also make more sense to build a .nix file and run it with nix-build, where it'll run in a more-isolated build environment
<peelz>
evanjs: sorry for pinging you directly but do you think you could help me out with something? trying to figure out how to use `lib.composeExtensions`
<cole-h>
Or you could post your question here and whoever can help, will help :)
<peelz>
sure
<peelz>
cole-h: https://0x0.st/ijyd.txt I'm trying to create an overlay system for my kernelPackages
<peelz>
but I can't get this to eval
<peelz>
(I've asked a couple times but couldn't seem to get anybody intestered :P)
chagra_ has quit [Ping timeout: 260 seconds]
<cole-h>
Well, first I would wrap the composeExtensions stuff in a paren
<cole-h>
s
<peelz>
well I'm just passing that function to foldl
ebopp has quit [Remote host closed the connection]
<peelz>
(fold takes 3 params)
<Miyu-saki>
To be even more interesting, `nix-shell` is actually a wrapper to a derivation build which then enters the (build) environment. Makes me think that a flag like --extract to extract said derivation would be cool. :)
<virus_dave>
@abathur can you expand on this slightly? What do you mean?
<cole-h>
(so I don't need a separate file/`overlay = import ...` for each)
sophiag has joined #nixos
<peelz>
cole-h: uhh I'm even more confused now
<cole-h>
Perfect :D
rogue_koder_ has quit [Ping timeout: 240 seconds]
<peelz>
cole-h: I'm trying to compose overlays together in `createPkgs`, then pass that to `linuxPackages.extend`
<abathur>
virus_dave: any specific part? :)
WhatisRT has quit [Ping timeout: 260 seconds]
<cole-h>
peelz: tbh I don't even know why this worked. I was being hand-held by infinisil -- when they show up, might get some more help out of them
<peelz>
cole-h: although this seems to work but Idk why I get errors in my nix config: pkgs.linuxPackages_latest.extend (lib.foldl lib.composeExtensions (final: super: {}) [])
<energizer>
Miyu-saki: is that different from nix-build?
<peelz>
cole-h: hmm alright, thanks anyhow :)
<virus_dave>
i'm trying to understand what the "create a nix file and run it with nix-build" would do or how it would work / help
<infinisil>
o/
<cole-h>
Oh hi
<peelz>
infinisil is here!
<cole-h>
infinisil: Maybe you can help peelz do the thing then :)
<peelz>
lol
<Miyu-saki>
energizer: What I mean to say is that you have a dry-run output which exports a Nix file.
<Miyu-saki>
Which you can then run with `nix-shell ./foo` or whatvere.
<virus_dave>
i want THING to invoke $PATH/bazel, such that when bazel queries its environment, it always sees only a small number of things that are the same on every machine (that's at the same commit hash for the repo in question)
rogue_koder_ has joined #nixos
<Miyu-saki>
A limitation of this is that it'd only populate `buildInputs`
chagra_ has joined #nixos
<infinisil>
peelz: What's the code and error? (always a good thing to post those upfront btw)
<energizer>
Miyu-saki: i see
<virus_dave>
currently i'm trying to use a shell script shebang'd for nix-shell to act as THING.
<Miyu-saki>
Because nix-shell isn't exactly cross-compile aware.
<peelz>
infinisil: well it keeps changing depending on what I try >_<