<jtojnar>
lurpahi: maybe also add a comment why that we cannot use cpio since it does not support not setting setgid bit
<lurpahi>
I don't know where I'd do that.
<jtojnar>
above the second 7z should be fine
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
Baughn has joined #nixos
npmccallum has quit [Quit: npmccallum]
c0ffee152 has joined #nixos
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jluttine has quit [Ping timeout: 248 seconds]
<ottidmes>
I would have expected: 7z x -so $src | 7z x -si -tcpio, to work too, but seems not to work as I expected it to, only got it working with an explicit name like jtojnar did
NightTrain has quit [Ping timeout: 272 seconds]
<jtojnar>
ottidmes: it would be nice if p7zip supported decompression and unpacking in one step like tar does
NightTrain has joined #nixos
goibhniu1 has joined #nixos
<ottidmes>
jtojnar: yeah, tried that too, hoped it would just work with e.g. -tcpio.7z, but alas
c0ffee152 has quit [Ping timeout: 245 seconds]
jluttine has joined #nixos
<{^_^}>
[nixpkgs] @oxij opened pull request #63638 → Revert "Remove amdadlsdk and amdappsdk." → https://git.io/fjwcU
ericsagnes has quit [Ping timeout: 258 seconds]
mexisme_ has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjwcY
<day|flip>
question. anyway to add to global $PATH?
npmccallum has joined #nixos
ericsagnes has joined #nixos
ekleog has joined #nixos
jluttine has quit [Ping timeout: 268 seconds]
Synthetica has quit [Quit: Connection closed for inactivity]
DrAtomic has joined #nixos
<jtojnar>
day|flip: on NixOS, you generally add a package to environment.systemPackages in your configuration.nix
<infinisil>
day|flip: But you can also add something to PATH with environment.variables.PATH = [ "/foo/bar" ]
<day|flip>
na. i was plaining to install youtube-dl from pip. I was thinking I might need to make a global $PATH for it. since i have mpv set for qutebrowser to run all my streaming need. starting to get error. since youtube-dl package it to old already
<clever>
day|flip: why not use the youtube-dl in nixpkgs?
<simpson>
day|flip: Ooh, brand-new. Yeah, that could take a moment to be propagated out to distros. You can, of course, alter your local nixpkgs as needed; this happens to be a regular ritual for those of us who need fresh youtube-dl.
stepcut has joined #nixos
<day|flip>
why i was thinking taking a simple route. and maybe add a PATH to youtube-dl from a pip install
npmccallum has quit [Quit: npmccallum]
<simpson>
Sure, I guess. Not sure how that's simple, though; how does one measure simplicity? At any rate, that wouldn't suffice for my needs; I use youtube-dl as a dependency of mpv, and I build mpv with Nix, so I might as well keep it all in nixpkgs. Far easier.
<aanderse>
just rebased on upstream master
<aanderse>
now all nixos tests fail with: meson.build:303:0: ERROR: Dependency "gstreamer-check-1.0" not found, tried pkgconfig
<aanderse>
-_-
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
init_6 has joined #nixos
stepcut has quit [Ping timeout: 245 seconds]
day|flip has quit [Remote host closed the connection]
<mac10688>
If I run postgresql in a nix-shell, will i have any trouble connecting to it if I run an application outside of that shell?
niten has quit [Remote host closed the connection]
<mac10688>
I don't think I will but I'm still trying to wrap my head around how contained a nix-shell environment is. Like if I need to open up ports like a docker-container
WhittlesJr has quit [Ping timeout: 256 seconds]
oborot has joined #nixos
<clever>
mac10688: all nix-shell does is set env vars, no namespacing occurs
<mac10688>
ah ok, cool
stepcut has joined #nixos
ottidmes has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @bdesham opened pull request #63643 → Video transcoding → https://git.io/fjwCV
stepcut has quit [Remote host closed the connection]
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewr has quit [Ping timeout: 250 seconds]
drewr has joined #nixos
init_6 has quit []
dongcarl has quit [Ping timeout: 250 seconds]
dongcarl has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
slyfox has quit [Ping timeout: 245 seconds]
slyfox has joined #nixos
bpye has joined #nixos
<bpye>
Hey - this might be a silly question - if I'm booting from ZFS and enable ZFS encryption on a pool but use it only on a data set that isn't part of root - will I still be able to boot?
<clever>
bpye: if its configured to not boot that dataset via fileSystems.whatever, i would expect it to boot
<clever>
s/boot/mount/
<bpye>
I was only worried because I wasn't sure if the bootloader would still work
<lurpahi>
I don't know what most of this is, sadly.
<clever>
lurpahi: and if you add a bash function to the unpackCmdHooks like this, the default unpackPhase will run it to unpack things
<lurpahi>
… I can't really tell what you're saying.
<clever>
its just an optional thing to make it cleaner
<clever>
lurpahi: it also looks like cpio can unpack it just fine
<lurpahi>
When I had cpio in the expression, it gave me "cpio: …: Cannot change mode to rwxrwsrwx: Operation not permitted".
<clever>
lurpahi: ah, i only tested cpio outside of nix so far
<lurpahi>
There was talk about it earlier here, which is where I got the second 7z in the unpackPhase from. (thanks to jtojnar)
marusich has joined #nixos
<fasd>
how long does it usually take for nix bug fixes to be merged into the release? I'm currently at the mercy of https://github.com/NixOs/nix/issues/2405 which was fixed 10 days ago in the flakes branch
<lurpahi>
clever: I tried it as the page I got the package from (linked as the 'homepage' in the nix expression I posted earlier) said to: "7z e -so ….cpio.7z | cpio -i".
<clever>
lurpahi: heh, i just did exactly that after reading the man page for 7z
<clever>
and it still works, `Cannot change mode to rwxrwsrwx: Operation not permitted` is just a warning
<lurpahi>
That was all it gave me before saying it failed.
<clever>
oh, interesting
<clever>
the `ls -ltrh` i left in my function for debug, made it not fail
wfranzini has quit [Remote host closed the connection]
<clever>
lurpahi: oh, i see the problem its the sticky bit
wfranzini has joined #nixos
jasongro` has joined #nixos
<lurpahi>
¯\_(ツ)_/¯
jasongrossman has quit [Ping timeout: 268 seconds]
<lurpahi>
I added the unstated but not unexpected dependencies gtk2 and alsaLib, and now I have an even more confusing error than the cpio one.
<clever>
cc1: error: CPU you selected does not support x86-64 instruction set
<lurpahi>
That's it.
<clever>
lurpahi: the build script inserted -march=athlon-xp
<clever>
jackmaster-0.0.2/README:If you have a different CPU than athlon-xp, you have to adjust the
<mac10688>
Anyone know of a good way to explain the difference between a nix-shell and nix-env and nix repl?
<lurpahi>
I guess I should've read the README.
<clever>
mac10688: nix-env adds things to ~/.nix-profile, nix-shell sets up env vars, nix repl lets you eval chunks of nix
<mac10688>
thank you, that helps
o1lo01ol1o has joined #nixos
c0ffee152 has joined #nixos
<clever>
lurpahi: updated my gist again
NightTrain has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
jasongro` has quit [Remote host closed the connection]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<clever>
lurpahi: it compiles!
<clever>
lurpahi: gist updated one last time, i'm off to bed, it compiles fully with nix now!
cjpbirkbeck has quit [Quit: Quitting now.]
<lurpahi>
clever: Sorry, I'm not in the habit of checking IRC regularly again yet—but thanks, I wouldn't have been able to make it work at all myself.
<ldlework>
coi lurpahi
<ashkitten>
what's the preferred way to blackhole an ip? if possible i'd also like to explore ways to do this dynamically based on dns resolution but not needed
<ashkitten>
i basically just want them to not know i exist from their server's point of view
<fasd>
I just did a fresh install and when I run nixos-rebuild it says error: file ‘nixpkgs/nixos’ was not found in the Nix search path (add it using $NIX_PATH or -I)
alp has quit [Ping timeout: 258 seconds]
<fasd>
I added it in using nix-channel, but now it's rebuilding all my packages
<fasd>
is there a way to fix this in my configuration.nix?
<tilpner>
fasd: What's the value you set nixpkgs to? Did you update the channel after adding it?
<fasd>
before I did that nix-channel --list didn't output anything
<li_matrix>
what are all those broken patch sha256 about?
<li_matrix>
I guess if youre using the cache it wont pick it up. I get bugs that most users here never run into.
endformationage has quit [Ping timeout: 244 seconds]
<li_matrix>
acpi-call's patch sha is broken with nix2.2.2
ilya-fedin has quit [Quit: Connection closed for inactivity]
jasongrossman has joined #nixos
iyzsong has joined #nixos
qqlq has joined #nixos
asheshambasta_m has joined #nixos
xelxebar_ has joined #nixos
init_6 has joined #nixos
xelxebar has quit [Ping timeout: 256 seconds]
NightTrain has joined #nixos
marusich has quit [Remote host closed the connection]
c0ffee152 has quit [Ping timeout: 245 seconds]
<asheshambasta_m>
So I'm trying to set up a brand new Threadripper PC with NixOS. Booting with the USB live disk shows the grub menu and then once I select an entry, I see some boot messages and then a black screen. What can be done to troubleshoot this?
dansho has joined #nixos
alp has joined #nixos
<lurpahi>
asheshambasta_m: Have you tried anything other than NixOS to see if the issue is specific to it?
<asheshambasta_m>
not yet, should I?
<lurpahi>
That's what I'd do first.
<lurpahi>
Something known to be more reliable/compatible.
<tilpner>
asheshambasta_m: You can try to capture those messages, they might be relavnt
<tilpner>
*relevant
<lurpahi>
Maybe Debian. ¯\_(ツ)_/¯
<tilpner>
I usually use the Ubuntu live system for "should boot on anything"
<asheshambasta_m>
ok, and what if that boots? :-)
<tilpner>
Then you win fun :/
<lurpahi>
Then come back here with a log of the messages you get when you try to boot NixOS, I guess.
<tilpner>
You'd probably start with looking at what modules Ubuntu loads and checking for if they are available in the NixOS system you're trying to boot
<tilpner>
Yeah, messages are a lot better than guessing at random
drakonis_ has joined #nixos
<tilpner>
Take a video if they're only visible for a short time
<asheshambasta_m>
it boots in the nomodeset grub entry, just tried that
drakonis has quit [Ping timeout: 246 seconds]
<asheshambasta_m>
and since this is my first nixos "re-installation"; and I have a laptop with nixos. If I want to replicate that system, my understanding is that I need to copy the configuration.nix to this machine, tinker with it a little bit and install; correct?
<Arahael>
asheshambasta_m: Dont' forget about differences you might have in hardware_configuration.nix
<asheshambasta_m>
yeah that is an installation step to generate that file, as per the docs.
<asheshambasta_m>
I'm not sure if booting the live usb in the nomodeset option is going to correctly detect my hardware
<asheshambasta_m>
(it doesn't detect the display driver properly if I start the display manager with `systemctl start display-manager`)
<Arahael>
asheshambasta_m: Simple option is to try it with Ubuntu. Ubuntu's *usually* good with recent stuff.
<Arahael>
Then you just have to figure out how ubuntu does it.
<asheshambasta_m>
sounds quite painful though :-)
<asheshambasta_m>
+ my hardware isn't exactly recent. The GPU has been out for a while now.
<ar>
asheshambasta_m: what gpu is this?
<asheshambasta_m>
Radeon RX580
<ar>
should be good, they do have decent support in kernel.
<ar>
oh, you've already tried nomodeset
<ar>
but you shouldn't need nomodeset on an rxx580. weird
<asheshambasta_m>
yeah, although the live disk can start the display, it detects the wrong res.
<asheshambasta_m>
trying a reboot, this is a 19.03 live usb
<asheshambasta_m>
and when booting with default, I can confirm that there are no error messages on the boot logs, just that the screen blanks once I see the welcome to nixos message
m0rphism has joined #nixos
<ctp>
Hi folks, I try to install home-manager as regular user but it somehow tries to reach root's /run/user/0:
<asheshambasta_m>
the monitor doesn't turn off (due to no signal) either, it seems like there is some signal still but no display.
<asheshambasta_m>
ar: will it be advisable to proceed with installing in nomodeset?
Anton-Latukha has joined #nixos
<ar>
asheshambasta_m: after installing you could get a newer kernel
<mog>
how can i pass a variable into a nix-shell --pure instance
ddellacosta has quit [Ping timeout: 245 seconds]
<ar>
asheshambasta_m: though it still surprises me you'd need it for an rx580
<asheshambasta_m>
ar: and is there somewhere I can see which kernel introduces support for what hardware? And which kernel is "packaged" with which version of nixos?
alp has quit [Ping timeout: 258 seconds]
<asheshambasta_m>
no useful information with the debug entry either, screen just blanks out after a bunch of success messages
<asheshambasta_m>
I'll first try with a newer ISO if that doesn't work, we'll see.
<tilpner>
ctp: What are your $XDG_CONFIG_HOME and $HOME?
<tilpner>
asheshambasta_m: Do you know where to find the newer ISO?
<tilpner>
asheshambasta_m: In your place, I would use the minimal ISO to install a non-graphical system, and then debugging of the graphics should be quicker
<asheshambasta_m>
tilpner: I see, thanks for pointing that out. I'll download that
c0ffee152 has joined #nixos
<tilpner>
asheshambasta_m: If you install without graphics, a new kernel shouldn't help you much
<asheshambasta_m>
yeah, the thing is, if I just see a prompt on boot, that will itself be a good sign
<asheshambasta_m>
booting without graphics is what currently "fails"
<tilpner>
Oh, so you've already tried the minimal ISO?
<tilpner>
How are you putting the ISO on your USB stick?
<asheshambasta_m>
the screen stays on, I can issue blind commands (poweroff shuts down the machine)
rfold has joined #nixos
<asheshambasta_m>
the ISO I have on my USB (put via dd: and I've used the same USB to install nixos on my laptop, so the image is valid) isn't the minimal installer but the default one from the download page.
NightTrain has quit [Ping timeout: 268 seconds]
<tilpner>
Well, I forgot that the graphical ISO boots to a shell first and requires manually starting the DE
<tilpner>
So, uhh, my reasoning above wasn't great
<asheshambasta_m>
yeah
ym555 has quit [Ping timeout: 245 seconds]
<asheshambasta_m>
it could also be my hardware
<tilpner>
New kernel might still help, but don't get your hope up
<asheshambasta_m>
so, I figured it out. I had also bought a new display to pair with my other one. And that monitor was off. When the grub menu pops up, it displays it on my other display, but once I select an entry, some splash messages appear on the on display and then switch to the other display, that was off.
loka has joined #nixos
<asheshambasta_m>
However, once the graphical display is on, it now only detects the newer display and I cannot see the other display in the list of displays
NightTrain has joined #nixos
<loka>
Hi, the nix-index tool doesn't work with the latest nixpkgs, is there any tool with similar functionality?
<tilpner>
"Doesn't work" how?
c0ffee152 has quit [Ping timeout: 244 seconds]
<loka>
It says "error: cannot coerce a set to a string" when I run nix-index today
<tilpner>
On which nixpkgs version?
<tilpner>
Do you have any overlays configured?
<loka>
nixos-unstable channel, the git rev is a1dd419c1ffacea87eba066a2bb332e03cb68f66, I tried re-run after removing all my overlays, it failed with..unknown exit code?
<tilpner>
I'll give it a run
<statusfailed>
I'm using nix (the package manager) to develop with Haskell; does anyone have a guide on how to profile my executable?
<chrisaw>
Does anyone know of a way to pull a pypi package from a private repo via nix? I see the fetchPypi function but I'm not seeing how I can tell it to use a private repo.
<eyJhb>
I get status=Unknown most of the time.... So, that might be it
asheshambasta_m has joined #nixos
polman has quit [Ping timeout: 248 seconds]
polman has joined #nixos
c0ffee152 has quit [Ping timeout: 248 seconds]
Serus has joined #nixos
morr has joined #nixos
<eyJhb>
Do we agree on, that it should fire a event, each time it decrements the power? E.g. when I go from 28% to 29%? Or else events like `SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-5]", RUN+="/usr/bin/systemctl hibernate"` won't work, seeing as it needs the capacity
NightTrain has joined #nixos
<davidtwco>
I've got an issue with OpenVPN on NixOS. I'm unsure if this is a NixOS or OpenVPN issue, I thought I'd best ask here just in case, I've not hit this with other distros. I'm not receiving packets back from the VPN tunnel w/ proxy.sh - running curl --interface or ping -I with the tunnel times out. This gist has the configuration/logs/firewall rules/etc: https://gist.github.com/davidtwco/4b4265c9f4c49c0488326ad0a1dcd0b3
<chrisaw>
Guys I've got a set of 2 packages - both of which need 2 particular strings (a set of credentials) and I'm wondering what the simplest way to share the strings between those two packages is?
<__monty__>
chrisaw: Put them in their own derivation?
<chrisaw>
Hmm could do - if I use config instead though - how can I *add* values to config without overriding the whole config list?
<chrisaw>
I notice when I add: config.example = "123"; that the entirety of config is wiped out for the rest of that package overlay. Would be nice to just set a couple of variables within the overlay.
alp has quit [Ping timeout: 258 seconds]
<__monty__>
config // {example = "123";}; # should work?
alp has joined #nixos
sheeldotme has joined #nixos
arjen-jonathan has quit [Ping timeout: 250 seconds]
<VS2>
Hi everyone! I'm looking for some help. I'm trying to install 'font-awesome_4' package, but it fails. I added it to `fonts.fonts` list (where I already have some other fonts that were installed successfully) and during nixos-rebuild it fails with `error: undefined variable 'font-awesome_4'`
<tilpner>
VS2: Did you prefix the other fonts with pkgs., but not this one?
<VS2>
I use `with pkgs; []` syntax
<VS2>
the thing is that font-awesome_5 also fails
<tilpner>
That should work then
<VS2>
but font-awesome-ttf succeedes
<VS2>
I thought that maybe underscore causes it to fail, but I have `liberation_ttf` in the list as well, which works fine
<tilpner>
It doesn't seem to be a license thing either
nD5Xjz_ has joined #nixos
<tilpner>
Does it work in "nix repl '<nixpkgs>'"?
<tilpner>
:b font-awesome_4
alp has quit [Ping timeout: 258 seconds]
<nwspk>
VS2: are you able to enter a nix-shell with font-awesome_4? works for me btw
<VS2>
nope, `undefined variable 'font-awesome_4' at (string):1:1
<nwspk>
$ nix run nixpkgs.font-awesome_4
<tilpner>
VS2: Does it work with nix repl channel:nixos-unstable
nD5Xjz has quit [Ping timeout: 258 seconds]
thc202 has joined #nixos
clacke_movim has left #nixos [#nixos]
<VS2>
nope, `nix run` failed as well
<VS2>
I am already on -unstable channel :/
<tilpner>
VS2: What about _5?
wfranzini has quit [Remote host closed the connection]
<tilpner>
It seems _4 was removed on unstable
wfranzini has joined #nixos
<VS2>
that's it! _5 worked in unstable repl
NightTrain has quit [Quit: Lost terminal]
v88m has quit [Ping timeout: 245 seconds]
<VS2>
thanks, now I think I know what to do
iyzsong has joined #nixos
<tilpner>
Any ZFS users around? Can anyone confirm the FPU GPL symbol patch was backported to 4.19.52, and the export patch is not added by nixpkgs?
<twoolie>
hi all, anyone know what namespace/module/universe fetchFromGithub comes from? im trying to use if from packageOverrides in a container config and can't figure out where to import it from...
<tilpner>
twoolie: It's pkgs.fetchFromGitHub
<tilpner>
So self.fetchFromGitHub or super.fetchFromGitHub in an overlay
alp has joined #nixos
<{^_^}>
[nixpkgs] @doronbehar opened pull request #63648 → sccache: init at 0.2.8 → https://git.io/fjw4n
<twoolie>
derp, yep, that fixed it. thanks tilpner
Anton-Latukha has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Ping timeout: 272 seconds]
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alp has joined #nixos
xkapastel has joined #nixos
<fasd>
a fresh install and when I run nixos-rebuild --upgrade I get an error saying file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
<fasd>
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignoring
<fasd>
and nix-channel --list doesn't output anything
<fasd>
is there anything I can put in configuration.nix to fix this?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
asheshambasta_m has quit [Quit: Leaving.]
pie_ has joined #nixos
<mpickering>
`nix build` doesn't treat `default.nix` in a special way like `nix-build` does?
<clever>
mpickering: i think you want `nix build -f .`
<mpickering>
I was just writing some documentation and it I wrote `nix build eventlog2html` and then tried it and was surprised it didn't work
<mpickering>
so `-f` it is
Mainflaw has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @vcunat pushed 269 commits to staging-19.03: https://git.io/fjwR2
<nilsirl[m]>
I am quite new to nixos and would like to know what is the best development workflow/setup I can get for working on a open source project that's already in nixpkgs
<clever>
justanotheruser: you want to be editing still.nix
<justanotheruser>
oh ok, thanks
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<{^_^}>
[nixpkgs] @deepfire opened pull request #63661 → new: python-modules/tinytag at 1.2.2 → https://git.io/fjw0O
o1lo01ol1o has joined #nixos
sakalli_ has quit [Client Quit]
ddellacosta has joined #nixos
tboston has joined #nixos
Shouou has joined #nixos
Shouou has quit [Client Quit]
orivej has joined #nixos
karetsu has joined #nixos
sgflt has joined #nixos
tboston has quit [Read error: Connection reset by peer]
<sgflt>
does anyone have advice on how to setup cups printers through configuration.nix? the wiki tells me to add them manually, but i don't want to do that on every machine.
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<infinisil>
sgflt: So while that PR isn't merged yet, you could test it yourself, and ideally give feedback as to whether it works, which would encourage people to get it merged faster
<{^_^}>
[nixpkgs] @NeQuissimus pushed 5 commits to release-19.03: https://git.io/fjw0E
tboston has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 248 seconds]
zupo has joined #nixos
stepcut has joined #nixos
zupo_ has joined #nixos
zupo has quit [Ping timeout: 258 seconds]
karetsu has quit [Quit: WeeChat 2.4]
zupo_ has quit [Ping timeout: 258 seconds]
eof has quit [Quit: eof]
eof has joined #nixos
acarrico has quit [Ping timeout: 258 seconds]
petercommand has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
karetsu has joined #nixos
<sgflt>
infinisil: i'm not confident enough with nixos yet, i've just starting messing with writing my own derivations. unless it's really easy to integrate these changes into a custom configuration? in my case, i even need to bundle a pdd =(.
<sgflt>
*ppd
alp has quit [Ping timeout: 258 seconds]
<karetsu>
what package is perf in under nixpkgs? I've got a very annoying kworker process annihilating one of my cores
drakonis has joined #nixos
<nilsirl[m]>
Neovim doesn't have syntax highlight on alacritty on sway. It works if I set TERM to xterm-256color
<nilsirl[m]>
But I don't really want to do that
<rnhmjoj>
karetsu: linuxPackages.perf
alp has joined #nixos
<andi->
nilsirl[m]: whats $TERM set to in alacritty before you set it?
drakonis_ has quit [Ping timeout: 259 seconds]
<Mic92>
tilpner: But was it not already exported in older kernels?
alex`` has quit [Ping timeout: 268 seconds]
alex`` has joined #nixos
<infinisil>
,locate bin perf
<{^_^}>
Found in packages: linuxPackages_4_4.perf, linuxPackages_4_9.perf, linuxPackages_4_14.perf, linuxPackages_4_20.perf, linuxPackages-libre.perf, linuxPackages_xen_dom0.perf, linuxPackages_latest-libre.perf, linuxPackages_hardkernel_4_14.perf, linuxPackages_latest_xen_dom0.perf, linuxPackages_testing_bcachefs.perf, linuxPackages_testing_hardened.perf
pie_ has quit [Remote host closed the connection]
<nilsirl[m]>
andi-: alacritty
<karetsu>
rnhmjoj++
<{^_^}>
rnhmjoj's karma got increased to 2
freeman42x has joined #nixos
pie_ has joined #nixos
Guanin has joined #nixos
<karetsu>
so the manual says that wayland is not supported under the nvidia drivers, does this mean it just doesn't work or that it works but any issues are on me?
balder11 has joined #nixos
<Yaniel>
it means there are snakes
<Yaniel>
nvidia drivers don't implement an API that all wayland compositors use
<karetsu>
was hoping to give myself a wayland toy project to work on
<Yaniel>
essentially everyone is pissed at nvidia for refusing to implement the de facto standard API for the past almost decade
<Yaniel>
and nobody wants to maintain an nvidia-exclusive code path that may or may not break at any time (and from what I've heard doesn't really suit wayland's design)
zachk has joined #nixos
<infinisil>
sgflt: A config for this might look like `hardware.printers.ensurePrinters = [ { name = "<printer name>"; deviceUri = "ipp://..."; model = "..."; } ]`
<karetsu>
shame I need cuda cores for work :(
karetsu has quit [Quit: WeeChat 2.4]
zachk has quit [Remote host closed the connection]
<infinisil>
sgflt: If you feel like testing it :)
zachk has joined #nixos
zachk has quit [Max SendQ exceeded]
zachk has joined #nixos
<sonercirit[m]>
does anyone else have issues with spotify stuttering?
<zachk>
spotify has hung my whole system and pauses between songs a bunch and seems to lock up alot since its latest update, but I use it on windows 10
IRC-Source_34 has joined #nixos
<balder11>
Hi. I am trying to allowUnfreePredicate for installing dropbox but am getting an error as described in this pastebin: https://pastebin.com/raw/W3SJtPcr
<balder11>
Is dropbox using firefox-bin or something?
Okinan has quit [Quit: Konversation terminated!]
MmeQuignon has joined #nixos
IRC-Source_34 has quit [Remote host closed the connection]
<clever>
balder11: i would expect firefox to still work though
acarrico has joined #nixos
<clever>
nix-build '<nixpkgs>' -A dropbox --arg config '{ allowUnfreePredicate = let whitelist = ["dropbox"]; parsePkgName = (pkg: (builtins.parseDrvName pkg.name).name); in (pkg: builtins.elem (parsePkgName pkg) whitelist); }' --arg overlays '[]'
<clever>
balder11: i can reproduce the problem with this
<balder11>
clever: firefox-bin is unfree right? as far as I understand dropbox is trying to install this unfree package which has not been whitelisted
zupo has joined #nixos
<clever>
balder11: oh, *looks*
<clever>
[clever@amd-nixos:~/apps/nixpkgs]$ nix-build '<nixpkgs>' -A firefox-bin --arg config '{}'
<clever>
error: Package ‘firefox-bin-66.0.5’ in /nix/store/xcn5jx4di3fbkfgdv3bjmj3ap3p65k9z-nixos-19.09pre179307.bc94dcf5002/nixos/pkgs/applications/networking/browsers/firefox/wrapper.nix:176 has an unfree license (‘unknown’), refusing to evaluate.
<clever>
balder11: yep, so you need to also add firefox-bin to the whitelist
<balder11>
clever: right, hm. I will try to see if I can avoid this with an overlay. Looking at the github commits firefox-bin is not critical the apckage maintainer only added this bc. dropbox needs to open a browser on login
<balder11>
thanks for the help
justanotheruser has quit [Quit: WeeChat 2.4]
justanotheruser has joined #nixos
Quarub has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
zupo has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
balder11 has quit [Quit: Page closed]
Quarub has quit [Quit: Page closed]
zupo has quit [Ping timeout: 248 seconds]
o1lo01ol1o has joined #nixos
oborot has quit [Ping timeout: 246 seconds]
alex`` has quit [Ping timeout: 244 seconds]
o1lo01ol1o has quit [Ping timeout: 272 seconds]
alex`` has joined #nixos
<{^_^}>
[nixpkgs] @domenkozar pushed to master « Add configurationLimit to systemd-boot to prevent running out of disk space »: https://git.io/fjwEx
is_null has joined #nixos
<sgflt>
infinisil: alright, i will give it a shot. thanks!
<sgflt>
on another note: how can i disable suspend completely? i've tried powermanagement.enable = false;, however something still suspends my machine (which causes it to kernel panic and freeze)
Guest20 has joined #nixos
<Guest20>
Is it possible to have something like an "inline module" with nixos? So I can set options multiple times in the same file and they get merged by the module system.
<tilpner>
And performance measurement confirms that idea
<tilpner>
Mic92: I interpreted it as that too (lts maintainers backporting). I don't know, and it could still have been their automatic backporting bots
<Mic92>
tilpner: well, if the patch applies to the 4.9er kernel as well, a pr should be straight forward no?
<Mic92>
We can have it on stable as well
<tilpner>
Yes, I just wanted to confirm with you
imalison has joined #nixos
halfbit has joined #nixos
<tilpner>
4.14 is affected, 4.9 is not
o1lo01ol1o has quit [Remote host closed the connection]
hmpffff has joined #nixos
o1lo01ol1o has joined #nixos
<tilpner>
Which is unexpected, I thought they'd backport to all LTS or none
* tilpner
knows nothing of kernel backporting policies
Neo-- has joined #nixos
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #63663 → protobuf: remove 3.4 and 3.5 → https://git.io/fjwul
drakonis has quit [Ping timeout: 250 seconds]
Guest20 has quit [Remote host closed the connection]
zfnmxt has quit [Changing host]
zfnmxt has joined #nixos
drakonis has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Infinisil pushed to master « maintainers: Update my email »: https://git.io/fjwuM
<{^_^}>
[nixpkgs] @arcnmx opened pull request #63666 → rust: fix building in debug mode → https://git.io/fjwuS
o1lo01ol1o has quit [Ping timeout: 272 seconds]
zupo has joined #nixos
acarrico has quit [Ping timeout: 248 seconds]
zupo has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
zupo has joined #nixos
zfnmxt has quit [Quit: Bye!]
zupo has quit [Client Quit]
zfnmxt has joined #nixos
zupo has joined #nixos
arjen-jonathan has joined #nixos
zupo_ has joined #nixos
zupo has quit [Ping timeout: 244 seconds]
orivej has joined #nixos
<{^_^}>
[nixpkgs] @gleber opened pull request #63667 → openjdk8: swtich darwin to adoptopenjdk8 at jdk8u212-b04 → https://git.io/fjwzT
<zachk>
do I need to modify the #! shebang for bash scripts from /bin/bash to something else, or does that work just fine on nixos?
<tilpner>
/bin/bash does not work on NixOS by default
<tilpner>
Prefer #!/usr/bin/env bash or an absolute path
<tilpner>
IIRC stdenv also automatically patches this, and you can use patchShebangs to do it yourself
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @bake opened pull request #63668 → Gitolite: Make directory readable for the group → https://git.io/fjwzq
<etu>
zachk: /bin/sh is symlinked as well, if you don't need bash features. But tilpner's suggestions is the right answer for bash. But yeah, fyi :)
MmeQuignon has joined #nixos
abathur has joined #nixos
sgflt has quit [Quit: WeeChat 2.3]
Rusty1 has quit [Quit: Konversation terminated!]
Neo-- has quit [Ping timeout: 245 seconds]
<abathur>
looking for thoughts/patterns on single-sourcing some variables that I currently use in a bash script, and in a python file run as a service
<tilpner>
abathur: Emit as script that sets environment variables, call from both places?
<abathur>
should've added the script ends up in my profile; since I have a nix config to set up the service and it isn't able to pull from my shell profile, I've ended up with some of the variables duplicated there
linarcx has quit [Quit: WeeChat 2.5]
<abathur>
I've waffled a little on whether to just manage it all with nix and build the config out into a shell script from there
knupfer has quit [Quit: knupfer]
<{^_^}>
[nixpkgs] @adisbladis pushed to master « poetry: Add to all-packages.nix »: https://git.io/fjwzs
<abathur>
(I'd eventually like to publish/release it, but I haven't decided how I feel about opinionatedly putting the canonical copy of otherwise simple env vars into .nix files)
zachk has quit [Remote host closed the connection]
zachk has joined #nixos
<tilpner>
abathur: systemds EnvironmentFile may be an option to keep your variables out of Nix and have them bash readale
ym555 has joined #nixos
<abathur>
I'm also thinking about just keeping the canonical definitions in a makefile and then having a few different targets that build them out to importable/sourceable .nix and .sh files
<abathur>
tilpner: developing it primarily on macos, so using launchd for now; going to check if it supports a file option though I have a vague premonition it doesn't
<abathur>
I guess I could maybe wrap it in a shhell script that sources the same environment file def, but the python script uses signals; I guess maybe it's as simple as running the python script with exec from there
fusion809 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
Diagon has quit [Quit: Leaving]
kim0 has joined #nixos
<{^_^}>
[nixpkgs] @minijackson opened pull request #63672 → cargo-inspect: init at 0.10.1 → https://git.io/fjwz0
dansho has quit [Quit: Leaving]
karetsu has quit [Quit: WeeChat 2.4]
karetsu has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
Guest20 has quit [Remote host closed the connection]
<mla>
im trying to create a new package - the makefile of the software has a bunch of manual install statments like `install binaryname /usr/local/bin` etc..
<mla>
whats the standard for patching those paths?
<mla>
right now /usr/local/bin and /usr/bin/ don't exist so nix fails
<infinisil>
mla: /usr/local/bin -> $out/bin
<infinisil>
I usually like to use something like `substituteInPlace Makefile --replace /usr/local/bin ${placeholder "out"}/bin`
<infinisil>
In postPatch
drakonis has joined #nixos
<mla>
got it - its working
<mla>
thanks infinisil
lurpahi has quit [Ping timeout: 245 seconds]
<infinisil>
Nice
karetsu has quit [Quit: WeeChat 2.4]
<mla>
what about /usr/local/include/someheader.h - i tried mapping to /include/someheader.h
<mla>
but no dice, /include doesnt exist
<qyliss>
mkdir $out/include
<mla>
hm i see, would have throught it would have been created
<mla>
thanks
<qyliss>
Usually it would be created by the Makefile
<laalf>
does someone know anything about other zsh frameworks? for example zim, i am kinda missing it, yet i dont know how i would manage it in my config
Guanin has quit [Remote host closed the connection]
karetsu has joined #nixos
<aanderse>
anyone ever built a piece of c++ software on nix which also used npm or yarn? :\
<etu>
That sounds like a pain... :)
arjen-jonathan has quit [Ping timeout: 252 seconds]
<aanderse>
etu: yes, absolutely horrible
<aanderse>
ha ha ha
<Ralith>
are we inventing nightmarish hypotheticals
<aanderse>
Ralith: no, this is real. i'm not making this up
<aanderse>
ha ha ha
<Ralith>
;_;
<aanderse>
it has a binary component and a web component
<aanderse>
uses cmake
<aanderse>
and even calls npm or yarn from cmake
<aanderse>
-_-
<Ralith>
you're probably going to have to completely replace parts of the build system
<aanderse>
T_T
<Ralith>
either that or aggressively fake a build environment and then massage the output
<Ralith>
decouple the C++/web components, move the combining of them into nix, and build them individually with the usual infra
<Ralith>
(note: dealing with js will probably still be a nightmare with the usual infra, but at least it will be contained)
spinus has joined #nixos
<spinus>
hello, is there anybody using yarn2nix?
<spinus>
I'm trying to add webpack command as buildstep for some time and failing badly. I managed to build dependency tree for a project, but didn't manage to build specific (top level) project with webpack