gchristensen changed the topic of #nixos to: NixOS stable: 18.09, beta: 19.03 https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<infinisil> mankyKitty: First option: Since the module is *tiny*, you can just copy it over directly, just copy these three lines into your configuration.nix: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/hardware/bolt.nix#L29-L31
<mankyKitty> oh nice
<infinisil> (I'd put a comment to note that this can be replaced with the option once it's available)
<jackdk> I have a nix expression that compiles my static site builder and runs it, and the derivations only contains generated html/images/css. However, any change to the site will trigger a reupload of all images, which is annoying. Is there a way to split the site into multiple derivations, so that a change doesn't force reuploads of everything?
Guest72641 has quit [Remote host closed the connection]
sinner has joined #nixos
sinner is now known as Guest38738
<mankyKitty> yaasssssssssss <3 thank you infinisil
Fare has quit [Ping timeout: 255 seconds]
<infinisil> Np :)
<infinisil> jackdk: How do you want to split it?
<jackdk> One derivation for CSS/HTML, 1-N of image directories seems like a good idea
<infinisil> This might be a bit of a stretch, but maybe multiple outputs would work for you
<infinisil> Just assign `outputs = [ "html" "images1" "images2" "whatever" ]` in your mkDerivation
<infinisil> Then.. *looks up how it works*
josiah_sama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> infinisil: write files to $html, $images1, $images2, and $whatever
<clever> out may be required
<infinisil> Yeah that ^
<clever> each one can be a file, directory, or symlink
<{^_^}> [nixpkgs] @danbst merged pull request #56546 → nginx: add http subs filter module → https://git.io/fhAIG
<{^_^}> [nixpkgs] @danbst pushed commit from @polynomial to master « nginx: add http subs filter module (#56546) »: https://git.io/fhjNu
<infinisil> But actually this might not be what you want, because any change will still rebuild everything
<infinisil> jackdk: How about just splitting your build into multiple derivations?
<{^_^}> [nixpkgs] @Ekleog opened pull request #57552 → nspr: remove impurity → https://git.io/fhjNz
<infinisil> multiple outputs split the build result, but not the build steps itself
vk3wtf has joined #nixos
jtojnar has quit [Quit: jtojnar]
thomashoneyman has joined #nixos
Fare has joined #nixos
Rusty1 has joined #nixos
mbrgm_ has joined #nixos
m0rphism has quit [Ping timeout: 272 seconds]
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm_ is now known as mbrgm
jluttine has quit [Ping timeout: 255 seconds]
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
Fare has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Kiwi opened pull request #57553 → vim-plugins: typo propogatedBuildInputs -> propagatedBuildInputs → https://git.io/fhjNi
<DigitalKiwi> hey that's me!
drakonis_ has joined #nixos
<DigitalKiwi> it only took me like 2 days after finding it to submit :|
ng0 has quit [Quit: Alexa, when is the end of world?]
drakonis has quit [Ping timeout: 252 seconds]
pie___ has joined #nixos
<samueldr> DigitalKiwi: >:) that avatar will need an update
pie_ has quit [Ping timeout: 245 seconds]
slack1256 has joined #nixos
<DigitalKiwi> heh
<DigitalKiwi> someone make it and i'll consider it
vk3wtf has quit [Ping timeout: 252 seconds]
<DigitalKiwi> but it's also the avatar for my twitter which is ArchKiwi and that would ruin it
<{^_^}> [nixpkgs] @xaverdh opened pull request #57554 → WIP: firefox/wrapper.nix: make firefox wrapper configurable by the user → https://git.io/fhjNF
doyougnu has quit [Ping timeout: 250 seconds]
work_ has quit [Quit: Connection closed for inactivity]
<samueldr> (obviously said in jest, DigitalKiwi, in case it wasn't obvious)
thomashoneyman has quit [Ping timeout: 256 seconds]
<infinisil> DigitalKiwi: How about adding a tiny NixOS logo that peeks through the head from behind
<CMCDragonkai> I'm managing the NixOS configuration via git but I'm attempting to sign commits now on that repo. It appears there's a problem with this approach: https://stackoverflow.com/questions/55115787/gpg-sign-git-commit-on-repository-owned-by-root
erasmas has quit [Quit: leaving]
<ekleog> … there's definitely something I'm misunderstanding: `faketime '2000-01-01 00:00:00' sh -c 'date; sleep 5; date'` returns 5s diff while faketime was supposed to freeze the time
<noonien> i'm running i3 with no DE, and some apps appear to have missing icons, how can i solve this?
<samueldr> The wall clock will continue to run from this date and time unless specified otherwise (see advanced options). ekleog
haslersn[m] has joined #nixos
<samueldr> which re-reading the manpage tells me maybe you're doing it right?
<ekleog> samueldr: hmm looks like you were right and the manpage wrong
<samueldr> ah
<samueldr> use -f
<ekleog> adding -f makes the test pass -- regardless of whether there was a '@' at the beginning
<samueldr> nah, it's documented in a non-obvious way
<ekleog> so either the code or the manpage is wrong I guess
<samueldr> you need to use the "advanced timestamp format"
<samueldr> which is used using -f
<{^_^}> [nixpkgs] @Kiwi opened pull request #57555 → pythonPackages.weboob fix build → https://git.io/fhjAk
<shazow> noonien: what kinds of icons?
<samueldr> which non-obiously using 'YYYY-MM-DD hh:mm:ss' makes it freeze the time using -f
<ekleog> well at least the '@' option is documented as being “starts at” and `faketime -f '@2000-01-01 00:00:00' sh -c 'date; sleep 5; date'` makes it freeze
rcshm has quit []
<shazow> noonien: i had a similar problem maybe, see if this solution works for you: https://discourse.nixos.org/t/tray-icons-for-flatpak-apps/1894
<noonien> i think these might be GTK icons, like 'seek', 'play', 'network', etc
<shazow> you probably need dbus-launch (see the thread i linked)
<noonien> i'm unsure of qt icons, or how they work
<ekleog> well at least the '@' option is documented as being “starts at” and `faketime -f '@2000-01-01 00:00:00' sh -c 'date; sleep 5; date'` makes it freeze
<ekleog> oops
* ekleog thought he was in his compilation shell and did 'up arrow&enter'
* samueldr can't wait for focus follows eyes
<shazow> noonien: tldr replace `exec i3` with `exec dbus-launch i3`
<acowley> I'm struggling to figure out how to make it happy
<acowley> It's yet another instance of people assuming llvm and clang are being built as one big source tree, as far as I can tell
<noonien> i'm not sure that's the issue, for example, running `gnomecast` which has missing icons, give me this: http://vpaste.net/osWCz
<CMCDragonkai> @manveru No I'm not working on arduino stuff atm why would you think that?
<shazow> noonien: yea not certain it's the same problem... fwiw my symptoms were similar (gtk icons didn't work, qt ones did for some reason)
<noonien> i think qt has some fallbacks
<shazow> yea probably
<noonien> i have not explicitly installed any gnome themes, so that might be it
<noonien> i've also not installed anything that helps me choose a theme, i might have to do both
<manveru> CMCDragonkai: just some old gist I found
<noonien> i'm curious if anyone is running i3 on top of plasma
<jackdk> infinisil: Yeah, that's probably what I'll try to do. Recompiling the site compiler (hakyll) will probably trigger a rebuild of everything but that should be ok
<jackdk> that will happen less and less often as the site stabilises
<shazow> noonien: could try adding adwaita-icon-theme to satisfy the error messages, though i'm surprised it didn't include one by default (or maybe you have a userland config that overrides it?)
<noonien> i've only got i3 installed, nothing else, don't think adwaita is a dependency of i3
<noonien> or any other GUI apps
<shazow> certainly not, seems more like a gtk/gnome thing
<shazow> (i'm not very familiar with gnome, just guessing)
<shazow> fwiw i also run i3 without a de, big fan of this setup :)
<noonien> http://vpaste.net/hgGsz is most of my GUI config
<DigitalKiwi> infinisil: well the issue is i didn't make it ghost1227 did and i don't talk to him much anymore
vk3wtf has joined #nixos
thomashoneyman has joined #nixos
silver_ has joined #nixos
<worldofpeace> noonien: yeah you probably should install hicolor-icon-theme and gnome3.adawaita-icon-theme
Fare has joined #nixos
<noonien> yeah, i'll do that, i wonder if i can change the theme
silver has quit [Ping timeout: 246 seconds]
<noonien> i'll try to use plasma at some point, i really love KDE's integrations
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @dtzWill to gnome-3.32 « gucharmap: 11.0.3 -> 12.0.1, unicode 12 »: https://git.io/fhjAO
<{^_^}> [nixpkgs] @worldofpeace closed pull request #57547 → gucharmap: 11.0.3 -> 12.0.1, unicode 12 → https://git.io/fhjFP
<{^_^}> [nixpkgs] @Kiwi opened pull request #57556 → pythonPackages.pdfminer: from 20170720 -> 20181108 → https://git.io/fhjAG
<DigitalKiwi> my catchphrase is now in the course of adding a new package....
<thomashoneyman> elvishjerricco: i need to resize this encrypted partition, but i'm struggling a bit to figure out how
<DigitalKiwi> I haven't even finished adding the new package :|
<thomashoneyman> elvishjerricco: specifically, i'd like to shrink it by 150gb and create a new 150gb ntfs partition instead
<DigitalKiwi> or the new packages that i have to add to add the new packages...
<thomashoneyman> i'm not too familiar with zfs -- looks like tools like e2fsck don't recognize the space as even valid
<thomashoneyman> get messages about "corrupted superblock" and that sort of thing
<thomashoneyman> and tools like gparted don't appear to work when a disk is encrypted, even after decrypting with cryptsetup
<ekleog> samueldr: Bad news: my question was not as useful as I thought. Good news: I found a way to not need faketime. Bad news: it'll require updating groff, and I can't figure out anything as now is way too late. (Context: I was trying to make man-db reproducible, and judging from https://github.com/unofficial-mirror/groff/blob/b1f66ce5eb483528b21ebfb3d007dc9bc1050493/src/devices/gropdf/gropdf.pl#L262 it looks like
<clever> thomashoneyman: what FS are you trying to shrink?
<ekleog> bumping groff to 1.22.4 should be enough, but somehow autoreconf fails on it)
<thomashoneyman> clever: file system was created following this -- https://elvishjerricco.github.io/2018/12/06/encrypted-boot-on-zfs-with-nixos.html
ayerhart has quit [Quit: ayerhart]
<clever> thomashoneyman: ZFS cant be shrunk, ever
<thomashoneyman> well, there you go
<clever> thomashoneyman: you will need to make a full backup, and then re-format it with a smaller fs
ayerhart has joined #nixos
iqubic` has joined #nixos
<thomashoneyman> clever: good to know!
iqubic has quit [Remote host closed the connection]
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
Wulfsta has joined #nixos
<Wulfsta> I'm back with more dumb questions
<{^_^}> [nixpkgs] @matthewbauer opened pull request #57557 → nixos/virtualbox: add swap file → https://git.io/fhjA0
<Wulfsta> So I have a Radeon VII, and finally realized I needed a newer version of linux for it to be recognized. That's working fine, but my monitor seems to be... zoomed in?
<Wulfsta> No SLiM or SDDM enabled, just appear to be booting into tty1. Once the kernel loads the drivers during boot it stops showing the green part of the startup process because that's off the side of the screen
goibhniu has quit [Ping timeout: 246 seconds]
<Wulfsta> I'm not sure how to fix this
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhjAg
<Wulfsta> This is my first AMD card as well, so I'm even more lost
<DigitalKiwi> worldofpeace: did i fix that right
Glider_IRC__ has quit [Ping timeout: 252 seconds]
Glider_IRC has joined #nixos
<DigitalKiwi> i took (pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc) a bit too literally >.>
<worldofpeace> DigitalKiwi: Yep :)
<ar> Wulfsta: i'm going to get my vii sometime this week, and this won't be my first radeon card on the amdgpu driver stack; afaiu they require very new firmware package, and kernel either 4.19 or 4.20
<DigitalKiwi> dammit i pushed something i didn't mean to :|
<DigitalKiwi> grr
<worldofpeace> I think that means `->` is in english `from to`. TBH the formatting on that is a little to technical for everyone's taste
<Wulfsta> ar: kernel 4.19 didn't work for me, I just used latest on the unstable channel
<worldofpeace> *some people's
<DigitalKiwi> worldofpeace: how do i get rid of that
iqubic` is now known as iqubic
<worldofpeace> git commit --amend if you like?
<iqubic> hellow
<iqubic> Has anyone updated Discord to the new version?
fusion809 has quit [Remote host closed the connection]
<DigitalKiwi> in the first amend i accidentally added that wrong file
<worldofpeace> Then don't add the file
<{^_^}> #57528 (by ar1a, 8 hours ago, merged): Discord: 0.0.8 -> 0.0.9
xkapastel has quit [Quit: Connection closed for inactivity]
<iqubic> Nice.
<iqubic> Has that been merged yet?
joepie91 has joined #nixos
<clever> iqubic: {^_^} said its merged
<iqubic> So I can pull that into my local nixpkg fork and then build it?
ddellacosta has quit [Quit: WeeChat 2.2]
<iqubic> How do I pull the latest version of nixpkg and merge that with my local fork?
<iqubic> I forget the exact git command.
jackdk has quit [Ping timeout: 245 seconds]
<slack1256> git fetch?
jluttine has joined #nixos
<worldofpeace> iqubic: this might be helpful https://nixos.wiki/wiki/Nixpkgs/Update_a_package
silver_ has quit [Read error: Connection reset by peer]
<DigitalKiwi> worldofpeace: how do i unadd it
adetokunbo has joined #nixos
<adetokunbo> hello
<clever> DigitalKiwi: i find git gui helps a lot
<worldofpeace> DigitalKiwi: You can amend and then do `git checkout -- $filename`
Myhlamaeus has joined #nixos
<iqubic> How do I tell git what my username and password are?
<adetokunbo> Does anyone know if cabal build-tools are supported by cabal2nix ?
<clever> iqubic: i prefer using ssh, rather then https
<iqubic> I see.
<clever> iqubic: git@github.com:org/repo
<iqubic> How do I change my origin remote to be an ssh path?
<iqubic> Currently I have origin = https://github.com/IQubic/nixpkgs
jluttine has quit [Ping timeout: 246 seconds]
<clever> iqubic: git@github.com/IQubic/nixpkgs
<clever> oops
<clever> iqubic: git@github.com:IQubic/nixpkgs
<iqubic> Right... But how do I change the address git uses?
<clever> iqubic: i just edit .git/config
<slack1256> I haven't keep up with the new package formats, how do you use an AppImage on nixos?
<iqubic> How do I tell git to use ssh instead of the https I have currently.
<DigitalKiwi> worldofpeace: now it's right i think?
<Myhlamaeus> git remote set-url <remote> <url> should work
vk3wtf has quit [Ping timeout: 240 seconds]
<iqubic> clever: What changes to .git/config would you make?
<iqubic> slack1256: I too would like an answer to that.
<Myhlamaeus> It would change [remote "<remote>"].url to <url>
<iqubic> I see.
<iqubic> I managed to get the ssh stuff working.
<iqubic> So I just built Discord 0.0.9 Now... How do I run it?
<clever> iqubic: depends on how you built it
<iqubic> It seems that running "Discord" from the command line still gives me an old version.
<Myhlamaeus> iqubic: ./result/bin/Discord, if built with nix-build
<iqubic> clever: I built it with "cd ~/nixpkgs; nix-build -A discord"
<iqubic> Is there a way I can add the result to my path?
<clever> iqubic: what Myhlamaeus said
<clever> iqubic: nix-env -f . -iA discord
<iqubic> cool. Thanks.
<Myhlamaeus> iqubic: You could also reference it from your home.nix or configuration.nix
<Orbstheorem> Mic92: Are the slides you presented on 35C3 available somewhere? https://events.ccc.de/congress/2018/wiki/index.php/Session:NixOS:_Pratical_Introduction_into_Cross-Compiling
<iqubic> Myhlamaeus: I did not know that.
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #57556 → pythonPackages.pdfminer: 20170720 -> 20181108 → https://git.io/fhjAG
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Kiwi to master « pythonPackages.pdfminer: 20170720 -> 20181108 »: https://git.io/fhjAN
vk3wtf has joined #nixos
<Wulfsta> Aha, so it appears I'm having a KMS problem!
jluttine has joined #nixos
mconstant has quit [Ping timeout: 252 seconds]
adetokunbo has quit [Ping timeout: 252 seconds]
sigmundv has quit [Ping timeout: 245 seconds]
thc202 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @Ekleog opened pull request #57559 → iso-image: make reproducible by not relying on mcopy's readdir → https://git.io/fhjxf
slack1256 has quit [Remote host closed the connection]
<petersjt014> anyone know what happened to the plans to use f2fs as the default filesystem for the aarch64 image? I've checked the latest 18.09 and 19.03 images and they're still ext4
<DigitalKiwi> I'm a contributor :D
<petersjt014> good job. I almost wrote a nixfile for a text editor but somebody beat me to it.. :|
<iqubic> what text editor?
<petersjt014> micro. nice little one that uses windows-style shortcuts. by the time I was gonna go for it I had learned vim too lol
pie__ has quit [Ping timeout: 252 seconds]
<petersjt014> now I wanna try somethin more exotic. maybe vis.
<petersjt014> structured regexes, multiple text cursors, buncha other neat stuff
<{^_^}> [nixpkgs] @ryantm merged pull request #57376 → protozero: 1.6.4 -> 1.6.7 → https://git.io/fhjYd
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhjxm
<Myhlamaeus> Lately it occured to me that multiple cursors are only useful if one doesn't have macros
<DigitalKiwi> worldofpeace: the bot says that weboob doesn't build on macos how do i know if it didn't before or if what i changed broke it
<{^_^}> [nixpkgs] @ryantm merged pull request #57286 → libosmium: 2.15.0 -> 2.15.1 → https://git.io/fhhxN
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhjxY
Fare has quit [Ping timeout: 246 seconds]
<petersjt014> gotta know what exactly you wanna do and test it before you can make something into a macro. besides, multiple cursors would help get you in the macro mindset I'd imagine.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<Myhlamaeus> I'd argue that one always has to know what exactly one wants to do to do it
<Myhlamaeus> Would it make sense to treat suckless patches just like plugins in eg Chromium and Firefox?
<Wulfsta> So can anyone point me in the right direction to configure an EDID for KMS in NixOS?
<worldofpeace> DigitalKiwi: That looks like failure in the dependency chain, which I think should've been fixed for darwin IIRC
<{^_^}> [nixpkgs] @ryantm merged pull request #57465 → tds_fdw: init a 1.0.8 → https://git.io/fhjuW
<{^_^}> [nixpkgs] @ryantm pushed commit from @steve-chavez to master « tds_fdw: init a 1.0.8 »: https://git.io/fhjxn
<DigitalKiwi> worldofpeace: i added that comment and fixed the :
<{^_^}> [nixpkgs] @worldofpeace merged pull request #57555 → pythonPackages.weboob: fix build → https://git.io/fhjAk
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Kiwi to master « pythonPackages.weboob: fix build »: https://git.io/fhjxc
o1lo01ol1o has joined #nixos
<petersjt014> Myhlamaeus: if they were specialized enough, maybe. I'm just saying that recording a macro to edit/save later might be easier with more advanced manual editing tools. Same prolly goes for other stuff metaphically
<{^_^}> [nixpkgs] @ryantm merged pull request #57136 → moosefs: init at 3.0.103 → https://git.io/fhhwn
<{^_^}> [nixpkgs] @ryantm pushed commit from @mfossen to master « moosefs: init at 3.0.103 »: https://git.io/fhjxC
<Myhlamaeus> petersjt014: Macros can also be recorded into buffers and then replayed without saving them, which is IMO pretty much the same as multi-cursor
adetokunbo has joined #nixos
<Myhlamaeus> Replayed without persisting them
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @Kiwi to release-19.03 « pythonPackages.weboob: fix build »: https://git.io/fhjxl
<{^_^}> [nixpkgs] @ryantm merged pull request #57537 → glava: correctly display version information → https://git.io/fhj5Z
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhjx8
<petersjt014> hm. didn't know that was a thing
<Myhlamaeus> petersjt014: q[register] will start recording, then q again will stop it, and @[register] will play the macro
stepcut has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #57462 → lightdm_gtk_greeter: cleanup → https://git.io/fhjE6
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhjx0
<petersjt014> also good to know. in the meantime, I found the q/a page for vis where they explain their design choices. not gonna say their the best (I don't know enough to make that assertion), just that I find the approach interesting.
<{^_^}> [nixpkgs] @worldofpeace merged pull request #57551 → termtosvg: fetch source from pypi → https://git.io/fhjbH
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @marsam to master « termtosvg: fetch source from pypi »: https://git.io/fhjxo
reallymemorable has joined #nixos
cryptomonad has quit [Remote host closed the connection]
stepcut has quit [Ping timeout: 245 seconds]
<Myhlamaeus> There's also neovim, which is vim with a better plugin system (and support for 'legacy' vim plugins) and clean(er) code
<iqubic> I just use emacs and EVIL mode.
<Myhlamaeus> As do I
<iqubic> Works well for me. Mostly because org-mode is the best.
vk3wtf has quit [Ping timeout: 252 seconds]
doyougnu has joined #nixos
Izorkin has quit [Ping timeout: 246 seconds]
<iqubic> Currently I'm looking at this github project and attempting to learn these keybindings.
<Myhlamaeus> As expected, that's a lot
lsyoyom has quit [Quit: WeeChat 2.3]
<iqubic> What do you mean?
<Myhlamaeus> A lot of key bindings
<Myhlamaeus> But I haven't really seen most of org-mode... I think
<iqubic> Right. But I'm a sucker for being able to do everything with keyboard controll.
<iqubic> I mean, who isn't?
alex```` has quit [Ping timeout: 246 seconds]
<Myhlamaeus> I only use my mouse for things which have no (obvious) key bindings and for games
<iqubic> Myhlamaeus: I mainly use org-mode for taking notes and for tracking deadlines.
stepcut has joined #nixos
<Myhlamaeus> I'm using it for notes/todos, deadlines, time tracking, and links
<Myhlamaeus> And I feel that I'm still missing out on a lot of its features
<infinisil> Btw there's #nixos-chat for offtopic stuff
<iqubic> I'm just now learning about org's ability to be a spreadsheet akin to LibreOffice Calc.
Wulfsta has quit [Ping timeout: 256 seconds]
andrew__ has joined #nixos
andrew__ has quit [Client Quit]
tmaekawa has joined #nixos
countingsort has joined #nixos
awd13 has joined #nixos
vk3wtf has joined #nixos
buffet has quit [Ping timeout: 252 seconds]
infinee has joined #nixos
awd13 has quit [Quit: leaving]
<{^_^}> [nixpkgs] @veprbl merged pull request #57531 → [19.03] qt511.qtwebkit: fix on darwin → https://git.io/fhj9d
<{^_^}> [nixpkgs] @veprbl pushed 5 commits to release-19.03: https://git.io/fhjxA
<thomashoneyman> is it kosher to share a boot partition between nixos and windows?
emily has quit [Ping timeout: 250 seconds]
<iqubic> It's what I do.
<iqubic> And it has worked for the past year. So yes it is fine.
<thomashoneyman> i've installed windows first
<thomashoneyman> i'm assuming i should skip the `mkfs.ext4` part of the install guide?
<iqubic> What guide are you using?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
stepcut has quit [Ping timeout: 252 seconds]
<iqubic> thomashoneyman: Yeah. Just skip the `mkfs.ext4` step.
<thomashoneyman> iqubic: sorry, doing some encryption via arch. skipped that and just mounted it.
<iqubic> Also skip the `mkfs.fat` part too.
<thomashoneyman> *the arch wiki
<iqubic> If you need more help with getting a dual boot system up and running, I can try and help you.
<iqubic> Just put your questions here.
simukis has quit [Quit: simukis]
Izorkin has joined #nixos
stepcut has joined #nixos
<{^_^}> [nixpkgs] @ryantm pushed commit from @robertseaton to master « tamsyn: init at 1.11 »: https://git.io/fhjpT
<{^_^}> [nixpkgs] @ryantm merged pull request #57482 → tamsyn: init at 1.11 → https://git.io/fhjae
o1lo01ol1o has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
<thomashoneyman> iqubic: thanks! this is actually like attempt 6 to get everything working
<thomashoneyman> had a ton of issues to get the nvidia driver to work
stepcut has joined #nixos
<iqubic> Oh yeah. Non-free drivers are a pain on Nixos.
<iqubic> They are a pain on most distros, but even worse on Nixos.
doyougnu has quit [Ping timeout: 255 seconds]
<thomashoneyman> well, at this point i've just blacklisted it
<thomashoneyman> :)
<thomashoneyman> but I do want to figure out how to make it work later
adetokunbo has quit [Quit: This computer has gone to sleep]
vk3wtf has quit [Ping timeout: 252 seconds]
adetokunbo has joined #nixos
thomashoneyman has quit [Ping timeout: 256 seconds]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
doyougnu has joined #nixos
reallymemorable has quit [Ping timeout: 255 seconds]
rardiol1 has left #nixos [#nixos]
Yaniel has quit [Excess Flood]
Yaniel has joined #nixos
vk3wtf has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #57560 → lightdm_gtk_greeter: fix configureFlags to not be one long string → https://git.io/fhjpu
doyougnu has quit [Ping timeout: 245 seconds]
stepcut has quit [Remote host closed the connection]
invokesus has quit [Ping timeout: 245 seconds]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
Mateon3 has joined #nixos
Mateon2 has quit [Ping timeout: 272 seconds]
Mateon3 is now known as Mateon1
stepcut has quit [Ping timeout: 245 seconds]
emily has joined #nixos
stepcut has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
o1lo01ol1o has joined #nixos
Fare has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
stepcut has quit [Remote host closed the connection]
ericsagnes has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
rauno has quit [Ping timeout: 240 seconds]
ddellacosta has quit [Ping timeout: 246 seconds]
jackdk has joined #nixos
<{^_^}> [nixpkgs] @aaronduino opened pull request #57561 → nixos/manual: document auto-login → https://git.io/fhjp7
fusion809 has joined #nixos
<adetokunbo> hello!
freeman42x has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @worldofpeace pushed to master « gopass: 1.8.4 -> 1.8.5 »: https://git.io/fhjpp
<therealwaphire[m> Has anybody got filebot to run on NixOS?
<adetokunbo> I have a question about nix-instantiate; if nix-instantiate succeeds for a nix-expression, does that mean that a nix-build for that expression has successfully determined all its dependencies?
<adetokunbo> s/has successfully determined/will successfully determine/
endformationage has quit [Quit: WeeChat 2.3]
wfranzini has quit [Remote host closed the connection]
ar1a has quit [Ping timeout: 250 seconds]
ar1a has joined #nixos
vk3wtf has quit [Ping timeout: 252 seconds]
reallymemorable has joined #nixos
knupfer has joined #nixos
reallymemorable has quit [Ping timeout: 246 seconds]
Myhlamaeus has quit [Quit: WeeChat 2.2]
knupfer has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 246 seconds]
<adetokunbo> ok, I re-read https://nixos.org/nixos/nix-pills/our-first-derivation.html and that answered my question
<adetokunbo> I.e, nix-instantiate does not build, so a build can fail even though even the derivation could successfully be instantiated
Fare has joined #nixos
petersjt014 has quit [Ping timeout: 272 seconds]
drakonis1 has quit [Quit: WeeChat 2.3]
palo1 has joined #nixos
<{^_^}> [nixpkgs] @colemickens opened pull request #57562 → WIP: libdrm, mesa: convert to meson, bump to HEAD → https://git.io/fhjhW
palo has quit [Ping timeout: 252 seconds]
palo1 is now known as palo
Erasmus has quit [Quit: END-AUMF]
Glider_IRC_ has joined #nixos
jackdk has quit [Ping timeout: 252 seconds]
Glider_IRC has quit [Ping timeout: 245 seconds]
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
fusion809 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
reinhardt has joined #nixos
vk3wtf has joined #nixos
CcxWrk has quit [Remote host closed the connection]
rauno has joined #nixos
Fare has quit [Ping timeout: 245 seconds]
vk3wtf has quit [Ping timeout: 252 seconds]
lukego has quit [Ping timeout: 256 seconds]
<shachaf> I'm seeing an odd issue with ghci where UTF-8 support seems to be broken (?).
<shachaf> A profile from 2019-03-01 works fine, but a profile from 2019-03-07 doesn't.
CcxWrk has joined #nixos
<shachaf> If a .ghci contains λ the whole thing seem to be silently ignored (?), and typing λ into the interactive prompt just shows up as "??"
dwdr has joined #nixos
wfranzini has joined #nixos
zZ0O0z has joined #nixos
m0rphism has joined #nixos
<c_wraith> any chance the os locale is different between the two?
grizwako has joined #nixos
NickSeagull has joined #nixos
zupo has joined #nixos
nD5Xjz has joined #nixos
nD5Xjz_ has quit [Ping timeout: 268 seconds]
reallymemorable has joined #nixos
reallymemorable has quit [Ping timeout: 246 seconds]
<shachaf> Not sure, is there some way Nix would change it?
<shachaf> I'm using the same Ubuntu system, I just did nix-env --rollback and ghci in the old profile worked correctly. No other changes.
grizwako has quit [Remote host closed the connection]
Ariakenom has joined #nixos
Makaveli7 has joined #nixos
winem_ has joined #nixos
grizwako has joined #nixos
johanot has joined #nixos
Dr8128 has joined #nixos
<joko> ÎÎ/j #vim
<joko> oops :D
ayerhart has quit [Read error: Connection reset by peer]
hyperfekt has joined #nixos
<hyperfekt> Is there any function in nixpkgs to patch a single file?
<Ariakenom> sudo vim /etc/nixos/conf�hunter2
<Ariakenom> (joke)
pmiddend has joined #nixos
goibhniu has joined #nixos
<{^_^}> [nixpkgs] @hedning pushed 5 commits to gnome-3.32: https://git.io/fjeeY
adetokunbo has quit [Quit: This computer has gone to sleep]
ilmu has quit [Ping timeout: 245 seconds]
adetokunbo has joined #nixos
<contrun[m]> anyone experiences unexpected error on nix-channel update?
* contrun[m] uploaded an image: 2019-03-13-090421_1109x301_scrot.png (40KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/rcKOjQwlHZYFpOoFWMLbBIZz >
<contrun[m]> Is this normal?
<DigitalKiwi> for some definitions of patch...
<hyperfekt> DigitalKiwi: Thanks, but I mean using the patch tool outside of stdenv.mkDerivation.
<DigitalKiwi> ya >.>
<hyperfekt> Something you would find in trivial-builders.nix
<hyperfekt> Maybe it's time for a PR, considering how often I've found myself in the need.
Ariakenom has quit [Quit: Leaving]
<DigitalKiwi> what's wrong with the patchphase stuff
Ariakenom has joined #nixos
zZ0O0z has left #nixos [#nixos]
<hyperfekt> iirc you need to set dontBuild, the file is copied twice, etc...
<hyperfekt> mostly just more boilerplate than necessary
thc202 has joined #nixos
adetokunbo has quit [Quit: This computer has gone to sleep]
<DigitalKiwi> i haven't seen anything that had patches use dontBuild ?
<{^_^}> [nixpkgs] @dtzWill opened pull request #57563 → pacman: 5.1.2 -> 5.1.3 → https://git.io/fjee2
adamt has joined #nixos
<DigitalKiwi> i may not understand the problem tho https://nixos.org/nixpkgs/manual/#sec-patches
adamt is now known as Guest99186
* DigitalKiwi goes back to fighting python builds
<hyperfekt> DigitalKiwi: The point is if you do nothing but patch a single file, not if you want to patch a whole package.
Guest99186 has joined #nixos
Guest99186 has quit [Changing host]
Guest99186 is now known as adamt
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
sigmundv has joined #nixos
ayerhart has joined #nixos
ilmu has joined #nixos
civodul has joined #nixos
AxiomaticEspress has quit [Quit: WeeChat 2.4]
AxiomaticEspress has joined #nixos
infinee has quit [Quit: WeeChat 2.3]
<adamt> Something changed in 19.03, and it broke zookeeper: Apparently 19.03 hosts get a line like "127.0.1.1 $hostname" added to /etc/hosts. That's probably all good, except that zookeeper ends up binding to that address for its leader election port, instead of the external address.
AxiomaticEspress has quit [Client Quit]
<adamt> Zookeeper apparently resolves the address to listen on based on the server-directives in the configuration file, so you can't really tell zookeeper to listen on a specific interface, except if you define the cluster based on IP-addresses
<adamt> So does anybody know what triggers writing that extra line to /etc/hosts? I fear it might cause other problems as well
<yorick> adamt: modules/config/networking.nix, line 219
Makaveli7 has quit [Ping timeout: 255 seconds]
Makaveli7 has joined #nixos
<adamt> yorick: Thanks
<adamt> Any idea whether this is actual normal behaviour? Our Debian hosts (pretty standard) doesn't have it. There we define the hostname in /etc/hosts as the actual IP-address of the hostname
Makaveli7 has quit [Max SendQ exceeded]
Makaveli7 has joined #nixos
<adamt> I'm not even sure how to tackle this, because it seems like a very fundamental change, and it was done six months ago
jbgi has joined #nixos
slack1256 has joined #nixos
ilmu has quit [Ping timeout: 252 seconds]
mvnetbiz has joined #nixos
sinner has joined #nixos
sinner is now known as Guest80733
reallymemorable has joined #nixos
Guest38738 has quit [Ping timeout: 245 seconds]
reallymemorable has quit [Ping timeout: 252 seconds]
Makaveli7 has quit [Ping timeout: 252 seconds]
ng0 has joined #nixos
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @Kaali opened pull request #57565 → Use llvmPackages_7 explicitly for ccls → https://git.io/fjev1
<adamt> I created https://github.com/NixOS/nixpkgs/issues/57566 if anybody feels like sheading some light on it
<{^_^}> #57566 (by adamtulinius, 27 seconds ago, open): ZooKeeper clustering broken on 19.03 due to /etc/hosts change
adetokunbo has joined #nixos
pie__ has joined #nixos
ThatDocsLady has joined #nixos
<{^_^}> [nixpkgs] @gebner opened pull request #57567 → isabelle: 2017 -> 2018 → https://git.io/fjev7
Makaveli7 has quit [Ping timeout: 246 seconds]
__Sander__ has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fjevj
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Add 2019/05 »: https://git.io/fjefe
<{^_^}> [nixpkgs] @fgaz opened pull request #57568 → drawpile: 2.0.11 -> 2.1.2 → https://git.io/fjeff
Shouou has joined #nixos
kisik21 has joined #nixos
<kisik21> Any ways to build a full i686-based closure on an x86_64 machine? I want to test if all packages are available...
<kisik21> Preferably without a VM
emacsoma1 has joined #nixos
<noonien> can someone trigger a rebuild on https://github.com/NixOS/nixops/pull/1111 please? it should not have failed
<{^_^}> nixops#1111 (by noonien, 1 day ago, open): set PubkeyAuthentication=yes when a key is used
Shouou has quit [Read error: Connection reset by peer]
Shouou has joined #nixos
emacsomancer has quit [Read error: Connection reset by peer]
<woffs> kisik21, nix build -f '<nixpkgs>' --argstr system i686-linux …
<kisik21> woffs: does argstr works with nixos-rebuild?
<noonien> how can i see how `xdg-open` determines what application to open?
<woffs> kisik21, no, but you can do nix build -f '<nixpkgs/nixos>' --argstr system i686-linux -I nixos-config=yourconfig.nix system
<{^_^}> [nixpkgs] @andir merged pull request #57074 → nodejs_{6,8,10,11}_x: update, security fixes → https://git.io/fhhLX
<{^_^}> [nixpkgs] @andir pushed 5 commits to master: https://git.io/fjefG
<{^_^}> [nixos-weekly] @domenkozar merged pull request #85 → Call for Content: 2019/05 → https://git.io/fhN0D
<{^_^}> [nixos-weekly] @domenkozar pushed 5 commits to production: https://git.io/fjefC
<{^_^}> [nixpkgs] @danbst merged pull request #55224 → nixos/prometheus: use append instead of insert for opening firewalls → https://git.io/fhSxM
<{^_^}> [nixpkgs] @danbst pushed commit from @thefloweringash to master « nixos/prometheus: use append instead of insert for opening firewalls (#55224) »: https://git.io/fjefW
zupo_ has joined #nixos
<{^_^}> [nixos-weekly] @domenkozar pushed to master « Call for Content: 2019/06 »: https://git.io/fjefB
<{^_^}> [nixos-weekly] @domenkozar opened pull request #88 → Call for Content: 2019/06 → https://git.io/fjefR
zupo has quit [Ping timeout: 268 seconds]
Shouou has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @andir opened pull request #57569 → [18.09] nodejs_{6,8,10,11}_x: update, security fixes → https://git.io/fjefu
<domenkozar> NixOS Weekly #05 - Cachix private caches, Termux, Artwork for 19.03, a rant
<betaboon_> ouh rants. i like rants XD
silver has joined #nixos
betaboon_ is now known as betaboon
rauno has quit [Ping timeout: 246 seconds]
rauno has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #57570 → [19.03] nodejs_{6,8,10,11}_x: update, security fixes → https://git.io/fjefa
alex```` has joined #nixos
<{^_^}> [nixpkgs] @taku0 opened pull request #57571 → flashplayer: 32.0.0.142 -> 32.0.0.156 → https://git.io/fjefX
init_6 has joined #nixos
<{^_^}> [nixpkgs] @cryptix opened pull request #57572 → ssb-server: 13 > 14 → https://git.io/fjefM
risson has quit [Quit: Pouet. WeeChat 2.4]
vidbina has joined #nixos
root has joined #nixos
<kisik21> Is it enough to put a file in services.nix-serve.<keyfile-option> to get signed binaries from <server>:5000?
root is now known as Guest43050
<Guest43050> how do i enable systemd-networkd
<Guest43050> as when i try to enable it i get systemd-networkd.service not found
<kisik21> Guest43050: networking.useNetworkd = true; networking.dhcpcd.enable = false;
<Guest43050> ok
<Guest43050> can i do that from the live iso?
<kisik21> what do you mean?
<kisik21> You wanna have an ISO with networkd enabled?
<Guest43050> my current install does not have internet access
<Guest43050> ISO does
<kisik21> dhcpcd handles network in ISO afaik
<woffs> kisik21, yes, services.nix-serve.secretKeyFile is the right one
<kisik21> it should be enabled by default
<kisik21> woffs: thanks
<kisik21> Guest43050: you may have some weird problems with drivers, is the network iface visible in `ip link` output when you're booted into the target system?
<woffs> kisik21, welcome on the hard path to NixOS on 32bit :-)
<Guest43050> im not sure
<Guest43050> but ipconfig does show wlp1s0
<Guest43050> ifconfig*
<kisik21> you want wifi?
vidbina has quit [Ping timeout: 252 seconds]
<kisik21> maybe NetworkManager will be enough for you? it's smart enough to figure things on its own and it's what Ubuntu and most distro giants use for user-friendly networking
<Guest43050> where can i find my current configuration
<kisik21> Guest43050: in /etc/nixos/configuration.nix? then you can edit it and run nixos-rebuild switch to apply your changes
<kisik21> I'd recommend you to have /etc/nixos be a git repository
<Guest43050> ok
countingsort is now known as buffet
nikivi has quit [Remote host closed the connection]
q6AA4FD has quit [Remote host closed the connection]
fendor has joined #nixos
<fendor> i am experiencing problems while trying to reinstall nixos, i am using the current 18.09 iso from nixos.org and I use dd to copy on the usb device. But when trying to boot, only grub is shown
<Guest43050> this is my current configuration
<kisik21> Does nixpkgs.libreoffice evaluate successfully on i686-linux? I have several i686-based machines I need to have libreoffice on
<kisik21> because my professor needs it for some reason
<{^_^}> [nixpkgs] @fgaz opened pull request #57573 → drawpile: add build options and split into multiple top-level attrs → https://git.io/fjefh
nikivi has joined #nixos
<woffs> kisik21, no, I had no luck with libreoffice. Use gnunmeric and abiword.
<woffs> gnumeric
<kisik21> oops...
<kisik21> :3
q6AA4FD has joined #nixos
rycwo has joined #nixos
<adamt> Guest43050: You should use the "root" user as a normal user, like, using it for irc.
<adamt> *should NOT*
<kisik21> adamt: they're using the live iso probably
<adamt> kisik21: Ah. Right. :P
<kisik21> woffs: any ways to cross-compile? I'm ok with having two copies of some dependencies as long as I can have libreoffice on it
<kisik21> I'm just not sure how to stuff it into the target machines
<kisik21> s/just //
fendor has quit [Remote host closed the connection]
<Guest43050> so what do i need to do in order to make wifi work in my OS
<Guest43050> also how do i set up a user in the Configuration
<symphorien> kisik21: you can use nix copy to move a cross-compile libreoffice from one computer to another
<qyliss^work> Guest43050:https://nixos.org/nixos/manual/index.html#sec-user-management
<kisik21> symphorien: any ways to maybe pull it from local binary cache via configuration.nix? This would be cooler
fendor has joined #nixos
<symphorien> for a binary cache I don't know
<woffs> kisik21, also i686 suffers badly from https://github.com/NixOS/nixpkgs/issues/36947
<{^_^}> #36947 (by dtzWill, 1 year ago, open): libgcc_s is from bootstrap tools??
<symphorien> kisik21: but you can use https://nixos.wiki/wiki/Distributed_build to build on an x86_64 computer
<woffs> and even after applying the related PR to a custom nixpkgs there are many issues left, and getting more, because many upstream sources do not take care of 32bit anymore
<symphorien> so you would launch the cross compilation on the i686 computer and it would be transparently offloaded elsewhere
simukis has joined #nixos
<woffs> and will take some days to complete :-)
<noonien> how can i push packages built during nixos-rebuild to cachix?
<noonien> (just the ones that don't have a fixed ouput)
erictapen has joined #nixos
vk3wtf has joined #nixos
<{^_^}> [nixpkgs] @Mic92 closed pull request #50866 → [WIP] Rust cross compilation → https://git.io/fp8ly
<{^_^}> [nixpkgs] @Mic92 merged pull request #57565 → Use llvmPackages_7 explicitly for ccls → https://git.io/fjev1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjeJs
<Guest43050> so i need to have this? https://bpaste.net/show/f8847ad4163d
<{^_^}> [nixpkgs] @marsam opened pull request #57574 → pgcenter: 0.5.0 -> 0.6.1 → https://git.io/fjeJG
<Izorkin> Mic92: please check PR 56423
adetokunbo has quit [Quit: This computer has gone to sleep]
fendor has quit [Remote host closed the connection]
<qyliss^work> Guest43050: you don't need the "home" line -- isNormalUser will take care of that
vk3wtf has quit [Ping timeout: 252 seconds]
jbgi has quit [Ping timeout: 245 seconds]
<noonien> does anyone have opensnitch runnning? or a similar firewall?
<{^_^}> [nixpkgs] @marsam opened pull request #57575 → pgmetrics: 1.5.0 -> 1.6.1 → https://git.io/fjeJl
adetokunbo has joined #nixos
__monty__ has joined #nixos
nikivi has quit [Remote host closed the connection]
q6AA4FD has quit [Remote host closed the connection]
work_ has joined #nixos
rycwo has quit [Quit: WeeChat 2.2]
rycwo has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #57576 → odyssey: init at 2019-03-12 → https://git.io/fjeJ2
domogled has joined #nixos
nikivi has joined #nixos
elohmeier has joined #nixos
q6AA4FD has joined #nixos
<{^_^}> [nixpkgs] @bgamari opened pull request #57578 → nixos/gitlab: Allow configuration of extra initializers → https://git.io/fjeJX
rprije has quit [Ping timeout: 246 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos
<Taneb> That Nix on Android thing is >:3
<musicmatze> Nix on Android?
<Taneb> Is in this week's Weekly News
<musicmatze> nice!
<Church-> Oh frack yeah
<musicmatze> I thought that maybe you can install nix also on a sailfish device... maybe someone can test this? Because I am not sure whether my next device should be an android or an sailfish ...
<musicmatze> also, maybe I can get LinageOS on my OPO and do not have to buy a new device, not sure yet.
slack1256 has quit [Remote host closed the connection]
<Church-> Gonna try this on my pixel
rycwo has quit [Ping timeout: 246 seconds]
<betaboon> domenkozar: will any of the work from cachix flow back into hercules-ci or hydro of sorts? i like your cachix stuff but i realy would love to selfhost XD
<Church-> Okay nix on Droid is neat so far.
hamishmack has quit [Ping timeout: 272 seconds]
<domenkozar> betaboon: I'm afraid not
<domenkozar> hercules-ci will support cachix
<betaboon> domenkozar: too bad but thanks for the info :)
<domenkozar> but you can't host either
<domenkozar> it's free for OSS? :)
<betaboon> domenkozar: its not realy a question of pricing for me (i think the pricing model is fine) but more of philosophy :D
rycwo has joined #nixos
<Guest43050> [11:36] <qyliss^work> Guest43050: you don't need the "home" line -- isNormalUser will take care of that
<Guest43050> ok
<gchristensen> betaboon: Nix can support any S3-like cache out of the box (wasabi, digital ocean spaces, minio), if you're wanting to do that
<kisik21> btw what is an S3-like cache? I'm not familiar with amazon services stuff
<domenkozar> betaboon: won't fight ideologies :)
<gchristensen> S3-like means it provides the same API S3 provides
stepcut has joined #nixos
<kisik21> is it different from nix-serve on port 5000?
<gchristensen> ah, I mean the upload API
<betaboon> gchristensen: i realy have find the time to setup hydra and figure out a setup XD
<gchristensen> for download, Nix always uses a trivial http get/head API
<betaboon> domenkozar: i might at some point still use cachix :D
<domenkozar> I know everyone will that can do the math :)
socksy has joined #nixos
jbgi has joined #nixos
stepcut has quit [Remote host closed the connection]
<alj[m]> Is anyone in here using nixops?
<betaboon> alj[m]: me
<Guest43050> so do i just do nixos-rebuild
Rusty1 has joined #nixos
<socksy> hi there, I'm having difficulty using node-keytar in a nix shell and I was wondering if someone here could help. npm install works fine (even with gyp), but running it exclaims "Error: libsecret-1.so.0: cannot open shared object file: No such file or directory" despite the fact that libsecret is in the default.nix buildInputs
jD91mZM2 has quit [Quit: WeeChat 2.3]
<Guest43050> or can i just redo nixos-install
<alj[m]> betaboon : Cool, can nixops automatically switch an address to a second server when the first is knocked offline? Like with redundant servers, you know?
<alj[m]> I'm planning on doing a redundant server setup in two locations and need it to switch the routing (or something, it's rough in my head right now)
<betaboon> alj[m]: i doubt nixops can do what you want (everyone else please correct me if I'm wrong) as there is nothing doing orchestration in nixops.
<alj[m]> I see. Ever heard about morph for nixos?
<betaboon> alj[m]: nope
<alj[m]> Shucks. Okay thank you betaboon!
<betaboon> alj[m]: this morph thing looks somewhat like krops: https://tech.ingolf-wagner.de/nixos/krops/
<alj[m]> I'll take a look, thanks!
<adamt> alj[m]: Also i've heard the authors of morph hang out in #nixos
<johanot> :P
ThatDocsLady has quit [Ping timeout: 246 seconds]
gfv has joined #nixos
Guest43050 has quit [Remote host closed the connection]
<alj[m]> Oh nice! Do they use the same usernames as per github? I'll look for them
<alj[m]> Wait. Hi johanot.
<johanot> alj[m]: Hello :-) adamt is my partner in crime, regarding morph
<alj[m]> Adamt you too? You got me.
<johanot> hehe
<alj[m]> Okay habe you read my thing about redundant servers and such? Can morph do that?
<adamt> alj[m]: Not really. But wouldn't it be better to use something like keepalived, which takes care of moving an extra IP between servers?
<alj[m]> Hm. I didn't know that existed, sorry the idea crossed my idea just today while doing errands.
<alj[m]> I'll take a look.
<alj[m]> But morph could manage my two (identical) servers right?
<adamt> alj[m]: Yeah. We manage many servers that basically only change by hostname and such
erhandsome has quit [Quit: %null%]
<Church-> Yeah trying to figure out if I need to use keepalived with IP sharing on linode
<gfv> hi! has anyone ever configured networkmanager-openvpn client using nix? i'd like to put certificates, hostnames and stuff into my configuration.nix and forget about it
<adamt> alj[m]: Basically, with keepalived, you create a health check against your service, tell keepalived about the other servers in the cluster, give it an IP to manage, and then it'll just do its thing without too many problems
<kisik21> Interesting. While building libreoffice, it gives an error: ${ld}/bin/ld: /build/libreoffice-6.0.7.3/workdir/CxxObject/sal/osl/unx/file.o: in function `FileHandle_Impl::readFileAt(long long, void*, unsigned int, unsigned long long*)': file.cxx:(.text+0xa98): undefined reference to `__divmoddi4'
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<gfv> regarding keepalived, just make sure that your network is a proper IP network that knows about ARP
<adamt> also make sure to specify the IP as CIDR (like 10.0.1.10/24)
<adamt> Because if not, it can also create funny ARP cache issues.
Android has joined #nixos
<Android> how do i install firefox
<Android> as nix-env -i firefox just hangs
<gfv> (most clouds don't have a proper network, Google Cloud actually sets up a /32 private IP address on an interface and you can't do any fancy stuff with it. that said, you would probably use your cloud vendor's load balancing tools instead of local daemons)
<kisik21> Android: nix-env -i considered harmful, use nix-env -iA nixpkgs.firefox
<therealwaphire[m> @Android: nix-env -iA nixos.firefox
<therealwaphire[m> or yeah, nixpkgs
<therealwaphire[m> guys, is firefox-developer-edition not open source?
<etu> therealwaphire[m: May be branding
<therealwaphire[m> when I try to install `firefox-devedition-bin`, it asks me to allow Unfree
<therealwaphire[m> wdym?
<kisik21> It is, but the redistribution of packages with official branding is permittted only with binaries.
<therealwaphire[m> oh
<kisik21> So the binaries are considered unfree
<therealwaphire[m> okay then
<therealwaphire[m> thanks!
<Android> ok
<kisik21> You can build it from source or make a license exception (more preferable)
<__monty__> therealwaphire[m: Nixpkgs actually got special permission for firefox itself.
<gfv> kisik21: is there a list of harmful things? i'd love to take a look to make sure i don't do anything stupid
<therealwaphire[m> woah
<therealwaphire[m> gfv: you can always rollback ;)
<kisik21> gfv: I think it's mostly csh, nix-env -i, Pascal and Windows :3
<therealwaphire[m> lmao
<alj[m]> Thanks guys! Will take a close look at keepalived and maybe use morph so thanks for that as well!
<gfv> therealwaphire[m: i mean conceptually stupid, as in "editing files in /nix/store" :)
<therealwaphire[m> oh :P
<therealwaphire[m> well, afaik, you shouldn't touch anything that nix has already touched
<__monty__> gfv: You shouldn't really install things using nix-env as if it's another package manager
<__monty__> ,declarative
<{^_^}> There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<therealwaphire[m> __monty__: is there anything else one should do for installing firefox other than `nix-env` ?
<therealwaphire[m> oh, `home-manager`, yeah I'll look into it now
<{^_^}> [nixpkgs] @dasJ opened pull request #57579 → exim: Fix build with LDAP (#56058) → https://git.io/fjeTL
<__monty__> therealwaphire[m: You don't *have* to use home-manager but any of those three approaches is recommended over imperative nix-env'ing.
<kisik21> How was the first Nix-based toolchain bootstrapped? It requires strict purity and compiler needs another compiler to be built. How can one bootstrap Nix from nothing?
<therealwaphire[m> oh yeah, I said `home-manager` because I had already heard of it :P
<therealwaphire[m> __monty__: what do you use?
<__monty__> That and always use -A when appropriate/realize nix-env -u is *slow* because it needs to evaluate basically all of nixpkgs (same thing that happens when you don't use -A).
<__monty__> I specify some buildEnvs in an overlay.
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @dasJ opened pull request #57580 → exim: Fix build with LDAP (#56058) → https://git.io/fjeTG
<__monty__> I'd probably try out home-manager if I wasn't too short on time to mess with system setup though : )
<therealwaphire[m> I see
Shouou has joined #nixos
Android has quit [Quit: Konversation terminated!]
<therealwaphire[m> well, I'm going out to eat rn, might as well multitask
waleee has joined #nixos
Erasmus has joined #nixos
<gfv> home-manager is great, i've just discovered it yesterday while setting up my second laptop
Android has joined #nixos
<Android> how do i enable a package globally
<gfv> imperativity of nix-env -i has bugged me very much since very beginning
socksy has quit [Ping timeout: 256 seconds]
<Android> kdeconnect-cli: command not found
<Myrl-saki> How does systemd.user work?
AxiomaticEspress has joined #nixos
<clever> Myrl-saki: it drops units into /etc/systemd/user/
<Myrl-saki> Oh.
Makaveli7 has joined #nixos
<Myrl-saki> I was reading the submodule option and it looked exactly the same.
<clever> it has a lot of the same options
<clever> but runs one instance per user, and only those that are signed in
<Myrl-saki> "systemd/user".source = generateUnits "user" cfg.user.units upstreamUserUnits [];
<Myrl-saki> I, uh, feel pretty stupid now that I checked the whole file lmao
<Myrl-saki> clever: Thanksies.
<therealwaphire[m> anybody used solaar on nixos?
socksy has joined #nixos
<adamt> clever: I was just about to ping you. Did you encounter https://github.com/NixOS/nixpkgs/issues/57581 as well? Or are your ipxe setup still on 18.09?
<{^_^}> #57581 (by adamtulinius, 2 minutes ago, open): ipxe build failures on 19.03
<Android> how do i add a package with a hyphen in it
<Android> error: syntax error, unexpected $undefined, at /etc/nixos/configuration.nix:38:40
<Android> as 'kde-connect' and "kde-connect" and kde\-connect doesnt work
<clever> adamt: i'm not actively using ipxe, but my hydra is still building some ipxe based things
<Myrl-saki> clever: I guess if I want to have user-specific systemd user units, I have to use home-manager?
<Android> also how do i get rid of my first grub entry configuration
<clever> Myrl-saki: either home-manager, or user units that are global to the system
<adamt> clever: Okay, thanks though. Was just curious anyways.
<therealwaphire[m> Android: try: `pkgs.kde-connect`
<Myrl-saki> clever: Right. Thanksies.
<clever> adamt: looks like nothing has broken on my hydra stuff
<clever> adamt: ah, i'm not checking 19.03
knupfer has joined #nixos
<clever> adamt: if you dont need efi binaries, you can remove that override
<clever> and the above hydra build isnt testing efi, so thats why i havent noticed it
rauno has quit [Ping timeout: 272 seconds]
reallymemorable has joined #nixos
jD91mZM2 has joined #nixos
<alj[m]> whats the usecase for making a hydra server for oneself?
<kisik21> alj[m]: the usecase is autobuilding your own software and having a binary cache for it
<clever> alj[m]: it automatically builds things against the latest nixpkgs every time it changes
<adamt> clever: I do need EFI though :-)
<clever> for example, its building my nixops deployment for the nas/router, and i can see if its broken or not, before i try to update
reallymemorable has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @adamtulinius opened pull request #57582 → ipxe: 20180220 -> 20190310 → https://git.io/fjeTr
<clever> adamt: ahh, then the ipxe version will need to be updated, add src=fetchurl{...}; to the override
<adamt> clever: Yeah, I had already prepared a PR to fix it. :-)
johanot has quit [Quit: WeeChat 2.4]
Guest80733 has quit [Read error: Connection reset by peer]
<clever> adamt: something you could add to the PR, is to have the efi binaries enabled within nixpkgs
<clever> then it will break for everybody, and is more likely to be noticed/fixed
sinner has joined #nixos
sinner is now known as Guest28943
Guest28943 has quit [Read error: Connection reset by peer]
iqubic has quit [Ping timeout: 246 seconds]
<adamt> clever: And I wouldn't ever have to rebuild ipxe myself. That's a pretty good idea.
<clever> adamt: yep
rauno has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-texmath: drop obsolete override »: https://git.io/fjeTD
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fjeTS
hyper_ch2 has quit [Quit: Page closed]
<alj[m]> clever: so i could build my homeserver configuration on a fast server and pull everything onto the slow homeserver instead of building on the slow server or manually, right?
Glider_IRC has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
Android has quit [Remote host closed the connection]
Glider_IRC_ has quit [Ping timeout: 252 seconds]
hyper_ch2 has joined #nixos
guest_ has joined #nixos
q6AA4FD has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
q6AA4FD has joined #nixos
agander has joined #nixos
erictapen has quit [Ping timeout: 245 seconds]
ThatDocsLady has joined #nixos
timor has joined #nixos
<adamt> alj[m]: Yes.
<adamt> alj[m]: And you can make it work by both pushing data to the server, or pulling the data with it.
rycwo has quit [Quit: WeeChat 2.2]
rycwo has joined #nixos
<alj[m]> adamt: pushing?
Android has joined #nixos
<Android> can anyone connect to the KDECONNECT app in kde-connect desktop on NixOS ?
<adamt> alj[m]: Yeah, you can push an already built system to another host with `nix copy` (which is what morph and probably also nixops does behind the scenes)
<Android> as i cant pick up my device at all in either of the apps
rycwo has quit [Client Quit]
<adamt> Or you can built it, push to a cache, and then pull the packages from the cache on the slow host
rycwo has joined #nixos
<slabity> Android: Are you using home-manager for enabling kdeconnect?
<Android> whats that
<Android> home-manager: command not found
stepcut has joined #nixos
<Android> i just have these
<Android> wget vim kate konversation firefox kdeconnect
rycwo has quit [Client Quit]
<slabity> Android: It's a tool for configuring user-level nix configs.
rycwo has joined #nixos
<Myrl-saki> Aaaa. It makes me sad that you can't import a config. ; ;
<slabity> Rather than system-level
rycwo has joined #nixos
Neo-- has joined #nixos
<Myrl-saki> error: infinite recursion encountered, at /etc/nixos/nixpkgs/lib/modules.nix:62:71
<Myrl-saki> :C
<Android> as long as my packages persist accross reboots and logouts/logins i dont care what level they are
<slabity> Android: It's not necesary. It just makes it easier for some services. You should still be able to use kdeconnect without it
<slabity> Does the kdeconnect process start up when you login?
<Android> yup
<{^_^}> [nixpkgs] @costrouc opened pull request #57583 → pythonPackages.sphinxcontrib-tikz: init at 0.4.6 → https://git.io/fjekZ
<Android> environment.systemPackages = with pkgs; [ wget vim kate konversation firefox kdeconnect ];
<Android> *
<Android> aaand i cant take screenshots cus i dont have spectacle
stepcut has quit [Ping timeout: 246 seconds]
<alj[m]> > Or you can built it, push to a cache, and then pull the packages from the cache on the slow host
<alj[m]> awesome! thanks adamt
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):222:20
<Android> {^_^}: XD best nick ever lmao
<{^_^}> [nixpkgs] @TomSmeets opened pull request #57584 → lib/attrsets: add mapAttrsToString and mapAttrsToStringSep → https://git.io/fjekn
<Android> oh, it a bot ;-;
evanm has joined #nixos
<Android> anyway
<Android> why cant pick up my device at all in either of the apps
<samueldr> Android: did you open the port 1716 in the firewall (not sure if both TCP and UDP are required)
<samueldr> I have that as a note in my configuration from when I tried kdeconnect
<Android> i have no firewall x.x
<samueldr> hmm, looks like it might be a bit of a larger range
<samueldr> >> KDE Connect uses dynamic ports in the range 1714-1764 for UDP and TCP. So if you are behind a firewall, make sure to open this port range for both TCP and UDP. Otherwise, make sure your network is not blocking UDP broadcast packets.
<Android> # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false;
<samueldr> Android: if you didn't disable it, you have a firewall
<samueldr> NixOS has one enabled
stepcut has joined #nixos
<Android> is there some kind of prebuilt configuration for KDE desktop
<Android> that i can use
<Android> that will set all this up for me
erictapen has joined #nixos
<goibhniu> FWIW, I do use kdeconnect on NixOS and you do need to open the port for it
<azazel> hi guys, how can I set the nixpkgs of a machine inside a nixOps deployment to a certain value? I've tried with nix.nixPath = ["nipkgs=<url>"] but it seems to dail working
<Android> like KDE.nix or something
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<goibhniu> netowrking.firewall.allowedTCPPortRanges = [{ from = 1714; to = 1764; }];
<azazel> s/dail/fail/
<slabity> Does `services.xserver.desktopManager.plasma5` not include kdeconnect?
<goibhniu> except with networking spelled correctly ^_^
<Android> error: syntax error, unexpected '-', at /etc/nixos/configuration.nix:52:47
socksy has quit [Ping timeout: 256 seconds]
<slabity> I use some KDE services. Maybe I'll look at creating an easy-to-use module that just enables those services
<Android> networking.firewall.allowedTCPPorts = [ 1714-1764 ];
<goibhniu> I have the same for firewall.allowedUDPPortRange
<goibhniu> Android: try my config
jtojnar has joined #nixos
<goibhniu> nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true; is good too
stepcut has quit [Ping timeout: 255 seconds]
<Android> again, is there some king of pre-made KDE .nix config i can use
<Android> kind*
<goibhniu> not that I know of
rycwo has quit [Quit: WeeChat 2.2]
<buffet> hey, what do i need to do to get a coredump? i set systemd.coredump.enable and `ulimit -c unlimited`
<Android> why ._.
<slabity> Android: Unfortunately not
rycwo has joined #nixos
<Android> .nix's are meant to be modular arent they?
<goibhniu> I guess nobody bothered to write one yet
<slabity> Android: Yes, but someone still needs to create those modules. And unfortunately the Nix community is quite small
rpg has joined #nixos
<Android> why cant you just use any existing configuration.nix for any nix machine to reproduce a preset install configuration
<Android> are they machine dependant or something?
winem_ has quit [Ping timeout: 255 seconds]
<goibhniu> you could, but choosing defaults is tricky
<buffet> you can
<buffet> ^
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-pandoc-citeproc: update override for the new version »: https://git.io/fjekK
guest_ has quit [Ping timeout: 256 seconds]
<slabity> Android: I'm not sure what you mean. You can do that. But all the modules we use come from nixpkgs
<buffet> i solved my issue btw. they are generated, i just looked in the wrong location
<goibhniu> Android: FWIW the musnix project does something like that, for audio production
<Android> whats the point in having a configuration.nix if it cannot be shared
<goibhniu> people do share them
<Android> where
<slabity> We need a NixHub for sharing moduels
sinner has joined #nixos
<Android> that tells me very little about what each configuration is about
sinner is now known as Guest16366
<goibhniu> yeah, probably because the expense of figuring out what groups of people can share is higher than just configuring stuff individually
rycwo has quit [Ping timeout: 246 seconds]
<Android> rip configurations
<goibhniu> it would be easy to create meta-distros based on NixOS
<goibhniu> I suspect that configuration is just easier than you think
<Android> goibhniu: and yet i cannot find any
<simpson> Android: There's https://github.com/NixOS/nixos-hardware/ which might be more practically applicable.
<Android> ?
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<goibhniu> If I understand correctly, you expect there should be a "normal-kde-desktop.nix" that a community would maintain and which would include all the "normal" stuff you'd find in a standard distro.
rycwo has joined #nixos
<goibhniu> I suspect there isn't a market for that, although it would not be difficult to do.
<buffet> define normal though
<simpson> https://nixos.org/nixos/manual/index.html#sec-x11 implies that choosing KDE5 is a one-liner, although I'm not a KDE user anymore and haven't tested it.
<buffet> cant you just use the defaults?
<buffet> if you really not want to touch anything
iclanzan has joined #nixos
<adamt> Yeah, I was just about to say, isn't that basically what services.xserver.desktopManager.plasma5.enable = true; does?
<Android> where can i find a list of distro's based on NixOS
elohmeier has quit [Ping timeout: 268 seconds]
<goibhniu> TBF, some people structure their nixos configurations in neat ways. It would be nice to establish some recommended pattern.
<buffet> [^
<buffet> s/\[//
adetokunbo has quit [Quit: This computer has gone to sleep]
<goibhniu> what's considered a "distro" in an ubuntu world, isn't so different from an individual NixOS configuration
<buffet> so NixOS is a meta distro now?
<goibhniu> We don't have much support for custom branding/user defaults though
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<slabity> Android: If you're interested, some of us make our configurations (mostly) public: https://gitlab.com/slabity/nixos-config
<adamt> No, but it's still pretty trivial to make an installer that leaves the user with a functional desktop
<simpson> buffet: Nix is the meta-distro in this analogy.
<adamt> (ignoring obvious hardware issues &c)
elohmeier has joined #nixos
<buffet> simpson: fair
q6AA4FD has quit [Ping timeout: 240 seconds]
<simpson> buffet: e.g. https://github.com/cleverca22/not-os is not really NixOS.
nikivi has quit [Ping timeout: 252 seconds]
<clever> not-os is basically a distro, based on nix, but its not nixos!
<goibhniu> Well, that's more extreme. For a lot of people a "distro" is just branding, a default set of packages and some default configuration.
<buffet> oh thats hot, thanks for sharing
<Taneb> What's the proper way to kill and restart a hydra build that's got itself into a funny state?
ThatDocsLady has quit [Ping timeout: 245 seconds]
<clever> and then on the more extreme end of things
<clever> this will boot a haskell file, as /init, inside the initrd
<clever> 100% of the os, is a single haskell file (and the linux kernel)
<clever> does that even count as a distro?
stepcut has joined #nixos
agander has quit [Ping timeout: 268 seconds]
<Android> lol
<slabity> Wow that's neat
<buffet> when i upload linux to somewhere and distribute it, does that count as distro?
<adamt> clever: Do you have any idea how to specifically add the efi outputs to ipxe? Looking at the docs i can only figure out how to either build very specific outputs, or predefined sets of outputs (like "all" and "everything", and "everything" sounds rather excessive just to add the efi stuff)
<slabity> 'Distro' is such an ambiguous term. I think of anything that creates a bootable environment a 'distro'
justan0theruser has quit [Ping timeout: 246 seconds]
<gchristensen> not sure settling on the definition of distro is so helpful
<clever> adamt: i think you want to add the names of the files to the makeFlags (the paths i was passing to make)
<clever> adamt: and then in the installPhase, copy those to $out
<clever> slabity: then my haskell-init, with only 2 files, is technically a distro, lol
elohmeier has quit [Ping timeout: 272 seconds]
<adamt> clever: Yeah, then i'll have to add all the names of the files already included by the default target, basically copy/pasing them from the makefile, and that also feels hackish
elohmeier has joined #nixos
<clever> adamt: you can just name the default target, which is the first target in the makefile
<slabity> clever: I don't see why not. It is a distribution
<Android> how do i search for packages
<adamt> maybe i can do "make all bin-x86_64-efi/ipxe.efi" though
<clever> adamt: yep
<clever> adamt: and the buildPhase calls make $makeFlags, so you just need to add "all" and "bin-x86_64-efi/ipxe.efi" to makeFlags
<adamt> Android: One way is https://nixos.org/nixos/packages.html -- be aware that it doesn't show pkgs marked unfree
<slabity> Android: Try nix-locate. Or use the bot
<adamt> clever: Thanks
<slabity> ,locate hello
<{^_^}> Found in packages: go, tk, msf, red, xsd, cjdns, dillo, fstar, hello, spark, gwt240, gxemul, meteor, tk-8_5, go_1_10, kibana5, mbedtls, fasm.doc, gap-full, slimerjs, rustc.doc, scilab-bin, boost-build, perkeep.bin, gitlab-runner.bin, haskellPackages.hello, python27Packages.falcon, python37Packages.falcon, google-app-engine-go-sdk
nikivi has joined #nixos
AxiomaticEspress has quit [Quit: WeeChat 2.4]
q6AA4FD has joined #nixos
<Android> nix-locate: command not found
<Shouou> Sometimes if the package isn't obvious Google can be helpful with "nixpkgs <package>"
<slabity> ,locate nix-locate
<clever> Android: you need to first install nix-index
<{^_^}> Found in packages: nix-index
<slabity> Android: Sorry, forgot it was in a different named package
elohmeier has quit [Ping timeout: 245 seconds]
jabranham has joined #nixos
<adamt> What about just using `nix search firefox`?
<clever> adamt: nix search only searches names/descriptions, nix-locate searches filenames within the pkg
rauno has quit [Ping timeout: 250 seconds]
<adamt> clever: Sure, but Android asked how to search for packages, not for the files in them :-)
<buffet> how do i get a dev version of a library under nix?
<clever> ah
<clever> ,library buffet
<{^_^}> buffet: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
elohmeier has joined #nixos
<Android> [Android@nixos:~]$ nix search android-sdk
<Android> warning: using cached results; pass '-u' to update the cache
<Android> error: no results for the given search term(s)!
<clever> Android: do you have unfree packages enabled?
<buffet> clever: i meant debugging not dev, sorry
<buffet> how do i get a version compiled with debug symbols
<Android> clever: assume no to everything
<clever> > pkgs.enableDebugging pkgs.zlib
<{^_^}> "<derivation /nix/store/xis4ba7bcipawm6vvx2v4k5swngjf536-zlib-1.2.11.drv>"
<clever> Android: nix search cant see unfree packages until you enable unfree
<buffet> clever: thanks!
<clever> buffet: you can run that over most packages to get debug variants
<Android> and how do i do that
<adamt> clever: adding e.g. "all" and "bin-x86_64-efi/ipxe.efi" just leads to: make: *** No rule to make target 'bin/blib.a', needed by 'all'. Stop.
<clever> Android: run `nix-build '<nixpkgs>' -A androidsdk` and it will show an error explaining it
<adamt> So something funny is going on, since only adding "all" works fine.
<clever> adamt: where does blib.a appear in the makefile?
<clever> adamt: ah, blib.a is part of the variable ALL
<Android> how tf does setting 'android_sdk.accept_license = true;' enable unfree
<adamt> clever: First element of the default target (ALL). I have a feeling i should add ALL instead of all to the makeFlags
<clever> adamt: the := means its a variable assignment, not a target
<adamt> Yeah? I hoped make would just expand the variable :P
<clever> adamt: what happens when you `make everything` instead?
<clever> the efi files are part of everything
<adamt> clever: It seems to build everything. I just figured it sounded kinda excessive to add it all by default
<adamt> Or maybe that's exactly what users of ipxe wants.
Xal has quit [Ping timeout: 250 seconds]
<clever> adamt: if hydra is building it, the users wont notice build-time, only download size
<adamt> clever: Yeah.
elohmeier has quit [Ping timeout: 246 seconds]
justan0theruser has joined #nixos
jD91mZM2 has quit [Quit: ZNC 1.7.1 - https://znc.in]
elohmeier has joined #nixos
<adamt> clever: But if I update the PR to build everything, I'll have to figure out which files that makes sense to include in $out by default, and due to the silly naming in ipxe i can't even just copy the content of all bin-dirs to $out
<clever> adamt: ack!
<adamt> I could of course copy the dirs themselfs, but eh, that feels really dirty as well. So maybe I should just keep the PR as is to get it bumped, and then keep building what I need myself. :P
cryptomonad has joined #nixos
Xal has joined #nixos
elohmeier has quit [Ping timeout: 272 seconds]
leat2 has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
reallymemorable has joined #nixos
leat1 has quit [Ping timeout: 240 seconds]
<mikky> hi, base64 not decoding at my NixOs installation. executing `echo "dGVzdHRleHQ=" | base64 -d` results in empty string. seems like a library error because other apps don't decode base64 internaly, too
jD91mZM2 has joined #nixos
<mikky> strange but only present in (my) NixOS. Anyone encoundered this?
sm has joined #nixos
<symphorien> mikky: works for me
<vaibhavsagar> mikky: which version of nixpkgs are you running?
<gchristensen> maybe try running `nix-store --verify --check-contents`?
<mikky> vaibhavsagar: 19.03unstable
<mikky> ghostyy: checking now
<clever> mikky: what does `realpath $(which base64)` return?
<mikky> gchristensen: ^^
ixxie has joined #nixos
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
josiah_sama has joined #nixos
<mikky> clever: /nix/store/rkc8gp18wk1n115b3grj0sag2xr7lh93-toybox-0.8.0/bin/toybox but it's not just this instance that doesn't work
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<gchristensen> toybox :o
init_6 has quit []
<mikky> I actually found out because a GUI app doesn't work which uses base64 internally as a library
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<mikky> clever: /nix/store/nimcbxz5wipgvd768lq1k1794bq0kpmj-coreutils-8.30/bin/base64 for instance doesn't work either
<clever> $ echo "dGVzdHRleHQ=" | /nix/store/rkc8gp18wk1n115b3grj0sag2xr7lh93-toybox-0.8.0/bin/base64 -d
<clever> testtext
<clever> mikky: the exact build you have (when fetched from the cache) works on this end
leat2 has quit [Remote host closed the connection]
<clever> so its either a corrupt binary, or a config file
leat2 has joined #nixos
<mikky> nix-store --verify --check-contents ended without saying anything
_kwstas has joined #nixos
Shououo has joined #nixos
_kwstas has quit [Remote host closed the connection]
<clever> mikky: what if you `echo "dGVzdHRleHQ=" | strae -f base64 -d`
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<mikky> clever: write(1, "testtext", 8testtext) = 8
<mikky> strange
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<clever> mikky: strange!
jD91mZM2 has quit [Quit: ZNC 1.7.1 - https://znc.in]
Shouou has quit [Ping timeout: 250 seconds]
jD91mZM2 has joined #nixos
ddellacosta has joined #nixos
emacsoma1 has quit [Quit: WeeChat 2.4]
emacsomancer has joined #nixos
<mikky> let's make it interesting: `echo "..." | base64 -d` does NOT work in zsh but it DOES work in bash
<adamt> mikky: wait a moment
<adamt> mikky: Are you using oh-my-zsh?
<mikky> adamt: nope
<mikky> adamt: just local grml
<{^_^}> [nixpkgs] @bendlas pushed to master « chromium: 72.0.3626.121 -> 73.0.3683.75 »: https://git.io/fjeL2
<adamt> Because I had an issue where the configuration would just not display the last line, if it wasn't terminated by a newline :P
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<{^_^}> [nixpkgs] @bendlas pushed to release-19.03 « chromium: 72.0.3626.121 -> 73.0.3683.75 »: https://git.io/fjeLV
<mikky> adamt: that was my heading as well :) hence the bash branch. but this still wouldn't explain why it doesn't work in the app
stepcut has quit [Remote host closed the connection]
<mikky> can you think of any app that uses base64 strings internally and decodes them?
emacsomancer has quit [Quit: WeeChat 2.4]
<mikky> adamt: also, same grml config works in Arch and Debian
<adamt> mikky: Yeah, I figured it would only affect the app if it called out to zsh to run it, which would be something. :-)
<symphorien> mikky: does it work if you decode a string which contains a newline ?
emacsomancer has joined #nixos
<adamt> mikky: Sorry, I have no idea about what grml is, but if the config works in other places it's probably fine. :-)
stepcut has joined #nixos
<mikky> symphorien: it does!
<mikky> symphorien: I mean the *source* string contains newline
<mikky> symphorien: or did you mean the base64 encoded string?
<symphorien> the source string
<{^_^}> [nixpkgs] @bendlas pushed to release-18.09 « chromium: 72.0.3626.121 -> 73.0.3683.75 »: https://git.io/fjeL6
<mikky> well, that works fine
<symphorien> so it could be that your prompt overwrite non flushed lines with \r or something like that
reallymemorable has quit [Ping timeout: 245 seconds]
<slabity> Is there a way to check what a variable is set to on a particular system configuration? For example if I set `services.xserver.enable` to true, then `hardware.opengl.enable` should be true even if I don't explicitly set that.
rcshm has joined #nixos
reallymemorable has joined #nixos
<octe> i accidentally removed my /etc/nixos directory
<mikky> symphorien: that would only explain why it does not work in shell
<octe> i found a backup of configuration.nix, but how do i get hardware-configuration.nix back?
<slabity> octe: nixos-generate-config
<adamt> octe: You can just generate it again, if you didn't change anything in it. It should also pick up any active mounts
<octe> thanks
<slabity> As long as you didn't make manual changes to hardware-configuration.nix it should be fine
<mdash> slabity: you can write "hardware.opengl.enable = config.services.xserver.enable;"
<octe> afaik i didnt :)
<mikky> but I'm getting a stronger feeling now that the app problem *might* just be unrelated...
<octe> glad i had a backup of configuration.nix though
emacsomancer has quit [Read error: Connection reset by peer]
<octe> would it be possible to generate that from the running system?
<mikky> octe: there are generally two types of data. 1) backed up data, 2) data not lost yet ;)
<octe> hehe
<slabity> mdash: Not exactly what I'm looking for. I'd like to get the value of `hardware.opengl.enable` on my current system.
<waleee> octe: I think the current configuration.nix is in the nix store
<octe> i actually accidentally removed it due to organizing and moving it to git
<clever> mikky: what about `echo -n foo` ?
<octe> i rm -rf'ed on the wrong server
emacsomancer has joined #nixos
elohmeier has joined #nixos
<waleee> octe: so your preferred search tool would find it in /nix/store
<octe> i did a find but not seeing it
<adamt> waleee: Mine isn't
<{^_^}> [nixpkgs] @erictapen opened pull request #57585 → haskellPackages.arbtt: 0.10.1 -> 2019-01-27, dontCheck → https://git.io/fjeL1
<octe> '*configuration.nix*'
<octe> would it be named like that?
emacsomancer has quit [Read error: Connection reset by peer]
mmlb9 has joined #nixos
<mikky> clever: same as without -n
<waleee> adamt: yeah, I remembered incorrectly
<octe> it's not in there then?
<adamt> maybe there's a .drv file describing the system that can be used for something
reallymemorable has quit [Ping timeout: 250 seconds]
<mikky> clever: but again, I got a feeling that this zfs problem and app problem might be unrelated
<{^_^}> [rfcs] @grahamc pushed to master « RFC-0039: unprivileged maintainer team (#39) »: https://git.io/fjeL7
<{^_^}> [rfcs] @grahamc merged pull request #39 → RFC-0039: unprivileged maintainer team → https://git.io/fhlWj
timor has quit [Ping timeout: 252 seconds]
mmlb has quit [Ping timeout: 246 seconds]
<mikky> octe: did you say "server"? have you tried https://nixos.org/nixops/ ?
<clever> octe: is nixos still running a usable config from the msising configuration.nix?
<octe> clever, yep
<clever> octe: nix-store --query --deriver /run/current-system
<clever> octe: that will give you the .drv for the full nixos build
<octe> mikky, i've seen it but i'm not sure i like it.. seems to be a binary thing, either you fully commit to nixops or not.. and that you need to secure and backup the state it uses
<octe> seems easier to just have a git repo for configurations
<clever> nix-instantiate '<nixos/nixos>' -A system
cyphase has quit [Ping timeout: 246 seconds]
<clever> octe: and this will give the .drv for the current configuration.nix
<clever> [root@amd-nixos:~]$ nix-diff $(nix-store --query --deriver /run/current-system) $(nix-instantiate '<nixos/nixos>' -A system)
<mdash> slabity: that'd be "config.hardware.opengl.enable" then
<clever> octe: this will then diff them, and tell you how they differ
<clever> octe: then just keep editing configuration.nix to make them differ less, and re-run nix-diff
<octe> clever, that's awesome! thanks
<hyper_ch2> clever: trim patch has been working fine for me so far
<hyper_ch2> on mirrored ssd
<clever> hyper_ch2: nice
<clever> hyper_ch2: i ran into http://media.kingston.com/support/downloads/60AABBF0_V3_RN_052816.pdf on my mirror, so i have zero redundancy now
reinhardt has quit [Quit: Leaving]
fosskers has joined #nixos
<slabity> mdash: Sorry, I should have specified I want to do this outside of Nix, on the cmdline.
domogled has quit [Quit: domogled]
waleee has quit [Quit: WeeChat 2.4]
<slabity> Like doing 'nix get-value configuration.nix config.hardware.opengl.enable' -> true
<symphorien> slabity: you can use nixos-option
<slabity> If that's possible
linda has joined #nixos
<clever> [root@amd-nixos:~]$ nixos-option hardware.opengl.enable
<clever> Value:
<clever> true
<hyper_ch2> next I need to check if I can get dnsmasq to run as resolving dns for other devices
<slabity> error: syntax error, unexpected ID, expecting '{'
<slabity> Well I tried
<adamt> but nixos-option parses /etc/nixos/configuration.nix, which is not necessarily the same as the current system
<clever> nix-diff $(nix-store --query --deriver /run/current-system) $(nix-instantiate '<nixos/nixos>' -A system)
<clever> adamt: this would show the differences between the current-system, and configuration.nix
Shououo has quit [Remote host closed the connection]
adamt has quit [Quit: WeeChat 2.4]
Shououo has joined #nixos
cyphase has joined #nixos
elohmeier has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @nyanloutre opened pull request #57586 → riot-web: 1.0.1 -> 1.0.3 → https://git.io/fjetU
agander has joined #nixos
imdoor has joined #nixos
<linda> Hi, I'm experiencing this error (https://pastebin.com/G28aY409) when I run nix-build. Some background info: I'm using nix's `dockerTools` on MacOS with a linux docker driver (I followed these instructions: https://medium.com/@zw3rk/provisioning-a-nixos-server-from-macos-d36055afc4ad). It's worked in the past, but I recently updated to Nix 2.2 and that's when it started failing.
<clever> linda: one of your go binaries it trying to mess around with $HOME/.cache/go-build at build-time, but nix doesnt allow $HOME during builds
domogled has joined #nixos
endformationage has joined #nixos
<linda> clever: how do I prevent the binaries from messing around with $HOME?
<clever> linda: either pass it a config flag to put the cache elsewhere, or point $HOME to $TMPDIR
<therealwaphire[m> thanks, guyts\
<therealwaphire[m> really loving home-manager
<therealwaphire[m> one question
<therealwaphire[m> when creating symlinks with home-manager, is the state immutable?
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<therealwaphire[m> I mean, I'm using it to manage my emacs dotfiles and do I have to run `home-manager switch` everytime I update my dots?
<manveru> therealwaphire[m: yeah, basically
<teto> is there a way to run "apply" after the "merge" in the module system ? I now write my own "merging" function but I wonder if there is sthg more stands
<therealwaphire[m> alright, uhh.. so is there a `collect-garbage` for `home-manager` ?
<manveru> therealwaphire[m: if i want to test changes faster, i replace the symlink with a real file, after i'm done i remove it and run home-manager again
<linda> clever: which file is nix-build looking in to know where to put the cache?
<therealwaphire[m> I don't think I'd have use for those backups since I'm already using git
<manveru> therealwaphire[m: `home-manager generations | awk '{print $5}' | xargs home-manager remove-generations`, after that run `sudo nix-collect-garbage --delete-older-than 10d` or similar
<therealwaphire[m> manveru: oh yeah, that's also a cool alternative but I think I'd prefer running just `home-manager switch` :P
<therealwaphire[m> awesome, thanks mate :)
Ariakenom has quit [Quit: Leaving]
<slabity> nixos-option works well. But is there any way to get it to evaluate all variables in a set?
<clever> linda: its not nix-build that is creating the cache, its a binary based on go
<slabity> Or get a list of variables that are evaluated in the system? Doing something like `nixos-option --xml services` just gives me a bunch of `<unevaluated />` tags
<slabity> I'd like to get a list of variables that are evaluated in the system
reallymemorable has joined #nixos
waleee has joined #nixos
drakonis has joined #nixos
rauno has joined #nixos
<ixxie> is there an offtopic channel for NixOS?
<gchristensen> #nixos-chat
<ixxie> cool
erasmas has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
<therealwaphire[m> what can I do about emacs trying to write into init.el ?
domogled has quit [Quit: domogled]
<Android> how do i fix this
<Android> error: The option `android_sdk' defined in `/etc/nixos/configuration.nix' does not exist.
<Android> for error: You must accept the Android Software Development Kit License Agreement at https://developer.android.com/studio/terms by setting nixpkgs config option 'android_sdk.accept_license = true;'
<das_j> Android: nixpkgs.config.android_sdk.accept_license = true;
<Android> ok
Glider_IRC has quit [Ping timeout: 246 seconds]
rcshm has quit [Remote host closed the connection]
petersjt014 has joined #nixos
<waleee> or simply nixpkgs.config.allowUnfree = true, to blanket-accept unfree licences
rcshm has joined #nixos
<musicmatze> and there is even an option to for example allow only unfree for a single package
<musicmatze> at least if it was not removed :-)
<Android> ok o.o
<musicmatze> I wrote that functionality because I needed a unfree ATI driver at the time but I wanted to only have that one package being unfree and now allow any other packages to be unfree on my system
<musicmatze> luckily the OSS driver is now good enough so that I do not need that nixpkgs feature anymore :-)
<clever> musicmatze: ah, ive seen that in the stdenv, but never looked at who added it
<slabity> musicmatze: Does allowUnfree accept all licenses? I still need to include `oraclejdk.accept_license` to run oraclejdk
<matthewbauer[m]> yeah specific licenses are not covered by allowUnfree
<musicmatze> I don't know about the oraclejdk part, but I guess yes, allowUnfree allows all licensed (well, AFAIK we only differentiate between "free" and "unfree", so if you allow unfree you also allow free implicitely which would then be all licenses allowed). IANAL of course and I might be wrong as well, would need to peek at the code
<musicmatze> clever: :-)
<{^_^}> [nixpkgs] @veprbl merged pull request #57579 → exim: Fix build with LDAP (#56058) → https://git.io/fjeTL
<{^_^}> [nixpkgs] @veprbl pushed commit from @dasJ to release-19.03 « exim: Fix build with LDAP (#56058) »: https://git.io/fjetA
rcshm has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
<musicmatze> slabity: Here's the relevant file I guess:
rcshm has joined #nixos
Glider_IRC has joined #nixos
ilya-fedin has joined #nixos
Fare has joined #nixos
drewr has quit [Remote host closed the connection]
<musicmatze> The code has evolved a bit since I wrote the `allowUnfreePredicate` :-)
<musicmatze> I didnt notice
rauno has quit [Remote host closed the connection]
<clever> musicmatze: yeah, a safety was added to check that the contents of meta are valid, and assert if they arent
<{^_^}> [nixpkgs] @erictapen opened pull request #57587 → haskellPackages.hakyll: bump pandoc dependency to 2.7 → https://git.io/fjeqv
alex```` has quit [Quit: WeeChat 2.4]
pie___ has joined #nixos
pie___ has quit [Changing host]
<musicmatze> which is awesome!
<musicmatze> More people contributing :-)
<musicmatze> Very Busfactor!
<ilya-fedin> Hello. I am writing a program on golang and https://github.com/therecipe/qt binding. When trying to install binding in NixOS, they cannot find Qt in pkg-config. https://pastebin.com/pMaMLzZB
<ilya-fedin> *it cannot
<{^_^}> [nixpkgs] @dtzWill merged pull request #57560 → lightdm_gtk_greeter: fix configureFlags to not be one long string → https://git.io/fhjpu
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fjeqL
domogled has joined #nixos
the-kenny has joined #nixos
domogled has quit [Client Quit]
<symphorien> ilya-fedin: are you in a nix-shell ?
<ilya-fedin> No
<clever> ilya-fedin: pkgconfig only works inside nix-shell or nix-build
<slabity> Not to sound like a broken record, but is it possible to use nixos-option to evaluate an entire set? Or get the variables that have been set?
<ilya-fedin> :(
<ilya-fedin> Ok, thanks
stepcut_ has joined #nixos
<clever> slabity: nix repl '<nixpkgs/nixos>' then eval config.services
<symphorien> ,libraries ilya-fedin
<{^_^}> ilya-fedin: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}> [nixpkgs] @Zer0- opened pull request #57588 → paulstretch: init at 2.2-2 → https://git.io/fjeqW
<Android> how do i search for non free packages
<{^_^}> [nixpkgs] @dtzWill merged pull request #57229 → e2fsprogs: 1.44.5 -> 1.45.0 → https://git.io/fhhyM
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to staging: https://git.io/fjeql
<{^_^}> [nixpkgs] @Zer0- closed pull request #57588 → paulstretch: init at 2.2-2 → https://git.io/fjeqW
<clever> Android: once non-free packages are enabled in config.nix, nix search can find them
<Android> what about online
<clever> Android: that list is only free packages
jasongrossman has joined #nixos
<Android> ;-;
shabius has quit [Quit: Leaving]
stepcut has quit [Ping timeout: 250 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
yl has joined #nixos
domogled has joined #nixos
<{^_^}> [nixpkgs] @Zer0- opened pull request #57589 → paulstretch: init at version 2.2-2 → https://git.io/fjeqB
<Android> where can i find config.nix
stepcut_ has quit [Ping timeout: 272 seconds]
<clever> Android: ~/.config/nixpkgs/config.nix
Makaveli7 has quit [Ping timeout: 246 seconds]
<Android> ls: cannot access '/home/Android/.config/nixpkgs/config.nix': No such file or directory
<clever> then you havent created it yet
<Android> ls: cannot access '/home/Android/.config/nixpkgs/': No such file or directory
sm[m] has joined #nixos
shabius has joined #nixos
<slabity> clever: Thanks. That works perfectly
<Android> how do i generate one
<slabity> Don't suppose there's a way to get `nix repl` to pretty print?
<clever> Android: mkdir ~/.config/nixpkgs ; $EDITOR ~/.config/nixpkgs/config.nix
<therealwaphire[m> anyone here has a logitech device and is using solaar?
<samueldr> therealwaphire[m: anything particular you want to ask?
<Android> copying path '/nix/store/d7q01nf90b68hqk3f20wp95gbkqm64cs-htmlunit-driver-standalone-2.27' from 'https://cache.nixos.org'... error 7 while decompressing xz file cannot build derivation '/nix/store/xjfakgdssdws7w16yl2dc81343hx5dls-android-ndk-r17c.drv': 1 dependencies couldn't be built
<therealwaphire[m> samueldr: yeah, how do I make solaar detect devices without `sudo` ? :P
<therealwaphire[m> like there is a permission problem because /dev/hidraw0 is owned by root
<samueldr> services.udev.extraRules = builtins.readFile "${pkgs.solaar}/lib/udev/rules.d/42-logitech-unify-permissions.rules";
<samueldr> or something like that
<Android> how do i find out what owns that package
<clever> therealwaphire[m: you either need to make the solaar binary setuid root, or put the hidraw0 device into a special group
<samueldr> I apparently haven't needed solaar since ~a year
<Android> /nix/store/d7q01nf90b68hqk3f20wp95gbkqm64cs-htmlunit-driver-standalone-2.27
<clever> Android: grep -r --color htmlunit-driver-standalone ~/.nix-defexpr/channels_root/nixos
<therealwaphire[m> how?
<samueldr> and now I'm like 99% this is wrong and shouldn't be copied like that
<therealwaphire[m> how do you pair devices and change DPI?
<Android> /home/Android/.nix-defexpr/channels_root/nixos/pkgs/development/tools/selenium/htmlunit-driver/default.nix: name = "htmlunit-driver-standalone-${version}";
<samueldr> therealwaphire[m: haven't needed to pair and setup things since it was setup :)
<ilya-fedin> clever: When I adding qt5 to buildInputs, nix-shell throws error `error: cannot coerce a set to a string, at /nix/store/rr56kzg83d1c6y25566cmralpqp2q0yq-nixos-19.09pre171786.34aa254f9eb/nixos/pkgs/build-support/trivial-builders.nix:7:14`
<clever> Android: that is the derivation behind that storepath
<therealwaphire[m> clever: let me try the second one
<samueldr> services.udev.packages = [ pkgs.solaar ]; # in configuration.nix therealwaphire[m
<Android> how do i find out what owns that package
clr_ has joined #nixos
<clever> ilya-fedin: qt5 is a set of many packages
<therealwaphire[m> samueldr: ah, alright but that ain't a solution though :P
<therealwaphire[m> I have two devices that need to be connected to two receivers
<samueldr> therealwaphire[m: yeah, I *thought* I was using solaar, apparently I wasn't :)
<therealwaphire[m> samueldr: woah
<clever> ilya-fedin: you want qt5.qtbase
<therealwaphire[m> can you explain what that does?
<samueldr> I'm not 100% positive it'll work, let me check
<samueldr> therealwaphire[m: meanwhile read what the setting does here https://nixos.org/nixos/options.html#services.udev.packages
petersjt014 has quit [Read error: Connection reset by peer]
<therealwaphire[m> yeah I was just reading the manpage
<therealwaphire[m> it says list of packages containing udev rules
<ilya-fedin> clever: No, bindings throw error if not all parts of qt are installed
<therealwaphire[m> the github repo has the udev rules though so I'm this should, too?
<clever> therealwaphire[m: so it may be as simple as services.udev.packages = [ pkgs.solaar]; ah, and samueldr said that above
<samueldr> :/
<samueldr> apparently the package doesn't have the udev rules in?
<therealwaphire[m> s/I'm this/I'm thinking this/
<therealwaphire[m> clever: let me try that
<therealwaphire[m> I guess, for that I need to have `pkgs.solaar` installed globally
<therealwaphire[m> ?
<clever> therealwaphire[m: nope
<therealwaphire[m> oh, cool
<clever> therealwaphire[m: when you refer to pkgs.solaar, nix will automatically download it when building nixos
<therealwaphire[m> samueldr: it doesn't?
<therealwaphire[m> oh nice
agander has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @siddharthist opened pull request #57590 → rr: include gdb as a propagated input → https://git.io/fjeqX
<therealwaphire[m> clever: I ask because I've just started using home-manager and would rather have solaar in home.nix :P
<clever> therealwaphire[m: this will result in 2 copies of solaar being around
<samueldr> there needs to be a system component at ont point
zupo has joined #nixos
<clever> therealwaphire[m: one for nixos (just the udev rules are used) and one for home-manager
<therealwaphire[m> oh?
<joepie91> anybody else here using VS Code on 18.09 stable, and if yes, is it still working for you with the latest version?
<therealwaphire[m> wait, I thought nix just makes symlinks if I try to download into separate profiles?
<Android> anyone?
<therealwaphire[m> s/download/download the same thing/
<clever> therealwaphire[m: i checked, and pkgs.solaar lacks udev rules
<samueldr> therealwaphire[m: yes if it ends up using the same solaar than the system would, which is likely depending on your setup
elohmeier has joined #nixos
<clever> therealwaphire[m: so `services.udev.packages = [ pkgs.solaar ];` wont do anything useful
<samueldr> clever: yeah, turns out in the past either it did or a forked package did :/
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<therealwaphire[m> clever: ah, that sucks then
<samueldr> (I had solaar-git at one point in my overlay)
<therealwaphire[m> I should learn how to package things for nix so that I can solve problems like these myself :P
<therealwaphire[m> I'll try setuid
<clever> therealwaphire[m: one min
<goibhniu> Android: is your aim to do android development?
<{^_^}> [nixpkgs] @PombeirP opened pull request #57591 → appimagekit: fix usage of `file` so it works on NixOS → https://git.io/fjeq7
<clever> therealwaphire[m: this allows dumpcap to be ran setuid root, but only by users in the wireshark group
<therealwaphire[m> yeah, I'm here
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<clever> therealwaphire[m: that then enables wireshark to capture packets, without being ran as root
<therealwaphire[m> huh?
<therealwaphire[m> oh
Ariakenom_ has joined #nixos
<therealwaphire[m> missed that link
<therealwaphire[m> let me check
Ariakenom has quit [Remote host closed the connection]
<Android> goibhniu: yup
rcshm has quit [Read error: Connection reset by peer]
<goibhniu> Android: did you check https://nixos.wiki/wiki/Android already? It might have some useful pointers.
<therealwaphire[m> clever: thank you
ixxie has quit [Ping timeout: 244 seconds]
rcshm has joined #nixos
<therealwaphire[m> I'm impressed that I could understand that instantly lol
<Android> also how tf do i fix firefox
<Android> "Unable to make the service Firefox executable, aborting execution"
drakonis has quit [Quit: WeeChat 2.3]
<jD91mZM2> slabity: I don't know of any general way, but in your case you should be able to do `nix eval --raw '(builtins.concatStringsSep "\n" (builtins.attrNames (import <nixpkgs/nixos> {}).config.services))'`. Does that do what you wanted or did I misunderstand?
<Android> when attempting to open an external link with firefox
stepcut has joined #nixos
elohmeier has quit [Ping timeout: 246 seconds]
<therealwaphire[m> clever: is there a problem if /etc/nixos/configuration.nix is a symlink?
ixxie has joined #nixos
drakonis has joined #nixos
<clever> therealwaphire[m: shouldnt be
<Android> how do i find out what packages depend on X
drakonis_ has quit [Ping timeout: 246 seconds]
<infinisil> Android: What is X?
<clever> Android: that should be visible in the errors nix prints after X fails to download
Makaveli7 has joined #nixos
<clever> Android: can you pastebin the entire error?
<{^_^}> [nixpkgs] @dasJ closed pull request #57580 → exim: Fix build with LDAP (#56058) → https://git.io/fjeTG
<Android> wait does /selenium/htmlunit-driver/ mean that htmlunit-driver is a dependancy of selenium ? in which the package closest to that is selendroid
<clever> Android: ah, that would make sense
josiah_sama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Android> though that may be entirely incorrect
<Android> as multiple packages can depend on the same package
stepcut_ has joined #nixos
<{^_^}> [nixpkgs] @samueldr opened pull request #57592 → solaar: 2018-02-02 -> 2019-01-30 + udev rules inclusion → https://git.io/fjemC
<samueldr> therealwaphire[m: ^
<therealwaphire[m> oh, man
<therealwaphire[m> thank you so much
<therealwaphire[m> had just setup clever's example :P
<samueldr> clever's allows you to use it now :)
<Android> https://bpaste.net/show/08121f0e2bc2 this is my build log
the-kenny has quit [Quit: WeeChat 2.3]
<therealwaphire[m> hmm? think I don't need their securiy wrapper example anymore? now that I can `services.udev.package`?
stepcut_ has quit [Read error: Connection reset by peer]
<clever> samueldr: dropped a review comment on the PR
<Android> [Android@nixos:~]$ sudo nixos-rebuild switch
stepcut has quit [Ping timeout: 268 seconds]
the-kenny has joined #nixos
<clever> cannot build derivation '/nix/store/xjfakgdssdws7w16yl2dc81343hx5dls-android-ndk-r17c.drv': 1 dependencies couldn't be built
<samueldr> clever: replied :)
<clever> Android: android-ndk failed to build, because 1 dep (likely htmlunit-driver-standalone) failed to build
<samueldr> I kinda felt bad about doing that, but this future-proofs addition of other rules
<samueldr> and it ensures we only get rules
<therealwaphire[m> you guys are fast
<clever> samueldr: added another comment
<samueldr> I'm always skittish about the rules of cp with globs, but yeah, I should
stepcut has joined #nixos
<clever> samueldr: the globbing is handled by bash, so it turns into cp a b dest/
<samueldr> yeah
stepcut has quit [Read error: Connection reset by peer]
<clever> samueldr: and of note, the stdenv enables nullglob, which can cause weird bugs if somebody just does "echo do you want to install foo?"
stepcut has joined #nixos
<samueldr> I don't remember what makes me always go with for :/
<samueldr> (outside of nixpkgs)
<clever> the ? is a glob character, and nullglob causes foo? to vanish
wfranzini has quit [Remote host closed the connection]
<joepie91> slightly amended question: anybody here on 18.09 who could help me out by installing the `vscode` package in some way, and trying to run it as `code`? and telling me whether it shows a 'welcome' screen or whether the window remains blank with just a menubar showing
<slabity> jD91mZM2: Unfortunately no. That appears to give all options instead of just the ones set in my system config
<joepie91> (to rule out any packaging issues)
<samueldr> joepie91: 18.09's vscode I guess?
gfv has quit [Ping timeout: 246 seconds]
<samueldr> (doing it
<Android> it isnt androidndk
<Android> as nix-env -i android-ndk-r17c installs just fine
<catern> hey #nixos, suppose the Nix daemon user can't access the configured binary cache for some reason, but I as a regular user do still have access to it, and I want to install something that's cached in it (and all the artifacts are signed)
stepcut has quit [Ping timeout: 245 seconds]
<joepie91> samueldr: yeah, standard vscode from 18.09 without any patches or overrides
<catern> so there's an obvious workaround: I can download the artifacts from the cache myself, then add them to the store manually
gfv has joined #nixos
Fare has quit [Ping timeout: 252 seconds]
<catern> but is there an easy way to do this?
<joepie91> (thanks!)
<therealwaphire[m> guys please let me know when the PR is merged, haha
<joepie91> samueldr: store path should end up being /nix/store/iqj0my863hi63s7jm03a0x1hwsl57hqj-vscode-1.32.1/bin/code
<therealwaphire[m> for now I'll try clever's security wrapper example
<catern> more generally, if I know the location of some binary cache whose signing key my Nix daemon trusts, but which isn't configured in my Nix daemon, what's the easiest way for me to install something from that binary cache?
<samueldr> joepie91: my system isn't at the same revision, it could matter, but here https://stuff.samueldr.com/screenshots/2019/03/20190313131025.png
<samueldr> joepie91: the same store path works here
<{^_^}> [nixpkgs] @peti pushed 0 commits to haskell-updates: https://git.io/fjemF
<{^_^}> [nixpkgs] @peti pushed 4 commits to master: https://git.io/fjemb
<joepie91> samueldr: right, not a packaging issue then I'm guessing
<samueldr> note that this system should be vscode-free beforehand
<joepie91> samueldr: time to nuke all state!
<joepie91> samueldr: bizarrely, the failure mode is "fails to load a C++ Node extension"
<joepie91> as far as I can tell
fosskers has quit [Remote host closed the connection]
stepcut has joined #nixos
<joepie91> samueldr: hmmm. can you run it with `--verbose` and pastebin the output?
<joepie91> minus sensitive data like env var dumps
<jD91mZM2> slabity: Ah, my bad
<therealwaphire[m> clever: even after that security wrapper, I'm getting permission denied
<clever> therealwaphire[m: you might need to uninstall the solaar in home-manager
<therealwaphire[m> I have
<therealwaphire[m> I have it installed globally now
<samueldr> joepie91: pm'd a gist
drakonis_ has joined #nixos
<clever> therealwaphire[m: does solaar exist in `ls -lh /run/wrappers/bin/` ?
<therealwaphire[m> oh wait, I have the home manager one intact but I don't think it's being used because I have it removed from home.nix and `which solaar` gives me the one under /run`
<therealwaphire[m> yeah
elohmeier has joined #nixos
<clever> therealwaphire[m: what does ls say about solaar?
<Android> how do i fix this
<Android> Setup: Encountered missing dependencies:
<Android> base >=4.6 && <4.11
<joepie91> samueldr: thanks :)
<Android> nix-env -iA nixos.haskellPackages.adb
<therealwaphire[m> --s--x--- root plugdev
<clever> therealwaphire[m: and are you in the plugdev group? (run `id`)
gfv has quit [Remote host closed the connection]
<therealwaphire[m> yes
<catern> aha wow, nix copy
<clever> therealwaphire[m: what happens when you run `/run/wrappers/bin/solaar` ?
<therealwaphire[m> logged out and in as well
<clever> Android: thats not the android adb
<catern> nix copy does exactly what I was asking about above, what a fantastic tool
<Android> adb-0.1.0.1haskellPackages.adbAndroid Debug Bridge (ADB) protocol
<clever> Android: ah, thats a haskell library, for speaking adb
<therealwaphire[m> found a logitech device (/dev/hidrawo0) but did not have permission to open it
<clever> Android: but not the CLI adb tool
drakonis has quit [Ping timeout: 252 seconds]
josiah_sama has joined #nixos
<clever> Android: do you want the CLI adb tool, or the haskell library called adb?
Ariakenom_ has quit [Ping timeout: 246 seconds]
<clever> Android: androidenv.androidPkgs_9_0.platform-tools has the CLI adb tool
<Android> both
<avn> may be haskell adb can work w/o android sdk? ;)
<clever> Android: checking the haskell one...
<therealwaphire[m> clever: tried adding the read permission to `user` but same result
<clever> therealwaphire[m: it might be that solaar doesnt like being setuid root, setuid binaries are a bit weird, and have 2 uid's attached to them, and the app has to select which one to use at any given moment
<therealwaphire[m> oh i see
josiah_sama has quit [Client Quit]
<clever> so just blindly +s'ing something that isnt meant to be, wont actually give it full root
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
gfv has joined #nixos
bollu has quit [Ping timeout: 246 seconds]
endformationage has quit [Quit: WeeChat 2.3]
<therealwaphire[m> on arch, `/usr/bin/soiaar` has -rwxr-xr-x
<clever> Android: haskell.packages.ghc844.adb works
<clever> therealwaphire[m: yeah, not setuid root, what about /dev/hidraw0 ?
<{^_^}> [nixpkgs] @melchips opened pull request #57593 → parlatype: init at version 1.6-beta → https://git.io/fjeYs
<{^_^}> [nixpkgs] @nyanloutre opened pull request #57594 → Electron cash update → https://git.io/fjeYG
<samueldr> therealwaphire[m: archlinux uses the udev rules pretty sure (they did when I was using it back in the time)
<therealwaphire[m> `crw-rw----+ 1 root root 242, 0 Mar 11 23:08 /dev/hidraw0`
<therealwaphire[m> yeah they do
<clever> therealwaphire[m: what about `strace -e open solaar` on arch? what devices does it open?
<therealwaphire[m> wait no they don't
<clever> Android: ah dang, 844 doesnt work, it just took longer to fail!
<therealwaphire[m> no rules under /etc/udev/rules.d
<samueldr> therealwaphire[m: check under lib
<clever> therealwaphire[m: the rules dont matter as much as the actual permissions under /dev/
<samueldr> /etc/ is for user's configuration ideally
<therealwaphire[m> oh yup
<Android> lol
<samueldr> clever: the + for hidraw0 makes me think it's alright
<samueldr> clever: probably the "user at seat" thing I forget the actual name
<clever> samueldr: policykit?
* therealwaphire[m uploaded an image: image.png (632KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/ZHOEDMAbYcEpwQdgzRZEASPz >
<samueldr> clever: TAG+="uaccess", TAG+="udev-acl"
LysergicDreams has joined #nixos
<clever> Android: ghc 8.4.4 has base 4.11.1.0, and adb requires a base <4.11!
<{^_^}> [nixpkgs] @jtojnar opened pull request #57595 → doc: Convert natural deduction to MathML → https://git.io/fjeYC
<clever> therealwaphire[m: its forking out a lot of children, so -f has to be added to strace
<Android> ;-;
<clever> Android: (haskell.lib.doJailbreak haskellPackages.adb) will just ignore all version constraints
gfv has quit [Ping timeout: 245 seconds]
<clever> therealwaphire[m: maybe -e openat?
<Android> ?
elohmeier has quit [Ping timeout: 245 seconds]
<therealwaphire[m> `strace -fe open solaar`
zupo has joined #nixos
<infinisil> clever: Maybe we should doJailbreak by default for all Haskell builds :P
<clever> therealwaphire[m: strace -f -e openat solaar
<clever> infinisil: build fails when jailbroken
<infinisil> clever: There would be lots of packages that would succeed though
<clever> Android: haskell.packages.ghc822.adb does build fully
<clever> infinisil: probably
<clever> infinisil: what if we just patch cabal to ignore all version constraints? lol
<clever> infinisil: doJailbreak has issues with constaints nested inside conditions
<infinisil> Ah
<Android> ok
gfv has joined #nixos
<Android> base >=4.6 && <4.9
oida has quit [Ping timeout: 256 seconds]
<therealwaphire[m> clever: https://arin.ga/Husl3W
<clever> therealwaphire[m: much better
gfv has quit [Remote host closed the connection]
<clever> therealwaphire[m: i can see it poking around in /sys
<clever> therealwaphire[m: might be lspci
<clever> [pid 29517] openat(AT_FDCWD, "/dev/hidraw0", O_RDWR|O_SYNC|O_CLOEXEC) = 16
<clever> therealwaphire[m: and it successfully opend hidraw0
<therealwaphire[m> I think the solution is to accept that PR :P
<therealwaphire[m> what we are trying to do are hacks :P
<clever> therealwaphire[m: chmod 777 /dev/hidraw0, lol
drewr has joined #nixos
<therealwaphire[m> lmao
<therealwaphire[m> I'd rather `sudo solaar` :P
<clever> :D
<therealwaphire[m> thanks for all the help, tho
<therealwaphire[m> I'll wait for the PR
<therealwaphire[m> do you guys riot on the desktop? what package do you use?
<therealwaphire[m> I only see `riot-web` in the repos
<clever> i just use plain old irssi
Myhlamaeus has joined #nixos
xkapastel has joined #nixos
josiah_sama has joined #nixos
<therealwaphire[m> clever: have you ever used nixops to deploy onto a hetzner baremetal?
bollu has joined #nixos
<clever> therealwaphire[m: nope, but i have done it with packet.net, and i have helped others use my kexec tools on hetzner
gfv has joined #nixos
<therealwaphire[m> yeah I use kexec too
<clever> this generates a tarball that contains the entire nixos closure in the initrd
<therealwaphire[m> I came to know the word "kexec" because of you, hahga
<therealwaphire[m> thanked you earlier as well
<clever> heh
elohmeier has joined #nixos
<therealwaphire[m> kexec is cool alright but then I have to make an image on another server, copy it onto one and then start from there
<therealwaphire[m> I was looking for more automated solution
<clever> i have plans to automate it and bake it into nixops
<therealwaphire[m> s//a/
<clever> let me find another util...
<therealwaphire[m> NixOps currently does support hetzner right?
<{^_^}> [nixpkgs] @asymmetric closed pull request #57288 → solc: 0.5.4 -> 0.5.5 → https://git.io/fhhpq
<clever> nix copy --to ssh://root@target?remote-store=local?root=/mnt /nix/store/hash-nixos
<clever> Raw
<clever> therealwaphire[m: this will copy a given storepath, from the local machine, to /mnt/nix/store on a remote machine
<therealwaphire[m> yeah, copying is the problem :P
<clever> therealwaphire[m: thats basically 80% of `nixops deploy`, but with a remote chroot
<clever> and it almost replaces `nixos-install`
<therealwaphire[m> oh
<therealwaphire[m> I thought what nixops does is ssh onto the machine and downloads an image there or something
<therealwaphire[m> because my local connection is slow
<clever> nixops just uses `nix copy` to push a locally built copy to the remote machine
<clever> and optionally, it lets the remote end use the nixos cache
<therealwaphire[m> I see I see
stepcut has quit [Ping timeout: 272 seconds]
<therealwaphire[m> but then, uh, is there any use of nixops after the deployment?
<gchristensen> nixops is only involved at deploy time
<clever> therealwaphire[m: updates are done by just re-running `nixops deploy`
<therealwaphire[m> is it different from `autoUpgrade`?
<gchristensen> don't use autoUpgrade with nixops
<clever> therealwaphire[m: it only happens when you want to upgrade
jbgi has quit [Ping timeout: 250 seconds]
<therealwaphire[m> no, no
<clever> therealwaphire[m: and you can have the IP's of other machines in the nixops file, baked into eachothers config files
<therealwaphire[m> I mean, having `autoUpgrade` in configuration.nix
<gchristensen> don't use autoUpgrade with nixops
<therealwaphire[m> clever: how does that help?
<clever> he means the difference between using nixops, or using autoUpgrade
oida has joined #nixos
<therealwaphire[m> gchristensen: no, man, I mean with
<clever> therealwaphire[m: when you need to spin up 100 identical servers, and they all need to know eachothers IP's
<therealwaphire[m> yeah
<therealwaphire[m> what clever said
gfv has quit [Ping timeout: 246 seconds]
<therealwaphire[m> I mean, first of all I'm not sure if I should have `autoUpgrade` in the first place? what do you guys do?
<clever> i dont autoUpgrade anything
elohmeier has quit [Ping timeout: 246 seconds]
<gchristensen> I've never used it
<therealwaphire[m> I see
<infinisil> I'd like to try it out at some point, would be neat
Ariakenom_ has joined #nixos
stepcut has joined #nixos
<therealwaphire[m> clever: I still don't get why they need to know each others' IPs unless you're trying to form a cluster
Fare has joined #nixos
gfv has joined #nixos
<clever> therealwaphire[m: yeah, it depends a lot on what your actually doing with the servers
<ixxie> lets say I made a service with a web-based terminal that connects to a dedicated NixOS user environment in a VM shared accross users
<therealwaphire[m> ah, well, I'll be on the safe side and not use `autoUpgrade` I guess
<clever> therealwaphire[m: on my local network, i use nixops to manage both the router and nas, and it lets me update both with just `nixops deploy`, rather then having to ssh into each, git pull the cfg, and nixos-rebuild
<ixxie> of course the system would be hardened as far as possible and users weakened in priveleges as much as necessary, would it be reasonable secure?
<therealwaphire[m> clever: yeah, that's a good usecase tbh
drakonis has joined #nixos
<therealwaphire[m> clever: can I use nixops to update servers with NixOS installed if I didn't use it for deployment?
<infinisil> therealwaphire[m: clever: You can just use nixos-rebuild with --target-host to do the same though
<therealwaphire[m> didn't know that :O
<clever> therealwaphire[m: yep, both my nas and router started as normal nixos
<clever> therealwaphire[m: the biggest issue, is that the cfg you deploy with nixops, must know how to make the machine boot
<clever> so you have to get fileSystems."/" and boot.loader all set right
<therealwaphire[m> oh
<therealwaphire[m> in that case, isn't it easier to use `--target-host` with `nixos-rebuild` ?
<clever> you still need to get that cfg right, when using --target-host
Dr8128 has quit [Ping timeout: 245 seconds]
<therealwaphire[m> doesn't it use the cfg stored in the remote /etc/nixos/configuration.nix ?
drakonis_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @artemist opened pull request #57596 → nixos/nginx: add return option to location → https://git.io/fjeYP
<clever> i think --target-host builds it locally, then copies it to the target host
<clever> using the local cfg
<clever> and you would likely want -I nixos-config=something.nix, or it will wind up being a clone of the local machine
<therealwaphire[m> oh lol
<infinisil> If you wanted to rebuild the remote machine with the remote config you could just do `ssh machine nixos-rebuild --switch`
<therealwaphire[m> infinisil: yeah, true
<therealwaphire[m> and I can repeat that once more since I only have two servers
thibm has joined #nixos
<therealwaphire[m> or have them aliases
<therealwaphire[m> aliased*
Glider_IRC has quit [Ping timeout: 252 seconds]
gfv has quit [Remote host closed the connection]
Shououo has quit [Remote host closed the connection]
Shouou has joined #nixos
rycwo has quit [Ping timeout: 250 seconds]
gfv has joined #nixos
Shouou has quit [Read error: Connection reset by peer]
alex`` has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « cyrus-sasl: fix broken link when building without kerberos »: https://git.io/fjeYx
rycwo has joined #nixos
gfv has quit [Ping timeout: 245 seconds]
Fare has quit [Ping timeout: 246 seconds]
endformationage has joined #nixos
Fare has joined #nixos
gfv has joined #nixos
<{^_^}> [nixops] @PsyanticY opened pull request #1112 → Vault Approle: fix default value of secretId → https://git.io/fjeYj
pie__ has quit [Remote host closed the connection]
elohmeier has joined #nixos
gfv has quit [Quit: Lost terminal]
pie__ has joined #nixos
Fare has quit [Ping timeout: 246 seconds]
<Izorkin> How to need to merge this PR #51902 #56464
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51902 (by Izorkin, 13 weeks ago, open): mariadb.galera: 25.3.24 -> 25.3.25
<{^_^}> https://github.com/NixOS/nixpkgs/pull/56464 (by Izorkin, 2 weeks ago, open): ejabberd: 18.12.1 -> 19.02
doyougnu has joined #nixos
sigmundv has quit [Ping timeout: 272 seconds]
elohmeier has quit [Ping timeout: 245 seconds]
<noonien> can i test a configuration in a VM before booting it?
<symphorien> nixos-rebuild build-vm
linda has quit [Quit: Page closed]
<noonien> ah, should have looked in the manual
<noonien> `./result/bin/run-*-vm` ^_^
<makefu> noonien: for building a complete new system based on your config, you can check out `nixos-shell` ( https://github.com/Mic92/nixos-shell )
<noonien> ooh, nice!
<noonien> i see it has graphics support as well
<noonien> i'm running i3 with no DE atm, want to try plasma + i3 without having to reboot often
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #57597 → cargo-tree: v0.22.0 -> v0.25.0 → https://git.io/fjeOR
<makefu> noonien: both options will then work for you :)
<noonien> awesome
elohmeier has joined #nixos
rpg has joined #nixos
<makefu> just imagine trying something similar with an ordinary distribution
<noonien> yeah, i love nixos! :D
<noonien> now i just have to make build-vm work :D
<noonien> i get a kernel panic on boot
<cryptomonad> Hi all. So this might not specifically be a nixos problem, but maybe you're kind enough to help anyway. I'm having an issue with dns; here are the symptoms: `ping <ipv4 of google>, ping <ipv6 of google>, nslookup google.com, host google.com` all work. `dig google.com, ping google.com` do not. resolv.conf seems to be ok.
<noonien> i've got a bit of machine-specific configs, intel drivers, zfs, luks-encrypted root
<cryptomonad> I'm not sure how to get more information that help me pinpoint the problem
<yl> noonien: I was seeing a panic as well last time I took a stab at a VM and I thought it must be my config: https://github.com/kalbasit/shabka/pull/161
<{^_^}> kalbasit/shabka#161 (by kalbasit, 4 weeks ago, open): [Testing] build VM through nixos-rebuild
<yl> maybe I'm wrong
<noonien> cryptomonad: how does it not work?
<cryptomonad> noonien: It times out and/or gives a "System error"
<noonien> can you paste the output?
<cryptomonad> Sure, give me a second
<Ariakenom_> i got back into doing nix 7th pills and tried running "source ~/.nix-profile/etc/profile.d/nix.sh" but I don't have that file
<Ariakenom_> was I supposed to have made that before and I forgot? or is it something else
<joepie91> eh... I have a package in my Nix store that's remaining there despite having removed it from my system config, and having done a rebuild and a nix-collect-garbage --delete-old
<joepie91> how do I find out why the package still exists?
rpg has quit [Ping timeout: 255 seconds]
<noonien> joepie91: how have you removed it and where does it show up?
<joepie91> by commenting it out in my systemPackages, and rebuilding + GCing
<joepie91> not sure what you mean with "where does it show up"
<noonien> you just `/nix/store/<path>`?
<noonien> or are you trying to execute the command?
<joepie91> noonien: I'm looking at the store path
<joepie91> which still exists
<cryptomonad> noonien: https://pastebin.com/vmBrCwfU
<joepie91> (I'm trying to track down a potential impure build on a deadline, hence the need to completely remove it from the store :P)
stepcut_ has joined #nixos
<noonien> cryptomonad: try `dig google.com +trace`
stepcut has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @stephengroat opened pull request #57598 → terraform-providers: bump versions → https://git.io/fjeOo
<cryptomonad> noonien: same output, no additional information: "no servers could be reached"
domogled has quit [Quit: domogled]
<joepie91> noonien: so I ran into some nix-store commands for this, but... https://gist.github.com/joepie91/ea74eb3d1ef512d108718909a6f2e707
<joepie91> it seems to claim that it's still in my systemPackages?!
<noonien> joepie91: hmm, maybe try `nix why-depends /run/current-system nixpkgs.<name of package>`, maybe that'll show up something
<noonien> hmm
<joepie91> '/nix/store/4ybh4f60a52dsmmn3zhi4ni532v7r42j-nixos-system-desktop-home-18.09.2327.37694c8cc0e' does not depend on 'nixpkgs.vscode'
<noonien> did you `nixos-rebuild switch` or boot?
<joepie91> switch
<noonien> cryptomonad: do you have `strace` available?
<cryptomonad> I do
<joepie91> hm, hold on
<joepie91> different paths for the two system generations
ixxie has quit [Ping timeout: 246 seconds]
<noonien> joepie91: did you run `nix-collect-garbage` as root?
<joepie91> yeah
<noonien> cryptomonad: run `strace dig google.com`
<joepie91> but... lrwxrwxrwx 1 root root 92 Mar 13 19:34 /run/current-system -> /nix/store/4ybh4f60a52dsmmn3zhi4ni532v7r42j-nixos-system-desktop-home-18.09.2327.37694c8cc0e
<joepie91> and nix-store pointed at /nix/store/p2ckrws82dsh5hphw8dn2zpirbqr4wqy-nixos-system-desktop-home-18.09.2327.37694c8cc0e as the culprit
<joepie91> which is a different revision
<joepie91> isn't --delete-old supposed to delete all revisions except for the currently active one?
<noonien> that's what the manual says
<Ariakenom_> ah. from a previous pill I concluded that that doesn't apply when on nixos
<noonien> sorry, i'm not much experienced with nix to help out any more. i'd try a reboot, but intuition says that wouldn't help
waleee has quit [Quit: WeeChat 2.4]
<Yaniel> does fetchfromgithub fetch submodules?
<musicmatze> Hey, I've just read the new nixos weekly newsletter... can we please stop posting articles like "Why you should never use NixOS" in the newsletter? It is mostly pushing bullshit to visibility and we really do not need that.
<joepie91> `sudo nix-env -p /nix/var/nix/profiles/system --list-generations` only shows a single generation
samrose has joined #nixos
<musicmatze> So please, whoever is in charge here, do not include such stuff in the newsletter... I really have better things to do than reading such rant articles.
<musicmatze> I can open an issue on this in the nixos-weekly repo of course, if you want me to.
drakonis_ has joined #nixos
<joepie91> that would probably be more effective
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien> Yaniel: it does if you specified `fetchSubmodules = true;`
<betawaffle> is it an absolutely insane and bad idea to put the nix store on nfs?
<Yaniel> nice
jbgi has joined #nixos
<musicmatze> joepie91: Was your last message for me? :-)
<joepie91> musicmatze: yeah
<Yaniel> maybe this won't be completely terrible then
<noonien> musicmatze: i also read the article before it was posted on the newsletter and found it to be a letdown (not because it's a rant, but because, IMHO, it's not a good one)
<symphorien> betawaffle: you need a patch
<musicmatze> Okay. Then I'll do that.
<betawaffle> symphorien: what sort of patch? does that mean it isn't so crazy?
<musicmatze> noonien: yes, I also think that it is not even well written, let alone researched properly
<symphorien> betawaffle: I looking for it
<musicmatze> I cannot speak for the AWS-specific stuff, but everything else is just bullshit (okay, we have really bad documentation, I get that... and I complain about it myself. But everything else is just bullshit).
<noonien> i usually like criticisms of software i use, nix is not perfect, and without valid criticism, people might not be aware of its shortcomings
drakonis has quit [Ping timeout: 240 seconds]
<noonien> documentation could be better, but it's not terrible
<noonien> also, i would not compare nix with docker at all
pie___ has quit [Ping timeout: 252 seconds]
<symphorien> betawaffle: https://github.com/NixOS/nix/issues/2357 and also set use-sqlite-wal=false in nix.conf
<{^_^}> nix#2357 (by wmertens, 30 weeks ago, open): Use sqlite dotfile vfs to allow use over NFS
o1lo01ol1o has quit [Remote host closed the connection]
<joepie91> I think criticisms, even poorly informed ones, are useful because it shows how unfamiliar users perceive things, ie. where the sharp edges are UX-wise... however, that rant seemed to be particularly vitriolic, and not really with the intention to file genuine complaints
<symphorien> then it works perfectly even with concurrent access from distinct hosts
<betawaffle> symphorien: so i'm not the only one who had this idea, then
<joepie91> it also had very little actionable feedback because it was 90% namecalling
<symphorien> hehe :)
<betawaffle> symphorien: any attempts to get this into nix proper?
<ddellacosta> is there any sort of pattern-matching/destructuring kind of feature for sets in nix-lang?
rycwo has quit [Ping timeout: 268 seconds]
thibm has quit [Quit: WeeChat 2.2]
<ddellacosta> oh I guess inherit is it?
<noonien> i don't see why someone wouldn't run nixos in any "cloud" provider. i wouldn't run my services using it, but i'd probably let it run kubernetes for me
<symphorien> betawaffle: not from me. I intend to put it on the wiki though at some point in the future
terlar has joined #nixos
<samrose> Is there a way in partition schemes for nixos to split up partitions across 2 disks?
<musicmatze> > i usually like criticisms of software i use, nix is not perfect, and without valid criticism, people might not be aware of its shortcomings
<musicmatze> This. Constructive criticism - always! But this was not constructive at all.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):222:44
<musicmatze> And Nix and Docker cannot be compared (note that the article compares nixOS and docker... which is even worse IMO)
<clr_> uh... I've never seen the bot do that.
freeman42x has joined #nixos
<samrose> clr_: heh is that a nix error?
<cryptomonad> noonien: https://pastebin.com/7BdfCmJx
<noonien> ddellacosta: yes, it's used pretty much everywhere in nix
<noonien> > ({x, y}: x + y}) {x = 3; y=7;}
<{^_^}> error: syntax error, unexpected '}', expecting ')', at (string):222:15
<noonien> ({x, y}: x + y) {x = 3; y=7;}
<noonien> GRR
<cryptomonad> noonien: I'm not sure if I copied the right things, though... It's quite some manual labour :)
<noonien> > ({x, y}: x + y) {x = 3; y=7;}
<{^_^}> 10
<joepie91> okay, so I think I have a better description of why this particular rant bothered me (cc musicmatze): it wasn't so much that the author doesn't understand much about Nix, which is fine and can still be useful feedback, but rather that they seemed to assume that that MUST be a problem with Nix and it couldn't possibly be a lack of understanding on their part and therefore ranted about it as if they came from a place of understanding
rpg has joined #nixos
<ddellacosta> noonien: oh cool, thanks! I think I saw that and then promptly forgot about it
<joepie91> and that makes it particularly useless for the purpose of improving the tools
<musicmatze> joepie91: I second this. May I quote you in the issue I just created?
<ddellacosta> noonien: I wonder if that only works in the context of functions though?
<joepie91> musicmatze: sure
<ddellacosta> well, guess I'll just try it and see
<joepie91> musicmatze: hold on, I also have a contrasting example
<noonien> ddellacosta: yes, otherwhise you'd have to use inherit.
<ddellacosta> noonien: gotcha, thanks
<noonien> or, you can do something like
<noonien> > { x = 3; y = 5; } // { z = 6; }
<{^_^}> { x = 3; y = 5; z = 6; }
reinhardt has joined #nixos
<ddellacosta> musicmatze: leaving aside the rest of your comments, I'm curious why you say Docker and Nix can't be compared
<musicmatze> Feel free to post to the issue if you think it belongs there: https://github.com/NixOS/nixos-weekly/issues/89
<{^_^}> nixos-weekly#89 (by matthiasbeyer, 1 minute ago, open): Please do not include rant articles
<musicmatze> joepie91: ^
<joepie91> musicmatze: https://www.youtube.com/watch?v=QujRHErFG4w -- this video is a review (sort of) of NixOS by somebody who doesn't really understand it, but because they acknowledge it as such and don't lash out at people, it's still useful feedback
<joepie91> because it highlights unintuitive things
<noonien> cryptomonad: try using something like ix.io or vpaste.net
<ddellacosta> noonien: that's for merging two sets together though, right? I'm more looking for ways to split sets up, although I think with the function syntax you've given me along with `inherit`, I've got everything I need
<joepie91> which contrasts nicely with the ranty potential of the nixos-weekly entry :)
o1lo01ol1o has joined #nixos
<cryptomonad> noonien: I don't have network on the troubled machine :/. At least no dns
<joepie91> musicmatze: I may post later, but I'm currently debuggiing an issue, heh
<noonien> ddellacosta: yes, it's for merging sets, but, all `inherit (foo) bar;` does, is `bar = foo.bar;`
<musicmatze> okay.
<cryptomonad> noonien: let me see what I can do.
<noonien> cryptomonad: oh, then pipe it to a file, and copy all the file, i'm just interested in the strace for dig, it should be a lot longer
<joepie91> well shit. I think the VS Code build in nixpkgs is impure
<noonien> cryptomonad: `strace dig google.com &> strace.log`
<joepie91> in that it produces a broken build under certain circumstances, and I *suspect* those circumstances to be "have nodejs-10_x installed in systemPackages"
technoidX has joined #nixos
Profpatsch has joined #nixos
Profpatsch has left #nixos ["WeeChat 0.4.3"]
<joepie91> I'll have to test this later...
technoid- has quit [Remote host closed the connection]
<joepie91> if anybody else has some spare time, feel free to take over that particular bit of work from me :D
M-Gregoire has quit [Quit: Ping timeout (120 seconds)]
<ddellacosta> musicmatze: oh jeez I just actually looked at that article--I accidentally found the exact same piece searching for something else last week, and immediately left the page because it was clear that it was a pretty dumb rant without a lot of useful criticism. I'm disappointed it was actually promoted by anyone associated with Nix/NixOS itself. Maybe I'll comment on your github issue in support...
rev_strangehope has quit [Ping timeout: 240 seconds]
<joepie91> hypothesis is that it works fine if the package is built (locally) with `nodejs` installed, but not with `nodejs-10_x` installed, at which point starting VS Code will greet you with a blank screen
M-Gregoire has joined #nixos
jonafato has quit [Quit: ZNC - http://znc.in]
jonafato has joined #nixos
<musicmatze> ddellacosta: go ahead. :-)
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<ajs124> Am I doing something wrong or are there some problems with haskell stuff on master (or rather nixos-unstable-small) right now?
Orbstheorem has quit [Ping timeout: 240 seconds]
<ajs124> I'm getting this error: attribute 'pandoc' missing, at /nix/store/6f4vil37bcd9760rcwdzl5jx0fk8lggf-nixos-unstable-19.09pre172515.eb2a26f5c61/nixos-unstable/pkgs/top-level/all-packages.nix:4755:73
<noonien> does `nixos-rebuild build-vm` work for anyone?
<alj[m]> Hey, anyone using nixos on ODROID xu4?
rev_strangehope has joined #nixos
Orbstheorem has joined #nixos
<cryptomonad> noonien: https://pastebin.com/gVeKdmm6
<betawaffle> can i say something semi-related to that nixos-weekly ticket? actual constructive criticism
growpotkin has joined #nixos
<noonien> cryptomonad: what does dig @1.1.1.1 google.com says?
<noonien> say*
<noonien> betawaffle: don't ask to say :D
ilmu has joined #nixos
growpotkin has quit [Client Quit]
<betawaffle> well, i really love nix/nixos. but it does sometimes feel messy to work with
<cryptomonad> noonien: same. "connection timed out; no servers could be reached"
<noonien> betawaffle: compared to what? and while doing what?
<earldouglas> This might not be the right channel for this, but does anyone know of anything akin to NixOps, but for smartphones? I want a way to manage my phone's configuration as code, rather than manually configuring it all the time.
<betawaffle> noonien: well... tbh most OSes can feel pretty messy if you get into the guts. but with nixos, it *is* the guts, there isn't much else
<ajs124> cryptomonad, how about dig +tcp @1.1.1.1 google.com
<cryptomonad> noonien: well it says "; (1 server found)" after the banner, so that's different than "dig google.com"
<cryptomonad> noonien: full normal answer
<noonien> earldouglas: not yet :( there is a WIP of getting nix running in termux
<cryptomonad> noonien: yup. with the +tcp flag i get normal answers
<noonien> hehe, ajs124 suggested that
growpotkin has joined #nixos
<betawaffle> noonien: but i like nixos so much, i can't really see myself not using it everywhere now
<noonien> that might mean something is blocking port 53 UDP
iclanzan has quit [Quit: leaving]
<cryptomonad> noonien: looking into iptables atm
<noonien> betawaffle: same, i'm pretty new to it as well, had quite a few crashes (mostly due to not adding the right drivers), that resulted in an unbootable system 2 times, but having configuration.nix, i just reinstalled in ~20mins
domogled has joined #nixos
<noonien> and my system was in the exact state it was before getting borked
<betawaffle> you know what would be great... a series of articles walking through the internals of nixos. something like linux from scratch, nix edition
<noonien> tooling doesn't seem as mature, but it's mature enough to consider my nixos installation as stable as my old, ubuntu one
<noonien> the binary caches is what sold it for me
<noonien> (along with the declarative configuration, of course)
<betawaffle> i can't stand old-style linux anymore. i don't want non-declarative systems
Fare has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
<betawaffle> i just don't know enough about how it goes from configuration -> actual system. i don't quite trust it yet
<noonien> i do wish the cross-compilation would have been better, and there are some parts of the nix language i don't like that are too late to be changed imho
<betawaffle> too much perl :P
<noonien> you don't understand how derivations are realised? or how nixos-rebuild works?
<ddellacosta> musicmatze: okay, added another comment in support. I had to go back and re-read that piece of garbage and it was even worse than I'd thought...
<betawaffle> derivations mostly make sense to me at this point. but no, definitely don't understand nixos-rebuild yet
<ddellacosta> I _am_ still curious why you don't think you can compare Nix and Docker though, seems like there is definitely overlap there that is worth exploring and comparing, even if they are somewhat orthogonal technologies
<ddellacosta> to be clear, this piece is not what I'm talking about...haha
q6AA4FD has quit [Remote host closed the connection]
nikivi has quit [Read error: Connection reset by peer]
<noonien> betawaffle: i'm not too sure either, but i see `vi $(which nixos-rebuild)` is readable
<betawaffle> noonien: i have too many interests and not enough time to read all the internals myself
<terlar> I am trying to install NixOS on a new machine, and see a lot of SQUASHFS errors, and can't even run commands such as lsblk, etc. Have anyone experienced this before? I have booted to the "live CD" via USB and at some point during the installation closed the laptop and removed the USB and wonder if that could cause this kind of error to appear. I have installed the same brand/make of laptop successfully before. As I don't have the boot
<terlar> password, I cannot reboot, so it would be nice if there was a solution without rebooting. Otherwise I have to give it a go tomorrow when IT-support can provide the boot password again. However if there is a way I would like to get it working today :)
<noonien> ddellacosta: nix is a package manager, nixos is an operating systemm, docker is an application container
<betawaffle> i did poke around most of the nixpkgs repo, though
<noonien> while you could say there is some overlap, the usage is quite different
<noonien> ddellacosta: sure, I would use nix to create my containers, but docker is enough for e atm. i certainly would not use nixos to replace, for exammple, kubernetes
<simpson> noonien: There's several incremental approaches; my favorite is `FROM nixos/nix`
<noonien> it's unclear to me what advantage that might provide, i usually either use already existing docker images, or build my own, using multi-stage builds, ending in usually just a binary in a container, FROM nixos/nix doesn't help there, perhaps nix can help build that image though
rfold has joined #nixos
justan0theruser has quit [Ping timeout: 246 seconds]
<clever> betawaffle: basically, nixos-rebuild is just `nix-build '<nixos/nixos>' -A system && ./result/bin/switch-to-configuration switch`
<clr_> noonien: If you're just shipping binaries in containers, the main advantage may be reproducability of your containers (especially if you have nix build them).
<noonien> i will try to use nix at work more, but the go build systemm is so easy, anything on top is just extra unneeded complication
<clr_> But it all really depends on your setup.
<betawaffle> clever: then i guess the switch-to-configuration script might be the part that boggles me
<betawaffle> but i haven't figured out nix-build yet either
<noonien> i do wish the nix language actually had sommething similar to go's import system, {..} on top looks like a hack to me
rauno has joined #nixos
<clever> betawaffle: the switch-to-configuration script deals with updating symlinks in /etc/ and restarting systemd services, and updating the main /run/current-system symlink
<clever> betawaffle: the nix expressions have already turned the config into a full system, which is living in /nix/store/
<betawaffle> has anyone used nix to build embedded systems?
<clever> betawaffle: not-os, haskell-init
<betawaffle> haskell-init?
<cryptomonad> noonien: Hmm.. doens't seem to be iptables. other hosts on the network work fine. what else could it be?
<clever> betawaffle: https://github.com/cleverca22/not-os is based on nixos, but it strips out all the garbage like systemd, the entire rootfs is 47mb
<noonien> clever liked a repo of his that had firmware for his thermometer that was built with nix, nothing fancy though
<clever> betawaffle: https://github.com/cleverca22/nix-tests/tree/master/haskell-init is an entire "linux distro" in 2 files, the ONLY thing it runs is a single haskell binary
<clever> betawaffle: at runtime, no other files exist, anywhere
<clever> both are linux based, so you still need a fairly beefy cpu, relative to embeded stuff
<clever> https://github.com/cleverca22/thermostat_firmware is the firmware for my thermostat system, it has under 20kb of ram, definitely not linux capable :P
<noonien> i am curious if anyone built OSes similar to how yocto does it, for example
<clever> all 3 can be built using nix
growpotkin has quit [Quit: Page closed]
<betawaffle> wow, that's the sort of thing i'm looking for. thanks clever
<noonien> i'm unsure how much garbage is in /nix/store after a garbage collect, if any
growpotkin has joined #nixos
<clever> noonien: if you run nix-collect-garbage with no args, then no garbage will remain, but there can be things that random result links hold onto, that is technically "not garbage"
Guest16366 has quit [Ping timeout: 246 seconds]
pie_ has joined #nixos
<Fare> qiv is still unstable in the latest nixos 19.03 (or in unstable) :-/ I gotta do a git bisect in my copious free time.
<noonien> can anyone try a quick `nixos-rebuild build-vm` and then running the vm please? i'm trying to figure out if this a bug or an issue with my config
<clever> noonien: boots just fine
<noonien> clever: thanks!
<noonien> i'm guessing you don't have any weird config, like luks encrypted rootfs
<Ariakenom_> the repl had some strange behaviour when I gave it a file that didnt exist https://gist.github.com/Ariakenom/96bc8f649e3acab072537fc42de422aa
<clever> noonien: correct, and build-vm disables most of that
<noonien> i'm actually not sure how build-vm works, and how it would be affected
<clever> noonien: build-vm will overwrite the rootfs config, and then use 9plan to mount the host /nix/store to the guest
<noonien> how is the disk created? and what should fstab contain?
<noonien> ah, i see
rfold has quit [Quit: leaving]
xkapastel has quit [Quit: Connection closed for inactivity]
ddellacosta has quit [Ping timeout: 244 seconds]
elibrokeit has quit [Quit: A random quit message]
ddellacosta has joined #nixos
elibrokeit has joined #nixos
evanm has quit [Ping timeout: 256 seconds]
agander has joined #nixos
growpotkin has quit [Quit: Page closed]
grizwako has quit [Remote host closed the connection]
growpotkin has joined #nixos
<noonien> interesting
<clever> terlar: how did you write the nixos iso to the usb?
Ralith_ has quit [Quit: Lost terminal]
Ralith_ has joined #nixos
utdemir has joined #nixos
<noonien> ah, i didn't run build-vm with sudo, nor did i run the VM with sudo, it seems to work just fine now :D
<clever> noonien: the VM shouldnt need root
slack1256 has joined #nixos
<noonien> build-vm ran just fine without root
<noonien> no errors, running again with sudo seems to have done nothing
Glider_IRC has joined #nixos
growpotkin has quit [Quit: Page closed]
ihar has joined #nixos
<terlar> clever: I wrote it with the dd command, the thing is I used the same USB to install the other computer, but that was like 2 months ago, so I guess the memory stick could have gone bad by then, but I doubt it
<clever> terlar: it could also be that you just happened to bump into the stick and unplug it while the machine was running
<terlar> Yes, would it be possible to reload/refresh the stick without rebooting?
nSeagull has joined #nixos
<terlar> I did unplug it after I had booted into the nixos shell
<azazel> is it possible to alter how processes started inside a nix-shell resolve hostnames?
<ajs124> Can anyone here tell me if "nix-shell -I nixpkgs=https://nixos.org/channels/nixos-unstable-small/nixexprs.tar.xz -p pandoc" works on their system?
<clever> terlar: not really, you have to be running from something else to image the usb
<ihar> hey. I am trying to apply a patch in my local nixpkgs to patchelf (to support golang binaries) and I experience some weird error when trying to nix-env -f . -i it. The patch is as simple as this: https://github.com/booxter/nixpkgs/commit/36cc3cb52e171b281b3c177563b278b08dd395f8 The error I get is: https://pastebin.com/trMZT96H
<ihar> anonymous function at /home/ihar/git/nixpkgs/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'meta', at /home/ihar/git/nixpkgs/pkgs/build-support/fetchpatch/default.nix:10:1
<ihar> without the patch to patchelf nix it works fine
<terlar> What do you mean by image the USB?
<clever> ihar: you must provide a valid sha256 to fetchpatch
NickSeagull has quit [Ping timeout: 245 seconds]
<clever> terlar: write the iso to the usb again
<ihar> clever: yes though in the past when I applied patches to other packages with the exact same method I left it empty then copied sha256 from the error output to speed things up. hence I left it empty there.
doyougnu has quit [Ping timeout: 246 seconds]
<terlar> okay, but I would have to reboot again to boot from that one, there would be no way to repair the state
<pie_> > nixos-container destroy cucko-contr
<{^_^}> attempt to call something which is not a function but a set, at (string):222:1
<pie_> /run/current-system/sw/bin/nixos-container: cannot destroy declarative container (remove it from your configuration.nix instead)
<clever> ihar: there was a bug in nix, where an empty hash would allow network access, but never validate the output
<pie_> well thats kind of misleading, because the problem was i ran it without sudo
<clever> ,tofu ihar
<{^_^}> ihar: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever> ihar: nix has been patched to not allow that anymore
<terlar> Because IT support have to be the ones selecting the boot device, which is a bit annoying, so I can't try to reboot until tomorrow then. Although I am inside the booted nix install from the USB currently, which I guess is from memory since it loaded it
elohmeier has quit [Quit: Lost terminal]
<azazel> pie_: seems stuff for a bug report
<pie_> azazel, which github project?
<ihar> clever: neat. but I've just copied a sha256 from another package and I still get same.
<noonien> ajs124: i'm running, my internet is a bit slow so you'll have to bear with me
<azazel> ajs124: it works
<clever> terlar: yeah, the os is pretty much broken, because the root disk is missing, and its relying purely on what happens to be in the read cache
<terlar> ah, I see :/
<ajs124> azazel, thanks. So there's something wrong with my systems then -.-
<clever> ihar: oh, patchelf is used by the stdenv, so patchelf gets a different fetchurl, and i think fetchpatch is passing meta to fetchurl
<clever> ihar: try using just fetchurl directly?
<ihar> clever: sorry, "directly"?
<clever> ihar: just use fetchurl, rather then fetchpatch
adetokunbo has joined #nixos
<ihar> oh
<noonien> ajs124: works for me too
<ajs124> seems like something's wrong with my overlay(s) or something. It works after I unset NIX_PATH
zupo has joined #nixos
<pie_> azazel, looks like theres already an issue \o/
<alj[m]> clever you on?
<clever> alj[m]: yeah
<alj[m]> clever: do you use an arm machine with nixos?
<clever> alj[m]: not currently
<alj[m]> clever: but do you have the know how to do so (and maybe help me with it in the future)?
<clever> alj[m]: probably
<ihar> clever: I think it went slightly further though now it fails when patching with:
<ihar> patch: **** Only garbage was found in the patch input.
<ihar> and when I check what's the patch file with `file` I see that it's a tarball (!)
<ihar> that says dist/turses-0.3.1.tar
clstb has joined #nixos
<clever> ihar: what about just changing the src url, and not patching?
<alj[m]> clever: can I ask you some more questions in pms?
<ihar> very confusing.
<ihar> why is it trying to apply turses tarball on patchelf
<clever> alj[m]: sure
<ihar> (I have turses installed from local checkout)
clstb has quit [Client Quit]
<clever> ihar: did you reuse the turses sha256?
clstb has joined #nixos
<ihar> oh... :)
<{^_^}> [nixpkgs] @bendlas pushed to master « webkitgtk: 2.22.7 -> 2.24.0 »: https://git.io/fjesI
<ihar> yep that was the issue, I see nix is smart enough to reuse based on hash
terlar has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
<ihar> clever: thank you so much!
<clever> ihar: thats why you usually start with the all 0000's hash that {^_^} gave
<clever> ihar: nothing has that hash
<ihar> now I know :)
reinhardt has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @bendlas pushed to release-19.03 « webkitgtk: 2.22.7 -> 2.24.0 »: https://git.io/fjesq
rpg has quit [Quit: Textual IRC Client: www.textualapp.com]
sinner has joined #nixos
sinner is now known as Guest81495
rpg has joined #nixos
<clstb> how can i extend a nixos channel with my own packages or ones already present in nixpkgs master ?
<symphorien> ,unstable
vk3wtf has joined #nixos
<clstb> i assume this can be done in a similar fashion with a local nixpkgs ?
<clstb> and the order is then stable -> unstable -> local ?
<pie_> help i broke something with nixos-container and i dont know what or how to fix it: https://bpaste.net/show/c438b8785e3f
<pie_> the error is: error: --set requires exactly one derivation
stepcut_ has quit [Remote host closed the connection]
fusion809 has joined #nixos
justanotheruser has joined #nixos
stepcut has joined #nixos
Ariakenom_ has quit [Quit: Leaving]
<azazel> pie_: you need to import your cuck-contr.nix into /etc/nixos/configuration.nix and do a nixos-rebuild switch
<azazel> pie_: then it will be created for you
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #57599 → xidlehook: v0.6.1 -> v0.6.2 → https://git.io/fjes4
timor has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<pie_> azazel, im trying to do it the "imperative containers" way though
<clever> pie_: did you create it with nixos-container ?
<pie_> clever, create what?
reilithion has joined #nixos
<pie_> the log shows me creating it
<clever> pie_: what does this output? `strace -f -e execve -s 3000 nixos-container ...`
ddellacosta has quit [Quit: WeeChat 2.2]
acarrico has joined #nixos
slack1256 has quit [Remote host closed the connection]
clstb has quit [Ping timeout: 256 seconds]
stepcut has quit [Ping timeout: 240 seconds]
<cryptomonad> noonien: I figured it out. My initial diagnosis that the rest of the network works with UDP was wrong and I had to add "use-vc" to resolv.conf. dig still doesn't work without options but everything else does.
pie___ has joined #nixos
<pie___> clever, my guess it its just dropping this in the container instead of evaliating the import outside it
<cryptomonad> thank you very much! would have never figured it out :)
<noonien> cryptomonad: glad you could figure it out!
drakonis has joined #nixos
<clever> [pid 1859] execve("/run/current-system/sw/bin/nix-env", ["nix-env", "-p", "/nix/var/nix/profiles/per-container/test/system", "-I", "nixos-config=/var/lib/containers/test/etc/nixos/configuration.nix", "-f", "<nixpkgs/nixos>", "--set", "-A", "system"], 0x1dda970 /* 23 vars */) = 0
<pie___> yup
<clever> pie___: it is updating the given profile (-p), with the given configuration.nix (cat it, is it your file?), and building the -A system attr
pie_ has quit [Ping timeout: 255 seconds]
<clever> pie___: cat /var/lib/containers/test/etc/nixos/configuration.nix
<pie___> ah ok
domogled has quit [Quit: domogled]
<pie___> clever, yeah i can cat it and it has imports = [ /home/nixos/stuff/nixapps/cuckoo/containers/cuck-contr.nix ];
<clever> pie___: and this is built outside the container, so that path should be fine
<pie___> oh ok
<pie___> heh and it even seems to have patched this to have the correct name networking.hostName = mkDefault "test";
<clever> pie___: nix repl -I nixos-config=/var/lib/containers/test/etc/nixos/configuration.nix '<nixpkgs/nixos>'
<clever> pie___: and then eval `system`
<clever> what does it say?
<noonien> can the nixos installed be run from pxe?
<clever> noonien: yep
<pie___> clever, error: The unique option `networking.hostName' is defined multiple times, in `/home/nixos/stuff/nixapps/cuckoo/containers/cuck-contr.nix' and `/var/lib/containers/test/etc/nixos/configuration.nix'.
<pie___> «derivation
drakonis_ has quit [Ping timeout: 252 seconds]
<clever> pie___: oh, both files are setting the same option, at mkDefault level
<clever> pie___: so they are colliding!
jbgi has quit [Ping timeout: 252 seconds]
<pie___> clever, ok so maybe these are things im not supposed to set myself?
ddellacosta has joined #nixos
<clever> pie___: you should set it without mkDefault
<pie___> so i guess i cant just copy a configuration.nix out of an image and expect it to work?
<pie___> hm ok
<noonien> cool, any info on that? i convinced a friend to install nixos, but he doesn't have an usb stick, i remember there being a PXE app for android, but i need to provide nixos
<pie___> idk why the mkdefault is there, i just copied it out of an existing vm
<{^_^}> [nixpkgs] @worldofpeace pushed 6 commits to gnome-3.32: https://git.io/fjesw
<clever> or not set it at all, and let nixos-container provide a default
<clever> noonien: 2 is a build of 1, from the latest nixos-unstable
<clever> noonien: 3 will take the same basic nix expressions, and then mutate your laptop to behave more like a router, with full pxe booting configured
<{^_^}> [nixpkgs] @worldofpeace closed pull request #57392 → geary: 0.13.2 -> 0.13.3 → https://git.io/fhjG3
<pie___> clever, "error: value is a function while a set was expected" 0_o
<clever> noonien: plug any machine into the ethernet port, and infect away!
<clever> pie___: add --show-trace to nix repl, with the same args i gave before
<noonien> clever: thanks!
<pie___> clever, user error, im not passing pkgs to cuckoo.nix
<clever> pie___: thats what callPackage is for
<pie___> clever, didnt thikn to use that flag with nix repl
<pie___> also doh
<noonien> hmm, does 18.09 not have a netboot? can't find it here https://hydra.nixos.org/job/nixos/release-18.09/tested#tabs-constituents
<noonien> also, is the netboot graphical by any chance?
<clever> noonien: non-graphical, and that would greatly increase the memory usage of it
<alj[m]> <freenode_cle "noonien: 3: https://github.com/c"> does that just make a working netboot server just like that?
<clever> noonien: i start here, https://nixos.org/channels/nixos-18.09 then open the src-url
Dr8128 has joined #nixos
<clever> noonien: that leads me to https://hydra.nixos.org/eval/1508731, which is the last eval that passed testing
<clever> alj[m]: yep
<noonien> ah, i went to howoldis
<clever> alj[m]: that module sets up dhcp and dns, so the ethernet port can get an ip
<alj[m]> i love nix(os) and your work is very impressive clever
<clever> alj[m]: it sets up NAT, so the ethernet can leech off your wifi
<clever> alj[m]: and the dhcp server includes pxe support, which fetches files from the tftp and nginx the module also configures
<clever> alj[m]: and then it uses nix to build the pxe images that it hosts on nginx!
<clever> noonien: then i search that eval for netboot, and find https://hydra.nixos.org/build/90298463
<alj[m]> so i push to the ftp server and it automatically builds my pxe image?
mmlb9 has quit [Ping timeout: 252 seconds]
<noonien> clever: yup, found it, thanks!
<noonien> clever++
<{^_^}> clever's karma got increased to 118
<noonien> :D
<pie___> clever, w00t
<clever> alj[m]: the tftp is just so the firmware can download ipxe when booting
<clever> alj[m]: all of this gets built when you nixos-rebuild the laptop
<alj[m]> clever: i don't quite understand yet, but I'm tired so I'll have to ask questions some other time
<alj[m]> Have a good <your time of day> everyone!
Neo-- has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 240 seconds]
<azazel> noonien: you can try also https://netboot.xyz/
<clever> azazel: ahh, i was trying to remember what that domain was
<noonien> azazel: oh, it has nixos?
<noonien> azazel: awesome! thanks!
<pie___> i almost mentiioned that 10 minutes ago :I
<azazel> noonien: nixos support has been merged in last month https://github.com/antonym/netboot.xyz/issues/37
<{^_^}> antonym/netboot.xyz#37 (by globin, 3 years ago, closed): NixOS support
terlar has joined #nixos
timor has quit [Ping timeout: 252 seconds]
<pie___> i think it was broken for a bit and then got fixed recently, not sure tho \o/
<{^_^}> [nixpkgs] @dywedir merged pull request #57597 → cargo-tree: v0.22.0 -> v0.25.0 → https://git.io/fjeOR
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fjesN
<ddellacosta> is './.' used anywhere other than for `import`, and is it just shorthand for './default.nix'?
vk3wtf has quit [Ping timeout: 240 seconds]
<azazel> ddellacosta: yes
pie___ has joined #nixos
pie___ has quit [Changing host]
<azazel> ddellacosta: to the last ;-)
<ddellacosta> azazel: you're responding to the second part of my question, right?
<ddellacosta> jinx, haha
<ddellacosta> azazel: thanks!
<symphorien> ddellacosta: you can use src = ./.;
<symphorien> then it is a shorthand for .
<symphorien> the behavior of import on directories is to look for a default.nix in it
rcshm has quit [Remote host closed the connection]
<cryptomonad> My laptop disconnects my usb-keyboard when I close the lid, which in turn makes the system wake up if it was suspended. Where do I control which events cause the system to wake up?
rcshm has joined #nixos
stepcut has joined #nixos
<azazel> cryptomonad: I would look into acpi subsystem, but I don't know how to help you more precisely
<{^_^}> [nixpkgs] @worldofpeace pushed to master « gnome3.meld: fix gobject-introspection »: https://git.io/fjeGZ
<cryptomonad> azazel: cool, thanks
camsbury has quit [Remote host closed the connection]
domogled has joined #nixos
stepcut has quit [Ping timeout: 246 seconds]
_kwstas has joined #nixos
scaroo has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
<cryptomonad> So for those wondering; solution is to write a systemd service that echoes XHC into /proc/acpi/wakeup if it is enabled currently
Ariakenom has joined #nixos
<noonien> hmm, can i nixos-rebuild build-vm with a different configuration.nix ?
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
mmlb9 has joined #nixos
stepcut has joined #nixos
_kwstas has quit [Read error: Connection reset by peer]
domogled has quit [Ping timeout: 246 seconds]
<clever> noonien: nixos-rebuild build-vm -I nixos-config=foo.nix
<noonien> great, thanks! :D
<noonien> i saw `pathToConfig="$(nixBuild '<nixpkgs/nixos>' -A vm -k "${extraBuildFlags[@]}")"` in nixos-rebuild
<noonien> thought nix-build '<nixpkgs/nixos>' -A vm -k config.nix might work
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
adetokunbo has quit [Quit: This computer has gone to sleep]
stepcut has quit [Ping timeout: 272 seconds]
mbrgm has quit [Quit: ZNC 1.7.1 - https://znc.in]
<clever> noonien: yeah, that will also build a vm, but it may also need a -I nixos-config= if you want to change the cfg it uses
<noonien> yes, it does, i just went with your command just to be safe
doyougnu has joined #nixos
<sm[m]> g'day all. Thanks for nix. A question: will nix-env -i THING-VERSION work, if THING-VERSION was added to the channel since the user last did a channel update ?
Xal has quit [Ping timeout: 255 seconds]
<infinisil> sm[m]: Not in general
<infinisil> ,-A sm[m]
<{^_^}> sm[m]: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
wfranzini has joined #nixos
camsbury has joined #nixos
Xal has joined #nixos
<azazel> infinisil: how may faqs does it knows?
stepcut has joined #nixos
wfranzini has quit [Remote host closed the connection]
<infinisil> ,help
<{^_^}> Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
mbrgm has joined #nixos
<azazel> wow, updated to linux 5 ;-)
<sm[m]> infinisil {^_^} , thanks. I'm trying to make a "just works" command for new users at http://hledger.org/download (and, educating myself about nix). At https://github.com/simonmichael/hledger/issues/980 I thought I heard to drop the -A, but maybe that was wrong
<{^_^}> simonmichael/hledger#980 (by peti, 1 week ago, open): Nix install instructions are incorrect'ish
<sm[m]> I'll check that faq
bluekelp_ has left #nixos [#nixos]
<{^_^}> [nixpkgs] @aaronduino opened pull request #57600 → sublimetext3: 3176 -> 3200 → https://git.io/fjeGF
<noonien> clever: not running the vm with sudo causes the kernel panic
<azazel> sm[m]: maybe you'll find this useful too https://github.com/timor/nux
<clever> noonien: what does `ls -lh /dev/kvm` report?
<noonien> `crw-rw-rw- 1 root root 10, 232 Mar 13 21:37 /dev/kvm`
silver has quit [Ping timeout: 272 seconds]
<clever> global access, thats not it
<clever> noonien: can you screenshot or pastebin the kernel panic?
<noonien> sure thing, give me a moment
<{^_^}> [nixpkgs] @primeos merged pull request #57414 → sway: Switch to 1.0 → https://git.io/fhjCs
<{^_^}> [nixpkgs] @primeos pushed 3 commits to master: https://git.io/fjeGA
<infinisil> sm[m]: Hmm, I wouldn't have recommended dropping the -A as peti did
silver has joined #nixos
<sm> azazel: thanks, I don't want to go too far off mainstream here
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
<sm> I thought there'd be a reasonably short command to "get the latest available version of one package from nix unstable", but maybe that's too alien to how nix works ?
<infinisil> sm: No that works, hold on
imdoor has quit [Quit: imdoor]
<noonien> sm, i just use this:
<noonien> ,unstable sm
<clever> noonien: there should be more error above that, try running it with -nographics i think it was
<sm> nixpkgs-unstable
<azazel> sm if you have added the unstable channel o the channels then it's only "nix-env -iA unstable.foo"
<noonien> and usually just do `nixos-rebuild switch --upgrade`, this does a `nix-channels --update` before rebuilding
<azazel> s/only/just/
<infinisil> azazel: No they want a command for their users
<infinisil> Not every user should have to install an unstable channel to install it
<infinisil> This command will always fetch the latest nixos-unstable channel, and install the attribute hello from it
<infinisil> Will work on Nix and NixOS, will always be up to date and requires no prerequisites other than a working nix installation
<azazel> infinisil: it works also if just root installs it into its channels and there's no channels definition for the ordinary user
<noonien> clever: http://vpaste.net/K6rUV
<camsbury> how to get the channel hash from nix repl
<infinisil> azazel: If I were to distribute a package, I'd want to make it as easy as possible, not require something like that
<clever> noonien: switch_root: can't execute '/nix/store/yp1zk95186rqcvnnp3xl6lgbnvg00bnd-nixos-system-nomad-18.09.2327.37694c8cc0e/init': Operation not permitted
<noonien> `-r-xr-xr-x 1 root root 5127 Jan 1 1970 /nix/store/yp1zk95186rqcvnnp3xl6lgbnvg00bnd-nixos-system-nomad-18.09.2327.37694c8cc0e/init`
<clever> noonien: looks like something is breaking with the 9plan stuff to mount /nix/store into the guest
vk3wtf has joined #nixos
<noonien> i have no idea what that would be
<clever> noonien: try -append boot.debug1devices -nographic
<infinisil> sm: Or, if you require a 2.0 installation, you could even make that `nix-env -f channel:nixos-unstable -iA hello`
<infinisil> sm: Or even better, nixpkgs-unstable instead of nixos-unstable
terlar has quit [Remote host closed the connection]
<sm> infinisil: those sound great. Losing signal here, I will play around and be back. Thanks for the tips
<noonien> clever: it just hangs with a 'k'
<noonien> without -nographic it breaks in stage1
<clever> noonien: same here, you want -append "boot.debug1devices console=ttyS0" -nographic
terlar has joined #nixos
<clever> noonien: then you can get an interactive shell in stage1, and ls the file again from inside the guest
<clever> noonien: oh, debug1devices is too early
<clever> noonien: boot.debug1mounts is what you want
<{^_^}> [nixpkgs] @primeos opened pull request #57601 → [19.03] Sway 1.0 → https://git.io/fjeZk
<terlar> Is anyone knowledgable in how the Emacs load-path is generated? It seems it is way too liberate in the paths it adds
<noonien> `ls /nix/store | wc -l` -> 11
<noonien> also, that file does not exist
<clever> noonien: you want /mnt-root/nix/store/
<noonien> oh
<noonien> `-r-xr-xr-x 1 0 0 5127 Jan 1 1970 nix/store/yp1zk95186rqcvnnp3xl6lgbnvg00bnd-nixos-system-nomad-18.09.2327.37694c8cc0e/init`
<clever> noonien: and what about the contents of /proc/mounts ?
<noonien> all files in that derivation seems to be 0 sized
<noonien> can check other derivations
<clever> noonien: thats uid 0 group 0, size 5127 bytes
rprije has joined #nixos
<noonien> oops, my bad
<noonien> hmm
<clever> /etc/passwd is missing, so it cant translate 0 -> root
drakonis_ has joined #nixos
<noonien> cat does not work though, i get `cat: can't open 'nix/store/yp1zk95186rqcvnnp3xl6lgbnvg00bnd-nixos-system-nomad-18.09.2327.37694c8cc0e/init': Operation not permitted`
<noonien> ill check procmounts
knupfer has quit [Ping timeout: 240 seconds]
<clever> noonien: how is /nix/store setup on the host?
o1lo01ol1o has quit [Remote host closed the connection]
<noonien> /proc/mounts -> http://vpaste.net/TBBGq
<noonien> clever: hmm, it's a nixos config, i didn't do anything special to nix
<noonien> it does seem to work when using sudo
<clever> noonien: what nixpkgs rev are you on?
<noonien> `18.09.2327.37694c8cc0e`
drakonis has quit [Ping timeout: 244 seconds]
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ git checkout 37694c8cc0e
<clever> [clever@amd-nixos:~/apps/nixpkgs]$ nix-build nixos -A vm --arg configuration '{}'
<clever> this should build a vm, with a totally empty config file, from the same rev
Fare has quit [Ping timeout: 246 seconds]
rycwo has joined #nixos
<noonien> just a second, lemme clone nixpkgs
Makaveli7 has quit [Quit: Leaving]
<clever> thats more how i'm trying to reproduce your issue, your already on that rev, so it wont make much of a difference
<noonien> ah, ok
<noonien> i'll try nonetheless, just to make sure i can repro with that cmd
vidbina has joined #nixos
<clever> noonien: boots normally here
<clever> noonien: what about the host /proc/mounts ?
drakonis_ has quit [Ping timeout: 252 seconds]
<clever> noonien: looks fairly normal
<clever> noonien: find the pid of qemu, and try doing `strace -p <pid> -ff -e open,openat` from a second terminal, then try to cat init from inside it
vidbina has quit [Ping timeout: 250 seconds]
<clever> noonien: so qemu on the host is failing to open the init file, and forwarding the error down to the guest
<noonien> cat-ing as the user works just fine
<noonien> hmm, perhaps some missing caps?
Dr8128 has quit [Ping timeout: 272 seconds]
<clever> noonien: cat /proc/<pid>/status on the host, with qemu's pid, then look at the uid: and gid:, what does it say?
<noonien> http://vpaste.net/YRfsQ this is the content of `run-nomad-vm` if it helps with anything
<clever> though is o+r, so it shouldnt matter
<ajs124> Some of the jobsets in my hydra seem to be stuck evaluating, any ideas how to debug this? I already restarted the evaluator (and queue-runner), but that hasn't helped.
<clever> ajs124: is there a hydra-eval-jobs process running for it?
<clever> ajs124: what does the journal for hydra-evaluator say?
<noonien> Uid:1000100010001000, Gid:100100100100
<noonien> looks fine
<clever> noonien: yep
<{^_^}> [nixpkgs] @jtojnar opened pull request #57603 → wrapGAppsHook: add package’s own modules to GIO_EXTRA_MODULES → https://git.io/fjeZz
<sm> is it normal for downloads from cache.nixos.org to be slow ? eg 10s of K/s
<clever> ,cache sm
<noonien> eh, anyway, i'll just sudo, it works so it's not a problem
<ajs124> clever, there are two hydra-eval-jobs processes running for each of the two stuck jobsets. journal just says "starting evaluation of jobset" and then nothing related to those jobsets.
<clever> noonien: that is a very weird issue, but i cant see anything obvious
<noonien> is there a way of making the VM faster?
Nivpgir has joined #nixos
<noonien> hmm, i can just pass flags to qemu right?
<clever> noonien: kvm, but i believe you already have it
<noonien> i can just increase cpus and memory
<ajs124> noonien, you can give it more RAM, it defaults to 512M
<clever> noonien: yeah, all args to the bash script get forwarded to qemu
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
<clever> ajs124: are the hydra-eval-jobs processes using a lot of cpu?
<sm> clever: I'm not seeing errors, it just seems unnecessarily slow
<{^_^}> [nixpkgs] @jtojnar merged pull request #57001 → almanah: init at 0.11.1 → https://git.io/fhpzt
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/fjeZw
<Nivpgir> hi all, complete newbie here... I'm having trouble with haskell related packages
<ajs124> clever, not right now, no. They just seem stuck. I think they might use a lot of cpu initially. I'll restart them real quick.
<clever> ajs124: are you doing any IFD?
<clever> ajs124: IFD results in hydra having to build a lot of things just to eval, and it cant give status when doing so
<ajs124> IFD?
pmiddend has quit [Ping timeout: 252 seconds]
<clever> ajs124: import from derivation
<clever> ajs124: can you pastebin the output of `ps -eH x` ?
<Nivpgir> I'm trying to use xmonad with taffybar, xmonad works fine, defined in configuration.nix, using it right now, I have taffy bar, I have taffybar define in my home.nix file (using home-manager), for some reason when trying to compile my taffybar config it can't import anything under System.Taffybar, same for xmonads config, but when I open ghci and wr
<Nivpgir> ite: import System.Taffybar, it imports just fine
<sm> nix's online docs are great, but how would I get offline docs, on a mac ? I have only --help right now
<clever> ajs124: what does `strace -p 25975` show?
johnnyfive has joined #nixos
<Nivpgir> my home.nix: https://pastebin.com/tb1c9zP0
<Nivpgir> please help me?
acarrico has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #57604 → liberation_ttf: 2.00.4 -> 2.00.5 → https://git.io/fjeZP
<{^_^}> [nixpkgs] @xeji merged pull request #57568 → drawpile: 2.0.11 -> 2.1.2 → https://git.io/fjeff
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fjeZX
<{^_^}> [nixpkgs] @dtzWill opened pull request #57605 → inter-ui: 3.1 -> 3.3 → https://git.io/fjeZ1
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has quit [Quit: Leaving]
<Yaniel> how would I go about packaging something that uses meson to do some extra setup and invoke cargo?
<noonien> is there a way of visualising memmory usage?
<Yaniel> noonien: htop
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #57563 → pacman: 5.1.2 -> 5.1.3 → https://git.io/fjee2
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « pacman: 5.1.2 -> 5.1.3 (#57563) »: https://git.io/fjeZQ
<ajs124> clever, it works now. I can't strace, because the process finished evaluating...
<ajs124> I don't think I changed anything. Oh well.
<clever> ajs124: often times, the first eval is fairly slow, as it builds up all of the .drv files
<{^_^}> [nixpkgs] @dtzWill opened pull request #57606 → vttest: init at 20190105 → https://git.io/fjeZb
<noonien> free reports more memory usage than i can find in htop processes
<noonien> OH, hehe, might be zfs
josiah_sama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
<sm> infinisil: time will tell, but "nix-env -f channel:nixos-unstable -iA hledger hledger-ui hledger-web" seems like the right solution for me. Thanks!
nSeagull has quit [Quit: WeeChat 2.4]
<sm> would it be fair to say that people running this can expect to see a lot of building of things not yet on the cache server ?
<{^_^}> [nixpkgs] @xeji merged pull request #57571 → flashplayer: 32.0.0.142 -> 32.0.0.156 → https://git.io/fjefX
<{^_^}> [nixpkgs] @xeji pushed commit from @taku0 to master « flashplayer: 32.0.0.142 -> 32.0.0.156 (#57571) »: https://git.io/fjeZp
<infinisil> sm: Nope, the channels have everything cached usually
agander has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @xeji pushed commit from @taku0 to release-19.03 « flashplayer: 32.0.0.142 -> 32.0.0.156 (#57571) »: https://git.io/fjeZj
talqu has joined #nixos
<infinisil> One disadvantage of this approach is that when the build fails on the channel, it won't work
<{^_^}> [nixpkgs] @dtzWill opened pull request #57607 → gitAndTools.lab: 0.14.0 -> 0.15.2 → https://git.io/fjene
<sm> I'm seeing a lot of building, and not just the things that were listed under "these derivations will be built"
<infinisil> Can you gist the logs?
<sm> sure
stepcut has quit [Ping timeout: 246 seconds]
<talqu> hi, how do i install nixfmt? nixos-mode requires it for formatting. I can't find the binary on nixos packages
<clever> noonien: i also have zfs on this end, and none of your issues
newhoggy has joined #nixos
<noonien> nah, that was unrelated, something was using ~5GB of memory that was not showing up in htop
<{^_^}> [nixpkgs] @tobim opened pull request #57608 → mpd: 0.20.13 -> 0.21.5 → https://git.io/fjenf
<{^_^}> [nixpkgs] @dotlambda merged pull request #56839 → Fix cairocffi build → https://git.io/fhx2C
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/fjenJ
<sm> oh.. I killed and reran it, and the second time it had a longer "will be built" list
rpg has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #57600 → sublime3: 3176 -> 3200 → https://git.io/fjeGF
<{^_^}> [nixpkgs] @xeji pushed commit from @aaronduino to master « sublimetext3: 3176 -> 3200 (#57600) »: https://git.io/fjenk
<clever> noonien: ah, zfs usage doesnt show up in a lot of utils, but it will shrink on its own when needed, as long as you dont try to get too much at once
<noonien> just did a `echo 2 | sudo tee /proc/sys/vm/drop_caches` which seems to have helped
<noonien> just needed some ram for the VM
<newhoggy> Does anyone know why this isn't working for me?
<noonien> i had enough, becausei have 16Gb on this laptop, but i wanted to make sure apps don't start crashing, since i don't hae a swap
<newhoggy> I'm using MacOS
<clever> noonien: 32gig of ram on my laptop&desktop
Fare has joined #nixos
<Nivpgir> yeah... okay... I'll just come back tomorrow
<infinisil> sm: Hmm that's odd, it works without building anything for me
<noonien> yeah, i'm planning on buying a new laptop once USB4 becomes a thing
<sm> also I'm surprised by the unpacked size being installed (2G, or 2.4G the second time). When I installed hledger using a previous nix-env command, there was only about 300M in /nix
<clever> sm: it likely depends on ghc itself, which is massive
<avn> noonien: I use small ssd to l2arc and swap with spinning disks full of zfs ;)
<infinisil> clever: But why would it compile for them, but not for me
* sm wonders how the earlier one worked.. didn't install ghc, because everything it needed was already built in cache ?
<noonien> avn: this zfs is on a ssd, no extra drives
<noonien> i'm mostly using zfs for snapshots
<clever> newhoggy: 
you need a newer nixpkgs i believe
<noonien> i LOVE 15min/1hour/daily/monthly snapshots
<infinisil> sm: This is how my logs look: https://paste.infinisil.com/gQ3QKRCM3k
stepcut has joined #nixos
<clever> noonien: same
<noonien> i've used btrfs for ~2years, it was not pleasant
<sm> nice. That's how I'd like mine and my users' to look :)
<noonien> i'd rather sacrifice ~5GB to ZFS than use btrfs
shibboleth has joined #nixos
<siers> What does this mean for in the output of nix-diff? "The set of input names do not match:"
<{^_^}> [nixpkgs] @xeji merged pull request #57586 → riot-web: 1.0.1 -> 1.0.3 → https://git.io/fjetU
<{^_^}> [nixpkgs] @xeji pushed commit from @nyanloutre to master « riot-web: 1.0.1 -> 1.0.3 (#57586) »: https://git.io/fjenG
<noonien> can nix show build times?
<sm> I wound up upgrading nix(-env?) to some 2.3-pre version this morning, I wonder if that's a factor
<infinisil> sm: Do you have any custom config.nix or overlays?
<avn> noonien: cut arc to 2-4g range, it should help a bit
<sm> I don't believe so. I've done no customisation AFAIK except possibly switched channel to nixpkgs-unstable
<noonien> avn: i've given it 5GB, doesn't usually bother me, i just forgot aboutit
<noonien> tbh, i didn't even care enough to learn what it is
<infinisil> sm: Hmm, try it with a stable nix version, $(nix-build --no-out-link '<nixpkgs>' -A nix)/bin/nix-env instead of just nix-env
<noonien> i'm guessing it's for caching for deduplication
<noonien> which i don't care much about, but eh
<avn> noonien: what tool you use for maintaining snapshots btw?
<sm> though, now nix-env --version is back to 2.2. Lost the 2.3 somehow
<noonien> avn: nixos
<noonien> services.zfs.autoScrub.enable = true; services.zfs.autoSnapshot.enable = true;
<{^_^}> [nixpkgs] @dotlambda pushed to revert-56839-fix/cairocffi « Revert "Fix cairocffi build" »: https://git.io/fjenc
<infinisil> sm: Does it work with 2.2?
<sm> 2.2 is what that log is from
<avn> noonien: btw dedup is a worse thing, which you can turn on (but probably you have it off, it off by default)
<sm> apparently
<noonien> i'm not doing off-site backups atm, will be doing that with restic, gotta set it up
<sm> if this is only happening for me, I probably screwed something up and am willing to wipe and try again
<clever> avn: i only have dedup enabled for a dataset where i store duplicate copies of blockchains
<avn> never enable dedup, unless you have 128+ of ram, and ton of cpu cores unused
<noonien> haha
<{^_^}> [nixpkgs] @primeos merged pull request #57601 → [19.03] Sway 1.0 → https://git.io/fjeZk
<{^_^}> [nixpkgs] @primeos pushed 13 commits to release-19.03: https://git.io/fjen4
<avn> clever: hehe. I still have 1/5 of my pool under ddt, and it make me some pain when I kill old files ;)
clstb has joined #nixos
<sm> yes I should do that.. 2G is too much
<noonien> i haven't found an FS that does dedup how i want it, zfs appears to use WAY too much memory, btrfs is super unstable
<noonien> i LOVE how restic does dedup, content-defined chunking is great
<clever> [root@amd-nixos:~]$ zfs list -t filesystem -o name,used,referenced,logicalused,logicalreferenced,written,usedbysnapshots,usedbydataset,refcompressratio,compressratio,compression
<clever> NAME USED REFER LUSED LREFER WRITTEN USEDSNAP USEDDS REFRATIO RATIO COMPRESS
<clever> amd/dedup 32.1G 27.1G 50.2G 45.5G 382M 5.03G 27.1G 2.47x 2.35x gzip-9
<clever> avn: 2.47x ratio
<noonien> i thought zfs dedup might be smarter, doesn't appear to be
<clever> noonien: it just blindly hashes every block, and then updates a hashmap from hash->block
<clever> noonien: and if 2 blocks have the same hash, it reuses the block on-disk
<clever> but maintaining and searching that hashtable, is ram-expensive
<noonien> yeah, that makes sense, so why use so much ram?
<noonien> there are a LOT of kv stores that don't use as much ram
<avn> yup, but if 99% of blocks is unique, it just silly re-balance hash buckets each time
<clever> noonien: one entry for every single block, even if its got no dups
<noonien> also, hashing fixed blocks will result in lower dedup
<{^_^}> [nixpkgs] @xeji merged pull request #57574 → pgcenter: 0.5.0 -> 0.6.1 → https://git.io/fjeJG
<{^_^}> [nixpkgs] @xeji pushed commit from @marsam to master « pgcenter: 0.5.0 -> 0.6.1 (#57574) »: https://git.io/fjenu
<sm> (7G and growing, actually)
<{^_^}> [nixpkgs] @dotlambda pushed 4 commits to master: https://git.io/fjenz
<{^_^}> [nixpkgs] @xeji merged pull request #57575 → pgmetrics: 1.5.0 -> 1.6.1 → https://git.io/fjeJl
<{^_^}> [nixpkgs] @xeji pushed commit from @marsam to master « pgmetrics: 1.5.0 -> 1.6.1 (#57575) »: https://git.io/fjeng
<{^_^}> [nixpkgs] @dotlambda pushed 4 commits to release-19.03: https://git.io/fjen2
Fare has quit [Ping timeout: 245 seconds]
<noonien> clever: hmm, is REFRATIO the dedup ratio?
<clstb> is somewhere documented how nixexprs.tar.xz of channels are packed and how a channel url should behave ?
<infinisil> sm: What OS are you on?
<clever> noonien: i'm not sure which one is dedup and which is from gzip
<clever> noonien: i think they are blurred into eachother
<noonien> ah, ok, because i've got this: http://vpaste.net/0mU9L
<noonien> and i haven't enabled dedup afaik
<{^_^}> [nixpkgs] @dotlambda pushed 0 commits to revert-56839-fix/cairocffi: https://git.io/fjenw
<{^_^}> [nixpkgs] @dotlambda pushed 0 commits to revert-52464-fish_generate-completions: https://git.io/fjenr
<clever> noonien: it might be snapshots that affect one
<clever> noonien: i mainly use the above cmd, to find the biggest USEDSNAP
<clever> [root@amd-nixos:~]$ zfs list -t snapshot -r -o name,used,refer,written amd/dedup ; df -h /home/clever/
<clever> noonien: and then this, to see all snapshots on that
<noonien> ah, that makes sense
<noonien> hmm, interesting
__monty__ has quit [Quit: leaving]
<noonien> god, i wish there was a GUI toolkit that wasn't retarded so i can make simple GUIs for things like this
<noonien> visualising resource usage in a GUI is way better than in a terminal
Nivpgir has quit [Ping timeout: 246 seconds]
<DigitalKiwi> worldofpeace: ping
<jtojnar> noonien: what about something like relm? https://github.com/antoyo/relm
stepcut has quit [Ping timeout: 246 seconds]
<ajs124> clever, I get that evaluation can take some time, but we're talking about >45min here. Then again, what the jobset is building are 16-17 nixos systems.
<noonien> jtojnar: i don't like rust
<DigitalKiwi> worldofpeace: so the thing i've been packaging hits the same problems related to pybind11 as this https://github.com/NixOS/nixpkgs/pull/56082 basically i can't get it to work right without the same patches they made to pybind11 either ...so i don't know what to do heh
<{^_^}> #56082 (by Ma27, 3 weeks ago, open): python3Packages.pyopencl: fix build
<noonien> i would prefer something that's in go, because that's the language i'm most productive in nowadays
<gchristensen> there is one you can use from bash, noonien
<noonien> i could probably go for python/qt since dependencies wouldn't be such hell with nix
<DigitalKiwi> don't know if there's a way around it or just wait and hope that gets merged soon?
<gchristensen> or tk
<clever> ajs124: there are some performance issues in the eval of nixos
<noonien> jtojnar: the reason i dislike rust is because i prefer writing code, not types
drakonis has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #57533 → virtualenv: Update patch for 16.2.0 → https://git.io/fhjQ2
<{^_^}> [nixpkgs] @dotlambda pushed commit from @glasserc to master « virtualenv: Update patch for 16.2.0 (#57533) »: https://git.io/fjenD
<gchristensen> (noonien why you do / don't like a language is probably off topic for #nixos :))
<{^_^}> [nixpkgs] @xeji merged pull request #57605 → inter-ui: 3.1 -> 3.3 → https://git.io/fjeZ1
<{^_^}> [nixpkgs] @xeji pushed commit from @dtzWill to master « inter-ui: 3.1 -> 3.3 (#57605) »: https://git.io/fjeny
<noonien> i tried doing some simple networking stuff in rust, it's insane
<infinisil> gchristensen: "i wish there was a GUI toolkit that wasn't retarded" "there is one you can use from bash" lol
<sm> infinisil I'm on macos mojave
<DigitalKiwi> also unrelated but who can i ping about #57553
<noonien> gchristensen: ah, sorry about that
<{^_^}> https://github.com/NixOS/nixpkgs/pull/57553 (by Kiwi, 22 hours ago, open): vim-plugins: typo propogatedBuildInputs -> propagatedBuildInputs
<{^_^}> [nixpkgs] @xeji merged pull request #57599 → xidlehook: v0.6.1 -> v0.6.2 → https://git.io/fjes4
<{^_^}> [nixpkgs] @xeji pushed commit from @jD91mZM2 to master « xidlehook: v0.6.1 -> v0.6.2 (#57599) »: https://git.io/fjenS
rpg has quit [Quit: Textual IRC Client: www.textualapp.com]
<infinisil> sm: Aha! Haskell packages apparently aren't being built by hydra, not sure why
<DigitalKiwi> is dotlambda on irc
<sm> doh
<infinisil> sm: I'll look into why that is
<sm> thank you
<gchristensen> infinisil: the queue is a bit behind on mac, maybe it is that?
<infinisil> gchristensen: It seems that no haskellPackages are being built on darwin
<gchristensen> ah
<noonien> since there's a bit more activity, is there perhaps someone that's running i3+plasma on nixos?
hellauer has joined #nixos
<infinisil> I don't see any haskellPackages darwin jobs
hellauer is now known as Guest28877
adetokunbo has joined #nixos
Guest28877 has quit [Client Quit]
<infinisil> sm: In any case, you can use this function to have your packages be built on darwin: https://github.com/NixOS/nixpkgs/blob/b9887d9fd18a073107464aced23e7985d1195058/pkgs/development/haskell-modules/lib.nix#L115-L118
civodul has quit [Remote host closed the connection]
stepcut has joined #nixos
drakonis has quit [Quit: WeeChat 2.3]
drakonis has joined #nixos
hellauer_ has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #57515 → xosview2: 2.3.0 -> 2.3.1 → https://git.io/fhjiX
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « xosview2: 2.3.0 -> 2.3.1 (#57515) »: https://git.io/fjend
Nivpgir has joined #nixos
<sm> infinisil: thank you, though that's above my nix level. I will test some more when the builder is healthy again.. may I ask what page you are watching to see its status
<DigitalKiwi> worldofpeace: also i have questions about how to figure out what goes in propagatedbuildinputs vs buildinputs vs checkinputs for python stuff and how to figure out which
<{^_^}> [nixpkgs] @xeji merged pull request #57506 → worker: 3.15.3 -> 3.15.4 → https://git.io/fhj63
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « worker: 3.15.3 -> 3.15.4 (#57506) »: https://git.io/fjenN
<infinisil> sm: No, the builder isn't unhealthy, haskell packages don't get built at all
<infinisil> for darwin
vk3wtf has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #57489 → tgt: 1.0.74 -> 1.0.75 → https://git.io/fhjV0
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « tgt: 1.0.74 -> 1.0.75 (#57489) »: https://git.io/fjenx
<infinisil> sm: I can make the PR for you
<sm> infinisil: oh
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/fjenh
<{^_^}> [nixpkgs] @dotlambda merged pull request #56082 → python3Packages.pyopencl: fix build → https://git.io/fhdHm
<sm> I don't want to do a PR I don't understand, I think I had better regroup a little
hellauer_ has quit [Quit: WeeChat 2.4]
hellauer_ has joined #nixos
isHavvy has quit [Read error: Connection reset by peer]
ddellacosta has quit [Ping timeout: 272 seconds]
<sm> perhaps I need to give a simple command let nix users figure out the updating
<sm> and
<{^_^}> [nixpkgs] @xeji closed pull request #57481 → sdparm: 1.10 -> 1.11r320 → https://git.io/fhj2b
<DigitalKiwi> gchristensen: is dotlambda on irc
ddellacosta has joined #nixos
<gchristensen> yeah, as dotlambda, from time to time
<infinisil> sm: Even then, your darwin users wouldn't have a cached version, they'd have to build it themselves (with any variation of install commands)
<sm> but I'm curious how I installed hledger with nix the first time without all this building
<sm> on mac
<infinisil> How long ago was that?
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to release-19.03: https://git.io/fjecJ
<sm> with "nix-env -i hledger hledger-ui hledger-web"
<ajs124> I'm trying to figure out if there is a (good) way to incorporate secret build inputs into a nix build, without putting them into the store or making them available to all builders. More preciseley, I'm talking about (private) signing keys needed in a build.
<sm> after installing from the website
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Fare has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #54685 → pywal: 3.2.1 -> 3.3.0 → https://git.io/fh60U
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « pywal: 3.2.1 -> 3.3.0 (#54685) »: https://git.io/fjecT
<infinisil> sm: That's odd.. How old was your channel?
<infinisil> Maybe haskell packages did get built at that point
<sm> it had just been downloaded by the installer/first startup I guess
shibboleth has quit [Quit: shibboleth]
<sm> perhaps peti will know
stepcut has quit [Ping timeout: 246 seconds]
kholerabbi has joined #nixos
hellauer_ is now known as hellauer
<infinisil> sm: Ah, figured it out
<infinisil> sm: Go to https://hydra.nixos.org/jobset/nixpkgs/trunk#tabs-jobs and enter hledger
<kholerabbi> Hi, I'm trying out the graphical NixOS iso in virtualbox and it gets stuck at "running udev..."
pie___ has quit [Ping timeout: 246 seconds]
<infinisil> Haskell packages *do* get built for darwin, but only on nixpkgs-unstable, not nixos-unstable
<infinisil> gchristensen: ^
<sm> infinisil: thanks.. it seems like one of the deps stopped building right after I installed successfully
<gchristensen> right, nixos-* doesn't build darwin
<infinisil> Yeah
stepcut has joined #nixos
<sm> and when that happens.. my quick "just works" install command can become a machine-devouring build monster
Guest81495 has quit [Read error: Connection reset by peer]
<infinisil> Yeah
<sm> hmm
sinner has joined #nixos
sinner is now known as Guest33329
<infinisil> Alternative: make your install command use a fixed known-to-work nixpkgs version
<sm> good idea, that will work
<infinisil> Disadvantage: For nix users to get updates, you'll have to update the nixpkgs version manually
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #57611 → top-level: Create `pkgs{Build,Host,Target}{Build,Host,Target}` → https://git.io/fjecc
<infinisil> Alternative: Fix the dependency build, and set up some way to be notified of breakage, i think even hydra can do that by sending emails
<sm> unfortunately I have far too much of that already.. but I think peti might help me out here
<sm> it seems like maybe I should have a waning note on the download page though
domogled has joined #nixos
jackdk has joined #nixos
<infinisil> So you want it to use a fixed nixpkgs version?
Nivpgir has quit [Ping timeout: 250 seconds]
<sm> ("that" = dealing with haskell build breakages on various platforms)
<clever> noonien: looks like #nixos-dev is already looking into your qemu problems
<sm> s/waning/warning/
stepcut has quit [Ping timeout: 268 seconds]
<sm> infinisil: not really, I guess want it to install the latest version of hledger quickly if possible, and to fail if it can't do that. So don't do a huge build if there's some transient breakage, and of course don't silently install an older version
justanotheruser is now known as biden
<sm> I probably can't get it just right, so looking for the best command to recommend new users so they won't come away feeling unhappy
Fare has quit [Ping timeout: 272 seconds]
<infinisil> Hmm yeah, so that's kind of annoying to do with Nix unfortunately, you'd have to manually mark the package as broken in nixpkgs to make it fail early
biden is now known as justanotheruser
Fare has joined #nixos
<sm> fair enough. I think I'll pick one of the commands so far and add a note to try --dry-run and what sort of size to expect
<infinisil> sm: I personally would recommend a pinned nixpkgs version, but if you don't want to do that, there's something else you can do, which will work very well
kholerabbi has quit [Quit: leaving]
<infinisil> Namely, adding a default.nix file to your project, building the things yourself, then uploading the result to https://cachix.org/
<sm> thanks, noted
<infinisil> sm: Then users can get a cached version that doesn't depend on NixOS' hydra and they can always get the latest version
<sm> what would the command look like with a pinned version ?
<infinisil> sm: And the install command would be `nix-env -f https://github.com/simonmichael/hledger/archive/master.tar.gz -i`
<sm> interesting
<infinisil> sm: For a pinned version it would be `nix-env -f https://github.com/NixOS/nixpkgs/archive/<pinned-git-revision>.tar.gz -iA hledger ...`
<sm> all noted
<sm> thanks for all the advice on this
<sm> it's very helpful
<infinisil> Np, there is a whole bunch of ways to do this, and all of them have some tradeoffs
Fare has quit [Ping timeout: 246 seconds]
Rusty1 has joined #nixos
stepcut has joined #nixos
<gchristensen> should we be doing more to emphasise that nix evaluation is not guaranteed to be safe?
<infinisil> gchristensen: For what notion of safe?
<clever> infinisil: IFD + /etc/shadow in an expression?
<gchristensen> that it could, for example, smuggle data out by a bogus fixed-output drv
<clever> i could easily upload every file i have read access to
<gchristensen> clever: see PMs :)
clstb has quit [Ping timeout: 256 seconds]
<Church-> Heya folks
<Church-> Wasssup
<{^_^}> [nixpkgs] @dywedir opened pull request #57612 → tiled: 1.2.2 -> 1.2.3 → https://git.io/fjec6
moredhel_ has quit [Ping timeout: 250 seconds]
commander has quit [Remote host closed the connection]
sigmundv has joined #nixos
lbb has joined #nixos
moredhel_ has joined #nixos
rcshm has quit [Remote host closed the connection]
<noonien> clever: nice!
obadz has quit [Quit: WeeChat 2.4]
domogled has quit [Ping timeout: 246 seconds]
rcshm has joined #nixos
domogled has joined #nixos
obadz has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #57613 → vscode: 1.32.1 -> 1.32.2 → https://git.io/fjecM
m0rphism has quit [Ping timeout: 252 seconds]
<infinisil> We should really have a Nixpkgs manual section for "How to provide a Nix installation for your package"
<jackdk> +1
stepcut_ has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant: 0.89.1 -> 0.89.2 »: https://git.io/fjecy
stepcut has quit [Ping timeout: 246 seconds]
dwdr has quit [Remote host closed the connection]
<Church-> Hmm this nix on droid install fails
<Church-> Bother
Fare has joined #nixos
jluttine has quit [Ping timeout: 246 seconds]
<lbb> is someone running nixos on zfs ? i suffer from huge performance impacts on directories where a lot of files where changed/deleted
<infinisil> lbb: This has almost certainly nothing to do with NixOS itself, it's probably a problem in your ZFS or kernel version
<infinisil> lbb: I suggest asking in #zfsonlinux