gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || 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://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
mayhewluke has quit [Ping timeout: 256 seconds]
worldofpeace_ has joined #nixos
hakujin1 has joined #nixos
NightTrain has joined #nixos
init_6 has quit [Ping timeout: 240 seconds]
hakujin has quit [Ping timeout: 240 seconds]
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
abueide has joined #nixos
hakujin2 has joined #nixos
gratin has quit [Ping timeout: 272 seconds]
<jasongrossman> fresheyeball: It seems there's also xbrightness, which allows you to set the gamma at the same time.
hakujin3 has joined #nixos
init_6 has joined #nixos
hakujin1 has quit [Ping timeout: 256 seconds]
hakujin2 has quit [Ping timeout: 240 seconds]
leotaku has quit [Remote host closed the connection]
<elvishjerricco> What preXYZ do you use if you want to change a .m4 file before autoreconf?
<elvishjerricco> preConfigure doesn't seem to work
<clever> elvishjerricco: postPatch
<elvishjerricco> Hm. Alright. Was hoping for like `preAutotools` or something, but that'll work
<elvishjerricco> oh actually yet I guess postPatch makes more sense
<clever> elvishjerricco: the autoreconfhook adds itself to the preConfigure list
leotaku has joined #nixos
<clever> and its difficult to know which preConfigure runs first
abueide has quit [Read error: Connection reset by peer]
mayhewluke has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<Dezgeg> no it doesn't? it adds a phase, not a hook
leotaku has quit [Remote host closed the connection]
<clever> ahh, was mixing that up with the hooks
kyren has joined #nixos
<clever> that makes sense then why it runs before preconfigure
* clever heads off to bed
<kreisys> gn8
<Dezgeg> but yeah it's easy to mix up preConfigure (the hook) and preConfigurePhases (the phases)
MP2E has joined #nixos
jasongrossman has quit [Ping timeout: 244 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m0rphism has quit [Ping timeout: 268 seconds]
hlolli has quit [Remote host closed the connection]
Drakonis has joined #nixos
Drakonis has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
Drakonis has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « gdal: build with xml support »: https://git.io/fN5tJ
erickomoto has joined #nixos
<erickomoto> Hello everyone! Quick question: is there a way to specify that I want to install jython but I want it to replace python? So, `!#/usr/bin/env python` should run jython. One possible way to do this is to clone nixpkgs and modify jython's default.nix, but could I do it in a different way?
<ivan> fwiw I am getting terrible speeds from cache.nixos.org again on AT&T u-verse
<ivan> e.g. 70KB/s on copying path '/nix/store/jj6hcp5a8rpbvxdkhc8b41shdc49r7r2-go-1.10.3' from 'https://cache.nixos.org'...
hamishmack has joined #nixos
jperras has joined #nixos
<ivan> because I generally don't experience peering issues I wonder if it's something with my nearby cloudfront having a slow connection to the upstream host
CcxWrk has quit [Quit: ZNC 1.7.1 - https://znc.in]
<ivan> if the TCP there is using something other than BBR, using BBR might fix the problem
<yorick> erickomoto: jython.overrideDerivation (attr: {postInstall = "cp $out/bin/jython $out/bin/python"; }) might work
thc202 has quit [Ping timeout: 260 seconds]
CcxWrk has joined #nixos
dbmikus has joined #nixos
<erickomoto> Thanks yorick! (You are a man of infinite jest!)
<erickomoto> For people that may not know the reference, it is a reference to Hamlet! I really liked your username yorick.
<{^_^}> [nixpkgs] @taku0 opened pull request #44885 → firefox, firefox-bin: 61.0.1 -> 61.0.2 → https://git.io/fN5ta
dbmikus has quit [Ping timeout: 256 seconds]
growpotkin has joined #nixos
<growpotkin> Does anyone know how to find the correct "cargoSha256" for a project? They mention in the manual to plug in a dummy value, let the build fail, and then to find the correct value in the failed build.
<growpotkin> I haven't had any luck digging it out of my failed build though.
halfbit has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
halfbit has quit [Ping timeout: 256 seconds]
leotaku has joined #nixos
leotaku has quit [Client Quit]
leotaku has joined #nixos
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lassulus_ has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
init_6 has quit [Ping timeout: 244 seconds]
lassulus has quit [Ping timeout: 260 seconds]
lassulus_ is now known as lassulus
hakujin3 has quit [Ping timeout: 256 seconds]
init_6 has joined #nixos
worldofpeace_ has quit [Ping timeout: 256 seconds]
trevthedev has joined #nixos
<trevthedev> It's me trev again, Hi :)
<growpotkin> Anyone use Rust around these parts? I keep getting hung on this "duplicate version of package `rust-crypto` vendored from two sources" line.
<trevthedev> so I realized that my Nix Computer never really used my GPU much for any 3D rendering and instead games ran off of my CPU. Which can explain why Skyrim Special Edition only ran at 15FPS on max
<growpotkin> oh yeah, you need them video drivers my dude.
<trevthedev> yea
jperras has quit [Quit: WeeChat 2.2]
<trevthedev> I was coming to ask why Wine doesn't support 64bit, and why we have to override, as installing Wine64 is a huge pain and it compiles from source and networking with steam doesn't seem to work well
<trevthedev> (I want to fully get away from Windows but I'm a gamer and I'd like to use Wine, as KVM is a bit of a pain for my liking)
<growpotkin> I mean... Steam is a clusterfuck on NixOS haha. Sorry to be the bearer of that news.
erickomoto has joined #nixos
<trevthedev> Steam native works fine for me
<growpotkin> I have my windows partition exclusively for my games
<trevthedev> and on Wine32
<growpotkin> How!?
<trevthedev> Though on Wine64 it doesn't let me download games and says "Content Unreachable"
<growpotkin> I swear I spent like a day and half trying to get mine to work.
<Drakonis> trevthedev, you can run nixos unstable
<trevthedev> I don't quite remember why or how but I did something and t installed perfectly
<Drakonis> it has an updated wine package that provides the correct binaries
<trevthedev> does unstable have wine64?
<MP2E> probably need nixos unstable for steam to work
iyzsong has joined #nixos
<Drakonis> it has 64 bit and Wow
<trevthedev> Steam native works fine on stable here
<trevthedev> Ah
<trevthedev> thanks
<Drakonis> Wow lets you do 32 and 64 on the same install
worldofpeace_ has joined #nixos
<Drakonis> also wine staging
<Drakonis> if you're really into running newer software
<trevthedev> thanks :)
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trevthedev> there's some sort of "name collision" issue when I try to download from the unstable channel
<Drakonis> oh yeah a key detail here
<Drakonis> it is a subpackage for wine
<trevthedev> oh
<trevthedev> oh?*
<Drakonis> wineWowPackages
<trevthedev> Ah, thanks :)
<Drakonis> it will probably default to stable
<Drakonis> you may want to append .staging or .unstable depending on which one you need
<trevthedev> as long as I can do 64 I'm fine XD
<Drakonis> steam is by default 32 bits
<trevthedev> yea
Izorkin has quit [Ping timeout: 244 seconds]
silver has quit [Read error: Connection reset by peer]
sir_guy_carleton has joined #nixos
Anton-Latukha has quit [Quit: Leaving.]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmeredith has joined #nixos
erickomoto has joined #nixos
erickomoto has quit [Client Quit]
hamishmack has joined #nixos
alexteves has quit [Remote host closed the connection]
<dmj`> why do I get this on nixos
<dmj`> warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
<emily> because bugs
<emily> (as i undersatnd it)
<dmj`> :(
<trevthedev> My drivers are still downloading xd
<fresheyeball> dmj`: are you mr miso?
<trevthedev> how long does amdgpu-pro take normally?
<dmj`> fresheyeball: lol
<fresheyeball> no?
<dmj`> fresheyeball: yea
<fresheyeball> well all righty then
<fresheyeball> now I know how to recognize you in more place
<dmj`> fresheyeball: ;)
<fresheyeball> places*
<dmj`> fresheyeball: trying to set my hydra back up
<dmj`> and my acme certs aren’t renewing on nixos
sigmundv has quit [Ping timeout: 240 seconds]
jasongrossman has joined #nixos
<dmj`> waiting for clever to wake up
<dmj`> haskell packages seems to be a garbage fire right now
<dmj`> cabal2nix is broken
<fresheyeball> dmj`: what you talking about?
<fresheyeball> I have such good happy success
<dmj`> fresheyeball: what channel
<fresheyeball> 18.03
<fresheyeball> for projects I pin to a hash
<fresheyeball> as in a git hash
<dmj`> right
<fresheyeball> what are you experienceing?
<dmj`> I’m on nixpkgs-unstable
<fresheyeball> wwwwhhhyyyyy?
<dmj`> the lastest hash
<dmj`> because nixpkgs-unstable is relatively stable
<fresheyeball> then use a different hash haha
<fresheyeball> just rev back a bit
<dmj`> I’m drinking that channel kool-aid rn
<fresheyeball> dmj`: ooo, I never touched the stuff
<dmj`> yea, its kind of like pulling the rug out from under you when you update
<dmj`> I get the whole lets be like “sudo apt-get update"
<dmj`> but so much for reproducability
<fresheyeball> uh, I have a better idea
<fresheyeball> how about lets be as reproducible as possible
<fresheyeball> and not be imperative that way
iyzsong has quit [Read error: Connection reset by peer]
<dmj`> I guess I have too much faith in the curation process
<fresheyeball> dmj`: I have an alternative you can consider
<fresheyeball> do you know about the <> syntax?
<dmj`> fresheyeball: I usually pin
<dmj`> yes, <nixpkgs> is a path
<fresheyeball> right
<fresheyeball> I just add different ones to my NIX_PATH
<fresheyeball> basically serves the purpose of pins
<fresheyeball> er
<fresheyeball> serves the purpose of channels I mean
<fresheyeball> nix-env -f "<nix-master>" -iA nixos.foo
<dmj`> yea, that’s cool
<dmj`> I like that
<fresheyeball> it puts you in control
<fresheyeball> I have projects that are pinned to things
<fresheyeball> and sometimes I just want easy access in the repl
<fresheyeball> so I path it
<fresheyeball> <nix-myproject> = /path/to/project/specific/pkgs.nix
<fresheyeball> nix repl often seems to be the only thing between me, and making clever hate me
<fresheyeball> dmj`: do you know what perl stuff comes pre-installed on nixos?
Mr_Keyser_Soze has joined #nixos
<dmj`> I like control
* dmj` runs away from perl stuff
<dmj`> fresheyeball: like hydra?
<dmj`> it’s not pre-installed
<dmj`> clever cannot hate, it is not in his being
worldofpeace_ has quit [Ping timeout: 256 seconds]
<emily> nixos uses a bunch of perl
jasongrossman has quit [Ping timeout: 272 seconds]
<emily> like /etc/passwd is assembled by one
<dmj`> I need to filter the git commits in nixpkgs-unstable by peti’s haskell commits
<dmj`> to get a working hash for cabal2nix
<fresheyeball> emily: so I am deploying to virtual box with nixops to test my deployment
<fresheyeball> and I am using sqitch which is a perl db migration tool
<fresheyeball> works fine to use it in a nix-build (intergration tests)
<fresheyeball> but when I deploy it wants cpan which is part of perl
orivej has quit [Ping timeout: 256 seconds]
<fresheyeball> so it can get the local timezone
<dmj`> 1qgs262nqgv0a2dxvza0j5g37fyifski6rl5xv54l764npi48nrd seems good
<fresheyeball> I added perl to the deployment but its all shouty and errory, and hates me
<fresheyeball> makes no sense to em
<dmj`> fresheyeball: are you using the nixos testing framework
<fresheyeball> nix-build is supposed to be pure
<fresheyeball> dmj`: educate my ass
<fresheyeball> so I am thinking, maybe nix-build is not so pure, and nix has tons of perl stuff hanging around on the path
Fare has quit [Ping timeout: 256 seconds]
<fresheyeball> but also, I don't know anything about perl
<fresheyeball> so maybe I am missing something obvious
<dmj`> fresheyeball: it runs it in qemu, mounts /nix/store so the VM can see it
<Drakonis> perl is a horrible horrible abomination
<Drakonis> eliminate perl
<dmj`> drakonis: preach
<dmj`> fresheyeball: but it has a perl api ;_;
<dmj`> fresheyeball: for like, integration testing, it’s the jam
Fare has joined #nixos
worldofpeace_ has joined #nixos
orivej has joined #nixos
<fresheyeball> drakonis: there is no good migration tool
<fresheyeball> drakonis: I just want it to run
<Drakonis> rip
<fresheyeball> Test::Requires [build_requires] <- tons of error look like this
<Drakonis> in this land, its probably easier to roll your own thing
<fresheyeball> dmj`: checking
Maxdamantus has quit [Remote host closed the connection]
Maxdamantus has joined #nixos
<trevthedev> wait
<trevthedev> nix finally downloaded my drivers and now it's downloading them again... wat
<growpotkin> Let me try this one again: anyone run into issues with duplicate versions in cargo building rust packages?
<fresheyeball> dmj`: why is it perl specific
<fresheyeball> gross
<trevthedev> well, guess im getting my drivers again ;-;
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maerwald> monospace font seems broken in vim, underscore is not visible, never had this on any distro
<benley> hey so if I were to try rewriting the nixos-option script in a language other than bash ... does it particularly matter what language that should be? Like does it need to a minimal build closure, or is it sufficient to have a minimal runtime closure?
mayhewluke has quit [Ping timeout: 272 seconds]
worldofpeace_ has quit [Ping timeout: 256 seconds]
<dmj`> fresheyeball: no idea
<dmj`> I am inconsolable that my ACME certs can’t renew
iyzsong has joined #nixos
aarvar has quit [Ping timeout: 260 seconds]
init_6 has quit [Ping timeout: 244 seconds]
trevthedev has quit [Quit: WeeChat 2.0]
Fare has quit [Ping timeout: 244 seconds]
<kalbasit[m]> I'm writing a pkg that provides a script to automate few tasks at work. I find `substitute` and `substituteInPlace` very useful. Is there a way to access them from a script?
hakujin3 has joined #nixos
<{^_^}> [nixpkgs] @benley opened pull request #44886 → google-cloud-sdk: include docker-credential-gcloud script → https://git.io/fN5Y1
mayhewluke has joined #nixos
hakujin3 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @benley closed pull request #44886 → google-cloud-sdk: include docker-credential-gcloud script → https://git.io/fN5Y1
revtintin has joined #nixos
Mr_Keyser_Soze has quit [Ping timeout: 256 seconds]
jasongrossman has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c2cf0c5f4ce (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
trevthedev has joined #nixos
<trevthedev> Well, my desktop crashed xd
<elvishjerricco> fresheyeball: Build dependencies aren't automatically made runtime dependencies
<Drakonis> elvishjerricco, sucks and should be changed
<elvishjerricco> I disagree
<Drakonis> i mean
<elvishjerricco> I don't want every C project depending on GCC at runtime
<elvishjerricco> for no reason
<Drakonis> i want to have a field i can determine which runtime dependencies i need
<elvishjerricco> ohhh
<elvishjerricco> Yea that'd be nice
<Drakonis> i had some headaches with rclone-browser because of that
<Drakonis> it would get rid of a variety of dumb hacks
<elvishjerricco> fresheyeball: Anyway, so any tool that's on the path at build time (in nix-build), is only there because it's a runtime dependency of the build definition (the .drv). The runtime dependencies of a build output are determined rather stupidly: It literally scans the output for any store paths mentioned in any files and considers those to be runtime deps.
<elvishjerricco> So just referencing programs that ought to be on the path won't trigger that
simukis has joined #nixos
<hyper_ch> weird, if I upgrade to latest nixos-unstable-small, then I don't have any audio devices in kde
<dmj`> why am I getting error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<Drakonis> its immutable isn't it
<dmj`> oh, the problem was nix-repl, should have been nix repl
<maerwald> https://github.com/erpalma/lenovo-throttling-fix how do you use this under nixos
Mr_Keyser_Soze has joined #nixos
Drakonis has quit [Remote host closed the connection]
ericsagnes has quit [Ping timeout: 240 seconds]
<hyper_ch> clever: howdy
<hyper_ch> how can I rollback nix-channel to a specific commit?
<benley> maerwald: there is a much simpler thing you can do, one sec
<benley> maerwald: it just runs that wrmsr command once a minute to keep the throttling threshold set sanely
<emily> i didn't know about nixos-hardware, thanks!
<maerwald> benley: that doesn't really do the same afais
<hyper_ch> emily: what abou tit?
<benley> maerwald: not quite, yeah. I don't think anyone has packaged that lenovo-throttling-fix set of scripts for nixos but it looks like it would not be that hard
<emily> hyper_ch: it's nice to know that there's an organised repository for that kind of hardware tweak thing
ericsagnes has joined #nixos
<maerwald> benley: well, I can't really do that
<maerwald> no time or interest in getting into nixos packaging
NightTrain has quit [Quit: Lost terminal]
<maerwald> so I would chooose whatever hack works to make this run
<{^_^}> [nixpkgs] @bbarker opened pull request #44887 → ats-pkg init at 3.2.1.8 → https://git.io/fN5Ob
<benley> it's a lot less annoying than debian/ubuntu/fedora/etc packaging, for what it's worth :-P
<maerwald> doubt it
<benley> I have one of the thinkpads affected by the throttling problem, but I've just been too lazy to package up that thing
<benley> even though it would probably take like 20 minutes
<maerwald> from what I've seen nixos packaging is more annoying than gentoo packging
<benley> oh? I haven't done anything with gentoo so I can't compare
<maerwald> so getting into that for a single package is not really sane
<maerwald> well, gentoo packaging at least has very nice documentation
<maerwald> while with nix you are mostly left with semi-structure documentation blobs
<benley> nixpkgs has pretty thorough documentation; have you seen the manual?
<maerwald> yes.
<maerwald> that's why I'm saying it
<maerwald> thorough and unstructured
<joepie91> on paper, Nix packaging is extremely pleasant
<joepie91> in practice, documentation (especially regarding existing ecosystem practices) is sorely lacking, as is debugging tooling that *could* exist given the guarantees that Nix provides about the environment
<maerwald> is it even specced?
<joepie91> maerwald: define 'specced'
<maerwald> A formal specification
<joepie91> of?
<maerwald> uhm, nixpkgs
<maerwald> and how the PM behaves
<growpotkin> The nix documentation is perfect and has no mistakes, or gigantic sections that literally tell you to use depreciated code... and if you disagree you're all big babies.
<joepie91> I mean, nixpkgs is just a collection of Nix expressions that evaluate to a package set
<joepie91> there's... not really anything to formally spec
<maerwald> right and there are no community policies either
<joepie91> as to the expectations of the package manager; these *are* documented in the manual, not a formal spec, but reasonably exhaustive
<joepie91> the main issue is the bit inbetween
<maerwald> which is why nix packaging is just anarchy
<growpotkin> You say that like its a bad thing
<joepie91> ie. how to get from your goal to something that the package manager expects with reasonable efficiency
<joepie91> honestly I feel like part of the problem is that Nix is specified/documented like a package manager, but functions like a programming language
<joepie91> a lot of the things not covered by documentation seem to be a result of that mismatch
<maerwald> maybe, enough reasons for me not to get into nix packaging, it would just annoy me
<growpotkin> One thing that I always thought would really really help, is if we actually utilized the "discussion" sections of the manuals on nix.org
<{^_^}> [nixpkgs] @nek0 closed pull request #44478 → Newtonsoft.Json: 6.0.8 -> 11.0.2 → https://git.io/fNXOL
<growpotkin> I always wind up digging through github issues or something to find things that could have been discussed much more easily outside of Github's issue tracker
<joepie91> growpotkin: '
<joepie91> oops
<joepie91> growpotkin: 'discussion sections'? *
<growpotkin> Wow now of course I cant find them..
<growpotkin> Okay so on the nix manuals, usually like individual articles, there will be a button on the right that says something like "discussion". But there is never any posts in the "discussions"
<joepie91> I've... never seen that?
<joepie91> also, I don't think we've had 'individual articles' for some time now?
<growpotkin> I always thought it would have been a much nicer place to leave little comments and clarifications. Yeah hold on I need to actually find one now.
<joepie91> oh, the wiki
<growpotkin> it's the "wiki" not the manual
<growpotkin> which I just learned are different things lol
revtintin has quit [Quit: WeeChat 1.9.1]
<joepie91> growpotkin: the wiki discussion is intended for discussion of the article itself though
<joepie91> not the tooling
trevthedev has quit [Ping timeout: 244 seconds]
<joepie91> similar to discussion pages on wikipedia
<growpotkin> ah
<joepie91> (also, the horrid mediawiki syntax is enough reason for me not to use it as a regular discussion platform)
trevthedev has joined #nixos
<growpotkin> in any case, a discussion board would be super nice. As much as I love the IRC. Github Issues will have to fill the void...
<joepie91> growpotkin: like https://discourse.nixos.org you mean?L
<joepie91> :P
<growpotkin> mind blown
<growpotkin> WHY AM I JUST FINDING THIS!?
<joepie91> iirc it's recent-ish and experimental
<joepie91> but yeah, discoverability is... not great
<growpotkin> I have googled about a billion things "nix" and this has never once appeared
<joepie91> given the JS-heavyness I strongly suspect it's not very search-engine-indexable
<joepie91> it *does* have some sort of search-engine-targeted static content I believe, Discourse
<joepie91> but I've been suspecting for a while that Google and other search engines place JS-heavy sites in an alternate bucket of 'crawl less frequently' or so
<joepie91> possibly even penalizing them for loading time
trevthedev has quit [Ping timeout: 260 seconds]
jD91mZM2 has joined #nixos
trevthedev has joined #nixos
<Enzime> any idea why there's two floottys in nixpkgs
<joepie91> Enzime: convention is to provide applications as a top-level package but libraries in python-packages
<joepie91> possibly it is both? although in that case I would expect the former to use the latter
<joepie91> so probably an oversight rather than an intentional decision
<Enzime> joepie91: afaik it's just an application
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<Enzime> seems like it should be removed from python-packages.nix
<jD91mZM2> Does Nix have anything against breaking changes like removing a package?
<joepie91> jD91mZM2: as in, tooling to prevent it?
<growpotkin> Well since I haven't asked in about an hour : anybody 'round here have experience building rust packages? I'm trying to add one for "spotifyd" and I'm getting that version duplication error with Cargo.
alex`` has joined #nixos
<jD91mZM2> joepie91: I mean does breaking changes get merged etc?
<joepie91> jD91mZM2: policy in nixpkgs is, as I understand it, to maintain 'stability' on the release channels, in the sense that packages are not removed, nor upgraded to significant new versions
<joepie91> at least not without good reason
<joepie91> (potentially-)breaking changes typically get rolled into the next release
<jD91mZM2> Ah, nice
<joepie91> on `unstable`, of course, everything goes :)
<jD91mZM2> So after updating to a new stable you might need to change your config?
<joepie91> (it's not uncommon for people to install a few packages from unstable that need more regular updating)
<joepie91> jD91mZM2: yeah; you will typically get a deprecation message during evaluation if you're using an old config API
<joepie91> these changes are also listed in the release notes
<{^_^}> [nixpkgs] @Enzime opened pull request #44889 → Remove redundant flootty package and update the correct package → https://git.io/fN53D
<joepie91> I've mostly seen aliases kept around for at least one extra release cycle after deprecation
<jD91mZM2> Cool! When is the next update btw? Next month, 18.09?
<joepie91> but I don't think there's a strict policy on this
<jD91mZM2> Cool, thanks!
<jD91mZM2> I wish we could solve the environment stuff where it overwrites variables like $EDITOR first
<jD91mZM2> But I have no idea how heh
<etu> jD91mZM2: "environment.variables.VARIABLE = "VALUE";" in the config I think should work :)
<jD91mZM2> That's for all users. Although yeah maybe I should start doing that, good point
<jD91mZM2> At least for some variables, like the example I mentioned, $EDITOR
<etu> Otherwise .profile is your friend according to this: https://unix.stackexchange.com/a/377663
<jD91mZM2> That's what I'm doing currently, but it doesn't source .profile, only .xprofile
<jD91mZM2> So I source the .profile from the .xprofile but then it still doesn't work because all the global vars are set in .zshenv
<growpotkin> oh I made a zsh module for that actually if you want it
<growpotkin> that was making me crazy a few weeks back
<{^_^}> #40223 (by jD91mZM2, 13 weeks ago, merged): zsh: move setEnvironment stuff to zprofile
<jD91mZM2> Ooooooooo nice growpotkin
<growpotkin> just a sec
<trevthedev> hmm
<growpotkin> added antigen as well
<jD91mZM2> Is there any reason we're not using /etc/environment?
<trevthedev> my firewall seems to be blocking steam on wine
<trevthedev> so while I can download Steam and login and look at my library i can't download anything as it says Content Unreachable
<growpotkin> jD91mZM2: http://tinyurl.com/yafyk5tr
<jD91mZM2> How is flootty related?
<growpotkin> I think the only one that needs explanation is the "noZwc" option. There is this super annoying side effect of antigen, where it generates a .zwc file, which stops zshrc from "updating". I am sure there is some reason it is done but I just wanted to disable it. If you don't want it set noZwc = false (if you end up using antigen)
init_6 has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
<growpotkin> Oh wait I the "env" settings are actually in the existing zsh config module already haha. You don't need my module. Let me check my config for how I was doing that. its like "programs.zsh.login" or something.
<growpotkin> yeah "programs.zsh.shellInit" you can add exports there and they will end up in /etc/zshenv
<jD91mZM2> Once again, system wide
<growpotkin> oh you are trying to do user environments?
<jD91mZM2> Yeah
<trevthedev> got steam to work finally xd
<jD91mZM2> EDITOR and VISUAL and PATH are all overwritten :|
<jD91mZM2> Maybe not PATH, not sure, but at least all the other things
<growpotkin> I think I need more context. What are you trying to accomplish?
<jD91mZM2> I just want to se $EDITOR, but the global /etc/zshenv keeps overriding it
<jD91mZM2> I can set it system-wide, sure, so that's solved, yay, but there really should be a way to do it per-user
<growpotkin> oh I source my user's .zshenv at the end of my zshenv to fix that
<growpotkin> same for zshrc and vimrc and all that stuff
<growpotkin> so basically the users . files append the global configs and can overwrite some of their settings if they need to
<growpotkin> it fixes the usual behavior where the global config existing will stop the user's configs from loading at all or visa versa
orivej has quit [Ping timeout: 248 seconds]
<jD91mZM2> But then again why use /etc/zshenv and not just /etc/environment, the thing Arch and Ubuntu and everything uses
<growpotkin> because then we wouldn't feel "clever" when we make things work by hacking chains of configs together
<growpotkin> Its an important part of the process haha
<jD91mZM2> GOOD point
<emily> the answer is often that nixos predates the nicer way of doing things, I think
<emily> see also: symlink trees and environment variables over containers/overlay filesystems/etc.
<jD91mZM2> I feel like NixOS' way is better than containers
<jD91mZM2> No need to have 500 copies of your filesystem inside your filesystem
<maerwald> nixos way is much more leaky
<emily> oh, I mean more using linux namespaces
<emily> not doing things the way docker does
* jD91mZM2 googles linux namespaces
<maerwald> containers are a more consistent abstraction, but have other shortcomings
<emily> the underlying namespace technology that docker etc are based on
<growpotkin> they slow
<emily> basically, allowing you to have multiple separate root filesystem trees, etc.
<emily> they're... not slow ;w;
<growpotkin> And there is not NEARLY enough lambdas.
<jD91mZM2> I mean letting each program pretend it's in the root feels like a hack
<maerwald> what? :D
<emily> having a different view of / for every process is what plan 9 does
<jD91mZM2> What happens if you ask the user for input?
<emily> i don't think ensuring every global resource can be namespaced is a hack
<emily> although not having global resources would be ideal
<jD91mZM2> `ls /etc` for example
<maerwald> a consistent abstraction is one where the program doesn't have to know in what environment it runs in... so basically the opposite of what you said
<maerwald> nix is a hack ;)
<growpotkin> We should go back to the good ol' days before multi-programming and just have A LOT of machines around the house.
<jD91mZM2> I was thinking optimally programs would just not use root and hard-code paths
<growpotkin> No more environment issues.
<emily> well, namespaces are frankly a better security solution than the archaic unix user system, imo
<emily> but i'll certainly not disagree that linux has a lot of cruft
<jD91mZM2> Oh yeah, definitely more secure and consistent.
<MichaelRaskin> Nix uses namespaces for biulds, but we want installed Nix software to work on other distributions with user namespaces off
<{^_^}> MichaelRaskin: 3 weeks, 1 day ago <infinisil> Heh, just found out you were the one who added lib.closePropagation (which I need right now) in 2007: https://github.com/nixos/nixpkgs/commit/1bbc6fe55a2832fc1c67bb65baf365858c85f954#diff-298f9e213b5a5aa29a1c608fc5341be6R254 By now it landed in nixpkgs/lib/deprecated.nix for some reason which is why I looked it up
<growpotkin> Emily sharing a home folder with ever single other user leads to no issues.
<growpotkin> Sharing is caring.
<emily> how many systems even have multiple unix users, these days?
<emily> i mean, that represent individual people
<growpotkin> I use a few
<emily> they exist, but they're getting more niche, I think
<growpotkin> my university does
<growpotkin> we have a cluster at work
<emily> in terms of deployment there's more servers-as-cattle, and everything needs root anyway so you track every access at another level, etc.
<jD91mZM2> The fact that they exist is nice, even if they're mostly unused :^)
<MichaelRaskin> Approximately every non-desktop (and non-laptop) unix system
<growpotkin> they're awesome. Log in anywhere and all my things are there.
<emily> in terms of desktops they tend to be single-user and the user abstraction isn't really used for much beyond sandboxing/separation of concerns
<MichaelRaskin> And speaking of nicer things — overlays are fragile as hell
<jD91mZM2> Also, users are nice for a certain safety, if you trust the kernel to not be exploitable
<jD91mZM2> I've let people into my scaleway server temporarily by creating a new user with no perms
<MichaelRaskin> And pure namespace separation is more or less known to have exploits more often than something grounded in different UIDs
<emily> uid namespaces are fairly buggy, it's true :(
jasongrossman has quit [Ping timeout: 256 seconds]
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #44890 → iwd: 0.4 -> 0.6 → https://git.io/fN5s8
<maerwald> how do you add a package to ~/.nixpkgs
<maerwald> the manual says practically nothing about that directory
<maerwald> there's just random information on haskell package (and I don't see why it's even there)
<{^_^}> [nixpkgs] @vaibhavsagar opened pull request #44891 → ghc861: 8.6.1-alpha2 -> 8.6.1-beta1 → https://git.io/fN5GL
mayhewluke has quit [Ping timeout: 248 seconds]
<growpotkin> Are you asking about how to add a custom package? Or how to install a package as a user?
<maerwald> I want to add a package, as I said
<maerwald> I don't see how overriding packages helps here
<benkolera> You can add a package to the set because is is a function of record to record?
garbas has quit [Ping timeout: 248 seconds]
<maerwald> I have no idea what that means
<growpotkin> You can fill .nixpkgs.config with derivations or call packages just like you would any of the other nixpkg paths
<growpotkin> sorry "~/.nixpkgs/config.nix"
<{^_^}> [nixpkgs] @7c6f434c pushed to master « vim_configurable: make gvim command launch GUI again »: https://git.io/fN5Gc
<benkolera> So what is your intent for installing the package? For it to be nix-env installed or used to build a project? If it is the latter there's a nicer way than fiddling with nixpkgs.
<benkolera> I can write an example if I have a little more info. :)
<Enzime> maerwald: here's an example from my computer (these files are both inside ~/.config/nixpkgs)
<maerwald> finally, something useful
<maerwald> thanks
<benkolera> Thanks Enzime ! :)
<Enzime> not actually sure if you can/are meant to add new packages to nixpkgs using overlays
<Enzime> need to figure out how to do that
Izorkin has joined #nixos
<growpotkin> You can
<growpotkin> I think it's a little easier to just add to your path though
freeman42x]NixOS has quit [Ping timeout: 276 seconds]
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benkolera> Ahh. I should learn that too. :)
<Enzime> also are we meant to be adding overlays into
<Enzime> ~/.config/nixpkgs/overlays.nix
<Enzime> or ~/.config/nixpkgs/overlays/*
kyren has joined #nixos
<growpotkin> I couldn't tell you. I have all of my stuff system wide haha
<Enzime> growpotkin: how do you make system-wide overlays?
<growpotkin> add an overlays folder to your path, and then make add an "overlays.nix" in that folder
<Enzime> growpotkin: when you say path, you're referring to the nix path, right?
<growpotkin> yeah
<Enzime> are you adding it as <nixpkgs-overlays>?
<growpotkin> yes
jmeredith has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @pSub pushed 0 commits to add-missing-licenses: https://git.io/fN5Gr
growpotkin has quit [Remote host closed the connection]
mayhewluke has joined #nixos
<joepie91> jD91mZM2: you just popped up on my twitter feed with your mad-science jrust project :P
<{^_^}> [nixpkgs] @pSub pushed 177 commits to add-missing-licenses: https://git.io/fN5Gi
garbas has joined #nixos
<tertle||eltret> i just played a game of Dota on my nix machine
<tertle||eltret> graphics drivers are still an issue on Linux im afrad
<joepie91> tertle||eltret: oh, for sure
<tertle||eltret> even with the Nvidia blob, its still at least 30fps behind windows
trevthedev has quit [Ping timeout: 272 seconds]
trevthedev has joined #nixos
<maerwald> that's rarely an issue with the driver,but with the game
<maerwald> some games are faster
vidbina has joined #nixos
sophiag has quit [Ping timeout: 265 seconds]
<tertle||eltret> im not so sure
vmandela has joined #nixos
<jD91mZM2> joepie91: You're welcome :D
<jD91mZM2> I love how more people are starting to call me "mad scientist". Before jRust it was just one person. Now I must officially have that title :D
<{^_^}> [nixpkgs] @fpletz merged pull request #44669 → urh: 2.2.2 -> 2.2.3 → https://git.io/fNyXS
<{^_^}> [nixpkgs] @fpletz pushed commit from @r-ryantm to master « urh: 2.2.2 -> 2.2.3 (#44669) »: https://git.io/fN5Zk
<{^_^}> [nixpkgs] @fpletz merged pull request #44662 → libytnef: 1.9.2 -> 1.9.3 → https://git.io/fNyiV
<{^_^}> [nixpkgs] @fpletz pushed commit from @r-ryantm to master « libytnef: 1.9.2 -> 1.9.3 (#44662) »: https://git.io/fN5ZL
hakujin3 has joined #nixos
<joepie91> hehe
<joepie91> jD91mZM2: mad science best science
<joepie91> (it's a breath of fresh air amongst the thousands of blog platforms, forum systems, and boring business software)
<{^_^}> [nixpkgs] @pSub pushed to master « calibre: 3.28.0 -> 3.29.0 »: https://git.io/fN5ZY
<jD91mZM2> joepie91: True! Also there's almost nothing useful to make nowadays that hasn't already been made
<jD91mZM2> The most useful program I have is literally just a command line prompt rewritten in Rust so it's faster
hakujin3 has quit [Ping timeout: 240 seconds]
<joepie91> jD91mZM2: that one I have to disagree on :) there's lots of useful things to make, but most of them are both very finicky and economically uninteresting
<jD91mZM2> joepie91: Example?
<jD91mZM2> Btw we should move to #nixos-chat
<joepie91> yeah
<leotaku> Is it worth using nixops for 1 local server? I currently just ssh, but it's starting to annoy me.
Quiark has joined #nixos
garbas has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @basvandijk merged pull request #44356 → callCabal2nix: Passthru deriver → https://git.io/fNKQR
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fN5ZM
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @basvandijk pushed to master « cabal2nix: fix build by overriding hpack to 0.29.6 »: https://git.io/fN5Zd
<{^_^}> [nixpkgs] @srhb merged pull request #44819 → aws-okta: init at 0.19.0 → https://git.io/fNHET
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fN5ZA
gerschtli has joined #nixos
<srhb> leotaku: I'd say so
<srhb> leotaku: It's not like there's a huge cost involved.
<srhb> So it's hard not to reach the "worth it"-level
b has joined #nixos
<dhess> oh nice, that hpack fix will fix tons of stuff
garbas has joined #nixos
ng0 has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #44892 → libvirt: jansson required for qemu suppport → https://git.io/fN5nw
<maerwald> Enzime: that example doesn't work when I have 'packageOverrides = pkgs_: with pkgs_; {' without the rec
oida has quit [Ping timeout: 250 seconds]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
nioncode has joined #nixos
<{^_^}> [nixpkgs] @pSub merged pull request #44358 → Add missing licenses → https://git.io/fNKNL
<{^_^}> [nixpkgs] @pSub pushed 117 commits to master: https://git.io/fN5nb
<{^_^}> [nixpkgs] @pSub pushed 0 commits to add-missing-licenses: https://git.io/fN5nA
<nioncode> how can I make a service not start at boot, but make it possible to start it manually with `systemctl start xx`? if I set systemd.service.xx.enabled = false then the service gets masked and I can not start it manually anymore
silver has joined #nixos
<srhb> nioncode: It depends on the service a bit, but usually by altering wantedBy
oida has joined #nixos
<nioncode> srhb: so simply setting wantedBy = []? I'll try that now, but I have to rebuild VirtualBox first
thc202 has joined #nixos
<srhb> nioncode: NixOS option lists generally merge with ++, so you'll probably need lib.mkForce [] instead of just = [] :)
vmandela has quit [Ping timeout: 240 seconds]
garbas has quit [Ping timeout: 240 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
oida has quit [Ping timeout: 250 seconds]
jophish___ has quit [Quit: WeeChat 2.0]
jophish has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<vaibhavsagar> why are we building all haskell packages with profiling enabled now?
<vaibhavsagar> this seems like a recent change because 18.03 doesn't have this behaviour
garbas has joined #nixos
vmandela has joined #nixos
<cocreature> vaibhavsagar: because it’s pretty convenient when you don’t have to recompile things when you want to use profiling and having both profiling and non-profiling builds in the cache basically doubles load, see https://github.com/NixOS/nixpkgs/issues/22340
<{^_^}> #22340 (by peti, 1 year ago, closed): Build profiling libraries in 'haskellPackages' by default?
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #43068 → libdigidoc, libdigidocpp, qdigidoc updates → https://git.io/fbhYS
<{^_^}> [nixpkgs] @yegortimoshenko pushed 6 commits to master: https://git.io/fN5cp
iyzsong has quit [Ping timeout: 256 seconds]
astrofog has joined #nixos
vcunat has joined #nixos
Maxdamantus has quit [Ping timeout: 244 seconds]
Maxdamantus has joined #nixos
<hyper_ch> with latest KDE on nixos-unstable-small I don't get any audio devices :(
<nioncode> srhb: thanks, using `wantedBy = lib.mkForce []` disables autostart. sweet
<srhb> nioncode: :) Great.
MP2E has quit [Remote host closed the connection]
mayhewluke has quit [Ping timeout: 244 seconds]
astrofog has quit [Read error: Connection reset by peer]
mayhewluke has joined #nixos
<vaibhavsagar> thanks cocreature
<vaibhavsagar> is there a cachix with ghcHEAD in it that I can use?
Maxdamantus has quit [Ping timeout: 248 seconds]
Maxdamantus has joined #nixos
oida has joined #nixos
johanot has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Mic92 merged pull request #44892 → libvirt: jansson required for qemu suppport → https://git.io/fN5nw
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fN5Wv
ambro718 has joined #nixos
ennui has joined #nixos
genesis has joined #nixos
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ennui has left #nixos ["ERC (IRC client for Emacs 24.5.1)"]
ennui has joined #nixos
Maxdaman1us has joined #nixos
Maxdamantus has quit [Ping timeout: 240 seconds]
<joepie91> are we affected?
Anton-Latukha has joined #nixos
thebloggu has joined #nixos
<thebloggu> hello. I'm using nix in macOS and I can't install the telnet package even though I can find it in the search online. can someone help me understand why?
<tilpner> thebloggu - How are you trying to install it?
<tilpner> (If not using -A, the name is inetutils)
<aminechikhaoui> looks like telnet isn't supported on darwin
<thebloggu> tried both `nix-env -iA nixos.telnet` and `nix-env -I telnet`. inetutils worked but install a different ping utility that somehow doesn't have privileges to open sockets on normal users. I wanted just telnet
<aminechikhaoui> it has platforms = stdenv.lib.platforms.gnu; so I guess only linux is supported
<thebloggu> aminechikhaoui: oh ok. can you tell me how can I check it? from the online package search I couldn't find the type of build and I assumed it supported all
<tilpner> > telnet.meta.platforms
<{^_^}> [ { kernel = { families = { bsd = <CODE>; }; }; } { kernel = { families = { darwin = <CODE>; }; }; } { kernel = { _type = "kernel"; execFormat = { _type = "exec-format"; name = "elf"; }; families = { ...
<tilpner> That includes darwin
<aminechikhaoui> hm
<tilpner> ,locate bin telnet
<{^_^}> Found in packages: telnet, busybox
<thebloggu> tilpner: btw, I didn't give you the output for `nix-env -iA nixos.telnet`: "error: attribute 'nixos' in selection path 'nixos.telnet' not found"
<tilpner> thebloggu - nix-env -iA nixpkgs.telnet
<tilpner> But that will still give you ping
<tilpner> There is no package that provides just telnet. You could create one, that just copies telnet from the telnet package
<thebloggu> tilpner: right: `ping: Lacking privilege for raw socket.`
<tilpner> I don't know how to have suid ping on darwin
<thebloggu> tilpner: ok, but could I ask you to guide me through it? I just installed nix so I'm still trying to understand how to work with it
<tilpner> First, do you want to have telnet installed globally? Maybe a nix-shell works for you?
<thebloggu> tilpner: for now it makes no difference for me, I'm the only user of my machine. whatever is easier or a best practice
<thebloggu> tilpner: I might review it later
<tilpner> > runCommand "just-telnet" {} "mkdir -p $out/bin; cp ${telnet}/bin/telnet $out/bin/"
<{^_^}> "<derivation /nix/store/n9kd8zb2wmg08a42c6pd0khilh0cfymh-just-telnet>"
<tilpner> That defines a package that contains just telnet, not ping
<tilpner> The interesting part will be installing it cleanly
<tilpner> Do you know about overlays, or already have a nixpkgs fork?
ambro718 has quit [Ping timeout: 244 seconds]
<thebloggu> tilpner: no
<tilpner> Then for now we'll just put it in a file, and you can clean that up once you learn about overlays
<thebloggu> tilpner: ok. I created telnet.nix and pasted the command above
Maxdaman1us has quit [Ping timeout: 240 seconds]
<tilpner> That's not quite enough. You need put "with import <nixpkgs> {};" above that, the bot implicitly does the same
<tilpner> Then, nix-env -if telnet.nix
<thebloggu> tilpner: ok, just got: (..) "error: packages '/nix/store/b6qdsrzwvqf7byw47mm2v49351ldkda6-just-telnet/bin/telnet' and '/nix/store/48f8g4gkhyqj66qhi5fx0aik2w6bw4wj-inetutils-1.9.4/bin/telnet' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)" (..)
<thebloggu> probably because I have inetutils installed?
<tilpner> You still have the old inetutils package installed. Our new package conflicts with it
<thebloggu> tilpner: ok
<tilpner> You could uninstall inetutils if you don't need anything but telnet from it
<thebloggu> tilpner: done. I have just-telnet installed
<tilpner> (You don't need to, but I have never set priorities with nix-env, so I'm guessing too)
orivej has joined #nixos
<tilpner> Good. You should have telnet now, without ping or any of the other tools
<thebloggu> tilpner: ok, working fine, thank you. just tested both and it works as expected
Maxdamantus has joined #nixos
<thebloggu> tilpner: just a question, I imagine this wouldn't be updated with nix-env --upgrade?
<thebloggu> tilpner: or is it just like any other package?
<tilpner> I don't think it would be
<tilpner> I don't think I've ever used nix-env --upgrade, so I don't really know what it does
<tilpner> It might work if you overlay just-telnet
<tilpner> But not the way we've done it right now
<thebloggu> tilpner: from what I've seen it upgrades all the packages in the environment. but I might be wrong. I'm used to the traditional yum, apt
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5fc5e0642ba (from 44 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<thebloggu> tilpner: I don't really have config files for my environment
<tilpner> Something like that might be better for you
<thebloggu> tilpner: hmm ok, thank you very much! I'll try it
<thebloggu> tilpner: I'll also read about overlay
Maxdamantus has quit [Ping timeout: 268 seconds]
<thebloggu> tilpner: btw, should my nix file be somewhere specific? I have it in my home folder but I imagine there's a standard dir for these
<tilpner> thebloggu - I don't think there is
<thebloggu> tilpner: ok, thank you once again!
karltk has joined #nixos
leotaku has quit [Remote host closed the connection]
Maxdamantus has joined #nixos
thebloggu has quit [Ping timeout: 252 seconds]
ris has joined #nixos
jtojnar has joined #nixos
iyzsong has joined #nixos
jmeredith has joined #nixos
iyzsong has quit [Ping timeout: 260 seconds]
witchof0x20 has quit [Ping timeout: 250 seconds]
ng0 has joined #nixos
johanot has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @markuskowa opened pull request #44894 → Fix licenses (https://github.com/NixOS/nixpkgs/issues/43716)https://git.io/fN58j
garbas has quit [Ping timeout: 272 seconds]
garbas has joined #nixos
<{^_^}> [nixpkgs] @markuskowa opened pull request #44895 → sshuttle: 0.78.3 -> 0.78.4 → https://git.io/fN54C
<vmandela> hi, how would I test any changes to nixos/modules/system/boot/loader/grub/install-grub.pl ?
<srhb> vmandela: If it's covered by the installer test nix-build nixos/tests/installer.nix
<{^_^}> [nixpkgs] @cdepillabout opened pull request #44896 → add derivation for the virtualbox oracle extension pack → https://git.io/fN544
<{^_^}> [nixpkgs] @matklad opened pull request #44897 → Make it possible to override VSCode version → https://git.io/fN54B
leotaku has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<vmandela> srhb: thanks. I am trying to see why the cloned configurations are not showing up in the grub menu.
<{^_^}> [nixpkgs] @LnL7 opened pull request #44898 → vault: 0.10.3 -> 0.10.4 → https://git.io/fN54R
<leotaku> Is there any workaround for this (https://github.com/NixOS/nixops/issues/864) problem yet?
<{^_^}> nixops#864 (by alanpearce, 27 weeks ago, open): switch-to-configuration fails on none backend
orivej has joined #nixos
garbas has quit [Ping timeout: 268 seconds]
johanot has joined #nixos
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
jD91mZM2_ has joined #nixos
jD91mZM2 has quit [Ping timeout: 240 seconds]
jD91mZM2_ is now known as jD91mZM2
aarvar has joined #nixos
garbas has joined #nixos
symphorien has joined #nixos
wucke13 has joined #nixos
pie_ has quit [Ping timeout: 260 seconds]
<wucke13> I have a problem with steam. One game does not start, exiting with libGL errors immediately. However, other games and steam itself run fine. 32Bit OpenGL and Pulse packages are enabled. Had someone something simialary?
<cocreature> wucke13: which game?
<wucke13> synergy does not run, hl2 does run well.
<cocreature> don’t know anything about synergy (never tried to run it) but some games have wrapper scripts that reset ld_library_path instead of only adding to it. in that case, changing the wrapper script usually works
<wucke13> Even more odd: i have two systems sharing almost everything configuration wise. on the one synergy runs fine, on the other not. Most significant difference, the one system has a nvidia gpu and nvida driver (synergy runs well), the other intel integrated gpu (synergy does not run well).
ambro718 has joined #nixos
erikl has joined #nixos
<wucke13> Good point though cocreature. Synsergy comes with a launcher script.
pie_ has joined #nixos
ericsagnes has quit [Ping timeout: 256 seconds]
<wucke13> cocreature: would you mind taking a look at the script? For me it looks like ld_library_path is extended, but not reset... https://pastebin.com/d5DEKHQE
<{^_^}> [nixpkgs] @timokau merged pull request #44894 → Fix licenses (#43716) → https://git.io/fN58j
<{^_^}> [nixpkgs] @timokau pushed 7 commits to master: https://git.io/fN5BR
<leotaku> Does anyone know if there is any workaround for this (https://github.com/NixOS/nixops/issues/864) problem yet?
<{^_^}> nixops#864 (by alanpearce, 27 weeks ago, open): switch-to-configuration fails on none backend
johanot has quit [Remote host closed the connection]
<cocreature> wucke13: hm yeah that looks fine, sry not sure what the problem is
<wucke13> I have a hotfix. In `.local/share/Steam/steamapps/common/Synergy/bin/` rm or mv the file `libstdc++.so.6`. Oddly, it works fine now.
<wucke13> Many thanks to you, cocreature
<teto> haskell related, I am trying to use developPackages { source-overrides = { ghc-mod = "5.7.0.0" }} but nix-shell prints "5.8.0.0' when dealing with ghc-mod. Any hint ?
<{^_^}> [nixpkgs] @bhipple opened pull request #44899 → antlr: fix license → https://git.io/fN5BH
<erikl> In NixOS, is it safe to assume that everything except the home folder and the nix configuration files (e.g., the one in `/etc/nixos/configuration.nix`) can be regenerated by `nixos-rebuild`?
<srhb> erikl: /var typically holds databases and other volatile, stateful stuff that cannot be reconstructed.
<MichaelRaskin> And stuff managed by nix-env is not derived from configuration.nix
ericsagnes has joined #nixos
<erikl> hmm, so backing up `configuration.nix` and the home folder is not enough to replicate the same system?
<srhb> erikl: It is iff you're not using nix-env profiles and you don't have any data.
<erikl> (yes, but I don't use nix-env to install things)
<srhb> (outside of /home)
<erikl> great!
MinceR has quit [Ping timeout: 244 seconds]
<erikl> Thanks.
<srhb> erikl: Oh and with regards to "sameness" -- the new system would also need to use the same version of nixpkgs.
MinceR has joined #nixos
<erikl> Yes, I see.
<{^_^}> [nixpkgs] @basvandijk pushed to master « pgmanage: 10.3.0 -> 10.3.1 »: https://git.io/fN5Rf
vmandela has quit [Ping timeout: 240 seconds]
init_6 has quit []
Dedalo has joined #nixos
<erikl> So if I want a fresh install to replicate my current NixOS, I just need to boot from the installer image, format the disk, provide my current `configuration.nix`, and copy the content in my current home folder?
<srhb> erikl: Basically yes. :) (I just did this 10 minutes ago.)
<erikl> wow, how often do you do this? is it a common practice?
<srhb> It's easier to talk about what configuration.nix will do: It will regenerate your system, with the system packages, system configuration. Everything else is your responsibility.
<srhb> erikl: I tend to do it regularly to see how the installer is doing.. I'm weird though.
<srhb> erikl: But since it's such a quick process if everything is working, meh.. :P
<gchristensen> leotaku: hmmm in your nixops config for that system, do you have a line saying nixpkgs.system = "aarch64-linux"? (I'm assuming you're deploying to a rasppi which is aarch74
<erikl> srhb: do you do that within your currently running NixOS or a separate bootable USB/CD?
<MichaelRaskin> erikl: also, for example, CUPS printer list might live in a writable directory in /etc/
<srhb> erikl: It differs :)
<srhb> erikl: In this case I did it on my running system, by removing one disk from my mirror, installing on that.
ambro718 has quit [Ping timeout: 272 seconds]
<leotaku> gchristensen: I tried it with and without your line but neither one seems to work.
<gchristensen> what are you deploying to?
<srhb> This is weird. grub is unstable to install itself into the efi boot manager, but systemd-boot can just fine. efibootmgr -c gives: "Could not prepare Boot variable: No such file or directory"
<srhb> I tried stracing that, and there's an ENOENT on /sys/devices/pci0000:00/firmware_node/uid, but I don't know if that's a red herring.
endformationage has joined #nixos
<leotaku> gchristensen: rpi 3 model b
<MichaelRaskin> srhb: there is a question if the FS for access to EFI variables is mounted; and copying over BootX64.EFI can work even without changing the variables
<srhb> MichaelRaskin: Oh, that would make sense indeed!
<{^_^}> [nixpkgs] @eadwu closed pull request #44822 → nvidia_x11: 390.67 -> 390.77 → https://git.io/fNHi9
<srhb> efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
<srhb> meh
<gchristensen> leotaku: :? that should work. where did you put the config?
vmandela has joined #nixos
mayhewluke has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #44900 → libvirt: fix dlopen("libjansson.so.4") → https://git.io/fN5RD
<leotaku> gchristensen: what do you mean exactly?
<gchristensen> well.... I hate to be rude, but the only reason I can imagine it doesn't work is if it isn't in the right place. so, I just want tomake sure it is in the right place ):
<gchristensen> :)
<leotaku> gchristensen: yo're not at all being rude! Where would the right place be?
<leotaku> I tried putting it in the deployment specification as well as the already running nixos system.
<leotaku> gchristensen: this is what I currently have: http://nixpaste.lbr.uno/8L0O8bfs
<gchristensen> :/ all I can say is it works for me on 18.03
<gchristensen> leotaku: are you on unstable?
<leotaku> gchristensen: yes, unstable
<gchristensen> clever: did nixpkgs.system change in unstable?
<jasom> so I just did a reinstall of nixos and when I reboot, it runs through systemd and then just sits there. I have no VCs and no login shells and no sddm, despite having that set in my configuration.nix any ideas?
vidbina has quit [Ping timeout: 260 seconds]
johanot has joined #nixos
mayhewluke has joined #nixos
ambro718 has joined #nixos
<leotaku> gchristensen: how is the nixpkgs of the deployed machines set?
<leotaku> Is it just that of the controller?
<gchristensen> yea, NIX_PATH of the env you'redeployin from
vcunat has quit [Ping timeout: 256 seconds]
<clever> gchristensen: ive not noticed nixpkgs.system change on unstable, but i have noticed it being weird on mac
<{^_^}> [nixpkgs] @danieldk opened pull request #44902 → python/grpcio: fix darwin build → https://git.io/fN5EC
<{^_^}> [nixpkgs] @Infinisil opened pull request #44903 → Revert "nix-repl: Remove" → https://git.io/fN5E8
<{^_^}> [nixpkgs] @ThomasMader opened pull request #44904 → Dlang update → https://git.io/fN5E7
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @eadwu reopened pull request #44822 → nvidia_x11: 390.67 -> 390.77 → https://git.io/fNHi9
<ivan> does anyone else patch their kernel just for ACS override for VFIO? too much of a weird thing to be in nixpkgs?
<leotaku> gchristensen: on 18.03 i get this error: "error: a 'aarch64-linux' is required to build '/nix/store/dl3kihf1w3c3gr9sn891avn3zmx46x1a-append-initrd-secrets.drv', but I am a 'x86_64-linux'"
<gchristensen> good! that means it worked!
<gchristensen> sorry I can't solve _that_ now, I have to go. but you're on the right track!
<clever> leotaku: one min
<leotaku> gchristensen: thank you!
<clever> leotaku: if you clone this repo, add the relative path of qemu.nix to your imports, and set qemu-user.aarch64 = true;, then your machine can magically run aarch64 binaries
<clever> it will also configure nix to understand that, so the above error wont happen
<elvishjerricco> Does NixOS have a setting to display a splash screen after stage 1 while booting rather than the stage 2 output?
<elvishjerricco> clever: Sweet :)
<leotaku> clever: on the host, correct?
<clever> leotaku: yeah
<gchristensen> haha, wow clever!
sigmundv has joined #nixos
<elvishjerricco> clever: Wow, NixOS's default stuff for plymouth was excellent.
<samueldr> haven't tried it, elvishjerricco, does it have a nixos logo? is it the right one?
<elvishjerricco> samueldr: Yea. Is there a wrong one?
<sphalerite> the old one
<sphalerite> with purple
<samueldr> the older one with thinner branches
<sphalerite> and roundness
<elvishjerricco> Link?
<sphalerite> It's still used in the GRUB theme Iirc
<samueldr> sphalerite: taking care of it for the installer image
<elvishjerricco> Oh right
<samueldr> I need to verify / handle the default options
<elvishjerricco> No it's the new one
<sphalerite> samueldr: \o/
<samueldr> there's the tracking issue just in case https://github.com/NixOS/nixos-artwork/issues/16
<{^_^}> nixos-artwork#16 (by domenkozar, 2 years ago, open): New logo
<sphalerite> clever: btw I think supported-platforms should be supported by nixUnstable without patches?
<clever> sphalerite: i need to confirm that and update my overlay
<{^_^}> [nixpkgs] @veprbl opened pull request #44905 → lhapdf: fix "lhapdf list" interactive tool → https://git.io/fN5uS
<sphalerite> nix#1916
<{^_^}> https://github.com/NixOS/nix/pull/1916 (by lheckemann, 23 weeks ago, merged): Support extra compatible architectures
erikl has quit [Quit: Page closed]
<samueldr> I didn't want to unilaterally merge #33686, since it changes a bunch of things, but the lack of activity after my latest update makes me think I should do it and wait for someone to scream :/
<{^_^}> https://github.com/NixOS/nixpkgs/pull/33686 (by samueldr, 30 weeks ago, open): (Installation media) Bootloader artwork refresh
Mateon2 has joined #nixos
<srhb> Bizarre. I can also alter the boot order, but not create new boot entries...
Mateon1 has quit [Ping timeout: 244 seconds]
Mateon2 is now known as Mateon1
<srhb> Wonder if my firmware is just toast.
<infinisil> samueldr: This only changes the installation iso grub menu? Not the one for the grub when you have it installed on a normal machine?
<samueldr> another one :/ what model (trying to keep traces in IRC)
<samueldr> infinisil: exactly, this is **only** the installer
<samueldr> it changes the bios-boot (legacy) bootloader's appearance, and replaces systemd-boot by grub for one that will work much better on 4k displays
<samueldr> s/for one that/, which is one that/
<samueldr> (just because on most hidpi UEFI implementations, the text is still ant-sized small)
<infinisil> samueldr: To build it I use `nix-build nixos/release.nix -A iso_graphical`, right?
<samueldr> whatever worked previously
* samueldr verifies notes
<samueldr> this isn't the command I had noted, but mine was the roundabout way to do the same
<samueldr> it should affect the minimal iso too
<infinisil> Ah right
<infinisil> Okay I'll try to build and verify this on my 2 machines
<infinisil> verify it working*
<samueldr> ♥
<infinisil> :)
<sphalerite> looks great from the screenshots :)
<infinisil> Indeed!
<samueldr> infinisil: have a hidpi screen?
<infinisil> Unfortunately not
<samueldr> there is a new option to force 1080p or 720p for more readable text (under accessibility)
<samueldr> this is one thing I was hoping got verified to work on at least one laptop with higher res
<infinisil> While in the grub screen?
<samueldr> the option is in the grub screen, and it affects the linux framebuffer VT
<samueldr> I verified that on my 1080p laptop it forced 720p
<samueldr> but I would have liked to know if it worked on actually high-res displays too
<samueldr> (my bet is "totally")
<sphalerite> I'd try it, but don't have a USB stick handy :/
<infinisil> What's the worst thing that could happen on hires screens?
<samueldr> rooted android phone sphalerite?
<sphalerite> samueldr: yes
<samueldr> sphalerite: https://softwarebakery.com/projects/drivedroid this saved my bacon twice already
<sphalerite> hah bacon
<clever> samueldr: tried it, needs root
<sphalerite> it's funny because my rooted android device is a bacon
<sphalerite> clever: samueldr did ask about a *rooted* android phone
<samueldr> clever: which is why I asked for rooted android :)
<jasom> Out of curiousity, is there a way to aaffect what filesystems are mounted in the initrd? I tried having /nix on a separate filesystem and it did not boot.
<samueldr> infinisil: AFAICT, the realistic worse is that nothing happens (still tiny text) and the pessimistic worse is garbage on the display
<clever> jasom: configure it normally under the fileSystems config in configuration.nix
<samueldr> infinisil: but that would be *for that boot*
<infinisil> Yeah that sounds fine, as long as people can still boot their machine
<sphalerite> meh it's not on f-droid
<samueldr> yeah :/ it's not OSS, though it's also distributed outside play store.
acarrico has quit [Ping timeout: 256 seconds]
ennui has quit [Ping timeout: 272 seconds]
<jD91mZM2> Can Nix paths have spaces in them?
<jD91mZM2> I mean like `./testing 123`
alexteves has joined #nixos
<srhb> jD91mZM2: Nope.
<srhb> jD91mZM2: You can use builtins.path to rename them if need be.
<jasom> grr... nix-env -qa '*' shows nothing
<jD91mZM2> srhb: What characters are valid in paths? a-zA-Z0-9 and /?
growpotkin has joined #nixos
<MichaelRaskin> I think [-+_] are also OK
<srhb> jD91mZM2: I doubt / is okay. that would be strange.
<MichaelRaskin> Wait, paths have to contain / as separator
<jD91mZM2> I mean like ./a/b becomes <dir>/a/b
<jD91mZM2> yeah exactly
<srhb> Ah, sure
<jasom> https://pastebin.com/2y5MXhCa <-- why are there no available packages?
<MichaelRaskin> And yes, . as a part of a component is also OK
<samueldr> jD91mZM2: from memory, it's anything but spaces
<MichaelRaskin> Nope
<jD91mZM2> not backslashes at least
<samueldr> but yeah, I was about to say it's probably wrong
<MichaelRaskin> If you want to write a path literal, a lot of things are forbidden
<sphalerite> jasom: * is not a valid regex AFAIK. You might prefer `nix search` anyway?
<srhb> Are we talking about valid store path names or valid filenames in a store path? :-P
<sphalerite> hm although it does display all available packages for me
<srhb> Two very different things...
<samueldr> PATH [a-zA-Z0-9\.\_\-\+]*(\/[a-zA-Z0-9\.\_\-\+]+)+\/?
<jasom> sphalerite: "nix search" says: warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist, ignoring
<jD91mZM2> srhb: We're talking what something like `nix-repl` will identify as a path
<samueldr> (I think I made an initial oversimplification when implenting paths in my toy parser)
<samueldr> jD91mZM2: ^
<sphalerite> jasom: are you on nixos? And did you delete root's nixos channel?
<jasom> sphalerite: and nix-env --query special-cases the '*'
<srhb> jD91mZM2: So both.
<jD91mZM2> samueldr: Thanks!
<jasom> sphalerite: there was no nixos channel after install, so I added the 18.03
<sphalerite> oh that's silly :p
<samueldr> and jD91mZM2, there's is a separate definition, HPATH, for ~/relative paths
<jasom> sphalerite: and yes I'm on nixos; it's a fresh install
<sphalerite> that's weird
johanot has quit [Remote host closed the connection]
<srhb> jasom: Try getting rid of the dot in the channel name
<srhb> Doesn't only root start with a channel on a fresh install anyway?
<jD91mZM2> samueldr: No trailing slash though
raynold has joined #nixos
raynold has quit [Remote host closed the connection]
<samueldr> nope, always needs to end with a "component"
<jD91mZM2> What's the HPATH definition?
Fare has joined #nixos
<jD91mZM2> And what definition does it use for < and >?
<jD91mZM2> like import <nixpkgs>
<jD91mZM2> <nixpkgs/does this work with spaces?>
<jD91mZM2> Thanks!
<samueldr> SPATH is <...> HPATH is ~/...
<clever> neither supports spaces
<jD91mZM2> I don't like these complicated regexes :P
jb55 has quit [Ping timeout: 272 seconds]
<Thra11> Where can I find the documentation for `optional` and `optionals`?
<jasom> shabius: ah, I renamed the channel to nixos and it works now
<srhb> jasom: You might want to check if root has any channels to avoid confusion later on
<srhb> jasom: eg. sudo nix-channel --list vs nix-channel --list
<jasom> srhb: this was all as root
<srhb> jasom: OK, good :)
<jasom> and I can say for certain that a fresh install did *not* have a nixos channel as root
<srhb> jasom: nixos-1803 would have been fine by the way. The dot was the only rpboelm
<srhb> jasom: Hm, strange. I have just installed (unstable though) and root had a nixos-unstable channel
<srhb> Maybe there's a bug in the stable installer.
<jasom> I downloaded the iso on Wednesday
<srhb> jasom: I'll grab a copy and check later, thanks.
<Thra11> clever: Thanks
<jasom> srhb: another oddity is I set a hashedPassword for root in my configuration file, and set immutableUsers, but it still querried me for a root password during the install process.
<srhb> jasom: Indeed, there's no check for that iirc.
<jasom> srhb: from the manual: "Note: To prevent the password prompt, set users.mutableUsers = false; in configuration.nix, which allows unattended installation necessary in automation."
<clever> jasom: i suspect that might have been broken by the nixos-install rewrite
<clever> jasom: the code to make it work is missing from nixos-install.sh
<infinisil> samueldr: So, running the iso now
<jasom> clever: the root check or the no nixos-channel?
<srhb> jasom: Mind opening an issue on that one? :)
<srhb> Would be nice to get fixed before 18.09
<jasom> srhb: no problem; github is the issue tracker used?
<infinisil> I get the normal black and white menu when starting, with an option for "HiDPI, Quirks and Accessibility" and some others
<clever> jasom: root passwd, ctrl+f the above file for passwd
<srhb> jasom: Yep, NixOS/nixpkgs repo :)
<infinisil> samueldr: Am I not supposed to get the new fancy menu like that?
<samueldr> infinisil: the grub menu only works for UEFI boots
<samueldr> otherwise you get the same previous isolinux menu
<samueldr> uh, black and white?
<infinisil> Oh, hmm, so how can I use the UEFI boot?
<infinisil> Yeah
<samueldr> sytemd-boot?
<samueldr> systemd-boot*
<samueldr> because IIRC the isolinux was white on dark purple
<infinisil> grub
<samueldr> so it almost smells like you don't have the right iso?
<srhb> Since we're talking about systemd-boot, is there any way to make the menu wider so I can actually read the generations names fully? :)
* samueldr tests with the command you used
<samueldr> srhb: systemd-boot has approximately 0 options :(
<samueldr> by design, which is both a good and bad thing
<samueldr> (I mean the upstream projects has almost no knobs to customize things)
<srhb> samueldr: Got it. In fact I think you already told me this, but I can only hold so many things on the stack....
<infinisil> samueldr: https://i.imgur.com/9pdkhcK.jpg
<srhb> :-)
<samueldr> :o infinisil
<samueldr> glad you're testing things, as it turns out there may be issues
<samueldr> infinisil: was this built using the command you pasted earlier? (and with _graphical)?
<infinisil> Nah
<infinisil> nix-build nixos/release.nix -A iso_minimal.x86_64-linux
<infinisil> Used the minimal
<samueldr> thanks, want to replicate as best as possible
<samueldr> and on my HEAD or merged back into master?
<infinisil> head, f865953be0e242fa5c3597ee135e7f1eb7bf49ec
<samueldr> thanks *building*
<infinisil> :)
<samueldr> next, just to verify, this was `dd`ed to the usb drive I assume
<infinisil> Yeah `dd if=result/iso/*.iso of=/dev/sdd`
<infinisil> samueldr: Also, when I enter the HiDPI menu, i get these errors: https://i.imgur.com/bAOgXqm.jpg
<samueldr> oh, this could be relevant
<samueldr> grub is kind of messy with its error reporting
<samueldr> though, infinisil, glad to see the fallback for theme issue is a working menu, just a bit more barren
<infinisil> Yeah
<samueldr> AW, grub can be so dumb
<{^_^}> [nixpkgs] @timokau merged pull request #44882 → crawl: 0.21.1 -> 0.22.0 → https://git.io/fN7N0
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fN5gM
<samueldr> looks like I hadn't verified on a device without serial
<samueldr> (and when I say grub is messy with errors, is that it seems that something eats the initial errors when showing that menu)
<samueldr> (so the errors you see in a sub-menu should be the same on the intial menu)
* infinisil nods, pretending to know exactly what's going on
<infinisil> Ahh
<{^_^}> [nixpkgs] @zimbatm opened pull request #44907 → virtualbox module: allow to pass the package → https://git.io/fN5g7
<samueldr> though, I find this a bit weird how not having serial breaks the boot that much :/
<zimbatm> samueldr: grahamc was also fighting grub recently for the Packet.net image
<zimbatm> I think it was related to serial as well
<samueldr> IIRC the issues were mostly about testing them and reliability in the tests
<samueldr> because IIRC the serial output could start at any moment
<zimbatm> it was something around the display
fresheyeball has quit [Quit: WeeChat 2.0]
<zimbatm> it wasn't possible to show the menu to go back to a previous derivation
kyren has joined #nixos
<Dezgeg> IIRC opensuse had some good solution for grub + serial
<samueldr> in my particular case, I know how to fix it, and am now verifying and double-validating the fix works
trylist has joined #nixos
<samueldr> it's because of how the terminal_{out,in}put commands work
<samueldr> if any of the methods fail, it fails all of them
<samueldr> and when there are no serial interfaces, it fails gfxterm
<samueldr> luckily, there is an easy way to figure this out
<{^_^}> [nixpkgs] @7c6f434c merged pull request #44825 → treewide: enable working, fix fixable, disable broken tests → https://git.io/fNH9h
<{^_^}> [nixpkgs] @7c6f434c pushed 124 commits to staging: https://git.io/fN52f
<jD91mZM2> Well paths suck. Apparently there's an ambigiouty with a/b, which is a path, but a / b with space is division
<clever> > a:b
<{^_^}> "a:b"
<clever> jD91mZM2: and urls
<clever> a: b
<clever> > a: b
<{^_^}> <LAMBDA>
<clever> vs functions
<jD91mZM2> Oof ouch owie
<clever> > ./foo/
<{^_^}> error: path './foo/' has a trailing slash
<clever> when did it get that smart? lol
aarvar has quit [Ping timeout: 244 seconds]
<clever> it usually complains about division
<jD91mZM2> Somehow, in the tokenizer, I'll have to know if it's division or path
<infinisil> samueldr: Let me know when you pushed the fix so I can test again :)
<samueldr> I'm about to
<samueldr> serial works, and with -serial none too
<samueldr> infinisil: just now pushed
<infinisil> Doing the thing
Anton-Latukha has quit [Ping timeout: 248 seconds]
vcunat has joined #nixos
<jD91mZM2> Are there any proposals to improve (aka delete) the path system? Asking because I really don't want to have to figure out how to implement this in my parsr
<jD91mZM2> s/parsr/parser
<samueldr> I wouldn't think so
<infinisil> jD91mZM2: Why would that be removed??
<jD91mZM2> idk, just hoping
<samueldr> in my toy parser I didn't have issues as it's well documented
<jD91mZM2> I'm doing tokenizing and parsing as separate steps
<jD91mZM2> Also it doesn't currently support any kind of lookaheads
<samueldr> (btw, the toy parser I made used a PEG and AFAICT it's impossible for a PEG because of lookaheads)
<jD91mZM2> So like a+b/3-2 would become a path in Nix, but I can't know that because I can only look ahead one character
<clever> > a+b/3-2
<{^_^}> /var/lib/nixbot/state/nixpkgs/a+b/3-2
<clever> ouch
<jD91mZM2> Of course I can make it not lookahead, but that was my favorite feature :(
<jD91mZM2> s/not lookahead/do a lookahead/g
<jD91mZM2> I guess with a lookahead I could also avoid allocations so that's kinda a win... but... :(
<samueldr> pretty sure that for real-world nix you'll need that :/
<infinisil> samueldr: Not sure if this is related, but I get some (non-fatal) errors during the nix-build: /build/.attr-0: line 18: console: command not found /build/.attr-0: line 18: gfxterm: command not found /build/.attr-0: line 18: serial: command not found
<samueldr> jD91mZM2: I assume the parser is in lolcode^W java-like rust?
<clever> infinisil: you need a newer nix-daemon
<samueldr> OH
<samueldr> no
<samueldr> clever: he's right
<MichaelRaskin> Well, PEG does have lookaheads
<jD91mZM2> samueldr: It's written in LOLCODE, translated to PHP using the first LOLCODE parser, and ran in a Rust macro that converts PHP to Rust, and ran inside jslinux
wucke13 has quit [Quit: WeeChat 2.0]
<samueldr> MichaelRaskin: I could have misremembered the thing I needed that the PEG parser I used doesn't have
<infinisil> clever: I do? What's this got to do with that?
<clever> infinisil: the nix daemon needs to support passing derivation attributes as files
<samueldr> clever: nah
<samueldr> that's <<EOF ... EOF rearing it's ugly head
<clever> samueldr: ah
<infinisil> I'm running 2.0.4
<clever> and it just happens to be beside an attr that was passed as a file
<MichaelRaskin> samueldr: no guarantees that it is a natural approach to lookahead, but & is pretty powerful
<infinisil> samueldr: I got the nice new interface now :)
<samueldr> MichaelRaskin: "&"?
Fare has quit [Ping timeout: 240 seconds]
<infinisil> There was an error very quickly before it started though, I'll see if i can record it
<samueldr> infinisil: pretty sure if you press "c", then type serial and enter, you should see the same error
<samueldr> it's the way checking for serial is done
* samueldr wonders if there's a way to silence it
<infinisil> "serial port com0 is not found"
<samueldr> btw, the toy thing I made was made using parslet, http://kschiess.github.io/parslet/get-started.html https://github.com/samueldr/runix
<MichaelRaskin> samueldr: PEG contains the & operation, which requires a rule to match but doesn't consume any input
Anton-Latukha has joined #nixos
<samueldr> clever: anything particular you want to point out?
<clever> nothing yet
<samueldr> clever: btw, infinisil is testing my changes
<jD91mZM2> samueldr: Nice! I'm not using any framework. What are the advantages?
<clever> modevar = grub_env_get ("gfxmode");
<clever> set gfxmode=auto
<clever> i can see where it checks things that nixos's grub.cfg was setting
<{^_^}> [nixpkgs] @Ericson2314 pushed to codeowners « .github/CODEOWNERS: Add myself as for some stdenv stuff »: https://git.io/fN52X
<samueldr> jD91mZM2: no idea, I stumbled upon LPEG stuff which looked fun while I was doing lua stuff, then wanted to implement `nixfmt` but there are no parsers which keep *all* information about nix code (spaces, comments)
FruitieX has quit [Ping timeout: 240 seconds]
<samueldr> jD91mZM2: so I looked for a PEG in ruby for my first use of one, and first try at real-world parsing
<samueldr> jD91mZM2: oh right, scratch that revisionist history; I used parslet in the past to parse posix-shell
<samueldr> try to parse posix shell
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #44908 → .github/CODEOWNERS: Add myself as for some stdenv stuff → https://git.io/fN52D
<jD91mZM2> Cool! My first parser was just a math parser. Started off operating on a list, calculating stuff in the right order, but then a friend told be about recursive descent parsers
tertle||eltret has joined #nixos
<clever> samueldr: it looks like the gfxpayload has to do with what mode grub puts the gpu into, after you pick an os
<clever> samueldr: so that the linux is happy with the "current" mode on startup
<tertle||eltret> got my KVM in today. now im running in twin turbo
<samueldr> clever: maybe I missed something, but how is this relevant?
<clever> samueldr: just checking everything related to gfx in my config
<clever> so i know if they are relevant or not
<samueldr> ah okay, thanks
<samueldr> I thought this was specifically about *something*
<clever> if loadfont ($drive1)//converted-font.pf2; then
<clever> i'm guessing you can just put the serial command into an if block, to detect its failure
<clever> but you need to then get gfx to work without expecting serial
<samueldr> clever: already used `if serial; then...` to fix the issue :)
<clever> ah
<samueldr> what's happening is that `if serial` the (failure) output can be seen for an instant
<clever> ahh
<samueldr> which could be fine, but messy
<samueldr> but I made a small detour into this other conversation instead of looking up if it was possible to silence it
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<neonfuz> so do imports get "deep merged"
<infinisil> samueldr: It seems that i get the mentioned error on all kinds of things
<neonfuz> like if you have imports in a file, do the sets you're importing get merged, or what
<infinisil> firmware setup, hidpi screen
<samueldr> yep
<samueldr> I'm looking into an alternative
<infinisil> And these resolution suggestions don't seem to work either with the same error
* samueldr kind of hate sh-like grub config
Dedalo has joined #nixos
freeman42x]NixOS has joined #nixos
<neonfuz> I'm getting "<variable> is already defined at <file>" errors when importing the same path (in this case services.xserver) in 2 different imports
<neonfuz> is there a way to import many files and merge them? or no
<clever> neonfuz: imports already does that
<neonfuz> I feel like I could import and then //, but that would be bad, essentially I'm just trying to clean up my configuration.nix
<neonfuz> it does?
<clever> neonfuz: yes
<clever> neonfuz: what is the attribute that is colliding?
<neonfuz> so I have "services.xserver.displayManager.lightdm.autoLogin.user" in a file I created for my user, and then I define more things in the main config file in "services.xserver = ...", and it's erroring for me
<clever> neonfuz: and what is the exact error?
<neonfuz> error: attribute 'services.xserver' at /etc/nixos/user/sage.nix:25:3 already defined at /etc...
<clever> neonfuz: can you pastebin sage.nix?
<tertle||eltret> a lot of my installed applications are showing in the start menu?
<neonfuz> Oh, I found the error... thanks
<infinisil> tertle||eltret: #42910
<neonfuz> I had defined services.xserver twice in sage.nix
<{^_^}> https://github.com/NixOS/nixpkgs/pull/42910 (by bkchr, 5 weeks ago, merged): services.plasma5: Update start menu with an activationScript
<neonfuz> I didn't closely read the error I guess
<clever> neonfuz: ah, so it was a nix level error, just parsing the file
<neonfuz> yep
Fare has joined #nixos
jonreeve has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « signal-desktop: 1.15.3 -> 1.15.4 »: https://git.io/fN5aw
<jonreeve> Hey, does anyone know how I can get Dragon Player, the KDE video player?
jb55 has joined #nixos
<jonreeve> I've tried `nix-env -qa dragon` and `nix search dragonplayer` and so on, but no luck so far.
<jonreeve> (Also `nix-index` is giving me trouble, says it can't parse JSON or something.)
<clever> /home/clever/nixpkgs/pkgs/applications/kde/srcs.nix: url = "${mirror}/stable/applications/18.04.3/src/dragon-18.04.3.tar.xz";
<clever> cant find its attribute though
hakujin3 has joined #nixos
hakujin4 has joined #nixos
<jonreeve> Is it a matter of installing all the KDE apps?
<clever> jonreeve: i dont think that will help any
hakujin3 has quit [Ping timeout: 256 seconds]
<infinisil> jonreeve: Yeah it's just not packaged
<infinisil> You could have a go at it yourself though
mayhewluke has quit [Ping timeout: 260 seconds]
hakujin has joined #nixos
hakujin1 has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to release-18.03: https://git.io/fN5ap
hakujin4 has quit [Ping timeout: 256 seconds]
hakujin has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 6 commits to master: https://git.io/fN5Vk
<{^_^}> [nixpkgs] @mnacamura opened pull request #44909 → zathura: keep wrapper's WM_CLASS consistent with wrapped binary → https://git.io/fN5Vq
<{^_^}> [nixpkgs] @vcunat merged pull request #44603 → thunderbird, thunderbird-bin: 52.9.1 -> 60.0 → https://git.io/fNDvC
<{^_^}> [nixpkgs] @vcunat merged pull request #44885 → firefox, firefox-bin: 61.0.1 -> 61.0.2 → https://git.io/fN5ta
hakujin2 has joined #nixos
<{^_^}> [nixpkgs] @thefloweringash opened pull request #44910 → cmake: 3.11.2 -> 3.12.1 → https://git.io/fN5VG
hakujin1 has quit [Ping timeout: 256 seconds]
hakujin3 has joined #nixos
<tilpner> Nooo, nix-store --delete just killed the active generation :/
<tilpner> I did pass --ignore-liveness, but I was deleting an unrelated store path
<tilpner> Or so I though
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #44908 → .github/CODEOWNERS: Add myself as for some stdenv stuff → https://git.io/fN52D
<{^_^}> [nixpkgs] @Ericson2314 pushed to master « .github/CODEOWNERS: Add myself as for some stdenv stuff »: https://git.io/fN5Vc
hakujin4 has joined #nixos
<clever> tilpner: never use ignore liveness, thats how you break everything :P
hakujin2 has quit [Ping timeout: 256 seconds]
<clever> tilpner: if it refuses to delete something, use `nix-store --query --roots` to see why
<clever> and nix why-depends to find the link between them
schmittlauch[m] has joined #nixos
<tilpner> clever - I copied a squashfs with nix-copy-closure, and then compared the local and remote sha256. They differed (!), so I thought I would delete just that path and re-copy
<tilpner> Guess I can set up this server... again
hakujin3 has quit [Ping timeout: 256 seconds]
<clever> tilpner: try the rollbacks in grub first
<tilpner> I don't know how to
<clever> if you can find one that didnt depend on that squashfs
<schmittlauch[m]> ohai
<tilpner> It's a remote server, I only have ssh
<clever> tilpner: ah, then your depending heavily on what the hoster provides
<tilpner> (Hetzner)
<schmittlauch[m]> Are the Nix and NixOS manual already available in epub or do I have to build that myself from the docbook sources?
<{^_^}> [nixpkgs] @BrunoChevalier opened pull request #44911 → Criterion package → https://git.io/fN5VE
<tilpner> At least it wasn't my laptop
<clever> tilpner: dont worry, ive broken my desktop the same way
hakujin has joined #nixos
emacsomancer has joined #nixos
<{^_^}> [nixpkgs] @domenkozar merged pull request #44891 → ghc861: 8.6.1-alpha2 -> 8.6.1-beta1 → https://git.io/fN5GL
<{^_^}> [nixpkgs] @domenkozar pushed commit from @vaibhavsagar to master « ghc861: 8.6.1-alpha2 -> 8.6.1-beta1 (#44891) »: https://git.io/fN5Vw
<tertle||eltret> how do I update my system?
hakujin1 has joined #nixos
hakujin4 has quit [Ping timeout: 256 seconds]
mayhewluke has joined #nixos
<tertle||eltret> sudo nix-channel --update
hakujin2 has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
<tilpner> clever - That's only somewhat reassuring. I'm not dreading the reinstall, but the uploading of everything that was on there :/
hakujin3 has joined #nixos
<infinisil> schmittlauch[m]: I think you need to build it yourself
hakujin1 has quit [Ping timeout: 256 seconds]
<infinisil> But it's in the cache
<infinisil> Which means you don't really need to build it yourself I guess
<infinisil> Oh
<infinisil> I'm talking about the nixos manual, not sure about the nix one
<infinisil> schmittlauch[m]: For the NixOS manual: nix-build <nixpkgs/nixos/release.nix> -A manualEpub.x86_64-linux
<{^_^}> [nixpkgs] @thefloweringash opened pull request #44912 → dcraw: fix build on Darwin → https://git.io/fN5V9
hakujin2 has quit [Ping timeout: 265 seconds]
michas_ has joined #nixos
reinzelmann has joined #nixos
hakujin4 has joined #nixos
<{^_^}> [nixpkgs] @hrdinka opened pull request #44913 → postgresql: fix tzdata path → https://git.io/fN5wv
hakujin3 has quit [Ping timeout: 256 seconds]
hakujin has joined #nixos
hakujin4 has quit [Ping timeout: 256 seconds]
hakujin1 has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @vcunat pushed to release-18.03 « Merge #44885: firefox*: 61.0.1 -> 61.0.2 »: https://git.io/fN5wL
emacsomancer has quit [Quit: b]
hakujin has quit [Ping timeout: 265 seconds]
phreedom has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @zimbatm merged pull request #44907 → virtualbox module: allow to pass the package → https://git.io/fN5g7
<{^_^}> [nixpkgs] @zimbatm pushed to master « virtualbox module: allow to pass the package (#44907) »: https://git.io/fN5w4
vmandela has quit [Quit: Leaving]
Cale has quit [Read error: Connection reset by peer]
<schmittlauch[m]> infinisil: Thanks, I was talking about both as I'm a beginner. +
timokau has quit [Quit: WeeChat 2.1]
thibm has joined #nixos
rhomboidcactus has joined #nixos
inquisitiv3 has joined #nixos
Drakonis has joined #nixos
<rhomboidcactus> is it ok if I post some noob questions here?
<benley> of course
<{^_^}> [nixpkgs] @BrunoChevalier closed pull request #44911 → Criterion package → https://git.io/fN5VE
<rhomboidcactus> :)
<{^_^}> [nixpkgs] @BrunoChevalier reopened pull request #44911 → Criterion package → https://git.io/fN5VE
<Brains> That is my cue... I am trying to run SpaceChem (Steam version, but from bash) and I'm looking for some troubleshooting tips. I tried steam-run'ing the launcher but I get an error about a missing DLL.
<Brains> (I'm looking more for docs so that I can troubleshoot the other problematic Steam games I already know I'll have to fiddle with... They fail differently, of course.)
<rhomboidcactus> so, I'm new to nixOS and decided to try it out, liking so far, at first all my packages were going into `environment.systemPackages`, I'm using allowUnfree = true in my `configuration.nix`. After a while I look at the the nixos options and found that you can make certain packages availiable only the a user via `users.user.username.packages`, but now it does not let me install unfree packs.
<clever> Brains: what dll is missing?
<Brains> clever: In this particular case, it is libnative.so... Which I didn't see the first time, but now I see is a dll in the local dir.
Maxdamantus has quit [Ping timeout: 240 seconds]
<clever> rhomboidcactus: can you pastebin your configuration.nix?
<clever> Brains: youll need to add . to LD_LIBRARY_PATH
<rhomboidcactus> sure, just give me a sec
<Brains> clever: Doesn't steam-run end up replacing my current LD_LIBRARY_PATH?
<clever> Brains: i dont think so, it just creates a /lib and /usr/lib with namespaces
<Brains> clever: So I should be able to just LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH steam-run ./spacechem-launcher.sh? That gives the same error.
<benley> anyone know how to override something haskellPackages to get a non-stripped binary with debug symbols?
<benley> *something in haskellPackages
<clever> Brains: have you read spacechem-launcher.sh yet?
<Brains> clever: It is really simple, just sets MONO_CFG and MONOPATH before calling mono on SpaceChem.exe
<clever> Brains: what happens if you just nix-shell -p mono and then run mono directly on the binary?
<clever> ive had that work for me before
<samueldr> infinisil: (while waiting a bunch for iso builds) I finally managed to get a config that doesn't add error messages
<samueldr> infinisil: also note that once you select something in hidpi and accessibility, you will end up in a menu looking like the top-level menu; it isn't it's the choice of configuration *including* the option
<samueldr> (I'm unsure if an earlier comment was referring to this sub-menu)
<Brains> clever: Slightly different stack (I believe native mono is much more recent than the bundled mono), but same complaint.
* Brains is slightly fried at the moment from yard work and feels like he's missing something obvious.
emacsomancer has joined #nixos
<schmittlauch[m]> infinisil: Do I need to clone the nixpkg repo again or is this lying around in my nixos installation anyways? If yes, where?
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/190ec72c712 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
lopsided98 has quit [Ping timeout: 255 seconds]
<infinisil> samueldr: Will test again
<MichaelRaskin> I think there is no repo checkout by default
<MichaelRaskin> Jut a tarball (via channel)
<schmittlauch[m]> MichaelRaskin: where is that located?
<infinisil> schmittlauch[m]: You should be able to just call that command i sent earlier
reinzelmann has quit [Quit: Leaving]
<MichaelRaskin> If you want to find the tarball, it should be linked from somewhere in /nix/var/nix/profiles/per-user/root/channels/ I think
Maxdamantus has joined #nixos
<MichaelRaskin> But yeah, shouldn't be necessary to locate it manually
<schmittlauch[m]> infinisil: nope
<schmittlauch[m]> $ nix-build <nixpkgs/nixos/release.nix> -A manualEpub.x86_64-linux
<schmittlauch[m]> bash: nixpkgs/nixos/release.nix: No such file or directory
<schmittlauch[m]> so I need to clone nixpkgs
<MichaelRaskin> Quoting needed
<symphorien> add quotes
<infinisil> Oh sorry, I didn't add quotes in my original command, my fault :)
<schmittlauch[m]> Thx, that worked.
<schmittlauch[m]> Should I start reading in the NixOS manual or in the Nix manual?
lopsided98 has joined #nixos
<MichaelRaskin> If you want to get a full picture, I would recommend Nix → Nixpkgs → NixOS
<infinisil> I usually prefer learning by doing, and only use the manual when I don't get something/as a reference
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/bd4ef2def38 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<infinisil> New nixos-unstable \o/
<gchristensen> yay!
<infinisil> samueldr: So it runs without error now, but all these suboptions in the hidpi menu don't do anything as far as i can see
<schmittlauch[m]> I consider switching my only daily working sysgtem from Gentoo to NixOS, so I need to understand stuff rather well.
* schmittlauch[m] starts reading
<samueldr> you mean that once you select one, you're in a menu with four options, right infinisil?
<infinisil> Yeah
<samueldr> they are the four options you also see at the root menu
<infinisil> Yup
<samueldr> that's the only way to select e.g. 720p + one of those
<samueldr> no way to toggle bits within grub to then build a command line
<infinisil> Oh, so these settings are for when you actually boot it?
<MichaelRaskin> schmittlauch: don't you have a handful of bootable USB drives with Gentoo lying around?
<samueldr> yes
<infinisil> Like the running system?
<infinisil> I see
<samueldr> exactly
<samueldr> they are kernel command line arguments
<infinisil> samueldr: Okay one more error: firmware setup throws "can't find command fwsetup"
<samueldr> hmmm, I may just as well drop it if it isn't working everywhere
* samueldr verifies
<infinisil> ,locate bin fwsetup
<{^_^}> Couldn't find any packages
<samueldr> AFAIK it's an UEFI feature
<schmittlauch[m]> MichaelRaskin: no, but I probably put a bootable backup on an external HDD before doing the final switch. I currently try to reproduce my setup as close as possible in VirtualBox to get to know NixOS.
<infinisil> Hmm I see
<samueldr> just counter-verified, and it loads the firmware setup menu on my c720p
<samueldr> (and IIRC I verified it on my other machines in the past)
<MichaelRaskin> schmittlauch: yes, that's not as a replacement to preparing the switch well, just a routine risk management step
<infinisil> samueldr: How about a wrapper that displays a more informative error message when the command is not available
<infinisil> If that's possible
<samueldr> I do wonder
<schmittlauch[m]> Do I already want to get started using a home directory manager or can I trivially add that later?
teoma has joined #nixos
<samueldr> could you help me? get to the grub cmdline, (press C) then type fwsetup ; echo $?
Ariakenom has quit [Read error: Connection reset by peer]
<infinisil> 0
<samueldr> hmm, weird
<infinisil> (this was harder than I thought, because I don't have my dvorak layout!)
__monty__ has joined #nixos
Ariakenom has joined #nixos
<samueldr> haha
<infinisil> But yeah, this is weird, I guess it doesn't behave the same as bash with this
<infinisil> s/weird/unexpected
<samueldr> it's its own language, which looks a lot like bash/sh
<infinisil> yea
<samueldr> but it *will* set $? on failure when commands fail appropriately
<samueldr> I guess fwsetup doesn't
<Drakonis> finally, nixos-unstable isn't broken
<samueldr> was nixos-unstable broken?
<schmittlauch[m]> So there's a build file for the nixos manual in nixpkgs. Is there also one for the nix manual?
<samueldr> okay, so the command *really* isn't setup, and $? == 0 when an unknown command is called
Maxdamantus has quit [Ping timeout: 240 seconds]
<samueldr> (instead of the conventional 127 like bash does)
<rhomboidcactus> clever, If I change the package back to `envionment.systemPackages` it installs fine, it's probably me doing something bodgy with the config.
<samueldr> schmittlauch[m]: it's in the nix repository
<{^_^}> [nixpkgs] @bjornfor pushed 2 commits to master: https://git.io/fN5rH
Maxdamantus has joined #nixos
<MichaelRaskin> schmittlauch: you might even want to use some different approach to $HOME management and Nix
<samueldr> so, infinisil, I'm guessing your firmware doesn't support the command :/ https://github.com/coreos/grub/blob/93fb3dac4ae7a97c080d51d951d0e5a3109aaac7/grub-core/commands/efi/efifwsetup.c#L80-L82
jD91mZM2 has quit [Quit: WeeChat 2.0]
<MichaelRaskin> And I think migration should be easy once you are comfortable with Nix
<schmittlauch[m]> samueldr: So is `nix-build "<nix/release.nix>" -A manualEpub.x86_64-linux` the right approach?
<schmittlauch[m]> (it fails btw)
<samueldr> probably not, let me check
reinzelmann has joined #nixos
<samueldr> pretty sure ther is nothing (yet) to generate the epub manual
<samueldr> though I could be wrong
<clever> rhomboidcactus: did you link the pastebin of your config?
<rhomboidcactus> clever, oops I did but forgot to mention you, sorry https://pastebin.com/1rgAUB1r
<clever> rhomboidcactus: line 143 is to blame
<clever> rhomboidcactus: your importing a 2nd copy of nixpkgs, which reads /root/.config/nixpkgs/config.nix
<clever> rhomboidcactus: you want just { pkgs, ... }:
<rhomboidcactus> clever, ahh thanks, it makes sense!
timokau has joined #nixos
<rhomboidcactus> clever, it worked, thank you very much!
Maxdamantus has quit [Ping timeout: 248 seconds]
<Dedalo> look who is here today :-)
<Dedalo> How can I start the wifi from command line during the NixOS installation? I have tried with ifconfig wlan0 up with no luck. I'm on Lenovo X1 Carbon 6th gen.
MP2E has joined #nixos
<clever> Dedalo: does the network have a password?
<rhomboidcactus> Dedalo, I used nmtui
<Dedalo> yes the network has a password
<{^_^}> [nixpkgs] @costrouc opened pull request #44914 → libxnd and libndypes: init at 0.2.0dev3 → https://git.io/fN5or
<samueldr> infinisil: I was able to hide the message and show a message "If this failed, your EFI system doesn't support this feature."
<Dedalo> I guess I will have to connect a cable...
<clever> Dedalo: dod ypu try nmtui?
<Dedalo> yep, I don't have it apparently
<clever> Dedalo: then we want wpa_cli and wpa_passphrase
<clever> Dedalo: is it wep or wpa?
<Dedalo> it's wpa of course
<clever> Dedalo: run `wpa_passphrase name password > /etc/wpa_supplicant.conf` and then `systemctl restart wpa_supplicant`
<clever> using the exact name of the network
<infinisil> samueldr: Nice! Will test again, and on the other machine as well
<Dedalo> clever I try, let's see if it works
<typetetris> when are staging and master usually merged?
<samueldr> infinisil: you can be as nitpicky as you want, worse is (like the weird submenu structure) it's a limitation of grub
emacsoma` has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @fpletz pushed to staging « wget: fix build »: https://git.io/fN5oH
<samueldr> infinisil: there is one option that I couldn't validate would work 100% of the time, the rEFInd option... when it is booted as a CD-ROM (like within qemu), it won't work because the `search` command of grub can't find the iso9660 FS using uuid... and other search options all seem to fail
<samueldr> but on my devices, through USB boot, it worked fine
<Dedalo> clever I have tried but it didn't work
* samueldr wonders if anyone even boots using a real CD or DVD
<Dedalo> I didn't get any error, but I can't ping google
<clever> Dedalo: one sec
<infinisil> samueldr: Yeah works fine for me too
<infinisil> samueldr: Why does the hidpi option not have an icon on the left?
<clever> Dedalo: if you run `iwconfig` does it show an essid being set?
<samueldr> infinisil: because there are none :)
<samueldr> maybe one should be added
tadni has joined #nixos
<infinisil> Alright
<infinisil> samueldr: The timer on the bottom, can this be made into a continuous bar instead of a step-wise one?
<samueldr> grub limitation :(
<clever> Dedalo: also try `wpa_cli -i wlan0` then check `status`, `scan`, `scan_results`, and `list_networks`
<samueldr> it updates once a second
<infinisil> samueldr: Alright, can a time be added too instead of just the bar?
<Dedalo> clever nope, all I see if enp0s31f6 no wireless extensions, lo no wireless extensions and wlp2s0 IEEE 802.11 ESSDI: 0ff/any
<tadni> So I'm fumbling around in NixOS to see if it'd be feasible for some mostly Scala self-teaching over the next couple of months; Was arguing with myself a few weeks ago if I should go Arch or not and try a chroot of NixOS and for awhile was happy with that solution ... now want to dogfood on real hardware already; In-theory as long as I set up a nix-shell env suited for it (scala dev) it should be pretty
<tadni> trivial to get up and running?
<samueldr> iirc yes infinisil, I have to verify
<clever> Dedalo: check wpa_cli then
<Dedalo> clever I get: Could not connect to wpa_supplicant: wlan0
<Dedalo> I think the problem is that it doesn't see the interface wlan0
<clever> Dedalo: because your card is called wlp2s0
<tadni> Going to also certainly dogfood Intellij, but don't really understand that concept wise how that would 'just work'. :^P
<Dedalo> oh right
<Dedalo> so I guess I need to change the wpa_supplicant and tell him to use the right card
<Dedalo> why Lenovo doesn't just use wlan0...
<infinisil> samueldr: Ah, seems to be doable, I'd appreciate some text like they have in the linked page
<infinisil> (personally)
<MichaelRaskin> Dedalo: it's systemd naming
<samueldr> yeah, I can see why, no worries
<MichaelRaskin> Rare case when it is _not_ Lenovo's fault
<tadni> MichaelRaskin: Was going to say, yeah, not one box since Fedora 25 I think for me has had a wlan0
<tadni> Even an eth0
<MichaelRaskin> Mwahaha
<MichaelRaskin> (From a laptop with wlan0)
<clever> Dedalo: wpa_supplicant uses all wifi cards by default
* tadni bows to the king
<Dedalo> clever so, why it doesn't work?
<clever> Dedalo: what did wpa_cli say when you ran status?
* tadni maybe not too shockingly can't find 'that much' on JVM work via NixOS really
<Dedalo> clever nothing because it cannot connect
<clever> Dedalo: one sec
<clever> ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
<clever> Dedalo: add that to /etc/wpa_supplicant.conf and then restart the service again
<Dedalo> clever can I edit directly /etc/wpa_supplicant.conf and add it inside the network={} ?
<clever> Dedalo: at the top level, outside the network blocks
<Dedalo> ok
<Dedalo> clever we did a progress
<tadni> Eh, I have a free box laying around -- yeah, I'm going to stop teetering and just do it already.
<Dedalo> now it gets automatically p2p-dev-wlp2s0
<clever> Dedalo: you need to use -i to get the non-p2p one
<Dedalo> clever and I can see wpa_status=INTERFACE_DISABLED
<clever> `wpa_cli -i wlp3s0` in my case
<Dedalo> ok I try
<Dedalo> yep same as before
<Dedalo> -i I guess that tell the interface name
<Dedalo> in fact, this time, it didn't print the interface name
<Dedalo> but the result is the same
<{^_^}> [nixpkgs] @fpletz merged pull request #44900 → libvirt: fix dlopen("libjansson.so.4") → https://git.io/fN5RD
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/fN5KB
<Dedalo> clever the status is INTERFACE_DISABLED
<clever> Dedalo: what about scan?
<leotaku> Is it possible to somehow find out if a particular piece of software is cached on cache.nixos.org?
<Dedalo> clever fail
<clever> Dedalo: ip link set wlp2s0 up
<clever> in a different shell
<Dedalo> clever operation not possible due to RF-kill
<clever> Dedalo: your wifi is disabled with the rfkill switch
<clever> use the physical switch or fn key to turn it on
<clever> Dedalo: also try the rfkill command
<Dedalo> oh....
<Dedalo> now it works
<Dedalo> There is no light on that key
<Dedalo> I had to press F8
Cale has joined #nixos
<Dedalo> clever thank you very much
<clever> yep
<Dedalo> I'm going to add these instructions to my readme before I forget everything, in like 10 minutes
<Dedalo> how do you know so much about networking, are you a sysadmin?
<MichaelRaskin> rfkill is what you learn by owning a laptop…
<infinisil> samueldr: Alternate suggestion for the firmware setup error: "If you see this, your EFI system ..."
<clever> MichaelRaskin: one of my older laptops had a physical switch with 3 positions, off, on, and a momentary position to open the wifi GUI
<MichaelRaskin> Wow
<clever> MichaelRaskin: but the spring for the momentary position would make it snap back hard enough to pass the detent and sometimes switch itself off :P
<MichaelRaskin> Just wow
<clever> and obviously, linux doesnt support that 3rd position out of the box
<MichaelRaskin> I sometimes use rfkill voluntarily
<MichaelRaskin> Wait, doesn't it just send some keycode?
<clever> probably, i just never bothered to bind it to any gui
<MichaelRaskin> Which X server might even vaguely associate with WiFi
<clever> i only used raw wpa_cli and never installed a gui for it
<MichaelRaskin> I don't always use wpa_cli. Sometimes just a raw wpa_supplicant invocation
<clever> :D
rhomboidcactus has quit [Quit: Leaving]
<clever> ive had the fun of using wpa_supplicant for the first time, with no wifi access to look up how the heck it works :P
<MichaelRaskin> Ah ah
<MichaelRaskin> The real question is whether you have the example config somewhere
<shapr> clever: not even wicd?
<clever> shapr: nope
<shapr> I did that a few times, did not enjoy manual wpa_supplicant use
<Dedalo> first time I heard about wpa_supplicant guys
<clever> Dedalo: its the only way to connect to wpa networks
<clever> for wep and unencrypted, you can use iwconfig bare
Maxdamantus has joined #nixos
<MichaelRaskin> wpa_supplicant.conf is nice: very low rate of format change, and can be versioned
<clever> Dedalo: youll also want to copy /etc/wpa_supplicant.conf to /mnt/etc/wpa_supplicant.conf and also networking.wireless.enable = true; when installing, then it will continue to work after installing
jonreeve has quit [Quit: Konversation terminated!]
<infinisil> There are nixos options for that now, so you don't actually need to write to that stateful file
<infinisil> networking.supplicant.*
<Dedalo> clever but before I need to create the zfs volume, I still didn't do that
<Dedalo> otherwise I can't mount mnt
<Dedalo> I have just the boot volume now
<Dedalo> need to create swap and mnt
<clever> Dedalo: yeah, once you have the root mounted, then you can copy the config
<Dedalo> anyway before to do that I'm going to update my readme, so just in case I need them later
<Dedalo> I shouldn't, but you never know :-)
reinzelmann has quit [Quit: Leaving]
<infinisil> samueldr: oh boy: https://i.imgur.com/GyGGZLx.jpg
<gchristensen> for a user to read a file, must it also have permission to read the directory it is in?
<samueldr> nice resolution infinisil :/
<gchristensen> lgtm:)
<MichaelRaskin> gchristensen: is this read-vs-exec question?
<inquisitiv3> What is the best way to keep configuration.nix in a Git repo? Is it to simply create a git repo in the same directory as configuration.nix is located? Feels little unsafe to run git with `sudo`.
<infinisil> 2560x1440 :)
<clever> inquisitiv3: i dont see any issues with running git as root, but the name configuration.nix will conflict when you add more hosts
<gchristensen> MichaelRaskin: I don't quite remember the rule. https://gist.github.com/grahamc/9f0e7cb90dfbbc7541b6cb6f09d683f8
<MichaelRaskin> inquisitiv3: you can just create a separate user for owning the repository
<samueldr> infinisil: apparently your bios (or vbios) does *something* so it seems closer to 640x480 :/
<clever> inquisitiv3: i use a hostname.nix style, and then configuration.nix is basically just 1 line, imports = [ ./nixos-configs/hostname.nix ];
<MichaelRaskin> gchristensen: well, if a directory has neither r nor x the question is moot, the contents is not accessible
<gchristensen> aye.
<infinisil> samueldr: yeah, it's been like this for a while, but with text-only it doesn't matter much as you can still see pretty much everything
<gchristensen> I'll grant it +x then, thanks
<infinisil> samueldr: it does work btw, i just don't see all entries without scrolling
<samueldr> yeah
<MichaelRaskin> Yes, -r+x seems to be correct but I never remember
<symphorien> iirc +r is for readdir()
<samueldr> infinisil: have you tried an ubuntu or debian iso (assuming they still use grub2) recently?
<infinisil> Nope
<inquisitiv3> clever: Thanks for t
<samueldr> infinisil: I wonder if they look squished like that or better than that
<infinisil> I can try one
<samueldr> thanks infinisil
* samueldr hates hardware
<inquisitiv3> the warning. That sounds like a simple solution, or doing the other way (keeping only the hostname in `hostname.nix`).
<inquisitiv3> MichaelRaskin: Do you mean to change the owner of the directory there configuration.nix resides?
<MichaelRaskin> Or just move the file to the configuration keeper user home, and put a symlink in /etc/nixos
<MichaelRaskin> (or alter the NIX_PATH to make nixos-config point to the new location)
emacsomancer has quit [Read error: No route to host]
<infinisil> samueldr: Now if only the ubuntu download would be a bit quicker than 30KB/s...
<samueldr> infinisil: blame it on hardware somewhere :)
<infinisil> Oh hold on, why does it say amd64 as architecture :/
<infinisil> Great auto-detection there
<infinisil> Or I'm just missing something
<infinisil> Oh no that's correct, apparently x86_64 is amd64
<schmittlauch[m]> If I want to file a bug for nixos-generate-config, I should do that as a nixpkgs issue, right?
<samueldr> debian's way to name x86_64
<clever> schmittlauch[m]: yeah
<samueldr> » x86-64 (also known as x64, x86_64, AMD64) [from wikipedia]
<schmittlauch[m]> samueldr, infinisil : Gentoo's naming too
<inquisitiv3> MichaelRaskin: Your first suggestion seems to be the simplest and cleanest one. Thanks for the tip!
<samueldr> > Various names are used for the instruction set. Prior to the launch, x86-64 and x86_64 were used, while upon the release AMD named it AMD64.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):166:68
<schmittlauch[m]> uh, Perl :|
<samueldr> nah, parsing a sentence as nix
<infinisil> No seriously, why is this download so slow? I'm getting 30KB/s, which will take like half a day to download: http://mirrors.layeronline.com/ubuntu-releases/18.04.1/ubuntu-18.04.1-desktop-amd64.iso
<samueldr> probably got a bad mirror?
<infinisil> I'll just use debian or so to test it
thibm has quit [Quit: WeeChat 2.0]
<inquisitiv3> infinisil: The torrents should have several seeders.
simukis has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @griff opened pull request #44916 → nixos/tests: Set DefaultTimeoutStartSec very high → https://git.io/fN56x
<Dedalo> I'm deciding the size of the swap partition and I don't know if make any sense to hibernate the system. Does it? Some of you use hibernation on a laptop or you always put it to sleep?
disasm has quit [Quit: WeeChat 2.0]
<clever> Dedalo: hibernation draws zero power, so the battery will last longer
<symphorien> so I am adding an option, and its description is rejected by docbook http://xelpaste.net/kOHTOW the option: http://xelpaste.net/MjRUGR
<infinisil> samueldr: seems to be of similar size: https://i.imgur.com/yb0jYQq.jpg
<Dedalo> That's a good point clever. I will go with 32 GB then.
<gchristensen> litteral -> literal symphorien
<samueldr> infinisil: right, so it's probably from using a bigger font by default :/
<symphorien> hum why does it complain about para then ???
<clever> symphorien: all descriptions are silently wrapped with <para>${description}</para>
<clever> symphorien: and i dont think you can nest paras
<gchristensen> symphorien: that is the other thing ^
Ariakenom_ has joined #nixos
<samueldr> uh, a bunch of option descriptions use <para>
<clever> samueldr: look closely, they tend to do </para><para>
vcunat has quit [Quit: Leaving.]
<infinisil> samueldr: Did you see my suggestion regarding the firmware error?
<clever> samueldr: ive even filed a PR to "fix" that malformed xml, and i wound up breaking tests
<samueldr> clever: oh no, I'm sad
<samueldr> and you're right
<samueldr> (unsurprisingly)
<samueldr> infinisil: already pushed it
<infinisil> Ah nice
tertle||eltret has quit [Quit: Connection closed for inactivity]
trevthedev has quit [Quit: WeeChat 2.0]
<infinisil> samueldr: Oh, and it seems that the firmware setup button makes my pc crash :/
Ariakenom has quit [Ping timeout: 268 seconds]
* samueldr sobs
<samueldr> EFI is hard to implement it seems :/
<infinisil> Apparently
<samueldr> oh, though, some implementation "apparently crash" by rebooting
<samueldr> but it goes to the setup menu
* infinisil tries that
<infinisil> Does indeed!
<samueldr> yeah, thinking about it, I seem to recall it will always do that
<infinisil> Alright, all good then
<samueldr> (that's the way it's implemented, setting a flag so the next boot is suggested to go to the firmware interface)
<infinisil> Yeah that makes sense
<infinisil> So other than the fact that the menu is a bit too big, looks good to me
<samueldr> I'm wondering though if I should decrease the size... it's kind of a balancing act
<samueldr> on hidpi it'll be too small
<samueldr> on setup similar to yours it'll be too big
<infinisil> Hmm.. The old grub menu wasn't that big iirc
<samueldr> which "old grub menu"?
<samueldr> the installer image previously used systemd-boot, not grub
<symphorien> fixing litteral -> literal did the trick, thanks
<infinisil> Ah right, I mean the grub one when you use it with a splash image
<infinisil> With a normal nixos
<symphorien> the error message wasn't very helpful, though
<samueldr> infinisil: yeah, it's not the same font, neither the same subsystem
emacsomancer has joined #nixos
witchof0x20 has joined #nixos
<infinisil> samueldr: https://i.imgur.com/fkwKezo.jpg
mayhewluke has quit [Ping timeout: 248 seconds]
<infinisil> This has much the same proportions as the debian one
<samueldr> yes, it's Unifont, at 16 IIRC
<samueldr> while the font selected is DejaVu Sans at 20
<infinisil> We'd really need a hidpi screen to test!
<samueldr> I'm shaving a yak, then I'll lookup the proper way to configure qemu to both simulate your res, and then simulate higher dpi
mayhewluke has joined #nixos
<symphorien> hum I get this build error http://xelpaste.net/sWmfTe when running nixos-rebuild build-vm-with-bootloader -- is it me or a bug ?
witchof0x20 has quit [Remote host closed the connection]
witchof0x20 has joined #nixos
<symphorien> hum I get this even without my local changes
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/bfeab2f4615 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
aarvar has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1e65420eb3b (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
__monty__ has quit [Quit: leaving]
timokau has quit [Quit: WeeChat 2.2]
timokau has joined #nixos
Jackneilll has quit [Read error: Connection reset by peer]
<mpickering> Is this evaluation failure my fault? https://github.com/NixOS/nixpkgs/pull/39125
<{^_^}> #39125 (by mpickering, 16 weeks ago, open): SAGA, SAGA LTS release, dependencies and QGIS SAGA plugin
emacsoma` has joined #nixos
Jackneilll has joined #nixos
emacsoma` has quit [Remote host closed the connection]
<samueldr> mpickering: you re-declared an existing attribute I think
<samueldr> saga in top-level/all-packages.nix
<samueldr> attribute 'saga' at ...top-level/all-packages.nix:19882:3 already defined at ...top-level/all-packages.nix:19880:3
<mpickering> How come it works for me locally?
<samueldr> can't say for sure
<samueldr> if you are using overlays, nix-build will use them, I sanitize NIX_PATH when testing PRs because of that
emacsoma` has joined #nixos
alexteves has quit [Ping timeout: 240 seconds]
alexteves has joined #nixos
trylist has quit [Ping timeout: 272 seconds]
<mpickering> seems to be fixed now thanks
<emacsoma`> I think you messaged the wrong person
emacsoma` has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<samueldr> that was weird
<Drakonis> agreed
inquisitiv3 has quit [Remote host closed the connection]
<mpickering> I removed the duplicate attribute but it still seems the build fails
<mpickering> It seems the qhull library is missing but the build works locally for me on nixos and darwin
phreedom has joined #nixos
<mpickering> also success is reported, when two of the attributes weren't attempted to be built
<mpickering> I'm baffled
rev_strangehope has quit [Quit: ZNC 1.6.6 - http://znc.in]
rev_strangehope has joined #nixos
Maxdamantus has quit [Read error: Connection reset by peer]
phreedom has quit [Ping timeout: 250 seconds]
Mr_Keyser_Soze has quit [Ping timeout: 256 seconds]
<dmj`> So what is up with the new “Open Github Pull Requests” option on teh hydras
<dmj`> do I need a declarative spec file anymore
<mpickering> ah right because I rebase - obviously darwin broke
<{^_^}> [nixos-artwork] @samueldr opened pull request #32 → grub2-installer: makes it even better → https://git.io/fN51M
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/bfeab2f4615 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
jtojnar has quit [Quit: jtojnar]
growpotkin has quit [Remote host closed the connection]
jtojnar has joined #nixos
jtojnar has quit [Remote host closed the connection]
<gchristensen> samueldr: can you provide screenshots?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b5b11e9da43 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jtojnar has joined #nixos
<samueldr> I can, but not of what you want
<samueldr> (hit a snag while verifying something)
<gchristensen> niiice
Anton-Latukha has quit [Quit: Leaving.]
<samueldr> this is mostly to remove as much padding as possible
Anton-Latukha has joined #nixos
<infinisil> Hmm.. I wonder what would break if I were to use nix with a nix store at /nix/store/s68qnm8r4w89fisjp9vx57hppjic2r77-hello-2.10
<infinisil> Such that hello would be in /nix/store/s68qnm8r4w89fisjp9vx57hppjic2r77-hello-2.10/s68qnm8r4w89fisjp9vx57hppjic2r77-hello-2.10/bin/hello
phreedom has joined #nixos
<samueldr> heh
<samueldr> hopefully, nothing in nix itself
<clever> infinisil: the storedir itself is included in the hash of the storepath
<clever> infinisil: so the derivation inside there will have different hashes and paths
<infinisil> Ah right
<LnL> not if you use the relocation stuff
<clever> then it would be at /nix/store/s68qnm8r4w89fisjp9vx57hppjic2r77-hello-2.10/nix/store/s68qnm8r4w89fisjp9vx57hppjic2r77-hello-2.10/bin/hello
<clever> with another nix/store in the middle
hakujin1 has quit [Ping timeout: 240 seconds]
rprije has quit [Ping timeout: 268 seconds]
<LnL> ^ that runs inside the nix-build of nix
<LnL> ah yeah, you'd get $out/nix/store and $out/nix/state
<LnL> err /nix/var/nix
<samueldr> infinisil: 640x480 should look like this soon https://stuff.samueldr.com/screenshots/2018/08/20180811193435.png
<infinisil> Neat
hakujin1 has joined #nixos
<gchristensen> samueldr: I like it a lot
hakujin1 has quit [Ping timeout: 256 seconds]
<samueldr> gchristensen: this revamp includes a possible helpful option for hidpi screens
<gchristensen> ohhhhh
<samueldr> under HiDPI, Quriks and Accessibility, you can force the VT to 720p or 1080p
<samueldr> it's yet untested on a real-world laptop with hidpi display
<gchristensen> nice
<samueldr> but on a 1080p laptop the 720p option worked
<gchristensen> I guess that is a gentle nudge for me to test it? :)
<samueldr> if you know someone with such hardware
<samueldr> my ideal test would be on apple-branded hardware, since those are finnicky beasts :)
<samueldr> (I'm confident that elsewhere everything should work fine)
<gchristensen> hmmm apple hw is harder for me to test, but still possible ...
<samueldr> clever: let's forget about 2018-era hardware ;)
alex`` has quit [Ping timeout: 272 seconds]
<samueldr> I liked it much more with more padding, but yeah, can't make it work
<LnL> this is just the iso right?
<samueldr> (I pushed the changes to use the version with less padding)
<samueldr> LnL: right
<samueldr> only the installer
<LnL> I think I could test that
ng0 has quit [Quit: Alexa, when is the end of world?]