andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || 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/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
<{^_^}> [nixpkgs] @Frostman opened pull request #81071 → go_1_14: init at 1.14 and switch to it → https://git.io/JvuZZ
<{^_^}> [nixpkgs] @Infinisil merged pull request #80862 → [20.03] nixos/acme: move the crt to fullchain.pem → https://git.io/Jv0aM
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to release-20.03: https://git.io/JvuZc
o1lo01ol1o has quit [Ping timeout: 255 seconds]
cr4y1__ has quit [Remote host closed the connection]
cosimone has quit [Ping timeout: 240 seconds]
<jared-w> clever: aww yiis, I've got my dumb sandbox thing working. Hoping to write up something nice about that in the next few weeks
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
`mrleaW_ has joined #nixos
<clodeindustrie> colemickens: working!
<clodeindustrie> I had to update a bunch of dependencies in the list but it's working
<clodeindustrie> I might submit a PR
<{^_^}> [nixpkgs] @jonringer merged pull request #81003 → steam.chrootenv: add udev → https://git.io/JvEXi
<{^_^}> [nixpkgs] @jonringer pushed to master « steam.chrootenv: add udev »: https://git.io/JvuZu
<clodeindustrie> so in the end, it was just me not knowing what I was doing
`mrleaW_ has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 265 seconds]
drakonis has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #71235 → elasticsearchPlugins: add analysis-icu plugin → https://git.io/Je4ZR
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvuZV
Flambe has joined #nixos
<colemickens> clodeindustrie: cool.
<colemickens> clodeindustrie: my usual attack plan when something is broken like that is to update. it usually works out.
<colemickens> ironically the last time ti ddin't work was trying to get mongodb working on aarch64. it also just seg faults like that.
abathur has joined #nixos
<clodeindustrie> yes looks like some versions were dodgy
<clodeindustrie> PR submitted
<kini> So it seems like `nix-copy-closure` worked (after adding myself to `trusted-users`), but `nix copy` still complains about the signature
<clever> kini: when the destination has either root or a trusted user, nix-copy-closure disables signature checks automatically
<clever> kini: nix copy doesnt disable sig checking automatically, so you must use `--option require-sigs false` to turn it off
<clever> only a trusted user can do that however
<kini> I see, thanks! It's too bad that there's no man page for `nix copy` and the `--option` flag isn't mentioned in the output of `nix copy --help` though...
<clever> kini: all nix commands accept `--option`, which can just override things in nix.conf
abathur has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jonringer closed pull request #77254 → Updates to awscli, botocore, boto3 → https://git.io/JvesD
<kini> ah, I see. OK, then I just needed to read `man nix.conf` in more detail, I guess. Thanks :)
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
clodeindustrie has quit [Quit: WeeChat 2.7.1]
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
<{^_^}> [nixpkgs] @ericdallo opened pull request #81073 → gnomeExtensions.draw-on-your-screen: init at 5 → https://git.io/JvuZ5
drakonis_ has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #81052 → [20.03] discord: 0.0.9 -> 0.0.10 → https://git.io/Jvumg
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to release-20.03: https://git.io/JvuZF
<{^_^}> [nixpkgs] @jonringer merged pull request #81053 → [19.09] discord: 0.0.9 -> 0.0.10 → https://git.io/Jvumr
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to release-19.09: https://git.io/JvuZb
drakonis1 has joined #nixos
drakonis has quit [Ping timeout: 272 seconds]
drakonis_ has quit [Ping timeout: 252 seconds]
smatting has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
shibboleth has quit [Quit: shibboleth]
aaa_ has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @JeffLabonte opened pull request #81075 → Brave 1.3.118 to 1.4.95 → https://git.io/Jvunf
vidbina has joined #nixos
drakonis1 has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/26277c18fbe (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jonten has quit [Ping timeout: 258 seconds]
werner291 has quit [Quit: werner291]
<{^_^}> [nixpkgs] @JeffLabonte closed pull request #81075 → Brave 1.3.118 to 1.4.95 → https://git.io/Jvunf
genesis has joined #nixos
smatting has quit [Ping timeout: 255 seconds]
cmgn has joined #nixos
Flambe has quit [Quit: Konversation terminated!]
Flambe has joined #nixos
ndarwincorn has joined #nixos
<{^_^}> [nixpkgs] @JeffLabonte opened pull request #81076 → brave: 1.3.118 -> 1.4.95 → https://git.io/Jvunl
ndarwincorn has quit [Client Quit]
drakonis1 has joined #nixos
johnnywho has quit [Ping timeout: 252 seconds]
mexisme_ has joined #nixos
Fare has joined #nixos
malSet has quit [Quit: Quit.]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #80982 → various: use qt5's mkDerivation → https://git.io/JvEwZ
<{^_^}> [nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/JvunE
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to release-20.03: https://git.io/Jvun2
<colemickens> The wiki overlays page says to use overlays in nixos configuration.nix by modifying nix.nixPath.
vek_tor has joined #nixos
<colemickens> Is that method of sharing the overlays worth the disadvantages that come with modifying nixPath?
<vek_tor> i'm working on a program that uses GTK. if i package it for nixos, how do I specify 'this needs at least GTK version X.Y'?
<vek_tor> or more generally: how does nixos make sure that all of the various gtk programs on a nixos system are going to have compatible gtk versions
malSet has joined #nixos
dansho has joined #nixos
griff_ has joined #nixos
simukis__ has joined #nixos
<simpson> vek_tor: I'm checking, but in general, we ship nixpkgs as complete snapshots of holistic trees of packages that work together.
simukis_ has quit [Ping timeout: 272 seconds]
<vek_tor> aha. so the answer is 'if it's in nixpkgs, it should work with whatever version of gtk is also in nixpkgs'?
<simpson> It seems, looking at a few packages, that `gtk2` and `gtk3` are used to keep the major versions distinct. This is pretty typical. You can check the precise version with `gtk3.version`, I think.
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to release-19.09: https://git.io/Jvun9
<vek_tor> yeah, i more meant: what would happen if some package was compatible with 3.16 but not 3.17?
drakonis1 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #81077 → pastel: 0.6.1 -> 0.7.0 → https://git.io/JvunH
<emily> then it'd break and hopefully get patched and hopefully get that patch sent upstream
<genesis> worldofpeace : what you think of #55574 , i think we missed to put jack on dependancie, i've a look
<{^_^}> https://github.com/NixOS/nixpkgs/issues/55574 (by magnetophon, 1 year ago, open): cadence doesn't see jack
<emily> nixpkgs can pin specific versions but prefers not to
<vek_tor> but if you had to, you could override the gtk3 dependency for that one package and say 'build *this specific one* with 3.16'?
<vek_tor> (not that i'm planning on breaking things, i just want to make sure my mental model for how nixpkgs works is correct)
<energizer`> is it permissible to just use old_version_of_nixpkgs.gtk3 in addition to current_nixpkgs.other_stuff?
<worldofpeace> genesis: yeah, that is actually very easy to fix. I think I was using it on non nixos so I didn't notice.
<genesis> worldofpeace : i think i installed it a part, let's me fix it thanks.
<genesis> (not start jack since a year)
<{^_^}> [nixpkgs] @JeffLabonte opened pull request #81078 → Release/19.09 → https://git.io/Jvun5
<energizer`> like, is there any reason i couldn't have two different versions of nixpkgs active in the same project?
<evanjs> Do the ofborg checks not usually show up in the PR’s “checks” tab if they fail? eg https://github.com/NixOS/nixpkgs/pull/81034/checks
<worldofpeace> genesis: you're going to use Jan's suggestion with substituteAll right?
vidbina has quit [Read error: Connection reset by peer]
<evanjs> Bah another vim update. At least it’s an easy fix
<evanjs> vimPlugins*
<genesis> worldofpeace : no i would fix it in a pythonpropagate ?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvunF
sigmundv has quit [Ping timeout: 260 seconds]
<worldofpeace> genesis: nah, it tries to load the library with a function that doesn't work in nixos https://github.com/NixOS/nixpkgs/issues/55574#issuecomment-570969534
<genesis> cadence is such a crap
<GrimSleepless> I have a PR that takes all the changes that were made in the last 4 months for brave to release 19.09 https://github.com/NixOS/nixpkgs/pull/81078 :)
<{^_^}> #81078 (by JeffLabonte, 9 minutes ago, open): Release/19.09 - Update Brave 0.69.128 -> 1.4.95
drakonis1 has joined #nixos
<genesis> oki worldofpeace i see thanks, i'dn't begin this task.
<worldofpeace> GrimSleepless: great, but you might want to make a PR for 20.03 also. Since that will be the new stable
<worldofpeace> oh wait, I think samueldr did that
<GrimSleepless> worldofpeace: Yes! he did with the older version. 1.4.95 just got released today
<samueldr> worldofpeace: didn't backport to 19.09 as it wouldn't be close to applying cleanly
<GrimSleepless> worldofpeace: I brought the new version to unstable. It still needs reviewing https://github.com/NixOS/nixpkgs/pull/81076
<{^_^}> #81076 (by JeffLabonte, 36 minutes ago, open): brave: 1.3.118 -> 1.4.95
<worldofpeace> GrimSleepless: are those just new commits in that PR, since samueldr it wouldn't apply cleanly
<worldofpeace> * ?
<GrimSleepless> worldofpeace: yes only 3 commits. I used cherry-picks for 19.09
<samueldr> I don't see the (cherry picked from commit ...) that would come from using -x
<samueldr> just a note for future backports :)
<worldofpeace> samueldr++
<{^_^}> samueldr's karma got increased to 171
<GrimSleepless> samueldr: oh! I didn't see that one! Good catch!
<GrimSleepless> samueldr: I can do it all over if you wish so it can be cleaner!
<samueldr> if you can, that would be fine :)
lovesegfault has joined #nixos
<samueldr> not all contributors are adept at gitting their way out of a paper bag, and I can't fault them
drakonis has joined #nixos
<lovesegfault> Can someone help me understand wtf this means
<worldofpeace> lovesegfault: I think I updated tlp last time it had to be manual
maxdevjs has quit [Remote host closed the connection]
<lovesegfault> worldofpeace: Yeah, and this time it's going to be extra manual
<lovesegfault> I'm thinking about this right now
maxdevjs has joined #nixos
infinee has joined #nixos
<lovesegfault> abbradar[m]: added the comment I linked
<worldofpeace> lovesegfault: that comment does make very little sense to meas well
thc202 has quit [Ping timeout: 272 seconds]
<worldofpeace> hmm, maybe it means readFile tries to read a .drv?
<lovesegfault> Maybe...
<samueldr> to me it almost sounds like it made an IFD?
drakonis1 has quit [Ping timeout: 255 seconds]
<lovesegfault> I want to rework this module
<worldofpeace> commit was from 2015
<worldofpeace> it used to do pkgs.writeText "tlp" (builtins.readFile "${tlp}/etc/default/tlp" + cfg.extraConfig);
<samueldr> I think it's missing a "the" : "[...] because it triggers [the] TLP build to get [...]"
<{^_^}> [nixpkgs] @ericdallo opened pull request #81079 → gnomeExtensions.text-translator: init at unstable-2020-02-25 → https://git.io/JvucW
<samueldr> and yeah, builtins.readFile from a derivation is IFD, right?
<lovesegfault> Oh, I think I get it
<lovesegfault> it's reading the tlp.conf the tlp package has in $out/etc?
<lovesegfault> Or, wants to
<samueldr> looks like that yeah
<lovesegfault> Well, $out/etc/default/tlp, which is now $out/etc/tlp.conf
<lovesegfault> So wait
<lovesegfault> Why can't it just use readFile?
<samueldr> > builtins.readFile "${pkgs.tlp}/etc/tlp.conf"
<lovesegfault> Well, it doesn't need anymore anyway. Look at this: https://github.com/linrunner/TLP/releases/tag/1.3.0
<{^_^}> cannot read '/nix/store/3np55m55bdbn0c8p1h8lf8wxgv2gijn0-tlp-1.2.2/etc/tlp.conf', since path '/nix/store/qzqd6wn3wb52igcnydqj6h023qn0a6pn-tlp-1.2.2.drv' is not valid, at (string):283:1
<samueldr> if you try that in your repl, you'll (maybe) see it needs to build the package before being able to buil dit
<lovesegfault> we can now just drop stuff into /etc/tlp.d/*.conf
<{^_^}> [nixpkgs] @worldofpeace opened pull request #81080 → p11-kit: 0.23.19 -> 0.23.20 → https://git.io/Jvucl
* lovesegfault thinks further
<lovesegfault> Well
<lovesegfault> now it has intrinsic defaults
<lovesegfault> so we can just overwrite /etc/tlp.conf since the one that comes with the pkg is empty
<samueldr> if there's a .d, and it's ordered lexicographically, I figure it makes sense to do it that way
<GrimSleepless> samueldr: This should be better! https://github.com/NixOS/nixpkgs/pull/81078
<{^_^}> #81078 (by JeffLabonte, 26 minutes ago, open): Release/19.09 - Update Brave 0.69.128 -> 1.4.95
<lovesegfault> this is the new defualt config
Rusty1 has quit [Remote host closed the connection]
<lovesegfault> just totally empty
<samueldr> oh, so we don't even need it at all
<lovesegfault> Might as well overwrite that and leaving the .d for user drop-in stuff
<samueldr> GrimSleepless: final tip, when making a backports PR, always mention the PR number it comes from, that way GitHub makes a backlink in the original PR, so hopefully the committer that will merge it will see the existing backports PR and use them
<{^_^}> [nixpkgs] @JeffLabonte opened pull request #81082 → nixos: Update brave from 1.3.118 to 1.4.95 → https://git.io/JvucE
<GrimSleepless> samueldr: Where do I mention the PR number, exactly? Does it matter where?
<drakonis> you mention the ticket in question with #<number>
<drakonis> be it an issue or pr
<drakonis> anywhere and it'll be referenced
<drakonis> ie: #81078 on the issue's body or title
<{^_^}> https://github.com/NixOS/nixpkgs/pull/81078 (by JeffLabonte, 32 minutes ago, open): Release/19.09 - Update Brave 0.69.128 -> 1.4.95
<GrimSleepless> drakonis: ok, good! Thank you!
<GrimSleepless> Thank you guys for your help! I am still learning the way to contribute to this awesome project!
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
jerryaldrichiii_ is now known as jerryaldrichiii
<GrimSleepless> samueldr: I took your tip! and I've added it to the commit title! Thanks!
<{^_^}> [nixpkgs] @worldofpeace merged pull request #81064 → [20.03] R: fix build on aarch64 by removing a failing test → https://git.io/JvusT
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to release-20.03: https://git.io/Jvucy
<samueldr> GrimSleepless: in the body of the PR would have been fine too, e.g. something like "This PR backports #xxxxx"
<GrimSleepless> samueldr: noted!
<samueldr> ah, not in the commit themselves, but in the PR description
<samueldr> the commits are already covered by the commit ID from cherry-pick -x
drakonis has quit [Ping timeout: 260 seconds]
<v0|d> hello, how do I enable framebuffer on console to get more space?
Henson has joined #nixos
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
<GrimSleepless> samueldr: Ah yes! You are right. but this case I am backporting stuff from other PRs. so I should right This PR backports X, Y, Z ? correct?
<GrimSleepless> in this case***
<lovesegfault> How can I make a function foo = a: b: "${a} = ${b}" but make sure `b` is types.bool?
<Henson> I notice on my laptop when it resumes from sleep that Firefox often is unable to load pages, giving me an "Unable to connect" error. However only firefox is affected, all other programs are able to access the network just fine. It doesn't always happen. Killing and restarting firefox fixes the problem. Does anybody have any suggestions as to why this could be happening?
orivej has joined #nixos
<samueldr> were I to make this PR, "This backports #XXXX, with the required changes from #YYYY and #ZZZ", x being the version upgrade, y and z the two other PRs, but the most important one is the version upgrade, the other bits are incidental
<samueldr> and it's not like there's really a rule, it's mainly to get the link in the other PR :)
<GrimSleepless> samueldr: gotcha :D
<samueldr> Henson: assuming networkmanager, substitute with the tool you use, disable networking/airplane mode, and then re-enable networking, see if it's whatever service firefox uses to check if it's online or not that's confusd
<samueldr> confused*
<samueldr> though I cannot say I have seen this issue
bhipple has quit [Ping timeout: 258 seconds]
shafox has quit [Remote host closed the connection]
bhipple has joined #nixos
<lovesegfault> I'm editing a nixos module, how can I test it?
<Henson> samueldr: that isn't it. I tried the airplane mode, and also tried restarting networkmanager, to no effect
<samueldr> Henson: that was just a random idea, so :/
<Henson> lovesegfault: do you just want to build it, or do some more rigorous testing?
<samueldr> assuming the former
<lovesegfault> Henson: I just want to make sure it parses and I have no missing vars or w/e
<lovesegfault> samueldr: Nice, that manual link is _also_ helpful :)
<genesis> worldofpeace : it's worse than just substitute ;o)
<lovesegfault> how can I turn ["a" "b" "c"] -> "a b c"
Guest_ has joined #nixos
Fare has quit [Ping timeout: 255 seconds]
<samueldr> I figure, on the whole, the chapter will be helpful in your near future https://nixos.org/nixpkgs/manual/#sec-functions-library
<lovesegfault> samueldr: Beautiful
<lovesegfault> Yeah, that manual is what I guess I was _actually_ looking for :)
<samueldr> I know it is for me
kleisli has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #81037 → [ZHF] pythonPackages.reproject: fix tests → https://git.io/JvuJ4
<{^_^}> [nixpkgs] @jonringer pushed commit from @smaret to master « pythonPackages.reproject: fix tests »: https://git.io/JvuCO
<{^_^}> [nixpkgs] @evanjs opened pull request #81083 → gitkraken: 6.5.1 -> 6.5.3 → https://git.io/JvuC3
<Henson> lovesegfault: (L: lib.concatStrings (lib.intersperse " " L)) ["a" "b" "c"]
<lovesegfault> Henson: I did lib.concatStringsSep
<{^_^}> [nixpkgs] @marsam opened pull request #81084 → rocksdb: 6.4.6 -> 6.6.4 → https://git.io/JvuCs
<evanjs> *calls 5 people over to review*
<samueldr> they must be maintainers of some of these https://gist.github.com/GrahamcOfBorg/ddba5d33d002e1812fc1085685e21a0e
<evanjs> ah, that makes sense. just threw me off having it after the second vimPlugins update, but I suppose that makes sense. The more eyes, the better (and higher chance it gets reviewed soon)
<evanjs> And I can blame ofborg for bothering them :P
<{^_^}> [nixpkgs] @marsam merged pull request #81068 → datamash: 1.5 -> 1.6 → https://git.io/JvuGp
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvuCG
qubasa_ has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #81056 → bfs: 1.5.2 -> 1.6 → https://git.io/JvuY2
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvuCZ
<lovesegfault> samueldr, worldofpeace: the tlp package already provides system units in $out/lib/systemd. Why does the nixos module _also_ define these units?
<lovesegfault> Shouldn't the package just fixup the paths of those instead?
<worldofpeace> lovesegfault: it's possible they are new
<lovesegfault> Ah
<worldofpeace> In general, It think it's good to use the upstream units. it's better to maintain
qubasa has quit [Ping timeout: 240 seconds]
<lovesegfault> Nice, so all I do is correctly set wantedBy?
<lovesegfault> (i.e. systemd.services.tlp.wantedBy)
<samueldr> another option is that our TLP module predates being able to use outside services
<samueldr> IIRC it wasn't always a thing to use package-provided service
<lovesegfault> To rephrase: what do I do to use the package-provided service?
<lovesegfault> This whole module is from 2015, jayzuz
<worldofpeace> systemd.packages
* lovesegfault goes look
<lovesegfault> Ah, yes
* lovesegfault chef hands
Flambe has quit [Quit: Konversation terminated!]
drakonis1 has joined #nixos
drakonis has joined #nixos
<worldofpeace> huh, I'm vaugely remembering a bug that wouldn't let me use a different governor than powersave because I was using tlp.
<lovesegfault> The module sets it to `null`
<worldofpeace> Ah yeah, it disables built in powermanagement.
<lovesegfault> worldofpeace: I guess I should remove these nulls
<lovesegfault> and when I get around to making the module work like `tlp.cpuScalingGovernor.Ac = ...` I force the options to null
LysergicDreams has quit [Ping timeout: 265 seconds]
<worldofpeace> lovesegfault: right, eventually you want to be able to control the config. But, lol, in its current state anything would be much better
LysergicDreams has joined #nixos
<lovesegfault> Yeah, I'm on it "D
Fare has joined #nixos
<lovesegfault> What do you think?
<lovesegfault> Untested
Guest_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lovesegfault> I don't know how to make sure there are no syntax errors
<{^_^}> [nixpkgs] @KAction opened pull request #81085 → ###### Install documentation and example style for "vale" linter → https://git.io/JvuC6
LysergicDreams has quit [Ping timeout: 265 seconds]
<genesis> worldofpeace : i fix catia but now i've render to fix with jack_capture and cadence itself to fix with jackdbus.
<lovesegfault> Is this actually needed? the package already puts that file in it's $out/etc/...
<evanjs> hrm. wish there was a way to have cachix push <cache> -w but with any expressions processed by nix-build, added or not. But I should probably figure out why I can't resolve these deps in the first place
<evanjs> Resolve/determine
<lovesegfault> I'd imagine it gets installed correctly anyway
<lovesegfault> (assuming enableRDW is enabled)
vek_tor has quit [Ping timeout: 260 seconds]
<worldofpeace> lovesegfault: I think the tlp.conf is just a plain key value configuration? you should look at lib/generators.nix I think, I believe there's a key value config generator
<lovesegfault> worldofpeace: Yeah, it's basically a file full of bash envvars
<lovesegfault> FOO=BAR\n...
Guest_ has joined #nixos
<lovesegfault> Also: the new tlp pkg puts a config in /usr/share that acts as the defaults
<lovesegfault> Yep, exactly
<worldofpeace> lovesegfault: so there's defaults we can't touch, but the module needs to be able to control the user file
<lovesegfault> Yeah, this just means outputting a /etc/tlp.conf
<lovesegfault> with the text of extraConfig
<samueldr> lovesegfault: just checking, are you under the impression that a file under $out/etc/ will automatically go in /etc ?
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/7213a447173 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<worldofpeace> And I guess the dropins are for packages that are installed that provide snippets.
<lovesegfault> samueldr: I am, yes, but now I feel that is wrong
<lovesegfault> worldofpeace: Exactly
h0m1 has quit [Ping timeout: 252 seconds]
* samueldr verifies and validates
<worldofpeace> I believe the current module merges the config in the package with extraConfig
<worldofpeace> and then links it too /etc/default/tlp.conf (old location)
<lovesegfault> Yeah, that was correct behavior in the past
<lovesegfault> But now the provided /etc/tlp.conf is just an empty file
h0m1 has joined #nixos
<lovesegfault> Well, not empty exactly, but it's all commented out
<lovesegfault> So I figured we might as well just write in-place
<lovesegfault> this also gets rid of that weirdo hack to read the file without readFile
<samueldr> (I had doubt becaue of /etc/xdg)
<lovesegfault> Previously the author concatenated because the defaults were in the same file that was meant to be the user config (/etc/default)
<lovesegfault> samueldr: Are those paths recursive?
rnhmjoj has quit [Changing host]
rnhmjoj has joined #nixos
rnhmjoj has joined #nixos
<worldofpeace> Yeah, so I guess your plans here is to parameterize those configurations in tlp.conf so users can actually configure it with nix, instead of just an extraConfig?
<lovesegfault> (if I have /bin/foo/bar.bin will it also be handled by default)
<samueldr> wait, that's not even right
<samueldr> since that goes under the generation dir
<worldofpeace> samueldr: those paths are under current-system/sw/
<worldofpeace> yep
<lovesegfault> worldofpeace: In a separate PR, yes, with the snippet I sent you extraConfig continues to work just the same
<worldofpeace> lovesegfault: if you have a package with a subdir in bin it still gets linked
<lovesegfault> worldofpeace: Got it
<evanjs> ah... had an extra arg... no wonder my cache didn't have the right stuff. Still weird how it won't push some of the deeper deps up, though
<worldofpeace> lovesegfault: were you going to add the systemd.packages?
<lovesegfault> did I not?
<lovesegfault> Oh, I didn't
<lovesegfault> nice
<lovesegfault> Updated the gist, worldofpeace
<samueldr> :/ I just don't have an actual source link, but I'm pretty sure nothing in /etc/ directly comes from packages, they all end up there because of environment.etc
<worldofpeace> lol, I don't think I actually answered your question directly about https://gist.github.com/lovesegfault/2f0a2517d7f71c061437cf91123cd37c#file-tlp-nix-L37-L39, yes, that dispatcher script needs to be linked like this to work.
<lovesegfault> well, you two seem to agree on this, so I'll leave that there :D
johnw has quit [Ping timeout: 240 seconds]
<worldofpeace> Hmm, and testing the module. I usually use a nixos vm, but I think your question was about syntax errors
<samueldr> usually this is checked when the software can check
<samueldr> like if it has a mode to check the config file
* lovesegfault tries to nix-instantiate --parse
<lovesegfault> Welp, it parses
LysergicDreams has joined #nixos
<lovesegfault> Can environment.etc.source be a dir?
<lovesegfault> sorry, environment.etc."tlp.d".source
<worldofpeace> lovesegfault: umm, I think so? And tlp doesn't ship with anything in `tlp.d` right?
<lovesegfault> worldofpeace: It ships with a helpful README
<lovesegfault> Not sure whether or not it's worth linking it
<samueldr> it would conflict
<lovesegfault> Oh
<lovesegfault> right
<lovesegfault> I see
<samueldr> well, I think, haven't actually verified
<samueldr> it could be wise to move that README to share/doc/tlp or something
<{^_^}> [nixpkgs] @bhipple opened pull request #81086 → boringtun: upgrade cargo fetcher and cargoSha256 → https://git.io/JvuWE
<worldofpeace> I'm not sure if any other packages ship with a tlp.d/*, but eventually you'd need an option like a `tlp.confPackages` where you. 1. add a package attribute 2. create an env that collects just those files 3. link that at etc/tlp.d
Guest_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest_ has joined #nixos
<lovesegfault> worldofpeace: I'll be honest looking at generators.nix gave my brain a purple nurple
<lovesegfault> in particular toPretty and toPlis
<Fare> in a nix recipe, what's the difference between ${openssl}/lib and ${openssl.out}/lib ?
<lovesegfault> *toPlist
<worldofpeace> lovesegfault: honestly, I had a similar moment a while ago 🤣
<samueldr> Fare: this changes which output the derivation refers to
<samueldr> Fare: some derivations have a different default output
<samueldr> > openssl.outputs
<{^_^}> [ "bin" "dev" "out" "man" "doc" "debug" ]
<samueldr> the first output is the one used when you just
<samueldr> > "${openssl}"
<{^_^}> "/nix/store/7i3k8k854al6ci160syrq2xld97kz4ci-openssl-1.1.1d-bin"
<samueldr> > "${openssl.out}"
<{^_^}> "/nix/store/i8l8gcnz3jya1dr4205gbb92akay3f1f-openssl-1.1.1d"
abathur has joined #nixos
<worldofpeace> lovesegfault: I think all you need is toKeyValue
<lovesegfault> worldofpeace: I need a match on the value's type too, no?
<worldofpeace> ohh, perhaps the examples in the pulseaudio and zfs module will be helpful
<lovesegfault> to map bool to true/false, lists to "a b c" strings to "foooo"
* lovesegfault goes look
<worldofpeace> hmm, I should probably look at the docs too. I've only used them for maybe 4 things in the past
LysergicDreams has quit [Ping timeout: 240 seconds]
<lovesegfault> Oh, the ZFS example is spot on I think
<iqubic> So, I'm trying to install obelisk.
<worldofpeace> Well, what's in the nixpkgs manual could for sure have more examples 😅
<iqubic> I know I can run: `nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz -iA command` from the command line.
<lovesegfault> worldofpeace: definitely :D
<iqubic> I was hoping I could add "let obelisk = (import https://github.com/obsidiansystems...)" to my configuration.nix and have that work
<lovesegfault> IMHO as a self-described medium-level Nixer I can say the biggest cruxes of NixOS docs are:
<iqubic> I run up against the issue of: error: string 'https://github.com/obsidiansystems/obelisk/archive/master.tar.gz' doesn't represent an absolute path, at /etc/nixos/configuration.nix:4:14
<lovesegfault> 1. Discoverability - it's hard to find the stuff you're looking for and I never know where to look
<lovesegfault> 2. Examples - the easiest way to learn is to see it done, and Nix docs usually spend a lot of time telling you what something does instead of just showing it
<lovesegfault> 3. Comments - Even when you do find examples they lack comments, so if I see some weird syntax like { foo = bar; }@foobar I have to stop and go see wtf that is instead of it just saying "c.f. docs.gov/this-weird-thing"
<worldofpeace> lovesegfault++
<{^_^}> lovesegfault's karma got increased to 11
Guest_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<worldofpeace> TBH, if it were easier to write docs in the first place this would be better
<lovesegfault> Absolutely
<lovesegfault> I wish docs were inline like Rust
<worldofpeace> Most of those issues I've worked around by having people help me/ be the docs mouthpiece 🙂
abathur has quit [Read error: Connection reset by peer]
<worldofpeace> Ahhh, the beauty of the inline docs. simply the most convenient
<lovesegfault> Yeah
abathur has joined #nixos
<lovesegfault> Alright, looking at zedConf in the zfs module is also purple nurpling my brain
<lovesegfault> like wtf is going on here
<abathur> I mentioned this the other day, but: it's useful to clearly define what types of documentation should exist and what they should contain
<abathur> when there are separate types with a clear purpose, it's easier to tell that something is out-of-scope in one place, or something isn't covered in another
<samueldr> lovesegfault: might want to tone down on the tf after w :)
<lovesegfault> samueldr: Does it count as cursing?
<iqubic> So, how should I go about importing the obsidiansystems thing?
<samueldr> I think it does
bhipple has quit [Ping timeout: 252 seconds]
<lovesegfault> OT: Of all the peculiarities of Nix the no-curse IRC policy is the weirdest one IMO :P
<abathur> when it's one big manual, it's less obvious when somethinig that is "covered" isn't covered at the right depth(s)
<samueldr> lovesegfault: elevating the discourse by elevating the language used
<abathur> (apologies for stray characters... unrepaired macbook keyboard)
<samueldr> abathur: there is work currently soft-locked to split the manual
<samueldr> it's in 68020
drakonis1 has quit [Read error: Connection reset by peer]
<samueldr> oops
<samueldr> it's in #68020
<{^_^}> https://github.com/NixOS/nixpkgs/pull/68020 (by grahamc, 25 weeks ago, open): Vacation PR: multi-paged, styled, searchable docs with wrapper tooling and epubs for NixOS and Nixpkgs
bhipple has joined #nixos
Guest_ has joined #nixos
drakonis1 has joined #nixos
<drakonis> sick.
<drakonis> that is so nice.
<lovesegfault> samueldr: I understand the theory, I just disagree that it works (I think curses _can_ be an effective part of communication, and their presence does not by itself set the level of discourse)
vidbina has joined #nixos
abathur has quit [Read error: Connection reset by peer]
<worldofpeace> lovesegfault: lol, I was looking on mastodon's #nixos and someone was like "everybody: wtf! nixos irc: gchristensen can you please avoid using language like this"
felixfoertsch has quit [Ping timeout: 272 seconds]
felixfoertsch23 has joined #nixos
<lovesegfault> Only a curse can convey the feeling of looking at the above link
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<lovesegfault> worldofpeace: lol
aw has joined #nixos
<samueldr> sure, though its constant use does not :)
abathur has joined #nixos
Guest_ has quit [Client Quit]
spacefrogg has joined #nixos
<abathur> (I don't have super-specific nix comments here; I've just got a long-suffering rewrite of documentation for an old MUD where I've shaken all kinds of weird documentation-scope issues
<abathur> out of the tree just by coming up with a strong list of what types should exist, what they cover, and then sorting the existing docs into the types)
LysergicDreams has joined #nixos
<energizer`> llvm, the linux kernel, and python all use reST/Sphinx for their docs, it works really well
<lovesegfault> I want a badge for finding a link with technical material that samueldr implicitly agreed deserves a curseword :D
wiml has quit [Quit: wiml]
<abathur> and splitting the manual into pages isn't quite the same :)
<samueldr> there's already an RFC for bikeshedding a new documentation format, so any discussion about *changing* the documentation format should got here :)
<samueldr> there* :)
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<samueldr> abathur: exactly
<abathur> it's a start, though :)
<abathur> nog
<abathur> it's easy to bikeshed docs unfortunately
<samueldr> rfcs#64
<{^_^}> https://github.com/NixOS/rfcs/pull/64 (by Infinisil, 7 weeks ago, open): [RFC 0064] New Documentation Format for nixpkgs and NixOS
<worldofpeace> lovesegfault: I honestly thought the regex was qr code ad first
<worldofpeace> * at
<lovesegfault> worldofpeace: it's amazing
drakonis has quit [Quit: WeeChat 2.6]
<abathur> samueldr: do you know what "Nix EDSL" means ini this context?
<samueldr> abathur: bespoke thing written using nix
<abathur> I like the semantic parts of reST, but tbh I wish it didn't have a number of the markdowny non-semantic parts
<samueldr> [ (par "a paragraph") (par "another paragraph") (ex "some example") ] # is an inane example
<lovesegfault> czech this out
<abathur> it's OKAY when you're just doing <FORMAT X> -> PDF/HTML
<lovesegfault> I think I got it
<abathur> but if you try to do anything else with docs
<abathur> stronger semantics help
<samueldr> though, my example is *not* a proper example :) just hoping it helps
<abathur> nod
<abathur> I figured, juust making sure it wasn't already a thing I was missing
<abathur> is the Nix community aware of
<abathur> oh, fiddlesticks
<samueldr> of?
<abathur> the Racket one
<abathur> Pollen?
<abathur> with the *losenge*
<samueldr> there may be more than one "racket one"
<samueldr> but someone brought up a racket one, IIRC
<worldofpeace> lovesegfault: yeah, that's hot.
<samueldr> not sure if they took my advice to bring the discussion into the RFC process though
<abathur> "The lozenge (◊)"
<samueldr> because some users here *sure* like to just bikeshed about it but do nothing next
<abathur> wellll then
<samueldr> sorry! this wasn't aimed at you
rogue_koder_ has quit [Ping timeout: 258 seconds]
<lovesegfault> samueldr: bikeshedding is fun and free of commitment, it's the tinder date of technical discussions
<samueldr> the other user was adamant at making their point in a discussion, but didn't seem to want to participate
<abathur> Hehe. No worries. I've had exactly enough beer to have no hope of doing anything more productive than suggesting it. But I have to go grab some food real quick first.
<worldofpeace> lovesegfault++
<{^_^}> lovesegfault's karma got increased to 12
<abathur> after that, to the RFC with me
<samueldr> :)
<lovesegfault> With enough effort I will soon surpass clever's karma with silly jokes alone!
<worldofpeace> lovesegfault: I was literally channeling paris there
<lovesegfault> worldofpeace: I felt it
<worldofpeace> the tinder date of techincal discussions is going into my irc screencap archive
mexisme_ has quit [Ping timeout: 255 seconds]
<lovesegfault> :D
<lovesegfault> Alright, making that tlp PR as a draft
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7213a447173 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<gchristensen> worldofpeace: aww
<lovesegfault> What does my commit messae look like when touching a module? `nixos.services.tlp: revamp`?
<lovesegfault> s/messae/message/
<worldofpeace> gchristensen: 🤣 I'm sorry that the fedi might have sneak dissed you.
<worldofpeace> lovesegfault: honestly, the option attr thing might be better. Usually nixos/tlp
<samueldr> worldofpeace: how do you even look up a hashtag on the fediverse?
<gchristensen> no dissed, just bummed
<lovesegfault> got it
<cole-h> Anybody familiar with cmake: Why does my imported target `PkgConfig::Exiv2` include an obviously non-existent path: "/nix/store/z93sizlqil2b3kiwk2b733n0g6kcklkc-exiv2-0.27.2-dev//nix/store/z93sizlqil2b3kiwk2b733n0g6kcklkc-exiv2-0.27.2-dev/include"?
<worldofpeace> samueldr: I dunno, I just searched #nixos and selected hashtags #nixos
<cole-h> Trying my hand at packaging qimgv at the moment, and this is the current blocker
<worldofpeace> cole-h: I have a guess that I'm confirming
<worldofpeace> cole-h: the .pc file is messed up
<worldofpeace> includedir=/nix/store/z93sizlqil2b3kiwk2b733n0g6kcklkc-exiv2-0.27.2-dev//nix/store/z93sizlqil2b3kiwk2b733n0g6kcklkc-exiv2-0.27.2-dev/include
<cole-h> There is no .pc file, that I can find
<worldofpeace> cole-h: it's in the dev output
<worldofpeace> I can fix this, since I touched exiv2 last I believe
kleisli has quit [Ping timeout: 258 seconds]
<cole-h> Oh, you mean that exiv2's .pc is messed up?
<cole-h> Yep, that appears to be the case
<{^_^}> [nixpkgs] @lovesegfault opened pull request #81087 → tlp: 1.2.2 -> 1.3.1 → https://git.io/Jvulx
<lovesegfault> I will never get over how fast this damn bot it
<lovesegfault> *is
<lovesegfault> I get the notification before the webpage refreshes with the PR
<cole-h> lol :D
learnday20 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @bhipple opened pull request #81088 → gitAndTools.git-absorb: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu8f
<cole-h> worldofpeace: Yup, manually editing the .pc file to fix that works!
remirol is now known as lorimer
<{^_^}> [nixpkgs] @bhipple opened pull request #81089 → gitAndTools.git-interactive-rebase-tool: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu8m
<worldofpeace> ahh I think it's because it subst from includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
nkaretnikov has left #nixos [#nixos]
<worldofpeace> and the setup hook in multiple-outputs.sh will replace ${prefix} to the absolute path to the dev output
<worldofpeace> but we set CMAKE_INSTALL_INCLUDEDIR now, which will also be the entire path
<worldofpeace> libdir isn't right either libdir=${prefix}//nix/store/3yhr6axlxffs3lr127fkwphxf6n4g4rm-exiv2-0.27.2/lib
iyzsong has joined #nixos
<cole-h> lol, not even substituted :D
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 255 seconds]
Supersonic112 is now known as Supersonic
<cole-h> Same with exec_prefix (I assume -- it is `${prefix}`, raw)
<worldofpeace> cole-h: that's actually supposed to be like that https://www.bassi.io/articles/2018/03/15/pkg-config-and-paths/
<cole-h> Oh, I see -- so `${prefix}` should not be replaced at all then?
<worldofpeace> but we hardcode includedir because it's in a different output than prefix
<cole-h> Right -- because it's `-dev`
<worldofpeace> includedir -> dev/include but prefix -> $out
<cole-h> So `libdir=${prefix}/lib` is what it should be?
<{^_^}> [nixpkgs] @bhipple opened pull request #81090 → gitAndTools.git-gone: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu8W
<worldofpeace> cole-h: yes
<worldofpeace> cole-h: this PR describes the actual issue perfectly https://github.com/NixOS/nixpkgs/pull/50628
<{^_^}> #50628 (by orivej, 1 year ago, merged): eigen3_3: fix EIGEN3_INCLUDE_DIR location
<iqubic> So I have this nix-env command: `nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz -iA command` However, I really don't like installing things imperatively like this. Is there a way to add "let obelisk = ...;" to my configuration.nix, and then add "obelisk.command" to my system.environmentPackages? The thing is, I don't know what to put as the definition for obelisk.
<lovesegfault> Can I specify in my NixOS config that I want to apply a patch to nixpkgs?
<lovesegfault> namely: I'm looking for a way to easily test my PR
<bhipple> iqubic: I believe you just need to `import` it from that URL and you should be good to go, e.g. let obelisk = (import <url>).command;
<lovesegfault> samueldr: showed me this, which is helpful: https://nixos.org/nixos/manual/#sec-replace-modules
<energizer`> why import instead of fetchFromGitHub?
<worldofpeace> lovesegfault: wouldn't a nixos vm be faster without messing with your running system?
<iqubic> bhipple: error: string 'https://github.com/obsidiansystems/obelisk/archive/master.tar.gz' doesn't represent an absolute path, at /etc/nixos/configuration.nix:4:14
rail has quit [Ping timeout: 255 seconds]
<iqubic> energizer`: Looks like I'll need to use fetchFromGitHub.
mexisme_ has joined #nixos
<cole-h> <3 worldofpeace
<{^_^}> worldofpeace's karma got increased to 70
<lovesegfault> worldofpeace: Maybe, but then I wouldn't know whether or not it works on my running system, which is what I care most about. I rather test on metal and revert/boot into previous generation than use vms
<worldofpeace> lovesegfault: oohh, yeah the actual powerManagement bit would have to be done like that
<lovesegfault> especially here where I want to see the power consumption before/after with powertop
<lovesegfault> ye
<lovesegfault> So I need something that: a. overrides the module with that from the PR b. overrides the package with that from the pr
butterthebuddha has joined #nixos
<butterthebuddha> just installed nixos on my thinkpad x230, and the wifi interface is down
<butterthebuddha> sudo ifconfig wlp3s0 up isn't doing anything :/
<butterthebuddha> wifi was working OK in the installer
<{^_^}> [nixpkgs] @worldofpeace opened pull request #81091 → exiv2: fix exiv2.pc file → https://git.io/Jvu89
<{^_^}> #81091 (by worldofpeace, 9 seconds ago, open): exiv2: fix exiv2.pc file
<iqubic> Is there a way to specify that I always get the latest rev when using fetchFromGitHub?
<lovesegfault> what on earth is `outRef` in mkDerivation?
<lovesegfault> `outRef = placeholder "out";`
<lovesegfault> and wth is this placeholder keyword?!
<iqubic> error: anonymous function at /nix/store/43vf6pskvwl5pvhvs51yasv9p3zq3rv8-nixos-20.09pre214537.39892985b00/nixos/pkgs/build-support/fetchgithub/default.nix:3:1 called without required argument 'rev', at /etc/nixos/configuration.nix:4:13
<worldofpeace> lovesegfault: at that point, I'd just patch nixpkgs inside nixos config 🤣
<iqubic> So, yeah. I want to always get the latest version from master.
<lovesegfault> worldofpeace: Can I do that?
<bhipple> err, by import I meant the builtins.fetcher -> import
<energizer`> iqubic: maybe that's what niv is for?
<iqubic> niv?
<worldofpeace> lovesegfault: the outRef thing I did, and it isn't something from mkDerivation. I just reused it for the makeFlags
<bhipple> iqubic: you can just put 'master' for rev; there are some examples in the manual: https://nixos.org/nix/manual/
<bhipple> See example 15.7: Fetching the latest version of a remote branch
<lovesegfault> worldofpeace: But why not just writing `$out`?
<worldofpeace> lovesegfault: placeholder is a bulitin from nix to get a path to an output (this is a greatly simplified explaination)
<lovesegfault> oh my
<bhipple> By default, it has a 5 minute TTL cache, but otherwise will go and re-check
<worldofpeace> lovesegfault: there is no actual memoization, so it's just to look pretty
<lovesegfault> Got it
xkapastel has joined #nixos
<iqubic> This isn't working in the way I want it to.
<iqubic> I have a different issue here.
<worldofpeace> lovesegfault: $out maybe/won't get expanded in the makeFlags things. that's why things like cmakeFlagsArray exists
<lovesegfault> I see
<worldofpeace> lovesegfault: I've never actually tried patching nixpkgs then using it. you'd probably have to change your config a lot to actually do this I think. Do you use channels?
<lovesegfault> worldofpeace: I do, I'm on nixos-unstable
<lovesegfault> I've been meaning to move to pinning nixpkgs instead of using channels
<lovesegfault> worldofpeace: Why do we even bother setting all those makeFlags? With the exception of TLP_NO_INIT they seem to do it themselves using DESTDIR
<lovesegfault> I don't think any of that is necessary
<cole-h> <3 worldofpeace once again. I overlayed exiv2 with your patch and it works!
<{^_^}> worldofpeace's karma got increased to 71
griff_ has quit [Quit: griff_]
<worldofpeace> lovesegfault: that makefile looks different now. I actually shouldn't be setting DESTDIR at all per make's docs https://www.gnu.org/prep/standards/html_node/DESTDIR.html
<iqubic> I added the fetchFromGitHub thing. And then I attempted to add obelisk.command to my system.environmentPackages.
<lovesegfault> worldofpeace: Oh, interesting
<iqubic> It failed with: error: attribute 'command' missing, at /etc/nixos/configuration.nix:104:5
<worldofpeace> lovesegfault: see https://github.com/NixOS/nixpkgs/issues/65718
<{^_^}> #65718 (by jtojnar, 29 weeks ago, open): Do not set DESTDIR in makeFlags
<lovesegfault> worldofpeace: Sweeet, I am fixing it
<worldofpeace> oof, I tried to build not setting those and it wants to install to /usr
<{^_^}> [nixpkgs] @bhipple opened pull request #81092 → gitAndTools.git-codeowners: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu8N
<iqubic> bhipple: What were you suggesting for me?
<butterthebuddha> Okay, I managed to get wifi up and running but nix-env -iA nixpkgs.[any-package] is giving a "attribute nixpkgs not found" error
<lovesegfault> worldofpeace: same
<lovesegfault> something is florbed
<butterthebuddha> and nix-channel --list is empty
* lovesegfault creates new curses
<lovesegfault> worldofpeace: I know what is florbed
<lovesegfault> tlp conflates PREFIX and DESTDIR
<iqubic> So "nix-env -f https://github.com/obsidiansystems/obelisk/archive/master.tar.gz -iA command" works just fine. But I can't figure out how to install this from my configuration.nix
<lovesegfault> it should be catenating PREFIX, instead it catenates DESTDIR
<lovesegfault> reverting with comment
<worldofpeace> the makefile should be like PREFIX ?= /usr and so on
<{^_^}> [nixpkgs] @bhipple opened pull request #81093 → gitAndTools.git-ignore: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu4f
<lovesegfault> worldofpeace: ye
<{^_^}> [nixpkgs] @ryantm closed pull request #81058 → calls: 0.1.1 -> 0.1.2 → https://git.io/JvuOU
<lovesegfault> goddamit bin is gone for some reason
<lovesegfault> lol
<lovesegfault> Oh I know
<lovesegfault> We don't split bin and sbin?
<lovesegfault> wait
<lovesegfault> waaaa
<iqubic> So I don't know how to solve this issue.
<lovesegfault> Oh, it's because tlp is putting stuff in `/usr/...`
<lovesegfault> bingo-bango-bongo
<{^_^}> [nixpkgs] @r-ryantm opened pull request #81094 → calls: 0.1.1 -> 0.1.2 → https://git.io/Jvu4s
mexisme_ has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @ryantm closed pull request #81094 → calls: 0.1.1 -> 0.1.2 → https://git.io/Jvu4s
<lovesegfault> worldofpeace: do we split /usr? Should /usr/bin -> /bin?
<siraben> How do I add a firefox package in to programs.firefox in home-manager?
<lovesegfault> (-> == moves to, not links to)
<lovesegfault> siraben: #home-manager
<siraben> lovesegfault: thanks
<worldofpeace> lovesegfault: you need to set TLP_CONFDEF so there isn't $out/usr/share/tlp/defaults.conf
<lovesegfault> ye
konobi has quit [Remote host closed the connection]
<lovesegfault> worldofpeace: what do I set it to though?
<worldofpeace> TLP_CONFDEF=${outRef}/share/tlp/defaults.conf?
konobi has joined #nixos
<lovesegfault> I... hmmm
<lovesegfault> Wait
<lovesegfault> I see
<worldofpeace> I'd honestly PR to rewrite the makefile so it doesn't have to be this silly, but it's 2020 and I all I care about is MESON
<abathur> samueldr: commented! Pollen is at least passingly mentioned in the RFC :p
<{^_^}> [nixpkgs] @bhipple opened pull request #81095 → gitAndTools.delta: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu4l
emacsomancer has quit [Remote host closed the connection]
emacsomancer has joined #nixos
<iqubic> bhipple: You said I could use import? How would that work?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #81096 → calls: 0.1.1 -> 0.1.2 → https://git.io/Jvu4R
<lovesegfault> worldofpeace: I think I got it
<worldofpeace> fab ✨
abathur has quit [Ping timeout: 255 seconds]
<lovesegfault> worldofpeace: I think this is ready: https://github.com/NixOS/nixpkgs/pull/81087
<{^_^}> #81087 (by lovesegfault, 1 hour ago, open): tlp: 1.2.2 -> 1.3.1
<lovesegfault> Now onto figuring out how to patch my nixpkgs
<worldofpeace> lovesegfault: I'll test it too, I'm using a nixpkgs checkout hub am -3 https://github.com/NixOS/nixpkgs/pull/81087
<{^_^}> #81087 (by lovesegfault, 1 hour ago, open): tlp: 1.2.2 -> 1.3.1
<lovesegfault> what's a nixpkgs checkout hub am -3?
<worldofpeace> I just point -I nixpkgs=/path/to/the/git/repo and I did that to get your commits
<worldofpeace> (in the repo that is)
kleisli has joined #nixos
<worldofpeace> bah, you need to do "tlp.conf".text = cfg.extraConfig; instead of source.
<lovesegfault> derp
<lovesegfault> ofc
<lovesegfault> done
<worldofpeace> oop, and you have an unpatched path in the udev rule
<lovesegfault> That's weird
* lovesegfault goes look
<worldofpeace> two actually
<lovesegfault> Yeah
<lovesegfault> there are new rules
<lovesegfault> how do I patch these udev rules?
<worldofpeace> it appears it's because there's makeFlags dropped
<lovesegfault> Ah! I see my mistake
<worldofpeace> lol, we were this close 🤞
<worldofpeace> huh actually. it's the same in the .service
<lovesegfault> yeah, let me see if I fixed it
<lovesegfault> Oh no
* lovesegfault cries blood
abathur has joined #nixos
* lovesegfault sighs
<lovesegfault> it should be _ULIB there
abathur has quit [Client Quit]
<lovesegfault> I now understand the tyranny of outRef
<lovesegfault> damn
<lovesegfault> I might just patch that
oida has quit [Remote host closed the connection]
<lovesegfault> yes
<lovesegfault> I will patch it
oida has joined #nixos
bhipple has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace closed pull request #53416 → funkwhale: init at 0.20.0 → https://git.io/fhO5J
<worldofpeace> lovesegfault: patch the makefile?
<lovesegfault> yes
<lovesegfault> to do the right thing
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3a0da440a35 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<lovesegfault> instead of putting everything in $out/$out and then cp'ing it back
<lovesegfault> I think it's saner
<worldofpeace> lovesegfault: 🖖 (it sucks this is the closest emoji to salute)
<lovesegfault> :D
vidbina has quit [Ping timeout: 260 seconds]
<thefloweringash> shamelessly bumping my own PR here, but: what's the idiom for booting ec2 machines with their config in git? My answer is to make userdata a script that does `git clone ... && nixos-rebuild switch` (#67345), but maybe there's a nicer way?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/67345 (by thefloweringash, 26 weeks ago, open): amazon-init: run userdata as a script if it starts with #!
chagra has joined #nixos
<lovesegfault> worldofpeace: I think I got it
<lovesegfault> Should patches live in `my-pkg/fix-foo.patch` or `my-pkg/patches/fix-foo.patch`?
<genesis> worldofpeace https://github.com/falkTX/Cadence/issues/204#issuecomment-377995724 i'm not a python pro, i'm unable to that with our pyqt mainloop patch
chagra_ has quit [Ping timeout: 272 seconds]
<worldofpeace> lovesegfault: Usually downstream patches can just be in the same directory. A `patches` directory would be a nice thing to do though, like a treewide thing.
<worldofpeace> (by treewide, I mean each packages directory having a patches subdir)
<lovesegfault> got it
<lovesegfault> I am so close to perfection worldofpeace
<lovesegfault> There is only one remaining issue
<worldofpeace> genesis: How did you create the python env, or how is that env created.? (tbh, I can't remember the context to this particular issue)
griff_ has joined #nixos
<genesis> worldofpeace $ nix-shell ~/devel/nixpkgs -A cadence
<worldofpeace> lovesegfault: lol, the suspense. Always strive for a greater perfection than the last person left, or can be achieved.
<DigitalKiwi> i don't think
ddellacosta has quit [Ping timeout: 255 seconds]
<DigitalKiwi> thefloweringash: nixops?
<DigitalKiwi> >.>
<lovesegfault> worldofpeace: Alright, here's the last issue, inspect result/lib/systemd/system-sleep/tlp
<lovesegfault> I _think_ `tlp` there needs to be a fully qualified path
<genesis> seems same as #8384
<{^_^}> https://github.com/NixOS/nixpkgs/issues/8384 (by travisbhartwell, 4 years ago, open): Pulseaudio equalizer "qpaeq" has missing run-time dependencies
<thefloweringash> Does nixops have a way of configuring auto-scaling groups from a git repo? Like packing a bunch of config files together into a single giant `mkMerge` userdata ?
<worldofpeace> lovesegfault: how does make substitute the paths in the other files? I would just copy that
<worldofpeace> lovesegfault: yep, that should be absolute
zebrag has quit [Quit: Konversation terminated!]
<lovesegfault> worldofpeace: it's just missing the right vars in the file, I'll have to patch it too
* lovesegfault sighs
<worldofpeace> genesis: literally guessing, but because of https://github.com/NixOS/nixpkgs/issues/8384#issuecomment-567246939, the python environment is incomplete
<DigitalKiwi> i'm not sure about auto scaling but it can create ec2 and nothing's stopping you from storing the configs in git
<worldofpeace> lovesegfault: no installation bin directory?
<lovesegfault> worldofpeace: nope, they forgot to make it an infile with proper sedding
<genesis> yes worldofpeace i think i find this one
xelxebar has quit [Remote host closed the connection]
<genesis> one discover means another pb with cadence :')
<worldofpeace> genesis: yeah, if you just look at the imports and docs you should be able to seem which python module' that are missing in propagatedBuildInputs
<genesis> i added dbus-python , let's have a try, but this project is a bit dead btw
xelxebar has joined #nixos
<genesis> after that some tool depends on dead ladish
butterthebuddha has quit [Quit: Textual IRC Client: www.textualapp.com]
<genesis> some cpu.ubuntu freqcontrol
<genesis> and author seems to have no time to fix all the stuff.
<lovesegfault> worldofpeace: DONE
<lovesegfault> MUAHAHA
<lovesegfault> it's now all right
ghasshee has joined #nixos
<worldofpeace> lovesegfault++
<{^_^}> lovesegfault's karma got increased to 13
<worldofpeace> giving out karma like sugar, we have to level this thing out with clever and all
<lovesegfault> lol
chagra has quit [Ping timeout: 265 seconds]
<lovesegfault> worldofpeace: Can I apply the patch to my nixpkgs fork's master and point my nixos channel to that?
* lovesegfault does not understand how channels work
<worldofpeace> lovesegfault: nixos-rebuild -I nixpkgs=/home/path/to/my/fork boot
<worldofpeace> lovesegfault: no, I don't believe you can do that. you can do ^
<lovesegfault> Can I point that to a branch?
rogue_koder_ has joined #nixos
* lovesegfault doubts it
* lovesegfault knows what to do
<colemickens> git worktree ftw
<colemickens> maybe?
<lovesegfault> 1. rollback my fork's master to the latest unstable release 2. apply patches 3. profit
* colemickens has like 20 worktrees of nixpkgs
<worldofpeace> colemickens: sammeeeeeeee
<worldofpeace> colemickens: but I'm terrible at them, and my nixpkgs-master worktree is sometimes a release 🤣
<colemickens> I think nixpkgs-master is the actual git clone, but I don't think I've ever moved that HEAD ever.
<colemickens> I want a repomanager that I can declare my repos/trees in, maybe even tell it about linkage to PRs and have it help manage my life
<worldofpeace> That sounds really cool actually
<colemickens> also, so I can do "repoman status" and have it tell me if my all of my ~/code/ is safely pushed.
<colemickens> I have the rest of $HOME under backup control that I can easily/quickly verify, but my git repos... sometimes I haven't pushed, etc.
<colemickens> and then I could just copy a manifest, "repoman <some init-y verb>" and have it clone/worktree everything back to where it was
<lovesegfault> if I have branch_1 based on commit FOO and branch_2 based on commit BAR, can I merge branch_1 on branch_2 without bringing in all the diffs between FOO and BAR?
<lovesegfault> I think I want a rebase
<worldofpeace> lovesegfault: git rebase --onto new_base old_base ?
kleisli has quit [Ping timeout: 265 seconds]
<worldofpeace> colemickens: I would throw same 💸 at that project
<lovesegfault> Alright, rebooting
<energizer`> colemickens what would it do?
<energizer`> just loop over all your local repos and do stuff to them?
<colemickens> energizer`: more or less.
<colemickens> that was weird
<lovesegfault> brb
lovesegfault has quit [Quit: WeeChat 2.7.1]
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<energizer`> colemickens: not quite what you're asking for but https://github.com/asottile/all-repos
<colemickens> There used to be a ... haskell? project by a googler that would sit and watch git repos and try to keep remote-updating and fast-forwarding branches as often as possible...
griff_ has quit [Quit: griff_]
<colemickens> I've thought about a daemon that watches an "active" repo and would auto add-commit-push your changes to a shadow branch, and if your branch is in an untouched state on the remote machine, the same daemon could watch the shadow branch and keep applying the changes to the local checkout.
<colemickens> So you sort of would get auto-code-sync via a shadow branch. Might be of dubious value/reliability? Was just an idea I had for keeping my nixpkgs copies up-to-date on builder machines where I'm unlikely to ever make local changes.
xelxebar has quit [Remote host closed the connection]
<energizer`> while 1; hub sync; sleep 30; done;
palo1 has joined #nixos
<energizer`> magit-wip-mode is nice, if you're an emacser
<iqubic> I've never heard of it, and I use EXWM. I'll look into that.
<Aleksejs> hello, I can't run Discord anymore. It says that update is required. Basically the same issue https://github.com/NixOS/nixpkgs/issues/54003
<{^_^}> #54003 (by tadeokondrak, 1 year ago, closed): Discord has been updated, does not work anymore
lovesegfault has joined #nixos
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
mexisme_ has joined #nixos
<worldofpeace> Aleksejs: this was just fixed https://github.com/NixOS/nixpkgs/issues/81072
<{^_^}> #81072 (by btlvr, 5 hours ago, closed): Discord: package is out of date
<lovesegfault> worldofpeace: it's kaput
<worldofpeace> lovesegfault: lol, time to look at the changelogs and journal
<lovesegfault> yep
Mateon2 has quit [Ping timeout: 272 seconds]
<lovesegfault> /nix/store/b155xywbn0zf5fv6vp3bx3c8rlm7nv6r-tlp-1.3.1/share/tlp/tlp-func-base: line 153: id: command not found
<lovesegfault> hmmm
<genesis> worldofpeace : i fix the main dbus things :)
<lovesegfault> Oh, I see
<worldofpeace> lovesegfault: this is set to "TLP_CONFDEF=/share/tlp/defaults.conf" still?
<genesis> yeah it starts!
<lovesegfault> worldofpeace: it's set to _CONFDEF
stree has quit [Quit: Caught exception]
<worldofpeace> genesis: cool, if you make a PR be sure to ping me. python and jackaudio are my domains also
<lovesegfault> with is the abspath
stree has joined #nixos
<colemickens> lovesegfault: sorry, I scrolled back and still can't tell, are you fixing up TLP?
<lovesegfault> colemickens: yes :P
<lovesegfault> Oh
<genesis> worldofpeace : i'd fix icon and other stuffs, but of course i'll ping u
<genesis> co-maintainer :P
Mateon2 has joined #nixos
<worldofpeace> genesis: oh right, that preFixup is a bit of my magic ✨
<lovesegfault> let's see now
<genesis> i change for makeQtWrapper for now
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/d8652430c55 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
<worldofpeace> genesis: what do you mean, it's already wrapped properly?
<worldofpeace> they're added in ''${qtWrapperArgs[@]}
<genesis> i simplify and fix things
<genesis> like missing coreutils, jack_capture .
<genesis> i let the preFix magic, but it just makeQtWrapper ${source} ${script}
<genesis> work better i see output and can fix easier.
<genesis> let me finish that and get to bed.
<worldofpeace> I don't think you can use wrapQtApp, because it uses wrapProgram. so you can't make it a python executable with python.interpreter
<lovesegfault> I... think I got it now
<worldofpeace> lovesegfault: ✨
mjrosenb has joined #nixos
<mjrosenb> I have a default.nix for a haskell project, and I'd like to update the version of lens which nix installs, any pointers?
<iqubic> I'd recommend using a paste site to show us the current state of your default.nix
<Aleksejs> I tried to switch to 20.03 but it shows an error http://vpaste.net/T9rMM
<worldofpeace> lovesegfault: your commits are so well commented
<worldofpeace> (in tree)
<genesis> worldofpeace makeQtWrapper not wrapQtApp, and it works quite well.
<mjrosenb> for a bit of background, this uses miso + ghcjs but also builds a native binary
mexisme_ has quit [Ping timeout: 260 seconds]
<lovesegfault> this is the last error
<worldofpeace> genesis: ???, oh wait that's a thing. I didn't know that.
<lovesegfault> after this we're in heaven
<worldofpeace> lovesegfault: Why does it want to set locales... If it's with systemd, nixos has that disabled I think
<worldofpeace> lovesegfault: having a hard time finding the source of the error
<worldofpeace> something in perl, maybe not internal
<lovesegfault> Alright, I'm going to assume that it's working correctly then :P
<lovesegfault> I need to set LOCALE_ARCHIVE apparently
<genesis> worldofpeace : oki, without ladish, claudia can't work, i fix every other tools.
<genesis> 8 hours oO
<worldofpeace> lovesegfault: it should be set, hmm, but if it's a system service it won't be
<worldofpeace> nope I lied
<lovesegfault> Yeah, I wonder how other services do it?
<worldofpeace> it's set through systemd.globalEnvironment
<genesis> i found new bugs :3
<genesis> i wonder is patchshebang could handle #!/usr/bin/pulseaudio -nF
<lovesegfault> worldofpeace: the last issue is that the wantedBy seems to not be respected
<worldofpeace> lovesegfault: weird, I do recall something about things in [Install] not working when using systemd.packages
<worldofpeace> genesis: pulseaudio has an interpreter?
<mjrosenb> so, is there a way to specify a particular version of a library for my package?
euandreh has joined #nixos
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
<genesis> yes worldofpeace , .pa files
zebrag has joined #nixos
<worldofpeace> genesis: I guess, as long as the file's executable and in the correct directory
v0|d has quit [Ping timeout: 265 seconds]
<worldofpeace> lovesegfault: now running your tlp commits
zebrag has quit [Quit: Konversation terminated!]
drakonis1 has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
drakonis1 has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #81080 → [20.03] p11-kit: 0.23.19 -> 0.23.20 → https://git.io/Jvucl
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to staging-20.03: https://git.io/JvuRo
<{^_^}> [nixpkgs] @bignaux opened pull request #81098 → cadence: fix dbus,libjack and missing dependancies → https://git.io/JvuR6
<genesis> ping worldofpeace
smatting has joined #nixos
<worldofpeace> genesis: sorry, it's like 2:09 am. I probably shouldn't be doing what I'm doing at all right now 🤣
<worldofpeace> I think I can look at it tomorrow hopefully.
<genesis> it's 8" and i didnt sleep
<genesis> :P
<genesis> ho i've time, i never use this, and btw i've PR that waits for month ;)
<{^_^}> [nixpkgs] @Frostman opened pull request #81099 → smartmontools: 7.0 -> 7.1 and devicedb updated to latest → https://git.io/JvuR1
<cole-h> What's the difference between `qt5.callPackage` and `libsForQt5.callPackage`?
<worldofpeace> I think I might have to enlist a nixpkgs PR troupe. funding needed though
<lovesegfault> worldofpeace: Let's see if I can figure out how to make it work
<genesis> cole-h : nixos mystery ...
<cole-h> :D Just because I see plenty of packages using libsForQt5, and some using just qt5
<genesis> i don't know why it has to be qt5 in this case to get the dbus pyqt mainloop
<worldofpeace> lovesegfault: I left a diff on your pr
<lovesegfault> worldofpeace: Saw it, am pushing in a second
<genesis> cole-h : with my luck qt5 is deprecated in favor of libsForQt5, i bet on that :D
<lovesegfault> worldofpeace: boom, fixed
<mjrosenb> also, I'd like it if I could actually build one or both of these projects with nix-build, rather than always needing to run nix-shell, and building within the shell.
<lovesegfault> worldofpeace: starting the following units: accounts-daemon.service, tlp.service
<lovesegfault> bingo!
<worldofpeace> lovesegfault: I assume we're going to do https://github.com/NixOS/rfcs/pull/42 in the future instead of extraConfig?
<{^_^}> rfcs#42 (by Infinisil, 48 weeks ago, open): [RFC 0042] NixOS settings options
<lovesegfault> worldofpeace: correct
<lovesegfault> When I have time, some time this week most likely
sgrunert has joined #nixos
<worldofpeace> lovesegfault: I'll probably merge your PR tomorrow. It all looks good, I don't really care if there's downstream patches.
<cole-h> If all that's necessary for a derivation is the basics -- pname, version, src, {nativeB,b}uildInputs -- is that OK?
<cole-h> Builds successfully, binary works
<lovesegfault> worldofpeace: Sounds good, will give me time to do some more testing as well :)
<lovesegfault> thanks a lot for all the help today, I learned a bunch!
<worldofpeace> lovesegfault: you're welcome, my pleasure ✨
<lovesegfault> worldofpeace++
<{^_^}> worldofpeace's karma got increased to 72
xelxebar has joined #nixos
<worldofpeace> lovesegfault++
<{^_^}> lovesegfault's karma got increased to 14
<worldofpeace> we rackin up at this point
<lovesegfault> :D
<lovesegfault> I think i doubled my karma today
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
<worldofpeace> lol.
<worldofpeace> ok, before I pass out at my computer (maybe the second time this week...) bye 👋
<cole-h> o/
mexisme_ has joined #nixos
c0c0 has joined #nixos
<lovesegfault> worldofpeace: o/
zupo has joined #nixos
rogue_koder_ has quit [Ping timeout: 265 seconds]
rogue_koder has joined #nixos
pauldub has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
veske2 has joined #nixos
veske has joined #nixos
gagbo has joined #nixos
<{^_^}> [nixpkgs] @B4dM4n closed pull request #81065 → buildRustPackage: do validateCargoDeps after patchPhase → https://git.io/JvuG4
maddo has joined #nixos
m0rphism has joined #nixos
smatting has quit [Ping timeout: 272 seconds]
chimay has joined #nixos
philr has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
gillmanash has joined #nixos
Fulgen has quit [Ping timeout: 248 seconds]
ashgillman has quit [Ping timeout: 248 seconds]
gillmanash has quit [Ping timeout: 260 seconds]
mexisme_ has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
rogue_koder has quit [Ping timeout: 240 seconds]
zupo_ has joined #nixos
gyroninja has quit [Quit: gyroninja]
gyroninja has joined #nixos
gyroninja has quit [Client Quit]
gyroninja has joined #nixos
zupo has quit [Ping timeout: 258 seconds]
ris has quit [Ping timeout: 252 seconds]
smatting has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.7.1]
zupo_ has quit [Ping timeout: 272 seconds]
mexisme_ has joined #nixos
zupo has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #81046 → topgrade: 3.9.0 -> 4.0.2 → https://git.io/JvuL1
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvuE7
logzet has joined #nixos
Acilim has joined #nixos
Acilim has joined #nixos
Acilim has quit [Changing host]
<{^_^}> [nixpkgs] @marsam merged pull request #81095 → gitAndTools.delta: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu4l
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvuEN
<{^_^}> [nixpkgs] @marsam merged pull request #81086 → boringtun: upgrade cargo fetcher and cargoSha256 → https://git.io/JvuWE
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvuEA
chloekek has joined #nixos
rogue_koder has joined #nixos
johnnywho has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #81090 → gitAndTools.git-gone: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu8W
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvuEj
<{^_^}> [nixpkgs] @marsam merged pull request #81088 → gitAndTools.git-absorb: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu8f
vandenoever has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvuue
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<{^_^}> [nixpkgs] @marsam merged pull request #81077 → pastel: 0.6.1 -> 0.7.0 → https://git.io/JvunH
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvuuU
<{^_^}> [nixpkgs] @edwtjo pushed to master « rPackages.ggbio: patch away spelling mistake »: https://git.io/JvuuT
rogue_koder has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #81092 → gitAndTools.git-codeowners: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu8N
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvuuq
vk3wtf has quit [Quit: WeeChat 2.4]
o1lo01ol1o has joined #nixos
Naptra has joined #nixos
rogue_koder has joined #nixos
Chiliparrot has joined #nixos
tilpner_ is now known as tilpner
cfricke has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #81093 → gitAndTools.git-ignore: upgrade cargo fetcher and cargoSha256 → https://git.io/Jvu4f
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvuuc
aaa_ has joined #nixos
griff_ has joined #nixos
noudle has joined #nixos
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
vk3wtf has joined #nixos
vk3wtf has quit [Client Quit]
zupo has quit [Ping timeout: 265 seconds]
vk3wtf has joined #nixos
zupo has joined #nixos
smatting has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @xavierzwirtz opened pull request #81100 → mercurial: add hg-evolve → https://git.io/Jvuuy
dm9 has joined #nixos
<{^_^}> [nixpkgs] @doronbehar opened pull request #81101 → luaPackages.nvim-client: 0.2.0-1 -> 0.2.2-1 → https://git.io/JvuuA
<kalbasit> when I add any package built with `buildPythonApplication` to the `buildInputs` of a shell, I automatically get a `PYTHONPATH`. Where is that getting set? Can it be disabled?
xkapastel has quit [Quit: Connection closed for inactivity]
veske has joined #nixos
veske2 has joined #nixos
<sphalerite> kalbasit: I think that's done by python's setup hook, not by the package itself. Not 100% sure though. You may be able to disable it by explicitly passing an empty PYTHONPATH
chimay has quit [Read error: Connection reset by peer]
<kalbasit> sphalerite: somehow if I add `PYTHONPATH` to the shell, it gets added to the beginining of PYTHONPATH separated by a column
thc202 has joined #nixos
<wedens[m]> perhaps setting dontAddPythonPath will work
johnnywho has quit [Quit: Leaving]
<kalbasit> I just found it wedens[m] that's right. dontAddPythonPath = true; worked!
foldingcookie has quit [Ping timeout: 240 seconds]
bvdw has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
psyanticy has joined #nixos
o1lo01ol1o has joined #nixos
Synthetica has joined #nixos
<Synthetica> Does someone have an example building a NixOS image for raspberry pi from a configuration.nix?
zupo has quit [Read error: Connection reset by peer]
zupo_ has joined #nixos
<Synthetica> (lecture atm, but ping me and I will see it)
erictapen has joined #nixos
buckley310 has quit [Quit: The Lounge - https://thelounge.chat]
aswanson has quit [Quit: WeeChat 2.7.1]
buckley310 has joined #nixos
griff_ has quit [Quit: griff_]
justanotheruser has quit [Ping timeout: 255 seconds]
linarcx has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @bb2020 closed pull request #75454 → nixos/sshd: disable openFirewall by default → https://git.io/Je9BG
<{^_^}> [nix] @domenkozar opened pull request #3375 → install-multi-user: allow overriding user count → https://git.io/JvuzS
gentauro has joined #nixos
cfricke has quit [Quit: WeeChat 2.7]
mexisme_ has quit [Ping timeout: 248 seconds]
tmaekawa has joined #nixos
<LnL> kalbasit: yeah setting that should work
tmaekawa has quit [Client Quit]
dm9 has quit [Quit: WeeChat 2.7.1]
<LnL> I'd like to move the hooks to mkPython* instead of python itself
<{^_^}> [nixos-org-configurations] @edolstra pushed 5 commits to master: https://git.io/Jvuzp
<{^_^}> [nixos-org-configurations] @edolstra merged pull request #104 → adding garbas home ip address to the list which can ssh to nixos.org → https://git.io/Jvuef
linarcx has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
fendor has joined #nixos
cfricke has joined #nixos
zupo_ has quit [Ping timeout: 272 seconds]
cfricke has quit [Client Quit]
xkapastel has joined #nixos
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
cfricke has joined #nixos
sigmundv has joined #nixos
__monty__ has joined #nixos
zupo has joined #nixos
NoctisLabs has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @bb2020 opened pull request #81104 → nixos/transmission: fix startup directory creation → https://git.io/JvugR
CMCDragonkai1 has joined #nixos
smatting has joined #nixos
NoctisLabs has joined #nixos
<{^_^}> [nixpkgs] @knl closed pull request #80644 → niv: reduce the closure size when using the executable → https://git.io/JvBpy
CMCDragonkai1 has quit [Ping timeout: 255 seconds]
bvdw has joined #nixos
v88m has quit [Ping timeout: 272 seconds]
bvdw has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @vanschelven opened pull request #81105 → pythonPackages.isort: Add explicit setuptools dep and bin test → https://git.io/Jvugp
bvdw has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
cfricke has quit [Ping timeout: 255 seconds]
monotux has quit [Ping timeout: 248 seconds]
bvdw has quit [Read error: Connection reset by peer]
energizer` has quit [Ping timeout: 260 seconds]
drakonis_ has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
bvdw has joined #nixos
bvdw has quit [Client Quit]
cfricke has joined #nixos
zupo_ has joined #nixos
cfricke has quit [Client Quit]
bvdw has joined #nixos
zupo has quit [Ping timeout: 255 seconds]
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
monotux has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<eyJhb> How can I nix-shell something from unstable.x?
bvdw has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<immae> eyJhb: nix-shell -p x "<unstable>" depending on what you have in your NIX_PATH
dansho has quit [Quit: Leaving]
<eyJhb> `nix-shell -p gobuster "<unstable>"
<eyJhb> error: undefined variable 'gobuster' at (string):1:94
<eyJhb> ` Doesn't seem to work, I get `unstable.gobuster` from nix search
waleee-cl has joined #nixos
<eyJhb> Nvm, found a alternative
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noudle has quit []
zupo has joined #nixos
<{^_^}> [nixpkgs] @foxit64 opened pull request #81106 → update telegraf 1.13.3 => 1.13.4 → https://git.io/Jvu2a
<{^_^}> [nixpkgs] @FRidh merged pull request #81105 → pythonPackages.isort: Add explicit setuptools dep and bin test → https://git.io/Jvugp
<{^_^}> [nixpkgs] @FRidh pushed commit from @Shados to release-19.09 « pythonPackages.isort: Add explicit setuptools dep and bin test »: https://git.io/Jvu2r
bvdw has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #80537 → talloc: 2.1.14 -> 2.1.16, build with python3 → https://git.io/JvBOj
<{^_^}> [nixpkgs] @FRidh pushed commit from @sorki to master « talloc: 2.1.14 -> 2.1.16, build with python3 »: https://git.io/Jvu2y
<{^_^}> [nixos-homepage] @edolstra pushed 4 commits to flake: https://git.io/Jvu2b
bvdw has quit [Client Quit]
silver has joined #nixos
smatting has quit [Ping timeout: 255 seconds]
zupo has quit [Ping timeout: 255 seconds]
zupo has joined #nixos
Ianulus has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @clkamp opened pull request #81107 → lutris: Add metadata from lutris-unwrapped also to lutris → https://git.io/JvuaF
<{^_^}> [nixpkgs] @romildo opened pull request #81108 → qogir-theme: 2020-02-20 -> 2020-02-26 → https://git.io/JvuVJ
chagra has joined #nixos
werner291 has joined #nixos
<{^_^}> [nixpkgs] @romildo merged pull request #80962 → vimix-gtk-themes: init at 2020-02-24 → https://git.io/JvE8S
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JvuVq
kleisli has joined #nixos
zarel_ has quit [Ping timeout: 260 seconds]
misuzu has quit [Remote host closed the connection]
<{^_^}> [nixops] @erikarvstedt opened pull request #1230 → add env var 'NIXOPS_SSH_OPTS' → https://git.io/JvuVg
griff_ has joined #nixos
zarel has joined #nixos
misuzu has joined #nixos
werner291 has quit [Remote host closed the connection]
smatting has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #81110 → mutt-trim: Init at 2020-02-26 → https://git.io/Jvuwm
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #81111 → WIP: mutt-ics: Init at 2020-02-26 → https://git.io/JvuwY
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #81112 → coqPackages.paco: enable for Coq 8.10 and 8.11 → https://git.io/JvuwB
cinimod has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b7bbc6d3787 (from 79 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<{^_^}> [nixpkgs] @kwohlfahrt opened pull request #81113 → houdini: 17.5.327 -> 18.0.391 → https://git.io/Jvuwy
`mrleaW_ has joined #nixos
griff_ has quit [Quit: griff_]
<{^_^}> [nixpkgs] @cw789 opened pull request #81114 → elixir_1_10: 1.10.1 -> 1.10.2 → https://git.io/Jvuw7
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cinimod> I have `reverseDepsList1 = lib.attrValues reverseDepsAttrs;` which I think gives me a list of package names (how can I check?) and I want to `jailBreak` them all so I try `reverseDepsList = map (x: "(jailBreak " + x + ")") reverseDepsList1;` but this gives `error: value is a string with context while a set was expected`
Fare has quit [Ping timeout: 272 seconds]
`mrleaW_ is now known as mrleaW
smatting has quit [Ping timeout: 258 seconds]
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
smatting has joined #nixos
<{^_^}> [nixpkgs] @smaret opened pull request #81115 → [ZHF] pythonPackages.reproject: fix tests → https://git.io/JvurR
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #81116 → WIP: swappy: Init at 2020-02-26 → https://git.io/JvurE
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
smatting has quit [Ping timeout: 260 seconds]
cinimod` has joined #nixos
drakonis_ has joined #nixos
CMCDragonkai1 has joined #nixos
<{^_^}> [nixos-homepage] @edolstra pushed to flake « Add update.sh script »: https://git.io/JvurS
drakonis has quit [Read error: Connection reset by peer]
cinimod has quit [Ping timeout: 252 seconds]
drakonis1 has joined #nixos
drakonis_ has quit [Ping timeout: 240 seconds]
<mlatus_> Can I write to /nix/store using sudo? I remember it is mounted read only, but I'm not sure about sudo's power
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<cinimod`> nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/19.09.tar.gz default.nix --argstr reverseDepsOf random --arg justPrintAllDeps true
<cinimod`> Segmentation fault: 11
<cinimod`> :(
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/b7bbc6d3787 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
realrokka has quit [Quit: rip]
realrokka has joined #nixos
Rusty1 has joined #nixos
<tilpner> mlatus_: Are you asking because you want to do that (in which case there may be a better solution), or because you want to hear it's not possible?
drakonis1 has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
<mlatus_> tilpner: I will never want to do that, but I also want to know if it is possible to do it by accident
<tilpner> mlatus_: No, it should not be possible by accident
<mlatus_> tilpner: that sounds great :)
<tilpner> mlatus_: findmnt /nix/store
<tilpner> mlatus_: That should say your store is mounted ro, read only
<tilpner> I guess it is possible, but it requires a rather large accident
Guest_ has joined #nixos
shibboleth has joined #nixos
<mlatus_> tilpner: thanks
werner291 has joined #nixos
makaveli[m] has joined #nixos
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #81117 → megasync: 4.2.3.0 -> 4.2.5.0 → https://git.io/JvuoB
Neo-- has joined #nixos
Guest_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @tilpner opened pull request #81118 → nixos/git-daemon: only create git user if it will be used → https://git.io/JvuoP
<{^_^}> [nixpkgs] @tilpner opened pull request #81119 → [20.03] nixos/git-daemon: only create git user if it will be used → https://git.io/JvuoS
hc has joined #nixos
<hc> funny, last night i had a dream that nixos has a beautiful graphical installer that is as powerful as the configuration.nix syntax =)
<hc> but, then once the system was booted you were on your own, no ui installed per default :-)
ambroisie has joined #nixos
<tilpner> Hey, you can make that happen! *insert shia labeouf here*
<aanderse> hc: nixos dreams? too much nixos. ;-)
<tilpner> I think ${"man" + "veru"} was working on a graphical installer, so maybe help them
<DigitalKiwi> you're a much better installer than any application
<hc> aanderse: i think maybe it's nixos deprivation... ever since i got my new xps 13 laptop i was forced to use dellbuntu ;)
<aanderse> ahh, rough gig, sorry to hear
shafox has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/bee470ef9a8 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/3a0da440a35 (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #81120 → nss_wrapper: 1.1.7 -> 1.1.8 → https://git.io/JvuKq
<manveru> tilpner: :P
shafox has quit [Read error: Connection reset by peer]
<eyJhb> When will 20.03 be released?
<tilpner> manveru: Does your highlight detector evaluate Nix now? c.c
<manveru> of course
shafox has joined #nixos
<manveru> eyJhb: sometime before september for sure :)
<{^_^}> [nixpkgs] @stigtsp opened pull request #81121 → perlPackages.Applify: init at 0.21 → https://git.io/JvuKB
<eyJhb> September 2020 I assume, that is a long time to go then!
<manveru> just joking, but if history is any indication, it'll probably be between march and april
<manveru> once https://hydra.nixos.org/jobset/nixos/release-20.03 has no failures anymore
veske2 has joined #nixos
veske has joined #nixos
<eyJhb> What is the total count of failures?
<eyJhb> 22 failures?
<cinimod`> If I have `paths = reverseDepsList;` then I should be able to say `paths = [ builtins.head reverseDepsList ];`?
<eyJhb> Ahh.. More likely 862 failures
<cinimod`> But I get: error: cannot convert a built-in function to JSON
<cinimod`> nix-repl> [ builtins.head [1 2] ] gives
<cinimod`> [ «primop» [ ... ] ]
<cinimod`> Why doesn't it give `[ 1 ]`
Fulgen has joined #nixos
Neo-- has quit [Ping timeout: 260 seconds]
<cinimod`> Apparently it needs parentheses
<tilpner> cinimod`: You were creating a list that contained a function and a list
<evanjs> cinimod`: #nix-lang also might be helpful, I think haha
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #81115 → [ZHF] pythonPackages.reproject: fix tests → https://git.io/JvurR
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to release-20.03: https://git.io/JvuKX
<cinimod`> tilpner: I am too used to Haskell apparently
cinimod` has quit [Read error: Connection reset by peer]
cinimod` has joined #nixos
<tilpner> cinimod`: I hit the other direction recently, wondering why ghc wouldn't accept space-separated lists
chagra has quit [Quit: WeeChat 2.7.1]
aswanson has joined #nixos
chagra has joined #nixos
<o1lo01ol1o> I'm running into a problem getting a pair of haskell overlays to work together. Effectively the first does all the work but creates a number of attributes under haskellPackages; the second needs to take one of those attributes and alias such that cabal recognizes the name. This should work, however, when I combine both overlays, `ld` tries to create a symlink twice during the build.
justanotheruser has joined #nixos
<o1lo01ol1o> if anyone cares to glace at it, I'm not sure what's going wrong.
<cinimod`> I have an expression containing `paths = [ nixpkgs.haskellPackages.splitmix ];` which fails to build `Setup: Encountered missing dependencies: random >=1.0 && <1.2` so I replace it with `paths = [ (nixpkgs.haskell.lib.doJailbreak nixpkgs.haskellPackages.splitmix) ];` but it still fails to build but now with the extra message `Run jailbreak-cabal to lift version restrictions on build inputs.`
rootatarch has joined #nixos
smatting has joined #nixos
tomberek has quit [Ping timeout: 272 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
smatting has quit [Ping timeout: 260 seconds]
sgrunert has quit [Remote host closed the connection]
<cinimod`> So my question is: why isn't my `doJailbreak` actually doing any jailbreaking?
<evanjs> any vim/ycm peoples are welcome to test this if needed -- fixes youcompleteme on nixpkgs-unstable -- #81034
<{^_^}> https://github.com/NixOS/nixpkgs/pull/81034 (by evanjs, 22 hours ago, open): ycmd: 2019-09-19 -> 2020-02-22
kleisli has quit [Ping timeout: 265 seconds]
<blackriversoftwa> Hello all, is it not possible to cross-compile nix presently?
gustavderdrache has joined #nixos
<blackriversoftwa> I'm trying to generate an installer for armv7l-hf (pi) and doing just fine until I run the single-user install script
<blackriversoftwa> then I get `while setting up the build environment: executing '/nix/store/1iaxkm0941nj1m4m5g4fxgg4cq5jckf0-bash-4.4-p23/bin/bash': Exec format error`
<Cadey> blackriversoftwa: terrible idea, but have you set up qemu-user with binfmt-misc?
<blackriversoftwa> It seems that the cross-compiled build of nix somehow pulls in bash for the build system (x86-64) instead of the host (armv7l-hf)
<blackriversoftwa> Cadey: on the pi...?
<Cadey> oh wait what
<blackriversoftwa> Cadey: I've done nix builds for ARM on x86-64 with binfmt-user before
<blackriversoftwa> no wish to try again
<Cadey> that's odd
<evanjs> blackriversoftwa: have you seen this, yet? https://nixos.wiki/wiki/NixOS_on_ARM
<blackriversoftwa> cadey: I lifted the installer-tarball generation stuff from the nix repo and used it to try to make a tarball from a cross-compiled nix
<blackriversoftwa> evanjs: yes and all those caches for armv7l are broken
<simpson> blackriversoftwa: #nixos-aarch64 may know more. Nix itself should cross-compile using pkgsCross.
pjan has joined #nixos
<evanjs> blackriversoftwa: ah, broken? Been a while since I used them
<blackriversoftwa> simpson: yes nix itself cross-compiles fine
<blackriversoftwa> evanjs: or just non-existent
<simpson> Caches are usually not available for ARM; such is life.
<{^_^}> [nixpkgs] @vcunat opened pull request #81122 → nixos/kresd: never force `extraFeatures = false` → https://git.io/Jvui4
<evanjs> dangit clever :P
<evanjs> (one of the two arm caches listed there)
<simpson> Oh, I mean in the sense of having the desired packages, not uptime.
<blackriversoftwa> simpson: I can cross-compile nix from nixpkgs just fine. I lifted the tarball generation stuff from release.nix in the nix repo into an overlay to make a release tarball I could drop onto a pi
<evanjs> yeah the one on cachix seems to be up (cant speak for the contents) but clever's hydra instance doesn't seem to have that project now
<blackriversoftwa> when I run the single-user installer on the pi is when I get the binfmt error about bash
<evanjs> I've just been using pkgsCross for a while now, anyway.
<blackriversoftwa> Is there a way to bootstrap a non-nixos system to have a nix store without using the installer tarball?
<evanjs> Actually, clever has a bunch of stuff specifically for nixos on rpi if that's what you're doing, though it might be too specific/not fit for your use case *shrugs*
<evanjs> blackriversoftwa: that's actually what I have right now
<blackriversoftwa> nixos is out of the question for now, sorry :\
<simpson> Sure. There's probably also a way to cook the installer script correctly.
<blackriversoftwa> let me pastebin my overlay
<evanjs> Both bootstrap with a minimal initrd that uses stuff from a nix/store
<evanjs> Mine doesn't actually run nixos at all, but does have a nix store
kleisli has joined #nixos
<evanjs> blackriversoftwa: and yeah sorry I meant nix/store + nixos if needed on rpi
dm9 has joined #nixos
<{^_^}> [nixpkgs] @vanschelven opened pull request #81123 → Remove vanschelven from maintainers → https://git.io/Jvuir
<evanjs> initrd-tools and initrd (default.nix) are likely what you'll be interested in with either of those overlays
zupo has joined #nixos
<blackriversoftwa> simpson: evanjs: here's the overlay I've been using to build the tarball: https://usercontent.irccloud-cdn.com/file/1KYpopcT/nixInstaller.nix
<blackriversoftwa> evanjs: I can't actually see your overlays, github won't let me click through to the submodule for overlays
<evanjs> oh don't worry about the overlays
<evanjs> sorry, misspoke again :P
<blackriversoftwa> I'm not trying to make nixos run on armv7l
<evanjs> I meant repos :P
<evanjs> right right
<evanjs> I don't have nixos on mine either
<evanjs> it's just a barebones linux system that has programs linked from a nix store :D
<blackriversoftwa> evanjs: does it actually run nix though?
<evanjs> to build it, sure, but it doesn't use nix/nixos at all when running.
mrleaW has quit [Quit: mrleaW]
dingenskirchen has quit [Read error: Connection reset by peer]
dingenskirchen1 has joined #nixos
<blackriversoftwa> evanjs: not helpful in my case: I need nix running on the pis so I can copy nix closures to them and set up environments
<evanjs> Sooo nix on rpi without nixos?
<blackriversoftwa> correct
<blackriversoftwa> they all have existing firmware, can't be helped
<blackriversoftwa> I need to be able to airdrop nix onto them and use it to copy closures and set up custom environments
<evanjs> Ah alright that makes sense. Mine just bake them into the initrd and can't be added after the fact
<evanjs> Though I wonder if all that's needed to change that is including "nix" in the initrd-tools :P or something similar
<evanjs> haven't tried yet
dingenskirchen1 is now known as dingenskirchen
<evanjs> blackriversoftwa: how would you be copying closures over? Like `nix copy` or similar?
<simpson> blackriversoftwa: Uh, are you using the right pkgsCross? Double-check; I think that you're picking up your build host.
<simpson> Other than that, I don't know what's wrong. Best of luck.
<blackriversoftwa> simpson: yes
<blackriversoftwa> hostPlatform is the what things will run on (confusing terminology from LLVM, nix just lifted LLVMs terms for different platforms in a build)
detran has joined #nixos
sigmundv has quit [Ping timeout: 260 seconds]
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #81041 → [20.03] pythonPackages.fipy: 3.3 -> 3.4.1 → https://git.io/Jvukm
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to release-20.03: https://git.io/JvuPL
zebrag has joined #nixos
rail_ has joined #nixos
rogue_koder has quit [Remote host closed the connection]
rogue_koder_ has joined #nixos
<{^_^}> [nixpkgs] @teto merged pull request #81101 → luaPackages.nvim-client: 0.2.0-1 -> 0.2.2-1 → https://git.io/JvuuA
<{^_^}> [nixpkgs] @teto pushed commit from @doronbehar to master « luaPackages.nvim-client: 0.2.0-1 -> 0.2.2-1 »: https://git.io/JvuPE
kiloreux has joined #nixos
<{^_^}> [nixpkgs] @doronbehar opened pull request #81124 → zathura: 0.4.4 -> 0.4.5 and plugins update → https://git.io/JvuPu
sigmundv has joined #nixos
rail_ is now known as rail
page_ has joined #nixos
veske has joined #nixos
veske2 has joined #nixos
drakonis1 has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
page has quit [Ping timeout: 265 seconds]
vidbina has joined #nixos
mrleaW has joined #nixos
Neo-- has joined #nixos
nuncanada has joined #nixos
kleisli has quit [Ping timeout: 260 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waleee-cl has quit [Quit: Connection closed for inactivity]
sigmundv has quit [Ping timeout: 258 seconds]
pauldub has quit [Quit: Communi 3.5.0 - http://communi.github.com]
samrose has quit [Quit: Konversation terminated!]
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/b7bbc6d3787 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/bee470ef9a8 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
romildo has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
<romildo> What function should be used to fetch upstream source code from uncommon git repositories? Like this https://www.opencode.net/ju1464/Snowblind
<__monty__> Probably fetchgit or fetchGit.
<genesis> romildo : fetchgit
<genesis> ho there is also fetchGit of course
<genesis> one wouldn't be enough :-)
kiloreux has quit [Remote host closed the connection]
<romildo> It seems to be a gitlab repository.
<{^_^}> [nixpkgs] @madjar opened pull request #81125 → cabal2nix: split into a lightweight version and a wrapper → https://git.io/JvuXE
sigmundv has joined #nixos
Acilim has quit [Remote host closed the connection]
bvdw has joined #nixos
Ianulus has joined #nixos
philr has quit [Ping timeout: 258 seconds]
werner291 has quit [Quit: werner291]
werner291 has joined #nixos
kleisli has joined #nixos
waleee-cl has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
vidbina has quit [Ping timeout: 265 seconds]
ghasshee has quit [Ping timeout: 265 seconds]
mlatus has quit [Quit: Connection closed for inactivity]
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
mexisme_ has joined #nixos
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #71378 → git-my: init at 1.1.2 → https://git.io/JeBBV
<{^_^}> [nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/JvuMB
rootatarch has quit [Quit: WeeChat 2.7.1]
<dvn> colemickens: i see you updated the readme. i'm still not able to understand how to make this work from the linked manual/wiki page.
linarcx has quit [Ping timeout: 255 seconds]
mexisme_ has quit [Ping timeout: 246 seconds]
<dvn> i've tried making the overlay work, but there seems to be an iceberg of nix configuration to understand in order to get it working
<colemickens> I got frustrated updating the wiki page. I'm sorry. I'll try again today.
Guest22244 has joined #nixos
<blackriversoftwa> simpson: evanjs: I figured it out. I had run into this before: nix-2.3 and earlier have a config.nix in their `corepkgs` which gets improperly substituted when compiling. That config.nix is gutted in the 2.4pre builds so it no longer gets the shell from there. So I need to cross-compile nixUnstable instead of nix
<Guest22244> Hi everyone! Sorry to disturb since I am new to NixOS. I wanted to setup a private repository for keeping offline machines updated.
<infinisil> adisbladis: Hey, for poetry2nix, I have a failing build for pytest due to a missing setupmeta dependency, which seems to come from here: https://github.com/pdbpp/fancycompleter/blob/0.9.1/setup.py#L5
<infinisil> adisbladis: What's the correct fix for this? Remove that dependency with an override? Or was poetry supposed to make this a dependency in the lock file?
<infinisil> Oh sorry, fancycompleter, not pytest
<Guest22244> Anyone can suggest anything tested ? Seem git has all the packages, is this right ?
<blackriversoftwa> `crossPkgs.armv7l-hf-multiplatform.nixUnstable` I think will work without the binfmt error
<simpson> blackriversoftwa: Interesting. Glad it works.
drakonis has quit [Read error: Connection reset by peer]
<blackriversoftwa> simpson: well not sure it works yet but it explains the issue so I am hoping it does
<cinimod`> I am trying to run https://github.com/cdepillabout/nix-reverse-deps-of-haskell-package/blob/master/default.nix#L197 but with `paths = builtins.map haskell.lib.dontHaddock (builtins.map haskell.lib.dontCheck reverseDepsList);` but I think that QuickCheck *is* being tested.
<blackriversoftwa> had to,uh, cross-compile all of LLVM so it will still be a bit
<cinimod`> Is there a way of stopping all testing?
drakonis has joined #nixos
<blackriversoftwa> cinimod`: it's going to be a bit harder than that, because each of those reverse deps is going to pull its dependencies from the package set, not from the list
maddo has quit [Quit: See ya]
<blackriversoftwa> so even if quickcheck built from that list isn't tested, if anything in there depends on QuickCheck, nix will build another quickcheck that will be
rail has quit [Ping timeout: 255 seconds]
maddo has joined #nixos
vidbina has joined #nixos
<cinimod`> blackriversoftwa: what we'd like to do is just compile all the (Haskell) packages that depend on the new version of a base package to see what breaks - is there another way of doing this?
<blackriversoftwa> cinimod`: probably though I don't know what it is
<blackriversoftwa> cinimod`: what you probably want to do to use that but without testing is to explicitly pass haskellPackages to the nix function you linked
<blackriversoftwa> but overridden so that haddocking and checking are turned off
<cinimod`> blackriversoftwa: Ah ok - thanks
<blackriversoftwa> the way nix package sets work makes this a bit tricky to do globally
<{^_^}> [nixpkgs] @Mic92 merged pull request #81122 → nixos/kresd: never force `extraFeatures = false` → https://git.io/Jvui4
bvdw has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JvuMp
<cinimod`> blackriversoftwa: hmmm - I had hoped it would just be a map over haskellPackages
<tilpner> romildo: That would be fetchFromGitLab then
<blackriversoftwa> cinimod`: It's been a while since I used the nixpkgs haskell infrastructure, but you probably need to apply an overlay to the package set and override the haskell stdenv to set dontCheck and dontHaddock true
<blackriversoftwa> trying to do it per package and also for dependencies would be very tricky
bvdw has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<cinimod`> blackriversoftwa: agreed but I somehow thought nix would find the fixed point for me
<blackriversoftwa> cinimod`: yes if you made an overlay for the haskellPackages set (not an overlay for nixpkgs, you need to apply an overlay to haskellPackages specifically) that overrode every package
<blackriversoftwa> cinimod`: but easier to just do an overlay that overwrites the build options all of them start with
ghasshee has joined #nixos
<clever> you can use a haskell overlay to mutate the mkDerivation function
<clever> which every haskell package uses
o1lo01ol1o has joined #nixos
<romildo> tilpner, yes, fetchFromGitLab works. Thanks.
<blackriversoftwa> clever: thanks that is what I was trying to remember cc cinimod`
* cinimod` goes to ponder "you can use a haskell overlay to mutate the mkDerivation function"
drakonis has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<clever> cinimod`: multiple overlays can stack in a sane manner, and other examples exist in the same dir
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #81126 → snowblind: init at 2020-02-26 → https://git.io/JvuDR
<blackriversoftwa> clever: can you post a reminder of how to apply overlays to e.g. haskellPackages rather than to the global pkgs?
smatting has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
<clever> blackriversoftwa: cardaniPkgsBase in this context, can just be replaced with pkgs.haskellPackages
drakonis_ has joined #nixos
<cinimod`> clever blackriversoftwa: I already have one Haskell overlay
<{^_^}> [nixpkgs] @madjar merged pull request #79737 → cvsq: init at 1.10 → https://git.io/Jvc9Y
<{^_^}> [nixpkgs] @madjar pushed 2 commits to master: https://git.io/JvuDa
<clever> cinimod`: the example i linked shows how to apply many at once
<blackriversoftwa> the .extend is the bit I was missing
<clever> pkgs.extend and pkgs.linuxPackages.extend also exist
<cinimod`> :thumbsup:
<{^_^}> [nixpkgs] @vcunat pushed commit from @Mic92 to release-20.03 « Merge #81122 nixos/kresd: never force `extraFeatures = false` »: https://git.io/JvuD6
o1lo01ol1o has quit [Remote host closed the connection]
kleisli has quit [Ping timeout: 258 seconds]
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
rail has joined #nixos
vidbina has quit [Read error: Connection reset by peer]
<evanjs> blackriversoftwa: ohhhhh. glad you figured it out!
<blackriversoftwa> evanjs: well now nix has decided to be grumpy about cross-compiling rust...it wasn't before...
<blackriversoftwa> stupid linker errors with 1000 lines of linker flags
o1lo01ol1o has joined #nixos
vidbina has joined #nixos
<blackriversoftwa> but yeah I think cross-compiling nix and making an installer will be much easier from here forward
shibboleth has quit [Quit: shibboleth]
erasmas has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #81106 → update telegraf 1.13.3 => 1.13.4 → https://git.io/Jvu2a
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JvuDp
<{^_^}> [nixpkgs] @gnidorah opened pull request #81127 → vk-messenger: 4.5.2 -> 5.0.1 → https://git.io/JvuDj
<{^_^}> [nixpkgs] @madjar merged pull request #81005 → parinfer-rust: 0.4.2 -> 0.4.3 → https://git.io/JvEy4
<{^_^}> [nixpkgs] @madjar pushed 2 commits to master: https://git.io/Jvuye
o1lo01ol1o has quit [Remote host closed the connection]
drakonis_ has quit [Ping timeout: 260 seconds]
opthomasprime has joined #nixos
growpotkin has joined #nixos
<cinimod`> clever: blackriversoftwa: I thought I could do this https://gist.github.com/idontgetoutmuch/03965c611e43a17cb518c96160a67e05 but apparently not
drakonis_ has joined #nixos
o1lo01ol1o has joined #nixos
<clever> cinimod`: line 20 is a haskell overlay, so you must apply it to haskellPackages, not nixpkgs
<clever> cinimod`: which is why i linked the fold and extend example, so you can apply several haskell overlays at once
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<{^_^}> [nixpkgs] @deingithub opened pull request #81128 → keybase,kbfs,keybase-gui: 5.1.1 -> 5.2.1 → https://git.io/Jvuyl
drakonis_ has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0babf18003b (from 56 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ca353185084 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @scalavision opened pull request #81129 → igv: 2.4.19 -> 2.8.0 → https://git.io/Jvuy6
chloekek has quit [Quit: WeeChat 2.7]
endformationage has joined #nixos
Fare has joined #nixos
Guest22244 has quit [Ping timeout: 260 seconds]
kleisli has joined #nixos
c0c0 has quit [Quit: WeeChat 2.6]
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
romildo has quit [Quit: Leaving]
v88m has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/JvuS8
drewr has quit [Quit: ERC (IRC client for Emacs 26.3)]
<{^_^}> [nixpkgs] @lsix merged pull request #81018 → pythonPackages.swagger-spec-validator 2.4.3 -> 2.5.0 → https://git.io/JvEx0
<{^_^}> [nixpkgs] @lsix pushed 2 commits to master: https://git.io/JvuSu
<{^_^}> [nixpkgs] @veprbl merged pull request #81017 → mill: 0.6.0 -> 0.6.1 → https://git.io/JvEAb
<{^_^}> [nixpkgs] @veprbl pushed commit from @r-ryantm to master « mill: 0.6.0 -> 0.6.1 (#81017) »: https://git.io/JvuSz
<blackriversoftwa> great, now nix is trying to link armv7l rust packages with x86-64 LLVM .so files
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<blackriversoftwa> ld is understandably unhappy
acarrico has quit [Ping timeout: 265 seconds]
growpotkin has joined #nixos
pikajude has joined #nixos
Fare has quit [Ping timeout: 258 seconds]
sigmundv has quit [Ping timeout: 260 seconds]
acarrico has joined #nixos
<{^_^}> [nixpkgs] @cohei opened pull request #81132 → cmigemo: init at 1.3e → https://git.io/JvuSo
drewr has joined #nixos
wildtrees has joined #nixos
shafox has quit [Remote host closed the connection]
risson_ has joined #nixos
<hexa-> emily: do you have an opinion on #81069?
<{^_^}> https://github.com/NixOS/nixpkgs/issues/81069 (by mweinelt, 17 hours ago, open): ACME module does not request certificate afte rebuild
gagbo has quit [Quit: I'm out !]
srid-- has joined #nixos
leotaku_ has quit [Quit: ZNC 1.7.4 - https://znc.in]
chloekek has joined #nixos
<srid--> What's the simplest way to replace a package (`pkgs.libu2f-host`) in a hardware module? Ref: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/hardware/u2f.nix#L20
lovesegfault has joined #nixos
<srid--> I'd like to replace that with `pkgs.libfido2`
<lovesegfault> worldofpeace: Good morning :)
<simpson> srid--: You could just add to services.udev.packages, if they don't conflict. The proper way (which is not much
<simpson> *not much more complex IMO) is to add a hardware.u2f.package option to the configuration.
<srid--> Ah that may have done it. Thanks simpson
drakonis has quit [Ping timeout: 272 seconds]
* srid-- off to reboot his computer hoping the titan key will work this time
risson_ has quit [Quit: WeeChat 2.8-dev]
leotaku has joined #nixos
<{^_^}> [nixpkgs] @fpletz merged pull request #80981 → nixos/nextcloud: prevent warning about missing X-Frame-Option → https://git.io/JvEw3
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/JvuSb
drakonis_ has joined #nixos
Ianulus has quit [Remote host closed the connection]
dm9 has quit [Quit: WeeChat 2.7.1]
drakonis has joined #nixos
* srid-- celebrates
<cinimod`> blackriversoftwa: clever: a lot of reading has left me no further forward. what should I do with `foo`? https://gist.github.com/idontgetoutmuch/b02458d0a22f23d6c9acf5c2fa794e75#file-shell-nix-L28
Fare has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
malSet has quit [Quit: Quit.]
malSet has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/55beed9922c (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<worldofpeace> lovesegfault: 👋
<lovesegfault> worldofpeace: Wait, don't merge it yet because I just borked it trying to get the restartTrigger to work :P
ixxie has joined #nixos
<lovesegfault> worldofpeace: Ok, now it's ready, I promise I won't touch it :P
<lovesegfault> I've been running it since yesterday
vidbina has quit [Ping timeout: 258 seconds]
opthomasprime has quit [Remote host closed the connection]
erictapen has quit [Ping timeout: 272 seconds]
<michaelpj> uh oh, `nix-collect-garbage` is failing because I'm out of disk, and my `/nix` is on its own filesystem so it's hard to enlarge. What's the recovery path here? can I manually kill stuff in `/nix`
drakonis1 has quit [Read error: Connection reset by peer]
<lovesegfault> michaelpj: Can you `nix optimise-store`?
<michaelpj> error: cannot open connection to remote store 'daemon': could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Disk quota exceeded
<michaelpj> eek
* lovesegfault sets michaelpj on fire
drakonis1 has joined #nixos
<tilpner> michaelpj: There is a small reserve in /nix/var/nix/db
opthomasprime has joined #nixos
<michaelpj> yeah, that seems to have gone already
<tilpner> Oh
<michaelpj> I don't really understand why that didn't help
malSet has quit [Read error: Connection reset by peer]
<michaelpj> there's a bunch of stuff in /nix/var/log/nix/drvs
<michaelpj> maybe some of that can go
malSet has joined #nixos
<michaelpj> haha
<michaelpj> it's a zfs dataset, so I can actually just increase the disk quota
<michaelpj> phew
<tilpner> :|
<michaelpj> zfs saves the day again
genesis has quit [Remote host closed the connection]
genesis has joined #nixos
<{^_^}> [nixpkgs] @tilpner closed pull request #80907 → nixos/version: obfuscate stateVersion to discourage modification → https://git.io/Jv079
<{^_^}> [nixpkgs] @bcdarwin opened pull request #81134 → python3Packages.nitime: init at 0.8.1 → https://git.io/Jvu9b
KeiraT has quit [Ping timeout: 240 seconds]
<gchristensen> can I use something like IdentityFile in my ssh config, but specify a specific key in my SSH auth agent (which is provided by GPG)?
<gchristensen> I can't find a way, but I need to limit the SSH keys presented to a server
KeiraT has joined #nixos
kleisli has quit [Ping timeout: 240 seconds]
<lovesegfault> worldofpeace: I think I need the tlp package to be a restartTrigger too
<lovesegfault> like, the service should restart when tlp is vbumped
drakonis1 has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
<worldofpeace> lovesegfault: shouldn't nixos do that already?
<lovesegfault> Oh, probably?
* lovesegfault does not know
<jared-w> nixos does that automatically if you use the module, yes
<lovesegfault> Nice, alright
<lovesegfault> That means the PR is done for realz :)
o1lo01ol1o has quit [Remote host closed the connection]
<worldofpeace> lovesegfault: hmm, how do I know the suspend resume stuff happens?
shibboleth has joined #nixos
<lovesegfault> worldofpeace: I had the same question and the answer is you don't b/c tlp doesn't output anything
<worldofpeace> lol, not to crush your dream with that comment.
<lovesegfault> I thought about adding yet another patch that changed the sleep script to have an echo
<lovesegfault> but then I decided to watch the democratic debate instead
<worldofpeace> choices
<lovesegfault> worldofpeace: let me show you the patch, one moment
o1lo01ol1o has joined #nixos
<lovesegfault> do you want it?
<worldofpeace> lovesegfault: I'm looking at systemd.nix and I don't really see anything for system-sleep or anything at /etc/systemd/
<lovesegfault> worldofpeace: look at `man systemd-suspend.service`
<{^_^}> [nixpkgs] @primeos pushed to release-20.03 « chromium: 80.0.3987.116 -> 80.0.3987.122 »: https://git.io/JvuHy
<lovesegfault> testing, brb
zupo has joined #nixos
zupo has quit [Client Quit]
h0m1 has quit [Quit: WeeChat 2.7.1]
zupo has joined #nixos
<worldofpeace> lovesegfault: The man says run everything at /usr/lib/systemd/system-sleep/, so I assume it won't run it at all here
<lovesegfault> worldofpeace: darn it
<lovesegfault> yes
<lovesegfault> I can see now that it's not being run
<mmatthieu> worldofpeace: you want to know when on which event it happens ?
<mmatthieu> You have to search in logind
<emily> hexa-: I think it makes sense for the cert to be renewed by default
<worldofpeace> MmeQuignon: I see
<mmatthieu> You should find here the defaults
<lovesegfault> worldofpeace: I suppose the right approach is reviving the tlp-sleep unit that has the right hooks
<emily> if you don't have a use for it you presumably don't enable ti in acme
<worldofpeace> lovesegfault: perhaps changing the systemd module could be easy
<lovesegfault> famous last words
h0m1 has joined #nixos
linarcx has joined #nixos
<lovesegfault> worldofpeace: I imagine we just need to set the path of `system-sleep/` to `/run/current-system/sw/lib/systemd/system-sleep/`?
peelz has joined #nixos
<lovesegfault> FWIW I think it's better to just have the unit than this weirdo script
jgeerds has joined #nixos
<mmatthieu> What are you trying to do ?
<{^_^}> [nixpkgs] @tilpner opened pull request #81135 → nixos/version: validate system.stateVersion → https://git.io/JvuHh
<{^_^}> #81087 (by lovesegfault, 14 hours ago, open): tlp: 1.2.2 -> 1.3.1
<{^_^}> [nixpkgs] @primeos merged pull request #81016 → chromium: 80.0.3987.116 -> 80.0.3987.122 → https://git.io/JvEAO
<{^_^}> [nixpkgs] @primeos pushed 3 commits to master: https://git.io/JvuQe
<lovesegfault> more specifically: the old tlp had a tlp-sleep unit: https://github.com/linrunner/TLP/blob/1.2.2/tlp-sleep.service.in
<lovesegfault> the new tlp does not, and instead has a systemd system-sleep hook script
<lovesegfault> the hook script doesn't work because it get's placed in /run/current-system/sw/lib/systemd/system-sleep
<lovesegfault> but systemd is looking for hook scripts in /usr/lib/systemd/system-sleep
genesis has quit [Remote host closed the connection]
<worldofpeace> lovesegfault: I believe with nixos it's going to be /etc
<lovesegfault> the manpage says this:
<lovesegfault> > Note that scripts or binaries dropped in /usr/lib/systemd/system-sleep/ are intended for local use only and should be considered hacks. If applications want to react to system suspend/hibernation and resume, they should
<{^_^}> error: syntax error, unexpected IN, expecting ')', at (string):283:39
<lovesegfault> rather use the Inhibitor interface[1].
genesis has joined #nixos
<coderobe> hmm, i'm trying to figure out how one is supposed to use security.pam.oath, there doesn't seem to be a way to actually configure the oath seeds etc via nix, is there?
<lovesegfault> So tlp is _wrong_ in making that it's interface
<worldofpeace> lovesegfault: lol
<peelz> does anybody know if there's a Unicode control character to disable the right-to-left behavior of arabic script?
<worldofpeace> I glance entirely over "complete hack"
<lovesegfault> worldofpeace: :D
<worldofpeace> I guess bash was more appealing
* lovesegfault rolls eyes
<worldofpeace> lovesegfault: Yeah, you should add the unit back. But let's PR upstream to revert that since it sucks.
<lovesegfault> I will, I've been doing all this in commits on a branch and just exporting as patches
<worldofpeace> lovesegfault: I'm also looking at https://github.com/worldofpeace/nixpkgs/blob/1c2e27e4d55d14f8a6d769eb9a27c0bc3c4f883e/nixos/modules/system/boot/systemd-lib.nix#L194, I think that should work. I guess I have bugs to open to handle outside this PR
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<mmatthieu> Isn't it possible to create one ?
<lovesegfault> interesting
<lovesegfault> worldofpeace: I'm adding back the unit, one moment
mexisme_ has joined #nixos
garbas has quit [Quit: WeeChat 2.3]
garbas has joined #nixos
<mmatthieu> Yet I don't know if it is possible to do that in a derivation or whatever (not quite familiar with nix vabulary, sorry)
<mmatthieu> * Yet I don't know if it is possible to do that in a derivation or whatever (not quite familiar with nix vocabulary, sorry)
<worldofpeace> lovesegfault: huh, I very doubt tlp has this https://www.freedesktop.org/wiki/Software/systemd/inhibit/
<lovesegfault> Dammit I gotta go
<lovesegfault> I will post the patch before leaving
<lovesegfault> AH
boxscape has joined #nixos
mexisme_ has quit [Ping timeout: 240 seconds]
garbas has quit [Ping timeout: 260 seconds]
Fare has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #81139 → pagemon: 0.01.17 -> 0.01.18 → https://git.io/JvuQl
ixxie has quit [Ping timeout: 265 seconds]
kleisli has joined #nixos
ardea has joined #nixos
sigmundv has joined #nixos
lovesegfault has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @primeos pushed to release-19.09 « gns3-gui: Add the missing setuptools dependency »: https://git.io/JvuQE
jerryaldrichiii_ has joined #nixos
jerryaldrichiii has quit [Ping timeout: 272 seconds]
ris has joined #nixos
kleisli has quit [Ping timeout: 265 seconds]
Fare has joined #nixos
pnobre has joined #nixos
drakonis_ has quit [Ping timeout: 240 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vykook has quit [Quit: ZNC - http://znc.in]
o1lo01ol_ has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noudle has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
kleisli has joined #nixos
vykook has joined #nixos
ardea is now known as aranea
drakonis has quit [Quit: WeeChat 2.6]
mexisme_ has joined #nixos
Jackneill has quit [Remote host closed the connection]
zupo has joined #nixos
vykook has quit [Ping timeout: 260 seconds]
vidbina has joined #nixos
kleisli has quit [Ping timeout: 258 seconds]
vykook has joined #nixos
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
kapil_ has quit [Quit: Connection closed for inactivity]
genesis has quit [Remote host closed the connection]
drakonis has joined #nixos
genesis has joined #nixos
vidbina has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
vidbina has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
vykook has quit [Ping timeout: 240 seconds]
fresheyeball has joined #nixos
<fresheyeball> is there a way to get hexadecimal in nix?
mexisme_ has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 258 seconds]
<infinisil> fresheyeball: Hexadecimal what
<fresheyeball> infinisil: a number to it's hex
<fresheyeball> 0 -> 0
<fresheyeball> 1 -> 1
<fresheyeball> 10 -> A
<fresheyeball> 13 -> D
<fresheyeball> ect...
<infinisil> There isn't anything in nix and nixpkgs at least, but I bet there's some functions floating around that do this
<infinisil> (maybe search IRC logs)
<fresheyeball> I just don't want to have to write this out
drakonis has joined #nixos
<fresheyeball> how about just a floor function?
vykook has joined #nixos
mrleaW has quit [Quit: mrleaW]
niso__ has quit [Quit: leaving]
niso__ has joined #nixos
drakonis_ has quit [Ping timeout: 255 seconds]
<mmatthieu> fresheyeball : what about base16 ?
<fresheyeball> floor = x: lib.strings.toInt (lib.head (lib.strings.splitString "." "${x}"))
<fresheyeball> this is embaressing
srid-- has quit [Quit: Connection closed for inactivity]
Naptra has quit [Quit: Leaving]
<fresheyeball> mmatthieu: maybe, what you do suggest?
Boarders has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<mmatthieu> e4fd8ba5f7bbeaea5ace89fe10255536cd60dab6
<mmatthieu> nix-hash --type sha1 --to-base16 nvd61k9nalji1zl9rrdfmsmvyyjqpzg4
<mmatthieu> maybe there's options to do what you need
vykook has quit [Ping timeout: 255 seconds]
<mmatthieu> I don't know how to open a nix interpreter
<Boarders> Hi I am trying to make a cabal project buildable with nix, we make use of the multiple packages cabal feature, does anyone here know a possible way to do this?
<fresheyeball> nix repl
<fresheyeball> Boarders: callCabal2nix
drakonis1 has joined #nixos
<Boarders> I also have to use allow-newer in a cabal.project file,will callCabal2Nix work?
<fresheyeball> yes
<mmatthieu> fresheyeball: do you know how i could import nix-hash in repl ?
psyanticy has quit [Quit: Connection closed for inactivity]
<fresheyeball> mmatthieu: that's a cli tool, not a nix function
<fresheyeball> so I don't think you can
mexisme_ has joined #nixos
<mmatthieu> well then : nix-hash --type sha1 --to-base16 "your number here"
<mmatthieu> that should do the trick, I think.
<fresheyeball> except I need nix code
<Boarders> fresheyeball: do you know a resource for using cabal2nix? I tried cabal2nix --shell . > default.nix but then nix-build gives me an error
<fresheyeball> what is the error?
vykook has joined #nixos
<fresheyeball> mmatthieu: nice!
o1lo01ol_ has quit [Remote host closed the connection]
<Boarders> fresheyeball: Package ‘clustering-0.4.1’ in /nix/store/szrzskl18ncpjvq3r9pmp0yv16aqhraj-nixpkgs-20.09pre214776.ca353185084/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:53754 is marked as broken, refusing to evaluate.
chloekek has quit [Ping timeout: 255 seconds]
<fresheyeball> Boarders: well that is your problem them
<fresheyeball> then*
o1lo01ol1o has joined #nixos
<fresheyeball> your dependency is broken
<fresheyeball> cabal2nix is working just fine
<Boarders> ah ok, do you know what I can do to start trying to fix this problem
<{^_^}> [nixpkgs] @mweinelt opened pull request #81140 → zsh-powerlevel10k: 1.0 → 1.2.0 → https://git.io/Jvu5E
<clever> Boarders: figure out why its marked as broken (check git history on nixpkgs) and then fix that
maralorn[m] is now known as maralorn
drakonis3 has joined #nixos
maralorn has quit [Quit: authenticating]
maralorn has joined #nixos
<{^_^}> [nixpkgs] @filalex77 closed pull request #74921 → mint: 0.5.0 -> 0.7.1 → https://git.io/JeMjM
drakonis has quit [Ping timeout: 258 seconds]
rune3055 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
agschaid has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #80855 → pythonPackages.msgpack: 0.6.2 -> 1.0.0 → https://git.io/Jv0gS
<{^_^}> [nixpkgs] @jonringer pushed commit from @christianpoveda to master « pythonPackages.msgpack: 0.6.2 -> 1.0.0 »: https://git.io/Jvu5w
vykook has quit [Ping timeout: 258 seconds]
<rune3055> I'm trying to setup the vscode-with-extensions package and idk where to find the already available extensions list (instead of using vscode-utils.extensionsFromVscodeMarketplace)
drakonis has joined #nixos
<{^_^}> [nixpkgs] @jonringer closed pull request #81047 → pythonPackages.msgpack: 0.6.2 -> 1.0.0 → https://git.io/JvuL7
drakonis3 has quit [Ping timeout: 240 seconds]
malSet has quit [Quit: Quit.]
<boxscape> ,channels
<{^_^}> Largest Nix-related channels: #nixos, #nixos-dev, #nix-darwin, #nixos-chat, #nixos-aarch64, #nixos-wiki, #nixos-borg, #nixos-security, #nix-core
<boxscape> If I have an executable that needs some libraries installed and on the LD_LIBRARY_PATH to run, what's the canonical way to do that with nix?
malSet has joined #nixos
dingenskirchen has quit [Quit: dingenskirchen]
<fresheyeball> mmatthieu: error: cannot compare an integer with a set
dingenskirchen1 has joined #nixos
drakonis_ has joined #nixos
<fresheyeball> nix-repl> import ./decToHex.nix { mod = p.lib.mod; } 12
vykook has joined #nixos
<mdash> boxscape: two basic choices for pre-existing executables: patchelf to wire it up to paths/libraries or makeFHSUserEnv to create an environment where things are in expected places
<boxscape> ok, thanks
<gustavderdrache> you can also use autoPatchelfHook
<boxscape> okay
<fresheyeball> I am baffled
dingenskirchen1 is now known as dingenskirchen
<fresheyeball> how is q in that function ever a set?
<{^_^}> [nixpkgs] @jonringer merged pull request #81123 → Remove vanschelven from maintainers → https://git.io/Jvuir
<{^_^}> [nixpkgs] @jonringer pushed 8 commits to master: https://git.io/Jvu5Q
VaNilLa[m] has joined #nixos
drakonis2 has joined #nixos
malSet has quit [Client Quit]
drakonis has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @filalex77 opened pull request #81141 → act: 0.1.3 -> 0.2.4 → https://git.io/Jvu55
mykiwi has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
<ShaRose> Anyone know a way I could make a nix function or something so that during nixos deployment it can run an executable with arguments and get the results to a variable via stdout?
rune3055 has quit [Remote host closed the connection]
risson has quit [Quit: pouet]
risson has joined #nixos
<Boarders> fresheyeball: am I allowed to manually override something being marked as broken e.g. can I point directly at hackage or git for a particular package?
vykook has quit [Ping timeout: 265 seconds]
<mdash> ShaRose: mmm, gotta be careful with that
<mdash> ShaRose: that's a good way to get non-reproducible builds
<mdash> what are you trying to accomplish by going that route?
<mdash> there is probably something you can do.
malSet has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<boxscape> is there some easy way to jump to the derivation of a package in the nixpkgs github repo? I have no idea where in the folder structure I have to look to find what I'm looking for
<colemickens> boxscape: generally I will grep through pkgs/top-level for "pkgname =" and then that = callPackage path/to/derivation
<boxscape> okay, that's not too bad, thanks
<tilpner> boxscape: nix edit -f '<nixpkgs>' hello
<boxscape> oh, nice, thanks
<tilpner> > builtins.unsafeGetAttrPos "hello" pkgs
<{^_^}> { column = 3; file = "/var/lib/nixbot/nixpkgs/master/repo/pkgs/top-level/all-packages.nix"; line = 19583; }
drakonis has joined #nixos
<tilpner> None of these works always, unfortunately
<boxscape> hm, I see
mehlon has joined #nixos
<boxscape> it worked for what I needed it for just now, so that's good
<tilpner> nix edit gets confused by wrappers, grepping for definition doesn't work with nesting, and I forgot what breaks unsafeGetAttrPos
<boxscape> okay
<{^_^}> [nixpkgs] @LnL7 closed pull request #80934 → pythonPackages.msgpack: 0.6.2 -> 1.0.0 → https://git.io/JvEtL
foldingcookie has joined #nixos
drakonis2 has quit [Ping timeout: 272 seconds]
drakonis has quit [Ping timeout: 240 seconds]
agschaid has quit [Quit: Quit]
chloekek has joined #nixos
agschaid has joined #nixos
o1lo01ol1o has joined #nixos
<Boarders> if I use cabal2Nix to create a project and someone on a machine without ghc or cabal tries to build my project will it automatically grab those or do I need to somehow specify it?
<fresheyeball> yes
<Boarders> yes, it will grab them?
<fresheyeball> yes
<Boarders> cool, thanks for your help
cosimone has joined #nixos
zupo has joined #nixos
opthomasprime has quit [Remote host closed the connection]
risson has quit [Remote host closed the connection]
<fresheyeball> Boarders: so those are just part of the nix expression
risson has joined #nixos
<fresheyeball> so if they run nix-build, it's self contained, and environment independent
jgeerds has quit [Ping timeout: 272 seconds]
stree has quit [Remote host closed the connection]
vykook has joined #nixos
risson has quit [Remote host closed the connection]
risson has joined #nixos
chagra has quit [Ping timeout: 260 seconds]
xs has left #nixos [#nixos]
smatting has quit [Ping timeout: 258 seconds]
stree has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jonringer merged pull request #80992 → dotnetCorePackages.{aspnetcore,netcore,sdk}*: bump → https://git.io/JvEKK
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to master: https://git.io/Jvud6
Flambe has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vykook has quit [Ping timeout: 260 seconds]
kleisli has joined #nixos
agschaid has quit [Ping timeout: 265 seconds]
agschaid has joined #nixos
agschaid has quit [Client Quit]
<Boarders> during the course of trying to build my haskell project it fails to build the test-suite of algebraic-graphs and so exits
<Boarders> is this normal? does it run the test suite of all dependencies?
<Boarders> that seems pretty strange to me
<jamiemagee> Hi, I'm a new NixOS use and currently trying to script my setup after playing around in a VM. I'm having trouble with `nix-build` in my build script. I get the error
<jamiemagee> error: getting attributes of path '/nix/store/...-default-builder.sh': No such file or directory
vykook has joined #nixos
Fare has joined #nixos
mexisme_ has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
Flambe has quit [Ping timeout: 272 seconds]
<tilpner> jamiemagee: That depends on what your configuration.nix is
Flambe has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<tilpner> And home-desktop.nix is empty, so I can't see that
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fa838323dd7 (from 56 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d0b3ab3b249 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<jamiemagee> Ah yeah, still working in a VM, but that should contain the `hardware-configuration.nix`
vykook has quit [Ping timeout: 272 seconds]
Jackneill has joined #nixos
<tilpner> jamiemagee: Can't reproduce, ./build works fine
<cole-h> Boarders: I think you might be able to get around that by setting `doCheck = false;`
malSet has quit [Quit: Quit.]
<tilpner> jamiemagee: Is there more to your error than that one line?
pnobre has quit [Ping timeout: 255 seconds]
kristian__ has joined #nixos
Flambe has quit [Ping timeout: 258 seconds]
<jamiemagee> tilpner: Not really. Just listing of derivations. Previous line is just `/nix/store/...-nixos-system-nixos-20.03pre-git.drv`
mexisme_ has joined #nixos
orivej has joined #nixos
malSet has joined #nixos
<tilpner> jamiemagee: I can only leave you with general debugging tips: Reproduce from a clean checkout, comment out as much as possible, then comment back in until it breaks again, pass -vvvvv to nix-build to see why it's trying to access that builder
malSet has quit [Client Quit]
<jared-w> tilpner: how many v's can a nix-build v until a nix-build -v stops -v'ing?
vykook has joined #nixos
<jamiemagee> tilpner: Okay. Thanks for taking the time to look at this 🙂
malSet has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
<tilpner> jared-w: 6, I think
drakonis has joined #nixos
malSet has quit [Client Quit]
fresheyeball has quit [Quit: WeeChat 2.6]
drakonis_ has joined #nixos
malSet has joined #nixos
Thra11 has joined #nixos
vykook has quit [Ping timeout: 255 seconds]
drakonis has quit [Read error: Connection reset by peer]
drakonis2 has joined #nixos
philr has joined #nixos
noobly has joined #nixos
Jackneill has quit [Remote host closed the connection]
<blackriversoftwa> How do I make a single-user nix installation have the nix* binaries available on the PATH when using non-interactive ssh, e.g. so I can nix-copy to it?
bougyman has left #nixos [#nixos]
drakonis_ has quit [Ping timeout: 252 seconds]
<blackriversoftwa> ssh doesn't want to source the user's .profile
vykook has joined #nixos
<manveru> blackriversoftwa: that depends on the shell the user has set
<blackriversoftwa> manveru: it's bash, but ssh doesn't like to let users set environment variables in non-interactive logins i.e. what `nix copy` uses when operating over ssh
<blackriversoftwa> if I log into an interactive session with ssh I can use the nix commands just fine
<manveru> that again depends on the ssh server config, but yeah
<blackriversoftwa> I changed the ssh server config to allow user environment variables, tried setting BASH_ENV to `~/.bashrc` and setting it to source the local profile on a non-interactive shell
<blackriversoftwa> still no dice
<blackriversoftwa> I thought about doing a multi-user install but can't because the kernel for this device doesn't support user namespaces
amnesia` has joined #nixos
<manveru> you can try one of those
drakonis2 has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<Thra11> blackriversoftwa: Can you put things in ~/.ssh/environment ?
<blackriversoftwa> Thra11 yes but only actual variable settings
klntsky has quit [Remote host closed the connection]
<blackriversoftwa> you can't import stuff from another script
<blackriversoftwa> so I guess I could carefully curate the variables that .nix-profile/etc/profile.d/nix.sh sets
<blackriversoftwa> but uh
klntsky has joined #nixos
vykook has quit [Ping timeout: 258 seconds]
<Thra11> blackriversoftwa: ah ok. I haven't looked at the single user setup scripts recently
<blackriversoftwa> seems very fragile
<blackriversoftwa> Thra11 it basically just sets up a nix store permissioned to the single user, then sets up a nix profile for that user
<blackriversoftwa> which is all fine, but it makes it hard to get the nix executables in scope for non-interactive shells
<blackriversoftwa> esp. ssh
<jared-w> manveru: does any distro actually follow that setup correctly?
<blackriversoftwa> (Ubuntu 32 bit on a Pi is where I'd like to be able to nix copy to btw)
<cole-h> Would prefixing the command with `bash -ic "<cmd stuff here>"` work?
euandreh has quit [Remote host closed the connection]
vidbina has quit [Quit: vidbina]
vykook has joined #nixos
gallible[m] has joined #nixos
<blackriversoftwa> cole-h sure: how do I convince `nix copy` to do that?
drakonis has quit [Read error: Connection reset by peer]
<Thra11> Or prefix it with source, like: `source /etc/whatever; nix copy blah`?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #81142 → python37Packages.ezdxf: 0.9 -> 0.11 → https://git.io/Jvub3
<blackriversoftwa> Thra11 `nix copy` runs `nix-store` on the copy target
<blackriversoftwa> or tries to
<blackriversoftwa> in this case, it can't because ssh won't let me put it in the path
<blackriversoftwa> er sshd
<Thra11> Yeah I realised just after I typed that
<cole-h> Ah, I was unfamiliar with `nix copy` -- I didn't realize it handled the connecting stuff.
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/d0b3ab3b249 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<Boarders> cole-h: do you know where I am supposed to put doCheck = false
<cole-h> Boarders: In the derivation
<Thra11> (If it's just a one off, you can do nix-store --export, pipe/copy over ssh, then start an interactive ssh session and nix-store --import. That's almost certainly not what you want though)
<cole-h> Same place you would put `buildInputs`, `src`, etc
<Boarders> I tried just adding it to mkDerivation but it didn't do anything
<cole-h> Sorry, no idea then.
<Boarders> gosh
drakonis1 has quit [Quit: WeeChat 2.6]
<blackriversoftwa> Thra11: I might wind up doing that actually, since I'm going to want to compress stuff in transit
vykook has quit [Ping timeout: 240 seconds]
vykook has joined #nixos
Neo-- has quit [Ping timeout: 248 seconds]
nerdmaxx has joined #nixos
vykook has quit [Ping timeout: 260 seconds]
<jared-w> nix copy is nicely magical
risson has quit [Quit: pouet]
<jared-w> on an unrelated note, does anyone have a nice way to incrementally `nix copy` to a local folder in a way that I don't end up accumulating extra files if I add then remove a package? (eg I'd like the same end result as 'rm -rf my_closure && nix copy --to 'local?root=my_closure'` but ideally without having to actually remove the folder every time)
cinimod` has quit [Ping timeout: 260 seconds]
<jared-w> and, out of curiosity, does anyone have any nice methods they use for writing slightly longer shell files in nix without losing their mind? I have a pretty solid shell setup with shellcheck, linting, etc. syntax highlighting, auto formatting, etc., and lose all of that if I write the file inline in nix but otoh, really like being able to use nix interpolation for certain things in said script
vykook has joined #nixos
risson has joined #nixos
<jackdk> I use this to generate a big .el file in my emacs config
dingenskirchen has quit [Remote host closed the connection]
<jared-w> it's only defined in the standard environment, so I'd have to use it inside something like mkDerivation right?
dingenskirchen has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
ashgillman has joined #nixos
bvdw has joined #nixos
vykook has quit [Ping timeout: 265 seconds]
<colemickens> I don't understand your first question jared-w but I keep reading it thinking it sounds like something I threw together around nix copy once when I was doing some sort of caching "workaround"
<colemickens> I'm going to see if I can find it in git somewhere.
<{^_^}> [nixpkgs] @aanderse merged pull request #80849 → nixos/nextcloud: avoid loading imagick extension more than once → https://git.io/Jv0zk
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JvuNy
noobly has quit [Read error: Connection reset by peer]
mexisme_ has quit [Ping timeout: 240 seconds]
evhan has quit [Quit: De IRC non curat rex...]
vykook has joined #nixos
evhan has joined #nixos
energizer` has joined #nixos
mexisme_ has joined #nixos
<energizer`> if a rust package provides an executable, should I expect naersk.buildPackage to make that executable available in nix-shell?
<energizer`> here's what I tried https://github.com/energizah/tmp but the nix-shell doesn't provide `grex` like I expected
jgeerds has joined #nixos
wildtrees has quit [Remote host closed the connection]
gustavderdrache has quit [Quit: Leaving.]
wildtrees has joined #nixos
vykook has quit [Ping timeout: 255 seconds]
<ShaRose> mdash sorry, got distracted by something. I was hoping to use it to encrypt private data by using system information that requires root access as the seed for the key.
fendor has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #81143 → python27Packages.gphoto2: 2.0.0 -> 2.1.0 → https://git.io/JvuAt
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vykook has joined #nixos
<Boarders> I have a file that I generated with cabal2Nix which has an executable named example (for the same of my question)
<{^_^}> [nixpkgs] @rycee pushed 2 commits to master: https://git.io/JvuA2
<Boarders> I then have a build.nix file which changes some overrides and has { example = pkgs.haskellPackages.example;}
<{^_^}> [nixpkgs] @rycee closed pull request #80897 → keycloak: init 9.0.0 → https://git.io/Jv090
<Boarders> when I try to do nix-build --attr example build.nix it tells me it " attribute 'example' in selection path 'example' not found
<ShaRose> (Specifically, for doing stuff like services.hostapd.wpaPassphrase btw)
<Boarders> am I doing the wrong thing here
Shouou has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #81144 → python27Packages.dash-core-components: 1.7.0 -> 1.8.0 → https://git.io/JvuA6
vykook has quit [Ping timeout: 258 seconds]
gillmanash has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
__monty__ has quit [Quit: leaving]
ashgillman has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 240 seconds]
<Boarders> does anyone know with a haskell package how I can overrride to allow broken?
<Boarders> but just for that single package
<Shouou> How do I specify non-standard dependencies with autoPatchelf? As in, it doesn't exist under ${pkg}/lib, but some other deeper lib directory. It's the case with libjawt.so and openjdk
erictapen has joined #nixos
cosimone has quit [Quit: Terminated!]
vykook has joined #nixos
mexisme_ has quit [Ping timeout: 265 seconds]
gillmanash has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 255 seconds]
vykook has quit [Ping timeout: 260 seconds]
nerdmaxx has quit [Quit: leaving]
philr has quit [Ping timeout: 265 seconds]
shibboleth has quit [Quit: shibboleth]
<{^_^}> [nixpkgs] @stigtsp opened pull request #81146 → rakudo: 2020.01.1 -> 2020.02 → https://git.io/JvuxV
vykook has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #81140 → zsh-powerlevel10k: 1.0 → 1.2.0 → https://git.io/Jvu5E
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/Jvuxy
jerryaldrichiii_ has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #79281 → hey: init at 0.1.3 → https://git.io/JvZvn
<{^_^}> [nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/Jvuxb
<jared-w> jackdk: actually I think this will work after all. Nice. Ended up using pkgs.substituteAll
vykook has quit [Ping timeout: 265 seconds]
cosimone has joined #nixos
amnesia` has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @stigtsp opened pull request #81147 → perlPackages.JSONValidator: 3.18 -> 3.23 → https://git.io/Jvupv
vykook has joined #nixos
Fare has joined #nixos
<jared-w> colemickens: that would be neat if you could find it
chloekek has quit [Ping timeout: 258 seconds]
<colemickens> jared-w: I was thinking about it more, and it's not really applicable. It was more about removing files that were already pushed to a cache so I could use a sorta-dumb CLI tool to blanket push them to my bucket.
<Raito_Bezarius> does nixops enable openssh service by default?
<Raito_Bezarius> i killed for the N-th time a machine
<Raito_Bezarius> I see SSH open because I ensured openssh.enable = true
<jared-w> hmm... sounds so close yet not quite there :
<jared-w> :p
<Raito_Bezarius> but at the same time, the keypair of nixops does not work when I do nixops ssh
<Raito_Bezarius> I have no idea what's going on
<jared-w> colemickens: If you ever found it by chance I'd still be interested in seeing it
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
vykook has quit [Ping timeout: 272 seconds]
maddo has quit [Quit: See ya]
erictapen has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @teto merged pull request #70974 → node updater improvements → https://git.io/JelBb
<{^_^}> [nixpkgs] @teto pushed to master « node updater improvements »: https://git.io/Jvupc
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @teto merged pull request #81070 → nodePackages.insect: init at 5.4.0 → https://git.io/JvuZO
<{^_^}> [nixpkgs] @teto pushed 2 commits to master: https://git.io/JvupW
<{^_^}> [nixpkgs] @teto closed pull request #70652 → nodesPackages.insect: init at 5.4.0 → https://git.io/JeCNq
vykook has joined #nixos
<Raito_Bezarius> also, any idea to easily spawn a qemu private networked NixOS machine?
energizer` has quit [Remote host closed the connection]
jerryaldrichiii has joined #nixos
vykook has quit [Ping timeout: 258 seconds]
<Boarders> could someone tell me how you can load up nix-shell with a given haskell package
<Boarders> says you can do: nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.lens])"
<Boarders> but that didn't work when I loaded up ghci in nix-shell
erasmas has quit [Quit: leaving]
<{^_^}> [nixpkgs] @unode opened pull request #81149 → gtts: init at 2.1.1 → https://git.io/Jvupg
<iqubic> What part of it didn't work?
<iqubic> Was there an error of some sory?
<iqubic> *sort
vykook has joined #nixos
<Boarders> when I enter nix-shell and then do ghci
<Boarders> then I do import Control.Lens and it says Could not find module
<iqubic> But are there any errors when entering nix-shell?
<Boarders> no
<Boarders> just when I try to do what that blog post claims
<iqubic> Weird.
<iqubic> That should work.
jerryaldrichiii_ has joined #nixos
<iqubic> That does work for me.
jerryaldrichiii has quit [Ping timeout: 240 seconds]
<Boarders> I thought it was a functional package manager!
<iqubic> It is.
<iqubic> I have no idea why it isn't working for you.
vykook has quit [Ping timeout: 255 seconds]
evanjs has quit [Quit: ZNC 1.7.5 - https://znc.in]
<Boarders> can it be version dependent
<Boarders> I find it maddening that this can't work when nix is exactly designed so you can do this???
<Raito_Bezarius> Boarders: are you using NixOS?
<Boarders> no, I'm using ubuntu
<Raito_Bezarius> just tried your thing and it worked on my machine
<Raito_Bezarius> so I guess your Nix installation might be broken
evanjs has joined #nixos
<Boarders> just to check
<Raito_Bezarius> or something something nixpkgs broken
<Boarders> all I am doing is
<Boarders> nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.lens])"
<Boarders> then doing ghci
<Raito_Bezarius> exactly what I've done
<Boarders> then in ghci I do: import Control.Lens
<Boarders> and this fails
<Boarders> and for you it doesn't?
<iqubic> Yeah. IDK what's wrong here.
jgeerds has quit [Ping timeout: 255 seconds]
<Raito_Bezarius> Yeah I confirm
<Raito_Bezarius> Well, most likely, Nix is pulling the wrong stuff
<Raito_Bezarius> Or there is something wrong with the Nix setup which breaks the nix shell in a weird way
<Raito_Bezarius> Either a shell issue or a Nix setup issue
<Raito_Bezarius> The only way to debug it is to get better understanding of your own setup
linarcx has quit [Ping timeout: 265 seconds]
<Raito_Bezarius> I'm personally on Arch Linux on a non-NixOS machine, using archlinux-nix and it works just fine
<Raito_Bezarius> Got some issue first regarding channels/root, but ppl here helped me to fix it