gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<elvishjerricco> Found it. It's nearby to that: /var/lib/lightdm-data/.cache/lightdm-gtk-greeter/state
<ottidmes> elvishjerricco: https://wiki.archlinux.org/index.php/LightDM#Default_session stores it as well, i.e. ~/.dmrc
<elvishjerricco> Odd
<ottidmes> elvishjerricco: But it is likely ~/.dmrc is just provided based on the state you linked
<ottidmes> elvishjerricco: So in order to actually change it, you probably have to change the state file rather than being able to change it via ~/.dmrc, but you could experiment and see what happens
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] dtzWill opened pull request #1944: Don't throw in destructor, happens in nix-daemon when client disappears. (master...fix/activity-destructor-exception) https://git.io/vA9Qp
NixOS_GitHub has left #nixos [#nixos]
BlessJah has quit [Ping timeout: 240 seconds]
pxc has quit [Ping timeout: 245 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
johnw has joined #nixos
<tnks> I'm open to some suggestion here. I tried a "nix copy --to ssh://nix@my-nix-cache /nix/store/..." and I'm still getting "cannot add path... because it lacks a valid signature"
<tnks> I did a "nix copy-sigs -s https://cache.nixos.org --all" and it did something, but didn't seem to help with all paths.
ambro718 has quit [Quit: Konversation terminated!]
sahabi has joined #nixos
<ottidmes> tnks: I had the same problem with substitutors, I would love to know the solution to that error message as well, I ended up just going back to Nix 1.x for now
<dtz> is your remote user a trusted-user on the remote host? That's probably easiest way to avoid
BlessJah has joined #nixos
<dtz> well, I think so anyway :)
<tnks> ottidmes: fortunately this channel is logged and indexed, and I found clever's advice to someone else there.
<tnks> I'm playing around with the `--option signed-binary-caches ""` advice he gave there.
<ottidmes> tnks: Setting require-sigs would also probably work, but I do not consider that a real solution
<ottidmes> dtz: The systems I have tried to make it work on have the same set of users which are all trusted
johnw has quit [Ping timeout: 265 seconds]
<dtz> bummer :)
<ottidmes> dtz: Indeed, thanks for the suggestion anyway, and clue is welcome :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz opened pull request #36272: nixos doc: document the installation process from other distros as well as NIXOS_LUSTRATE (master...nixos-lustrate-doc) https://git.io/vA975
NixOS_GitHub has left #nixos [#nixos]
<tnks> ottidmes: you seem to know more about this than I. Who's making these signatures?
<tnks> I don't know who's making them, and who's checking them.
<tnks> From the same machine, I can do a nix copy --to file:///tmp/cache, but not --to ssh://nix@my-nix-cache.
dan_b has quit [Ping timeout: 256 seconds]
<tnks> so it's a little bit confusing for me. Are the signatures not checked when copying to a file on the same machine?
<ottidmes> tnks: I don't know that much either, but I believe it is nix-store that is responsible for doing so. If you check the Nix manual for secret-key-files, it basically says as much: "These are used to sign locally-built paths. They can be generated using nix-store --generate-binary-cache-key."
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<ottidmes> tnks: I basically have the same confusion as you do. I also expect them to be signed the moment they are served, but I am not sure what to do to make it work. I already set that secret-key-files and the public equivalent with a generated key as described, but that seemed to have no effect
ivanivan has quit [Quit: WeeChat 2.0]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] timokau opened pull request #36273: sage: Make build more platform independant (master...sage-fat-binary) https://git.io/vA95t
NixOS_GitHub has left #nixos [#nixos]
<tnks> ottidmes: cool, well, I didn't do that even. So I'll probably read more docs, and try.
<tnks> maybe get stuck where you're at.
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<ottidmes> tnks: Hopefully I have just missed something
Acou_Bass has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #36273: sage: Make build more platform independant (master...sage-fat-binary) https://git.io/vA95t
NixOS_GitHub has left #nixos [#nixos]
Myrl-saki has joined #nixos
winem_ has quit [Ping timeout: 276 seconds]
<ryantm> Thanks to everyone who helped with my PR spree. Here's the fruits of our labor: https://repology.org/graph/repo/nix_unstable/metapackages_outdated.svg
<clever> ryantm: wow
simukis has quit [Ping timeout: 268 seconds]
blonkhart has quit [Quit: WeeChat 1.9.1]
chisui has quit [Ping timeout: 260 seconds]
<manveru> ryantm: how did you do that?
pkill9 has quit [Ping timeout: 256 seconds]
freeman42x]NixOS has quit [Ping timeout: 252 seconds]
nixer101 has joined #nixos
spear2 has quit [Remote host closed the connection]
<nixer101> Hi! Is there a www page or tool that allows to see the version of the same package across at least current stable + unstable channels?
pxc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #36274: nixos: nixos-generate-config: document all the common things (master...nixos/doc-generate-config) https://git.io/vA9FZ
NixOS_GitHub has left #nixos [#nixos]
<tnks> is there a nice command to see the signature for a path?
<tnks> it's not in /nix/store, right?
<tnks> I'm guessing it's in the binary database somewhere.
ottidmes has quit [Ping timeout: 248 seconds]
<clever> tnks: its in db.sqlite
<clever> nix-store --query --hash
<clever> oh, but thats only the hash, not the signature
<clever> yeah, i think only the binary cache has the signature
Arcaelyx_ has joined #nixos
<tnks> clever: years ago, out of curiosity, I went into the sqlite tables with a client.
<tnks> the tables were not normalized in too crazy a way.
Arcaelyx has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/1dcd022f01b (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
hellrazo1 has joined #nixos
pkill9 has joined #nixos
hellrazor has quit [Ping timeout: 245 seconds]
<tnks> do you actually need this line in /etc/nix/nix.conf? cat /run/secrets/nix-signing-sec \
<tnks> sorry.
<tnks> | tr -d '\n' | /etc/nix/signing-key.sec
<tnks> do you actually need this line in /etc/nix/nix.conf? trusted-public-keys = cache.nixos.org-1:6NCH...
<tnks> (wrong clipboard paste)
<nick_l> What is builtins.langVersion and why is there an assertion on it being greater or equal to 5 in master of nixpkgs?
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
<nick_l> clever: OK, so this essentially means a forced upgrade to nix 2.0 for 18.03?
<clever> nick_l: and you may need to pre-update the nix daemon to even parse the nixpkgs
<nick_l> When nixops outputs machine .....-> copying 42 missing paths (1.70 MiB) to ‘, from where to where is it copying?
<nick_l> And, why doesn't it just send the bytes, since I can ssh into the machine just fine.
Fare has quit [Ping timeout: 260 seconds]
<nixer101> Hi! Is there a www page or tool that shows package version across standard channels?
marusich has quit [Ping timeout: 260 seconds]
<clever> nick_l: its copying from the deployer to the remote server
Arcaelyx has joined #nixos
<nick_l> clever: ok, so why doesn't it copy then?
gemishhood has joined #nixos
<nick_l> clever: nixops ssh remote_machine logs me in.
<clever> nick_l: if you `ps aux | grep nix-store` on the remote machine, what do you see?
nixer101 has quit [Quit: Konversation terminated!]
sahabi has quit [Remote host closed the connection]
nixer101 has joined #nixos
Fare has joined #nixos
<nick_l> clever: the grep command, but otherwise nothing.
<gemishhood> Hey, trying to download ghc-mod. I using
<gemishhood> this command: nix-env -f '<nixpkgs>' -iA
<gemishhood> haskellPackages.ghc-mod and get this error:
<gemishhood> https://pastebin.com/nGJZW5vM. I have no idea where I went
<gemishhood> wrong. I tried to install it in a nixshell, but had no luck.
<clever> nick_l: what about with |grep nix
<gemishhood> Sorry about that. I ment to say Hey, trying to download ghc-mod. I using this command: nix-env -f '<nixpkgs>' -iA haskellPackages.ghc-mod and get this error: https://pastebin.com/nGJZW5vM. I have no idea where I went wrong. I tried to install it in a nixshell, but had no luck.
<nick_l> clever: various daemons, but nothing what you are looking for.
Arcaelyx_ has quit [Ping timeout: 240 seconds]
<clever> nick_l: can you pastebin the `ps -eH x` from the machine running nixops?
<gchristensen> ryantm: oh crap!
<gchristensen> ryantm: link?
<nick_l> clever: [nix-copy-closur] <defunct> seems relevant.
<clever> nick_l: what else is in that area?, it sounds like the copy already finished
<clever> nick_l: what does df -h and df -i report for the remote server?
<tnks> I seem to have gotten to the point ottidmes had gotten with things not working.
<tnks> has anyone ever gotten "nix copy" to work with required-sigs = true?
<tnks> I mean require-sigs = true (the default, I believe).
<tnks> I set both secret-key-files and trusted-public-keys on the source and destination servers.
<clever> tnks: i think you also need a special CLI flag to make it sign things
<nick_l> clever: /dev/disk/by-label/nixos 3.0G 1.9G 911M 68% / (and 56% free inodes)
<clever> nick_l: what does it output if you re-run the same deploy?
<nick_l> clever: the same
<clever> nick_l: what does `journalctl -f` on the remote server say, during the deploy?
<tnks> clever: I don't see this flag for Nix 2.0.
marusich has joined #nixos
<nick_l> clever: --include singleremotemachine worked for the machine I was trying to debug.
<clever> nick_l: maybe its waiting for ssh on a different machine then
<clever> nick_l: the ps -eH x output would have told me so, but you didnt give it
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
blankhart has joined #nixos
<blankhart> why does this succeed: nix-shell -p "haskell.packages.ghc802.ghcWithPackages (pkgs: with pkgs; [aeson])"
<blankhart> while this fails: nix-shell -p "haskell.packages.ghcjs.ghcWithPackages (pkgs: with pkgs; [aeson])"
<blankhart> (difference is ghc802 versus ghcjs)
d4g has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch pushed 5 new commits to master: https://git.io/vA9bP
<NixOS_GitHub> nixpkgs/master aa47bac Profpatsch: Convert maintainer file entries to attributes, add github handles...
<NixOS_GitHub> nixpkgs/master a2c708c Profpatsch: maintainers/scripts: improve github handle checker...
<NixOS_GitHub> nixpkgs/master 8e4c39a Profpatsch: lib/maintainers: correct wrong (clashing) github handles...
NixOS_GitHub has left #nixos [#nixos]
<dmj`> clever: here
prismate has joined #nixos
pkill9 has quit [Ping timeout: 276 seconds]
d4g_ has quit [Ping timeout: 248 seconds]
<tnks> clever: is it possible the signature from a cache.nixos.org binary is corrupted?
<clever> dmj`: your late to the miso party :P
<gchristensen> possible? yes
<tnks> gchristensen: what's the best way to test that theory?
<gchristensen> tnks: but S3 / CloudFront are really good at not doing that. I don't know, it has never happened to me
<gchristensen> their durability is in the range of 99.999999999%
<tnks> gchristensen: I've followed as much of the recommended directions as I can to get "nix copy" working, and getting this still:
<tnks> cat /run/secrets/nix-signing-sec \
<tnks> | tr -d '\n' | /etc/nix/signing-key.sec
nuncanada has quit [Read error: Connection reset by peer]
<tnks> (sorry, wrong paste again).
<tnks> I get this still: error: cannot add path '/nix/store/4w2wvcxzyxpdi3w5x92f42ck8jcrng1x-python3.6-requests-2.18.4' because it lacks a valid signature
iyzsong has joined #nixos
marusich has quit [Ping timeout: 240 seconds]
<gchristensen> I watched https://www.youtube.com/watch?v=Xe1TZaElTAs again today after sphalerite reminded me of it. I recommend everyone watch it :)
<prismate> hi, what does the [m] mean after a nickname?
muzzy has joined #nixos
<gchristensen> it means those people are on IRC via Matrix.org
<prismate> gchristensen: thx
<gchristensen> you're welcome :)
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm has joined #nixos
<tnks> okay, so it was trusted-users that wasn't set right.
<tnks> I'm caching with "nix copy"!
<nick_l> clever: I found the root cause for my issues \o/. Amazon documents their routing conditions in a terrible, terrible way.
<nixer101> Hi! Is there a www page or tool that shows package version across standard channels?
<lejonet> gchristensen: Good speech :)
<clever> nick_l: ah
sigmundv_ has quit [Ping timeout: 248 seconds]
<clever> tnks: i believe trusted users can just bypass the signature checks entirely
<gchristensen> lejonet: yeah :)
<nick_l> clever: they claim that an elastic ip is required to get routing in a public subnet to work, but infact it just requires *a* public IP.
<clever> nick_l: yeah, ive often ran things without an elastic ip or vpn
<clever> it just gets a new random ip every time you boot
<nick_l> clever: it's somewhat of an abstraction leak.
<gchristensen> it is a pretty important rule
<nick_l> What is?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #36275: lib: move maintainers-list.nix into maintainers (master...lib/maintainers-list) https://git.io/vA9AU
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> requiring you have a public IP to have public routing
Bunk1 has joined #nixos
<nick_l> A public ip says that you can also be reached, but if you are just interested in getting bits from the internet a NAT gateway would also be fine.
<nick_l> In AWS you still need to manually connect a NAT gateway to a particular VPC which is nothing more but an implementation detail.
<gchristensen> a pretty important one given the architectural and performance implications of the various options
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] eqyiel opened pull request #36276: desmume: avoid errors with with -fpermissive (master...fix-desmume) https://git.io/vA9AL
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> AWS isn't so much about abstracting away reality when you're working on those levels
<gchristensen> and to establish a connection you must be able to be talked to, anyway
<nick_l> It seems a limitation that I cannot just specify performance targets and that the AWS architecture compiler then does the required work.
<gchristensen> that isn't anything AWS claims to do ever
Bunk1 has left #nixos ["WeeChat 1.7.1"]
<nick_l> No, but I am saying that I would like to have something like that.
<gchristensen> ok but it isn't a leaked abstraction
<gchristensen> since they never claimed that abstraction in the first place
<nick_l> Out of interest, what are the performance implications you talked about?
<gchristensen> well if your instance has no public IP but you setup a NAT gateway instead to share a single one, you're banking on the performance of that single gateway instance, or in the case of redundant setups the performance of the individual nodes theere
<gchristensen> additionally the increased blast radius of those systems should they fail
<nick_l> OK, I was aware of those issues. Thank you.
<gchristensen> whereas you can choose to use a public IP per instance and depend on AWS' reverse NAT system, which is generally pretty good and distributed, and not really have to worry about how you're distributing load to your own gateways
<gchristensen> and then lean on the (pretty reliable) firewall for isolation
muzzy has quit [Ping timeout: 240 seconds]
<gchristensen> sure
<nick_l> 10Gb/s is quite a lot for the smallish scale on which we are currently operating.
<gchristensen> yeah
<nick_l> I.e., a nat gateway setup is slightly more secure.
muzzy has joined #nixos
<gchristensen> could be if you adequately maintain it
<nick_l> (in certain cases)
<gchristensen> like everything else in AWS / life it is a big fat It Depends
<nick_l> I meant one of those AWS managed NAT gateways.
<Fare> in an unstable-YYYY-MM-DD version, should that be the version of the latest modification to the upstream source, or to the recipe?
<gchristensen> Fare: typically the date of the commit or release was from
<Fare> so if I change a recipe to a package from 2017, which date shall I use?
<Fare> do I use unstable-2017-08-09-2 or something ?
<gchristensen> the date is when the source was committed / released, not when the nix expression was written
<Fare> to signify my updated recipe?
muzzy_ has joined #nixos
<Fare> or .2 instead of -2 ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #36277: deepin-icon-theme: move to deepin meta package (master...deepin) https://git.io/vA9An
NixOS_GitHub has left #nixos [#nixos]
nixer101 has quit [Quit: Konversation terminated!]
<gchristensen> example if I were packaging Linux Kernel 1.0-beta today it'd be like unstable-1994-03-14
<Fare> what if you re-package it better tomorrow?
<Fare> (did you know that date by heart or did you just look it up?)
hotfuzz has quit [Ping timeout: 265 seconds]
<gchristensen> I looked it up :)
<gchristensen> I don't think we typically add a suffix for when the packaging changes
<Fare> shouldn't we?
<Fare> I mean, how will nix-env -u or its replacement know to update stuff?
muzzy has quit [Ping timeout: 256 seconds]
<gchristensen> you have a good point, I don't know
<Fare> and BTW, where does it look up the list of packages to update??
<gchristensen> I've never used nix-env, so this isn't really something I'm aware of
<gchristensen> I'm off for the night. good night :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch closed pull request #34842: lib.maintainers: maintainer is now a set (master...maintainers) https://git.io/vAt5A
NixOS_GitHub has left #nixos [#nixos]
<Fare> nity nite!
<gchristensen> Profpatsch: don't forget to wait for ofborg to finish checking, PRs are failingchecks b/c of the meta
<Fare> gchristensen, what timezone are you in?
<gchristensen> America/New_York
<Fare> oh, same
<gchristensen> oh? where ?
<Profpatsch> gchristensen: That’s because oxij changed the meta checks in https://github.com/NixOS/nixpkgs/pull/36275
<Fare> Manhattan
<Fare> and Boston
<Fare> it's a long commute
<gchristensen> Profpatsch: 36275 isn't merged
<gchristensen> master is broken
<Profpatsch> Nice!
<Profpatsch> :)
<gchristensen> I think we should revert your PR until the checks pass
<Profpatsch> Why is it broken, though?
* Fare is updating his script that was updating the gerbil recipe, so it can also update the gerbil-unstable and gambit and gambit-unstable recipes
<Profpatsch> There shouldn’t be any changes to the final meta fields.
<gchristensen> I don't know but your PR failed checks
<gchristensen> Profpatsch: mind if we revert and then revert again, and fix until it passes?
<Profpatsch> It did? As far as I could see everything was green when I pushed?
<Profpatsch> sure
<gchristensen> looked like there was a final patch pushed at the eend that broke
<Profpatsch> Hm, maybe that was the rebase
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc created revert-36119-maintainer-reformat (+5 new commits): https://git.io/vA9AR
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/revert-36119-maintainer-reformat 3e55c5d Graham Christensen: Revert "lib/maintainers: rename file to maintainers-list.nix"...
<NixOS_GitHub> nixpkgs/revert-36119-maintainer-reformat 4321760 Graham Christensen: Revert "lib/maintainers: add new maintainers before maintainers merge"...
<NixOS_GitHub> nixpkgs/revert-36119-maintainer-reformat 5296393 Graham Christensen: Revert "lib/maintainers: correct wrong (clashing) github handles"...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc opened pull request #36278: Revert "Convert maintainer file entries to attributes, add github handles" (master...revert-36119-maintainer-reformat) https://git.io/vA9A0
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vA9AE
<NixOS_GitHub> nixpkgs/master 09e873f Graham Christensen: Merge pull request #36278 from NixOS/revert-36119-maintainer-reformat...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc created revert-36278-revert-36119-maintainer-reformat (+1 new commit): https://git.io/vA9Az
<NixOS_GitHub> nixpkgs/revert-36278-revert-36119-maintainer-reformat b9ea7dc Graham Christensen: Revert "Revert "Convert maintainer file entries to attributes, add github handles""
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc opened pull request #36279: Revert "Revert "Convert maintainer file entries to attributes, add github handles"" (master...revert-36278-revert-36119-maintainer-reformat) https://git.io/vA9A2
NixOS_GitHub has left #nixos [#nixos]
<Li[m]> what the trick to use a local nixpkgs tree instead of channels for the user's 'nix-env' ? should I symlink the tree to ~/nix-defexpr ?
<gchristensen> love reverting reverts :P one time at $work I quadruple-reverted a PR
<gchristensen> I was just heading to bed and noticed my pager paging from master failures :)
<Profpatsch> And nbp and eelco get all these as notifications since they are codeowners. :P
<gchristensen> nbp and eelco probably don't even check their email anyway ;)
<Profpatsch> I love pushing master breaking changes in the middle of the night!
<Profpatsch> Nah, really sorry.
<Profpatsch> Should always check after rebase.
<gchristensen> a few broken evals isn't the end of the world
<Profpatsch> Ah! Maybe something in the commits that I rebased on.
<gchristensen> hmm one sec
<gchristensen> nah, master evaluates okay
<gchristensen> " Failed to enumerate outputs after merging to master " <- means master evaluated, but after the merge failed
<Profpatsch> gchristensen: Dbus-Java has the maintainers outside of meta
<Profpatsch> Because it was a string before that didn’t fail (it was given to the derivation)
<gchristensen> ack
<Profpatsch> So some sanity checking.
<Profpatsch> gchristensen: Ah, you already found oxijs commits
<gchristensen> just pushed :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/revert-36278-revert-36119-maintainer-reformat ddfff8c Jan Malakhovski: libmatthew-java: fix
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/revert-36278-revert-36119-maintainer-reformat 55e2832 Jan Malakhovski: dbus-java: fix
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to revert-36278-revert-36119-maintainer-reformat: https://git.io/vA9AQ
<gchristensen> oxij said to push the last two but I think they meant three
<gchristensen> Profpatsch: mind taking it on from here?
<Profpatsch> gchristensen: I don’t see any ofborg evaluation message now.
<Profpatsch> Does this mean master is fixed?
<gchristensen> unfortunately there is a backlog so it hasn't been able to check the PR yet
<gchristensen> when it passes, the status box at the bottom will say "8 successful checks"
<Profpatsch> Ah, okay. Then I will merge when that happens.
<Profpatsch> Or push more fixes if it doesn’t.
<gchristensen> what is your email?
<Profpatsch> query
<gchristensen> ok I sent you creds to the monitoring tools to diagnose if ofborg is backlogged
<gchristensen> also: WOW! ofborg has been evaluating PRs continuously for 12 solid hours!
<gchristensen> ok I'm going to bed, thanks for fixing it up Profpatsch
Supersonic has quit [Quit: Bye]
Supersonic has joined #nixos
<Profpatsch> Thanks for noticing. :)
<Mic92> gchristensen: To refine my questions: I assumed I cannot just attach to your message queue with my own bot that allows unfree packages and get unfree package requests commands routed. But is it possible to have my own queue?
halfbit has joined #nixos
<Mic92> and maybe own github account
abathur has joined #nixos
acertain has quit [Ping timeout: 252 seconds]
<abathur> anyone around? fishing for a little direction/troubleshooting on getting set up to hack on a project
acertain has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA9pY
<NixOS_GitHub> nixpkgs/master ec4f17c Milan Svoboda: kitty: 0.7.1 -> 0.8.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 7f3dab4 Jörg Thalheim: Merge pull request #36264 from tex/kitty...
<Mic92> meta questions are hard to answer
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA9pC
<NixOS_GitHub> nixpkgs/master 2eed814 Jörg Thalheim: Merge pull request #36277 from romildo/deepin...
<NixOS_GitHub> nixpkgs/master c714c92 José Romildo Malaquias: deepin-icon-theme: move to deepin meta package
<Profpatsch> grahamc: Okay, merged!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch closed pull request #36279: Revert "Revert "Convert maintainer file entries to attributes, add github handles"" (master...revert-36278-revert-36119-maintainer-reformat) https://git.io/vA9A2
NixOS_GitHub has left #nixos [#nixos]
<cmcdragonkai1> How does one make nix-repl load a pinned package set?
<cmcdragonkai1> I know about `:l <nixpkgs>`
<cmcdragonkai1> But what if I want to use https://github.com/.../HASH.tar.gz?
schoppenhauer has quit [Ping timeout: 240 seconds]
<cmcdragonkai1> Although I can just use `pkgs = import (fetchTarball ...) {}`
orivej has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA9p0
<NixOS_GitHub> nixpkgs/master 64d45ec Andrey Komarov: systemtap: 2017.02.04 -> 2017.10.18...
<NixOS_GitHub> nixpkgs/master 5cfad21 Jörg Thalheim: Merge pull request #36260 from andrey-komarov/systemtap...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA9pz
<NixOS_GitHub> nixpkgs/master e6b6784 Jörg Thalheim: Merge pull request #36276 from eqyiel/fix-desmume...
<NixOS_GitHub> nixpkgs/master 688aaf1 Ruben Maher: desmume: avoid errors with with -fpermissive...
NixOS_GitHub has left #nixos [#nixos]
schoppenhauer has joined #nixos
<abathur> Mic92: fair
<abathur> I've just typed it out a few times sans response, so trying to figure out if anyone's around first
<abathur> in short-ish, I have a fork of doxygen that I was hacking on before I installed nixos, but which happens to have a nixpkg, and which I am trying to set myself up to continue on; I'm developing an experimental feature and iteratively testing it on the task of generating docs for another project
<Mic92> abathur: you can use a nix-shell, if you need to work with forks of software. let give you an example
<abathur> roughly the questions are 1.) I assume I should be (I am) trying to override the existing nixpkgs derivation for doxygen
muzzy__ has joined #nixos
<abathur> 2.) in terms of close build cycles, should I (as you say) be building in nix-shell and just using the local resulting binary, or be building with nix-build/env?
<abathur> (I'll assume you just answered that one--it's what I've been trying)
<Mic92> abathur: the idea is to manage your build environment by putting a file called default.nix in the project your are working on: https://github.com/Mic92/dotfiles/blob/master/nixos/environments/fuzzball/default.nix#L5
<Mic92> that allows you to specify all dependencies including your doxygen fork
<abathur> and 3.) I've been getting a successful build within nix-shell, but then getting errors via nix-build on a missing sqlite3.h, despite including sqlite as a build input and declaring a cmake flag pointing at the correct sqlite3 includes path
muzzy_ has quit [Ping timeout: 256 seconds]
<abathur> yeah, I've got a pretty simple one set up now, I may have to use a generic paste, not logged in on github on this system
<cmcdragonkai1> What was the alternative to buildInputs?
<Mic92> the latter question, I cannot answer without an example
<Mic92> cmcdragonkai1: I think there was a saner way now in nix 2.0 using builtins.fetchgit to download nixpkgs
<cmcdragonkai1> Mic92: Build Inputs is for compilation deps
<cmcdragonkai1> Mic92: Do you remember what the one was for runtime deps?
<cmcdragonkai1> Mic92: Deps that must exist while the package is installed
<abathur> python additions are just to support an input filter that is run alongside my doc build
<abathur> I got the impression that the point of a nix-shell was that it wasn't actually going to build, so the build-inputs were what you'd actually have available internally?
<Mic92> cmcdragonkai1: I think there was propagatedUserEnvPkgs. But this should be avoided usually
<Mic92> runtime deps are usually expressed differently
<cmcdragonkai1> buildInputs is apparently for runtime actually..
<Mic92> for example by linking
<cmcdragonkai1> The docs say it can be problematic in that when cross compiling, foreign executables can clobber native ones on the PATH
<Mic92> cmcdragonkai1: buildInputs become runtime dependencies, if they are referenced in the file
<Mic92> *package
<abathur> *also not at all sure about my use of cleanSourceFilter, but any attempts to use nix-build were giving me grief about the old cMakeCache and cMakeLists files
<cmcdragonkai1> So I have a package...
<cmcdragonkai1> This package expects there to be commands avialable on the PATH
<cmcdragonkai1> when it runs
<abathur> and putting it in did get it to stop complaining (though it fails later on the sqlite3.h
<Mic92> cmcdragonkai1: are you looking for nativeBuildInputs?
<cmcdragonkai1> Should this other package which exposes the commands be `buildInputs` or `propagatedBuildInputs`?
<Mic92> abathur: if you use nix-build with this file, you are building doxygen. Is this what you want?
<abathur> at some point, though I'm not 100% sure if it's ideal that I just build/use it within a nix-shell or build it external to
<Mic92> cmcdragonkai1: I think makeWrapper should work.
<Mic92> abathur: personally I prefer nix-shell. I combine it with direnv to have my build environments at my fingertips
<abathur> pre-nixos, basically, I hack a little on an experimental feature within my doxygen fork, rebuild, copy over the new binary, and run that binary to generate docs for a different project, then inspect the docs to see if they're matching what they should, and then iterate again
dnovosel has joined #nixos
muzzy__ has quit [Ping timeout: 276 seconds]
<abathur> so my first intuition was to try nix-shell, but I wasn't sure if I was starting to grow beyond what it is designed for once I had to start manually referencing the produced binary by path
<ryantm> Mic92: I updated https://github.com/NixOS/nixpkgs/pull/36168 to use builtins.splitVersion, which OfBorg didn't like.
<ryantm> It worked fine in my nix-repl tests though.
<ryantm> Oops I mean, `nix repl`!
<Mic92> ryantm: What was the substitute you have used before? Maybe there should be a fallback in case an older nix was used, something like builtins.splitVersion ? <fallback-expression>
<Mic92> otherwise upgrading for some people might become painful
<Mic92> I think we did this replacement also for other builtins
pikachurr has joined #nixos
<pikachurr> hi
<pikachurr> i am trying to update nixpkgs file for keepassxc, which is a password management software
<ryantm> Mic92: ok
<Mic92> ryantm: I thought borg was using nix 2.0 as well. Maybe I am wrong
<pikachurr> the current version is 2.2.4 i think which does not support their latest database encryption
<Mic92> abathur: I have an fix for you
<pikachurr> i am trying to update 'version' and 'sha256' in nixpkgs but it always tells me the sha is wrong
<Mic92> use that with nix-shell
* abathur is looking
<abathur> if it doesn't work I may have another paste in a few
<blankhart> is anyone aware of a haskell project using nix, with a ghcjs client + shared library, and a ghc server + shared library? the piece that is stumping me is how to set up a nix-shell for both the client + shared piece (or server + shared) since you can only have a single nix derivation to start the shell
<Mic92> abathur: it did for me locally
<Mic92> pikachurr: there is an open pr, you can adapt
<blankhart> there seem to be very complex solutions (like the reflex platform) but i am looking for a minimal example
<pikachurr> can someone tell me how do i get the correct hash
<pikachurr> i don't understand you
<cmcdragonkai1> I'm testing the package now.
<cmcdragonkai1> I received this error: (gpredict:7844): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
<cmcdragonkai1> When trying to open a dialog box
<cmcdragonkai1> Seems like couple other packages have this problem as well
<Mic92> cmcdragonkai1: you need wrapGAppsHook in nativeBuildInputs
<cmcdragonkai1> Mic92: How do I use it
<cmcdragonkai1> ?
<Mic92> cmcdragonkai1: if you put in nativeBuildInputs it will call makeWrapper on all executables to include all the Gnome/GTK stuff like schemas
<abathur> Mic92: I assume I should still be applying my mod to the src path to the doxygen.overrideAttrs, but please correct me if I'm wrong :)
<Mic92> abathur: is your fork online?
<cmcdragonkai1> Mic92: That's all I have to do!?
halfbit has quit [Ping timeout: 265 seconds]
<Mic92> cmcdragonkai1: sometimes applications also need gnome3.defaultIconTheme for icons
<Mic92> that should be in default icon theme
<Mic92> *that should be in buildInputs
<abathur> I have a GH fork in some condition or another, but I'm midstream on some uncommitted work on a feature branch
<cmcdragonkai1> Mic92: Awesome it works.
<cmcdragonkai1> No need for defaultIconThemes.
<cmcdragonkai1> There really should be docs on this.
<Mic92> cmcdragonkai1: you can also add it to the wiki
<Mic92> cmcdragonkai1: https://nixos.wiki/wiki/Packaging_Software#GLib-GIO-Message:_Using_the_.27memory.27_GSettings_backend._Your_settings_will_not_be_saved_or_shared_with
<Mic92> maybe the error mesage can be extened with No GSettings schemas are installed on the system
<Mic92> abathur: if you remove your build directory or name it different, you should be able to set the `src =`
<pikachurr> Mic92 https://hastebin.com/evowevacax.erl, the build failed
<Mic92> pikachurr: the cmake patch was also removed in the pull request
<Mic92> pikachurr: but there is also an updated version here: https://github.com/NixOS/nixpkgs/pull/36133/files#r171350543
zombified has quit [Quit: bye bye!]
<Mic92> cmcdragonkai1: I extended the article
robstr has joined #nixos
<abathur> Mic92: make still failing on sqlite3.h, hrm
<abathur> may be the case that the code I lifted {sqlite3.dev} from was lying, but it looked good ;)
<Mic92> abathur: which branch are you on?
<Mic92> I only tested in unstable
robstr has quit [Ping timeout: 252 seconds]
<tnks> can a Nix package have multiple signatures?
<tnks> I'm not looking at the sqlite database yet, and it's kind of opaque how this works internally.
<abathur> on stable channel, no checkout of nixpkgs (is that the issue?)
<abathur> I'll have another paste in a moment once I edit it together
<Mic92> tnks: you mean like sha256 and md5?
<Mic92> abathur: that is the only difference I can imagine at the moment. Because it was working for me.
<tnks> Mic92: I can do a `nix copy --to`, but not a `nix copy --from`
<Mic92> tnks: sorry I confused signatures with checksum
<abathur> removing that filterSource line for one more run before I make the paste in case there's something there
<tnks> the later does work with a --no-check-sigs... and my best hunch right now is a difference between support for SSH and HTTP.
<tnks> Mic92: no problem.
<Mic92> tnks: you can do that if you either sign you build packages or disable signature check
<Mic92> *your
<Mic92> hydra add signatures to packages,
<Mic92> You probably try to push your own locally build packages
<Mic92> if you use ssh to copy them, disabling signature checks is fine to do.
<Mic92> abathur sorry, I cannot help you, I don't have your source.
<abathur> nod
<abathur> I don't think it should be the source, but I understand
<abathur> doxygen changed make process back in 1.8.10, but nix stable is on at least 1.8.11, so the underlying process should be the same for my fork at .13, but not getting something hooked up right
jtojnar has quit [Remote host closed the connection]
<Mic92> $NIX_CFLAGS_COMPILE is used to find header files
<Mic92> sqlite should be in there
<abathur> oh
<Mic92> sqlite.h
<Mic92> adding sqlite to buildInputs will also add it to NIX_CFLAGS_COMPILE
<abathur> yeah, it seems to
<abathur> when I wasn't trying to build within shell setup I could see it within the shell
<abathur> it just isn't getting identified when it counts
<pikachurr> Mic92 it builds, thanks
<abathur> is it a given that the cMakeFlags var would for certainly be passed along?
<Mic92> I don't understand
<abathur> I assumed since the underlying derivation was already specifying cmakeFlags =
<abathur> [ "-DICONV_INCLUDE_DIR=${libiconv}/include" ] ++
<abathur> that adding to it is the correct idiom for adding additional flags to pass along?
<Mic92> yes. but usually it should not be necessary to specify this manually. Also note, if you calling manually cmake, you have to add $cmakeFlags manually
<abathur> hmm, that's a good question
<abathur> how does the cmake cycle work when the shell derivation is specifying the build?
<abathur> Maybe this is an incorrect path cached somewhere in cmake stuff? I'm just a cargo-cultist once it gets that far down
<Mic92> https://gist.github.com/Mic92/bd0004a75272e8f3e3636e171951db43 <- the following also works with nix-build on the unmodified doxygen tarball
jtojnar has joined #nixos
<abathur> you are, by the way, a saint for how you've handled 1-4 people pestering you for help for well over an hour now
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 6f7069d Jörg Thalheim: alacritty: 2018-01-31 -> 2018-03-04
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vA9hX
NixOS_GitHub has left #nixos [#nixos]
<Mic92> usually sphalerite is doing that. But is still in early in the morning
<abathur> despite my belief in santa, that didn't work either; running nix-build on your gist above now
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] CMCDragonkai opened pull request #36280: gpredict: Added hamlib to buildInputs to control radios, and wrapped … (master...gpredict) https://git.io/vA9h5
NixOS_GitHub has left #nixos [#nixos]
<Mic92> then nix-build -I nixpkgs=$(realpath /path/nixpkgs/checkout) should do it
<abathur> tarball did clear
<abathur> bog
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA9hb
<NixOS_GitHub> nixpkgs/master 9449782 Peter Schuller: signal-desktop: 1.3.0 -> 1.5.2
<NixOS_GitHub> nixpkgs/master d9a2dfe Jörg Thalheim: Merge pull request #36270 from scode/scode/signal-152...
NixOS_GitHub has left #nixos [#nixos]
blankhart has quit [Quit: WeeChat 1.9.1]
<abathur> -- Installing: /nix/store/21rasr0ynn71mb6rmv0dr43dl8rm5k36-doxygen-1.8.13/bin/doxygen
<abathur> post-installation fixup
<abathur> shrinking RPATHs of ELF executables and libraries in /nix/store/21rasr0ynn71mb6rmv0dr43dl8rm5k36-doxygen-1.8.13
<abathur> shrinking /nix/store/21rasr0ynn71mb6rmv0dr43dl8rm5k36-doxygen-1.8.13/bin/doxygen
<abathur> stripping (with flags -S) in /nix/store/21rasr0ynn71mb6rmv0dr43dl8rm5k36-doxygen-1.8.13/bin
<abathur> patching script interpreter paths in /nix/store/21rasr0ynn71mb6rmv0dr43dl8rm5k36-doxygen-1.8.13
<abathur> checking for references to /tmp/nix-build-doxygen-1.8.13.drv-0 in /nix/store/21rasr0ynn71mb6rmv0dr43dl8rm5k36-doxygen-1.8.13...
<abathur> /nix/store/21rasr0ynn71mb6rmv0dr43dl8rm5k36-doxygen-1.8.13
<abathur> result/bin/doxygen -v
<abathur> 1.8.14
<abathur> :P
davidlt_ has joined #nixos
<abathur> er, rather, your paste cleared
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36258: Dlang update (master...dlang-update) https://git.io/vA9wC
NixOS_GitHub has left #nixos [#nixos]
muzzy__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vA9hp
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 799178f DarkScythe97: libretro: add higan-sfc core (#36238)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA9jv
<NixOS_GitHub> nixpkgs/master 30ba063 Roger Qiu: gpredict: Added hamlib to buildInputs to control radios, and wrapped with wrapGAppsHook to fix gnome errors
<NixOS_GitHub> nixpkgs/master 9e1548d Jörg Thalheim: Merge pull request #36280 from MatrixAI/gpredict...
NixOS_GitHub has left #nixos [#nixos]
aarvar has quit [Ping timeout: 265 seconds]
nick_l has quit [Ping timeout: 260 seconds]
<cmcdragonkai1> Mic92: Thanks for the fast merge!
<abathur> hmm, weird
<mfiano> Can anyone recommend me their favorite nixpkg for monitoring bandwidth on the cli?
<abathur> Mic92: Copied your last gist, which got past nix-build, replaced pasted it in after `let doxygen = `, ran nix-shell, and built through clean to a nix-shell, though it still claims to be 1.8.14, and my fork's git describe is just 1_8_13-*
<Mic92> mfiano: bmon
dnovosel has quit [Ping timeout: 245 seconds]
<mfiano> Thanks. I've only ever known of nethogs, and was looking for alternatives
<Mic92> I use nethogs too
<Mic92> but it is more connection oriented
<mfiano> What do you like about bmon?
<Mic92> I use it for long-term statistics on a VPN server
<mfiano> Ah, I like that bmon doesn't need root privs
gemishhood has quit [Ping timeout: 268 seconds]
prismate has quit [Quit: WeeChat 0.3.8]
jtojnar has quit [Remote host closed the connection]
<hyper_ch> Hmmmmm, nixos unstable is more current than nixos-unstable small....
<abathur> Mic92: not sure, but assuming my attempt to specify the sqlite3 include path was breaking it; in any case, that appears to have worked (cementing my cargo-cult membership)
<abathur> Mic92: Thanks much for your time/help/patience
<Mic92> another satisfied user
pikachurr has quit [Quit: leaving]
Fare has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master fbaa334 Will Dietz: gecode_3: use bash to run "configure", fix error...
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA9j4
<NixOS_GitHub> nixpkgs/master 0ea54b1 Jörg Thalheim: Merge pull request #36171 from dtzWill/fix/gecode_3...
NixOS_GitHub has left #nixos [#nixos]
<abathur> grin
Rusty1_ has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master f9c9068 Ryan Mulligan: nlohmann_json: 2.1.0 -> 3.1.1...
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vA9jo
<NixOS_GitHub> nixpkgs/master d8bc997 Jörg Thalheim: Merge pull request #35922 from ryantm/auto-update/nlohmann_json-2.1.0-to-3.1.1...
NixOS_GitHub has left #nixos [#nixos]
davidlt_ has quit [Read error: Connection reset by peer]
davidlt has joined #nixos
<mfiano> Something in nixos is overriding the alias I have for `ls` in environment.shellAliases. It's setting `alias ls='ls --color=tty'` and that's not what I have in my config. Anyone know what/where that could be happening?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #35914: nanoflann: 1.1.9 -> 1.2.3 (master...auto-update/nanoflann-1.1.9-to-1.2.3) https://git.io/vAPw2
NixOS_GitHub has left #nixos [#nixos]
<Mic92> ~/.bashrc ?
<mfiano> I am setting my own alias in environment.shellAliases, and that is being used instead
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vA9jd
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master a5dcde1 Jörg Thalheim: Revert "networkd: also load builtin modules"...
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos
shikiryogy has joined #nixos
acertain has quit [Ping timeout: 256 seconds]
jtojnar has joined #nixos
<shikiryogy> Hi guys, pretty new to nixos. I want to install a newer version of a package, that I know is in master, but isn't in the stable version. What is currently to most painless way to do so?
<hyper_ch> shikiryogy: maybe use unstable instead of stable
<mfiano> shikiryogy: Check to see if it is in unstable. Unstable is pretty stable, as a lot of checks have to pass for it to become pushed for availability
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/7a04c2ca296 (from 18 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<shikiryogy> mfiano: we are talking about unstable-aarch64, right? It is in there. How to install only this specific package from there? I am talking about elixir 1.6, if it makes any difference.
<mfiano> I was talking about the official nixos-unstable channel. I'm not familiar with the aarch64 channel.
robstr has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #35923: nomad: 0.6.2 -> 0.7.1 (master...auto-update/nomad-0.6.2-to-0.7.1) https://git.io/vAPwA
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #36281: Keepassxc 2.3.0 (master...keepassxc-2.3.0) https://git.io/vAHec
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master c16936c Jörg Thalheim: Revert "radare2-cutter: 1.1 -> 1.2"...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAHel
<mfiano> Mic92: Do you know how to override that?
<Mic92> mfiano: what?
<mfiano> its taking over my own environment.shellAlias definition
<mfiano> shellAliases*
<Mic92> mfiano: it seems to be the default value for bash and can be overwritten by programs.bash.shellAliases https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/bash/bash.nix#L62
<Mic92> or zsh respectivly
<mfiano> Mic92: Ah so can't define it with the rest of my generic shell aliases for all shells?
<Mic92> I am not sure
<mfiano> Appears not :(
gemishhood has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36133: keepassxc: 2.2.4 -> 2.3.0 (master...keepassxc-2.3.0) https://git.io/vAXj3
NixOS_GitHub has left #nixos [#nixos]
gemishhood has quit [Ping timeout: 252 seconds]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
alex`` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aneeshusa opened pull request #36283: Fix vagrant 2.0.2 (master...fix-vagrant-2.0.2) https://git.io/vAHvP
NixOS_GitHub has left #nixos [#nixos]
ebzzry_ has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #32392: Move pluggy to separate module (staging...move-pluggy-to-module) https://git.io/vbcAH
NixOS_GitHub has left #nixos [#nixos]
fragamus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #33567: nixos: Remove deprecated sshd option: default is true (master...imp/remove-deprecated-option) https://git.io/vNka7
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #34486: utillinux: set default wordlist for look (staging...fix-utillinux-look) https://git.io/vNdoA
NixOS_GitHub has left #nixos [#nixos]
ebzzry_ has joined #nixos
<sphalerite> Mic92: :D
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<sphalerite> alayws nice to wake up to see people have said nice things about you while you were away x)
<Myrl-saki> sphalerite: I hate you. :x
<sphalerite> :(
<Myrl-saki> sphalerite: jk, i dun hate you
<Myrl-saki> sphalerite: :)
<sphalerite> :D
<Myrl-saki> sphalerite: the net happiness was greater than the sadness, therefore it was worth it.
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 5668ca8 Franz Pletz: Merge pull request #35125 from vcunat/p/hydra-gcc7...
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vAHf8
<NixOS_GitHub> nixpkgs/master 1dbb828 Vladimír Čunát: hydra: fix build with gcc7, incl. libpqxx update...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 3 new commits to staging: https://git.io/vAHf2
<NixOS_GitHub> nixpkgs/staging a7a0d78 xeji: epoxy: add mesa to libepoxy runpath as fallback...
<NixOS_GitHub> nixpkgs/staging bb8e273 Franz Pletz: Merge pull request #35369 from xeji/epoxy-runpath...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 980dd63 xeji: epoxy: 1.3.1 -> 1.5.0
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #33620: dhcp: 4.3.4 -> 4.3.6 (staging...update/dhcp-4.3.6) https://git.io/vNLuJ
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> yaaaaay finally managed to update my chromebook after more than a month xP
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 9415c5f Franz Pletz: hashcat: 4.0.1 -> 4.1.0
<NixOS_GitHub> nixpkgs/master 175e2a4 Franz Pletz: altcoins.dero: 0.11.3 -> 0.11.5
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vAHfx
Itkovian has joined #nixos
<chocopuff298> sphalerite, gchristensen: just a quick update, I realized recently that I might be too young to participate in GSoC rip, but I'll definitely still play around with the idea over the summmer
chocopuff298 is now known as chocopuff
<chocopuff> I only turn 18 a few weeks into the program
Itkovian has quit [Client Quit]
<hyper_ch> back in the day, when I was 18, there was no GSoC
<sphalerite> aw, that's a shame
<sphalerite> next year! :)
<chocopuff> it's alright! Don't need GSoC to still work on FOSS!
<chocopuff> and yeah, next year too!
<hyper_ch> sphalerite: you need to fix unstable small... it's not advancing
<sphalerite> hyper_ch: why don't you :)
<mfiano> yay for unstable being caught up again
<hyper_ch> because your github/nix/nixos fu is so much stronger than mine
<hyper_ch> (and I have no idea why it's not advancing)
<hyper_ch> mfiano: I still need one commit into unstable - tmux fix
<mfiano> hyper_ch: what's wrong with tmux?
<sphalerite> hyper_ch: I also ahve no idea why it's not advancing :)
<hyper_ch> sphalerite: :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vAHJ1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 6fa864e Franz Pletz: nix-repl: only builds with nix1
<mfiano> Oh yeah, that systemd feature that everyone keeps complaining about
<MP2E> I was hoping to rebuild off of the nixpkgs master commit that uses the new systemd patch that fixes tmux over ssh
<MP2E> but wouldn't you know it, nix 2.0 got merged, and things won't evaluate for me yet heh
<MP2E> hopefully this gets fixed soon :<
<sphalerite> fun times
orivej has joined #nixos
<mfiano> Oh yay. Updated to unstable and my bootloader is broken now and can't reboot
<mfiano> error: file '/root/boot/grub/i386-pc/normal.mod' not found.
<mfiano> grub rescue>_
<hyper_ch> I also just "downgraded" from unstable small to unstable and grub was not broken for me
<mfiano> Yeah something is suspicious about that /root/ directory prepended
<mfiano> I'm not sure how to boot to fix it though
<hyper_ch> you probably just did it wrong
<hyper_ch> mfiano: live cd :)
<mfiano> I hope not. This hardware would take hours to fix that then
<hyper_ch> rollback your zfs snapshot
periklis has joined #nixos
Itkovian has joined #nixos
<sphalerite> mfiano: you should be able to fix it from the live system without nixos-install
<mfiano> sphalerite: Well I did `grub-install --recheck --root-directory=/mnt /dev/mmcblk0` from the live system and it got my grub menu back, but booting kernel panics with "Attempted to kill init!"
<mfiano> sphalerite: What did you have in mind that isn't nixos-install?
<sphalerite> well it sort of is nixos-install but it won't need to build your system — nixos-install --chroot, then nixos-rebuild boot
<mfiano> hmm?
<mfiano> i'll read about that flag
<sphalerite> nixos-install --chroot basically gives you a shell in the installed system
<mfiano> that spits out some errors
<mfiano> bash: /: Is a directory
<mfiano> bash: 2.5: command not found
<mfiano> bash: 1520154049: command not found
<sphalerite> o.o
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<sphalerite> nix-shell -p nixUnstable --run 'nix verify --no-trust --store /mnt'
<mfiano> that errors after downloading
<mfiano> error: opening file /root/default.nix': No such file or directory
<sphalerite> oh yeah add --all as well
<sphalerite> inside the quotes
<mfiano> Ok, it's scanning
<mfiano> sphalerite: it finished
<sphalerite> huh. and no problems?
<mfiano> 7676 paths verified
<mfiano> no issues it seems
<sphalerite> and for nixos-install --chroot you just did literally that?
<mfiano> correct
<sphalerite> I'm very confused
<sphalerite> maybe bash -x $(which nixos-install) --chroot can enlighten us
<mfiano> I don't see anything odd
<sphalerite> same errors though?
<mfiano> yes
<sphalerite> do you end up with a shell in the installed system though?
<mfiano> seems to be
<sphalerite> oh good
<sphalerite> so for a start you could do nixos-rebuild boot --rollback
<sphalerite> to switch to the non-broken 17.09
<sphalerite> oh yeah, did you mount /boot as well?
<mfiano> hmm errored
<mfiano> yes
<mfiano> it's trying to install to sda even though i have in my config `boot.loader.grub.device = lib.mkForce "/dev/mmcblk0";`
<sphalerite> :|
<mfiano> I have /dev/sda set in an imported file, and I'm trying to override that for this machine's config
<mfiano> am i doing it wrong?
<sphalerite> oh, is it maybe devices in one and device in the other?
<hyper_ch> devices is a list IIRC
<mfiano> no, both device
<fpletz> MP2E: is your current system on nix1 or nix2?
<sphalerite> what about nixos-option boot.loader.grub.device ?
<mfiano> boot.nix has `boot.loader.grub.device = "/dev/sda";` and configuration.nix imports that and adds the above line
<mfiano> that doesn't return anything
<sphalerite> o.O
<sphalerite> what about nixos-option boot.loader.grub.devices
<mfiano> nope. not even `boot.loader` has anything set
<mfiano> /etc/nixos/configuration.nix is a symlink to my homedir, and i just opened it in vim, so the link isn't broken
<sphalerite> nix-instantiate --eval '<nixpkgs/nixos>' -A config.boot.loader.grub.device ?
<mfiano> errors, but enlightening
<mfiano> warning: Nix search path entry '/mnt//etc/nixos/configuration.nix' does not exist, ignoring
<sphalerite> aaaaaaah
<sphalerite> so if you fix your NIX_PATH nixos-option should work
ixxie has joined #nixos
<sphalerite> and probably the rollback thing too
<sphalerite> wait no the rollback probably not
<mfiano> how should i fix it?
ottidmes has joined #nixos
<sphalerite> take the existing value and remove the /mnt from the nixos-config entry
<mfiano> ok rollback seemed to work. rebooting
Izorkin has joined #nixos
<sphalerite> note to self: avoid this cloudbook thing like the plague
<mfiano> ok I'm booted in my system again. now how do i figure out what went wrong so it doesn't happen again?
<mfiano> sphalerite: Yes avoid it at all costs
<sphalerite> that's a good question
<hyper_ch> what did you do to cause that problem?
<sphalerite> I've only ever had boots break themselves like that when doing an unclean shutdown shortly after a rebuild
<mfiano> i switched to unstable, and it errored when writing the boot loader
<hyper_ch> how did you switch to unstable?
<ixxie> okay so I am having trouble with booting as well
<mfiano> sudo nix-channel --add https://nixos.org/channels/nixos-unstable && sudo nixos-rebuild switch --upgrade
<ixxie> my disk doesnt mount
<sphalerite> oh boy
<ixxie> but I have to go now so I guess I will be back later and ask for help >.>
<mfiano> actually made it default with `nixos` at the end of the first command
<ixxie> good luck mfiano
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<sphalerite> mfiano: if you want to switch to unstable, try building another unstable configuration *then* a stable one again (both times with nixos-rebuild boot, not switch)
<sphalerite> then try selecting the unstable one from the bootloader and see if it works
<mfiano> This wasn't an issue with switching to unstable. This was an issue of not having /boot mounted when I did the rebuild :/
<mfiano> so it wrote the MBR but not the data
<mfiano> (this machine doesn't support EFI...well it does but locked down with no CSM)
<sphalerite> aaah
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite> wait but if it has no CSM then how are you booting grub-pc?
<sphalerite> wtf… warning: substituter 'local' does not have a valid signature for path '/nix/store/zk4ghyk5zpklknw73nc6visxxf1hnz4b-file-5.32'
<mfiano> well it lets me switch to legacy, but using EFI just presents this fancy gui on boot with "No disk"
<sphalerite> ah so it does have the CSM but doesn't let you do anything with the actual EFI
<mfiano> Ok, so I rebuilt unstable with boot mounted this time...and i have a lot of text about wpa_supplicant erroring
<mfiano> the systemd service that is
<sphalerite> you used switch rather than boot?
<mfiano> yeah oops
<sphalerite> yeah I don't recommend switching across long version distances
<sphalerite> but what are the errors?
<mfiano> something happened. my /home is now empty...and it's not even another partiiton
<mfiano> I'll take a picture
<sphalerite> Oh you know what? It's quite simple. The laptop is possessed.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 4 new commits to master: https://git.io/vAHkM
<NixOS_GitHub> nixpkgs/master a2b8d8f Vladimír Čunát: nixos/pump.io: also comment-out the uid
<NixOS_GitHub> nixpkgs/master 21dcead Rodney Lorrimar: nixos/pump.io: remove...
<NixOS_GitHub> nixpkgs/master c95ef47 Rodney Lorrimar: Release notes: mention removal of pump.io module
NixOS_GitHub has left #nixos [#nixos]
<mfiano> it's probably more user error but a lot of that too :)
<mfiano> one sec
<mfiano> let me boot my phone
<sphalerite> does that involve manually mounting the partitions and invokign switch_root too? :D
<mfiano> no but apparently it involves letting it charge before opening the cmaera to have it shut down before i can take a picture
<sphalerite> hahaha
<sphalerite> oh, technology.
Itkovian has joined #nixos
<mfiano> anyway it says
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo closed pull request #34895: menu-cache: 1.0.2 -> 1.1.0 (master...upd.jgmenu) https://git.io/vAmn6
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #35454: nixos/pump.io: remove (master...remove-pump.io) https://git.io/vAVi3
NixOS_GitHub has left #nixos [#nixos]
<mfiano> wpa_supplicant.service failed to start. looks like 2 errors in journalctl about /etc/wpa_supplicant.conf being no such file
<mfiano> then i try to rebuild again and notice my /home has no fiels, thus no configuration.nix symlink target
<sphalerite> ah right, but if you haven't configured any networks via the nixos config nor written wpa_supplicant.conf manually then that's normal
<sphalerite> >_>
<mfiano> sphalerite: well i don't even try to pull in wpa_supplicant. afaik it's due to network-manager
<mfiano> which works fine
<sphalerite> oh
<sphalerite> idk
<sphalerite> the /home disappearing sounds like a bigger issue though :p
<mfiano> it's a problem with my config. i see the moutns are screwed up
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simukis has joined #nixos
Izorkin_ has joined #nixos
nick_l has joined #nixos
vcunat has joined #nixos
Izorkin has quit [Ping timeout: 252 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mfiano> but i screwed it up again
<mfiano> kernel panics again
<sphalerite> :(
<mfiano> i tried to follow the directorions again. setting NIX_PATH gets nixos-option to work, but not nixos-rebuild boot
<mfiano> Error in tempdir() using /run/user/0/nix-build.XXXXXX: Parent directory (/run/user/0) does not exist at <long store path<
<sphalerite> ah that's easy
<sphalerite> mkdir -p /run/user/0 && mount -t tmpfs tmpfs /run/user/0
periklis has quit [Ping timeout: 245 seconds]
<mfiano> getting farther
<mfiano> I'm totally confused though
<mfiano> the `iosevka-bin` package is undefined on my cloudbook, but not on my desktop...both running unstable
<sphalerite> the same unstable?
<mfiano> https://nixos.org/channels/nixos-unstable with `nixos-rebuild boot --upgrade`
<sphalerite> and it's not in an overlay or anything?
<mfiano> I don't know what that is so I'm going to say 'no'
<mfiano> I'll comment it out for now
<mfiano> Just trying to get this built and successfully booted
FRidh2 has joined #nixos
MP2E has quit [Remote host closed the connection]
<mfiano> interesting
<mfiano> i just built everything with no errors
<mfiano> still kernel panics
<sphalerite> :(
<mfiano> prob need to rollback the bootloader again
<mfiano> i don't understand
<mfiano> What would cause the init to not run?
<mfiano> I don't get any errors on a build again
<sphalerite> I really don't know anymore, sorry
oahong has quit [Ping timeout: 240 seconds]
ma27 has joined #nixos
ElGoreLoco has joined #nixos
ElGoreLoco is now known as jorge-jbs
oahong has joined #nixos
plakband has joined #nixos
<mkaito> I don't suppose someone has a derivation for xwiki?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] vcunat pushed 1 new commit to master: https://git.io/vAHL8
<NixOS_GitHub> nix/master e9a5ce9 Will Dietz: release.nix: don't try to use nix-2.0 branch, no longer exists...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] vcunat closed pull request #1943: release.nix: don't try to use nix-2.0 branch, no longer exists (master...fix/nixpkgs-branch) https://git.io/vA96k
NixOS_GitHub has left #nixos [#nixos]
<nick_l> How do I disable the source/dst check for an ENI on AWS with nixops?
shikiryogy has quit [Quit: Leaving]
<mfiano> sphalerite: If it panics with "Attempted to kill init!" does that mean that it got past the initrd and is failing to start userspace?
<sphalerite> mfiano: no, it just means that pid1 tried to exit
<sphalerite> that could be before or after switching the root
<mfiano> hmm
<sphalerite> you could try boot.debug1 to see if it's starting the init at all
<mfiano> what would i look for?
<sphalerite> a shell
<sphalerite> or a prompt to start a shell, rather
<sphalerite> if you don't get that, it's not finding the init at all
<mfiano> boot.debug1 prompted me but keyboard didn't work. boot.debug1devices makes my keyboard work
robstr has quit [Remote host closed the connection]
<mfiano> i'm in a shell. mmc device is there and everything so i assume it got past initrd
dbe has joined #nixos
<sphalerite> yeah so it's probably failing to start the stage 2 init
<mfiano> no idea :/
drdaeman has joined #nixos
<sphalerite> boot.debug1mounts should get you a shell where you can inspect it just before the root switch
vcunat has quit [Ping timeout: 248 seconds]
<mfiano> looks like a data loss
gemishhood has joined #nixos
<mfiano> / and /nix/store are both mounted at the correct location
<sphalerite> is it all btrfs's fault? :o
<mfiano> but /nix/store is empty
<sphalerite> I mean, I've heard bad things about it
<mfiano> but wait...i'm pretty sure the store was there in the livecd
<mfiano> yeah or else i wouldn't have been able to chroot
<sphalerite> maybe the driver is broken in unstable
<sphalerite> very strange
* mfiano scratches the idea to document this Cloudbook hardware on the NixOS wiki. No amount of documentation will save any user of this crap hardware
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #36284: numix-icon-theme-circle, numix-icon-theme-square: 17-12-25 -> 18-02-16, build GTK icon cache (master...upd.numix-icon-theme) https://git.io/vAHtf
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> try using zfs instead :D :P
<mfiano> yeah i should. i also want to learn luks for this device
<mfiano> but right now i just want to boot to configure some other stuff first
<sphalerite> do you need unstable for a partiuclar reason?
<MichaelRaskin> mfiano: if documentation conveys the PAIN properly, it can still save some people — at least from trying, or maybe even from buying this specific model.
<mfiano> yeah, because the rest of my imported config files use options that have changed since stable...and also some stuff i can't build on stable that i need
<mfiano> MichaelRaskin: Point taken. It really depends on how sickened I am with this hardware by the time I either get it working correctly, or throw it in the garbage
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tokudan opened pull request #36285: burp 2.1.28 -> 2.1.30 (master...burp2130) https://git.io/vAHtl
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> mfiano: maybe try different kernel versions on unstable
<sphalerite> so boot.kernelPackages = pkgs.linuxPackages_x_y
<mfiano> this is very strange
<mfiano> i have mmcblk0 partitions 1-4 but fdisk only sees 1 partition spanning the extent of the disk
gemishhood has quit [Ping timeout: 276 seconds]
<sphalerite> worst case maybe you can try a kernel from 17.09 on unstable
<sphalerite> oh!
<mfiano> this is in the boot1mounts
<sphalerite> that sounds like you have both a GPT and a normal (not protective) MBR
<sphalerite> oh actually no that could just be the protective MBR
<mfiano> it says GPT
thc202 has joined #nixos
drdaeman has quit []
<sphalerite> fdisk is saying GPT?
<mfiano> yeah
<sphalerite> yeah so it's probably a normal MBR along with a stray GPT that shouldn't be there anymore
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] WilliButz opened pull request #36286: gixy: 0.1.8 -> 0.1.9 (master...update-gixy) https://git.io/vAHt7
NixOS_GitHub has left #nixos [#nixos]
<mfiano> it's showing 1 partition that is the size of the disk, that has EFI GPT next to it...not the size of any of the partitions
<mfiano> but fdisk looks fine on the chrooted livecd
<sphalerite> try writing a file full of zeros on the filesystem in the first partition
<sphalerite> until it's full
<sphalerite> and then removing the file, then running fdisk on it again
<mfiano> If I do that I'll be back to 3 days ago trying to get this hardware running, and the installer takes ages in tmpfs on this thing
<ottidmes> My NixOS configuration is divided in multiple shared projects, so hostX includes configs from e.g. sharedA and sharedC, where sharedC refers to sharedB, what I run into with this approach though, is that in Nix everything is fully evaluated, you cannot access a value as it is at that point in the config, which makes sense, but it is problematic when I want to share library functions between those projects. If
<ottidmes> I add a libs attrset to my nixpkgs overlay and have each of those sharedX projects add their relevant functions, when using libs, it wants to evaluate to contains all overlayed libs
<ottidmes> Which causes infinite recursion
jorge-jbs is now known as ElGoreLoco
<sphalerite> mfiano: no, I don't mean overwriting any important data
<sphalerite> mfiano: I just mean zeroing the unused bits of the first partition
<sphalerite> so mount /dev/mmcblk0p1 /mnt ; dd if=/dev/zero of=/mnt/zeros ; rm /mnt/zeros ; umount /mnt
<sphalerite> then run fdisk on it again
<mfiano> Oh you mean my 2mb bios boot partition, not the 1st partition that fdisk in debug1mounts is wrongly reporting as the full disk
<ottidmes> I know of a solution, just being explicit of every intermediate libs, so dont extend libs itself in each overlay of those shared projects, but just be very explicit about extending and naming the intermediates, so I can safely use the intermediate libs values
<ottidmes> I was wondering, are there any better ways?
<sphalerite> mfiano: oh it's a bios boot partition? Yeah no do it with the first filesystem one
<mfiano> the first is a vfat partition
<ottidmes> sphalerite: mfiano: Doesn't gdisk have a option for that in advanced mode, to purge the GPT safely
ixxie has joined #nixos
<sphalerite> does it?
<ottidmes> sphalerite: I believe so, let me check
<sphalerite> that sounds useful :D
<ottidmes> sphalerite: expert mode with x, and then z: "Zap (destroy) the GPT data structures and exit."
<mfiano> "Found valid GPT with protective MBR; using GPT"
rosa has joined #nixos
<sphalerite> oh so the partitions are defined in the GPT?
<sphalerite> Yeah then don't do that xD
<mfiano> hmm?
<mfiano> says MBR is protective, and GPT is present
<ottidmes> mfiano: but you should read the manpage about it, it can potentially harm an existing mbr partition table
<sphalerite> and the partitions are defined in the GPT, right?
<mfiano> fdisk says it's GPT, yes
<sphalerite> so where are you getting the one big partition again?
<mfiano> I told you, that's only fdisk inside boot.debug1mounts
<mfiano> not in the livecd or chrooted system
<sphalerite> aaah right
<sphalerite> that's probably busybox's fdisk and doesn't support GPT
rosa has quit [Client Quit]
<sphalerite> so it's normal behaviour
<mfiano> so right now i'm chrooted into my root from the livecd and ran gdisk. it's telling me the GPT is present and MBR is protective. Not sure what that means or what to do :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy opened pull request #36287: lib/tests: Add check-eval.nix to run simple tests. (master...lib-tests-default) https://git.io/vAHqs
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> me neither, but we've determined that the one-big-partition thing was a red herring :p
<mfiano> ok well i just built stable and added it as a boot option
<mfiano> let me see if that still works heh
michas_ has joined #nixos
<mfiano> nope
<mfiano> Attempted to kill init!
<sphalerite> and you had mounted /boot when rebuilding right?
<mfiano> yes. to be honest at this point i have the needed legacy boot files on the correct boot partition AND on the root partition at /boot
<mfiano> just to be sure
Itkovian has joined #nixos
<mfiano> i think i see what's going on
<mfiano> one moment
<mfiano> Yeah I see the problem and it explains a lot
<sphalerite> well? The suspense is killing me? :p
<mfiano> My store is located on the btrfs root sub-volume. At some point my config changed and it's mounting a nix-store sub-volume on top of that, which explained why the store was empty.
<sphalerite> aaaaah
<mfiano> I'm transferring like 10gb over to the nix-store subvolume
<mfiano> Once again, I'm dumb
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #36288: scantailor-advanced: init at 1.0.12 (master...init-scantailor-advanced) https://git.io/vAHmW
NixOS_GitHub has left #nixos [#nixos]
abathur has quit [Ping timeout: 265 seconds]
<mfiano> sphalerite: Thanks for the help. That fixed it
<mfiano> booted into unstable
<sphalerit> AAaah wtf my OOM killer is going berserk
<avn_> folks, what is closure-info, and why it failed to build on some .attrs.sh? (today's master)
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ixxie has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vAHm1
<NixOS_GitHub> nixpkgs/master e4581f0 Joachim Fasting: tor: 0.3.2.9 -> 0.3.2.10...
NixOS_GitHub has left #nixos [#nixos]
ElGoreLoco has quit [Quit: ElGoreLoco]
Fare has joined #nixos
Itkovian has joined #nixos
vcunat has joined #nixos
monotux has quit [Remote host closed the connection]
roblabla has quit [Ping timeout: 256 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> rycee: so i looked a bit more into DBUS_SESSION_BUS_ADDRESS, and it's the wrong value :|
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lblasc opened pull request #36289: openresty: 1.9.3.1 -> 1.13.6.1 (master...openresty) https://git.io/vAHYW
NixOS_GitHub has left #nixos [#nixos]
typeggzero has joined #nixos
<manveru> in the user systemd it's `unix:path=/run/user/1000/bus`, but should be `unix:abstract=/tmp/dbus-gRMDpUXoXb,guid=70de431e958e1b32afd26cf65a9ac94a`
clefru has joined #nixos
<manveru> now i just need to figure out where this is set...
<typeggzero> where can I find a aarch64 image download? i'm currently looking in "https://hydra.nixos.org/jobset/nixos/unstable-aarch64"
Mateon1 has quit [Ping timeout: 248 seconds]
Mateon3 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36281: keepassxc: 2.2.4 -> 2.3.0 (master...keepassxc-2.3.0) https://git.io/vAHec
NixOS_GitHub has left #nixos [#nixos]
<typeggzero> nvm it was exactly there <3
<typeggzero> almost 1337 lets get productive
Mateon3 is now known as Mateon1
<sphalerite> manveru: probably by dbus-launch
<manveru> yeah, it seems to be started on-demand by another user daemon
<sphalerite> oh
<manveru> which means when i3 starts up, the value is the nixos default but then it's replaced and somehow new terminals see the correct value
<manveru> so i assume i3 somehow fetches it
<sphalerite> usually the X session is wrapped in dbus-launch
<sphalerite> or something like that
<manveru> lemme see how home-manager does that
<sphalerite> nixos/modules/services/x11/display-managers/default.nix
risci has joined #nixos
<risci> hi
freeman42x]NixOS has joined #nixos
<risci> how do i install updates to applications that are not yet in the nixpkgs repo
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc deleted revert-36278-revert-36119-maintainer-reformat at ddfff8c: https://git.io/vAHYh
NixOS_GitHub has left #nixos [#nixos]
<risci> the application in particular is 'keepassxc' and i need version 2.3.0
<risci> the part of building the updated application is done. But the system won't add it to the PATH
boxofrox has quit [Ping timeout: 256 seconds]
<ottidmes> risci: You could modify the package in a local nixpkgs checkout, or you could overwrite the package in with an overlay (nixpkgs.overlays = [ (self: super: { package = super.callPackage ./path/to/updated/copy/of/package/description { }; }) ])
<typeggzero> how can I use my wacom tablet, it need kernel 4.14. My problem is that release 17.09 has only 4.13 supported. And I can't use unstable because of the nvidia graphics card.
<ixxie> so, my device won't mount on any of my profiles (or at least the handful I checked)
<sphalerite> typeggzero: pretty sure you can get 4.14 on 17.09
<ixxie> it looks something like https://imgur.com/4OibsIt
<ixxie> (sorry for the bad quality)
<sphalerite> ixxie: has the UUID changed maybe?
<ottidmes> typeggzero: I am running 4.14 on 17.09, so you will just need to update your nixpkgs
<sphalerite> ixxie: try passing boot.debug1devices to the kernel and see if it's there in /dev/
<ixxie> sphalerite - how do I do that?
<ixxie> do I need to boot from usb or something?
<sphalerite> ixxie: if you're using grub or systemd-boot, press e on the boot menu item
<sphalerite> typeggzero: just set boot.kernelPackages = pkgs.linuxPackages_4_14 or 4_15
<risci> do i append that code to the package.nix or my config.nix?
<typeggzero> Is "nixos-rebuild switch --upgrade" doing all the nixpkg upgrades
<typeggzero> ?
<sphalerite> typeggzero: yes it should
<typeggzero> okay then I'm just stupid, I think I didn't restart for weeks now
<ixxie> sphalerite - when I press e I get to edit a long command right? there are a bunch of flags there
<sphalerite> typeggzero: the default version is 4.9 though so you do need to specify
<ixxie> where do I write the boot.debug1devices
<typeggzero> oh
<typeggzero> i c
rihards has joined #nixos
<sphalerite> ixxie: just stick it at the end
<ottidmes> risci: Where to put the nixpkgs.overlays? You probably better off reading the chapter about it in the manual: https://nixos.org/nixpkgs/manual/#chap-overlays and https://blog.flyingcircus.io/2017/11/07/nixos-the-dos-and-donts-of-nixpkgs-overlays/
<manveru> sphalerite: apparently there are two dbus running atm
<typeggzero>
<manveru> one for the system, on for user :P
<risci> thanks, what are overlays can you give me a high level view?
<typeggzero> boot.kernelPackages = pkgs.linuxPackages_latest;
<sphalerite> risci: the first link should do that
<ixxie> sphalerite: now it just tells me 'an error occured at stage 1 of the boot process, which must mount the root filesystem on /mnt-root' but this time it gives me the option to launch an interactive shell
<ottidmes> risci: But the example I gave with nixpkgs.overlays would have gone in you configuration.nix (i.e. your Nixos configuration), but as you can read in the manual, there are multiple locations where you are able to extend nixpkgs, just know that if you extend it in your NixOS configuration, your extensions will only be available within your NixOS configuration, so if you expect to install it with nix-env, you
<ottidmes> will not get the update
<typeggzero> if I upgrade with that line, do I get the 4.15?
<sphalerite> ixxie: yeah. Check /dev/ to see if the device is in fact there
<sphalerite> typeggzero: yes
<typeggzero> perfect ty
<ottidmes> typeggzero: You might still want to use 4.14, since it is an LTS release, you would do that with: boot.kernelPackages = pkgs.linuxPackages_4_14;
<risci> i do want to be able to receive future updates from official repo, it's just this time i need to skip ahead
<risci> thanks, the links are useful
<mfiano> anyone familiar with wpa supplicant? trying to run wpa_cli and it says it cant connect to wpa supplicant
<typeggzero> ottidmes: ty, I will adjust my config to 4.14
<mfiano> i just want to get connected
<sphalerite> mfiano: wpa_passphrase SSID passphrase > /etc/wpa_supplicant.conf && systemctl restart wpa_supplicant
<ixxie> sphalerite: if I recall, it should have been at /dev/nvm0e1 or something like that
<ixxie> nvm0n1*
<ixxie> its not
<sphalerite> ixxie: hm ok. Do older generations work?
<ixxie> nope
<ixxie> same error
<ixxie> but then again I recently switched channels
<sphalerite> is the device set to AHCI mode in the firmware?
<ixxie> not sure
<ixxie> I can check
<ixxie> hold on
<sphalerite> do you have any older generations you can still boot into?
abcrawf has quit [Remote host closed the connection]
<ixxie> not 100% sure at all
<ixxie> I only checked a handful
<ixxie> but it doesn't appear to be the case
<mfiano> sphalerite: that worked but gave me a 169 instead of 192. no net access
<ixxie> sphalerite for some odd reason it is set to RAID
boxofrox has joined #nixos
<ixxie> which makes no sense (?) since I have one drive
abcrawf has joined #nixos
<sphalerit> ixxie: yeah that's the default setting on a number of nvme devices
<sphalerit> ixxie: setting it to AHCI mode should hopefully make it appear again
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #36290: mutt: 1.9.3 -> 1.9.4 (master...update-mutt) https://git.io/vAHOg
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> that bevel looks like a dell xps
<gchristensen> bezel*
<sphalerit> I have no idea why it would have worked with RAID mode previously
pkill9 has joined #nixos
<ixxie> gchristensen: that is indeed an XPS
<ixxie> maybe it didn't but it switched somehowq
<sphalerit> mfiano: is dhcpcd running?
<ixxie> could be the cat did it
<ixxie> BOOM
<ixxie> works
<ixxie> thanks for the save sphalerite :)
<mfiano> yes
<sphalerit> mfiano: maybe restart it... I'm not sure
<mfiano> everytime i restart wpa supplicant theres like a 50% chance i get 169 or 192 actually
<mfiano> also how do i interactively connect to other ap's? i thought that was wpa_cli but it cant connect to supplicant
<sphalerit> The 169 is a link-local address which the DHCP client assigns automatically if it doesn't get an address offered
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] svenkeidel opened pull request #36291: New Package: VCVRack (master...vcvrack) https://git.io/vAHO6
NixOS_GitHub has left #nixos [#nixos]
<sphalerit> You need to enable networking.wireless.userControlled or something to make wpa_CLI work
<sphalerit> Ugh autocorrect
<sphalerite> there my laptop is back :D
<mfiano> sphalerite: actually i have that enabled
<sphalerite> try running wpa_cli as root
gemishhood has joined #nixos
<mfiano> nope
<sphalerite> oh pfft that only takes effect if the networks are configured declaratively
<mfiano> Could not connect to wpa_supplicant: (nil) - re-trying
<sphalerite> put ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel in your wpa_supplicant.conf and restart it
<sphalerite> then it hsould work
<ottidmes> What is again the attr I need to get to access the path to /nix/store/<sha256>-nixos-sytem-<host-name>-<version>?
<sphalerite> ottidmes: <nixpkgs/nixos> attr config.system.build.toplevel
<mfiano> sphalerite: 1 line like that?
<sphalerite> no the file is <nixpkgs/nixos>
<sphalerite> the attr is config.system.build.toplevel
<ottidmes> sphalerite: Awesome, thanks! Thats the one
<sphalerite> mfiano: yes
coot has joined #nixos
plakband has quit [Remote host closed the connection]
<mfiano> thanks. now i just have to figure out how to declaratively connect to my home ap with a static ip
gemishhood has quit [Ping timeout: 248 seconds]
<sphalerite> specific network config per AP? Not sure that's possible with plain wpa_supplicant
<mfiano> I want my laptop to connect with a static IP when at home. all my other devices have its host mapped to an IP for ssh
gemishhood has joined #nixos
<sphalerite> yeah I don't think that's possible with declarative config and plain wpa_supplicant, or at least you'd need to write quite a lot of stuff
<mfiano> Hmm
<sphalerite> the quickest solution is probably using network-manager
<mfiano> Ok forget declaratively then.
<mfiano> I'll just figure out the wpa_supplicant incantation to use static instead of dhcp
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda pushed 2 new commits to master: https://git.io/vAH3O
<NixOS_GitHub> nixpkgs/master a381e98 Robert Schütz: Merge pull request #36286 from WilliButz/update-gixy...
<NixOS_GitHub> nixpkgs/master 51ec5a3 WilliButz: gixy: 0.1.8 -> 0.1.9
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> well that's the thing, DHCP isn't wpa_supplicant's responsibility
<mfiano> Right
<sphalerite> you'd need to make dhcpcd running conditional on the network that you're on or something, and I don't know how you'd fetch that information
coot_ has joined #nixos
<mfiano> why can't this be like netctl :/
<sphalerite> or maybe you can make dhcpcd set a static IP address until it gets DHCP… or something… idk
<mfiano> it let me connect to wifi with static or dhcp
coot has quit [Ping timeout: 256 seconds]
<sphalerite> you can do that with network-manager
<mfiano> I didn't see a way.
gemishhood has quit [Ping timeout: 268 seconds]
<sphalerite> enable network-manager, run nmtui, and it will let you edit each connection's settings
niklob has joined #nixos
<mfiano> I assume I can still use wpa_supplicant with it so that I can roam to different networks automatically?
<sphalerite> network-manager does the roaming for you
<sphalerite> and you cna prioritise networks with it too I *think*
<mfiano> Ok, a little heavy weight but if nothing like netctl exists for NixOS I'm fine with it if it works
<sphalerite> if you use network-manager you shouldn't touch wpa_supplicant yourself
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xeji opened pull request #36292: [WIP] xen: add v 4.10 (master...xen-4-10) https://git.io/vAH34
NixOS_GitHub has left #nixos [#nixos]
<mfiano> Ok
robstr has joined #nixos
Supersonic has quit [Quit: Bye]
Supersonic has joined #nixos
<sphalerite> fetchzip is the canonical way in nixpkgs of fetching a possibly non-deterministic tarball with deterministic contents, right?
<mfiano> sphalerite: Well network-manager works, but when I disconnect from my home network, it's not connecting to my phone's hotspot. i have to specifically tell it to
<MichaelRaskin> I would look at fetchTarball first
niklob has quit [Ping timeout: 240 seconds]
<lejonet> Hmm, is there a generic "create a file at /path/to/file and give it this content: ''content'';" for nix, similar as to environment.etc?
<sphalerite> mfiano: if you manually disconnect?
<sphalerite> MichaelRaskin: isn't that the built-in one that only supports passing a hash in 2.0?
<sphalerite> lejonet: no
cross has joined #nixos
coot_ has quit [Ping timeout: 256 seconds]
<MichaelRaskin> Hm
<lejonet> sphalerite: That kindof sucks, would be neat to put stuff that isn't in /etc with the config too
robstr has quit [Remote host closed the connection]
<MichaelRaskin> We do have builtins shadowed by nixpkgs-defined fetchers, but apparently fetchTarball is builtin-only, my bad
robstr has joined #nixos
<MichaelRaskin> Hm, fetchzip isn't zip-specific, it just happens to enforce zip support.
<sphalerite> lejonet: the thing is that stuff that relies on paths in arbitrary paths in the filesystem isn't really great. If it's config, it should be in /etc and if it's state it's not nixos's job to manage it
<mfiano> sphalerite: Ah yeah, if i manually deactivate a connection in nmtui it doesn't hop over to the other one, but if a hotspot goes down, then it does
<lejonet> sphalerite: tho I guess that is due to the fact that nix wants stuff in /nix/store, and putting stuff that aren't directly nix-related there would odd
<mfiano> heh...i suppose that is usable, though unfortunate
<sphalerite> mfiano: yep
<lejonet> sphalerite: Mhm
<mfiano> nothing like what i was spoiled with on Arch though
<ottidmes> lejonet: This is an example of a module that does what you want: https://github.com/sjau/nix-expressions/blob/master/customIsoFiles/files.nix
<ottidmes> lejonet: And then there is of course home-manager, which obviously limits itself to the home directory, but that might be enough for your use case
<lejonet> ottidmes: Yeah, seeing as there is a builtin toFiles and such, creating a module for it wouldn't be that hard
<lejonet> ottidmes: Nah, home-manager wouldn't work in this case, but it was merely a wondering, because I can also add stuff directly in the config instead of relying on a file and I'll just do that instead
<lejonet> (I'm configuring logstash and was thinking that either I use the list type of translations or use nix to put a yaml file with the translation somewhere, so just going to do the former)
robstr has quit [Ping timeout: 256 seconds]
<sphalerite> lejonet: that sounds like static stuff which can live in the nix store
Mateon1 has quit [Quit: Mateon1]
<lejonet> sphalerite: in theory yes, and I guess I could put the file in /etc, dunno why that didn't cross my mind :P
<ottidmes> lejonet: I have plenty calls to files outside of the nix store in my configuration, e.g. private keys and such, which you generally do not want in your store, but I have to rethink that approach a bit, because I now have too much files outside the nix store, causing e.g. my custom installer to complain that it cannot find certain files (the absolute paths that is pointed to, doesnt exist on the installer)
<sphalerite> lejonet: so you'd just generate logstash's config using nix, and stick translations: ${pkgs.writeText "translations.yaml" ''contents go here''} in it or something
Mateon1 has joined #nixos
<lejonet> sphalerite: the conf supports defining a dictionary in the logstash conf directly too, so I'll just do that so :)
<lejonet> ottidmes: yeah, secret management is a tad harder, but if you use nixops, it has a system for that (I'm using nixops)
<ottidmes> lejonet: sphalerite: you can also just point to translations.yaml in the dir local to your config, ${./translations.yaml} will generate a copy in the nix store
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36265: riot-web: make package configurable (master...configurable-riot) https://git.io/vA91j
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> oh yeah that too
<michas_> Hi, What exactly is the difference between `nix-env -i` and `nix-env -iA`? How do I find out the valid arguments in both cases? (is there any good documentation about that topic?)
<sphalerite> !-A
<{^_^}> 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.
<sphalerite> michas_: ^ summarises it
Supersonic has quit [Quit: Bye]
<risci> hi again, i tried to override the default application but it throws an error about anonymous function https://hastebin.com/joxuxoqoso.swift
ixxie_ has joined #nixos
coot_ has joined #nixos
<ixxie_> yo! So, where should I put a web application's running environment in a NixOS server? /var/www or /srv?
<ixxie_> or maybe even /var/srv
<sphalerite> up to you really
<sphalerite> we don't follow FHS anyway :p
<ixxie_> sweet
<gchristensen> tbh most of my sites' content doesn't change and so they live in the nix store
<sphalerite> not to say that FHS is a bad idea. So maybe /var for statey stuff
<sphalerite> yeah and the nix store for static stuff!
<risci> i think i am not supposed to input whole package.nix configuration in an overlay.
<michas_> sphalerite: Thanks. But I think I am still missing some basic background to really understand this. What is the difference between a package and an attribute? Where in nixpkgs do I find those things?
<sphalerite> michas_: the nix pills might be a good read if you want an in-depth introduction to it
<sphalerite> !pills
Fare has quit [Ping timeout: 256 seconds]
<nick_l> Are aws instance profiles supposed to work on nixops deployed machines? Do I need to install something to make them work? I can see that the instance has an instance role associated with it, but it doesn't seem to have any impact.
<tokudan[m]> could someone have a look at https://github.com/NixOS/nixpkgs/pull/35508 and merge it ? it's a fix for an annoying issue in 17.09
<clefru> michas_: I usually run "nix-env -qaP > /tmp/allpkgs". this gives me all attributes (-iA) and all package names (-i) to search through
niklob has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sjau opened pull request #36293: sqlite: Raising max variable number and max expr depth values (master...master) https://git.io/vAHGi
NixOS_GitHub has left #nixos [#nixos]
aarvar has joined #nixos
<ryantm> gchristensen: Sorry, my last link didn't really help identify much. The OfBorg problem is from this PR: https://github.com/NixOS/nixpkgs/pull/36168
<gchristensen> ideally we'd have a nixpkgs impl of splitVersion for when builtins doesn't have it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #36294: primecoin: remove as it seems no longer maintained (master...primecoins) https://git.io/vAHG9
NixOS_GitHub has left #nixos [#nixos]
<ryantm> gchristensen: Ok. That's what Mic92 said I should do too.
<gchristensen> cool
azdle has joined #nixos
<gchristensen> I think it is helpful to have this check on the old nix actually... though I'm not sure how to maintain that long term
<Mic92> there is nix1 still in the repo
<gchristensen> by the way, I'm likely to be taking down ofborg for a couple hours today to migrate it to a new home
<gchristensen> it could be done in zero downtime, but that would require far more time than I want to devote to that
<Mic92> will the queue be still filled?
<gchristensen> yeah, it'll still queue the work and it'll pick the jobs up again at the end
<hyper_ch> the end is neigh :)
risci has left #nixos [#nixos]
<ryantm> Mic92: I'm not familiar with using the ? operator. Do I need to do `if builtins ? splitVersion then builtins.splitVersion else lib.strings.splitString ".";` or is there a more concise way of using it?
<sphalerite> ryantm: `builtins.splitVersion or lib,strings.splitString "."`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #36295: feh: 2.24 -> 2.25 (master...feh) https://git.io/vAHZk
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> so, I wonder when my super important PR gets merged :)
prismate has joined #nixos
<ryantm> sphalerite: thanks!
prismate has left #nixos ["WeeChat 0.3.8"]
<Mic92> sphalerite: (builtins . splitVersion or (bar: ["1" "2"])) "1.2"
<Mic92> ah, you got your answer already
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #36296: nixos/gnome-keyring: add option to enable the daemon as systemd service (master...run-gnome-keyring-independently) https://git.io/vAHZz
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> why are so many of my store paths corrupted D:
<lejonet> sphalerite: Gone over to the dark side, they has
<hyper_ch> sphalerite: you did it wrong
<hyper_ch> do you use zfs?
abathur has joined #nixos
<sphalerite> hyper_ch: usually, yes. On my chromebook, where all the corrupted paths are, no.
<hyper_ch> "this wouldn't have happened with zfs" :)
<sphalerite> I also wouldn't have any RAM left with zfs :)
coot_ has quit [Quit: coot_]
<hyper_ch> just put in 2x 16GB sticks and you're all set
<sphalerite> the RAM is soldered on
abathur has quit [Client Quit]
<hyper_ch> unsolder it :)
<sphalerite> I might be able to fit two RAM sticks in the case, but they're not going to do much there.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36290: mutt: 1.9.3 -> 1.9.4 (master...update-mutt) https://git.io/vAHOg
NixOS_GitHub has left #nixos [#nixos]
abathur has joined #nixos
<hyper_ch> oh wait, you just need one of those 30TB samsungs ssds.... that comes with 40GB ram... so plenty :)
Rusty1_ has joined #nixos
ma27 has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36271: flameshot: 0.5.0 -> 0.5.1 (master...scode/flameshot-0.5.1) https://git.io/vA9HV
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36284: numix-icon-theme-circle,numix-icon-theme-square: 17-12-25 -> 18-02-16, build GTK icon cache (master...upd.numix-icon-theme) https://git.io/vAHtf
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> I am always confused with all the different locations where to put things like env variables or other init scripts. I just ran into the problem that an env var was not set when I ran a script as root, so is my understanding correct that without `sudo -E` I will have add the variables I want to be always available via environment.sessionVariables instead of environment.variables?
typeggze1o has joined #nixos
<ottidmes> Eh, "when I ran a script as root" I meant "when I ran a script with sudo"
blankhart has joined #nixos
typeggzero has quit [Ping timeout: 268 seconds]
<michas_> https://coreos.com/rkt/docs/latest/distributions.html#nixos There they try to use `nix-env -iA rkt` for instation. Does this really work? (Looks like I should add "nixos." or leave out the -A.)
<sphalerite> michas_: -f '<nixpkgs>' -iA rkt for maximum portability, but yes nix-env -iA nixos.rkt should work too
<ottidmes> michas_: Do yourself a favor and just add environment.shellAliases.nix-env = "nix-env --file '\\''<nixpkgs>'\\''"; in your configuration.nix
<ij> How do I make `nix repl' evaluate my result, e.g. [ [1] [2] ], fully?
<sphalerite> ij: --strict
<nick_l> michas_: their command is wrong inded
<sphalerite> oh wait in the repl
<ij> nix repl rocks btw
<sphalerite> ij: :p it
<nick_l> michas_: it's great when people put untested commands in documentation.
<ottidmes> ij: One way would be to do: builtins.toXML or toJSON
<ij> nice
<michas_> nick_l: maybe they first set the alias ottidmes suggested.
<nick_l> michas_: that would still be a mistake.
<ij> sphalerite, Where did you find that doe?
<sphalerite> ij: :h
<sphalerite> err :?
<sphalerite> and I found :? because it prints "Type :? for help." when you start it
Guest1991 has quit [Quit: WeeChat 2.0.1]
<ij> I should've hesitatated and thought before reaching the channel. I could've found it.
<symphorien> michas_: I don't know anything about rkt but I seems like something requiring a service, so a module : https://nixos.org/nixos/options.html#rkt so they probably should recommend to enable the service instead
<sphalerite> ij: :p
<ij> sphalerite, yeah, :p works
hamishmack has quit [Quit: hamishmack]
<sphalerite> oh dear, that was supposed to be a smiley
<ij> pun intended
<sphalerite> xD
aminb has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master f62131c Tim Steinbach: linux: 4.9.85 -> 4.9.86
<NixOS_GitHub> nixpkgs/master 3bc423a Tim Steinbach: linux: 4.4.119 -> 4.4.120
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vAHcL
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 4eb7945 Tim Steinbach: linux: 4.14.23 -> 4.14.24
hamishmack has joined #nixos
Drakonis[m] has quit [Changing host]
Drakonis[m] has joined #nixos
Drakonis[m] has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6fa864ed7fb (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 2c3a9da Tim Steinbach: linux: 4.4.119 -> 4.4.120...
<NixOS_GitHub> nixpkgs/release-17.09 9885b4c Tim Steinbach: linux: 4.14.23 -> 4.14.24...
<NixOS_GitHub> nixpkgs/release-17.09 e797cf9 Tim Steinbach: linux: 4.9.85 -> 4.9.86...
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 3 new commits to release-17.09: https://git.io/vAHcB
NixOS_GitHub has left #nixos [#nixos]
ixxie_ has quit [Quit: Lost terminal]
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bachp opened pull request #36298: gitlab-runner: 10.4.0 -> 10.5.0 (master...gitlab-runner-10.5.0) https://git.io/vAHCU
NixOS_GitHub has left #nixos [#nixos]
alex`` has quit [Quit: WeeChat 2.0.1]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vAHCR
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master d070199 Tim Steinbach: kotlin: 1.2.21 -> 1.2.30
alex`` has joined #nixos
iyzsong has quit [Ping timeout: 256 seconds]
Itkovian has joined #nixos
<michas_> symphorien: yes, enabling the service seems to be the correct way. I proposed a pull request: https://github.com/rkt/rkt/pull/3907/files
<symphorien> michas_: I think on another OS that would rather be nix-env -iA nixpkgs.rkt
nuncanada has joined #nixos
nick_l has quit [Ping timeout: 260 seconds]
niklob has quit [Ping timeout: 260 seconds]
winem_ has joined #nixos
mbrgm has quit [Quit: ZNC 1.6.5 - http://znc.in]
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/1fb765d0250 (from 20 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<genesis> i move my binary from /bin to a /usr/share/mame/ and now it failed to find libSDL2-2.0.so.0 , can i come from a behaviour of nix-env that doesn't do magic when not in bin ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vAHWT
<NixOS_GitHub> nixpkgs/master f5c8fd0 Pascal Bach: gitlab-runner: 10.4.0 -> 10.5.0
<NixOS_GitHub> nixpkgs/master f51d9e3 Franz Pletz: Merge pull request #36298 from bachp/gitlab-runner-10.5.0...
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> genesis: neither of those sound like nix store paths.
<michas_> symphorien: Thanks, good point. fixed.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 440c24e Franz Pletz: prometheus-alertmanager: 0.13.0 -> 0.14.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vAHWI
<genesis> sphalerite : only sdl2 on 75 shared library is not found, btw i can show you the derivation i try
<sphalerite> genesis: oh, it wouldn't be nix-env, but stdenv does patch executables in $out/bin and not in $out/share to have the RPATH for finding their library dependencies
<genesis> https://github.com/NixOS/nixpkgs/pull/36206 i moved mame to $out/usr/share/mame, and since, it doesn't find SDL2 shared object.
<genesis> yes, but it's ambigous when it shrink it "shrinking /nix/store/csji3s9dncmkljdk7iigba5288ync9sv-mame-0.195/usr/share/mame/amstrad64"
acertain has joined #nixos
<sphalerite> try putting it in $out/libexec instead
<sphalerite> also usually we don't have $out/usr/share, but $out/share
<genesis> yes, i donno well about how is organise filesystem on nixos, i need the binary in the directory since it searsh in it, that's why arch use kind of wrapper too
mbrgm has joined #nixos
<sphalerite> I was under the impression that it took a bunch of options telling it where to look for stuff?
<sphalerite> As opposed to searching wherever it lives
<genesis> i'm not very satisfy, in fact, this wrapper try to ignore mame.ini complexity forcing path at cmdline
<genesis> on gentoo they generate a config and fix it, but in both case, it will not work on a nix system
jqtrde has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ThatOtherGuy has quit [Ping timeout: 248 seconds]
<bgamari-> has nix ping-store smply not made it into the nix available in nixpkgs yet?
alex`` has quit [Quit: WeeChat 2.0.1]
<mkaito> I'm writing a package for a java servlet, that should just download the .war file and put it in the nix store, so I can later reference it in services.tomcat.webapps. Do I use mkDerivation? If so, how do I tell it to just do nothing and just download?
<mfiano> Is there an easy way to declaratively define github's public keys for known_hosts?
Fare has joined #nixos
<symphorien> mkaito: fetchurl is probably enough
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] svenkeidel closed pull request #36291: vcvrack: init at 0.5.1 (master...vcvrack) https://git.io/vAHO6
NixOS_GitHub has left #nixos [#nixos]
ThatOtherGuy has joined #nixos
alex`` has joined #nixos
<mkaito> symphorien: that worked, thanks.
Supersonic has joined #nixos
ElGoreLoco has joined #nixos
yann-kaelig has joined #nixos
<blankhart> is the difference in terminology between "overlay" and "override" that the overlay is the function, and the override is the attribute?
<ottidmes> mfiano: I was wondering something similar, haven't tried it yet, but I guess we should be able to get it to work with the GlobalKnownHostsFile ssh option in programs.ssh.extraConfig and assign it: /etc/ssh/ssh_known_hosts /etc/ssh/github_known_hosts, for example
<blankhart> or is it that overlay is used to refer to modification of package sets, and override is used to refer to modification of individual packages
<ottidmes> mfiano: Scratch that, there already is an option for it! https://nixos.org/nixos/options.html#programs.ssh.knownhosts
<symphorien> blankhart: I would rather say the second
yann-kaelig has left #nixos [#nixos]
<blankhart> thanks
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 9dc62dd obadz: Merge pull request #36272 from obadz/nixos-lustrate-doc...
<NixOS_GitHub> nixpkgs/master 7af0aa8 obadz: nixos doc: document the installation process from other distros as well as NIXOS_LUSTRATE
<NixOS_GitHub> [nixpkgs] obadz pushed 3 new commits to master: https://git.io/vAH48
<NixOS_GitHub> nixpkgs/master 80ea345 obadz: nixos-enter: specify absolute path to bash...
mizu_no_oto has joined #nixos
kelleyNif has joined #nixos
nuncanada has quit [Read error: Connection reset by peer]
robstr has joined #nixos
mizu_no_oto has quit [Client Quit]
fendor has joined #nixos
Itkovian has joined #nixos
Itkovian has quit [Client Quit]
<blankhart> i suppose an "overlay" can also add new packages without overriding anything
<symphorien> yes
<clever> it can even be used to just store generic strings or any other nix value inside the pkgs set
<ottidmes> I use it to store my libs for example
<clever> ive also seen overlays/overrides used to set pkgs.unstable to contain the entire nixpkgs from the unstable channel
<clever> so pkgs.hello is the stable version and pkgs.unstable.hello is unstable
<ottidmes> yep, got that too, if you do, make sure to pass a config explicitly if you do not have NIXPKGS_CONFIG set, if you e.g. want to allow unfree packages
<clever> pkgs.config is the config from the parent of the overlay
<clever> so you could do self: super: { unstable = import <unstable> { config = self.config; }; }
<clever> then it will always be whatever config the nixpkgs it came from is using
<ottidmes> clever: Which could be a feature, or asking about problems, if you still use packageOverrides, you probably do not want to do that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vAH4x
<NixOS_GitHub> nixpkgs/master c255b10 Linus Heckemann: nixos/opengl: unhide and document enable option
<NixOS_GitHub> nixpkgs/master 498374a Vladimír Čunát: Merge #35554: nixos/opengl: unhide and document
NixOS_GitHub has left #nixos [#nixos]
<clever> yeah, both sets of packages will have the same packageOverrides
<ottidmes> clever: But to have a consistent nixpkgs config throughout your system, you would still need NIXPKGS_CONFIG right? If you want nix-* to use the same
<clever> ottidmes: you can just do nixpkgs.config = /home/clever/.config/nixpkgs/config.nix; in configuration.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #35554: nixos/opengl: unhide and document enable option (master...opengl-unhide) https://git.io/vArUG
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> clever: But then what about root, I guess you could use symlinks to work around that
<ottidmes> I will just stick with NIXPKGS_CONFIG for now, needs less work
<clever> i have ran into nasty problems before when the file behind $NIXPKGS_CONFIG was made, and i hadnt seen the option before
<clever> nixos just entirely ignored config.nix with no obvious cause
<blankhart> if anyone else comes in here with a question like the one i asked last night, i think the answer is https://github.com/basvandijk/nix-workshop - it even uses miso, but doesn't seem to be widely linked yet
civodul has joined #nixos
<lassulus> is there a way, for nixos-rebuild switch, to abort if stuff gets build locally?
<vcunat> ctrl+c :-)
asuryawanshi has joined #nixos
<vcunat> Currently nix can't really differentiate simple builds (e.g. just creating config files) from "real" builds.
asuryawanshi has quit [Remote host closed the connection]
<sphalerite> lassulus: you can prevent stuff from being built locally at all using --max-jobs 0
<mfiano> Would someone mind trying to reproduce a bug for me?
<MichaelRaskin> Really depends on the kind of the bug
i-am-the-slime has joined #nixos
<i-am-the-slime> Is anybody here running xmonad?
<Ke> yes
<Ke> though not on nixos
<i-am-the-slime> it does not really like me switching my screen
i-am-the-slime has quit [Remote host closed the connection]
<lassulus> sphalerite: thans, that was what I'm looking for
<lassulus> thanks*
<lassulus> is the binary cache for aarch64 just for the unstable channel?
i-am-the-slime has joined #nixos
<i-am-the-slime> Sorry, I had to reboot to see anything
<vcunat> Yes, we build aarch64 only from master now.
<vcunat> But 18.03 will be included even as stable.
<vcunat> i-am-the-slime: I sometimes get windows positioned off-screen during startup. (NixOS + Xfce + XMonad)
<vcunat> it seems to be triggered by those windows being created before XMonad starts
<i-am-the-slime> Startups is quite okay for me.
<i-am-the-slime> But switching screens almost never works. So I have to do a hard reboot.
<i-am-the-slime> I think in Windows 95 I also had to reboot when I wanted to change the screen resolution.
<vcunat> :-)
<i-am-the-slime> But at least it prompted me :D
<vcunat> I'd expect this to be more about drivers/X itself.
<i-am-the-slime> Yes, I'm afraid of that.
<i-am-the-slime> It's probably this Kaby Lake onboard intel card
<vcunat> I've been using projector with XMonad+Nvidia for years.
<i-am-the-slime> is projector an application?
<MichaelRaskin> I would think it is an appliance
<MichaelRaskin> Beamer
<vcunat> I meant the appliance.
<i-am-the-slime> Okay
<i-am-the-slime> I was just hoping that there might have been this one piece of software I was missing.
<vcunat> I'm not sure about proper name.
<i-am-the-slime> I would have expected an "a projector" otherwise.
<i-am-the-slime> But the "Beamer" cleared it up for my German brain :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 7b056a3 Pascal Wittmann: llpp: 26b -> 2018-03-02
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vAHRV
NixOS_GitHub has left #nixos [#nixos]
johnw has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to release-17.09: https://git.io/vAHR6
<NixOS_GitHub> nixpkgs/release-17.09 280bbeb Pascal Wittmann: llpp: 25-git-2017-01-08 -> 26b
<NixOS_GitHub> nixpkgs/release-17.09 8e074b0 Pascal Wittmann: llpp: 26b -> 2018-03-02
NixOS_GitHub has left #nixos [#nixos]
<i-am-the-slime> maybe it's also my xmonad config
johnw has quit [Client Quit]
<vcunat> Is that unstable nixos?
<i-am-the-slime> I think so
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHR5
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master fffd3c4 Vladyslav M: feh: 2.24 -> 2.25
Itkovian has joined #nixos
<vcunat> I read about some regression on Intel somewhere during mesa-17.3.x, fixed in .6 (staged, .3 in unstable ATM)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHRb
<NixOS_GitHub> nixpkgs/master 9e1c2ba Vladyslav M: sxiv: 1.3.2 -> 24
NixOS_GitHub has left #nixos [#nixos]
<i-am-the-slime> I don't really know what these numbers mean
<i-am-the-slime> Can I check for the relevant versions and tell you?
<elvishjerricco> Hm -i doesn't seem to work in `nix run`. It fails with `unable to exec 'bash'`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 431d05c Daniel Frank: burp 2.1.28 -> 2.1.30
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHRx
<vcunat> if you're on recent unstable, it will be 17.3.3
<vcunat> but I don't know how that Intel regression was supposed to manifest
<earldouglas> Is there a way to get the working directory in a derivation? I need to override a make flag with the temp dir of the build.
<i-am-the-slime> If I use glx with compton I get some slowness from time to time
<i-am-the-slime> so I went back to the derault which is xrender I think
fez has joined #nixos
<mfiano> How would I concatenate a new line into services.xserver.displayManager.sessionCommands that was previously defined in another file that I import?
<coconnor> earldouglas: are you looking for "NIX_BUILD_TOP contains the path of the temporary directory for this build."
<i-am-the-slime> vcunat: I think under KDE I can run two monitors quite fine.
<vcunat> $TMP and similar are also defined IIRC
<i-am-the-slime> So I was suspecting it to be an xmonad (maybe compton) thing.
<coconnor> oof. Anyone familiar with a workaround for https://github.com/NixOS/nixpkgs/issues/36268 ?
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/a66ce38acea (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 11 new commits to master: https://git.io/vAH0I
<NixOS_GitHub> nixpkgs/master 6c9de3f Parnell Springmeyer: hocker: Don't check package and wrap the binaries with PATH to nix
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 2586568 Parnell Springmeyer: docker: init fetchdocker nix code for docker2nix...
<NixOS_GitHub> nixpkgs/master c1eb962 Parnell Springmeyer: fetchdocker: Integration test exercising hocker and fetchdocker...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #36288: scantailor-advanced: init at 1.0.12 (master...init-scantailor-advanced) https://git.io/vAHmW
NixOS_GitHub has left #nixos [#nixos]
<vcunat> coconnor: I posted a patch on that thread ;-)
<earldouglas> coconnor: That worked, thanks. I used it as "FOO=$(NIX_BUILD_TOP)" in makeFlags.
kelleyNif has quit [Quit: Leaving.]
<i-am-the-slime> Do I need to install xinerama?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to release-17.09: https://git.io/vAH0z
<NixOS_GitHub> nixpkgs/release-17.09 c143dea Bjørn Forsman: nixos/jenkins: ensure postStart follows redirects...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 715ca57 Elis Hirwing: php: add myself as maintainer
<NixOS_GitHub> [nixpkgs] obadz pushed 4 new commits to master: https://git.io/vAH02
<NixOS_GitHub> nixpkgs/master c9fdf84 Elis Hirwing: php71: 7.1.14 -> 7.1.15...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master b503b2d Elis Hirwing: php56: 5.6.33 -> 5.6.34...
kelleyNif has joined #nixos
32NABLVRB has joined #nixos
<32NABLVRB> [nixpkgs] obadz closed pull request #36209: php: 7.1.14 -> 7.1.15, 5.6.33 -> 5.6.34 (master...php-updates) https://git.io/vAyaS
32NABLVRB has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master ca6f30d Bas van Dijk: opencv: 3.4.0 -> 3.4.1...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAH0K
<coconnor> vcunat: thanks. that worked! hmm tricky migration situation
<coconnor> seems like the nix daemon needs a "upgrade yourself first" option like nixos-rebuild
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #36183: airtame 3.0.1 -> 3.1.1 (master...airtame-3.1.1) https://git.io/vADGL
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 3a094f4 bernie: add decred package
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAH0F
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 6f07315 Anders Kaseorg: Give working advice for running nix-prefetch-url...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHEv
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ElvishJerricco opened pull request #36300: LightDM: Set default user session when possible. (master...lightdm-default-user-session) https://git.io/vAHEJ
NixOS_GitHub has left #nixos [#nixos]
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/9885b4c7819 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #36014: seabios: 1.9.3 -> 1.11.0 (master...auto-update/seabios-1.9.3-to-1.11.0) https://git.io/vAP1n
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHEs
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 25ea647 Ryan Mulligan: pptp: 1.9.0 -> 1.10.0...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35969: pmd: 5.2.3 -> 6.0.1 (master...auto-update/pmd-5.2.3-to-6.0.1) https://git.io/vAPiW
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 4243e40 Elis Hirwing: php70: 7.0.27 -> 7.0.28...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 7d24193 Elis Hirwing: php71: 7.1.13 -> 7.1.14...
<NixOS_GitHub> [nixpkgs] fpletz pushed 5 new commits to release-17.09: https://git.io/vAHEC
<NixOS_GitHub> nixpkgs/release-17.09 25d8754 Elis Hirwing: php: add myself as maintainer...
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 79e46c8 Tim Steinbach: linux: 4.16-rc1 -> 4.16-rc3
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vAHE4
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35967: pioneers: 0.12.3 -> 15.4 (master...auto-update/pioneers-0.12.3-to-15.4) https://git.io/vAPiZ
NixOS_GitHub has left #nixos [#nixos]
roblabla has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35943: openvdb: 4.0.2 -> 5.0.0 (master...auto-update/openvdb-4.0.2-to-5.0.0) https://git.io/vAPo0
NixOS_GitHub has left #nixos [#nixos]
johnw has joined #nixos
<i-am-the-slime> So some people are using xmonad and multiple screens?
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8b07381 Ruben Maher: gnome-3: remove ibus from corePackages...
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vAHE7
robstr has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHEA
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master f81e87b Ryan Mulligan: openimageio: 1.7.17 -> 1.8.8...
MP2E has joined #nixos
asuryawanshi has joined #nixos
PMS has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #33731: nixos/gnome3: use ibus from i18n.inputMethod (master...gnome3-fix-ibus) https://git.io/vNOiZ
NixOS_GitHub has left #nixos [#nixos]
robstr has joined #nixos
<obadz> ryantm: incredible what you did with repology!
<samueldr> with the nixos options system, is there a way to "lib.mkForce" remove a submodule? setting it to null (obviously?) doesn't work as null isn't a submodule
asuryawanshi has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHu3
<NixOS_GitHub> nixpkgs/master 08ce0ff Ryan Mulligan: sabnzbd: 1.2.1 -> 2.3.2...
NixOS_GitHub has left #nixos [#nixos]
<joko> i-am-the-slime: I am using xmonad on a dual monitor setup in office
<tnks> What's Hydra's approach to distributing a cache across multiple nodes?
mbrgm has quit [Quit: ZNC 1.6.5 - http://znc.in]
zandy[m] has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35919: newt: 0.52.15 -> 0.52.20 (staging...auto-update/newt-0.52.15-to-0.52.20) https://git.io/vAPw7
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vAHu0
<NixOS_GitHub> nixpkgs/master 9d65dbf Franz Pletz: pioneers: build with gtk3...
NixOS_GitHub has left #nixos [#nixos]
<zandy[m]> hi, I'm a newbie trying out nix
nocoolnametom has quit [Quit: ZNC 1.6.5 - http://znc.in]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to staging: https://git.io/vAHuu
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging d6ab8a6 Ryan Mulligan: libspatialite: 4.2.0 -> 4.3.0a...
sconybeare has joined #nixos
<zandy[m]> is this the right place to post if I have a simple problem? I'm just trying to set up an nginx server with ssl
sconybeare has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35801: libqmi: 1.18.0 -> 1.20.0 (staging...auto-update/libqmi-1.18.0-to-1.20.0) https://git.io/vA6O9
NixOS_GitHub has left #nixos [#nixos]
<elvishjerricco> zandy[m]: Yea this is a good place to ask questions
nocoolnametom has joined #nixos
<blankhart> is it right that a .nix file always defines exactly one Nix expression? i have not seen that written down anywhere
<tnks> does the hostname factor into signatures in Nix?
mizu_no_oto has joined #nixos
<obadz> tnks: definitely should not
<obadz> (I assume you mean the inputs/outputs hash of derivations)
<obadz> of course some of the NixOS derivations contain your hostname so they would
<obadz> but the vast majority of packages should not
<symphorien> blankhart: what do you mean by nix expression ?
<fpletz> blankhart: yeah, but a nix expression can of course be lots of things :)
BlessJah has quit [Ping timeout: 276 seconds]
<symphorien> it could be a list of things
<tnks> obadz: really? they might have a hostname?
<fpletz> like a string, a function, a list, an attrset… :)
<tnks> that's surprising to me.
<obadz> tnks: well in your nixos configuration there's your hostname, right?
PMS has quit [Quit: • IRcap • 8.72 •]
<tnks> oh, I see, yeah, not nixos for me... just nix, but I see your point.
<obadz> but otherwise, the answer is no.
<tnks> I think I figured out my problem. I think sandboxing was doing it's job and preventing a configuration file from being visible to the nix-daemon.
<blankhart> i'd think of an expression as in other functional languages as consisting of either data or a function; a string, list, attrset would come under data. the only thing it can't be is a procedural statement
<blankhart> one of the confusing things to me as a beginner is the proliferation of semicolons in an expression-based language (contrasting Haskell/Scala)
endformationage has joined #nixos
BlessJah has joined #nixos
<blankhart> the use of colons to demarcate function arguments also seems to me an odd choice because it resembles the syntax for declarative definitions of attributes
<symphorien> then yes when you `import ./foo.nix` you get only one value
<blankhart> got it, thanks - yeah `import` is what i was thinking about
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35797: librdmacm: 1.0.21 -> 1.1.0 (master...auto-update/librdmacm-1.0.21-to-1.1.0) https://git.io/vA6O6
NixOS_GitHub has left #nixos [#nixos]
aminb has quit [Quit: WeeChat 2.0.1]
<rycee> manveru: Are you using NixOS? The session dbus setup in NixOS is a bit broken w.r.t the way systemd expects things to be done.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35926: nspr: 4.17 -> 4.18 (staging...auto-update/nspr-4.17-to-4.18) https://git.io/vAPrt
NixOS_GitHub has left #nixos [#nixos]
i-am-the-slime has quit [Remote host closed the connection]
<rycee> manveru: In hm I've tried to work around this as much as possible but some breakage may occur especially with services started through dbus activation.
i-am-the-slime has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #35226: virglrenderer: init at 0.6.0 (master...virglrenderer) https://git.io/vARNA
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHz4
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8cc0a4f Ryan Mulligan: nss_wrapper: 1.0.3 -> 1.1.3...
fez has quit [Quit: Page closed]
aminb has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 4 new commits to master: https://git.io/vAHz2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 1894a2a xeji: spice-gtk: fix usb redirection...
<NixOS_GitHub> nixpkgs/master 14c6c28 xeji: spice-gtk: clean up unnecessary code
<NixOS_GitHub> nixpkgs/master 54b432f xeji: spice-gtk: set maintainer (previously none)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35932: opencpn: 4.2.0 -> 4.8.2 (master...auto-update/opencpn-4.2.0-to-4.8.2) https://git.io/vAPrK
NixOS_GitHub has left #nixos [#nixos]
Arcaelyx has joined #nixos
nocoolnametom has quit [Quit: ZNC 1.6.5 - http://znc.in]
nocoolnametom has joined #nixos
roblabla has quit [Ping timeout: 276 seconds]
<i-am-the-slime> but are you using compton and xmonad and multiple monitors?
robstr has quit [Remote host closed the connection]
<obadz> 13 PRs merged (including 1 by accident!)
robstr has joined #nixos
<obadz> was expecting a higher count :(
<tnks> signatures are absolutely confusing. I'm about to break out a sqlite client, because I have no other ideas on how to debug this.
robstr has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36301: you-get: 0.4.1025 -> 0.4.1040 (master...auto-update/you-get) https://git.io/vAHgL
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #36301: you-get: 0.4.1025 -> 0.4.1040 (master...auto-update/you-get) https://git.io/vAHgL
NixOS_GitHub has left #nixos [#nixos]
mbrgm has joined #nixos
<obadz> tnks: hey sorry, I thought you were talking about hashes. maybe what I told you was wrong then.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36302: kernel-headers: fix asm symlinks (master...fix/kernel-header-asm-symlinks) https://git.io/vAHgq
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #36302: kernel-headers: fix asm symlinks (master...fix/kernel-header-asm-symlinks) https://git.io/vAHgq
NixOS_GitHub has left #nixos [#nixos]
<clever> tnks: if your wondering how the signatures are generated, here is a perl example: https://github.com/edolstra/nix-serve/blob/master/nix-serve.psgi#L36-L44
<clever> it generates a fingerprint using the storepath, narhash, narsize, and closure, then signs that string with a secret
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHgn
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 3a90c13 Ryan Mulligan: mod_wsgi: 3.5 -> 4.5.24...
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
Fare has quit [Ping timeout: 248 seconds]
<clever> return "1;" . $storePath . ";" . $narHash . ";" . $narSize . ";" . join(",", @{$references});
goibhniu1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36303: kernel-headers: fix asm symlinks (staging...fix/kernel-header-asm-symlinks) https://git.io/vAHgW
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35785: libmbim: 1.14.2 -> 1.16.0 (staging...auto-update/libmbim-1.14.2-to-1.16.0) https://git.io/vA6Yh
NixOS_GitHub has left #nixos [#nixos]
goibhniu has quit [Ping timeout: 256 seconds]
<tnks> clever: thanks!
roblabla has joined #nixos
<tnks> clever: so every package can only be signed once, right?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35790: libmodplug: 0.8.8.5 -> 0.8.9.0 (staging...auto-update/libmodplug-0.8.8.5-to-0.8.9.0) https://git.io/vA6OG
NixOS_GitHub has left #nixos [#nixos]
johnsonav has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<clever> tnks: for the nixos cache, yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to staging: https://git.io/vAHgu
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 3734c63 Ryan Mulligan: libkate: 0.3.8 -> 0.4.1...
<clever> but if somebody was garbage collecting their own cache, and the build was not bit-for-bit reproducable, the narhash would come out different, resulting in a new signature for the new nar
m0rphism has joined #nixos
<clever> cache.nixos.org lacks garbage collection, so that cant really happen
* zandy[m] sent a long message: zandy[m]_2018-03-04_18:36:35.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/EFjNZYCvMaeJhXYiZzbSmXGM>
<clever> tnks: oh, there is also a NarInfo class, that can convert to/from string: https://github.com/NixOS/nix/blob/561e977f51c1d9ec55e4a70791958d4e214df465/src/libstore/nar-info.cc#L85-L114
<viric> The cache with no garbage
<clever> return "copy path signatures from substituters (like binary caches)";
<clever> tnks: what is this....
Fare has joined #nixos
<simukis> is there a local build of documentation like https://nixos.org/nixos/options.html?
<simukis> or the same for other channels?
<clever> tnks: aha, there is a new addition to db.sqlite, the ValidPaths table now has a sigs field!
<zandy[m]> simukis:
kelleyNif has quit [Quit: Leaving.]
kelleyNif has joined #nixos
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c143deaf16d (from 86 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<clever> tnks: with the advent of nix 2.0, nix-serve needs to be fixed i guess
<clever> tnks: db.sqlite now retains the original signature(s) of things, and nix-serve shouldnt be re-signing things
<hyper_ch> what's the staging branch?
<clever> [root@system76:/nix/var/nix/db]# time nix copy-sigs --all -s https://cache.nixos.org
<clever> tnks: it is now fetching the signature of everything in my store...
<joko> Any suggestion what to do if nixos-install from a livecd fails due to space?
<clever> joko: add swap and resize the .rw-store directory with `mount -o remount,size=2G /path/to/it`
<clever> joko: there is a bug that tries to store the entire os its building in a tmpfs
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to staging: https://git.io/vAHg7
<NixOS_GitHub> nixpkgs/staging c4f79b2 Ryan Mulligan: libinput: 1.9.4 -> 1.10.0...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35775: libinput: 1.9.4 -> 1.10.0 (staging...auto-update/libinput-1.9.4-to-1.10.0) https://git.io/vA6Yi
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36304: you-get: 0.4.1025 -> 0.4.1040 (master...auto-update/you-get) https://git.io/vAHgx
NixOS_GitHub has left #nixos [#nixos]
<tnks> clever: yeah, that all coresponds to my mental model of how this stuff works.
chisui has joined #nixos
<tnks> for some reason, all this stuff is working within my Docker cluster... but not between my laptop and the cluster.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35771: libgme: 0.6.1 -> 0.6.2 (staging...auto-update/libgme-0.6.1-to-0.6.2) https://git.io/vA6Ym
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #36304: you-get: 0.4.1025 -> 0.4.1040 (master...auto-update/you-get) https://git.io/vAHgx
NixOS_GitHub has left #nixos [#nixos]
<tnks> I've got maybe two small experiments to run, and then I'll be proper stuck again.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35769: libcue: 2.1.0 -> 2.2.0 (master...auto-update/libcue-2.1.0-to-2.2.0) https://git.io/vA6Yk
NixOS_GitHub has left #nixos [#nixos]
<tnks> clever: what makes you say that with Nix 2.0, nix-serve needs to be fixed?
<clever> tnks: nix-serve will re-sign any path its serving with the configured key, and only that key
<clever> tnks: but nix 2.0 is able to retain the original cache.nixos.org signatures in db.sqlite
<clever> sending those signatures instead would be an improvement
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to staging: https://git.io/vAH2t
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging ae6fcf3 Ryan Mulligan: libdvdcss: 1.4.0 -> 1.4.1...
<tnks> clever: okay, I can see how that would be annoying.
<tnks> clever: but it's not a show-stopper, right?
<clever> tnks: yeah, it would still work, just signed with a different key
<tnks> right.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master c64a239 Ryan Mulligan: html-tidy: 5.4.0 -> 5.6.0...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAH2Z
<clever> but another benefit i can see, if you sign all paths after building them
<tnks> also, I shouldn't need this entry in trusted-public-keys right? cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
<clever> then nix-serve doesnt even need to know your key
<tnks> I'd assumed it would be there by default.
<joko> clever: thanks, that solved it!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAH2W
<NixOS_GitHub> nixpkgs/master 1aa5bb4 Ryan Mulligan: blas: 3.7.1 -> 3.8.0...
NixOS_GitHub has left #nixos [#nixos]
<clever> tnks: because its in the config section and not default, it will merge this default with whatever you specified
<tnks> clever: wait a second. I'm running Nix raw, not with NixOS.
chocopuff298 has joined #nixos
<tnks> but I think it's still trusting the cache.nixos.org sig.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging 4dcd9bd Ryan Mulligan: jansson: 2.10 -> 2.11...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to staging: https://git.io/vAH28
<clever> tnks: ah, one sec
<clever> tnks: if the config option is entirely missing from nix.conf, it will have a sane default
<clever> but this one isnt capable of merging, so that is lost if you set it to anything
robstr has joined #nixos
<clever> tnks: are you using `nix copy`? i need to get into using it more heavily as well, cross-mount stores and such
chocopuff has quit [Ping timeout: 256 seconds]
<tnks> clever: I'm trying that out for the work build.
<tnks> but I'm doing this thing that I suspect no one is really doing... I'm building with Jenkins in Docker instead of using Hydra.
<clever> i'm planning on using it to import a closure from a tarball
<tnks> which comes at a cost, but has to do with the legacy at work.
<clever> my plan is sort of the reverse, build a closure in hydra, tar it up, then unpack that tar to a tempdir and import it into a local store
ixxie has joined #nixos
<tnks> man, there's a lot of bzip'ing going on with nix-serve. I think because it's remaking the signatures.
<tnks> (needlessly, I think).
<clever> nope, thats because it doesnt cache the compressed nar, or even the nar itself
<clever> every time you request an archive, it will `nix-store --dump` the storepath, compress it, and serve that
<clever> oh, but it may do it twice?, once to sign, and once to serve
<clever> the db.sqlite signatures would help there
<tnks> clever: I see, so it's just flatly inefficient?
<tnks> so this is even more of a reason to use Hydra, right?
<clever> wait nvm, it asks the nix-daemon for the narhash when signing
<clever> so it only has to compress once when serving
<clever> hydra also does the exact same thing, so no real benefit there
<tnks> good to know!
<tnks> it's certainly faster than building... but slower than one would expect for a cache.
<clever> the only way to improve things is with the deprecated nix-push, or its replacement in nix 2.0
<clever> which will pre-compress and pre-sign a bunch of static files
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36294: primecoin: remove as it seems no longer maintained (master...primecoins) https://git.io/vAHG9
NixOS_GitHub has left #nixos [#nixos]
<clever> then any dumb http server can handle the cache
<tnks> you mean 'nix copy'?
<clever> there is a variant of it that will creare a directory full of .narinfo and .nar.xz files
<clever> which replaces nix-push
<tnks> still in the making? or available with nixUnstable?
<clever> i think its in 2.0, its just documented very well
<clever> i need to go over `egrep --color 'nix .*copy' irclogs/freenode/#nixos.log` and see what they all do
<tnks> clever: so this wouldn't be an issue with 'nix copy --from ssh://..' right?
<clever> i think that calls nix-daemon to dump a .nar of the path, without compression
<clever> and streams it directly into the local nix-daemon
<clever> so its basically just an rsync
<tnks> clever: right.
<tnks> also, is there a way to order which cache gets hit in which order?
<clever> 2017-10-18 16:07:40< tnks> clever: when you say "nix copy" it sounds like something new, not "nix-copy-closure".
<clever> heh, found this in my logs
<tnks> yeah, I mostly ask questions here... not enough answering them.
<clever> tnks: look at the priority field in `curl https://cache.nixos.org/nix-cache-info`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 44 new commits to master: https://git.io/vAH2j
<NixOS_GitHub> nixpkgs/master 1d09719 Jan Tojnar: rhythmbox: add updateScript
<NixOS_GitHub> nixpkgs/master a081e8e Jan Tojnar: easytag: add updateScript
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master c0470f0 Jan Tojnar: orca: add updateScript
<tnks> clever: so 40 would be hit before 30, right?
<tnks> because that's not what I'm seeing.
<tnks> it grabbed everything from my local cache.
<clever> tnks: i see a hydra listed at 100
<clever> and in general, you want to hit cache.nixos.org rather then a hydra
<clever> so smaller numbers come first
<tnks> makes sense
ottidmes has quit [Quit: WeeChat 1.9.1]
<clever> if running a local cache on your LAN, you may want to make it 30, so you get gigabit speeds
<tnks> clever: one more question before my wife explodes in hunger... why isn't cache.nixos.org so slow with all this bzipping?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #36236: tree-wide: Add some updateScripts (master...updatescripts) https://git.io/vASxf
NixOS_GitHub has left #nixos [#nixos]
<clever> tnks: its just a dumb S3 bucket behind cloudfront, all it can do is serve static files
<clever> tnks: hydra pre-compresses everything before uploading
<tnks> Okay, do people reproduce this for private caches to avoid time lost to compression?
<clever> tnks: all relevant lines from my irc logs: https://gist.github.com/cleverca22/bc86f34cff2acb85d30de6051fa2c339
<tnks> all the answers, none of the context.
<mfiano> Hmm, why doesn't polybar have any libraries linked into it? no mpd support, no i3 support, etc
<tnks> it's like IRC Jeopardy.
<clever> tnks: i plan to go over each one, lookup the context, and document it more in that gist
<sphalerite> mfiano: for all the lightweight! :p
<clever> tnks: also there is the irc logs in the /topic, on botbot.me
<clever> tnks: and i also have this project: https://github.com/cleverca22/cachecache
<mfiano> sphalerite: heh, it's unusable now
<i-am-the-slime> What do I need to do to make QT applications use the Breeze theme when I'm not running KDE?
<clever> tnks: basically, its a transparent http proxy for binary caches, with support to query several caches behind the scenes
<i-am-the-slime> I could configure the gnome stuff with lxappearance
<sphalerite> mfiano: I think it's intended to only be used overridden, like polybar.override {i3Support = true;}
<clever> tnks: so you fire up a cache-cache instance, put it into your binary-caches list, and it will proxy all requests upstream, and cache all replies
muzzy__ has quit [Ping timeout: 240 seconds]
<clever> tnks: currently, it can only cache the narinfo files
<tnks> nice.
<mfiano> sphalerite: I see, thanks
spear2 has joined #nixos
<tnks> okay, wife exploding now... I'll try to look at logs if someone has the answers to all my problems.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to staging: https://git.io/vAHaM
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging b0ff7ca Ryan Mulligan: http-parser: 2.7.0 -> 2.8.0...
ma27 has joined #nixos
<coconnor> can anyone point to a starter for the "updateScript" aspect referenced here https://github.com/NixOS/nixpkgs/commit/b8b4ae3f4dd205de0379ecc8fe78d1e7a8b2ae98
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to staging: https://git.io/vAHVf
<NixOS_GitHub> nixpkgs/staging db277c2 Ryan Mulligan: lcms2: 2.8 -> 2.9...
NixOS_GitHub has left #nixos [#nixos]
<mfiano> sphalerite: `nixpkgs.config.polybar = pkgs.polybar.override { i3Support = true; }` should this work?
<joko> mfiano: where do you have polybar in your configuration?
<sphalerite> mfiano: no. Put `(polybar.override {i3Support = true;})` in your systemPackages or your user profile expression
<sphalerite> or polybar = super.polybar.override {i3Support = true;}; in an overlay
<jtojnar> coconnor: but it is quite simple to follow, it just traverses the selected packages and if they have updateScript attribute, it will run the script
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35765: libexttextcat: 3.4.1 -> 3.4.5 (master...auto-update/libexttextcat-3.4.1-to-3.4.5) https://git.io/vA6Ye
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ddz opened pull request #36305: nixos/initrd-network: add udhcpc.extraArgs option (master...add-udhcpc-extraargs) https://git.io/vAHVc
NixOS_GitHub has left #nixos [#nixos]
<coconnor> jtojnar: nice! are updateScripts then expected to generate nix expressions within a nixpkgs checkout?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master d44dd05 Unknown: Upgrade gitkraken to 3.3.4...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vAHVC
<coconnor> I like the interface of updating all packages given a maintainer. A clear start for a maintainer updating the packages they own
robstr has quit [Remote host closed the connection]
<jtojnar> coconnor: they can do basically anything. In gnome, we use just rely on update-source-version script (https://github.com/NixOS/nixpkgs/pull/33086/commits/cc1d6fcbcb83608f7a1c86c103e55bb1728c1ad6#diff-720cd524d3678af0974a3d2111d3234b)
coot has joined #nixos
i-am-the-slime has quit [Quit: Konversation terminated!]
Itkovian has joined #nixos
<jtojnar> ma27: would not using PAM for the keyring be enough?
pie___ has quit [Ping timeout: 256 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Myrl-saki has quit [Ping timeout: 248 seconds]
i-am-the-slime has joined #nixos
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/848a4654ca0 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
ElGoreLoco has quit [Quit: ElGoreLoco]
coot_ has joined #nixos
kitemikaze has joined #nixos
coot has quit [Ping timeout: 240 seconds]
leat has quit [Ping timeout: 240 seconds]
<ma27> jtojnar: what I did solved my issue between IntelliJ and their native keychain implementation. I'll have to confirm that the PAM method works as well (wasn't aware of it, can test it tomorrow), then I'd close my PR :)
<jtojnar> ma27: if it works, I think it would be preferable to adding another service
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 75d4499 Luka Blašković: openresty: 1.9.3.1 -> 1.13.6.1 (#36289)
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAHwb
plakband has joined #nixos
pie___ has joined #nixos
ixxie_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #36307: keepassxc: enable ssh agent sockets (master...keepassxc) https://git.io/vAHrT
NixOS_GitHub has left #nixos [#nixos]
raynold has joined #nixos
<ryantm> jtojnar: You showed me some nix derivation updater script that was already inside of nixpkgs. Where was it at?
<ma27> jtojnar: ACK, will have a look at it tomorrow
asuryawanshi has joined #nixos
Myrl-sak1 has joined #nixos
<Myrl-sak1> Fuck me. I deleted nmy nix store using `nix-store --delete`
<Myrl-sak1> I have a paper to pass to.
<Myrl-sak1> too
<Myrl-sak1> Well
seanparsons has quit [Read error: Connection reset by peer]
leat has joined #nixos
<Myrl-sak1> At least I hope that that's the only thing that got deleted.
<makefu> Myrl-sak1: you cannot delete any path which is still in used by any of your roots. so it should be fine :)
<Myrl-sak1> makefu: I ignored liveness
<makefu> geez :D
<Myrl-sak1> I literally can't even boot my initn ow.
<makefu> nix-store -Q --realize <path-you-lost>
<Myrl-sak1> Ugh
<Myrl-sak1> makefu: My PATH was also broken.
<Myrl-sak1> And I forgot first rule of broken PATH. Don't reboot.
<makefu> you can boot into live and simply re-install with the config you have
<Myrl-sak1> makefu: I'm trying to do that.
asuryawanshi has quit [Ping timeout: 240 seconds]
<Myrl-sak1> How do I netboot from local?
94KAADP9H has joined #nixos
21WAADPRD has left #nixos [#nixos]
<21WAADPRD> nixpkgs/master a9d0778 Ryan Mulligan: lib: add versions library
<94KAADP9H> [nixpkgs] Mic92 closed pull request #36168: a single version attribute for expressions previously using "majorVersion" (master...majorminor) https://git.io/vAMMN
21WAADPRD has joined #nixos
94KAADP9H has left #nixos [#nixos]
<21WAADPRD> nixpkgs/master 73774ef Jörg Thalheim: Merge pull request #36168 from ryantm/majorminor...
<21WAADPRD> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vAHrg
<21WAADPRD> nixpkgs/master 1f7fdf6 Ryan Mulligan: haproxy: use lib.versions.majorMinor
<makefu> you can also try to find binaries with 'ls /nix/store/*/bin/nox-store' or something
<Myrl-sak1> Oh wait, that wouldn't work either considering I have propreitory...
<Myrl-sak1> makefu: `ls` was not found.
<clever> Myrl-sak1: echo instead
<Myrl-sak1> True.
<makefu> great idea
<Myrl-sak1> I shouldn't have rebooted. I'm stupid.
<clever> Myrl-sak1: you shouldnt have forced it either
ma27 has quit [Quit: WeeChat 2.0]
<clever> ive done it, it breaks a lot :P
<makefu> that
<Myrl-sak1> This is why I'll fail as a sysadmin.
<makefu> simply trust nix
<Myrl-sak1> clever: My /nix/store had a broken file, I think.
ma27 has joined #nixos
<Myrl-sak1> Which doesn't seem likely, but it happened.
<clever> Myrl-sak1: if you boot from any install media for nixos, you can mount your FS's to /mnt, and re-run nixos-install to repair it from the existing configuration.nix
<clever> Myrl-sak1: that is what --repair-path is for
<Myrl-sak1> clever: Right. I'll need advice.
<makefu> sudo nix-store --verify --check-contents --repair
<Myrl-sak1> First is, who here knows systemd-init-fu??
<makefu> at least according to https://nixos.wiki/wiki/Cheatsheet
<Myrl-sak1> I need to boot from an iso on my flash drive.
<clever> Myrl-sak1: the nixos ISO's are already usb images
<clever> Myrl-sak1: just dd it directly to the root of the usb drive
<Myrl-sak1> clever: I'm trying to weigh whether or not the files I have here are more important than getting my thing fixed by tomorrow.
<clever> Myrl-sak1: nixos-install will fix it without loosing any files or your config
<MichaelRaskin> I think the problem is about files on USB drive
<Myrl-sak1> clever: The files in the flash drive, I mean.
<clever> Myrl-sak1: oh, id just back them up to another machine, how much is used?
<makefu> Myrl-sak1: *cough*drivedroid*cough*
<Myrl-sak1> makefu: Don't have root.
<Myrl-sak1> makefu: On that topic. Let me root.
<clever> same
<makefu> drivedroid is the primary reason i have rooted my phone
<Myrl-sak1> Wait.
<Myrl-sak1> I'm pretty sure I have one more drive.
<clever> Myrl-sak1: do you have other nixos machines?, is a laptop still working?
<Myrl-sak1> clever: I have other NixOS machines, same version so I can use it as bincache.
<ixxie_> how do I install npm packages into my environment?
<Myrl-sak1> I was also thinking of netbooting.
<Myrl-sak1> clever: Oh wow. Thanks.
<clever> Myrl-sak1: this fully configures dhcp, bind, httpd, netboot, tftpd
<clever> and nat
<Myrl-sak1> clever: Wait, this won't work. Propreitory wifi on my laptop.
seanparsons has joined #nixos
<clever> Myrl-sak1: which machine is working, which is broken?
<Myrl-sak1> clever: Laptop is broken.
<clever> Myrl-sak1: thats why netboot_server.nix includes NAT
<MichaelRaskin> Ethernet there?
<clever> Myrl-sak1: it shares its internet over the same ethernet that netboots the broken system
<Myrl-sak1> MichaelRaskin: I do. I'll try direct connection?
coot_ has quit [Quit: coot_]
<MichaelRaskin> Yes.
<Myrl-sak1> clever: `nix-shell netboot_server.nix`?
<clever> Myrl-sak1: its a nixos module
<makefu> clever: such an awesome snipped. thanks a lot for sharing. i am pretty sure there are many more gems out there. we just need a place to keep them (not only in bookmarks)
<clever> Myrl-sak1: you have to add it to the imports section of configuration.nix, and set the 2 nixos options on lines 35&40
ma27 has quit [Ping timeout: 240 seconds]
<clever> Myrl-sak1: network.wan must be set to the name of the internet facing NIC
<clever> Myrl-sak1: network.lan must be set to the NIC facing the broken machine, which should be an ethernet card
<clever> the server will need 2 interfaces
<clever> but the wan one can be wireless
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tadfisher opened pull request #36308: pass-otp: 1.0.0 -> 1.1.0 (master...pass-otp) https://git.io/vAHoG
NixOS_GitHub has left #nixos [#nixos]
<Myrl-sak1> Thanks.
<Myrl-sak1> clever: Instructions for the laptop?
<clever> pick network boot from the bios
<Myrl-sak1> Mkay.
<clever> then just mount your existing FS's under /mnt and run nix-install
polytux is now known as monotux
<Myrl-sak1> I've never been so glad that network booting exists.
* elvishjerricco knows nothing about netbooting.
<elvishjerricco> What configuration is booted this way?
kelleyNif has quit [Quit: Leaving.]
<Myrl-sak1> I have this 5 meter cable just lying behind my table. I already forgot why I even have it. But damn. Wow.
<Myrl-sak1> elvishjerricco: Nowadays, it's used for live CDs, but it can aslo be used for dumb terminals.
<Myrl-sak1> At least that's how I believe it's used.
fenedor has joined #nixos
Xianwen has joined #nixos
<Myrl-sak1> clever: Ping
<clever> pong
<Myrl-sak1> I get "Start PXE over IPv4" I have no idea how to interpret that. It's in my BIOS, so it's probably computer-specific.
<wilornel> ping
<clever> Myrl-sak1: try that option and see what it does
<Xianwen> Hi! I wonder how I can use a window manager that is not yet coded as services.xserver.desktopManager* or services.xserver.windowManager*
<Xianwen> The WM I would like to use is cwm, which is part of the packages.
<Xianwen> I tried to specify it in ~/.xinitrc, but it did not help.
<Xianwen> Any hint?
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Myrl-sak1> clever: It's not an option but an instruction, I think.
<clever> Myrl-sak1: you may need to enable network booting first
shabius has quit [Quit: Leaving]
<clever> Xianwen: its called .xsession on nixos
<clever> Xianwen: and it has to be +x
fendor has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #35487: hy: 0.13.1 -> 0.14.0 (master...hy-update) https://git.io/vAwng
NixOS_GitHub has left #nixos [#nixos]
<elvishjerricco> Xianwen: I'd take a look at the other `desktopManager` implementations and see if you can just make a new nixos module inspired by them
i-am-the-slime has quit [Quit: Konversation terminated!]
<Xianwen> clever: Okay! Thank you!
<Xianwen> elvishjerricco: Yeah.
lexwhere has joined #nixos
<Myrl-sak1> clever: I only have to import your nix file, and netboot_server.network{wan,lan}, right?
<Xianwen> That wolud be interesting. Could you point me to a github source code page, if it is convenient for you?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #36309: gnome3: semi-automated update (master...gnome3-update) https://git.io/vAHop
NixOS_GitHub has left #nixos [#nixos]
<Myrl-sak1> clever: Seems to work now.
<clever> Xianwen: just copy that to /etc/nixos/cwm.nix, replace all dwm's with cwm's, and add imports = [ ./cwm.nix ]; to the configuration.nix, and it should become a valid option
<Myrl-sak1> clever: I believe UEFI boot was the wrong option?
14WAADNZR has joined #nixos
<14WAADNZR> [nixpkgs] Mic92 closed pull request #35486: mblaze: 0.3.1 -> 0.3.2 (master...mblaze-update) https://git.io/vAwOi
14WAADNZR has left #nixos [#nixos]
<17WAAV2S6> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAHKf
17WAAV2S6 has joined #nixos
<17WAAV2S6> nixpkgs/master 4641008 Jörg Thalheim: Merge pull request #35486 from ajgrf/mblaze-update...
17WAAV2S6 has left #nixos [#nixos]
<17WAAV2S6> nixpkgs/master c73cfd5 Alex Griffin: mblaze: 0.3.1 -> 0.3.2
<clever> Myrl-sak1: netboot_server.nix doesnt support EFI currently
<Myrl-sak1> clever: Ah, no wonder. It worked when I enabled legacy.
<Myrl-sak1> clever: Thanks. It's booting now. I'll have to think this through.
<clever> Myrl-sak1: there is also a minor problem, since your booting via legacy, configuring efi will be a bit more tricky, but we can assume that the efivars are already setup
<clever> Myrl-sak1: just leave your configuration.nix as-is, and mount the right partition under /mnt/boot/
<Myrl-sak1> Inerestingly, /mnt/nix/store is actually still populated.
<Myrl-sak1> So I didn't nuke everything.
<clever> yeah, you didnt delete everything
<clever> but you did delete everything that refered to the path you where deleting
<Xianwen> clever: Thank you! I'm trying it out now!
<Myrl-sak1> clever: I tried using generations from literally months ago but they also didn't work.
<lexwhere> what you think about the idea to deliver to end user an huge binary installer, that could unpack offline your app with all shared lib deps to /nix/store ? the installer could be compiled of binary caches pulled from cache.nixos.org
<clever> Myrl-sak1: if you dont nix-channel --update often, a single force can delete months worth of generations
<clever> lexwhere: i'm actually working on something just like that, that uses namespaces to put it at ~/nix/
<Myrl-sak1> clever: Makes sense. I tried updating nixpkgs, but it was more of a hassle, so I just didn't.
<lexwhere> clever may I see the code, github?
<Myrl-sak1> clever: I got the /mnt file hierarchy now.
<Myrl-sak1> clever: What should I do next?
<manveru> rycee: yeah, for now i basically have to reexport the variable after polybar is started
<dotlambda> Why are so many jobs in the staging jobset aborted? I'd really like to see staging merged soon.
ixxie_ has quit [Ping timeout: 276 seconds]
<manveru> rycee: remove the `-f .`
<manveru> argh
<manveru> i meant ryantm
<clever> Myrl-sak1: just run nixos-install
<clever> lexwhere: the nix variant isnt written yet
<lexwhere> k np
acertain has quit [Ping timeout: 268 seconds]
<clever> lexwhere: nix-bundle and arx are in my plans
<Myrl-sak1> clever: One last problem. The NAT doesn't seem to work.
<Myrl-sak1> clever: I don't use dhcpcd for my wlan.
<ryantm> my PWD is clone of the nixpkgs repository
<clever> Myrl-sak1: once it boots, you can optionally just plug the broken machine into any router
<clever> Myrl-sak1: and refresh the dhcp lease on it
<clever> Myrl-sak1: its running entirely from ram, so its safe to unplug the cable
acertain has joined #nixos
<manveru> ryantm: `nix eval --raw '(let pkgs = import ./. {}; in pkgs.hello)'`
<manveru> nix eval isn't very... nice to use yet
<lejonet> mkIf is a nixpkgs thing right? Is there any similar function for nix? or could it be emulated with like optionalAttrs or similar?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #34877: fwts: init at 18.01.00 (master...fwts) https://git.io/vAqDt
NixOS_GitHub has left #nixos [#nixos]
<Myrl-sak1> clever: What do you use for NAT?
<clever> Myrl-sak1: networking.nat
<lejonet> or just realized a if boolean attr else ""; would work too, probably
Neo-- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #35494: gnujump: init at 1.0.8 (master...gnujump) https://git.io/vAwCV
NixOS_GitHub has left #nixos [#nixos]
<clever> lejonet: lib.optional and the related functions
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master e8a336b Alexei Boronine: perlPackages.TextBibTex: fix dylib path for Darwin
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vAHKM
<NixOS_GitHub> nixpkgs/master cafcd6e Alexei Boronine: perlPackages.TextBibTeX: also patch .bundle file
<NixOS_GitHub> nixpkgs/master 0be67e2 Jörg Thalheim: Merge pull request #35438 from boronine/bibtex-darwin-fix...
<Myrl-sak1> clever: I just google-fu'd how to do it with iptables. :D
<clever> Myrl-sak1: networking.nat does that automatically
<lejonet> clever: yeah, I've used optional and optionalAttrs, but only when optionally merging lists and attrs and didn't know if they were general enough
<Myrl-sak1> clever: Yeah, probably a problem on my installation.
<Myrl-sak1> I'll look into this later.
<Myrl-sak1> clever: How do I use my machine as a bincache?
<clever> Myrl-sak1: youll need to adjust the /etc/nix/nix.conf on the host, and add the url and pubkey for the cache
<Myrl-sak1> clever: How about using buildMachines?
shabius has joined #nixos
<clever> Myrl-sak1: you can also set those in nix.conf and /etc/nix/machines
<clever> i dont remember if nixos-rebuild works inside that netboot image
<Myrl-sak1> Ah.
pxc has quit [Ping timeout: 256 seconds]
<lexwhere> I wasn't knew\aware such project nix-bundle exist... thnx 4 letting me know, I've googled it, will bookmark it and will follow updates. maybe someday I'll try to build delivery around it, as AppImage replacement
fragamus has joined #nixos
<clever> Myrl-sak1: but if it breaks, you can always plug the cable in again and reboot from the image again
<Myrl-sak1> clever: Just a question. What did I delete?
<Myrl-sak1> clever: I deleted a library, which was full of '\0'
<Myrl-sak1> Rather, i passed the path of that
<Myrl-sak1> nix-store --delete /nix/store/.../path.pm --ignore-liveliness
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 691307e Jörg Thalheim: Merge pull request #36308 from tadfisher/pass-otp...
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAHKj
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 20476cd Tad Fisher: pass-otp: 1.0.0 -> 1.1.0
<clever> Myrl-sak1: i dont think you ever said which one on irc
<Myrl-sak1> clever: It was Log4Perl.pm, FWIW.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 3 new commits to master: https://git.io/vAH6U
<NixOS_GitHub> nixpkgs/master e604a31 DarkScythe97: retroarch: 1.6.0 -> 1.7.1
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 6a92260 DarkScythe97: retroarch: fix darwin build
<NixOS_GitHub> nixpkgs/master 95eb92a Daiderd Jordan: Merge pull request #36237 from DarkScythe97/retroarch...
<tilpner> manveru - nix eval --raw -f . hello works too
noam_ has quit [Ping timeout: 252 seconds]
<Myrl-sak1> clever: Basically, I didn't point to the directory under nix-store but to an exact file path.
<Myrl-sak1> clever: /nix/store/hash-library-name/somedirectory/file.pm
noam has joined #nixos
Xianwen_ has joined #nixos
<clever> Myrl-sak1: it will delete the entire /nix/store/hash-library-name and everything that depended on it, recursively
<Myrl-sak1> clever: Oh.
<Myrl-sak1> clever: Why does it delete things that depended on it?
<clever> Myrl-sak1: a storepath must not exist without its dependencies
Xianwen has quit [Ping timeout: 260 seconds]
<clever> nix refuses to even download a path until the deps are valid
<Myrl-sak1> clever: I guess that's what happened.
<Myrl-sak1> clever: It was a perl module, so it probably deleted pretty much everything in that generation.
<clever> and ive broken my system the exact same way, so dont worry, lol
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master f500771 Robert Helgesson: pythonPackages.pycdio: 0.21 -> 2.0.0
<NixOS_GitHub> [nixpkgs] rycee pushed 2 new commits to master: https://git.io/vAH6G
<NixOS_GitHub> nixpkgs/master f53c3cc Robert Helgesson: eclipse-plugin-spotbugs: 3.1.1 -> 3.1.2
NixOS_GitHub has left #nixos [#nixos]
Xianwen_ has quit [Client Quit]
<Myrl-sak1> clever: Does Nix have a "force reinstall package?"
<clever> yeah, --repair-path
<Myrl-sak1> ....I'm stupid. Dammit. :(
<clever> there is also nix-store --verify --check-contents --repair
<clever> which will check for damage, and repair whatever it finds
<Myrl-sak1> If only I spent 5 more minutes doing research on that. gah.
freeman42x]NixOS has quit [Quit: Leaving]
Xianwen has joined #nixos
<Xianwen> clever: Thank you! It worked very well. I am in the new cwm now!
<Myrl-sak1> clever: Fucking hell. And boom. It got fixed.
<Myrl-sak1> This could have been way easier.
<clever> Xianwen: and if you add a PR to nixpkgs, for adding cwm, and also add it to https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/window-managers/default.nix#L14 then everybody else can get cwm easily
<Xianwen> clever: Of course! I was thinking of the same thing. By PR do you mean a GitHub ticket?
<clever> Xianwen: fork the repo on github, clone your fork, edit it on your local machine, push to the fork, and then you can issue a pull request
ma27 has joined #nixos
<Myrl-sak1> clever: I have no idea why my perl modules broke... what the hell.
<clever> Myrl-sak1: improper shutdown?
<Myrl-sak1> clever: Most likely.
<Myrl-sak1> clever: But to think that this problem literally existed for 6 months.
<clever> Myrl-sak1: i use zfs, which checksums all data and also works in an immutable manner to reduce corruption
<Myrl-sak1> clever: I never noticed it until now.
<Myrl-sak1> clever: Does the netboot have sshd enabled?
<Myrl-sak1> clever: I'm not sure how much time this will take, so I think I'll transfer my files to my desktop and start working on it.
<clever> Myrl-sak1: partially, you have to `systemctl start sshd` and `passwd root`
pie___ has quit [Ping timeout: 276 seconds]
<Myrl-sak1> clever: I think I'll need another idea.
<clever> Myrl-sak1: you can also modify the netboot to run sshd on bootup
<Myrl-sak1> clever: How do I transfer my /nix/store from my desktop to my laptop?
<clever> Myrl-sak1: nix-copy-closure from either machine
fuyuuri has joined #nixos
<clever> Myrl-sak1: for example, on the laptop, nix-copy-closure --from desktop /nix/store/foo
<Myrl-sak1> clever: Can I nix-copy-closure to /mnt?
fuyuuri has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36310: haproxy: 1.7.9 -> 1.8.4 (master...auto-update/haproxy) https://git.io/vAH6o
NixOS_GitHub has left #nixos [#nixos]
<clever> ah, that is a bit more tricky
<clever> Myrl-sak1: try nixos-install --chroot, does that work?
<Myrl-sak1> No bash yet.
<Myrl-sak1> I guess I could change my environment?
<clever> then youll need to let it copy into the tmpfs and swap
<clever> and then run nixos-install
<clever> the issue is no bash in /mnt/nix/store/
<Myrl-sak1> Mkay.
<Myrl-sak1> Do I copy current-system?
<Myrl-sak1> lErr
<clever> thats one option, it will get a complete copy of the desktop
<clever> if they have similar configuration.nix's, that will get most of what you want
<Myrl-sak1> clever: Right.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #35760: libdvbpsi: 0.2.2 -> 1.3.2 (master...auto-update/libdvbpsi-0.2.2-to-1.3.2) https://git.io/vA6mP
NixOS_GitHub has left #nixos [#nixos]
<Myrl-sak1> Yeah, I'll need a shittonne of swap for this.
<clever> nix 2.0's copy command can help, but it needs better docs
<MichaelRaskin> Hm, I guess in my case having a fat initramfs, which is literally more than a hundred MiBs and has a lot of tools, would make the recovery trivial.
<clever> Myrl-sak1: both rescue and netboot do that, the entire rootfs is a squashfs in the initrd
<clever> MichaelRaskin: oops, wrong tab-complete
<clever> MichaelRaskin: rescue-boot puts the kernel&initrd into /boot and adds a grub option for recovery
mkoenig has joined #nixos
leat has quit [Ping timeout: 240 seconds]
<clever> netboot-server configures full network booting with the same images
<MichaelRaskin> I mean, my default initramfs is usable as a recovery.
<clever> ah
<clever> rescue-boot gives you that option, while not slowing down normal boots
<MichaelRaskin> With Nix 2.0 maybe I should also put Nix itself there.
<clever> it takes an extra 20 or 30 seconds just to unpack that fat initrd
<MichaelRaskin> On good hardware below 20
<MichaelRaskin> I just don't want to carefully make sure I do not forget anything useful from initramfs.
mkoenig_ has quit [Ping timeout: 256 seconds]
Xianwen has quit [Ping timeout: 260 seconds]
<lexwhere> I have a problem: when I invoke 'nix-shell myFHSenv.nix' it tries to compile source, which take HUGE amount of time. how I can enforce usage of binaries?
<Myrl-sak1> clever: Ping
<clever> Myrl-sak1: pong
<Myrl-sak1> clever: ramfs won't work with swap?
<Myrl-sak1> Or loop?
<Myrl-sak1> I'm not sure what my /nix is rn.
pie___ has joined #nixos
<clever> Myrl-sak1: check df -h, youll see a .rw-store
<clever> Myrl-sak1: mount -o remount,size=2G /path/to/that
<Myrl-sak1> Mkay.
<clever> as long as the size is under ram+swap, it should be safe
<Myrl-sak1> clever: Thanks. I'm really appreciating all the help.
<clever> maybe leave a gig or 2 free for apps to use
knupfer has joined #nixos
robstr has joined #nixos
<gchristensen> clever: ouch
<gchristensen> clever: things are going to be very ugly when GitHub is no longer the cool joint in town, and starts to fail
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #36311: qgis: 2.18.16 -> 2.18.17 (master...update_qgis) https://git.io/vAHiR
NixOS_GitHub has left #nixos [#nixos]
<clever> gchristensen: something ive been wanting, is a way to dedup objects between git repos
<clever> so i can just throw every git repo into a single bare .git dir
<Dezgeg> isn't it already possible with some option?
<gchristensen> well you could just do that
<Dezgeg> to have objects hardlinked between repos
<gchristensen> provide multiple remotes, fetch them
<clever> ive tried doing it before, and it refuses to pull branches from other repos, when they lack a common ancestor
<gchristensen> pretty sure you can trick it :)
<clever> they start with different initial commits, so the standard commands dont allow it
<clever> though ive seen android do some pretty nutty things with git
<gchristensen> the tool `repo` is pretty cool
<Dezgeg> just don't try to google help for that
<MichaelRaskin> One more advantage of SVN over git?
<MichaelRaskin> (SVN branch support is less capable of caring)
<MichaelRaskin> Sad that Linus didn't pick «put unrelated things into united storage» feature from Monotone.
<sphalerit> What? Me?
<gchristensen> indeed
<sphalerit> I asked about that hard linking stuff in #git the other day
<sphalerit> Apparently it doesn't really work very well / at all
* zandy[m] sent a long message: zandy[m]_2018-03-04_21:21:14.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/nmzidvkqMNFwvCIKxVYPnnQD>
<MichaelRaskin> zandy: please also post a one-line summary for IRC people to know whether to open the link
<zandy[m]> MichaelRaskin:
<zandy[m]> summary of what the link does you mean?
<makefu> *i see what you did there*
<gchristensen> zandy[m]: when Matrix users send a too long of a message, Matrix doesen't tell us what you say
<MichaelRaskin> zandy: multi-line matrix messages are shown as a single pastebin-like link on IRC, without the first line shown
<clever> 2018-03-04 17:21:15 * zandy[m] sent a long message: zandy[m]_2018-03-04_21:21:14.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/nmzidvkqMNFwvCIKxVYPnnQD>
<zandy[m]> ohh
<MichaelRaskin> The IRC tradition is to post hand-written multi-line messages line by line.
<jeaye> Long live IRC.
<zandy[m]> I'm trying to set up SSL on nixos with a very simple configuration
<MichaelRaskin> (For copy-pasted text a multiline matrix message is just as good as a link)
<Myrl-sak1> MichaelRaskin: Is it followed by an auto-ban after 4 lines?
<zandy[m]> http://dapp.science/ works fine
<zandy[m]> https://dapp.science/ can't connect
kelleyNif has joined #nixos
<zandy[m]> am i doing something obviously wrong? i'm very new to nix
<MichaelRaskin> Myrl-sak1: I said hand-written, and I meant sending them as you type them.
muzzy__ has joined #nixos
<gchristensen> zandy[m]: your AWS security group maybe doesn't permit port 443
<clever> zandy[m]: try systemctl restart nginx, then try the url again
<makefu> zandy[m]: "can't connect" is normally means firewall issues
<clever> zandy[m]: and also, port 443 is blocked, security groups on aws
<makefu> wow gchristensen was faster again :D
<zandy[m]> oh shiiiit
<zandy[m]> its totally the security group
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #36312: gtk3: 3.22.26 → 3.22.28 (master...gtk3-update) https://git.io/vAHPL
NixOS_GitHub has left #nixos [#nixos]
<zandy[m]> i feel so silly
<gchristensen> security groups make fools of us all :)
<zandy[m]> thanks clever !!
<clever> * SSL certificate problem: self signed certificate
<clever> zandy[m]: i believe you need to restart nginx now
<gchristensen> heads up: ofborg will stop processing new tasks for a little bit while I move its infra.
<makefu> and probably the acme service as well
knupfer has quit [Remote host closed the connection]
<clever> makefu: the acme one runs itself on rebuild-switch, and at regular intervals
robstr has quit [Remote host closed the connection]
<zandy[m]> hmm
<zandy[m]> i restarted nginx like this: systemctl restart nginx
<clever> makefu: but nginx has to come up with an example.com cert for acme to work, and acme doesnt reload nginx
knupfer has joined #nixos
<tnks> hmm... I'm not sure the priority on nix-serve can be configured.
<clever> zandy[m]: check `journalctl`, scroll to the end and see if there are any acme related errors
<clever> tnks: yeah, its hard-coded to 30, youll either want a package-override, or a reverse proxy that serves a different nix-cache-info and proxies the rest
coot_ has joined #nixos
<zandy[m]> i don't see anything about acme
<tnks> clever: seems easier to patch the source and rebuild it.
<clever> zandy[m]: scroll up some, maybe an hour or 2
<zandy[m]> i guess my very simple nix configuration doesn't get my cert signed by a CA?
<tnks> clever: what I'm noticing is the cost of bzipping everything seems like it's slower than my network delay.
<tnks> at which point, I think nix-serve should have a higher number than cache.nixos.org.
<makefu> zandy[m]: it should as you have enabled acme (letsencrypt)
acertain has quit [Ping timeout: 260 seconds]
<clever> tnks: you can either patch it to use bzip2 -1 which is faster, or just change out the entire compression algo for something faster
acertain has joined #nixos
Fare has quit [Ping timeout: 252 seconds]
<zandy[m]> lots of acme stuff
<zandy[m]> going through it now
<makefu> zandy[m]: check out journalctl -xu acme-dapp.science.service
<makefu> ah
<makefu> you did already :D
<makefu> zandy[m]: can you run nix-shell -p nix-info --run nix-info
<zandy[m]> i think maybe the issue is that i didnt have DNS records pointing dapp.science at my host when i first created this cert
<zandy[m]> yeah im super curious about that command
<clever> zandy[m]: ah, then youll need to wait for lets encrypt caches to expire, then it can retry
<zandy[m]> error: undefined variable ‘nix-info’ at (string):1:66
<zandy[m]> is the result i get
<zandy[m]> i guess nix-info doesnt come default?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth closed pull request #36147: [WIP] perl-packages.nix updated to actual CPAN versions [staging] (staging...perl-packages-update-3) https://git.io/vA1rS
NixOS_GitHub has left #nixos [#nixos]
<makefu> TOS hash mismatch. Found: cc88d8d9517f490191401e7b54e9ffd12a2b9082ec7a1d4cec6101f9f1647e7b.
<makefu> looks fishy
<makefu> my guess is that your acme client is old
<gchristensen> sounds like your channel is old in general, that'd cause the nix-info problem too
<makefu> exaclt
<Myrl-sak1> clever: Ping. Hopefully for the last time.
<clever> Myrl-sak1: pong
<zandy[m]> hmm
<tnks> man, I didn't realize that nix-serve was so inactive of a codebase... and also a tiny Perl script.
<tnks> am I looking at the right one? https://github.com/edolstra/nix-serve
<Myrl-sak1> clever: nixos-install fails due to nix.conf, what should I do with that?
<zandy[m]> oh yeah nix-channel --update fixed it :)
<clever> Myrl-sak1: what exactly does it fail with?
lord| is now known as often
often is now known as lord|
<Myrl-sak1> clever: nixos-install registers to the mounted nix/store even at failure, right?
<Myrl-sak1> Oh god no
<Myrl-sak1> Welps. Time to do this again.
dcci has joined #nixos
<Myrl-sak1> Oh wait no.
<Myrl-sak1> I have nixos-install --chroot working.
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
chisui has quit [Ping timeout: 260 seconds]
endformationage has quit [Ping timeout: 268 seconds]
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth closed pull request #28348: androidsdk: put license hashes to nix store (master...androidsdk-license-hashes-in-nixstore) https://git.io/v7xxU
NixOS_GitHub has left #nixos [#nixos]
hiratara has quit [Ping timeout: 252 seconds]
Synthetica has joined #nixos
<Synthetica> I get `warning: unknown setting 'signed-binary-caches'` when I'm trying to `sudo nixos-rebuild switch`, anyone else getting that?
pxc has joined #nixos
<Myrl-sak1> So
<clefru> Synthetica: same here.
<Myrl-sak1> My /mnt/nix/store seems to be complete.
<clefru> probably the nix-2.0 upgrade
<Myrl-sak1> But --chroot nixos-rebuild doesn't work
<Myrl-sak1> Err
<Myrl-sak1> nixos-install -chroot
<Myrl-sak1> nixos-rebuild switch
<Myrl-sak1> Gets me "parent directory does not exist"
hiratara has joined #nixos
<Synthetica> clefru: But I'm not on 2.0 according to `nix-env --version'
<Synthetica> `1.11.16
<clever> Myrl-sak1: try a cd / after you chroot
<clever> Myrl-sak1: or try just normal nixos-install
acertain has quit [Ping timeout: 260 seconds]
alex`` has quit [Quit: WeeChat 2.0.1]
orivej has quit [Ping timeout: 240 seconds]
acertain has joined #nixos
lexwhere has quit [Ping timeout: 260 seconds]
<Myrl-sak1> clever: Is it safe to delete /nix/var/nix/profiles?
<Myrl-sak1> It's interfering with my nixos-rebuild
<clever> Myrl-sak1: that will reset all generations, so nix-env and nixos state is wiped clean
<Myrl-sak1> clever: I mean a system-*-link
<clever> those are safer to just wipe
<Myrl-sak1> "too few arguments" on nixos-rebuild switch
muzzy__ has quit [Ping timeout: 245 seconds]
<Myrl-sak1> Oh wait. Fixed it.
<Myrl-sak1> Or not.
jtojnar has quit [Quit: jtojnar]
acertain has quit [Ping timeout: 260 seconds]
jtojnar has joined #nixos
<ryantm> Synthetica: yes im getting that warning too
acertain has joined #nixos
Neo-- has quit [Ping timeout: 260 seconds]
<Myrl-sak1> Yep, i get a too few arguments error out of nowhere.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nioncode has joined #nixos
<clefru> Synthetica: nixos-rebuild doesn't use the installed nix version for evaluation I think.
<Synthetica> (It turned out to just take longer than I expected, it wasn't blocking)
<Synthetica> Even though I'm now running into #36268
FRidh2 has quit [Quit: Konversation terminated!]
<gchristensen> ofborg will process new commands starting now. I'm still working on setting up evaluators and builders on the new infra
<nioncode> I'm preparing a PR for making conky compile with pulseaudio support. however, when trying to build my modified module (nix-build -A conky), I receive gcc errors (e.g.: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]). I assume conky gets built with a compiler that is too new and does not have a C++ standard set explicitly. these are my first days with nix[os], so I don't know what to do
<nioncode> now. can somebody aid me in the right direction?
oahong has quit [Ping timeout: 240 seconds]
<manveru> why does it treat warnings as errors?
knupfer has quit [Ping timeout: 276 seconds]
<nioncode> I don't know, but there are also 'proper' errors in there, e.g.: 'function' in namespace 'std' does not name a template type
kelleyNif has quit [Quit: Leaving.]
<Ralith> is there a standard way to get nix to give me a debug build of a library?
oahong has joined #nixos
<nioncode> actually the compilation seems to be an upstream issue (#422), but how did conky then end up in the binary cache?
kelleyNif has joined #nixos
joelpet has quit [Remote host closed the connection]
<Dezgeg> maybe it only happens in code which is not build if pulseaudio support isn't enabled?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm opened pull request #36315: harfbuzz: 1.7.1 -> 1.7.5 (master...auto-update/harfbuzz) https://git.io/vAHDv
NixOS_GitHub has left #nixos [#nixos]
<nioncode> no, I just retried without pulseaudio support, which results in the same error
<tnks> where are the Nix::* Perl libaries defined.
<tnks> Nix isn't using Perl any more, right? So are these libraries being maintained?
<tnks> (I'm asking with respect to thinking about my options for patching nix-serve).
simukis has quit [Ping timeout: 268 seconds]
Fare has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<clever> tnks: one min
<tnks> clever: I found the Perl modules in the Nix repo.
<tnks> but now, I'm wondering if it's really maintained with respect to Nix 2.0.
<clever> line 145 adds them for 2.0
<clever> ah, it just builds the perl subdir of the nix its pointed at, with some perl flags
<tnks> right.
<tnks> I think I'm doomed to write Perl now.
<clever> rewrite it in c++!
<clever> its probably faster to remake it then to learn perl :P
<tnks> Perl and C++ are the same learning-wise for me.
<MichaelRaskin> Depends on whether you want to write Perl or also read it
michas_ has quit [Ping timeout: 240 seconds]
<tnks> It's not a lot of code backing nix-serve.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth reopened pull request #36147: [WIP] perl-packages.nix updated to actual CPAN versions [staging] (staging...perl-packages-update-3) https://git.io/vA1rS
NixOS_GitHub has left #nixos [#nixos]
<MichaelRaskin> Right, the best case to have nix-serve updated is to reimplement it again
chocopuff298 has quit [Quit: WeeChat 2.0.1]
<tnks> I'd prefer Haskell to C++ by a long shot.
<clever> tnks: thats also an option
<clever> tnks: it could even be an extension to my cachecache project
joelpet has joined #nixos
<clever> tnks: right now, cachecache needs a list of upstream caches, but it could also have a mode for /nix/store
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vAHye
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 9c0e9f6 Joachim Fasting: tor: initial updateScript...
<tnks> clever: right. and then cachecache would just become cache... which I think should be named nix-cache.
<clever> tnks: though its also caching upstream caches
jackdk has joined #nixos
lopsided98 has quit [Remote host closed the connection]
rihards has quit [Quit: rihards]
<tnks> okay, then keep them separate, I guess.
Tobba has quit [Ping timeout: 252 seconds]
lopsided98 has joined #nixos
<clever> oh, random thought, use the old nix-serve, behind cachecache
<clever> and let cachecache, cache the nix-serve output
<tnks> part of me can't stand that nix-serve recalculates signatures needlessly.
<tnks> I'm pretty sure I just want to do the right thing and not do that at all.
<tnks> for a Nix 2.0 future.
<clever> one thought i had, nix-serve needs read access to your secret to sign things
<clever> what if i exploit nix-serve and gain control of the process?
<clever> i also gain access to your secret key
<clever> with 2.0, you nix-daemon can sign when builds finish, then the signature is just in db.sqlite
<clever> you could even rotate the key every year, and know for sure, it was signed prior to X, and that secret has since been destroyed
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vAHyq
<NixOS_GitHub> nixpkgs/master 7bffe53 Bignaux Ronan: caprice32 : init at unstable-2018-02-10 (#35008)
NixOS_GitHub has left #nixos [#nixos]
<tnks> clever: why rotate the key? It seems like that would just break caches, right?
ottidmes has joined #nixos
<clever> just an optional thing you could do
<clever> you would have to share every public you have made, and publish them ahead of time
<clever> but it would add some timestamp like features
<tnks> yeah, I see what you mean.
<clever> the secret for 2017 has been destroyed, so no matter how badly it gets exploited, you can trust the signatures from 2017
<clever> as an example
<tnks> okay, so not have to rewrite all the old signatures, and just serve them up as new ones as accessed?
<tnks> lazily?
asuryawanshi has joined #nixos
<tnks> I might not be following exactly.
<clever> sign things when they are built, and maybe also add extra signatures over time?
<ottidmes> clever: So far I have only used kexec within the initrd where I do some cleanup, but not much, do you know what is the best practice here. Should I try to safely kill and unmount as much as possible before kexec'ing?
<tnks> clever: can the sqlite table handle multiple signatures?
<clever> ottidmes: kill isnt really needed, but umount/close all filesystems, and sync, before you kexec
lopsided98 has quit [Remote host closed the connection]
<clever> tnks: i think the code mentioned it being a space seperated list
<tnks> clever: interesting.
<tnks> so when I do 'nix copy-sigs -s https://a -s https://b --all) it might get signatures from a, b, or both?
<gchristensen> update: I _think_ all ofborg things should be normal now.
lopsided98 has joined #nixos
<tnks> and the signatures from a and b might even be the same?
jackdk has left #nixos [#nixos]
<clever> tnks: yeah
<ottidmes> clever: Yeah, that is actually what I am doing in the initrd right now as well, I only killed the processes as well when I did that kernel poweroff in initrd
<tnks> clever: okay, I think I'm on a path now to reverse engineer the sqlite tables, and the Perl code base.
<tnks> well, maybe not reverse, but look at the code and play around with it all.
<clever> tnks: id also check to see if you can query the signature over the nix-daemon protocol
<clever> tnks: the same way you can nix-store --query --hash
<tnks> clever: is the nix-daemon protocol documented somewhere?
<tnks> or just in code?
<clever> tnks: only in code
<ottidmes> clever: Is what you are discussing related to the warning I got when trying out Nix 2.0 with substitutors: warning: substituter 'ssh://root@server' does not have a valid signature for path
<tnks> clever: where's the code?
asuryawanshi has quit [Ping timeout: 240 seconds]
<clever> tnks: one min
<clever> ottidmes: not sure
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vAHy7
<NixOS_GitHub> nixpkgs/master da134f8 Roel van Dijk: opencv: flag to enable tbb...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 28b48fd Joachim F: Merge pull request #36170 from LumiGuide/feat-opencv-tbb...
<gchristensen> lol cool, rust is now in the build path of emcas
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
vcunat has quit [Quit: Leaving.]
<clever> tnks: this is the main loop in nix-daemon, that reads an operation code, and handles it
<clever> tnks: there is a few more reads before that, which deal with the handshake
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #36154: Keybase 1.0.44 (master...keybase-1.0.44) https://git.io/vAMIl
NixOS_GitHub has left #nixos [#nixos]
<clever> tnks: if nix is ran as root, it will directly use local-store
<clever> tnks: if nix is ran without root, it uses the nix-daemon protocol over a unix socket to proxy everything over, and the daemon uses local-store
<clever> tnks: and a similar protocol us used for `ssh user@host nix-store --serve [--write]`
<clever> so you can push/pull closures, and initiate builds remotely
<tnks> there's some kind of ssh-ng:// too.
<tnks> which I think uses 'nix-daemon --stdio'
<clever> ah, that sounds new
<tnks> next generation, it says.
fragamus has joined #nixos
<clever> related, nix-store isnt always in $PATH for non-interactive shells
<elvishjerricco> Looking into having Hydra push the cache to S3. How does it know the AWS credentials required? Just environment variables?
pxc has quit [Ping timeout: 252 seconds]
<clever> so if you 'ssh user@host' nix works fine, but if you 'ssh user@host nix-store --help' it fails
<clever> which causes issues with build slaves
<tnks> clever: just to avoid annoyances with ssh keys, I was hoping to just have a simple HTTP-based service.
<clever> tnks: yeah, plain http is best for a simple binary cache
<tnks> I'm using the ssh-style substituter for 'nix copy --to' to get binaries from my builder to my cache.
<tnks> I think, at the end of the day, we just need a modernized nix-serve alternative.
<ottidmes> tnks: How did you prevent the valid signature for path error for that?
<clever> ottidmes: oh, that error, is your nix-daemon on 1.11 still?
MichaelRaskin has quit [Ping timeout: 260 seconds]
<tnks> ottidmes: I haven't debugged it all... but it works in a Docker cluster... but doesn't work when I connect to that cluster from a laptop.
<ottidmes> clever: Not sure, I downgraded back to 1.11 after giving up, but I did restart nix-daemon after upgrading to 2.0pre
<clever> ottidmes: is the client 2.0 still? realpath $(which nix-store)
fouric has quit [Quit: WeeChat 1.9.1]
<tnks> All my work is piloting a 2.0-is-here world.
<tnks> So even this hypothetical nix-serve replacement I'm talking about. I have no real interest making it backwards compatible with Nix 1.0.
<ottidmes> clever: When I was trying to fix the error, they all reported 2.0pre for their version, I did not check the paths, but I doubt that they would point to 1.11 and report 2.0pre as version
fouric has joined #nixos
aarvar has left #nixos [#nixos]
<clever> ottidmes: double-check to see what nix-store your using on each user
<avn_> tnks: so nix-serve don't works with 2,0?
<tnks> avn_: it works... but hasn't been modernized to take advantage of the new signatures design.
<elvishjerricco> Am I going to need to read Hydra source code to figure out how it authenticates with S3?
<clever> avn_: nix 2.0 saves signatures to db.sqlite when it downloads things, but nix-serve still re-signs everything it serves
<tnks> avn_: so unless you ignore signatures altogether, it spins a lot of CPU bzipping everything, not to mention the calculation isn't really needed if there's already signatures in the Nix store.
<ottidmes> clever: I updated all 3 test machines and double checked with nix-store --version at the time, are you sure it has to do with version mismatch, I mean, I think it is just misconfiguration on my end somewhere, shouldn't I have to specify with which key it should sign? I did set secret-key-files though, but since it is plural files, I doubt it is used to sign
<clever> ottidmes: oh, is this with local builds, or copying between machines?
winem_ has quit [Quit: No Ping reply in 180 seconds.]
<avn_> I see, just I use nix-serve to roll-out builds to others my in-house machine (I actually should use nixops here I think)
<ottidmes> clever: 3 machines, 2 function as cache as well, so just copying between machines to prevent building costly things
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantm closed pull request #36315: harfbuzz: 1.7.1 -> 1.7.5 (master...auto-update/harfbuzz) https://git.io/vAHDv
NixOS_GitHub has left #nixos [#nixos]
winem_ has joined #nixos
<clever> ottidmes: for the binary caches, try to query the http://host/hash.narinfo file with curl
<tobiasBora> Hello !
<ottidmes> clever: I had it working with nix-serve and binary caches, but not with substituters = ssh://root@server for example
<clever> ottidmes: ah, ive only gotten signing working with nix-serve and hydra
<acertain> is there any way to get nix-shell to take a package set (i.e. nix-shell -p qt5)?
<tobiasBora> I was curious to know if some work has been done to port nix on android phones. I can't find anything on google
<clever> acertain: i think you can nix-shell -p '(lib.attrValues qt5)'
<ottidmes> clever: That was a puzzle as wel, but that puzzle I did solve (confusingly in Nix 2.0 the /etc/nix/signing-key.sec is not used for signing, the binary cache key had to be used, it was documented, but I assumed wrong initially)
kelleyNif has quit [Quit: Leaving.]
Fare has quit [Ping timeout: 256 seconds]
<clever> ottidmes: got a link to those docs?
kelleyNif has joined #nixos
<tnks> ottidmes: I wasn't using a substituter with the ssh:// protocol.
<ottidmes> tnks: Ah, too bad
<tnks> I was using 'nix copy --to ssh://... /nix/store/parth'
<tnks> that worked for me with the keys set up right and the right settings in /etc/nix/nix.conf.
<clever> tnks: which fields did you have to fill in?
<ottidmes> clever: https://nixos.org/nix/manual/#ch-files (search for secret-key-files) or if you meant the docs about setting up nix-serve correctly under 1.11, I have that as well
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 10 new commits to staging: https://git.io/vAHSQ
<NixOS_GitHub> nixpkgs/staging 9c64494 Peter Hoeg: appdaemon: init at 3.0.0b4
<NixOS_GitHub> nixpkgs/staging 2ca4e73 Peter Hoeg: pythonPackages.aiohttp-jinja2: init at 0.16.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 91456c6 Peter Hoeg: pythonPackages.sseclient: init at 0.0.19
<tnks> clever: it might have been overkill, but I did "trusted-users = *', secret-key-files, and trusted-public-keys.
<clever> ive had no issues with the old nix-serve
<tnks> the only issues I have with nix-serve is the ones we've been talking about.
<clever> tnks: trusted-users are allowed to import unsigned paths
<tnks> clever: are you sure? because when I had the wrong keys, it complained about bad signatures, even with trusted users.
<tnks> I can run that test again, though.
aborsu has joined #nixos
<clever> maybe 2.0 changes things some
<clever> but with 1.11,nix-copy-closure with a trusted user on the receiving end, just ignores the signatures
jqtrde_ has joined #nixos
<clever> so you can either --to root@foo, or sudo nix-copy-closure --from source
<clever> or add the right user to trusted
<jqtrde_> vim
<clever> :q!
<jqtrde_> ha, sry :)
jqtrde_ has quit [Quit: WeeChat 2.0.1]
<tnks> I really need to look at the sqlite database to see signatures.
<ottidmes> tnks: I had set secret-key-files and trusted-public-keys on both machines with the same values, maybe that was not allowed, I could try just setting the secret-key-files on the serving host and the trusted-public-keys on the receivers
<tnks> this is driving me crazy with it being so opaque.
ryanartecona has quit [Quit: ryanartecona]
<tnks> ottidmes: no, I did the same thing (same values on both), and it worked.
<ottidmes> tnks: And did you set /etc/nix/signing-key.sec?
<tnks> ottidmes: I put it in a different place, but yeah.
<tnks> /etc/nix/signing-key.sec used to be the old OpenSSL way of signing things.
<tnks> so if you had the wrong-style key there, things might not work.
<clever> the nix-store man page shows how to generate the pair
<Lisanna> nix-push --link: "This only works if dest-dir is on the same filesystem as the Nix store."
<ottidmes> tnks: Yeah I first used that key naively for secret-key-files, but it complained about a corrupt private key file, because it should have had the format used by binary cache keys
<Lisanna> Isn't /nix by default kept on its own filesystem?
<clever> Lisanna: yeah, that doesnt really work then
coconnor has quit [Remote host closed the connection]
<Lisanna> so only people who manually configure their /nix/store mount can take advantage of that?
<ottidmes> tnks: I am going to give it another try and remove /etc/nix/signing-key.sec, maybe it interferes
mizu_no_oto has joined #nixos
b has joined #nixos
fenedor has quit [Read error: Connection reset by peer]
<Myrl-sak1> clever: I got it working now. Once again, thanks. Learned a few things. Such as not forcing the nix store.
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<tnks> what's the difference between /nix/var/nix/binary-cache-v3.sqlite and /nix/var/nix/db/db.sqlite?
<clever> Myrl-sak1: also, nix-store --query --roots tells you why its alive
<tnks> my sqlite3 client can't read the later.
<clever> tnks: binary-cache-v3 is a cache of what is present on the binary caches
<clever> tnks: db.sqlite is the entire state of /nix/store/
<tnks> clever: where are binary caches?
<clever> tnks: cache.nixos.org and friends
<tnks> oh, I see.
<Lisanna> What are strategies for managing the size of a nix binary cache (e.g. as produced by nix-push or nix copy --to file://)?
<ottidmes> tnks: And with nix-serve your machine can act as a binary cache as well
kelleyNif has quit [Quit: Leaving.]
kelleyNif has joined #nixos
<tnks> ottidmes: right. I see these tables with sqlite3.
<nioncode> so I've now successfully built conky with g++ 7.3.0 on ArchLinux, but it still fails on nixos with the error message: 'function' in namespace 'std' does not name a template type
<nioncode> how can I debug this further?
<tnks> I need another client to open db.sqlite? I just guessing.
<Lisanna> e.g., how does hydra prevent its binary cache from getting too big?
kelleyNif has quit [Client Quit]
kelleyNif has joined #nixos
aborsu has quit [Quit: aborsu]
jqtrde_ has joined #nixos
<clever> [nix-shell:/nix/var/nix/db]# sqlite3 db.sqlite 'select sigs from ValidPaths where path = "/nix/store/b46sv85mp79xww7q31fv3cpz0c0zbw2n-daedalus"'
<obadz> Lisanna: it doesn't. S3 can take it :')
<clever> tnks: this, as root, is how i view a sig, right now, its an empty value since its not signed
kelleyNif has quit [Client Quit]
<tnks> clever: oh, yeah, maybe I need to be root.
kelleyNif has joined #nixos
<Lisanna> obadz well my workstation can't ):
<clever> tnks: i believe you need write to the directory to grab the right lock files for opening
<tnks> clever: okay.
<tnks> it worked as a normal user for the binary cache index db.
kelleyNif has quit [Client Quit]
<Lisanna> "nix-shell -p nixUnstable --run nix-store --help" makes me very sad
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz closed pull request #36300: LightDM: Set default user session when possible. (master...lightdm-default-user-session) https://git.io/vAHEJ
NixOS_GitHub has left #nixos [#nixos]
<clever> tnks: aha, i set secret-key-files in nix.conf, deleted a store path, then re-built it with nix-build, now db.sqlite contains a signature
<clever> tnks: so nix-daemon is already signing things after the builds finish, if configured
<tnks> clever: yeah, I think so too.
asuryawanshi has joined #nixos
<tnks> clever: having sqlite3 to inspect it really helpful.
<tnks> I haven't done this in forever.
<clever> [root@system76:/etc/nix]# nix sign-paths $(readlink /home/clever/iohk/daedalus/result) -k /etc/nix/secret-key-file