<inkbottle>
Chromium displayed a popup saying it couldn't update (well, yes, probably it can't), but it's undesired behavior that it tries to in the first place.
<inkbottle>
Anyway, not an urgent business
laudecay has quit [Ping timeout: 265 seconds]
jgt1 has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 3 commits to nixos-19.09-small: https://git.io/JewUD
<samueldr>
ah, betaboon, I think I see; it's not because it's been booted as bios boot, but rather because there is no location to save the configuration (nvram)
* samueldr
looks into fixing it
work_ has joined #nixos
shreyansh_k has quit [Ping timeout: 246 seconds]
<ilya-fedin>
Is there any way to use ccache with Nix?
<{^_^}>
nix#3205 (by edolstra, 6 days ago, open): Recursive Nix support
<EsperLily>
clever: unless you're iterating on a derivation and need to re-run the derivation to make sure what you wrote is correct
<clever>
EsperLily: yeah, not much can cache that right now
<{^_^}>
[nixpkgs] @flokli opened pull request #73190 → ceph: port tests to python → https://git.io/JewIx
romildo has joined #nixos
Klein37 has joined #nixos
<Klein37>
Sooo I ran sudo nix-store --delete /nix/store/*vscode* --ignore-liveness which ended up matching eveything, and now my nix store is completely empty. I have chrome and a shell open, is there any way I can recover nix?
<elvishjerricco>
Hm... I have a systemd service that failed to start the first time I deployed it, so I changed the script to fix the problem then deployed, and now it's like NixOS won't even install it. It's not in `/etc/systemd/system/`, and `systemctl list-units` doesn't show it. `nix-diff` shows that the only difference between the current generation and the one where the unit launched and failed is the change in the script.
<clever>
Klein37: never use --ignore-liveness, you probably just deleted the entire nixos build, and nix itself
<Klein37>
yup
<clever>
Klein37: your only solution is to boot the nixos install iso, and re-run nixos-install, which will remake the missing parts, from configuration.nix
<Klein37>
Ohhhh ofc, thatll do it. ty
<clever>
Klein37: next time, use `nix-store --query --roots /nix/store/foo` to see why something cant be deleted
<Klein37>
Gotcha, thanks
<clever>
Klein37: and then a mix of removing it from things, nix-env --delete-generations, and nix why-depends, to remove the roots
<clever>
Klein37: in my case, the only root is a result symlink from `nix-build -o thing2`, so the damage would have been much less
<clever>
(the symlink would point to nothing)
<clever>
but i would just `rm thing2`, rather then force things
jluttine has quit [Ping timeout: 268 seconds]
<romildo>
The plasma5 desktop service on NixOS sets fonts.fontconfig.defaultFonts and it is taking precedence over the one in configuration.nix. How to the setting on the configuraton.nix file prevail over the one in the plasma5 module?
<clever>
romildo: nixos should merge both, but your cfg may wind up later in the list, mkBefore and mkAfter can enforce the ordering
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JewLx
o1lo01ol1o has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
orivej has quit [Ping timeout: 276 seconds]
wlckd has joined #nixos
<wlckd>
Hey there! I just started using nix; and I noticed font packages that are installed aren't working. Do I need to do something special, or manually install fonts?
xkapastel has quit [Quit: Connection closed for inactivity]
johnw has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 8 commits to nixpkgs-19.09-darwin: https://git.io/Jewtv
<nornagon>
i'm seeing this weird error when i run `nixos-rebuild switch`: error: cannot open connection to remote store 'daemon': reading from file: Connection reset by peer
h0m1 has quit [Ping timeout: 246 seconds]
simukis_ has quit [Ping timeout: 250 seconds]
h0m1 has joined #nixos
chiefgoat has joined #nixos
<clever>
nornagon: that happens sometimes if nix-daemon isnt running, but it should auto-start, try again
<clever>
wlckd: fonts must in in the fonts.fonts = [ ... ]; list in configuration.nix
<wlckd>
ah, ok. sweet, thanks! still getting used to this global config file
<durka>
I guess I'm assuming there's some option within plasma5 to list plugins, since kwin-tiling isn't coming up as a package on its own
amanjeev has quit [Remote host closed the connection]
<samueldr>
betaboon: slain by the test driver... in reality it's two-fold, there is *also* the fact that the first boot will not respect qemuFlags/hdFlags...
<durka>
but, I looked through plasma5.nix and didn't see anything likely
<jackdk>
nix-instantiate --eval -E 'builtins.attrNames ((import <nixpkgs> {}).plasma5)' # does this help?
<samueldr>
betaboon: stopping for now, winded, and kind of off-putted by the in-progress apparent move to a new python testing infra... hoping that one will have a saner first boot for the installer test
janneke has quit [Quit: janneke quits Mes'sing]
janneke has joined #nixos
<durka>
jackdk: hmm, sort of
<durka>
it mentions kwin
<durka>
so maybe that's a hint somehow
<durka>
but a very cryptic one, need to call Robert Langdon :p
<jackdk>
I don't know the kde stuff, so I'll have to tap out
stepcut has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
<bahamas>
when copying a closure to a machine with nix-copy-closure, is there a way to point to this closure all packages that depended on a previous version of the closure (package)?
<clever>
pie_: that one doesnt, was showing why the old cmd fails
<pie_>
ohh
<clever>
pie_: thats what happens if you `nix-shell -p ']; foo = ['`
<bahamas>
hm, I think what I'm asking is not possible. I mean, if you update a dependency of a package, you have to rebuild that package. that basically means that you have to rebuild the system all the way to configuration.nix, if you want to update a service
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hooloovoo>
Hola! I'm kind of new to nixos and i'm trying to change my lightdm greeter. Anyone knows if i can declare that in the nixos config somehow?
chloekek has joined #nixos
<chloekek>
Can I remove a package from Nixpkgs with packageOverrides?
phreedom has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
phreedom has joined #nixos
domogled has quit [Quit: domogled]
<alexarice[m]>
why do you need to remove a package?
cfricke has quit [Quit: WeeChat 2.6]
<alexarice[m]>
you could set a package to null but that probably won't achieve what you are trying to do
<chloekek>
I have a Nix expression for a newer version of that package, and I don't want to accidentally use the old one.
<chloekek>
Ah yeah, I will try that!
<alexarice[m]>
You could also use an overlay to replace the old version in place with your newer version
<chloekek>
I made it a throw expression instead of null and it works great, thanks!
markus1189 has quit [Ping timeout: 240 seconds]
markus1189 has joined #nixos
lukash_|away is now known as lukash_
thc202 has joined #nixos
LogicAside has quit [Ping timeout: 268 seconds]
logzet has joined #nixos
Chiliparrot has joined #nixos
Ariakenom has joined #nixos
tjg1 has quit [Quit: if i commit suicide, at least a real nigga killed me]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @svanderburg to nixos-19.09-small « titaniumenv: remove 7.1, add 8.2 and make it the default »: https://git.io/JewYW
Ariakenom has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @filalex77 opened pull request #73208 → hyphen: init at 2.8.8 → https://git.io/Jew3Y
bahamas has joined #nixos
tjg1 has joined #nixos
tjg1 has quit [Client Quit]
domogled has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
joshuagl has joined #nixos
tjg1 has joined #nixos
rtjure has joined #nixos
vidbina_ has joined #nixos
Ariakenom has joined #nixos
Thra11_ has quit [Ping timeout: 268 seconds]
__monty__ has joined #nixos
vidbina_ has quit [Ping timeout: 268 seconds]
Thra11_ has joined #nixos
<inf>
hey all. I'm running 19.09 on Thinkpad x260 and seem to get a lot of random hangs when connecting/disconnecting dock / HDMI. Any tips on how to get it working? Right now I'm running without anything video-related option changes and can't even enable external displays... (xrandr either returns intstantly with crtc 1 configure failed, or hangs for a minute or so and returns the same thing) ,_,
<inf>
I *think* this got worse after upgrading from 19.03 :/
bahamas has quit [Ping timeout: 265 seconds]
<inf>
Can't find a specific issue, but I think I found some related bug on kernel bugtracker, and remember someone mentioning upgrading to kernel 5.0 helped with that
<inf>
ok, might try linuxPackages_5_3 from unstable...
<{^_^}>
[nixpkgs] @filalex77 opened pull request #73209 → patool: init at 1.12 → https://git.io/Jew3w
bahamas has joined #nixos
<bahamas>
I'm trying to build a package that depends on systemd, but I get this error: "systemd/_daemon.c:539:10: fatal error: systemd/sd-daemon.h: No such file or directory"
<bahamas>
what am I missing?
noudle has joined #nixos
<{^_^}>
[nixpkgs] @B4dM4n opened pull request #73210 → hotspot: use Qt mkDerivation → https://git.io/Jew36
eon_ has joined #nixos
o1lo01ol1o has joined #nixos
amir has joined #nixos
<__monty__>
bahamas: Do you have systemd in the buildInputs?
<ddima>
raboof: have you checked for devices that could cause ACPI wakeup and tried disabling them?
<inf>
welp, rebooted into linux 5.3 and it seems much better now... ,_,
<__monty__>
inf: Good news : )
<inf>
yeah. oh the regressions...
o1lo01ol1o has quit [Ping timeout: 252 seconds]
alexherbo2 has joined #nixos
<inf>
and now obviously I have a very tearful desktop. dammit. but I remember switching to videoDrivers = ["intel"] helped before...
<inf>
bloody modesetting... how does it work.
<hexa->
yup, had tearing on modesetting with intel gpu as well
<bahamas>
__monty__: this is a python package, so I added it to both buildInputs and nativeBuildInputs. but the error still occurs
<hexa->
switching to intel had other issues … switched back *welp*
<raboof>
ddima: not yet... looking into it, thx
<__monty__>
inf: Regression? 19.09 is running the same LTS kernel as 19.03 though?
<inf>
>Maybe try wayland. The slogan of it is "every frame is perfect"
<inf>
perfect
<hexa->
purrrfect
<inf>
__monty__: oh, does it? weird.
<etu>
inf: But not sacred, so they are allowed to drop frames if needed ;)
<ddima>
raboof: powertop can be a simple tool to view all them them and toggle them (temporarily)
<etu>
bahamas: propagatedBuildInputs maybe
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @svanderburg to nixpkgs-19.09-darwin « titaniumenv: remove 7.1, add 8.2 and make it the default »: https://git.io/JewYW
<bahamas>
etu: same error
<inf>
I'd really love to play a little bit with wayland. Sadly I'm really dependent on awesomewm for the past year or so, and I don't have too much time to adapt to something else :D
<hexa->
planning to move from i3 to sway at some point, but there are still a few issues, for example tray support seems incomplete
<inf>
Have to get some random side device to test gnome + wayland on :D
<inf>
like a tablet or something
<raboof>
inf: at least with nixos it becomes easy to switch back and forth - looking forward to trying it out ;)
Makaveli7 has quit [Ping timeout: 276 seconds]
<inf>
yeah, that's one of the reasons i love nixos. i just don't have too much time to readapt :P{
<inf>
I wish i found nixos 3 years ago when I was a humble jobless student.
<raboof>
it seems a shame that waysland appears to break the way you could mix-and-match different components in X11 (windowmanager, panel, launcher, compositor, ...) though..
Makaveli7 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @veprbl pushed to release-19.09 « arrow-cpp: fix on i686-linux »: https://git.io/JewsJ
hooloovoo has joined #nixos
<hooloovoo>
Anyone knows about any good resources on useful stuff to set up on a desktop or laptop computer? Things like microcode and powersaving.
<eyJhb>
Warning for people who cannot have flashing lights
<eyJhb>
Do not click the above
<inf>
Oops, sorry.
<eyJhb>
Hurts like hell
<chloekek>
inf: I had similar issues when not setting that option. Random freezes, random crashes, slow wifi etc. Removing nouveau and enabling Intel drivers fixed all the issues for me.
h0m1 has quit [Quit: WeeChat 2.6]
<eyJhb>
inf: Easy to forget :D It's annoying to look at, even without having any problems regarding those things
h0m1 has joined #nixos
<chloekek>
inf: Although I'm on a Dell XPS, not a ThinkPad.
<eyJhb>
Still wondering when my x230 will die
<eyJhb>
Good little laptop <3
<inf>
eyJhb: tbqh i've brought all the tearfree yakshaving back from my x230 :P
<inf>
so turns out Dri 2 and TearFree true (I brought from x230) actually ruins the performance on x260
<eyJhb>
I might be waay too tired, but `tearfree yakshaving`? :p
<inf>
ie. to the point when with compton runnning firefox tab change takes >0.5 second
<inf>
eyJhb: i mean - I'
<inf>
dammit. i'
<inf>
jesus that fucking keyboard.
<inf>
sorry.
<inf>
I'm just spedning too much time trying to get it to work reliably
<eyJhb>
The x260?
<__monty__>
What does tab switching have to do with screen tearing?
<inf>
mostly talking about tearing during video playback / scrolling.
<inf>
seems like a lot of people I know don't care about that.
<eyJhb>
No problems here, as far as I know :p
<eyJhb>
Only on DisplayLink if I am compiling VBOX
bahamas has quit [Ping timeout: 240 seconds]
<eyJhb>
Reminds me, I need to run my update
bahamas has joined #nixos
Ariakenom has quit [Remote host closed the connection]
<__monty__>
eyJhb: Yes, probably. You don't *have* to though. It's just a nixpkgs import so you could use (import pinned).vbox where you now use `vbox`.
<Izorkin>
etu: I do not know. Decided to recheck to build with libmysqlclient. Encountered an error - not build php with mysqli=libmysqlclient/mariadb.client.dev
<betawaffle>
how do I fix this: "The option value `systemd.network.links.10-att.linkConfig' in `/etc/nixos/att.nix' is not of type `attribute set of systemd options'."
<betawaffle>
(seen while trying to upgrade my router from 18.09 to 19.09)
jco has joined #nixos
<betawaffle>
it currently has linkConfig = { ARP = false; };
jco has quit [Client Quit]
jco has joined #nixos
<betawaffle>
it seems like maybe some confusion between checkLink vs checkNetworkLink?
ravndal has quit [Quit: WeeChat 2.6]
Wayne has joined #nixos
<betaboon>
samueldr: I'm giving porting the installer test to python a test ;)
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
hyper_ch2 has joined #nixos
lecethimon has joined #nixos
drakonis_ has joined #nixos
<lecethimon>
Hello, have tried nixos a few years back. Been on arch since then. What advantages does nixOS have over something like arch?
<lecethimon>
And how is the availability of software?
<flokli>
betawaffle: can you open an issue about that, and highlight me?
<__monty__>
lecethimon: Haven't had to reach for something like the AUR since using nix.
Neo-- has joined #nixos
<betawaffle>
flokli: sure, though I think i worked around it. i can add my findings to an issue
<flokli>
Thanks!
<__monty__>
lecethimon: Arch doesn't have the declarative configuration or the potential reproducibility nixos has. It does roll quicker unless you want to track master though.
drakonis has quit [Ping timeout: 268 seconds]
drakonis1 has joined #nixos
<lecethimon>
yeah. Figured that. From what I remeber you'd have to configure and then build for something be permanenet. If just installing something and building you would lose your installed software
<lecethimon>
Is this the case?
Mateon2 has joined #nixos
<evils>
lecethimon: no
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
Thra11_ has joined #nixos
Mateon1 has quit [Ping timeout: 276 seconds]
Mateon2 is now known as Mateon1
hyper_ch2 has quit [Remote host closed the connection]
<evils>
you can use `nix run` which downloads/builds an application once, and it sticks around in your store until garbage collected
<lecethimon>
I might spin NixOS up in a vm to test a bit. I'm thinking of this or debian for my other machine.
<__monty__>
I'm not sure what you're talking about with "configure and build" vs "install and build."
<__monty__>
I recommend trying nixos on the hardware.
<__monty__>
A vm doesn't get the point across as well imo.
<__monty__>
Note that UX still needs work and the learning curve is real.
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
gagbo has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
<evanjs>
Welp. nodePackages."@angular/cli" started failing to install lately. Can somebody confirm it's not just me?
amanjeev has joined #nixos
amanjeev has quit [Remote host closed the connection]
jco has quit [Quit: WeeChat 2.6]
Chiliparrot has joined #nixos
drakonis1 has joined #nixos
Wayne has quit [Remote host closed the connection]
emmanuelrosa has joined #nixos
<nh2>
lecethimon: my short opinionated comparison to Arch: Much less likely to break your computer, easier to rollback, easier to share config across multiple machines, easier to customise, easier to contribute to, better underlying fundamentals, needs more disk space, harder to learn
<nh2>
lecethimon: oh, and of course, there exist stable releases you can opt into (which IMO is a big plus)
cosimone has joined #nixos
hyper_ch2 has joined #nixos
drakonis_ has quit [Ping timeout: 276 seconds]
hyper_ch2 has quit [Remote host closed the connection]
<lecethimon>
Hmmm, I've never had any issues of updates breaking my system
<lecethimon>
Well once. But still
<lecethimon>
The config sharing is a big plus for me tho. Owning like 8 machines/servers
<bahamas>
when installing a package in the nix-shell (`nix-shell -p python27Packages.pelican`), is there a way to pass doCheck = false?
<__monty__>
lecethimon: Well, stop updating daily for whatever reason, run into a problem and get yelled at.
<bahamas>
the tests are failing, so I want to disable them
<betawaffle>
flokli: do you know what i'm supposed to do with the "maintainer information" section in the issue template?
<__monty__>
I've had arch updates bork my kernel.
<lecethimon>
lol
jgt1 has joined #nixos
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
phreedom_ has joined #nixos
m1sosoup has joined #nixos
kai_w has joined #nixos
asymmetric has joined #nixos
buckley310 has joined #nixos
phreedom has quit [Ping timeout: 260 seconds]
cosimone has quit [Quit: Quit.]
cosimone has joined #nixos
jgt1 has quit [Ping timeout: 268 seconds]
kp__ has quit [Quit: WeeChat 2.6]
emmanuelrosa has quit [Quit: leaving]
<asymmetric>
i'm trying to run pdflatex on save on emacs, and i get: I can't find the format file `pdflatex.fmt'!
<evanjs>
Hold on, lemme get the docs for this
<adisbladis>
asymmetric: You need the correct texlive env
jeyj0 has joined #nixos
<asymmetric>
does anyone know how to fix this? i've installed texlive with the collection-basic package
jeyj0 has quit [Remote host closed the connection]
<asymmetric>
adisbladis: what do i need to do, other than installing texlive/
<evanjs>
asymmetric: yeah you need one of the scheme packages
<asymmetric>
scheme-small was enough for pdf generation btw
waleee-cl has joined #nixos
<kai_w>
for some reason, I still have a symlink to nixos-19.03 in ~/.nix-defexpr/channels, even though I removed that channel a while ago with nix-channel... what's that about?
<adisbladis>
Iirc "scheme" is more corse-grained
<adisbladis>
And collections are more fine grained
hyper_ch2 has joined #nixos
<evanjs>
asymmetric: ah thank you. Yeah I must've needed medium for something
<etu>
asymmetric: I usually start from basic or small and add the things I need per project.
<etu>
asymmetric: Saves a lot of time compared to grabbing the big ones
<hyper_ch2>
how do I setup nixos (kde) so that I can access it through vnc? nixos options "vnc" doesn't return anything
<asymmetric>
is there a way to see what the schemes or collections contain?
<kai_w>
Huh, the channel wasn't showing in the list, and removing the alias didn't work, but removing the full name (nixos-19.03-19.03.173646.6c08aa0d57e) did.
<etu>
asymmetric: was about to post that same link as evanjs++ :)
<{^_^}>
evanjs's karma got increased to 4
ardumont has quit [Quit: WeeChat 2.4]
jco has joined #nixos
ardumont has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<evanjs>
I can see they're under nixpkgs.texlive.scheme-medium.pkgs but I'm not sure what to give to `nix eval` for anything meaningful. i.e. `nix eval nixpkgs.texlive.scheme-medium.pkgs.packages` doesn't give me anything but debug info
<asymmetric>
ah ok, scheme-small depends on collection-basic
<Phillemann>
Haskell's "reflex" package is marked as broken, but I don't find any indication as to why or what I can do now
hyper_ch2 has quit [Remote host closed the connection]
iyzsong has quit [Ping timeout: 252 seconds]
<adisbladis>
etu: Why would you use forEach when there is map
captn3m0 has joined #nixos
<catern>
this is a fairly niche question, but when I add -static to the LDFLAGS of a program built with autotools, and I build it in Nix, the build directory (/build/c/.libs) gets put on RPATH and Nix fails the build after scanning for /build
<catern>
but when built outside of Nix, the build dir doesn't get put on RPATH - any idea why it's happening when built in Nix?
bahamas has quit [Quit: leaving]
<evanjs>
So when I'm making nodePackage PRs, do I need to update the package set? Can't find any contribution guidelines for the nodePackages set
<adisbladis>
evanjs: Yes
<adisbladis>
You need to.
<evanjs>
adisbladis: alright, thank you!
<{^_^}>
[hydra] @dasJ opened pull request #689 → Show current system load for authenticated users → https://git.io/JewCk
<evanjs>
adisbladis: and I posted the original snippet, I guess it really depends on the use case but sometimes forEach feels like it makes more sense
<evanjs>
Depends on your programming background, too, I think. Like I'm still not very experienced with functional programming, so while .map() typically feels okay, map in languages like haskell and nix still feels odd to me
<evanjs>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 23
vidbina_ has joined #nixos
endformationage has joined #nixos
Soo_Slow has joined #nixos
virus_dave has joined #nixos
<Phillemann>
I'm trying to add cachix to my system package set using (builtins.fetchTarball { url = "https://cachix.org/api/v1/install"; }.cachix, but it doesn't work.
<Phillemann>
Never mind the syntax error there.
<Phillemann>
It says "value is a string with context while a set was expected"
cosimone has quit [Remote host closed the connection]
sigmundv has quit [Ping timeout: 240 seconds]
cosimone has joined #nixos
h0m1 has quit [Quit: WeeChat 2.6]
sondr3 has quit [Ping timeout: 246 seconds]
h0m1 has joined #nixos
hexo has joined #nixos
<hexo>
hi there, my firefox ceased to work
<hexo>
i cant see any content
<mikky>
hey, so I have this locally built python lib (ovirt-sdk) and I'd like to test it but I'm not sure how to add the lib to my python environment, being it system-wide or a nix-shell, venv, or whatever. I'm not very good with Python and I don't really understand what's going on in there :/
<hexo>
webpage seems like its loaded but all i see is white
<hexo>
the same with firefox menus
<hexo>
it is there but it is invisible
jlmeeker has joined #nixos
<hexo>
i have fresh installation since yesterday
<mikky>
I've built the lib inside a nixpkgs git clone
<{^_^}>
[nixpkgs] @markuskowa opened pull request #73227 → mkl: add scalapack libraries to output → https://git.io/JewCS
juaningan has joined #nixos
<__monty__>
mikky: You have a couple options, you can write an overlay that changes your nixpkgs version of that package to the local one. Or you can use nix-shell -f 'path/to/nixpkgs' -p python ovirt-sdk. The latter might cause lots of rebuilds, especially if your checkout is too recent to be cached.
<__monty__>
hexo: And you didn't change anything? Like enabling hardware acceleration?
<mikky>
exarkun: "locally build inside nixpkgs git clone" basically means that I followed the "contributing" path by creating a new package in nixpkgs and I intent to submit it to nixpkgs if everything goes well - does that make sense to you?
<exarkun>
mikky: I think so
<exarkun>
mikky: Did you try __monty__'s suggestion? It's pretty close to what I'd suggest.
<mikky>
I was able to successfully build the derivation using nix-build so now I'm just trying to figure out a way to test it
<mikky>
exarkun: I'm trying it now
<__monty__>
mikky: `self: super: { wire-desktop = super.callPackage ~/src/nixpkgs/pkgs/applications/networking/instant-messengers/wire-desktop/default.nix {}; }` is an example of an overlay I use.
<mikky>
__monty__: that's exactly what I have prepared now
<mikky>
but I'm hitting 'Error: anonymous function at /home/miky/git/github/cptMikky/nixpkgs/pkgs/development/python-modules/ovirt-engine-sdk/default.nix:1:1 called without required argument 'buildPythonPackage''
<__monty__>
You're probably missing the `super.callPackage`.
devalot has joined #nixos
<mikky>
no, it's something different
<juaningan>
Hi, Im struggling packaging Bisq (P2P decentralized exchange). Is a Java project with OpenJFX dependency, it compiles but crash when call SHA256_Update method in libcrypto.so.1.0.0; Tried to update libcrypto to 1.1 and still crash. So i remove completely the gnome2.gnome_vfs dependency from openjdk11 and now java binary is not linked anymore with
<juaningan>
libcrypto and Bisq is working well.
<mikky>
the callPakage is there but in the nixpkgs tree that part is called from within python-packages.nix (or similar)
<exarkun>
you need a python overlay for python, yea
<mikky>
I'm missing something like 'inherit buildPythonPackage'
jgt1 has joined #nixos
zupo has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
sondr3 has joined #nixos
jmeredith has joined #nixos
<juaningan>
Hi, Im struggling packaging Bisq (P2P decentralized exchange). Is a Java project with OpenJFX dependency, it compiles but crash when call SHA256_Update method in libcrypto.so.1.0.0; Tried to update libcrypto to 1.1 and still crash. So i remove completely the gnome2.gnome_vfs dependency from openjdk11 and now java binary is not linked anymore with
<juaningan>
libcrypto and Bisq is working well. So, how do you recommend that I merge this changes upstream? Make a local override over openjdk package? PR a conditional in upstream openjdk? Maybe open an issue to clarify why that gnome2 depenendency is still there?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @filalex77 opened pull request #73229 → pg_flame: init at 1.1 → https://git.io/JewWO
ardumont has joined #nixos
sigmundv has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @talyz to nixpkgs-19.03-darwin « bundler: 1.17.2 -> 1.17.3 »: https://git.io/Jewcl
<mikky>
ok, got further - when I run 'nix-shell -p python37Full python37Packages.ovirt-engine-sdk' it fails on building Python2.7
<mikky>
yes, 'Tried to install with an unsupported version of Python. Meson requires Python 3.5.0 or greater'. The problem is it tries to build Python v2.7 but I don't understand why, everywhere I could I specified python37
<mikky>
exarkun: note that the cmdline output is not complete - at first run there was more going on in terms of building derivations but these got built successfuly
* exarkun
nods
<exarkun>
I wonder what `nix show-derivation /nix/store/8cz1zlngqqr09zcc73qhs4hygifgphi7-meson-0.51.2.drv` says
<exarkun>
Also I wonder what version of nixpkgs you have
<betaboon>
has anyone ported tests to python which used flock ?
<mikky>
nixpkgs version a5b85222ff8b419787b7901ac54625acec692788
domogled has joined #nixos
<mikky>
meson show-derivation added to the gist < exarkun
<exarkun>
mikky: So, I notice that meson has python 2.7 as an input
<exarkun>
That seems pretty weird if Meson requires Python 3.5 or newer
pointfourone has joined #nixos
<nh2>
mikky: a few things that look a bit off (not sure if they help to find the solution):
<nh2>
* I think it is more correct to use `python-self.callPackage` instead of `python-super.callPackage` so that later overlays can override callPackage
<nh2>
* `python37 = super.python` -- shouldn't that be `python37 = super.python37` as well?
<mikky>
hold on, I've been using an outdated branch of nixpkgs
<exarkun>
nh2: yea those sound like good catches to me
<exarkun>
`python37 = super.python` explains why meson would be getting python 2.7 when asking for python3 (which it is afaict)
<{^_^}>
[nixpkgs] @etu opened pull request #73232 → profiles/graphical.nix: Drop systemWide pulseaudio in iso → https://git.io/JewWA
sweep has joined #nixos
sweep has quit [Changing host]
sweep has joined #nixos
sweep is now known as genesis
<exarkun>
What is the syntax for pointing nixpkgs at a git revision in NIX_PATH?
<mikky>
nh2: you were right! seems to be working, now I just need to test it
<exarkun>
is there a way to avoid having to download the whole archive for every revision? I thought I saw something somewhere about nix using a git repo it could update for incremental changes
<mikky>
exarkun: you're thinking a shallow clone?
<exarkun>
not necessarily
<exarkun>
I'm thinking about nix using the git protocol and having a git working tree instead of https and a tarball
<mikky>
ah
<nh2>
exarkun: that I don't know, but if you find how that works, definitely let me know
<lordcirth_>
exarkun, you could just make a copy of the git repo and checkout the rev you want?
<nh2>
exarkun: just try with git:// and check if it does anything :)
<exarkun>
lordcirth_: yes, but it's more convenient to set a revision in NIX_PATH than to have to manually manage some state on the filesystem
astrall33 has quit [Ping timeout: 265 seconds]
kenran has quit [Ping timeout: 268 seconds]
<buckley310>
if I have a virtual machine which is formatted with 512-byte sectors, sitting on a zfs pool with 4k sectors, is there any I/O performance penalty / write amplification? my understanding is that there is only some CPU overhead as zfs repacks the 512 operations into 4k batches
<mikky>
exarkun: wouldn't having a git working tree break the stateless premise of nix?
<exarkun>
mikky: I don't think it breaks it any more than /nix/store already breaks it. You build some layers on top of the state to preserve the functional properties you want.
Thra11_ has quit [Ping timeout: 240 seconds]
<mikky>
buckley310: is the VM on a zvol?
<buckley310>
mikky, no. raw image in a dataset
<nh2>
mikky: if the tree is a clean checkout you will get the same results as when using a tarball URL. But I agree with exarkun that it's convenient to be able to ship full repros around with a single URL, and it would be convienient if the downloading of that URL could use git to download a bit faster
<mikky>
buckley310: in theory you'll only hit write amp when a non 4096-rounded blocks get synced
domogled has quit [Remote host closed the connection]
sondr3 has quit [Ping timeout: 250 seconds]
drakonis has quit [Quit: WeeChat 2.6]
<mikky>
nh2: you will but if I understand exarkun's idea then the working tree is going to be volatile, i.e. it gets changed every time a different checkout is requested
<exarkun>
maybe instead of literally a single working tree, there's a local hardlinked clone per revision or something
<exarkun>
or a single mutable working tree that is updated and exported from to create other store objects
<nh2>
mikky: I think the _working tree_ would be separate per nix invocation, it would just use the same .git raw repository under the hood to avoid downloading as much as possible
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 23 commits to nixos-unstable-small: https://git.io/Jewlw
<mikky>
yeah, that would make better sense
<exarkun>
Anyway, the NIX_PATH docs don't make any mention of native git support so I suppose I imagined this
<exarkun>
but it would be awful nice.
<mikky>
exarkun: I only remember a specific commit can be requested but I don't remember any explicit git support mentioned there
<mikky>
you can always write a wrapper or something
<buckley310>
mikky: thing im wondering is, if the VM makes 1000 non-contiguous writes, will the host pack them up into 250 writes before it hits the disk.
drakonis has joined #nixos
<mikky>
buckley310: not sure, depends on wheteher those are sync or async writes and how barriers would be utilized
<exarkun>
selfsymmetric-pa: I have no idea. :( But out of curiosity, how did you corrupt it?
<selfsymmetric-pa>
Not sure, it was corrupted already when I did a store verification. Then I poked at it and made it worse, so I figure I should just reinitialize it.
<selfsymmetric-pa>
I might be able to roll back a bit.
<selfsymmetric-pa>
Not sure if that will work.
drakonis has quit [Ping timeout: 246 seconds]
selfsymmetric-pa has quit [Remote host closed the connection]
pbb has quit [Remote host closed the connection]
selfsymmetric-pa has joined #nixos
h0m1 has quit [Quit: WeeChat 2.6]
<selfsymmetric-pa>
Well, I can roll back, but it doesn't bring back my DB.
<selfsymmetric-pa>
This DB is just a cache, right? Doesn't have anything important in it that's not also in the filesystem?
pbb has joined #nixos
h0m1 has joined #nixos
<selfsymmetric-pa>
How do I get a fresh one?
<selfsymmetric-pa>
Maybe I can rerun NixOS installation on my configuration somehow?
<nh2>
selfsymmetric-pa: not sure. There's `nix-store --repair`, but it goes the other way around, re-downloading store paths that are in the DB but missing in the file system.
<nh2>
Also, what does your corruption look like, is there an error message?
<nh2>
You could try move the sqlite file out of the way (but keeping it around in case that doesn't work) and see what happens if you `nixos-rebuild switch`. But I have never tried that, so I don't know what will happen.
xwvvvvwx- has joined #nixos
<selfsymmetric-pa>
nh2: Unfortunately moving it out of the way and rebuilding gives me `error: cannot open Nix database '/nix/var/nix/db/db.sqlite'`.
<selfsymmetric-pa>
My understanding is that this database only contains metadata. It must be possible to retore.
<selfsymmetric-pa>
*restore.
<betaboon>
flokli: i just discovered the exact same bug on my working branch after two hours of debugging XD
<flokli>
betaboon: sorry about that
<betaboon>
flokli: not your fault :D
<flokli>
nh2: urgh, the gtk+ looks like another huge rabbit hole to dive into ;-)
<selfsymmetric-pa>
I killed it because I thought it would be possible to invalidate.
<selfsymmetric-pa>
How do I regenerate `/nix/var/nix/db/db.sqlite`?
<nh2>
selfsymmetric-pa: are you a programmer? If yes, the fastest way to success might be to check how the nix installer generates the DB, or whether the nix code suggests that it can run against empty db
<betaboon>
flokli: I'm just trying to port the installer tests and it failed in a very weird way. thousand steps to figure out it was the succeed-function xD
<selfsymmetric-pa>
nh2: Where can I find the install script?
binarymonkeyking has joined #nixos
<selfsymmetric-pa>
nh2: Yes, I'm a programmer.
<selfsymmetric-pa>
I can't find the source of the sqlite instructions somehow.
<slabity>
Unfortunately I've run into an issue. If I run `sudo nixos-rebuild` it can't access my `pass` store. But if I run `nixos-rebuild` it fails to symlink the profile due to permissions.
binarymonkeyking has quit [Remote host closed the connection]
<slabity>
Does anyone have `pass` integrated with their NixOS system?
<dhess>
it happened a few weeks ago when the Perl DBD libs were updated
<elvishjerricco>
slabity: Careful. It works with NixOps because the secret files don't get put in the nix store. Nixos-rebuild doesn't have any equivalent functionality, so any secrets will probably be world-readable in the nix store.
<elvishjerricco>
Anyway you could change the wrapper script to su back to your user or something. Or build the system config as your user and install it as root, though that's a tad more involved than nixos-rebuild
<__monty__>
Or just set PASSWORD_STORE_DIR et al. in the wrapper.
Ariakenom has joined #nixos
fendor has quit [Quit: Leaving]
fendor has joined #nixos
<wedens[m]>
I'm getting weird "internal error: End of file from qemu monitor" errors from libvirt on VM shutdown. and virbr0 interface becomes unusable until I restart the network
<DanP[m]>
How does `networking.networkmanager.appendNameservers` work? My additional nameservers are not showing in `/etc/resolv.conf` after a rebuild, and when I manually paste them in they are periodically cleared out.
drakonis has joined #nixos
<DanP[m]>
`insertNameservers` doesn't appear to be sticking either
<__monty__>
Regarding pass, I'd love for someone to explain why I can't get pass with the pass-otp extension installed on one mac but it works fine on another? http://ix.io/1SCF
zmacs has joined #nixos
zmacs has quit [Client Quit]
zmacs has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
xd1le has quit [Quit: leaving]
<selfsymmetric-pa>
`error: while setting up the build environment: getting attributes of path '/etc/hosts': No such file or directory`
<selfsymmetric-pa>
I don't remember deleting this.
<selfsymmetric-pa>
Oh it's a symbolic link but it doesn't point to anything anymore?
<selfsymmetric-pa>
Someone mind telling me what theirs points to?
<selfsymmetric-pa>
I can try to fix it manually.
<exarkun>
a lot of stuff in /etc points to /etc/static
<exarkun>
eg /etc/hosts is /etc/static/hosts
<selfsymmetric-pa>
And thence to /nix/store. Hm.
<selfsymmetric-pa>
I'm trying a repair but it already passed `checking path existence`.
<selfsymmetric-pa>
Yikes.
<__monty__>
I guess the repair does the other way around. Fix your store based on the database.
Ariakenom has quit [Remote host closed the connection]
<selfsymmetric-pa>
Oh I can't fix it manually anyway. Read-only.
Ariakenom has joined #nixos
jgt1 has quit [Ping timeout: 240 seconds]
<selfsymmetric-pa>
`error: file 'nixpkgs/nixos' was not found in the Nix search path`
<selfsymmetric-pa>
Weird, my `$NIX_PATH` looks good.
selfsymmetric-pa has quit [Remote host closed the connection]
<evanjs>
... wtf why is it working now...
jgt1 has quit [Ping timeout: 246 seconds]
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa>
Okay, back to this: `error: while setting up the build environment: getting attributes of path '/etc/hosts': No such file or directory`
<selfsymmetric-pa>
That's no fun.
<deni>
does anyone have any clue how it's possible that nix-build for my haskell project is working fine but nix-shell and then `cabal new-build` inside is giving me an error saying: `error, called at libraries/containers/Data/Map/Internal.hs:610:17 in containers-0.6.0.1:Data.Map.Internal`
<deni>
it's not even starting to compile my code...it just errors out before it does anything
<__monty__>
Sounds like cabal is crashing.
<evanjs>
Okay, got it. It's because I stopped the user service and ran lorri daemon manually. collecting garbage with the service up put me back into a broken state
<selfsymmetric-pa>
My `/etc/hosts` is pointing to a no-longer-existing file. How do I ask NixOS to regenerate it?
<evanjs>
is the error I keep getting. Though gnutar is in the path, which is included in the unit's ENVIRONMENT... etc
<cransom>
selfsymmetric-pa: /run/current-system/activate can do it, or you can also pluck the right line out of it.
<kumikumi>
When looking at .nix files in the nixpkgs repository, I'm seeing a lot of 'description' and 'example' fields with almost human readable text in them. Are they used to generate some sort of documentation? Can I view it somehow?
<selfsymmetric-pa>
cransom: Thanks for the suggestion! That script ran, but did not change my error.
<selfsymmetric-pa>
I'll take a look at it more deeply.
<cransom>
do you have an /etc/static/hosts?
<selfsymmetric-pa>
cransom: I do, but it is a symlink that points at a non-existent file in /nix/store.
gxt has quit [Ping timeout: 260 seconds]
<kumikumi>
...Also, if not, then what part of the system is making use of those strings?
<selfsymmetric-pa>
Hm. `Died at /nix/store/vn1xs9s2akf79y1pbya2qldydbf2b22m-setup-etc.pl line 23.`
<cransom>
selfsymmetric-pa: /etc/hosts is a link to /etc/static/hosts , so if you fix the link, it still will be empty. if you are trying to get network up to recover, you can make an empty file
<selfsymmetric-pa>
cransom: Good suggestion, I'll try that.
<exarkun>
selfsymmetric-pa: Maybe you just want to take your system configuration and rebuild the whole system with it it from a rescue environment (live cd or whatever)
<deni>
__monty__: sounds like it.... :/
<betaboon>
samueldr: i think I'm done porting the installer tests to python test-runner. but i based that on my refind branch. not pushed yet. anything against basing that off the refind branch ?
<selfsymmetric-pa>
exarkun: Yeah I think I might need to if this doesn't work.
<selfsymmetric-pa>
Looks like I'm making it farther now. Thanks cransom!
<samueldr>
as I think you're thinking, yes, it should be its own self-contained commit/PR, is that it, betaboon?
<selfsymmetric-pa>
cransom++
<{^_^}>
cransom's karma got increased to 2
<samueldr>
looked into fixing the initial EFI boot or left this for someone else / a later time?
<betaboon>
samueldr: ok so self-contained it is. just have to remember (aka write in issue) that the refind branch needs changes after the installer branch is merged.
domogled has joined #nixos
<samueldr>
I think if you keep the same exact commit object as your first commit object on the refind branch, things should work out
MinceR_ is now known as MinceR
<samueldr>
(and at the very least, be self-explanatory for a further rebase)
<betaboon>
samueldr: no did not work on the initial efi boot yet. maybe tomorrow. just followed your comment and did the python-test-runner port first XD
<samueldr>
good, no pressure, was mostly curious
<samueldr>
though, now that I'm thinking about it... we probably *still* want the first boot as bios, with install as removable
<samueldr>
well, an additional test
<samueldr>
because we want to know if for any reason it fails to work as expected
<samueldr>
though, it could also be tested by removing the use of the nvram in the tests
<Izorkin>
Mic92: php error build with external mysqli=mariadb.connector-c-v3.1. With mariadb.connector-c v2.3.7 nornal build. Need return version 2.3.7 ?
<betaboon>
samueldr: i gues i would vote for an additional test. bios-mode-install and efi-mode install should both be tested seperately i guess
<samueldr>
yes, that's what I meant
selfsymmetric-pa has quit [Ping timeout: 252 seconds]
domogled has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @betaboon opened pull request #73237 → nixos/tests/installer: port to python → https://git.io/JewBv
<betaboon>
samueldr: mind taking a look ? :)
<samueldr>
looking
<asymmetric>
on a friend's machine, the grub boot entries don't update on nixos-rebuild boot
<betaboon>
i havent ran all of the installer tests locally yet
<asymmetric>
any idea what it could be?
domogled has joined #nixos
kuznero has joined #nixos
<kuznero>
Hi All!
<thefloweringash>
asymmetric: unmounted /boot ?
rauno has joined #nixos
<betaboon>
samueldr: just pushed some more changes. just had to correct the whitespacing in `createPartitions` python code. as the linter that is being run during tests complained :/
<kuznero>
Can someone please help me understand `system.userActivationScripts`. I was thinking about creating some symlinks under `~/.config` for a given user. I have a feeling it works for any user in the system instead of a specific user.
m1sosoup has quit [Quit: Leaving]
<asymmetric>
thefloweringash: it's mounted, /dev/nvme0n1p1 on /boot type vfat (rw,...)
<deni>
ok figured out my error.... cabal was crashing inside nix repl because the cabal file had a rogue flag in there ... still the error could be better.
<kuznero>
evils, not exactly - I saw it first. But what's unclear is from the context of which specific user systemd will run it? From any user that is configred/logged-in?
<evils>
kuznero: i'm not actually familiar with the option, but the description says they're run when you run nixos-rebuild, i assume that's the only time they're run
<kuznero>
evils, that actually makes sense. And then I hope it runs as a specific user. Will check that, thanks!
cosimone has joined #nixos
Chiliparrot has joined #nixos
cosimone has quit [Client Quit]
cosimone has joined #nixos
<evils>
anyone know how to get this pattern matching / expansion to get passed correctly? `preFixup = '' wrapGApp "$out/bin/!(*.kiface)" '';`
domogled has quit [Ping timeout: 240 seconds]
rauno has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
Thra11_ has joined #nixos
<betaboon>
FRidh: on the installer-tests pythonDict stuff. you mean like using `json.loads` combined with `builtins.toJSON`, right ?
lassulus_ has joined #nixos
domogled has joined #nixos
mexisme has quit [Ping timeout: 252 seconds]
ambro718 has joined #nixos
<nh2>
jtojnar: commit 41c575b6 - "meson: use plain buildtype - This should allow us to inherit optimization/striping from stdenv"
<nh2>
It seems this hides the actual intent of what you want to build from meson, so whatever the package author has coded for that will not be run.
<nh2>
Is this good?
<nh2>
Currently key meson packages like gtk3 build with `--buildtype=plain`; the only reason they have `-O2` at all is because hardening flags turn them on.
<nh2>
If we want stdenv to set such things, shouldn't we make stdenv set `mesonBuildType` accordingly?
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
<ambro718>
Anyone tried enabling kernel CONFIG_PREEMPT (full kernel preemption) on 19.09? It caused my system to fail to boot with kernel backtraces clearly related to this, it may or may not be related to NVidia driver.
<kumikumi>
I'm trying to fix my grub resolution. On a normal linux I would edit /etc/default/grub and add a few lines such as GRUB_GFXMODE=2560x1440x24 and GRUB_GFXPAYLOAD_LINUX = "keep". How to do the equivalent in NixOS?
<kumikumi>
oh, never noticed the payload option there, thanks again
<{^_^}>
[nixpkgs] @c0bw3b merged pull request #68338 → Update trousers to latest, use regular openssl → https://git.io/JeJFe
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @reanimus to master « trousers: 0.3.13 -> 0.3.14 »: https://git.io/JewBA
<warbo>
hello, I'm trying to debug derivation X (a test suite) which is a dependency of another derivation Y. I'd like to build X directly (via nix-build -E '...', nix repl, etc.) without having to build Y, but I can't find a reference to a .drv for X; only a path like "/nix/store/...-X" in the build script for Y.
rtjure has quit [Quit: rtjure]
<warbo>
is there a way to access dependencies which only appear inside strings (e.g. do they appear in some special attribute, etc.)?
chloekek has joined #nixos
ldlework_ is now known as ldlework
<warbo>
I've tried running 'nix-store -q --deriver' on that path, but it says 'path is not valid' (I assume since it's not been built yet)
<{^_^}>
[nixpkgs] @globin pushed 4 commits to structured-attrs: https://git.io/JewBh
<l33[m]>
I need to delivery a 5 min lighting talk in nixos... is it possible
<l33[m]>
Any got any slides i could deliver in 5 mins lol
<lordcirth_>
l33[m], depends, how much does your audience know?
<l33[m]>
Impossible mission
Bryophyllum has joined #nixos
<lordcirth_>
If the audience is familiar with normal Linux package management, you could probably pull it off
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @reanimus to release-19.09 « trousers: 0.3.13 -> 0.3.14 »: https://git.io/JewRm
<l33[m]>
Lol
jgeerds_ has joined #nixos
<Bryophyllum>
Hi! I'd like to wrap binaries, such as Firefox, in firejail. How do I reference a binary name in my configuration.nix in conjunction with this option: https://nixos.org/nixos/options.html#firejail+wrapped ?
<{^_^}>
[nixpkgs] @FRidh opened pull request #73241 → nixos boot test: replace pythonDict with toJSON → https://git.io/JewRB
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<Bryophyllum>
srhb: Thanks for your reply. Unfortunately, I must be doing something terribly wrong because I get syntax errors. `programs.firejail.wrappedBinaries = { "${lib.getBin.pkgs.firefox-wayland}/firefox" };`
stepcut has quit [Remote host closed the connection]
<Bryophyllum>
srhb: I had to add "lib" on the beginning of my .nix file, and while it progressed building a new generation further, it error'd out on another syntax error, though. "value is a function while a set was expected"
stepcut has joined #nixos
<clever>
Bryophyllum: which line does it point to?
<srhb>
Bryophyllum: Are you sure you didn't accidentally replace the space with a dot again?
<clever>
Baughn: thats a known bug (and fixed in master)
<clever>
Baughn: it happens if you have more channels then :'s in $NIX_PATH
<Baughn>
I guess I'll get the fix in a couple days, then. Couldn't find it when searching.
<srhb>
Repeat ad nauseam
<clever>
Baughn: by default, you have 1 channel and 4 elements in NIX_PATH, so it works
<srhb>
;-)
<clever>
Baughn: its on the nix issue tracker, and i think it was under `nix run`, both run and search are broken
<Baughn>
I have 2 channels and 1 element in NIX_PATH. :P
<clever>
Baughn: add one more element to NIX_PATH and it should work
<Bryophyllum>
srhb: The line that contains --> `firefox-wayland = "${lib.getBin pkgs.firefox-wayland}/firefox";`
<srhb>
Bryophyllum: That looks right to me.
<srhb>
Bryophyllum: The reason I asked as above is because that is the exact error you'd get if you wrote `lib.getBin.pkgs.firefox-wayland` instead of `lib.getBin pkgs.firefox-wayland`
<Bryophyllum>
srhb: Have changed to `firefox-wayland = "${pkgs.firefox-wayland}/bin/firefox";` and it's worked
<srhb>
Good good.
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 2 commits to nixos-unstable-small: https://git.io/Jew4l
<nh2>
jtojnar: hmm, maybe it is right. The meson docs call it "no extra build flags are used, even for compiler warnings, useful for distro packagers and other cases where you need to specify all arguments by yourself" which really does support the intent. I'm just worried that people will write `if`s on the build type into their meson files
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JewEZ
civodul has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #73137 → nixosTests.xmonad: port to python → https://git.io/JeVMa
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JewEl
mexisme has quit [Ping timeout: 240 seconds]
exfalso has joined #nixos
<asymmetric>
does anyone use nginx's webdav module?
domogled has quit [Quit: domogled]
<asymmetric>
the docs say "it should be enabled with the --with-http_dav_module configuration parameter", which i presume it means it's a parameter to pass to the nginx binary?
<clever>
asymmetric: is that a flag for nginx itself, or the nginx configure script?
<asymmetric>
clever: i'm not sure actually.. do you have a gut feeling?
<multun>
it's a configure script parameter
<clever>
asymmetric: then you want to add it to the configureFlags with an override
<tmplt>
Is it possible to import /etc/nixos/configuration.nix and somehow get all options set in that file? A `import ./configuration.nix` yields a lambda instead.
<infinisil>
tmplt: Not really, what do you need this for?
earendil[m] is now known as gregor-alexandru
<exarkun>
infinisil: wait, why not? just call the lambda with the right args and inspect the return value.
<tmplt>
infinisil: automating an installation ISO. Disk setup/mounting is done, but I want to automatically set some options in configuration.nix before installation. Users, network, etc.
bvdw has quit [Read error: Connection reset by peer]
drakonis has quit [Ping timeout: 245 seconds]
<tmplt>
the actual modifications can be done with builtins.[to|from]JSON and jq, I just need the actual expression
<infinisil>
exarkun: And how do you get the right args? What about `mkIf`'s and other module system shenanigans? It just doesn't really work well
<exarkun>
infinisil: Somehow NixOS manages to do it. At worst, do everything it does.
<exarkun>
At best, refactor its implementation to make the relevant pieces more easily reusable and then reuse them. :)
<tmplt>
infinisil: it doesn
<infinisil>
tmplt: Can you write a separate file with your modifications and include it with `imports`?
<exarkun>
It would be kind of nice if NixOS took the whole pile of configuration that it consumed, though, and splatted it out somewhere easily inspectable.
<infinisil>
exarkun: If you do that, you get what `import <nixpkgs/nixos> {}` does, aka the result of the module system evaluation
<exarkun>
infinisil: That's why you'd have to do the refactoring
<infinisil>
But that doesn't allow you to focus on a single file (at least not easily)
<infinisil>
exarkun: What's there to refactor?
<exarkun>
It's entirely likely that I'm not talking about what tmplt wants
<tmplt>
infinisil: I suppose, yeah. It's only for some slight modifications to the configuration of the automatically generated one (via nixos-generate-config)
<exarkun>
but instead something that I want that's vaguely similar to someone squinting :)
hexo has joined #nixos
<infinisil>
exarkun: NixOS allows you to inspect values already with `(import <nixpkgs/nixos> {}).config.*`, do you not mean that?
ckauhaus is now known as ckauhaus[afk]
<exarkun>
infinisil: I dunno, I might. I thought there were some caveats with that... but I can't remember what they were supposed to be.
* infinisil
can't remember any :)
<hodapp>
wut. just saw a bunch of "-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-zlib-1.2.11/lib" and the like scroll by
<shapr>
screaming into the void
<infinisil>
hodapp: Nix Sto REEEEEEEEEEEEEE
<hodapp>
yet nothing has that actual path... and the build still was fine
<infinisil>
tmplt: Hm, how about writing a `configuration.nix` just containing `{ imports = [ ./user-conf.nix ./hardware-configuration.nix ]; <custom stuff>; }` and you move the original configuration.nix to user-conf.nix
<tmplt>
infinisil: ooh, that could work
<tilpner>
tmplt: Does NIXOS_EXTRA_MODULE_PATH=$PWD/foo.nix nixos-install work for you?
<infinisil>
Ah and leave out the hardware-configuration.nix because it's already imported from configuration.nix
wildtrees has quit [Ping timeout: 268 seconds]
NoctisLabs has quit [Quit: WeeChat 2.6]
rardiol has joined #nixos
<tmplt>
tilpner: never heard of that envvar before, but I'll try both approaches
<aanderse>
oh boy so i probably haven't fired up steam in a few weeks
<aanderse>
launch and get this (again): Error: You are missing the following 32-bit libraries, and Steam may not run
<tilpner>
tmplt: See nixos/lib/eval-config.nix:30
<infinisil>
tilpner: Neat, haven't seen this one either
NoctisLabs has joined #nixos
<infinisil>
Though it's not as permanent as doing some file shuffling
leotaku has joined #nixos
mexisme has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @jonringer to nixpkgs-19.09-darwin « rust-bindgen: 0.51.0 -> 0.51.1 »: https://git.io/Jewc4
<slabity>
How do other people manage their passwords for their nixos configurations? I've been trying to get `nixos-rebuild` to use `pass`, but it has not been going well
<infinisil>
tilpner: For one, you can't allow only one invocation of builtins.exec, meaning enabling the --unsafe-blablabla allows any Nix code you evaluate to run any code on your machine
tmplt has quit [Remote host closed the connection]
<elvishjerricco>
infinisil: Thats what nix-plugins is for. You get to control what has access to exec
<tilpner>
infinisil: "If the extra-builtins-file exists, it is imported and passed a set containing at least the importNative and exec primops, even if allow-unsafe-native-code-during-evaluation is false, and the result is available as extraBuiltins"
inkbottle has joined #nixos
<infinisil>
Ah I see
<infinisil>
I kind of assumed it would be done with the flag
drakonis has joined #nixos
<elvishjerricco>
But yea, pass at eval time is something to avoid without a NixOps-like key management feature
<slabity>
Regardless, it still only works with NixOps
<elvishjerricco>
slabity: You could set up a systemd service that runs pass and puts keys in places. You'd need to familiarize yourself with systemd-ask-password though, and GPG doesn't really like to take passwords from automated sources, so this would be rough
<infinisil>
Hm, some rebuild wrapper that encrypts all secrets, deploys the encrypted secrets with nix, then has something to unlock them on the running machine perhaps?
<adisbladis>
slabity: My solution so far in a few instances have been to use git-crypt and have a secrets.nix file with all secrets inside
<gchristensen>
ideally secrets can be rotated without a `nixos-rebuild switch` action
fendor has quit [Remote host closed the connection]
<elvishjerricco>
adisbladis: So you have your secrets put in the nix store, where they're world-readable?
<slabity>
evlishjerricco: Would that actually solve the issue? My problem is getting the password secrets at build-time
<{^_^}>
[nixpkgs] @eraserhd opened pull request #73252 → fop: builds on all platforms → https://git.io/JewzJ
<adisbladis>
elvishjerricco: Only when unavoidable.
<elvishjerricco>
slabity: I'm suggesting not doing that, but getting the secrets at runtime
<adisbladis>
Also I do the same for initialHashePassword
<elvishjerricco>
slabity: It'd have the added benefit of addressing gchristensen's concern about rotating keys without rebuilding
<adisbladis>
Secrets dont belong in plain text
<adisbladis>
Keys dont belong on disk
<slabity>
Sounds like password management in Nix is a bit messy...
<gchristensen>
Nix doesn't do secret management
<elvishjerricco>
slabity: Not any moreso than any other distro
<adisbladis>
slabity: It's equally messy as anything else
<gchristensen>
by definition, since Nix's store is 100% world readable
<{^_^}>
[nixpkgs] @risicle opened pull request #73253 → [r19.03] gdal: add patch for CVE-2019-17545 → https://git.io/JewzL
<gchristensen>
I consider secrets to be state
<adisbladis>
++
<slabity>
Sounds like "stateless" password management in Nix is a bit messy...
<adisbladis>
Programmers against (the) state
<gchristensen>
under the consideration of secrets being state, there is no stateless state management :{
<slabity>
I want my stateful systems to be stateless though. It's not fair
<infinisil>
We all already have state though
<infinisil>
Our NixOS configuration files
fenedor is now known as fendor
<slabity>
I can't just put my passwords in my NixOS configuration though...
<adisbladis>
slabity: What passwords though
<slabity>
And thus the circular issue of how to manage my passwords
<adisbladis>
Is there another way?
<adisbladis>
Passwords are a flawed concept and should be avoided
<adisbladis>
If possible
<infinisil>
By NixOS config I don't mean only configuration.nix, but everything around it too
<infinisil>
Like wrapper/deployment scripts, everything you'd have in your config repo
<infinisil>
And secrets should be part of that too (although hidden from the public)
<slabity>
Okay, I get in an ideal world passwords are bad. But the world isn't ideal and I need to use passwords
<gchristensen>
it sounds like we've gotten to meta for slabity and they're just tring to do their job or whatever
<slabity>
Oh no, not my job. This is personal stuff
fragamus has joined #nixos
<adisbladis>
slabity: I've mostly managed to avoid it for quite some time, everything that can be authenticated with keys are for example
<adisbladis>
I'm genuinely curious if it's possible to not use passwords for your use cases
<slabity>
My use case is being able to verify authenticity of a person using nothing but a keyboard attached to the computer
<slabity>
If you can think of a way to not use passwords, then by all means let me know :P
<adisbladis>
slabity: Right, using PAM?
<slabity>
Oh. Didn't think of that
<slabity>
I wonder if I can write a PAM module to allow `nixos-rebuild` to access my `pass` store
<infinisil>
Although, I guess the problem is that hashed passwords can be brute forced without having access to the thing where you would normally enter it
<slabity>
That seems more if you want `mutableUsers = true`
<gchristensen>
with sha256 / sha512 you just have to race somebody finding a collision with making the password useless. so make sure you rotate your passwords once every billion years or so.
Fare has quit [Ping timeout: 265 seconds]
<adisbladis>
Hmm, interesting.
<adisbladis>
I thought the default tmpfs size was always 50% of ram
<clever>
adisbladis: yeah, if a size isnt specified, the kernel defaults the size to 50% of ram
<adisbladis>
clever: But my / ends up being 3G unless I specify the size O.o
<clever>
adisbladis: is / actually a tmpfs? what is the full output of `mount` ?
<adisbladis>
clever: Still though. I don't want keys not residing in dedicated hardware.
<lordcirth_>
key management is always a concern
lassulus has quit [Ping timeout: 268 seconds]
<clever>
adisbladis: in the case of the aws backend, if you simply edit /root/.ssh/authorized_keys, the keys nixops is managing will cease to be of value
<clever>
adisbladis: but if your on a none backend, youll need to edit the python to make it behave more like aws
<{^_^}>
[nixpkgs] @bjornfor merged pull request #73252 → fop: builds on all platforms → https://git.io/JewzJ
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @eraserhd to master « fop: builds on all platforms »: https://git.io/Jewgf
lassulus has joined #nixos
<lordcirth_>
Anyone using dm-integrity or dm-verity on NixOS? I installed a VM with it's root on a dm-integrity block device, was surprisingly easy
<rardiol>
Is someone successfully running plasma/KDE on wayland? I try and it and I get "qt.qpa.plugin: Could not load the Qt platform plugin "wayland-org.kde.kwin.qpa" in "" even though it was found."
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 4 commits to nixpkgs-19.09-darwin: https://git.io/JewgC
selfsymmetric-mu has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jacereda opened pull request #73260 → yabai: init at 2.1.2 → https://git.io/Jewgw
<romildo>
I used to update the deepin packages in nixpkgs with the command 'nix-shell maintainers/scripts/update.nix --argstr path deepin' but it is not working anymore. Has something changed on how updating works? Any clues?
<jtojnar>
though I get "Going to be running update for following packages" immediately after "building '/nix/store/x5i3a05133xmxb5mv0pvyvsyah6kyhx6-packages.json.drv"
tilpner has quit [Ping timeout: 240 seconds]
lassulus has quit [Ping timeout: 246 seconds]
<romildo>
jtojnar, the nix-shell command just terminated without any further messages.
<selfsymmetric-mu>
For some reason the NixOS live installer isn't booting for me so I might have bigger problems.
ng0 has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
abathur has quit [Ping timeout: 268 seconds]
<gchristensen>
what model computer?
<selfsymmetric-mu>
I'm at "network is unreachable" but my ethernet port is blinking. Pretty much square one.
<selfsymmetric-mu>
gchristensen: I'm using a Lenovo P50.
<infinisil>
selfsymmetric-mu: Can you ping the router?
<infinisil>
Got anything in `ip route`?
<infinisil>
What about `ifconfig`
<selfsymmetric-mu>
infinisil: All I have is a ten-finger interface.
<infinisil>
These are the things I usually start with
<selfsymmetric-mu>
So it's going to take me some time to type.
<selfsymmetric-mu>
I have one line in `ip route`.
<selfsymmetric-mu>
Anyone have a troubleshooting guide?
<selfsymmetric-mu>
I don't know how to answer questions like "can you ping the router" reliably; I'd rather run through the obvious steps somewhere before asking questions here, otherwise I think I'm likely to exhaust you.
<selfsymmetric-mu>
I _think_ no, though.
<selfsymmetric-mu>
I tried to ping the only interface in `ip route` and it told me if I wanted to broadcast.
<selfsymmetric-mu>
I can't get the live CD to work.
<selfsymmetric-mu>
I tried the graphical and minimal installer.
<selfsymmetric-mu>
One of them dumped me into grub, the other one didn't work at all.
<selfsymmetric-mu>
I'm about four hours into this.
<samueldr>
weird, considering they use the exact same grub setup
<selfsymmetric-mu>
It's extremely concerning.
<infinisil>
selfsymmetric-mu: Do you have a different machine to test the live cd stick?
<selfsymmetric-mu>
infinisil: I do.
stepcut has quit [Remote host closed the connection]
<selfsymmetric-mu>
The behavior is different but the result is the same. The stick doesn't work.
<selfsymmetric-mu>
Maybe I'm installing it wrong.
<samueldr>
is the lenovo p50 a recent laptop, like new model released within the last 6-12 months or so?
<selfsymmetric-mu>
samueldr: It is not.
<infinisil>
selfsymmetric-mu: Can you create a new live stick from the other machine?
<samueldr>
this at least closes one avenue for troubleshooting
<monokrome>
Hmm... Seems like nixos-hardware uses servies.throttled at least in the Lenovo X1 code. Does anyone know what that setting is replaced with on latest nixos versions?
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
alexherbo2 has quit [Read error: Connection reset by peer]
<selfsymmetric-mu>
The sha is good.
<monokrome>
I ran `nix-channel --update` and it broke my `nixos-rebuild switch --upgrade`
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<monokrome>
Seems it doesn't exist when I update that channel
<samueldr>
for the previous stable release, yes
<infinisil>
monokrome: Always mention the error
<selfsymmetric-mu>
infinisil++
<infinisil>
It's hard to debug without knowing what went wrong :)
<{^_^}>
infinisil's karma got increased to 159
<selfsymmetric-mu>
I'm in the installer.
astrall33 has joined #nixos
<monokrome>
I did mention the error, but I can paste it if you think that will help
<monokrome>
error: The option `services.throttled' defined in `/nix/var/nix/profiles/per-user/root/channels/nixos-hardware/lenovo/thinkpad/x1/6th-gen' does not exist.
alexherbo27 has joined #nixos
<infinisil>
You did? I'm not seeing it in my backlog
alexherbo2 has quit [Ping timeout: 265 seconds]
<monokrome>
monokrome | Hmm... Seems like nixos-hardware uses servies.throttled at least in the Lenovo X1 code. Does anyone know what that setting is replaced with on latest nixos versions?
mexisme has joined #nixos
<infinisil>
That doesn't include the actual error though
<samueldr>
the throttled service was introduced to master in June
<monokrome>
You said mention the error, not paste it directly :)
<samueldr>
it's not part of the 19.03 release
<samueldr>
though it should be part of the (current) stable 19.09 release
<monokrome>
oh
<monokrome>
maybe nix-hardware got updated w/ things beyond what is in 19.03
<samueldr>
might be a good idea to upgrade :)
<monokrome>
thanks samueldr
<monokrome>
will try updating to 19.03
<monokrome>
will try updating to 19.09 *
<samueldr>
since anyway 19.03 is likely to not receive any updates
astrall33 has quit [Read error: Connection reset by peer]
<samueldr>
it's now past the best effort date for backports
<infinisil>
Just generally it's much easier for people who want to help when they immediately see the actual error
<infinisil>
Association of error -> solution perhaps :)
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 40 commits to nixos-unstable-small: https://git.io/Jew2J
Ariakenom has quit [Quit: Leaving]
<infinisil>
Also, I've often seen people conclude things from errors that weren't accurate, then ask questions based on these conclusions, X/Y problem style