worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || 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
mbrgm has quit [Ping timeout: 256 seconds]
mbrgm has joined #nixos
mbrgm has quit [Changing host]
mbrgm has joined #nixos
_rvl_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
hlisp has joined #nixos
_rvl has joined #nixos
invra has joined #nixos
user_0x58 has joined #nixos
hlisp has quit [Ping timeout: 240 seconds]
hlisp has joined #nixos
ilikeheaps has quit [Ping timeout: 258 seconds]
<{^_^}> [nixos-search] @Mic92 opened pull request #30 → import name as keyword → https://git.io/JflAT
orivej has joined #nixos
hlisp has quit [Ping timeout: 272 seconds]
Henson has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #85646 → ledger-live-desktop: 2.1.0 -> 2.3.2 → https://git.io/JfTap
<{^_^}> [nixpkgs] @bhipple pushed 3 commits to master: https://git.io/JflAL
<{^_^}> [nixpkgs] @jonringer merged pull request #87366 → python37Packages.pydantic: 1.4 -> 1.5.1 → https://git.io/JfCrA
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.pydantic: 1.4 -> 1.5.1 »: https://git.io/JflA3
<{^_^}> [nixpkgs] @bhipple merged pull request #87629 → lego: 3.6.0 -> 3.7.0 → https://git.io/JflQF
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JflAG
justanotheruser has quit [Ping timeout: 264 seconds]
<worldofpeace> ,help
<{^_^}> Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<Henson> hello everyone. I'm trying to define a nixops network that shares some common options between the machines in the network. I see in the nixops manual that they use the set union to combine attribute sets, but can I also use mkMerge?
<worldofpeace> ,nixos-gm = A social channel for gender minorities in the NixOS community
<{^_^}> nixos-gm defined
<abathur> Henson: if you don't get an answer here, there's also a #nixops channel (less active, but more likely someone with nixops knowledge will see it at some point when they come back from afk and such)
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #86927 → exoscale-cli: init at 1.12.0 → https://git.io/JfG9Q
<{^_^}> [nixpkgs] @AndersonTorres pushed 3 commits to master: https://git.io/JflAR
<Henson> or perhaps another question is: is there a function that combines configurations together?
<Henson> if I just do an attribute set union, I'm having a problem where a sub attribute set is defined completely in one set, but only partially defined in another, and that seems to be causing problems.
<cole-h> Man, building gcc10 sure takes a long time...
ilikeheaps has joined #nixos
<Henson> for example { foo = { bar = 1; baz = 2;}; } // { foo.bak = 3; }
<Henson> seems this might point me in the right direction: https://discourse.nixos.org/t/merging-attribute-sets-with-nixops/837
<clever> Henson: have you seen the defaults key?
<clever> Henson: anything you put into defaults, applies to all machines
<clever> nixops merges it for you
<b42> > lib.recursiveUpdate { foo = { bar = 1; baz = 2;}; } { foo.bak = 3; }
<{^_^}> { foo = <CODE>; }
<cole-h> > :v > lib.recursiveUpdate { foo = { bar = 1; baz = 2;}; } { foo.bak = 3; }
<{^_^}> All bindings: ADT BRT C'EST CEST CET DKK DRAGONS DRAKONIS EDT ET EUR PDT PST SEK USD UTC UTCShift _add _assign _attrName _attrs _blue _bold _bool _bracket _concat _int _null _num _number _red _semi _set _show _string a a' aandb ack add allDeps array2list assign attr attrName attrs b bar bind bisectFloat bold boldcolors boldpalette bool botsnack bracket buildList builtinTypes builtinsbackup c cToF case codes coinflip colors compose compose' composeAlt
<cole-h> oh no
<cole-h> > :v lib.recursiveUpdate { foo = { bar = 1; baz = 2;}; } { foo.bak = 3; }
<{^_^}> All bindings: ADT BRT C'EST CEST CET DKK DRAGONS DRAKONIS EDT ET EUR PDT PST SEK USD UTC UTCShift _add _assign _attrName _attrs _blue _bold _bool _bracket _concat _int _null _num _number _red _semi _set _show _string a a' aandb ack add allDeps array2list assign attr attrName attrs b bar bind bisectFloat bold boldcolors boldpalette bool botsnack bracket buildList builtinTypes builtinsbackup c cToF case codes coinflip colors compose compose' composeAlt
<cole-h> Oh no
<cole-h> I give up
<cole-h> > :p lib.recursiveUpdate { foo = { bar = 1; baz = 2;}; } { foo.bak = 3; }
<{^_^}> { foo = { bak = 3; bar = 1; baz = 2; }; }
<Henson> clever: well there ya go, that will solve my problem!
<cole-h> jk
<clever> cole-h: recursiveUpdate wont merge lists properly
<clever> cole-h: so it will still wreak havoc on your nixos config
<{^_^}> [nixpkgs] @ryantm merged pull request #87204 → libcello: 0.9.2 -> 2.1.0 → https://git.io/JfnNV
<{^_^}> [nixpkgs] @ryantm pushed commit from @MostAwesomeDude to master « libcello: 0.9.2 -> 2.1.0 »: https://git.io/JflAg
<cole-h> clever: Really? How so/
<clever> cole-h: what you want, is to just use defaults or `imports = [ ./common.nix ];`
hlisp has joined #nixos
<cole-h> s@/@?@
<Henson> for some reason mkMerge isn't doing that I think it should be doing, but clever's solution precludes the need for mkMerge
<clever> > lib.recursiveUpdate { a = [1]; } { a = [2]; }
<{^_^}> { a = <CODE>; }
<clever> > :p lib.recursiveUpdate { a = [1]; } { a = [2]; }
<{^_^}> { a = [ 2 ]; }
<cole-h> Oh
<clever> cole-h: when keys collide, the later overwrites
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JflAV
<cole-h> Interesting. Why doesn't it merge them?
<clever> cole-h: because it doesnt know what rules to use for merging
m0rphism has quit [Quit: WeeChat 2.7.1]
orivej has quit [Ping timeout: 256 seconds]
<clever> cole-h: things like lib.types.lines, can accept "foo" and "bar", but magicaly turn it into "foo\nbar"
<Henson> clever: awesome, that did it. Thank you!
<clever> but recursiveUpdate doesnt use that type system
<cole-h> Is it possible to tell it to `[] ++ []`?
<clever> cole-h: nope
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #87288 → tinywm: init at 2014-04-22 → https://git.io/Jfcbx
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JflAo
<cole-h> Interesting. How does nixops do that merging then? Does it just use mkMerge under the hood?
<clever> cole-h: i think nixops passes each function as an imports list
<cole-h> Oh, cool.
<clever> imports = [ ({config, pkgs, ... }: { ...}) ];
justanotheruser has joined #nixos
<clever> imports can contain a file, a function(returning a set), or a bare set
<clever> defaults is a special key applied to all machines
<cole-h> Now the question becomes, how does `imports` merge that stuff? :D
<cole-h> Huh
<cole-h> Wow.
orivej has joined #nixos
<{^_^}> [nixpkgs] @veprbl opened pull request #87638 → arrow-cpp: 0.16.0 -> 0.17.0 → https://git.io/JflAH
shibboleth has quit [Quit: shibboleth]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #87637 → gcc10: fix eval due to missing `langJit` → https://git.io/JflND
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to staging: https://git.io/JflAb
marsh has joined #nixos
<drakonis> aha
pjt_014 has joined #nixos
hlisp has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @mitchellh opened pull request #87639 → vimUtils: customize accepts alternate {g}vimExecutable value → https://git.io/Jflxn
hlisp has joined #nixos
cmk_zzz has joined #nixos
cmk_zzz has quit [Client Quit]
raingloom has joined #nixos
cmk_zzz has joined #nixos
h0m1 has quit [Ping timeout: 252 seconds]
aveltras has quit [Quit: Connection closed for inactivity]
h0m1 has joined #nixos
aswanson has quit [Quit: WeeChat 2.7.1]
<catern> tarball-ttl is apparently a privileged option - why?
<catern> that seems odd, since the worst I could do with it is consume CPU time, which I can already do...
<gchristensen> I don't think it is... what error do you get?
oborot has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
fendor__ has joined #nixos
i077 has quit [Quit: WeeChat 2.8]
<catern> warning: ignoring the user-specified setting 'tarball-ttl', because it is a restricted setting and you are not a trusted user
fendor_ has quit [Ping timeout: 260 seconds]
<catern> from nix-channel --update --option tarball-ttl 0
<keithy[m]> does nix handle the same key appearing twice gracefully or is that an error?
slack1256 has joined #nixos
<infinisil> keithy[m]: Try it out?
<simpson> > { x = 1; x = 2; } # keithy[m]
<{^_^}> error: attribute 'x' at (string):310:10 already defined at (string):310:3
<infinisil> I suggest using nix repl to answer these kind of questions :)
<keithy[m]> thx
D_ has quit [Quit: No Ping reply in 180 seconds.]
D_ has joined #nixos
sigmundv has quit [Ping timeout: 272 seconds]
<lopsided98> catern: I've noticed that as well. I'm pretty sure it used to work
<lopsided98> On the other hand, the --system option gives a similar warning but actually works anyway
<{^_^}> [nixpkgs] @bhipple merged pull request #87615 → gitAndTools.gh: 0.7.0 -> 0.8.0 → https://git.io/Jflik
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jflpg
<keithy[m]> I have 2 associations, and want to merge them... a = { h = "h"; i = "i"; } and in another config a = a // { b = "b"; }
<keithy[m]> what if I dont know what order they will execute in?
<clever> keithy[m]: why are you trying to merge those sets?, what will then consume the result?
<keithy[m]> syncthing declarative servers.
<keithy[m]> ah got it, declare the empty set first.
<catern> lopsided98: yeah I'm pretty sure it used to work as well
<clever> keithy[m]: you can also use mkMerge in nixos config
<clever> keithy[m]: something = lib.mkMerge [ { set1 } {set2} {set3} ];
markus1199 has joined #nixos
<keithy[m]> I never did get the how to read in a folder full of .nix's
<clever> keithy[m]: map over the results from builtins.readDir
hlisp has quit [Remote host closed the connection]
cr4y1 has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @bhipple merged pull request #85290 → xmrig-proxy: 5.0.1 -> 5.10.
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jflp6
markus1189 has quit [Ping timeout: 256 seconds]
jumper149 has quit [Quit: WeeChat 2.8]
<clever> keithy[m]: try doing `builtins.readDir ./.` in a `nix repl`
<{^_^}> [nixpkgs] @emilazy opened pull request #87640 → weechat-matrix: 0.1.0 -> 0.2.0 → https://git.io/JflpH
hlisp has joined #nixos
<{^_^}> [nixpkgs] @bhipple merged pull request #87585 → procs: 0.10.1 -> 0.10.3 → https://git.io/Jfl3z
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jflp7
<{^_^}> [nixpkgs] @bhipple merged pull request #87601 → freeswitch: 1.10.2 -> 1.10.3 → https://git.io/Jfl0r
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/Jflhe
hlisp has quit [Remote host closed the connection]
rasmusm has quit [Ping timeout: 246 seconds]
felixfoertsch23 has joined #nixos
hlisp has joined #nixos
<keithy[m]> whats the easiest way to broswe throug the result of configuration.nix to see what it created?
<keithy[m]> try doing `builtins.readDir ./.` in a `nix repl` - ok... ill try a few things.
felixfoertsch has quit [Ping timeout: 260 seconds]
felixfoertsch23 is now known as felixfoertsch
ilikeheaps has quit [Ping timeout: 272 seconds]
gustavderdrache has quit [Quit: Leaving.]
rasmusm has joined #nixos
hmpffff has joined #nixos
hmpffff_ has quit [Ping timeout: 272 seconds]
<keithy[m]> does multline input work in nix repl?
<cole-h> Not as far as I'm aware.
<{^_^}> edolstra/nix-repl#4 (by CMCDragonkai, 5 years ago, closed): Multiline repl
ilikeheaps has joined #nixos
<keithy[m]> I was trying to enter the nixfilesIn function
slack1256 has quit [Remote host closed the connection]
<keithy[m]> is there a browser to show yu your configuration.nix result?
ilikeheaps has quit [Ping timeout: 260 seconds]
Henson has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ilikeheaps has joined #nixos
Scriptkiddi has quit [Quit: killed]
mrpi has quit [Quit: killed]
ajs124 has quit [Quit: killed]
das_j has quit [Quit: killed]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
mrpi has joined #nixos
Scriptkiddi has joined #nixos
das_j has joined #nixos
ajs124 has joined #nixos
lovesegfault_ has joined #nixos
<keithy[m]> all I want to do is read in the whole folder of files ./*.nix
<keithy[m]> its been a month now
<keithy[m]> cant find an example anywhere
<keithy[m]> always part examples without context.
<keithy[m]> I looked through every nixos repo I could ind on github
<clever> keithy[m]: first, what do you get when you `builtins.readDir ./.` in `nix repl` ?
<keithy[m]> a bunch of stuff in an assoc
<clever> keithy[m]: now what about `builtins.attrNames (builtins.readDir ./.)` ?
<clever> it may need a :p at the front
<keithy[m]> the names
lovesegfault has quit [Ping timeout: 260 seconds]
<keithy[m]> -?
<clever> keithy[m]: now you can use `builtins.match` to see if its a .nix file, and import to import it
<clever> and map to iterate over the list
<keithy[m]> yes but how does that go into a configuration.nix
<keithy[m]> thats the bit im missin
<clever> keithy[m]: what do you want to then do with that list of nix files?
<keithy[m]> import them
<clever> and then?
<keithy[m]> but the configuration.nix doesnt import them it has a list of imports
fresheyeball has joined #nixos
<clever> keithy[m]: will each file contain nixos options?
<keithy[m]> I think so
<keithy[m]> options?
<clever> keithy[m]: then just put that whole list of filenames into the imports list
<keithy[m]> but if I assign the list of files to avariable it tells me off for not having that option
<clever> keithy[m]: can you pastebin the code you used?
<keithy[m]> how can I browse the result?
<clever> keithy[m]: nix repl
<keithy[m]> you guys need a smalltalk front end
<keithy[m]> but then you might as well reimplement in smalltalk so you have a live object model rather than a text file drv.
<simpson> keithy[m]: I'm working on something like that, but it'll take more than a month and also you probably won't find it more ergonomic than standard NixOS.
<keithy[m]> maybe one day
<keithy[m]> if you use smalltalk then you can save the image which the whole object model and all the browser tools
turona has quit [Ping timeout: 265 seconds]
<keithy[m]> Ill do it when I get around to it
<keithy[m]> people always using static languages to do a dynamic job
<simpson> keithy[m]: If your goal is just to factor your configuration into multiple files, then start by hard-coding `imports = [ ./foo.nix ./bar.nix ];`
<keithy[m]> yep done that
<keithy[m]> now I want to spread those configs accross folders synced formmultiple machines
turona has joined #nixos
<keithy[m]> So the large.nix file is contributed form the large project
<keithy[m]> and the small.nix file is contributed formt he small project
<keithy[m]> nix-repl> import /etc/nixos/configuration.nix
<keithy[m]> so if I do nix-repl> import /etc/nixos/configuration.nix
<keithy[m]> how do I see stuff?
<clever> keithy[m]: `nix repl '<nixpkgs/nixos>'`
<clever> that will load configuration.nix on its own
<clever> then just `config`
<keithy[m]> aaahhhh
justanotheruser has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f75784a33bd (from 8 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
fresheyeball has quit [Quit: WeeChat 2.7.1]
raingloom has quit [Quit: Leaving]
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
<{^_^}> [nixpkgs] @marsam opened pull request #87641 → ocamlformat: 0.14.1 -> 0.14.2 → https://git.io/Jfljw
aw has joined #nixos
hlisp_ has joined #nixos
spacefrogg has joined #nixos
hlisp has quit [Ping timeout: 256 seconds]
hlisp_ has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
justanotheruser has joined #nixos
hlisp has joined #nixos
hlisp has quit [Ping timeout: 260 seconds]
hlisp has joined #nixos
<{^_^}> [nixpkgs] @sjau opened pull request #87643 → easysnap: unstable-2020-04-04 -> unstable-2020-05-12 → https://git.io/JfljA
<hyper_ch> cole-h: already awake?
<cole-h> I'm PDT, so, been awake for the past N hours :^)
<cole-h> What's up?
<hyper_ch> cole-h: you're listed as reviewer on a PR
<hyper_ch> (probably on more than one)
<cole-h> Which? Is it the `osu!` one?
<hyper_ch> cole-h: no, one of my prs :) https://github.com/NixOS/nixpkgs/pull/85853
<{^_^}> #85853 (by sjau, 2 weeks ago, open): vdagent: fixing 90s timeout on shutdown
<cole-h> Ah, it's just because I wanted to make sure you didn't forget to add the actual hash for the patches :^)
<hyper_ch> cole-h: ah :) ok
<cole-h> I don't use vdagent, so I can't provide much more input than that... Sorry.
<hyper_ch> it's ok :)
<hyper_ch> and I have no idea what PDT is :)
<cole-h> Pacific Delta Time :P
<cole-h> > PDT
<{^_^}> "The time in PDT is currently 20:27:08 (UTC -7)"
<{^_^}> [nixpkgs] @worldofpeace merged pull request #87580 → webkitgtk: reenable Hydra build → https://git.io/JflvM
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jf8eL
<hyper_ch> sounds too similar to PTSD :)
julm has quit [Remote host closed the connection]
julm has joined #nixos
hlisp_ has joined #nixos
hlisp has quit [Ping timeout: 240 seconds]
<keithy[m]> my speciality
proofofkeags has quit [Ping timeout: 256 seconds]
<joehh1> hello, has anyone used any of the tensorflow or nvidia docker images on nixos?
luna has joined #nixos
user_0x58 has quit [Quit: Leaving]
<srid> Is Nix 2.4 released? Is it posible to upgrade to it on NixOS? Or is it all managed by nixpkgs?
<keithy[m]> is hasSuffix available as builtins?
<energizer> keithy[m]: lib.strings.hasSuffix
<keithy[m]> how do I get lib ? using nix repl '<nixpkgs/nixos>'
mauli has quit [Ping timeout: 252 seconds]
<energizer> keithy[m]: pkgs.lib.strings.hasSuffix
mauli has joined #nixos
<luna> What is the difference between the nixpkgs repo and the nixos repo?
<drakonis> its the same repo
<drakonis> but at different points in time
<keithy[m]> can someone tell this guy that his page is rather less than useful http://chriswarbo.net/projects/nixos/useful_hacks.html
<luna> Oh. Is nixos older or something?
<drakonis> no not really
<drakonis> nixos-unstable is tested
<drakonis> nixpkgs-unstable is not
<luna> I see.
<drakonis> keithy[m]: what are you looking for?
<luna> That would explain why it didn't have as many updates as I was expecting.
<keithy[m]> readFolder = dir: builtins.attrNames (builtins.filterAttrs (name: _: lib.strings.hasSuffix ".nix" name) (builtins.readDir dir));
<drakonis> you can check the status here
<drakonis> status.nixos.org/
<drakonis> keithy[m]: okay?
<drakonis> that's a function
<keithy[m]> so now filterattrs isnt in builtins?
<luna> drakonis: Oh, I think I understand. Thank you, that was surprisingly helpful!
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
oborot has quit [Ping timeout: 256 seconds]
<drakonis> keithy[m]: no
<keithy[m]> in the nixpkgs docs... all of the example usage, are not actually executable in nixrepl are they
<{^_^}> [nixpkgs] @marsam opened pull request #87644 → translate-shell: 0.9.6.11 -> 0.9.6.12 → https://git.io/Jf8vI
<clever> keithy[m]: did you try in `nix repl '<nixpkgs>'` ?
<keithy[m]> yes
<keithy[m]> This is why nix is SO hard to learn
<clever> keithy[m]: which example is failing?
<keithy[m]> you can literally never cut and past and example from a manual into nixrepl
<keithy[m]> Take 5.6
<{^_^}> [nixpkgs] @marsam merged pull request #87587 → gitAndTools.gitui: 0.2.1 -> 0.2.2 → https://git.io/Jfl3X
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jf8vt
<keithy[m]> the docs say lib.attrsets.setAttrByPath [ "a" "b" ] 3
<{^_^}> [nixpkgs] @marsam merged pull request #87611 → vscod{e,ium}: 1.44.2 -> 1.45.0 → https://git.io/JflKO
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/Jf8vY
<keithy[m]> and now after 2 months of failing you tell me it should be liblib.attrsets.setAttrByPath [ "a" "b" ] 3
<clever> [clever@amd-nixos:~]$ nix repl '<nixpkgs>'
<clever> nix-repl> lib.attrsets.setAttrByPath [ "a" "b" ] 3
<clever> { a = { ... }; }
<keithy[m]> * and now after 2 months of failing you tell me it should pkgs.lib.attrsets.setAttrByPath [ "a" "b" ] 3
<clever> keithy[m]: that example worked perfectly, just pasting into the repl
<{^_^}> [nixpkgs] @marsam merged pull request #87563 → worker: 4.3.0 -> 4.4.0 → https://git.io/JfWNL
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jf8vO
<keithy[m]> error: undefined variable 'lib' at (string):1:1
<clever> keithy[m]: did you start the repl the same way i did?
<keithy[m]> yes
<clever> keithy[m]: can you screenshot the terminal?
<keithy[m]> that was voodo 1
<energizer> > lib.attrsets.setAttrByPath [ "a" "b" ] 3
<{^_^}> { a = <CODE>; }
<energizer> keithy[m]: you probably had <nixpkgs/nixos> instead of <nixpkgs>
* energizer highfives self
<clever> keithy[m]: i said <nixpkgs> not <nixpkgs/nixos>
<clever> <nixpkgs> if you want to do stuff with packages and lib
<clever> <nixpkgs/nixos> if you want to do nixos things
<keithy[m]> keithy: `nix repl '<nixpkgs/nixos>'`
<keithy[m]> then just `config`
<keithy[m]> that will load configuration.nix on its own
<keithy[m]> thats what you said
<clever> if you want to do stuff with nixos and configuration.nix, use <nixpkgs/nixos>
<clever> if you want to run the examples in the docs, use <nixpkgs>
<keithy[m]> never have I wept over software before!
<energizer> you must be new to the biz
<keithy[m]> Ive been coding for 46 years and this is nuts
<keithy[m]> sorry exaggerated, I meant 44
<keithy[m]> ever heard of a modless interface?
<keithy[m]> modeless interface?
<energizer> do all the experts in here work at tweag?
<energizer> looks like no
<keithy[m]> Here is the point/the problem.
<keithy[m]> I am coding up a function that I want to use in nixos, configuration.nix
<keithy[m]> I am told that I can use repl to do this via nix repl '<nixpkgs/nixos>'
<keithy[m]> then I go to the docs to find a function
<keithy[m]> that doesnt work
sridIrcCloud has joined #nixos
<keithy[m]> now I am told it will work in the context of nix repl '<nixpkgs>
<keithy[m]> thats good to know
<keithy[m]> then I want to use it in configutration.nix
<clever> you can do { pkgs, lib, ... }: on line 1
<clever> and then use lib like normal
<keithy[m]> so even if I manage to get it working in one context, it does not trasfer intot he context that I want to use it
<energizer> clever: what gets passed into configuration.nix function? is it config plus all of pkgs?
<keithy[m]> I have got lib on my first line
<clever> energizer: simplest answer is to just remove the ... and let the errors tell you
<clever> energizer: it also varies, and nixops can add more things to it
<clever> energizer: but the list is relatively small
<energizer> clever: can i add things to it?
<keithy[m]> but the examples dont mention lib
<bqv> How different would your nixpkgs experiences be conceptually if you restricted yourselves to never contributing?
<clever> energizer: yep, _module.args.foo lets you { foo, config, pkgs, ... }:
<clever> energizer: thats how pkgs even wound up in there
<energizer> bqv: i have no commits, ama
<clever> keithy[m]: it may help if you read other peoples nixos config
<bqv> energizer: :D
<keithy[m]> I did and I found no examples of using readDir
<clever> keithy[m]: this is the config for my router, https://github.com/cleverca22/nixos-configs/blob/master/router.nix
<clever> keithy[m]: most people define things in the nix file, and dont make it magically change when files get added
<clever> keithy[m]: look at lines 16-29 in the above link
<energizer> clever: where do i put that line?
<keithy[m]> yes its a hard coded list
<clever> energizer: _modules is a normal config option
<clever> keithy[m]: because i dont want things like router.nat.nix to activate on other machines, and all of these files are in one directory
<cole-h> srid: 2.4 is not released, no. You can watch the GitHub releases at https://github.com/NixOS/nix to be notified on GitHub when a new release is tagged.
<clever> energizer: this line is the reason you can even use pkgs in that line, https://github.com/NixOS/nixpkgs/blob/release-20.03/nixos/modules/misc/nixpkgs.nix#L229-L232
<energizer> clever: configuration.nix {foo, config, pkgs, ...}: { _module.args.foo = foo;}` will pop a recursion error?
<energizer> nope
<clever> energizer: it is recursive, but also lazy
<clever> energizer: it will only fail if you try to use foo somewhere
<keithy[m]> ooh I got one of those .. infinite recursion, sounds like fun.
<energizer> nix-repl> config._module.args.foo
<energizer> error: attribute '_module' missing, at (string):1:1
<clever> energizer: did you use <nixpkgs/nixos> ?
<energizer> yes
<clever> nix-repl> config._module
<clever> { args = { ... }; check = true; }
<clever> energizer: i can see _module just fine
<clever> energizer: what do you get for `config` ?
<energizer> { appstream = { ... }; assertions = [ ... ]; and so on
<clever> energizer: not sure
<energizer> ok
<keithy[m]> how does one read a fil if its present or not worry if its absent?
<keithy[m]> * how does one read a file if its present or not worry if its absent?
<clever> nix-repl> builtins.pathExists ./arc
<clever> true
<energizer> toctou city
<clever> ,xy keithy[m]
<{^_^}> keithy[m]: xyproblem is when you want to do X, and you think Y is how, so you ask about Y instead of X. See <http://www.perlmonks.org/index.pl?node_id=542341> or <http://mywiki.wooledge.org/XyProblem>
<keithy[m]> im not getting the imports array vs the import function
<clever> keithy[m]: the import function takes a single path, parses the nix within, and returns whatever expr is within
<clever> keithy[m]: the imports list is part of the module system, it will recursively load every file in the imports list, then fix-point them all together
<clever> keithy[m]: the config and options returned by every module gets merged, and then the merged result is passed as input back into every module
<clever> a module is something in the form of `{ config, pkgs, ... }: { config = { something; }; options = { something; }; imports = [ something ]; }`
<clever> the module system will then run the function to get access to the set within
<clever> read the imports list
<clever> then recursively repeat on every file in imports
<clever> then merge the .config and .options of everything together
<clever> if a file is missing both config and options, it gets wrapped with a config = { ... }; automatically
hlisp_ has quit [Remote host closed the connection]
<keithy[m]> ok... light is slowly dawning.
hlisp has joined #nixos
<keithy[m]> a = (files_list: (builtins.filter (file: builtins.pathExists file) files_list )) [ ./.bash_history ]
endformationage has quit [Quit: WeeChat 2.6]
<clever> nix-repl> :p a
<clever> [ /home/clever/.bash_history ]
<clever> keithy[m]: yep, that will silently ignore any file that doesnt exist
danimal-moo[m] is now known as cellofhuman[m]
hlisp has quit [Ping timeout: 256 seconds]
<keithy[m]> so the plan is that if the user subscribes to a project folder via syncthing, that folder comes with the config to subscribe to other folders.
luna has quit [Ping timeout: 264 seconds]
jb55 has quit [Remote host closed the connection]
<keithy[m]> mind you this scheme doesnt feel very safe and secure! lol
jb55 has joined #nixos
<clever> keithy[m]: thats why everybody just uses static lists, and only if you decide to edit the cfg, will things change
<keithy[m]> I just need some data from each project, not a module file (dangerous)
infinee has joined #nixos
hlisp has joined #nixos
<{^_^}> [nixpkgs] @lovesegfault opened pull request #87645 → firefox{,-beta}-bin bump → https://git.io/Jf8JC
<{^_^}> [nixpkgs] @evils opened pull request #87646 → asciidoctor: fix dangling ascidoctor-safe symlink → https://git.io/Jf8Jl
fabianhjr has quit [Quit: Leaving.]
<pjt_014> hi, I've been trying to x-compile a thing and am not sure why it's failing
leothrix has quit [Quit: ZNC 1.7.5 - https://znc.in]
<pjt_014> specifically recutils for the raspberryPi target
<clever> pjt_014: what expr are you using and how is it failing?
leothrix has joined #nixos
<pjt_014> nix build -f channel:nixos-unstable pkgsCross.raspberryPi.recutils
<pjt_014> one sec and I can have a paste of the output
<pjt_014> it pulls in some truly whack deps for a text only cli util
<balsoft> pjt_014: Why don't you build it in qemu or something? I'm pretty sure cross-compiling stuff is pretty hard sometimes
<clever> balsoft: ive been cross-compiling an entire nixos and deploying it with nixops
<clever> balsoft: but i have recently discovered, that half the #! scripts are using the x86 bash, and yet it somehow still boots
<pjt_014> balsoft: most of the time it's fine. I just x-comp'd something for riscv-64 just to see if I could
<pjt_014> I don't even own a riscv-64 board
<pjt_014> and I x-comp for raspi with no probs all the time
<pjt_014> this one is just weird. It wants gtk3+ which simply *cannot* be right
<bqv> adisbladis: you added a flake.nix <3
<pjt_014> ..yeah it wants to build like 200 things. wat
hlisp has quit [Remote host closed the connection]
<atemu12[m]> <clever "balsoft: but i have recently dis"> clever: binfmt?
<clever> atemu12[m]: nope
<clever> atemu12[m]: if bash cant execute something, it just blindly assumes its a bash script, and runs itself on that file
<pjt_014> while I'm waiting clever, is there any way to pin the deps of a build even if the whole thing fails? Like right now the recutils build cmd is building gdb, any easy way I could pin that with a result symlink?
<clever> pjt_014: lorri might do that, you can also just run `nix-store -r /nix/store/foo --add-root result-1 --indirect` to make a root for any given path
<clever> pjt_014: personally, i use hydra to do similar, it roots the entire build-time closure
palo1 has joined #nixos
<energizer> which languages can output nix code? afaik only haskell?
drakonis has quit [Quit: WeeChat 2.8]
<clever> energizer: rnix is also a thing
<energizer> clever: any golang or python?
<clever> energizer: nixops has some internal stuff, to turn a hashmap into a set
lightbulbjim has joined #nixos
palo has quit [Ping timeout: 260 seconds]
palo1 is now known as palo
ntqz has quit [Ping timeout: 260 seconds]
<energizer> mhm
ntqz has joined #nixos
<{^_^}> [nixos-hardware] @pmyjavec closed pull request #157 → Add a shared HiDPI Configuration, use it. → https://git.io/JfsL1
<{^_^}> [nixos-hardware] @pmyjavec reopened pull request #157 → Add a shared HiDPI Configuration, use it. → https://git.io/JfsL1
eoli3n_ has joined #nixos
<balsoft> clever: Cool, I tried to do that to my rPi a couple of years ago and it didn't work in the slightest. After looking at how many things failed (with --keep-going) I just gave up
<balsoft> clever++
<{^_^}> clever's karma got increased to 415
<balsoft> I need to try this again
<clever> balsoft: i'm also running custom firmware in the bootcode.bin as well
<balsoft> pjt_014: I'm probably just a broken man who tried to cross-compile too much (especially painful was trying to cross gtk to musl/static some time ago)
eoli3n__1 has joined #nixos
<pjt_014> yeah for gui stuff that's def reasonable
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<pjt_014> 10/200 deps built, wowee we movin
`_ has joined #nixos
<`_> I'm having a bit of an issue with lightdm. I intend on upgrading to 20.03 and learned that SLIM has been removed, so I'm changing to lightdm. Everything seems to work, except when lightdm starts i3, it opens an xterm shell, and if I close that shell lightdm stops. Anyone know a way to prevent this?
<clever> `_: your likely using the xterm window manager, there is a nixos option to disable that, which will switch you to another one
<`_> clever: I'm assuming `services.xserver.desktopManager.xterm`? If so, that's set to false.
<clever> `_: not sure then
<`_> I should say, in reality, it's not set, however the options seem to say the default is false
eoli3n__ has joined #nixos
<`_> I'll try rebuilding and testing and report back.
<pjt_014> speaking of lightweight greeters, this one looks cool https://github.com/cylgom/ly
<pjt_014> It's available as a package but not an optionb weirdly
<pjt_014> I'm working at making it my first option contribution :)
`_ has quit [Quit: WeeChat 2.6]
`_ has joined #nixos
<`_> Alas, lightdm is still opening xterm even when explicitly setting xterm.enable to false.
* clever heads to bed
cole-h has quit [Quit: Goodbye]
<pjt_014> welp that confirms I shouldntv'e done that garbage collect :L
<pjt_014> only at 42/200
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<pjt_014> anyone else here wanna go on a magical cross-compile debugging adventure in like 30min?
<pjt_014> oh god guile is still compiling...okay maybe like an hr
codygman has quit [Ping timeout: 260 seconds]
<srk> pjt_014: what's the issue? :)
codygman has joined #nixos
<pjt_014> I'm trying to compile recutils for the raspberryPi target and it's failing for puzzling reasons.
<pjt_014> for some reason it wants gtk3+. Wat?
<srk> possible
<pjt_014> It's got like 200 deps, which is WAY too many for such a simple tool
noudle has quit []
<pjt_014> what's this for?
<srk> to make the closure smaller
<srk> for rpi
<srk> + arm-headless.nix from that folder if you don't need X
<pjt_014> cool (and I actually will stash that for later), but I'm not trying to build a system image though, just one specific program
<pjt_014> nix build -f channel:nixos-unstable pkgsCross.raspberryPi.recutils
<srk> ah, ok
codygman has quit [Ping timeout: 256 seconds]
<srk> let me try
<pjt_014> be warned, it's gonna try and build a lot
<pjt_014> including gdb
codygman has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #87641 → ocamlformat: 0.14.1 -> 0.14.2 → https://git.io/Jfljw
<{^_^}> [nixpkgs] @vbgl pushed commit from @marsam to master « ocamlformat: 0.14.1 -> 0.14.2 »: https://git.io/Jf8IL
<pjt_014> srk: if you want a copy of armv6l gdb from my build I can push it up to cachix or something
<srk> raspberrypi is armv6 target?
<srk> yeah
<srk> I want to try building image for pi1 anyway
<srk> :)
<pjt_014> pkgsCross.raspberryPi is armv6l, yeah. I use it for the pi zero
<srk> these paths will be fetched (1710.89 MiB download, 5606.29 MiB unpacked)
<srk> lets see :D my armv6 rpis were collecting dust for too long /o\
<srk> I'm building from staging with few fixes I've needed for armv7/aarch
<turlando> Hello, I'm trying to understand how to compile a package with specific flags. Googling a bit it looks like I have to use an overlay but I'm not quite sure. I'm trying to compile ffmpeg with libfdkaac and the nix file is apparently allowing it: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/ffmpeg-full/default.nix#L57
<srk> ,overlays turlando
<{^_^}> srk: Did you mean overlay?
<{^_^}> turlando: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<turlando> Thanks srk
<srk> turlando: yw, if it's still confusing I can find an example
<pjt_014> srk: if you have cachix you can do `cachix use cross-armed` to speed things up. I think there's a few other caches too, like clever's one
<srk> pjt_014: yup, testing new computer ;)
<pjt_014> also, you shouldn't need to build it natively if you're using the pkgsCross cmd I put
<pjt_014> but if you wanna sure I guess
<srk> pjt_014: I might roll my own farm for arm again soonish
<turlando> srk I will read the documentation a bit more and ask if I can't still grasp it. Thanks again
<srk> pjt_014: with all the spare rpis, imx6q and unused laptops :))
FRidh has joined #nixos
<pjt_014> imx6whatnow?
<srk> bootstrapping was hard and I wouldn't be able to use recent nixos on imx6q without caches of the|floweringash but now I can also cross things so it's much better
<srk> pjt_014: Novena laptop with freescale imx6q
<pjt_014> ah. also what is that cache? does it have armv6l things? because I've been waiting for armv6l guile to build for ~30min
<srk> not sure, I think armv7l mostly
<srk> we better spam #nixos-aarch64 btw
<{^_^}> [nixpkgs] @danieldk opened pull request #87647 → makemkv: 1.15.0 -> 1.15.1 → https://git.io/Jf8LM
<turlando> srk I'm not sure if I should go with an overlay or with override. Override looks simpler code-wise
<srk> turlando: overlays are prefered now, not that hard either see https://github.com/novena-next/nixos-novena/blob/master/cruft/configuration.nix#L37
<turlando> Thanks for the pointer srk
sridIrcCloud has quit [Quit: Connection closed for inactivity]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/79147264abd (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<turlando> I have another question about the Nix syntax: I can't really understand what is the purpose of the semicolon after the with expression. Is it like so "just because" or is there a reasoning behind it?
<arianvp[m]> It's just because
<arianvp[m]> Afaik.
<arianvp[m]> Nixs syntax is rather ad hoc in my experience
<srk> pjt_014: atk/meson.build:138:2: ERROR: dependency gobject-introspection-1.0 not found, atk -> gdk-pixbuf -> gtk3
<turlando> Got it, thanks arianvp[m]
<pjt_014> srk: how are you at that point already?
<srk> often the reason is parsing
<srk> pjt_014: well, I'm surprised as well :D
<pjt_014> did you have armv6l result symlinks lying around for guile and openssl and other huge-ass deps?
<srk> no, looks like it stopped before that due to atk failing early
<pjt_014> huh
<pjt_014> did it even try and build llvm?
<srk> yep
<srk> but cancelled
<pjt_014> hm. is this on 20.03?
<srk> no, staging
<pjt_014> hmm. well, I'll see if my build eventually fails in the same way (might take overnight). In the meantime, any idea what migt be causing this? or why it needs gtk3?
<srk> transitive deps
<pjt_014> ?
<srk> yeah, I'm looking at it
<srk> emacs has withGTK3 ? true
xelxebar has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
xelxebar has joined #nixos
<pjt_014> why does an emacs mode even need the whole of emacs? that's whack
<pjt_014> would overriding and setting it to false here bother anything upstream or something?
asheshambasta has joined #nixos
<pjt_014> but at the same time I don't even know if that's the 'right' solution
<pjt_014> honestly splitting the emacs stuff into another package feels right
<pjt_014> or having a recutilsMinimal that lacks it, or having the inverse where only a version called recutilsFull does?
<pjt_014> hmmmmm
rauno has joined #nixos
dermetfan has joined #nixos
<srk> :)
zeenk has joined #nixos
<pjt_014> yeah, I'm thinkin'. One of these is maybe the right answer.
<pjt_014> also srk as a smol courtesy payment here is a thing for later that you might not have come across: https://github.com/illegalprime/nixos-on-arm
<pjt_014> it contains some things similar to the custom iso nix file you sent me
<quinn> srk: are you using nixos on arm for desktop?
<pjt_014> not sure about srk (think they have a headless cluster?) but I have used a rpi3b as a desktop device before. It's a bit finicky but it's managable.
<quinn> that's super cool! what did you do with it, and in what ways was it finicky?
<srk> quinn: yes!
<quinn> very cool!! i have the same question for you!
<srk> depends on hardware, my needs few kernel patches but it's pretty stable and good experience now
<srk> except for browsers, using netsurf-gtk :D
alp has joined #nixos
<srk> this one is pretty powerful with 4x1.4Ghz cores, 4G ram and SATA SSD, was using it as a headless builder for years before since mainline support for display was lacking
<quinn> what's up with the browsers? does netsurf gtk work good but you're not very happy with having to use it instead of firefox/chrome, or is netsurf the best option and still pretty bad?
<srk> due to build time requirements, I could build firefox or chromium but it would take a week or so :)
<srk> netsurf-gtk is quite nice, w3m too :D if you don't require javascript
<srk> it does have some js support but pretty minimal
<pjt_014> quinn: I tried building qutebrowser for it, can't remember if it worked. But it would be a good choice for a minimal browser with js support, up there with palemoon
<quinn> srk: i see. can't you cross compile firefox? also, i do some """pro""" audio, do you have any experience with how that works?
lsix has joined #nixos
<pjt_014> as for quirks, I had to alter some kernel stuff related to the gpu
mallox has joined #nixos
<srk> quinn: I would say same as with x86, haven't tried jack or pipewire yet as my sound is broken and needs more kernel patches
<quinn> pjt_014: i hope qutebrowser works well because it's python lol! unfortunately i have found qutebrowser a little buggy (maybe 8 months ago i used it), but the ui is very nice. is gpu necessary for desktop ARM?
<quinn> srk: does "needs kernel patches" mean "needs kernel patches to be ported to nix" or "i need to write kernel patches"?
<quinn> and are these kernel patches and modifications you guys have been mentioning just .config things, or actually patching the C?
cjpbirkbeck has quit [Quit: cjpbirkbeck]
<srk> quinn: they are written already but for 4.19 so they need porting to more recent kernel or switching to 4.19
<srk> quinn: I'm on 5.7-rc2 :D
<quinn> actually working on a RT kernel package for 5.6-7 right now on x86
<srk> display was a priority for me
<srk> musnix?
<quinn> musnix is behind the kernel for stable at this point. i am using it as a reference though
<srk> I see, cool
<pjt_014> quinn: It helps. Here's the gpu thing I modified to make it run smoother (it's the cma=32M thing): https://nixos.wiki/wiki/NixOS_on_ARM#NixOS_installation_.26_configuration
<quinn> that's strange, but i'll keep in mind
<pjt_014> srk: from the solutions I suggested at around 30min ago, do any of those look more viable than any of the others?
<srk> pjt_014: not sure tbh, maybe ask on #nixos-emacs as well
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to staging-next: https://git.io/Jf8qK
acowley has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #87476 → ocamlPackages.wasm: 1.1 -> 1.1.1 → https://git.io/JfWWf
<{^_^}> [nixpkgs] @vbgl pushed commit from @ggreif to master « ocamlPackages.wasm: 1.1 -> 1.1.1 »: https://git.io/Jf8q1
<pjt_014> srk: thanks
<pjt_014> but as a general concept, which would seem better: to remove the emacs extension/mode thingie and put it into a new recutilsFull package, or to keep this one as-is and make a new recutilsMinimal package without it?
<pjt_014> I'm thinking the 2nd because it would break less
icey_ has joined #nixos
acowley has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
<srk> yeah, that sounds reasonable, if it's not required for its function it can be optional
<pjt_014> until I can write and push/PR a new minimal version, you know how I could write a definition that doesn't require it?
<{^_^}> [nixpkgs] @juliendehos closed pull request #83787 → pythonPackages.fcmaes: init at 0.9.5.7 → https://git.io/Jv7Hx
copumpkin has quit [Ping timeout: 272 seconds]
orivej has joined #nixos
<pjt_014> ideally I wanna discover how emacs modes are meant to be packaged though because I hope to god this isn't the norm
<ashkitten> 👀 at someone talking about netsurf
<ashkitten> wait, ky0ko isn't here
iceypoi has quit [Ping timeout: 256 seconds]
<pjt_014> 'want an extra text mode? here, have a gtk3+!' *shudders*
<ashkitten> (she's porting it to motif)
<pjt_014> we were, regarding light browsers
wnklmnn has joined #nixos
<srhb> ashkitten: Hah, nice!
<srk> I only wish its clipboard worked a bit better
ky0ko has joined #nixos
<srk> need to dive into sourcecodez and fix that
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
wfranzini has quit [Client Quit]
<ashkitten> 👀 ky0ko the netsurf liker has logged in
<pjt_014> srk: is there any simple-ish way to build it without gtk being involved? something with overlays?
<srk> ky0ko: netsurf is cool! :))
<ashkitten> i think she's having issues with her client
<srk> pjt_014: yup, exactly
FRidh has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1e3ff03d1e8 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<pjt_014> srk: I don't really know what to overlay or how though. Any good examples of overlays that disable something like this? Also how do I know what flags there even are to disable?
<{^_^}> [nixpkgs] @tfc merged pull request #87632 → nixos/tests/installer: Fix machine name → https://git.io/Jfl5Q
<{^_^}> [nixpkgs] @tfc pushed 2 commits to master: https://git.io/Jf8mV
<srk> pjt_014: need to look to source
<{^_^}> [nixpkgs] @lheckemann merged pull request #85428 → systemd: Simplify unit script names → https://git.io/JffjR
<{^_^}> [nixpkgs] @lheckemann pushed 5 commits to master: https://git.io/Jf8mP
cr4y1 has joined #nixos
<pjt_014> srk: I think I'm on the right track. In here, how did you know which of these was creeping into recutils and making the build fail? https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/emacs/default.nix#L1
<srk> pjt_014: traced from recutils, to emacs, you mentioned gtk3 so I was looking for that flag
<srk> pjt_014: you can also git grep, ripgrep, nix edit nixpkgs.recutils
wnklmnn has quit [Read error: Connection reset by peer]
lightbulbjim has quit [Quit: Connection closed for inactivity]
wnklmnn has joined #nixos
<{^_^}> [nixpkgs] @filalex77 opened pull request #87648 → monolith: 2.2.4 -> 2.2.5 → https://git.io/Jf8mp
<pjt_014> srk: is this close?: nix-build -E 'with import <nixpkgs> { system = "armv6l-linux"; }; recutils.override { emacs.withGTK3 = false; }'
<srk> almost! :)
<pjt_014> feels close, just can't tell how to determine data structure the error wants me to be looking at
<pjt_014> * what data structure
<srk> pjt_014: recutils expects emacs derivation
obadz has quit [Ping timeout: 246 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
<srk> pjt_014: so you need to pass it emacs.override { withGTK3 = false; }
obadz has joined #nixos
orivej has joined #nixos
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
<pjt_014> srk: soo close, but I have a syntax error. can't tell where:
<{^_^}> [nixpkgs] @filalex77 opened pull request #87649 → wasmer: 0.16.2 -> 0.17.0 → https://git.io/Jf8Yr
<pjt_014> nix-build -E 'with import <nixpkgs> { system = "armv6l-linux"; }; recutils.override { emacs.override { withGTK3 = false; }; };'
<srk> pjt_014: emacs = emacs.override
<srk> and no ; at the end :)
<{^_^}> [nixpkgs] @filalex77 opened pull request #87650 → ffsend: 0.2.59 -> 0.2.61 → https://git.io/Jf8Y6
<srk> maybe less confusing if you rewrite it like this (import <nixpkgs> { system = ".."; }).pkgs.recutils..
obadz has quit [Ping timeout: 272 seconds]
obadz has joined #nixos
cfricke has joined #nixos
<pjt_014> cant figure out that version of the syntax, but the 1st ver is correct now. though I'm getting 'error: missing bootstrap url for platform armv6l-linux'
<srk> oh, that's weird
<pjt_014> also just to make it easier, what would this look like in a .nix file?
alp has quit [Ping timeout: 244 seconds]
obadz has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos
<srk> the same
obadz has joined #nixos
<srk> but depends if you want to call it with callPackage or directly via nix-build as default.nix
<pjt_014> I'd be using nix-build
bkv has joined #nixos
<pjt_014> srk: this anywhere close?: http://0x0.st/i_kO.txt
bqv has quit [Ping timeout: 246 seconds]
<srk> pjt_014: yes except pkgs is uknown, you would need callPackage to pass it for you or use { pkgs ? import <nixpkgs> {} }:
<srk> to provide the default
wnklmnn_ has joined #nixos
rauno has quit [Remote host closed the connection]
wnklmnn has quit [Ping timeout: 256 seconds]
maddo has joined #nixos
infinee has quit [Quit: WeeChat 2.7]
<pjt_014> srk: I now have this: http://0x0.st/i_kv.txt
<pjt_014> but doing nix-build with it does...nothing.
quinn has quit [Quit: ZNC 1.7.5 - https://znc.in]
zakkor has joined #nixos
<pjt_014> am I just defining an overlay but not actually building anything?
<{^_^}> [nixpkgs] @filalex77 opened pull request #87651 → vultr: 1.15.0 -> 2.0.1 → https://git.io/Jf8O1
<zakkor> hi guys, looking through my /nix/store after a year or so of using nixos, and I can see that there's 160GB of software in there (!!) 99% of it old versions of software that just won't get garbage collected
<zakkor> any idea what to do?
<pjt_014> Zakkor: nix-env --list-generations
<pjt_014> how many lines does that give?
<pjt_014> actually pipe it thru | nl to number the lines
<zakkor> `error: '/nix/var/nix/profiles/per-user/ed/profile' is not a symlink`
<zakkor> running it with sudo gives nothing
<pjt_014> that's..odd.
<srk> pjt_014: I think you need to pass system to nixpkgs as before
<zakkor> oh, this may be useful, I got a bit daring and did `sudo rm -rf /nix/store`
<zakkor> it didn't seem to do much as it's a read-only FS
<pjt_014> ...
orivej has quit [Ping timeout: 246 seconds]
orivej_ has joined #nixos
<pjt_014> next time, maybe lead with "oh yeah I did an rm -rf .."
<zakkor> I guess that would have been useful, yeah :P
<pjt_014> it probably did do stuff.
<zakkor> if it helps, I've never used nix-env to install stuff
<pjt_014> in the future, please do NOT rm -rf to clean the store.
<srk> pjt_014: in repl.. :b (import ./default.nix {}).recutils
<srk> error: expression does not evaluate to a derivation, so I can't build it
<ashkitten> Zakkor: next time if you really need to clear up space, don't try and delete stuff directly. nix-collect-garbage exists for a reason
steevveen has joined #nixos
<zakkor> yeah, but I ran it and it doesn't work though
<pjt_014> Zakkor: nix-collect-garbage --delete-older-than 5d for example
<ashkitten> what do you mean it doesn't work
<pjt_014> Zakkor: what does nix-env --delete-generations +5 do?
<ashkitten> pjt_014++
<{^_^}> pjt_014's karma got increased to 3
justanotheruser has quit [Ping timeout: 272 seconds]
civodul has joined #nixos
<zakkor> runs with no output pjt_014
<ashkitten> i'm goin to bed now
<ashkitten> have fun
smatting has joined #nixos
<srk> o/ night
<pjt_014> thanks fopr that I guess
<zakkor> ashkitten: it says theres nothing more to remove, but nothing is removed
<pjt_014> try with +2?
<zakkor> no output
<zakkor> this may be because i nuked the store
<pjt_014> can you do a rebuild?
<zakkor> yep a rebuild works
thc202 has joined #nixos
<pjt_014> that might restore things
<{^_^}> [nixpkgs] @filalex77 opened pull request #87652 → vultr-cli: init at 0.3.0 → https://git.io/Jf83v
<zakkor> this is not what i'd want the store to look like after running collect-garbage -d
<steevveen> Hi!I'm trying to write my first derivation using callPackage, but I can't understand my syntax error:
<zakkor> is it possible to run a command to check why a derivation is being kept alive? pjt_014
<steevveen> in default.nix : with import <nixpkgs> {}; callPackage ./derivation.nix {}in derivation.nix : {config,pkgs,...}: pkgs.stdenv.mkDerivation { name = "basic-build-derivation"; env = pkgs.buildEnv { name = name; paths = buildInputs; }; buildInputs = [ git ]; }
<steevveen> nix-shell complains undefined variable name. Althought it is what I had in my original default.nix: with import <nixpkgs> {};stdenv.mkDerivation rec { name = "env"; env = buildEnv { name = name; paths = buildInputs; }; buildInputs = [ git ];}
<pjt_014> steevveen: if you have that in a file, can you do cat file.nix | curl -F file=@- 0x0.st please? It's a bit dizzying to try and read on one line
<pjt_014> Zakkor: yes, I think it's nix-store -qR /nix/store/,,,
<srk> steevveen: config variable doesn't make sense for packages
<srk> steevveen: that's used by module system
sigmundv has joined #nixos
<srk> steevveen: you want something like { stdenv, git, buildEnv }: so callPackage fills that from pkgs scope
<zakkor> pjt_014: seems to print a list, with the target drv at the bottom, and glibc-2.27 at the top, and a bunch of packages I didn't install in the middle
<pjt_014> steevveen: yeah, the callPackage line is not added here
<steevveen> pjt_014 nice trick for long text: http://0x0.st/i_k6.txt
<pjt_014> steevveen: yep. also,
<steevveen> @srk all your remarks makes sense, I come back after trying better
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #nixos
<pjt_014> note that the callPackage line is in the toplevel file
<pjt_014> that's how you'd do it when submitting a package to the nixpkgs repo anyway
<pjt_014> Zakkor: that's probably dependencies. look in man nix-store under -R to see exactly what it does
agsdheidjd has joined #nixos
<zakkor> man i am THICK
<zakkor> i wasnt running nix-collect-garbage -d with sudo
<pjt_014> ah
dingenskirchen1 is now known as dingenskirchen
<zakkor> for about a year now
<pjt_014> welp
<pjt_014> but I'm still wondering why nix-env --list-generations don't work
<pjt_014> Zakkor: with sudo it really should be able to list gens just fine
<zakkor> where would the generations be kept?
opthomasprime has joined #nixos
<pjt_014> Zakkor: /nix/var/nix/profiles maybe? really not sure about that though
<pjt_014> but that's not the point
<{^_^}> [nixpkgs] @06kellyjac opened pull request #87653 → Deno: release 1.0.0 → https://git.io/Jf83g
<zakkor> even the ones for sudo?
<zakkor> `92219 store paths deleted, 126155.34 MiB freed`
alp has joined #nixos
<pjt_014> Zakkor: :party_sound.flac:
<pjt_014> now try this though: nix-env --list-generations --profile /nix/var/nix/profiles/system without sudo
<zakkor> now the question is if my system is bricked or not
<zakkor> `error: opening lock file '/nix/var/nix/profiles/system.lock': Permission denied`
<pjt_014> it should say hell no fam to that
<pjt_014> yep
<pjt_014> now with sudo
<NobbZ[m]> I've already posted the following on the discord, though no response so far. In general it seems to be more active there during european evenings, therefore crossposting here:
<NobbZ[m]> A GC is very slow on one of my systems. Not only that my laptop staled 25 minutes between removing store pathes and and removing .links, each individual link takes quite a lot time...
<NobbZ[m]> Intel core2duo, 4GB of Ram, 500GB HDD, ZFS.
<zakkor> `231 2020-05-12 11:12:44 (current)`
<pjt_014> Zakkor: yeah, I guess that gc got the system path too
opthomasprime has left #nixos [#nixos]
<pjt_014> NobbZ[m]: yeah the irc room is prob more active
<zakkor> you know those options in the grub boot menu that you can pick to rollback to? pjt_014
<zakkor> is there anyway i can force the creation of one of those
<NobbZ[m]> pjt_014: yes, but often to active to be able to follow a single conversation…
<pjt_014> Zakkor: they're just the result of rebuilds. you do a nixos-rebuild with either boot or switch
<zakkor> yeah, but the rebuild is one of those where almost everything is cached
<pjt_014> NobbZ[m]: is there any other slowness, esp. with random access disk activity?
<zakkor> i just wanna make sure it actually creates something
<pjt_014> Zakkor: it's a bit jank, but you could make a minor change to your config. like add hello to your list of packages
<pjt_014> otherwise the hash is the same and there's nothing to be done
<zakkor> sweet thanks
<zakkor> thanks for all your help!
<NobbZ[m]> pjt_014: yes, but not as anooying as with GC.
ntqz has quit [Ping timeout: 256 seconds]
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ntqz has joined #nixos
<pjt_014> Zakkor: glad I could help :)
<pjt_014> NobbZ[m]: how much you cleaning on average? also what nixos version?
Jackneill has quit [Ping timeout: 256 seconds]
<NobbZ[m]> pjt_014: That box runs on 19.09, and I'm not sure about average clean up. I can say for sure though, that the run this morning took 45 minutes and cleaned less than 200MB
<pjt_014> okay that's bit mmmh.
dnlkrgr has joined #nixos
<pjt_014> still, I'd suspect the disk itself. how many cores btw?
Peter_Storm has joined #nixos
zupo_ has joined #nixos
<{^_^}> [nix] @edolstra pushed to bash-completion « Fix macOS build »: https://git.io/Jf8ss
hmpffff_ has joined #nixos
<pjt_014> NobbZ[m]: just to be sure, I'd personally try installing dbench and running it just to be sure it's not the disk
<pjt_014> dbench num-cores-to-use > logfile.txt # and wait 10min
hmpffff has quit [Ping timeout: 265 seconds]
<pjt_014> NobbZ[m]: your clean speed was 200MB/45min = ~74KB/s
<NobbZ[m]> I tried bonnie++ yesterday, it says combined 25M/s which is also my observation when doing copying on the disk. The major annoyance are the roughly 20 minutes of a stale laptop where I can not use it at all.
<pjt_014> does bonnie discern between contiguous and random runs?
<pjt_014> If not, I'd still consider trying it with dbench. It does a bit extra, and some extra io/latency info might tell us more
<NobbZ[m]> There was a lot of output… Don't remember the details. Also a coworker of mine summarized it for me… Though `time find /nix/store/.links -links 1` took 15s CPU, 4m wall time
Jackneill has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #87654 → minikube: 1.9.2 -> 1.10.0 → https://git.io/Jf8sX
<pjt_014> I'm trying that cmd right now...
<NobbZ[m]> Doing the dbench now
<pjt_014> what's the specific cmd?
<NobbZ[m]> `nix run nixpkgs.dbench -c dbench 2 > dbench-log.txt`
<fps> how would i go about adding a package to a custom image build? the code lives in its own github repo. i can write a nix expression for it to nix-build it. how to incorporate it in the target system's configuration.nix such that it can be rebuild, etc?
<pjt_014> NobbZ[m]: also I just tried that find command and got nothing after 1min+ on my hdd machine sooo
noudle has joined #nixos
cfricke has quit [Read error: Connection reset by peer]
cfricke has joined #nixos
sigmundv has quit [Remote host closed the connection]
hlisp has joined #nixos
<pjt_014> fps: here's one I wrote a while back: http://0x0.st/i_di.txt
<pjt_014> not sure it'll still work (should) but it's a start
sigmundv has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #87655 → [20.03] gitAndTools.gh: 0.6.4 -> 0.8.0 → https://git.io/Jf8Gf
loyon[m] is now known as loyon
hlisp has quit [Ping timeout: 260 seconds]
<fps> pjt_014: i have the custom image mostly ready to go: https://github.com/OGFX/ogfx-nixos-rpi4
<fps> now the question is how to get a custom package onto it
o1lo01ol1o has joined #nixos
<NobbZ[m]> debench starts with 50, ends up with ~8 after warmup
<pjt_014> fps: oh, custom *package*. That I don't know, sorry.
<pjt_014> NobbZ[m]: can you stick the whole thing on a pastebin? like cat foo.txt | curl -F file=@- 0x0.st
<fps> i guess i could import the nix expression into configuration.nix and also copy it over..
<pjt_014> NobbZ[m]: I just want to skim it
<NobbZ[m]> sure
<NobbZ[m]> https://termbin.com/46d4 pjt_014
<pjt_014> is that all of it? The summary section appears to be missing
bqv has joined #nixos
chloekek has joined #nixos
<pjt_014> NobbZ[m]: also, note the line "failed to create barrier semaphore". Not sure what that is but google that plus "slow disk" maybe?
bkv has quit [Ping timeout: 252 seconds]
<pjt_014> that latency feels pretty high too, though I don't have a good comparision from my own hdd
<NobbZ[m]> Well, you said I shall have it run for 10 minutes, so I CTRL-C'd it after 10 minutes…
<srk> fps: you can use something like (pkgs.callPackage ./my-package.nix {}) in environment.systemPackages or where you need to refer to it like a service
<srk> or create an overlay
<srk> ,overlay fps
<pjt_014> NobbZ[m]: 10 min is the default, then it prints the summary
<{^_^}> fps: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<pjt_014> either way, I just ran it for a bit on my device and yeah
<pjt_014> mine is ancient but my latency is like 1/3 yours
<NobbZ[m]> pjt_014: I have another disk to spare, will transfer the dataset tomorrow and try if that works better
<pjt_014> maybe. I can help more in about 20 hrs
<srk> pjt_014: btw you can also pass overlays directly via (import <nixpkgs> { overlays = ...; })
<pjt_014> do try dbench on that disk too, see if there's a difference
<NobbZ[m]> The drive is ancient as well. Its still from my first DELL, which I purchased in 2006…
pingiun has joined #nixos
<fps> srk: thanks. i'll go with the callPackage option i guess. less magic involved. i like explicit more than implicit :))
<pjt_014> NobbZ[m]: actually can you quick do dbench 2 -t 30 > log.txt?
<srk> fps: overlays compose better and allow you to refer to pkgs.your_package but either way works
<NobbZ[m]> pjt_014: its running
<pjt_014> for the future the -t flag is how you set te time, 600 is te default
klntsky has quit [Ping timeout: 240 seconds]
<pjt_014> NobbZ[m]: all I need is the final line
<NobbZ[m]> pjt_014:
m0rphism has joined #nixos
<NobbZ[m]> Throughput 9.70042 MB/sec 2 clients 2 procs max_latency=494.871 ms
Jackneill has quit [Ping timeout: 264 seconds]
klntsky has joined #nixos
orivej has joined #nixos
orivej_ has quit [Ping timeout: 272 seconds]
NeoCron has joined #nixos
<pjt_014> don't know how old my disk is (at least older than 2014), but I get:
<pjt_014> Throughput 11.0057 MB/sec 2 clients 2 procs max_latency=467.137 ms
<pjt_014> with the same cmd
<pjt_014> would be better to know average latency instead of max though
<NobbZ[m]> Yeah, difference in max latency is not significant I'd say…
<NobbZ[m]> Though the difference in throuput might be…
<NobbZ[m]> The other disk I have is of the same age though…
<pjt_014> I doubt that is the key, pretty sure I've gc'd 200mb in less than ~20min
<pjt_014> NobbZ[m]: either way I must sleep
<NobbZ[m]> Good night!
<pjt_014> try your thing; I'll be here in like 18 hours
<pjt_014> or 16-20 ish hours
<pjt_014> NobbZ[m]: also
<pjt_014> if you give that paste of the run with -t to a filesystem nerd and point to the operation section, they could prob tell you much more than me
<{^_^}> [nix] @edolstra pushed to bash-completion « Fix InstallableCommand »: https://git.io/Jf8Zq
hlisp has joined #nixos
rooke has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/90c0191735b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
hmpffff has joined #nixos
Jackneill has joined #nixos
hlisp has quit [Ping timeout: 256 seconds]
pjt_014 has quit [Ping timeout: 256 seconds]
hmpffff_ has quit [Ping timeout: 260 seconds]
rooke has joined #nixos
<{^_^}> [nixpkgs] @evils opened pull request #87656 → kicad: 5.1.5 -> 5.1.6 → https://git.io/Jf8Zb
<steevveen> in nix language, it is not clear for me when 'rec' keyword is needed after mkDerivation for example. Any simple explanation ?
<srk> when you need to rec(ursively) refer to its elements
<makefu> steevveen: rec enables you to re-use stuff in your derivation (e.g. the version )
<srk> > rec { version = "ab"; name = "n-${version}"; }
<{^_^}> { name = <CODE>; version = "ab"; }
<makefu> rec { version = "1"; name = "tool-${version}" }
<gchristensen> > { version = "ab"; name = "n-${version}"; }
<{^_^}> { name = <CODE>; version = "ab"; }
<srk> :D
<gchristensen> > :v { version = "ab"; name = "n-${version}"; }
<{^_^}> All bindings: ADT BRT C'EST CEST CET DKK DRAGONS DRAKONIS EDT ET EUR PDT PST SEK USD UTC UTCShift _add _assign _attrName _attrs _blue _bold _bool _bracket _concat _int _null _num _number _red _semi _set _show _string a a' aandb ack add allDeps array2list assign attr attrName attrs b bar bind bisectFloat bold boldcolors boldpalette bool botsnack bracket buildList builtinTypes builtinsbackup c cToF case codes coinflip colors compose compose' composeAlt
<gchristensen> > :p { version = "ab"; name = "n-${version}"; }
<{^_^}> { name = "n-20.09pre-git"; version = "ab"; }
<makefu> ha!
<srk> !! :D
<gchristensen> > :p { mycoolversion = "ab"; name = "n-${mycoolversion}"; }
<{^_^}> undefined variable 'mycoolversion' at (string):310:37
<gchristensen> > :p rec { mycoolversion = "ab"; name = "n-${mycoolversion}"; }
<{^_^}> { mycoolversion = "ab"; name = "n-ab"; }
<nixbitcoindev> How do I setup a network namespace bridge with internet access without knowing the name of my users interface?
wnklmnn_ has quit [Remote host closed the connection]
<{^_^}> [nix] @prusnak opened pull request #3588 → Introduce NIX_INSTALLER_NO_CHANNEL_ADD which skips nix-channel --add → https://git.io/Jf8nR
zupo has joined #nixos
zupo_ has quit [Ping timeout: 256 seconds]
<srandom> I updated my system with guix pull && guix package -u, but the check failed during python-parso build, what should I do?
<srandom> sorry, wrong channels
hlisp has joined #nixos
<srandom> :-(
<betaboon> Mic92: on the pixiecore+qemu problem: i got it to work. but only when running the pixiecore myself as root. when running it as systemd unit it wont work. weird. i dont understand it
ravndal has quit [Ping timeout: 246 seconds]
<arianvp> I'm trying to set up dm-integrity but our kernel isn't compiled with it it seems
<arianvp> "Kernel doesn't support dm-integrity mapping."
<Mic92> betaboon: ah. I might have an idea why
noudle has quit []
<betaboon> Mic92: and it fails in a very weird way, when running it as systemd unit, the machine fails to boot with "stage 2 init script (/mnt-root//init) not found"
hlisp has quit [Ping timeout: 272 seconds]
<Mic92> betaboon: does dhcpNoBind = true help?
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mic92> We maybe should re-use the upstream provided unit file: https://github.com/danderson/netboot/blob/master/pixiecore/pixiecore.service#L13
<Mic92> However I don't like WorkingDirectory=/tmp
<Mic92> This could be fixed upstream however
<betaboon> Mic92: no i tried with and without dhcpNoBind. I'm trying like this: https://gist.github.com/betaboon/4a69dab5e7db35bb96da532fad603768
<mpickering> How can I point nix-shell to use an older nixpkgs tarball?
<betaboon> Mic92: the weird thing is: running pixiecore with exactly the same arguments (that the systemd-unit creates) but in a shell as root works just fine
<gchristensen> mpickering: nix-shell -I nixpkgs=path-to-a-tarball-including-a-github-tar.gz-link
iyzsong has joined #nixos
<mpickering> I suppose nix run -f .tar.gz abc def is similar?
<gchristensen> probably
<Mic92> mpickering: nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/90c0191735bc729acd36e4ba72ef3ffd88f679c6.tar.gz
<Mic92> betaboon: so narrow this: Does it work if you run pixiecore as root in the systemd service?
<mpickering> For some reason xpdf 4.0 programs don;t have half the options of the programs from version 3.3
<mpickering> so am trying an older commit
<Mic92> betaboon: you should be able to override systemd.services.pixiecore.User
<betaboon> Mic92: i tried. when i override `..pixicore.serviceConfig.User = mkForce "root"` doesnt work
<betaboon> Mic92: when i override `AmbientCapabilities = mkForce []` doesnt work either
<Mic92> that would have been my next question
<Mic92> betaboon: but if you run the exact same command from 'systemctl cat pixiecore' as root it works?
_deepfire` has quit [Ping timeout: 246 seconds]
<betaboon> Mic92: yeah. when i run the `ExecStart` part it just works.
<betaboon> i dont understand how that makes a difference
<betaboon> and how that might influence how the vm actually boots. it fetched the kernel, the initrd, starts the kernel. this just doesnt make sense to me
<Mic92> betaboon: So it should fail as well if you use systemd-run?
rauno has joined #nixos
<Mic92> Maybe you can see in `tcpdump -i any -n` if something is different on the protocol level.
steevveen has quit [Remote host closed the connection]
<Mic92> betaboon: does it fetched in both cases the initrd properly?
<betaboon> Mic92: when using `systemd-run` should i just pass the command from `ExecStart` ?
<Mic92> betaboon: yes: sudo systemd-run -t --wait <your-command>
<Mic92> I would be also very interested in getting this to work.
Neo-- has joined #nixos
<betaboon> Mic92: seems like it fetched the initrd correctly: https://gist.github.com/betaboon/b5b9f1d6bcc2b4992fbf518ad3dddd2e
<Mic92> PXE is awesome when you have a working setup. Every motherboard I encountered supported it so far, better than usb-sticks...
<betaboon> I'm especially interested in getting this working with qemu. I'm creating a cluster of qemu-vms using terraform. one vm is running pixiecore, the others are supposed to be booting via pxe from the first one xD
o1lo01ol1o has quit [Remote host closed the connection]
thc202 has quit [Ping timeout: 260 seconds]
o1lo01ol1o has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<Mic92> betaboon: do you think you can get a shell there?
<Mic92> and then see if you find a /nix-store.squashfs ?
cfricke has quit [Read error: Connection reset by peer]
cfricke has joined #nixos
<Mic92> betaboon: I am still wondering why it looks for https://gist.github.com/betaboon/b5b9f1d6bcc2b4992fbf518ad3dddd2e#file-boot-log-L14
thc202 has joined #nixos
<Mic92> I think the squasfs was mounted differently
o1lo01ol1o has quit [Ping timeout: 256 seconds]
shafox has joined #nixos
pingiun has joined #nixos
<Mic92> betaboon: different idea. is cmdline maybe not passed correctly in the service?
<betaboon> Mic92: just tested with systemd-run: works ...
hlisp has joined #nixos
bogdb has joined #nixos
<Mic92> betaboon: ok. Than it might be the command line arguments that are passed differently. less /proc/<pid>/cmdline
<Mic92> The unprintable characters in this files are null bytes
<Yaniel> how do I set the source dir to a subdirectory of the tarball from fetchFromGithub?
hlisp has quit [Ping timeout: 260 seconds]
m0rphism has quit [Quit: WeeChat 2.7.1]
<betaboon> Mic92: i have used `cat /proc/<pid>/cmdline | tr "\0" " "` and ran it from commandline like that. thats how i came to the working result
<Yaniel> ah, I can just put the fetchFromGithub on a custom attribute and use it to interpolate the src path
<betaboon> Mic92: so its not the cmdline. i dunno exactly how to get a shell in that situation. any suggestion ?
<Mic92> betaboon: boot.debug1
<Mic92> on the linux kernel cmdline
zakkor has quit [Quit: Connection closed for inactivity]
vidbina has joined #nixos
<srxl> What's up with nixos-unstable? Looks like it hasn't updated in almost 2 weeks :/
<evils> srxl: #87592
<{^_^}> https://github.com/NixOS/nixpkgs/issues/87592 (by peti, 1 day ago, open): Unstable channel hasn't updated for 2 weeks
OmnipotentEntity has quit [Ping timeout: 246 seconds]
cfricke has quit [Read error: Connection reset by peer]
__monty__ has joined #nixos
cfricke has joined #nixos
pca has joined #nixos
<evils> Mic92: i'm trying out nixos-shell and am running into some issues, feel like debugging or shall i open some issues?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hlisp has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #87658 → buildah: cleanup → https://git.io/Jf8WJ
<{^_^}> [nixpkgs] @timokau merged pull request #87527 → python.pkgs.scikitlearn: 0.21.3 -> 0.22.2.post1 → https://git.io/JfW1h
<{^_^}> [nixpkgs] @zowoq opened pull request #87659 → skopeo: add wrapper → https://git.io/Jf8WU
<{^_^}> [nixpkgs] @timokau pushed 3 commits to master: https://git.io/Jf8WT
chloekek has quit [Ping timeout: 256 seconds]
zupo has joined #nixos
resucri has left #nixos [#nixos]
hlisp has quit [Ping timeout: 260 seconds]
o1 has quit [Quit: WeeChat 2.8]
<Mic92> evils: what is the issue?
<evils> Mic92: primarily, the vm.nix config doesn't seem to affect the vm
<Mic92> evils: bash -x $(which nixos-shell)
m0rphism has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #87660 → cri-o: drop flavor → https://git.io/Jf8W2
<evils> i seem to recall using the example config does affect the kernel version
<evils> with `bash -x` it seems to work but then i can't use `-I nixpkgs=~/nixpkgs`
cfricke has quit [Quit: WeeChat 2.8]
pca has quit [Remote host closed the connection]
<turlando> Is it possible to override allowUnfree only for a single package?
<NobbZ[m]> `allowUnfreePredicate`
<turlando> thanks NobbZ[m]
alp has quit [Ping timeout: 260 seconds]
<turlando> NobbZ[m] since I'm already creating an overlay to compile ffmpeg with a nonfree library, is it possible to use allowUnfreePredicate in its specific overlay?
<turlando> sorry for the noob question
<NobbZ[m]> No, you need to enable allowUnfree always at the system level
<turlando> got it, thank you
<{^_^}> [nixpkgs] @flokli merged pull request #73530 → nixos/nvidia: include systemd power management → https://git.io/JeoPW
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/Jf8ll
Soo_Slow has joined #nixos
alp has joined #nixos
<turlando> Last question I hope, the example in the documentation suggests: builtins.elem (lib.getName pkg) [ "pkg1" "pkg2" ]; Can I do something like builtins.elem [ pkg.ffmpeg-full ];?
hlisp has joined #nixos
<{^_^}> [nix] @edolstra pushed to master « tests/binary-cache.sh: Improve incomplete closure test »: https://git.io/Jf8l2
aveltras has joined #nixos
Ariakenom has joined #nixos
tv1 has quit [Quit: WeeChat 2.6]
tv has joined #nixos
hlisp has quit [Ping timeout: 246 seconds]
<evils> Mic92: yea seems like the trouble is with `-I nixpkgs=~/nixpkgs`
<evils> Mic92: side issue, `nixos-shell --version` throws an error and doesn't show the version
<betaboon> Mic92: i now used boot.debug1 and got a shell in stage-1 right after the error about (mnt-root
Jackneill has quit [Ping timeout: 260 seconds]
MeTheFlea[m] has joined #nixos
chloekek has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #87654 → minikube: 1.9.2 -> 1.10.0 → https://git.io/Jf8sX
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jf88T
<bitonic> How can I delete something in `/nix/store` and all its dependencies?
<bitonic> e.g. `nix-store --delete` but cascading to deleting all the things that are keeping it alive
<{^_^}> [nixpkgs] @marsam merged pull request #87658 → buildah: cleanup → https://git.io/Jf8WJ
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jf88t
<{^_^}> [nixpkgs] @marsam merged pull request #86304 → gleam: 0.7.1 -> 0.8.0 → https://git.io/JfYI2
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/Jf88G
<{^_^}> [nixpkgs] @marsam merged pull request #87650 → ffsend: 0.2.59 -> 0.2.61 → https://git.io/Jf8Y6
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jf88l
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has quit [Ping timeout: 256 seconds]
Ariakenom has joined #nixos
Jackneill has joined #nixos
negaduck has quit [Ping timeout: 256 seconds]
<immae> bitonic: usually the way to do it is to remove its "root", which lies instead in /nix/var/
chloekek has quit [Ping timeout: 256 seconds]
<immae> You’d need to find its parent with `nix-store --gc --print-roots`, remove it, and the nix-store --gc will remove it from /nix/store
<immae> (note that it will remove more than just your derivation, it will remove everything that lost its root)
rauno has quit [Remote host closed the connection]
negaduck has joined #nixos
o1lo01ol1o has joined #nixos
hlisp has joined #nixos
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/683c68232e9 (from 2 days ago, history: https://channels.nix.gsc.io/nixos-unstable)
<evils> pbogdan <3
<evils> no love? pbogdan++
<{^_^}> pbogdan's karma got increased to 4
hlisp has quit [Ping timeout: 258 seconds]
katie_ has quit [Quit: \o]
<betaboon> Mic92: https://gist.github.com/betaboon/aaae02d85d49d9434840793a950f40b3 there IS a difference. a major one
<{^_^}> [nixpkgs] @NeQuissimus pushed 5 commits to master: https://git.io/Jf84R
orivej has quit [Quit: No Ping reply in 180 seconds.]
<etu> nixos-unstable moved!
orivej has joined #nixos
ericsagnes has quit [Ping timeout: 260 seconds]
<Mic92> betaboon: too much quoting.
<Mic92> betaboon: I think it should be lib.escapeShellArgs instead lib.escapeShellArg
Pwnna has quit [Quit: Bye]
Pwnna has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
endocrimes has quit [Remote host closed the connection]
philr has quit [Ping timeout: 264 seconds]
<betaboon> Mic92: yeah thats what i thought. just trying :D
endocrimes has joined #nixos
hmpffff_ has joined #nixos
chloekek has joined #nixos
<{^_^}> [nixpkgs] @dasJ opened pull request #87661 → nixos/systemd-sandbox: A generic sandboxing module → https://git.io/Jf8BO
hmpffff has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @zowoq opened pull request #87662 → buildah: 1.14.8 -> 1.14.9 → https://git.io/Jf8Bs
pingiun has joined #nixos
hlisp has joined #nixos
<betaboon> Mic92: do we even need `escapeShell*` there at all? thats `ExecStart` not `script`
est31 has quit [Ping timeout: 240 seconds]
andreas303 has quit [Remote host closed the connection]
waleee-cl has joined #nixos
<Mic92> betaboon: I think the issue is that it is escaped twice
jakobrs has joined #nixos
<jakobrs> What is the currently recommended way to do Nix without root?
<{^_^}> [nixpkgs] @nlewo opened pull request #87663 → nixUnstable: pre7346_5e7ccdc9 -> pre7534_b92f58f6 → https://git.io/Jf8B8
<Mic92> betaboon: argString is escaped as well.
<Mic92> jakobrs: nix-user-chroot
est31 has joined #nixos
<betaboon> Mic92: yeah i saw. just thinking about the best way to simplify this
<jakobrs> ty I'll try that
<Mic92> betaboon: ExecStart also needs escaping
andreas303 has joined #nixos
<betaboon> Mic92: ah thanks for clarifying
hlisp has quit [Ping timeout: 272 seconds]
ericsagnes has joined #nixos
hlisp has joined #nixos
<betaboon> Mic92: thanks :D
<Mic92> betaboon: I wait for your PR
<betaboon> Mic92: on the way
<jakobrs> Forgot to mention, I can't unshare -r
<jakobrs> And it's linux 3.18
<jakobrs> I'm getting a "bad system call" error, presumably nix-user-chroot expects a newer version of Linux
<Mic92> jakobrs: three options: Ask your admin kindly to chown /nix for you, recompile everything with a different store path,3 proot
<jakobrs> I'll try the last one first
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/Jf8Rv
dnlkrgr has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @betaboon opened pull request #87664 → nixos/pixiecore: fix escaping of cmdline → https://git.io/Jf8Rq
dnlkrgr has joined #nixos
<{^_^}> [nixops] @adisbladis opened pull request #1342 → Use niv to pin nixpkgs channel for nix shell → https://git.io/Jf8R3
<{^_^}> [nixpkgs] @Mic92 merged pull request #87664 → nixos/pixiecore: fix escaping of cmdline → https://git.io/Jf8Rq
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jf8R4
tbdcit has joined #nixos
<betaboon> Mic92: thanks XD
wnklmnn has joined #nixos
<{^_^}> [nixpkgs] @kampka opened pull request #87665 → matrix-appservice-slack: 1.2.0 -> 1.3.0 → https://git.io/Jf8RH
<tbdcit> Hi there, sorry if this is the wrong place to ask this... does anyone know how I can include a local package in my nixpkgs/config.nix? Suppose I have a repo containing a nix package which I can install with "nix-env -f . -i pkgname" , how can I include this package in my packageOverrides in nixpkgs/config.nix?
knupfer has joined #nixos
<hexa-> someone familiar with node2nix? I'm stuck build matrix-appservice-irc :/ https://github.com/svanderburg/node2nix/issues/182
<{^_^}> svanderburg/node2nix#182 (by mweinelt, 2 days ago, open): matrix-appservice-irc: ELIFECYCLE in call to tsc
<{^_^}> [nixpkgs] @evils opened pull request #87666 → maintainers: evils-devils -> evils → https://git.io/Jf8Rb
<{^_^}> [nixpkgs] @Infinisil merged pull request #87666 → maintainers: evils-devils -> evils → https://git.io/Jf8Rb
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/Jf8Rx
<wnklmnn> hexa- It states that tsc is missing. May add tsc to your package.json as a dev-dependency?
dhess has quit [Remote host closed the connection]
<hexa-> tsc is supposed to be typescript
<hexa-> it's a dev dependency
dhess has joined #nixos
morgrimm has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #87280 → nixos/znapzend: Use generic mbuffer path → https://git.io/Jfc7k
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/Jf80k
<hexa-> so I did `node2nix -d -l package-lock.json`
<morgrimm> Morning folks - is anyone running Wayland on nixos? Is it a good experience compared to say, void?
<morgrimm> or is nixpkgs-wayland still mostly required?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<hexa-> gets me the same error
<hexa-> morgrimm: running sway on nixos master is just fine
<hexa-> 20.03 should be fine as well
<{^_^}> [nixpkgs] @Infinisil merged pull request #87599 → nixos/znapzend: Add oracleMode feature and maintainer → https://git.io/Jfl4E
<{^_^}> [nixpkgs] @Infinisil pushed 3 commits to master: https://git.io/Jf80Y
<morgrimm> Oh good good
orivej has joined #nixos
codygman has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Infinisil merged pull request #87644 → translate-shell: 0.9.6.11 -> 0.9.6.12 → https://git.io/Jf8vI
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/Jf80C
<balsoft> morgrimm: (good evening) sway works for me as well, on nixpkgs master
codygman has joined #nixos
<Mic92> hexa-: I think you need to override the derivation that requires tsc. You can have a look in node-modules in nixpkgs how overrides are done
<morgrimm> Awesome! Seems like a good time to swap to wayland then, while I'm redoing my config
chloekek has quit [Ping timeout: 246 seconds]
<hexa-> Mic92: hm ok
<Mic92> hexa-: nixpkgs/pkgs/development/node-packages/default-v10.nix
<{^_^}> [nixpkgs] @edolstra merged pull request #87663 → nixUnstable: pre7346_5e7ccdc9 -> pre7534_b92f58f6 → https://git.io/Jf8B8
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to master: https://git.io/Jf80E
<Mic92> hexa-: it could be the case though that it is deeper in the dependency chain.
<hexa-> hmm, I don't follow
gxt_ is now known as gxt
<hexa-> node2nix parses package{,-lock}.json into node-packages.nix
<hexa-> that gets me sources."typescript-3.8.3" = { ... }
<turlando> Still trying to compile ffmpeg... now I get 'build input 1 does not exist'. The following lines are not about any ffmpeg dependency. What is input 1?
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/Jf806
<hexa-> now why would I need to override that?
Peter_Storm has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
<Mic92> hexa-: I think it is not in the build of one of your npm dependencies. You could try this: https://github.com/svanderburg/node2nix/issues/123#issuecomment-447674570
<{^_^}> [nixpkgs] @mmahut merged pull request #87538 → cudd: init at 3.0.0 → https://git.io/JfWSM
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/Jf80X
<Mic92> I would say its an upstream bug
Shell has quit [Quit: ZNC 1.7.5 - https://znc.in]
qyliss has quit [Quit: bye]
o1lo01ol1o has joined #nixos
Shell has joined #nixos
hlisp has quit [Remote host closed the connection]
qyliss has joined #nixos
hlisp has joined #nixos
ninjin has joined #nixos
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<Woutifier> I'm also currently struggling with node2nix, so I feel your pain
<hexa-> :D
<hexa-> pretty sure we're struggling with the "node" part
<{^_^}> [nixos-channel-scripts] @edolstra pushed 2 commits to master: https://git.io/Jf80j
tbdcit has quit [Remote host closed the connection]
<wnklmnn> node2nix seems to not fetch the dev-dependencies.
<wnklmnn> using node2nix -d -i package-lock.json fetches the dev-dependencies. But the build still fail
ddellacosta has quit [Ping timeout: 264 seconds]
<epic_guy[m]> Umm, this is the forum for asking question about nix os right?
* epic_guy[m] uploaded an image: buggy.png (17KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/HwUceemeuLIFexxYFDSENtqR >
infandum has joined #nixos
<epic_guy[m]> for some reason the terminal is always root...any ideas how to remove it?
iyzsong has quit [Ping timeout: 258 seconds]
<wnklmnn> epic_guy[m] do you have another user setup?
<simpson> $(sudo -i -u $DESIRED_USER) will create the desired terminal session. I'm guessing that you logged into X as root?
gustavderdrache has joined #nixos
<epic_guy[m]> yes i have one more user setup..but im logged out of it
o1lo01ol1o has joined #nixos
<infandum> How can I have nix-shell use the paths set in the postInstall for a derivation?
jakobrs has quit [Quit: leaving]
<epic_guy[m]> <simpson "$(sudo -i -u $DESIRED_USER) will"> umm this command doesnt give a proper output..sorry im kinda noob here
<{^_^}> [nixos-homepage] @garbas pushed to fix-commiting-to-master « fix commiting to master branch from cron action »: https://git.io/Jf8EH
<epic_guy[m]> * @wnklmnn yes i have one more user setup..but im logged out of it
<{^_^}> [nixos-homepage] @garbas opened pull request #423 → Fix commiting to master branch from cron action → https://git.io/Jf8Ed
<emily> cole-h: I'm not sure the doas module should have keepenv on for root by default. it doesn't allow root to keep env but rather silently keeps all of the env by default. I think that's a confusing difference in behaviour to normal users and could cause problems. the sudo module seems to default to letting users set any environment variable (I think this might be implicitly always on in doas? not sure) but only keeping a few by default
<{^_^}> [nixos-homepage] @garbas merged pull request #423 → Fix commiting to master branch from cron action → https://git.io/Jf8Ed
<{^_^}> [nixos-homepage] @garbas pushed 2 commits to master: https://git.io/Jf8EA
<epic_guy[m]> > <@freenode_simpson:matrix.org> $(sudo -i -u $DESIRED_USER) will create the desired terminal session. I'm guessing that you logged into X as root?
<epic_guy[m]> * umm this command doesnt give a proper output..sorry im kinda noob here, yes..Im the root
<{^_^}> error: syntax error, unexpected '<', at (string):310:1
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to fix-commiting-to-master: https://git.io/Jf8Ex
<simpson> epic_guy[m]: I intended for you to insert the username which you wanted to use in your session. The idea is to tell sudo to start an interactive shell with -u to choose the username.
<emily> cole-h: (also, a nitpick: that default root rule should probably be in extraRules rather than being hardcoded?)
<epic_guy[m]> <simpson "epic_guy: I intended for you to "> yes..i did
<simpson> FWIW logging into X as root is always dangerous, securitywise. Used to be, but probably still is.
<wnklmnn> epic_guy[m] Then why are you logged in as root if you have another user?
ddellacosta has joined #nixos
cosimone has joined #nixos
<epic_guy[m]> umm..cause the other user isnt a sudoer...and i cant make him sudo
<epic_guy[m]> and tried to make him sudo..didnt work...
<epic_guy[m]> well, i simply want my current root user account to be logged out of the root terminal...I can't...also whenever i open the terminal, it starts at root..
<wnklmnn> epic_guy[m] Have you added "extraGroups = [ "wheel"];" To your user in the /etc/nixos/configuration.nix?
<epic_guy[m]> yeah...also i did try to add sudo to that list...the build fails, i dont wanna mess that..the other user is simply a dummy though
<emily> cole-h: (also also: did you know the postgres service depends on sudo? 😱)
<wnklmnn> epic_guy[m] as the others said it's not smart to always run as root. so getting the user working might be a good idea. If you login as your regular user and run "groups" is the "wheels" group listed there?
<epic_guy[m]> <wnklmnn "epic_guy as the others said it's"> yup
<wnklmnn> epic_guy[m] what kind of output do you get when you run "sudo whoami" ?
<epic_guy[m]> > <@freenode_wnklmnn:matrix.org> epic_guy as the others said it's not smart to always run as root. so getting the user working might be a good idea. If you login as your regular user and run "groups" is the "wheels" group listed there?
<epic_guy[m]> * yup, Right, so i think i need to move all my files and reinstall a bunch of apps in the other user
<{^_^}> error: syntax error, unexpected '<', at (string):310:1
<epic_guy[m]> <wnklmnn "epic_guy what kind of output do "> in the other user??
<wnklmnn> epic_guy[m] yes as the regular user
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/Jf8uw
<epic_guy[m]> <wnklmnn "epic_guy yes as the regular user"> it asks me the password..after i enter it, it says im not a sudoer and the incident will be reported
vidbina has quit [Ping timeout: 246 seconds]
<wnklmnn> epic_guy[m] well thats odd. if your user is in the "wheel"-group you should be able to run commands as root priviliges
<epic_guy[m]> umm..well, its a VM, so i can simply reinstall the whole OS if its advisable
<simpson> "the build fails" meaning that you can't change your NixOS configuration because nixos-rebuild fails? You should definitely fix that, as root, first. Once you've established that your other user is wheeled up, then you can switch to that user and use sudo sparingly as necessary.
<epic_guy[m]> <simpson ""the build fails" meaning that y"> how can i fix that, as a root?
fabianhjr has joined #nixos
<simpson> Edit /etc/nixos/configuration.nix until it looks like you want, run nixos-rebuild, repeat as needed.
<epic_guy[m]> right, for the past 3hrs im messing up with that file, well i guess i need to play more with it
<{^_^}> [nixpkgs] @adisbladis merged pull request #87662 → buildah: 1.14.8 -> 1.14.9 → https://git.io/Jf8Bs
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/Jf8ud
<simpson> If you tell us how the build failed, then we can help you with that. Is it a syntax problem, or a runtime error?
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
OmnipotentEntity has joined #nixos
noudle has joined #nixos
<{^_^}> [nixos-org-configurations] @edolstra pushed 6 commits to master: https://git.io/Jf8zv
cole-h has joined #nixos
leotaku has quit [Ping timeout: 256 seconds]
wnklmnn has quit [Read error: Connection reset by peer]
wnklmnn has joined #nixos
<infandum> When setting the PATH environmental variable in a derivation, how to I have it prefix? Like PATH = "somepath:$PATH", what is $PATH in a default.nix file?
chloekek has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson> Hm. Normally, for environment variables, just put them as keys in the derivation. But for PATH, I think that it's almost always better to reference the desired binary either in buildInputs or inlined into the call site.
<simpson> > "${pkgs.jq}/bin/jq" # an example of the latter
<{^_^}> "/nix/store/p9planzi70f44w7yh63jzaanplxgvryy-jq-1.6-bin/bin/jq"
<OmnipotentEntity> I think he was asking how you get it to automatically prefix properly, ie, if PATH is empty then don't add the trailing :
<cole-h> yournewpathentry${PATH:+:}$PATH
<cole-h> ^
<cole-h> Note that you'll need to escape the `${}` somehow if inside a Nix string
<simpson> Yeah, I had to read the question a couple times before deciding to attempt an answer. Sorry if I got it wrong.
<OmnipotentEntity> at least that's how I interpreted it, and I thought there was some nix function to do it, but a cursory search turns up nothing. I guess you'll have to do it the bash way. :) cole has you covered.
Darkmatter66_ has joined #nixos
Darkmatter66 has quit [Ping timeout: 272 seconds]
leotaku has joined #nixos
<emily> it's generally a pretty safe bet that $PATH isn't empty
<{^_^}> [nixpkgs] @dotlambda opened pull request #87671 → qutebrowser: 1.11.0 -> 1.11.1 → https://git.io/Jf8go
acarrico has quit [Quit: Leaving.]
<OmnipotentEntity> So, I'm having an issue with CUDA (surprise) where there seems to be a version mismatch between the compiler and the static libraries. My derivation works on 20.03 with gcc 8.3.0 but not on master with gcc 8.4.0. Any suggestions?
<{^_^}> [nixpkgs] @Mic92 merged pull request #86957 → blockbook: 0.3.2 -> 0.3.3 → https://git.io/JfGjn
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/Jf820
<sasyctu> Does anyone have any experience adding new ibus input methods per-user? I speak a language with a non-standard input method that I have an ibus file for, but no knowledge of how to get it to work on nix.
morgrimm_ has joined #nixos
mastarija has joined #nixos
<mastarija> Hi there, does anyone know how to change console resolution on Hyper-V? I've enabled hyperv-guest module and set the resolution there but there's no change.
morgrimm has quit [Ping timeout: 258 seconds]
<morgrimm_> ^ Same issue with virtualbox, I never found out how to even with the guest module enabled
<OmnipotentEntity> sasyctu, you've probably already seen the i18n.inputMethod.ibus configuration option. But on the off hand I thought I'd mention it.
<{^_^}> [nixpkgs] @dasj19 opened pull request #87672 → blueman 2.1.2 -> 2.1.3 → https://git.io/Jf82Q
<OmnipotentEntity> off hand chance (that you haven't)*
<makefu> hey all, what is currently the "correct" way to use the nix daemon through a proxy?
<sasyctu> Yeah, I've enabled it, but not only does the language I use not have an input method in ibus-engines, when I run ibus-setup it says the namespace IBus is not available.
cosimone has quit [Remote host closed the connection]
<mastarija> Ohh... wait a second. I think I got it.
cosimone has joined #nixos
<mastarija> I put in 600x800 resolution
jakobrs has joined #nixos
<mastarija> Instead of 800x600
FRidh has quit [Ping timeout: 256 seconds]
<mastarija> Although I'd expect it to still work, because why wouldn't I be able to have 600x800 resolution?
FRidh has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
<OmnipotentEntity> sasyctu, this isn't that big of a distro, you might be the first nixos user who requires this. There's a handful of people who have touched this file. Maybe you can knock noggins with one of them and come up with a PR. @jtojnar @delroth @infinisil you're all contributors to the ibus file, any ideas?
dingenskirchen has joined #nixos
<sasyctu> I'd be happy to work with them on that.
paws has joined #nixos
<OmnipotentEntity> mastarija, might be a monitor firmware thing? no idea.
<jakobrs> Are 32-bit programs build by hydra?
<jakobrs> As in x86
mastarija has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @kampka opened pull request #87674 → trilium: 0.42.1 -> 0.42.2 → https://git.io/Jf8aW
fresheyeball has joined #nixos
hlisp has quit [Remote host closed the connection]
MmeQuignon has joined #nixos
pingiun has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
growpotkin has joined #nixos
hlisp has joined #nixos
<jakobrs> Also, is it possible to go from a store path to the hydra page for the job that built that path?
<ikwildrpepper> jakobrs: yes, just copy the store path in the search
<ikwildrpepper> needs to be the 'top level' nix store path though
<ikwildrpepper> e.g. /nix/store/......-name and not /nix/store/......-name/bin/blah
<jakobrs> Like https://hydra.nixos.org/search?query=/nix/store/amf27xcmflv63jd74vdw1g5gj94kafqc-vim-8.2.0510.drv ?
<ikwildrpepper> not sure if .drv's work, but actual store paths used to work for sure
hlisp has quit [Ping timeout: 260 seconds]
<ikwildrpepper> might be that hydra.nixos.org is a bit slow with searching though :D
<jakobrs> It's still searching for over a minute now
<jakobrs> anyway I found what I was really looking for: #27923
<{^_^}> https://github.com/NixOS/nixpkgs/pull/27923 (by grahamc, 2 years ago, merged): nixos,nixpkgs: only build essentials on i686
<jakobrs> No wait why would Tor be considered an essential when something like tmux or nmap isn't?
<sasyctu> so ignoring the fact that I am trying to get a Language for which there is currently no support, I'm seeing an error indicating the IBus namespace doesn't exist when running ibus-setup. Has anyone run into that before?
fendor has joined #nixos
<{^_^}> [nixpkgs] @amarrella opened pull request #87675 → eksctl: 0.18.0 -> 0.19.0 → https://git.io/Jf8VK
erasmas has joined #nixos
<sasyctu> Perhaps notable is I'm also on i3-gaps, not a normal de
<infandum> cole-h: The issue I have setting the path is I get: Command 'rm' is available in '/bin/rm'
<infandum> The command could not be located because '/bin' is not included in the PATH environment variable.
<infandum> This is in overrideAttrs where I'm setting PATH
jakobrs has quit [Quit: leaving]
sigmundv has quit [Read error: Connection reset by peer]
asheshambasta has quit [Ping timeout: 246 seconds]
sigmundv has joined #nixos
piezoid has joined #nixos
<azazel> doh, use a tiling WM to maximize space efficency and then configure gaps around the windows
<OmnipotentEntity> infandum, rm shouldn't be in /bin/ it should be in /run/current-system/sw/bin/
<OmnipotentEntity> Unless you're not on nixos
chloekek has quit [Ping timeout: 260 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
chloekek has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #3583 → Installables refactor → https://git.io/JfWfJ
<{^_^}> [nix] @edolstra pushed 4 commits to flakes: https://git.io/Jf8wc
srl295 has joined #nixos
nixbitcoindev has quit [Remote host closed the connection]
<la-s> what is the option to force nix-build to build locally?
<la-s> or is there not one?
nixbitcoindev has joined #nixos
<cole-h> As opposed to fetching from the cache?
<infandum> omnipotententity: I'm not on NixOS
<cole-h> infandum: Why can't you use the rm that is provided by default? e.g. just run `rm somefile` in whatever phase you're changing.
wnklmnn has quit [Read error: Connection reset by peer]
<cole-h> stdenv contains `coreutils` by default (which contains the rm binary)
<la-s> cole-h: yeah
wnklmnn has joined #nixos
Ariakenom has quit [Quit: WeeChat 2.7]
<cole-h> la-s: I think `--option substitute false` should do what you want, then.
<infandum> And it seems like I need makeWrapper for setting environmental variables for executables (nix-env install), but just the environmental variables as a variable when using nix-shell
<infandum> cole-h: Well without PATH = "somepath:$PATH" in the overrideAttrs there is no warning
<cole-h> la-s: If you already have it in your local nix store, you can `nix-build {attr} --check` to rebuild from source
<infandum> so it's related to setting PATH
<la-s> oh, thanks!
<cole-h> infandum: What are you trying to do and what isn't working?
proofofkeags has joined #nixos
evanjs- has joined #nixos
<cole-h> e.g. why is it necessary to get the rm binary from your system instead of relying on the one in stdenv?
zupo has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<la-s> Is it just me who misunderstands what flags derivations using meson are compiled with, or are no optimization options used at all?
<la-s> --buildtype=plain seems to be the default, but e.g. wlroots has nothing to set any optimizations besides that
<infandum> cole-h: I'm not messing with rm at all, the only thing is changing PATH so it sees a correct binary (that is not set by rWrapper)
evanjs has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @OmnipotentEntity opened pull request #87676 → katago: 1.3.5 -> 1.4.1 → https://git.io/Jf8rl
justanotheruser has joined #nixos
shibboleth has joined #nixos
orivej has joined #nixos
jkachmar has joined #nixos
ntqz has quit [Remote host closed the connection]
zeenk has quit [Quit: Konversation terminated!]
nixbitcoindev has quit [Ping timeout: 240 seconds]
nixbitcoindev has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drakonis has joined #nixos
<{^_^}> [nixpkgs] @tfc merged pull request #79966 → nixos/bcache: Installer test for / on bcache → https://git.io/JvWRl
<{^_^}> [nixpkgs] @tfc pushed 2 commits to master: https://git.io/Jf8oT
alp has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @leo60228 opened pull request #87677 → unrpa: init at 2.3.0 → https://git.io/Jf8oL
radu242 has joined #nixos
alp has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #3587 → Generic shell completion support for the 'nix' command → https://git.io/Jfl1z
<{^_^}> [nix] @edolstra pushed 12 commits to flakes: https://git.io/Jf8oZ
<betaboon> anyone has any suggestion how to reduce ram-requirements for booting a machine via pxe ?
M776f6c66[m] has joined #nixos
vidbina has joined #nixos
quinn has joined #nixos
<{^_^}> [nixpkgs] @adisbladis pushed to master « kdeApplications.kdegraphics-thumbnailers: Fix 404ing patch url »: https://git.io/Jf8oS
<clever> betaboon: put the rootfs on iscsi instead of embeding into the initrd
<{^_^}> [nixpkgs] @adisbladis merged pull request #87581 → nixos/doas: default rule should be first → https://git.io/JflvD
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/Jf8ox
<betaboon> clever: so you're suggesting the network block device route ?
<clever> betaboon: yeah, thats about the only way to avoid having to hold the entire image in ram
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d4c2f1ab5d1 (from 3 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nixpkgs] @badmutex opened pull request #87680 → Backport python: defusedxml: 0.5.0 -> 0.6.0 → https://git.io/Jf8KT
boolman has joined #nixos
<immae> Hello there, I’m curious about something (no real issue behind it except that it happened when helping to solve https://github.com/digital-asset/ghcide/issues/560): why does `ldd /nix/store/somehash-glibc-x.xx/lib/librt.so` directs me to a libc.so (and pthread and ld-linux) that is not in the same directory (it gives me the one coming from ldd). Is there any reason why the libraries in
<{^_^}> digital-asset/ghcide#560 (by tchoutri, 22 hours ago, closed): librt.so: undefined symbol: __clock_nanosleep, version GLIBC_PRIVATE
<immae> /nix/store/somehash-glibc-x.xx/lib/ are the only ones for which the full path to find the ld-linux / libc library is not hardcoded?
<clever> immae: ldd just runs ld.so with a special env var set
<clever> immae: and its using the ld.so from ldd's package, not the ld.so your binary wanted
<immae> clever: but when I look into the file with an editor it is not hardcoded either
<immae> while it usually is for other libraries
<clever> immae: that "wrong" ld.so, starts its search in the wrong dir
alp has quit [Remote host closed the connection]
alp has joined #nixos
<{^_^}> [nixpkgs] @sternenseemann opened pull request #87681 → ocamlPackages.tls: 0.11.1 -> 0.12.0 → https://git.io/Jf8Ks
<immae> Hmm
<clever> $ LD_TRACE_LOADED_OBJECTS=1 ls linux-vdso.so.1 (0x00007ffedf7b3000) librt.so.1 => /nix/store/qb6k4hp7gk331x9fydw0w7qj4dv09bwz-glibc-2.27/lib/librt.so.1 (0x00007ffb1a450000)
<clever> immae: try just running the program directly, with this env var set
<immae> Ok
<immae> Maybe I need to understand a bit better how things are loaded for libraries
<{^_^}> [nixpkgs] @bjornfor merged pull request #87671 → qutebrowser: 1.11.0 -> 1.11.1 → https://git.io/Jf8go
<{^_^}> [nixpkgs] @bjornfor pushed commit from @dotlambda to master « qutebrowser: 1.11.0 -> 1.11.1 »: https://git.io/Jf8KW
<clever> immae: when a program is ran normally, the ELF header says which ld.so to start with, and what the needed libs are and the RPATH
<clever> immae: that ld.so will then recursively load the libs
<clever> but if LD_TRACE_LOADED_OBJECTS=1 has been set, ld.so will print debug, and never run your main()
<immae> ok
<clever> ldd is then a shell script, to run `LD_TRACE_LOADED_OBJECTS=1 /path/to/ld.so ${yourbinary}`
<clever> which technically uses the wrong ld.so for the debug, giving different results
<immae> ok, that part makes sense
<{^_^}> [nixpkgs] @jansol opened pull request #87682 → draco: init at 1.3.6 → https://git.io/Jf8KR
<clever> and can even mislead you more, when the ld.so hasnt been patchelf'd
<clever> and ldd says it found an ld.so
<immae> by ld.so you mean ld-linux-foo.so right?
<clever> yeah
<immae> ok
<clever> different arches have renamed it some
<immae> yes, just to make sure I wasn’t missing something else
<immae> I’ll play with that a little to get a better grasp, thanks clever
endformationage has joined #nixos
<immae> clever: For the issue I had, I suggested to LD_PRELOAD=/lib64/librt.so to use the same librt library as his system libc and avoid the incompatibilities (because I had no control of what happened in the middle with ghc), would you have suggested somethign different?
<{^_^}> digital-asset/ghcide#560 (by tchoutri, 22 hours ago, closed): librt.so: undefined symbol: __clock_nanosleep, version GLIBC_PRIVATE
<cole-h> gchristensen: Looks like there already is a section detailing the channel update process on the wiki... https://nixos.wiki/wiki/Nix_channels#Channel_update_process
<gchristensen> cool
<cole-h> My job here is done
<cole-h> :P
<clever> immae: how is a different librt causing problems?
<immae> I have no idea
<immae> somewhere ghc called /nix/store/...glibc/lib/librt.so, which called /lib64/libc.so and failed
<immae> (it was the same 2.30 version on both side)
<{^_^}> [nixpkgs] @adisbladis pushed to master « emacsPackages.emacspeak: Fix meta »: https://git.io/Jf8KD
<immae> as a workaround, I suggested that he preload /lib64/librt.so, so that it would move the compatibility one layer up and it worked so I stopped there
drakonis has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6bcb1dec8ea (from 22 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
xelxebar has quit [Ping timeout: 240 seconds]
xelxebar has joined #nixos
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
floscr has joined #nixos
<{^_^}> [nixpkgs] @filalex77 opened pull request #87683 → gitAndTools.gitui: 0.2.1 -> 0.2.3 → https://git.io/Jf8K7
camsbury has joined #nixos
<{^_^}> [nixpkgs] @glasserc opened pull request #87684 → nixos/manual: Document use of systemd to mount filesystems → https://git.io/Jf8K5
<floscr> ^ Somebody know if a self reference like this is possible?
<camsbury> hi there - my arrow keys aren't working when trying to select a NixOS generation in the bootloader - macbook pro 12,1 - any tips?
<{^_^}> [nixpkgs] @teknokatze opened pull request #87685 → libgnurl: reduce size of closure. Remove unnecessary/old dependencies, → https://git.io/Jf8Kb
<floscr> like this: `default = { black1 = "#141517"; text = colors.black1; };`
<clever> floscr: config.something.colors.black;
<floscr> indeed that works, is that because of lazyness?
<clever> floscr: thats part of it
<floscr> Cool
<camsbury> also trying to open https://www.uscis.gov/system/files_force/files/form/i-9.pdf?download=1 for editing in a pdf reader
<evelyn> Is there a awy to see at what git checkout of nixpkgs a given channel is built from using nix-channel or similar?
<camsbury> trying adobe-reader, but it's complaining about missing icons
<clever> evelyn: nix eval nixpkgs.lib.version
<camsbury> any ideas for something similar in nixpkgs that works well?
<evelyn> camsbury: evince ?
<evelyn> clever: thanks!
<camsbury> evelyn: I'll give it a try
<camsbury> evelyn: no dice, many readers open to a page that says
<camsbury> If this message is not eventually replaced by the proper contents of the document, your PDF
<camsbury> viewer may not be able to display this type of document.
<camsbury> so I think maybe it has to be adobe...
janneke has quit [Quit: janneke quits Mes'sing]
<camsbury> stupid
<camsbury> just trying to fill out an I-9 form to start a job
<camsbury> when I try to open with `acroread` - from pkg `adobe-reader` it fails for the following reason
janneke has joined #nixos
<evelyn> yeah there are proprietary/obscure extensions to the format that adobe reader has
<evelyn> including scripts and opengl
<camsbury> Could not find the icon 'application-pdf'. The 'hicolor' theme
<camsbury> was not found either, perhaps you need to install it.
<camsbury> so I found hicolor and added it to the shell, but doesn't seem to change this at all
<camsbury> not sure how these icons/themes work in general, let alone in NixOS if it is different
<{^_^}> [nixpkgs] @vbgl merged pull request #86965 → ocamlPackages.re2: remove at 112.06.00 → https://git.io/JfZvD
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.re2: remove at 112.06.00 »: https://git.io/Jf86L
<{^_^}> [nixpkgs] @lovesegfault opened pull request #87686 → zoom-us: 5.0.399860.0429 -> 5.0.403652.0509 → https://git.io/Jf86t
<evelyn> hmm so I guess my next question is, how long does it typically take for a given PR to end up in the channel?
<evelyn> after being merged
<qyliss> a few days usually
shabius has joined #nixos
camsbury has quit [Remote host closed the connection]
<evelyn> that is a very useful page, thanks! i was looking on hydra. and getting somewhat confused
alp has quit [Remote host closed the connection]
alp has joined #nixos
Peter_Storm has joined #nixos
oida has quit [Remote host closed the connection]
<la-s> is there any good way to debug why a derivation isn't fetched from the global cache instead of being built locally?
cosimone has quit [Quit: Quit.]
<{^_^}> [nixpkgs] @rycee pushed to master « home-manager: remove myself from the maintainers list »: https://git.io/Jf86r
cosimone has joined #nixos
wnklmnn has quit [Ping timeout: 264 seconds]
cosimone has quit [Client Quit]
radu242 has quit [Remote host closed the connection]
lord| has quit [Ping timeout: 256 seconds]
lord| has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #87620 → apache-airflow: Export PYTHONPATH in wrapper for gunicorn processes → https://git.io/JflMo
<{^_^}> [nixpkgs] @jonringer pushed to master « apache-airflow: Export PYTHONPATH in wrapper for gunicorn processes »: https://git.io/Jf8if
simba1 has joined #nixos
<eoli3n_> Hi
<{^_^}> [nixpkgs] @aswan89 opened pull request #87688 → terminal_tarot: init at 0.1.0 → https://git.io/Jf8iI
<eoli3n_> how to find the openvpn template file used when configuring a config?
<eoli3n_> template file of systemd service
<eoli3n_> *
chinnn has joined #nixos
radu242 has joined #nixos
oida has joined #nixos
zie has joined #nixos
Vikingman has joined #nixos
<quinn> eoli3n_: you can do something like 'nixos-option services.openvpn.enable|grep .nix' to find the file
<{^_^}> [nixpkgs] @ccellado opened pull request #87689 → glpaper -> add → https://git.io/Jf8iP
<maddo> is there any support in nixos for amdgpu-pro drivers?
<jtojnar> suskeyhose: the ibus-setup issue was fixed
orivej has quit [Quit: No Ping reply in 210 seconds.]
<jtojnar> not sure if it got to channels yet
<maddo> since ROCm still doesn't support navi (probably never will)
teto has joined #nixos
<{^_^}> #86416 (by jtojnar, 1 week ago, merged): gobject-introspection: Ensure the giDiscoverSelf is run before gappsWrapperArgsHook
<lordcirth> So, I ran nix-collect-garbage and I still want to try and free more space. How can I list all roots?
orivej has joined #nixos
<qyliss> nix-store --gc --print-roots
bogdb has quit [Quit: Leaving]
chinnn has quit [Ping timeout: 245 seconds]
<lordcirth> Thanks!
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #87360 → python27Packages.m3u8: 0.5.4 -> 0.6.0 → https://git.io/JfCwn
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.m3u8: 0.5.4 -> 0.6.0 »: https://git.io/Jf8PI
<azazel> lordcirth: run nix-store --optimise, it will deduplicate the store contents
<lordcirth> azazel, by hardlinking?
shafox has quit [Remote host closed the connection]
<azazel> yep
o1lo01ol1o has joined #nixos
<azazel> but it will take a wile
<{^_^}> [nixpkgs] @jonringer merged pull request #87352 → python27Packages.pysmbc: 1.0.19 -> 1.0.21 → https://git.io/JfCam
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.pysmbc: 1.0.19 -> 1.0.21 »: https://git.io/Jf8Pq
<{^_^}> [nixpkgs] @jonringer merged pull request #87354 → python27Packages.pgspecial: 1.11.9 -> 1.11.10 → https://git.io/JfCa0
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.pgspecial: 1.11.9 -> 1.11.10 »: https://git.io/Jf8PY
<eoli3n_> thx niso
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #87351 → python37Packages.pikepdf: 1.11.0 -> 1.11.2 → https://git.io/JfCgr
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.pikepdf: 1.11.0 -> 1.11.2 »: https://git.io/Jf8Ps
radu242 has left #nixos ["The Lounge - https://thelounge.chat"]
user_0x58 has joined #nixos
<Woutifier> if a derivation build fails, can I somehow enter it at that point to debug?
<lordcirth> Woutifier, with nix-build, you can add -K to keep the tmp dir
<clever> Woutifier: and you can run nix-shell on the drv file, to get the deps into your env
<Woutifier> thanks
<{^_^}> [nixpkgs] @jonringer merged pull request #87356 → python37Packages.pyhcl: 0.4.2 -> 0.4.4 → https://git.io/JfCVm
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.pyhcl: 0.4.2 -> 0.4.4 »: https://git.io/Jf8PV
<{^_^}> [nixpkgs] @jonringer merged pull request #87362 → python27Packages.mail-parser: 3.9.3 -> 3.12.0 → https://git.io/JfCw0
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jf8P6
<infinisil> Woutifier: There is actually a supposed way to do it!
<Woutifier> wow
<Woutifier> that answers my question quite precisely
<{^_^}> [nixpkgs] @jonringer merged pull request #87342 → python27Packages.itypes: 1.1.0 -> 1.2.0 → https://git.io/JfCBP
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.itypes: 1.1.0 -> 1.2.0 »: https://git.io/Jf8PD
<clever> infinisil: i wasnt able to get the chroot part of cntr to work right
<Woutifier> (it's a big node2nix thing, which has been giving me headaches all day)
<clever> infinisil: and the build i was trying to resume, was using absolute paths to $NIX_BUILD_TOP
<infinisil> clever: Yeah actually I was having some trouble too, I was hoping I just made an error along the way
<simpson> Mic92++ for examples in the breadcrumbs
<{^_^}> Mic92's karma got increased to 23
<clever> infinisil: i worked around it with raw nsenter
<c4rc4s> I threw a question in #nixos-chat but I'll try part of it here; libvirt can't find an opengl driver when I'm using nvidia. Any suggestions? https://sharing.packetize.me/irc/8043e2aff8e686b6/Screenshot_20200512_084606-details.txt
<evanjs-> What's the best way to debug a nix-invoked build process (e.g. mvn package) via strace?
dnlkrgr has quit [Quit: WeeChat 2.7.1]
evanjs- has quit [Quit: ZNC 1.7.5 - https://znc.in]
evanjs has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #87539 → nixos-generators: 1.0.0 -> 1.1.0 → https://git.io/JfWSD
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jf8Xq
<{^_^}> [nixpkgs] @jonringer merged pull request #87343 → python27Packages.h2: 3.1.1 -> 3.2.0 → https://git.io/JfCRw
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/Jf8XG
<infinisil> Ughh, having my system depend on nerd fonts is awful
<infinisil> It frequently gets stuck downloading, probably because it's a ~900MB zip file :/
<infinisil> Although it's slow in general
alp has quit [Remote host closed the connection]
<lordcirth> 900MB of fonts??
alp has joined #nixos
<infinisil> Which is actually rather weird, because downloading the same file (https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Noto.zip) with wget is pretty fast
<infinisil> lordcirth: Yup..
<maralorn> infisinil: There is at least a trick to cache the fonts by putting a symlink in /etc somewhere that way you only ever need to download nerd fonts again, when it is actually bumped.
<lordcirth> shouldn't it be cached in the nix store already?
<{^_^}> [nixpkgs] @jonringer closed pull request #87432 → python37Packages.qiskit-ibmq-provider: 0.6.1 -> 0.7.0 → https://git.io/JfWJO
<{^_^}> [nixpkgs] @jonringer merged pull request #87631 → python3Packages.qiskit: 0.18.2 -> 0.19.1 → https://git.io/Jfl52
<{^_^}> [nixpkgs] @jonringer pushed 7 commits to master: https://git.io/Jf8Xg
<infinisil> maralorn: lordcirth: It's downloading it again because I'm updating the system
<infinisil> (and there probably was a new nerdfonts release since last time)
<{^_^}> [nixos-homepage] @garbas pushed to fix-commiting-to-master « run github action on a branch »: https://git.io/Jf8XK
<infinisil> Ahh, actually it looks like you can now override nerdfonts to only download the fonts you need
<lordcirth> I was about to ask if you couldn't select a subset
<maralorn> lordcirth: Yes, but no. The font sources get for some reason garbage collected because they are only buildtime and not runtime requirements of the system.
dsg has quit [Remote host closed the connection]
<maralorn> At least that was definitely the problem a while ago.
<{^_^}> [nixpkgs] @jonringer merged pull request #87279 → python37Packages.azure-core: 1.4.0 -> 1.5.0 → https://git.io/JfcQ5
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.azure-core: 1.4.0 -> 1.5.0 »: https://git.io/Jf8XX
<{^_^}> [nixpkgs] @Mic92 merged pull request #87474 → ocamlPackages.mdx: 1.5.0 → 1.6.0 → https://git.io/JfWnf
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jf8XH
<infinisil> maralorn: You mean the problem in https://github.com/NixOS/nix/issues/719? I don't think that should be a problem in this case
<{^_^}> nix#719 (by wizeman, 4 years ago, open): Nix GC collects derivations used for IFD
<maralorn> I can definitely confirm that the rate at which I have to download nerdfonts got a lot lower after adding this to my config.^
<maralorn> infinisil: No, I don‘t think that‘s your current problem. I just thought maybe that could free you of future pain.
<{^_^}> [nixpkgs] @ryantm closed pull request #73825 → session-manager-plugin: init at 1.1.50.0 → https://git.io/Je6Wy
<infinisil> maralorn: Hm, I'm not sure why that code would help currently
mallox has quit [Ping timeout: 264 seconds]
<infinisil> Oh maybe it does
vidbina has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #87287 → python37Packages.bidict: 0.18.3 -> 0.19.0 → https://git.io/Jfcby
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.bidict: 0.18.3 -> 0.19.0 »: https://git.io/Jf8Xd
<infinisil> Yeah that makes sense, font builds depend on the font's source and some other dependencies
<maralorn> infinisil: I don‘t understand it either. I got it from andi- and it helps.^^
dsg has joined #nixos
mallox has joined #nixos
eoli3n__1 has quit [Quit: WeeChat 2.8]
eoli3n_ has quit [Remote host closed the connection]
<infinisil> But neither of those are runtime dependencies, so they wouldn't be persisted over a GC (by design, since you don't need the source and the deps anymore)
<{^_^}> [nixpkgs] @jonringer merged pull request #87311 → python27Packages.foolscap: 0.13.2 -> 20.4.0 → https://git.io/JfCqA
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.foolscap: 0.13.2 -> 20.4.0 »: https://git.io/Jf8XA
eoli3n_ has joined #nixos
<andi-> The purpose it to cache the downloaed sources as that really got annoying
<andi-> not sure what you are trying to solve with it right now
D_ has quit [Ping timeout: 244 seconds]
julm has quit [Remote host closed the connection]
D_ has joined #nixos
dugur has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @jonringer merged pull request #87355 → python37Packages.pydocstyle: 4.0.1 -> 5.0.2 → https://git.io/JfCa1
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.pydocstyle: 4.0.1 -> 5.0.2 »: https://git.io/Jf81U
julm has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #87310 → python27Packages.elasticsearch: 7.1.0 -> 7.6.0 → https://git.io/JfCqu
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.elasticsearch: 7.1.0 -> 7.6.0 »: https://git.io/Jf81k
<{^_^}> [nixpkgs] @jonringer merged pull request #87364 → python27Packages.pysolr: 3.8.1 -> 3.9.0 → https://git.io/JfCr0
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.pysolr: 3.8.1 -> 3.9.0 »: https://git.io/Jf81q
<{^_^}> [nixos-homepage] @garbas pushed to fix-commiting-to-master « trigger github actions »: https://git.io/Jf813
<{^_^}> [nixpkgs] @jonringer merged pull request #87365 → python27Packages.msal: 1.1.0 -> 1.2.0 → https://git.io/JfCri
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.msal: 1.1.0 -> 1.2.0 »: https://git.io/Jf81s
<{^_^}> [nixpkgs] @jonringer merged pull request #87363 → python27Packages.pymediainfo: 4.1 -> 4.2.1 → https://git.io/JfCrI
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.pymediainfo: 4.1 -> 4.2.1 »: https://git.io/Jf81G
<{^_^}> [nixpkgs] @jonringer merged pull request #87295 → python37Packages.asdf: 2.5.2 -> 2.6.0 → https://git.io/Jfcp0
<evanjs> infinisil: re nerd fonts. I know the feeling. Esp when it fails at work due to queue trees and etc lol
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.asdf: 2.5.2 -> 2.6.0 »: https://git.io/Jf81Z
floscr has quit [Remote host closed the connection]
<evanjs> Maybe I should set it to only download JB Mono and powerline, etc...
<infinisil> andi-: No I'm just instructing nerd fonts to download a subset of fonts now. Not using the caching thing, that was just some talk by me explaining why it would help
<{^_^}> [nixpkgs] @jonringer merged pull request #87339 → python27Packages.dict2xml: 1.6.1 -> 1.7.0 → https://git.io/JfC85
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.dict2xml: 1.6.1 -> 1.7.0 »: https://git.io/Jf81C
vidbina has joined #nixos
shibboleth has quit [Quit: shibboleth]
<andi-> infinisil: ah, I see
<{^_^}> [nixpkgs] @jonringer merged pull request #87350 → python27Packages.parse: 1.12.1 -> 1.15.0 → https://git.io/JfCgm
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.parse: 1.12.1 -> 1.15.0 »: https://git.io/Jf81R
<infinisil> evanjs: I'm doing this now: (nerdfonts.override { fonts = [ "Iosevka" "FiraMono" "FantasqueSansMono" ]; })
<{^_^}> [nixpkgs] @jonringer merged pull request #87371 → python27Packages.phonenumbers: 8.12.0 -> 8.12.2 → https://git.io/JfCKp
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.phonenumbers: 8.12.0 -> 8.12.2 »: https://git.io/Jf81z
<evanjs> infinisil: that seems simple enough. Maybe I can at least remove my _other_ fonts and just specify them in NerdFonts, if applicable
<{^_^}> [nixos-homepage] @garbas pushed to fix-commiting-to-master « would this works maybe? »: https://git.io/Jf812
<{^_^}> [nixpkgs] @Gaelan opened pull request #87690 → kexectools: always pass host and target to configure → https://git.io/Jf81o
Rusty1 has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
hmpffff has joined #nixos
pjt_014 has joined #nixos
hmpffff_ has quit [Ping timeout: 258 seconds]
hmpffff__ has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #87691 → linux-rpi: use bcm2709 on arm32 rpi3 → https://git.io/Jf817
<{^_^}> [nixpkgs] @badmutex opened pull request #87692 → visidata: add darwin to supported flatforms → https://git.io/Jf81A
hmpffff_ has joined #nixos
<{^_^}> [nixos-homepage] @garbas pushed to fix-commiting-to-master « trying another github action »: https://git.io/Jf81j
hmpffff has quit [Ping timeout: 244 seconds]
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from @garbas to fix-commiting-to-master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/Jf8Mt
hmpffff__ has quit [Ping timeout: 256 seconds]
hmpffff has joined #nixos
<{^_^}> [nixos-homepage] @garbas pushed to fix-commiting-to-master « fix commiting updates to flake.lock and blogs.xml »: https://git.io/Jf8Mn
<{^_^}> [nixos-homepage] @garbas opened pull request #424 → fix commiting updates to flake.lock and blogs.xml → https://git.io/Jf8Mc
<sasyctu> Jan Tojnar thanks!
<{^_^}> [nixos-homepage] @garbas pushed to fix-commiting-to-master « fix commiting updates to flake.lock and blogs.xml »: https://git.io/Jf8M4
hmpffff__ has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixos-homepage] @garbas merged pull request #424 → fix commiting updates to flake.lock and blogs.xml → https://git.io/Jf8Mc
<{^_^}> [nixos-homepage] @garbas pushed 2 commits to master: https://git.io/Jf8MR
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to fix-commiting-to-master: https://git.io/Jf8ME
hmpffff_ has quit [Ping timeout: 260 seconds]
<sasyctu> Do I have to update to an unstable channel to get that change, or do I just need to do another nixos-rebuild switch?
cyberia has joined #nixos
<cyberia> hi
Rusty1 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
codygman has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<pjt_014> cyberia: h
<pjt_014> i
<pjt_014> phew, saved it
codygman has joined #nixos
<cyberia> is there documentation on how nixos works internally? like, how it all works under the hood
<cyberia> coming from a normal linux distro it's all very confusing
hmpffff has quit [Ping timeout: 265 seconds]
<infinisil> cyberia: For the evaluation side of things I just recently wrote a little explanation here: https://www.reddit.com/r/NixOS/comments/gdnzhy/question_how_nixos_options_works_underthehood/fpivr3p/
<pjt_014> cyberia: yup, there's lots o' docs: https://nixos.org/learn.html
<{^_^}> [nixpkgs] @ajs124 opened pull request #87693 → minetest: 5.1.1 -> 5.2.0 → https://git.io/Jf8MV
<pjt_014> cyberia: in short, most of what I need I get from `man configuration.nix` and `nix search packagename`
user_0x58 has quit [Quit: Leaving]
<pjt_014> unless I'm tryna do something fancy, which is often :L
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from @garbas to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/Jf8Mr
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #87694 → ocamlPackages.ppxlib: minor refactoring → https://git.io/Jf8MK
<cyberia> I found the stuff on nixos/learn.html inadequate for deep diving into how the filesystem is managed etc.
<cyberia> I'll have a look at infinisil's comment, thanks :)
<emily> cyberia: the source code ^_^
<infinisil> Though the booting and co. is another part of NixOS' internals I haven't addressed in my comment
Soo_Slow has quit [Quit: Soo_Slow]
<emily> cyberia: there's no substitute for diving into nixpkgs when you want the gory details beyond what the public docs address currently imo
knupfer has quit [Remote host closed the connection]
<emily> it'd make a great (and faintly horrifying?) book though
knupfer has joined #nixos
<cyberia> hmm ok
alp has quit [Ping timeout: 260 seconds]
<emily> asking on IRC is also a good option, of course
<cyberia> yes true
<emily> also, the Nix(OS) papers are quite in-depth, if a bit outdated in places, if you can stand reading academic papers
<cyberia> worth a shot I guess
orivej has quit [Ping timeout: 256 seconds]
<cyberia> I guess what I'm saying is I fired up the VirtualBox demo image and checked out the filesystem. I noticed /bin and /usr/bin didn't have much in them and all my binaries were in /run/current-system/bin which is obviously unusual. then I checked out /etc and saw loads of symlinks (to /etc/static mostly), which was confusing too.
eoli3n_ has quit [Remote host closed the connection]
<cyberia> and I wonder if there's docs as to how all of that stuff is managed
orivej has joined #nixos
eoli3n_ has joined #nixos
<pjt_014> how much do you know of the basics?
<cyberia> I've used Nix a little on an Ubuntu system
<cyberia> I get the concept of building packages with a SHA prefix and symlinking current versions into your $PATH
<cyberia> (and how that means you can use packages with dependencies on different versions of libraries etc. etc.)
<pjt_014> I do have one other possible helpful thing I know of:
<pjt_014> and it has an amusing logo too
<cyberia> haha thanks
<jjwatt[m]> cyberia: I'm fairly new, too. I've read the nix pills, and I'm re-reading them again more slowly. I think they're a little out of date. One minor breakthrough I had that is still somewhat basic is looking at the "derivations" section in the manual, like really pouring over it. I hadn't really understood how the packaging worked until then, even though I thought I had.
<cyberia> that's helpful, thanks
hmpffff has joined #nixos
<emily> cyberia: you can think of NixOS as being based around building "an entire Linux system, binaries, configuration and all" as a pure Nix derivation
<jjwatt[m]> and it's close to what you're talking about re: files and where they go, but there are higher level things that manage like the global directories where the symlinks live and gc roots
<emily> cyberia: that means that each system configuration is as reproducible and hermetic as possible, and you can rollback arbitrary system configuration changes
<cyberia> right
m0rphism1 has joined #nixos
<cyberia> sounds like I need to grok derivations as a concept then
<emily> but as a result, /etc and your $PATH and the like are just symlinks to more forests of symlinks built by Nix :)
<{^_^}> [nixpkgs] @shuhaowu opened pull request #87696 → WIP: Updated kind from 0.7 -> 0.8.1 → https://git.io/Jf8DT
<cyberia> yes
knupfer has quit [Quit: knupfer]
<emily> the basic idea is that the <hash> in /nix/store/<hash>-<name> contains all the information about the build scripts and recursive dependencies for a package
hmpffff__ has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
<emily> so it should always (if the builds are properly reproducible) build to the same result and can always be recreated from the original derivation
<cyberia> and a derivation is essentially a specification of what the package contains/how to build it?
<emily> that way, different versions of packages and configurations are always automatically isolated, and everything has its exact dependencies pinned (which also means that runtime dependencies are automatically managed and can be easily transferred across machines, etc.)
hmpffff_ has joined #nixos
<cyberia> yes that part is clear to me
<emily> yep -- "the source is this tag from github with hash <...>, we have these build dependencies, and this is the build script"
<cyberia> yes
<emily> the reason you can download binary packages on nixos is that Nix goes to build the derivation of each package you install, hashes all the information for that, but then notices that the cache already has a build with the exact same hash
<{^_^}> [nixpkgs] @jonringer opened pull request #87697 → python3Packages.dotnetcore2: 2.1.13 -> 2.1.14 → https://git.io/Jf8DY
<emily> NixOS is essentially a source distribution that tracks enough information about the source to be able to seamlessly shim in binaries
<cyberia> ok, so what does the derivation for the "entire Linux system, binaries, configuration and all" look like?
hmpffff__ has joined #nixos
zebrag has joined #nixos
<cyberia> is that installed in /nix/store as well? how does the root filesystem hook into it?
<cyberia> etc. etc.
hmpffff has quit [Ping timeout: 272 seconds]
<cyberia> but I feel those questions may be answered by some of the suggestions. so thanks for all your help :) I'm gonna get a coffee
<pjt_014> yep. looks something like /nix/store/c0pixa339cndky8iw6gp4jm86qgn25rw-nixos-system-compname-19.09.2496.278db005f83
inkbottle has quit [Ping timeout: 256 seconds]
<asymmetric> are there prebuilt packages for emacs27?
hmpffff_ has quit [Ping timeout: 260 seconds]
<asymmetric> ah, this looks promising https://github.com/nix-community/emacs-overlay
<NobbZ[m]> Together with nix-community.cachix.org, you don't even need to compile
<M776f6c66[m]> Hey, I am also looking to install NixOS and have been lurking to learn. Since the conversation about NixOS for newbie is ongoing, can someone help me with this: I use a rice of some tiling WM. Recently found someone who would create ansible playbooks to deploy his system in case of a crash to exact state as defined in the playbook. I know in terms of the packages that is handled by configuration.nix. Are the custom
<M776f6c66[m]> configs handled so, too?
proofofkeags has quit [Remote host closed the connection]
<infinisil> cyberia: Yeah, NixOS system derivation is linked to from /run/current-system
<M776f6c66[m]> Secondly, in case I come across a package that not in the nix-store, how do I go about creating a package for it for others to use maybe?
<srhb> M776f6c66[m]: With the a Nix tutorial under your belt, the nixpkgs manual open in one window and this chat in another :)
<infinisil> cyberia: You'll also find /run/current-sytem/etc being a symlink to the /nix/store derivation containing all of /etc
<srhb> M776f6c66[m]: Many a first-package has been born that way.
<infinisil> cyberia: Which is also where /etc/static will point
<pjt_014> M776f6c66[m]: y'want an example of what my 1st package lokos like?
<niso> M776f6c66[m]: also: checking the nixpkgs repo for samples is quite helpful
Peter_Storm has quit [Quit: Connection closed for inactivity]
zupo has joined #nixos
<pjt_014> M776f6c66[m]: this makes for a good template in general, esp. for python stuff: https://github.com/NixOS/nixpkgs/commit/aa84e476da8d4b53117b3019cac037b306e79924#diff-01b0006f31f8b1b0da197218b23a1a6d
<srhb> M776f6c66[m]: Yeah, it usually helps to copy a similar project (if it's not too complicated) in terms of how to handle dependencies etc.
<infinisil> cyberia: How do all these /etc/foo -> /etc/static/foo links and /etc/static itself get set up you might ask. The answer is the activation script at /run/current-system/activate, which gets run when you `nixos-rebuild switch` and when you boot up
<srhb> M776f6c66[m]: Packages of the same "breed" tend ot look alike
<niso> M776f6c66[m]: and yes, custom and system configuration works the same way
<{^_^}> [nixpkgs] @bjornfor merged pull request #86313 → lib.version: change pre-git to post-git on the release branch → https://git.io/JfYtQ
<{^_^}> [nixpkgs] @bjornfor pushed to release-20.03 « lib.version: change pre-git to post-git on the release branch »: https://git.io/Jf8D6
<infinisil> cyberia: I guess underneath NixOS is an activation script that changes the system into the desired state with a rather small number of atomic steps (like changing where /etc/static points to)
<M776f6c66[m]> niso srhb pjt_014 thank you for the links and everything. Lemme go and try installing.
<pjt_014> If you're on 20.03 or the unstable branch nix-env -iA shou work for that one
Maxdamantus has quit [Ping timeout: 256 seconds]
<niso> why are there for each release branches for nixpkgs, nixos etc?
Maxdamantus has joined #nixos
proofofkeags has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
virus_dave_ has joined #nixos
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/da7ddd822e3 (from 24 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<cyberia> is there a spec for the DSL used in .nix files?
<cyberia> or some documentation. not necessarily a spec
virus_dave has quit [Ping timeout: 260 seconds]
<cyberia> thanks
<maralorn> infinisil: That nerdfonts line is very sweet. I now have only Jetbrains Mono from Nerdfonts. much much quicker install. And less disk space usage!
<maralorn> Thx
alp has joined #nixos
<infinisil> :D
<{^_^}> [nixpkgs] @yimmt opened pull request #87699 → pam: fix spelling mistake in configuration → https://git.io/Jf8yJ
<infinisil> Props to the person introducing this override mechanism
virus_dave_ has quit [Ping timeout: 258 seconds]
<jjwatt[m]> 776f6c66: Some people do custom configs themselves with nix expressions, but others use home-manager. I've been using home-manager lately for stuff like that. It basically applies nix stuff to your home directory and even your systemd user session
<maralorn> Yeah, them too.
<maralorn> unknownHero++
<balsoft> Oh my god! It's been almost two years since I switched to sway, and I finally found out why GTK apps have incorrect font rendering when GDK_BACKEND=wayland. It's because of GTK_USE_PORTAL.
<jjwatt[m]> 776f6c66: I mean, you still use nix with home-manager, it just makes it easier and cleaner and it has like a lib for various packages, including window managers. So, you can write configs as text snippets, but for a lot of window managers and other apps people have made the configs into functions on attributes, so you can say like "sway.color = it" or whatever and it will turn it into a config file.
orivej has quit [Ping timeout: 264 seconds]
<M776f6c66[m]> jjwatt I have been looking at home manager. Couldn't be sure about if I was the correct audience for that. I thought I'd get back to it later. Thanks for your input, I'll surely go for home manager now.
virus_dave has joined #nixos
<jjwatt[m]> it's super easy to make it "take over" a config file. Like, I recently went to managing my spacemacs from home-manager and it's literally just a line like ".spacemacs".source = conf/spacemacs where conf/spacemacs is a path to the one I want to use. Even better, I have a "home.file" attribute that pulls spacemacs at a pinned revision.
<aterius> I prefer to manually write the files and have home-manager merely manage them, similar to gnu stow
domogled has joined #nixos
<Woutifier> Ok, finally managed to find the issue with the nodejs project I was trying to node2nix'ify. Turns out there is a thing called webpack, which in turn can call something called a babel-loader. The babel-loader is responsible for compiling typescript into javascript, it has an exclude attribute which was set to "node_modules". Normally, that would be ok since it contains all the dependencies, but in the node2nix
<Woutifier> case our whole package is in a folder called node_modules.....
<Woutifier> so it just silently didn't compile the tsx to js, and the build failed without any meaningful error. On the plus side I now know more about nodejs than I wanted to.
<virus_dave> here's a probably poorly forumlated question: I have a prod nix cache, and i want to ensure a particular cache entry is present in my local nix store. I don't have the original derivation available. How can I ensure this? I assume it'll use FODs somehow, perhaps?
<jjwatt[m]> yeah, definitely seems to be trade-offs. I haven't settled on an approach yet. similarly to managing different ones on different machines. Like, right now I have different directories for different hosts. It would be less code to do "logic" in them to include different imports/settings based on the host, but I don't love that either. Kind of reminds me of uncertaintly I have with stuff like ansible, too. At some point, I'd
<jjwatt[m]> rather repeat myself and/or generate the yaml than have it be too smart.
<srhb> Woutifier: Imagine if you had just put that node ecosystem explanation in some novel as generic technobabble. It all sounds made-up. :-)
<{^_^}> [nixpkgs] @dywedir merged pull request #87622 → bat: 0.15.0 -> 0.15.1 → https://git.io/JflyB
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/Jf8y2
<srhb> Woutifier: (Trying to lighten the burden of knowing too much, sorry)
<{^_^}> [nixpkgs] @jonringer merged pull request #87697 → python3Packages.dotnetcore2: 2.1.13 -> 2.1.14 → https://git.io/Jf8DY
<{^_^}> [nixpkgs] @jonringer pushed to master « python3Packages.dotnetcore2: 2.1.13 -> 2.1.14 »: https://git.io/Jf8yr
<jjwatt[m]> srhb: lol. Joe Armstrong did a talk where he starts off with a story about js/node woes and "grunt can't update" or something. "The mess we're in" great talk
<srhb> jjwatt[m]: Thanks ;)
<quinn> jjwatt[m]: i have my own stow configuration i'm looking to merge with home-manager, but i'm very off-put by the unstable warnings on the github page. do you have a sense of how unstable it actually is?
<jjwatt[m]> srhb: But, ya know, here's this awesome CS dude and he sees all this node jargon and he's like, 'wtf' https://news.ycombinator.com/item?id=8342755
<Woutifier> srhb: :D
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jjwatt[m]> quinn: It's not too unstable for me so far. I have it managing X on my laptop, but only in its own xsession launched from xdm/gdm.
<quinn> jjwatt[m]: can you elaborate on "not too unstable"?
<M776f6c66[m]> jjwatt : how host agnostic would the configuration be? It is all laptops btw. I frequently switch laptops. And maybe down the line consider a macbook with a nix alongside. I know of the woes of ansible but didnt think much of it because if I use ansible, the OS itself has to be installed beforehand so pretty safe(I could be grossly wrong, let me know if I misspoke)
<jjwatt[m]> 776f6c66: It can be totally host agnostic. The only reason I mentioned hosts is that I do have different configs on different hosts
<srhb> M776f6c66[m]: I think most multi-system NixOS users tend to group their config into host-specific and host-agnostic files.
<emily> quinn: tbh tons of people use home-manager at this point, I doubt it's terribly more unstable than NixOS ecosystem average
<srhb> M776f6c66[m]: The host-specific file then serves as the otop level configuration and imports the host-agnostic one.
<jjwatt[m]> 776f6c66: And, I could be "smarter" about it. Some people split everything up into different $(hostname).nix files and I've seen people even pick configs in their nix files based on actually reading the hostname and stuff like that. I think one person even selected config bits based on IP address or timezone or something. Right now, I just have different directories.
<{^_^}> [nixpkgs] @mkaito opened pull request #87700 → prometheus: Split options listenAddress and port → https://git.io/Jf8yb
wolke- has quit [Quit: ZNC 1.7.5 - https://znc.in]
<M776f6c66[m]> Thank you guys jjwatt and srhb. I think it is time to get my hands dirty and install NixOS. Be sure to come back in case of hiccups or otherwise :D
lovesegfault_ has quit [Quit: WeeChat 2.8]
<jjwatt[m]> 776f6c66: but, as I do split things into different files, I could move them to a "common" area and import them from the different directories, etc. It's very flexible since everything gets turned into attribute sets, really, and it all can get merged and all that.
orivej has joined #nixos
<quinn> emily: you have a point, thank you.
<jjwatt[m]> 776f6c66: Yes! do it. And, you can try home-manager after you mess around with the system config which is awesome in its own right! /etc/nix/configuration.nix :)
<srhb> M776f6c66[m]: Have fun :)
<M776f6c66[m]> No wonder people prefer NixOS for Devops. That would really solve a lot of problems my organisation faces in terms of deployment
<srhb> M776f6c66[m]: Yes, that's exactly it. ;-)
<M776f6c66[m]> It hits me harder. What, you ask? "Fearless tinkerer" :p
<emily> quinn: mostly, the basic functionality of templating files and setting up symlinks should be pretty simple since it's the kind of thing nixos does already, I expect any instability is more in terms of breaking interface changes, incomplete/buggy modules, etc.
m0rphism has quit [Quit: WeeChat 2.7.1]
<emily> quinn: that said, I haven't gotten around to home-manager-ifying my system yet, so I can't speak from personal experience
<{^_^}> [nixpkgs] @Mic92 merged pull request #87690 → kexectools: always pass host and target to configure → https://git.io/Jf81o
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/Jf8ST
jgeerds has joined #nixos
<quinn> emily: do you think it would be crazy to just port the modules i need into my system configuration?
<emily> quinn: you can integrate home-manager directly from the nixos config without using the tool I think
<jjwatt[m]> quinn: One thing I remember with starting with home-manager: the warnings about letting it manage your shell, etc. made me think it was going to take over my home directory entirely at first. That is definitely not the case!
<emily> that was my plan
<srid> How can I tell what exactly nix uses for the auto value in `nix-build -j auto`?
<quinn> emily: ohh, i see. that is not in the README, but it is in the manual. that is a lot more compelling
<quinn> jjwatt[m]: i see. it basically just symlinks in templated config files for you?
<jjwatt[m]> quinn: Yes, and only the stuff I tell it to. As I specify more programs and more configs there, I do remove them from 'nix-env' to avoid any conflicts, but I still have stuff that I haven't "ported over" yet, and it doesn't try to do anything to system services and stuff like that, only user ones, and only if you tell it to.
lovesegfault has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #87701 → qutebrowser: 1.10.0 -> 1.10.2 → https://git.io/Jf8S8
<jjwatt[m]> and like emily said, it's even a seperate attribute to specify "extra packages" or programs to be installed by home-manager, 'home.packages', so it can likely co-exist and even be specified from the system config
<{^_^}> [nixpkgs] @GTrunSec closed pull request #87612 → airflow: fix gunicorn path #84512 → https://git.io/JflKr
<srhb> srid: You count your cores :-)
<srhb> srid: (it's std::thread::hardware_concurrency())
<srid> Right, what's the guarantee that that's what nix uses?
<srhb> srid: If that fails to detect it, you get one job.
lsix has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @vbgl merged pull request #87681 → ocamlPackages.tls: 0.11.1 -> 0.12.0 → https://git.io/Jf8Ks
<{^_^}> [nixpkgs] @vbgl pushed 4 commits to master: https://git.io/Jf8Sw
<quinn> jjwatt[m] alright, sounds worth looking into. thank you!
fendor__ has quit [Remote host closed the connection]
vidbina has quit [Ping timeout: 260 seconds]
morgrimm_ has quit [Ping timeout: 256 seconds]
infandum has quit [Remote host closed the connection]
fendor_ has joined #nixos
cosimone has joined #nixos
mallox has quit [Quit: WeeChat 2.8]
<srid> Sadly 1TB is not enough for NixOS.
<MichaelRaskin> Do you ever GC?
lord| has quit [Ping timeout: 264 seconds]
<quinn> yeaah i run nixos on a 500gb hard drive, it works fine
orivej has quit [Ping timeout: 256 seconds]
lord| has joined #nixos
noudle has quit []
simba1 has quit [Ping timeout: 260 seconds]
<qbit> does anyone here manage the #nix namespace on freenode?
rogue_koder_ has quit [Remote host closed the connection]
rogue_koder_ has joined #nixos
fusion809 has joined #nixos
orivej has joined #nixos
<drakonis> the distro channel namespace is #nixos
NeoCron has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @jslight90 opened pull request #87702 → nixos/logrotate: Add options for basic paths → https://git.io/Jf89b
<qbit> "The #nix namespace is managed by the nixos project."
o1lo01ol1o has joined #nixos
Jonathan54 has joined #nixos
<{^_^}> [nixpkgs] @Lassulus merged pull request #83326 → uefitool: update → https://git.io/JvSO1
<qbit> i am looking to make #nix-openbsd for openbsd related nix things - freenode let me create it - but I would like to get signoff on being official or not
<{^_^}> [nixpkgs] @Lassulus pushed 3 commits to master: https://git.io/Jf89A
eoli3n_ has quit [Remote host closed the connection]
eoli3n_ has joined #nixos
<Jonathan54> Hi! I have an application in NixPkgs which is throwing this error `cannot exec /usr/bin/wget`. Does that just mean that wget needs to be added to the dependencies, or does it need some sort of patch-elf to change the hard-coded path?
<LnL> probably both
<Jonathan54> *not my application, I just have it installed, and was looking to see if I could fix it.
o1lo01ol1o has quit [Remote host closed the connection]
<clever> Jonathan54: you may need libredirect
o1lo01ol1o has joined #nixos
<emily> Jonathan54: if it's built from source, then we should be able to just patch the source
<emily> it really depends on the application :)
Shell has quit [Quit: ZNC 1.7.5 - https://znc.in]
qyliss has quit [Quit: bye]
<Jonathan54> Right, it is not build from source, so I guess something like libredirect to patch the executable.
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 246 seconds]
Shell has joined #nixos
qyliss has joined #nixos
<{^_^}> [nixpkgs] @rtldg opened pull request #87703 → vscode: remove --skip-getting-started option → https://git.io/Jf8Hm
Jonathan54 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #87647 → makemkv: 1.15.0 -> 1.15.1 → https://git.io/Jf8LM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jf8H3
chloekek has quit [Ping timeout: 260 seconds]
codygman has quit [Ping timeout: 256 seconds]
codygman has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #87696 → Updated kind from 0.7 -> 0.8.1 → https://git.io/Jf8DT
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jf8HD
fendor_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #87699 → pam: fix spelling mistake in configuration → https://git.io/Jf8yJ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jf8HS
<{^_^}> [nixpkgs] @Lassulus merged pull request #87282 → krop: install desktop file → https://git.io/Jfc59
<{^_^}> [nixpkgs] @Lassulus pushed 2 commits to master: https://git.io/Jf8H5
<{^_^}> [nixpkgs] @Mic92 merged pull request #87559 → tilda: 1.5.0 -> 1.5.1 → https://git.io/JfWbB
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/Jf8HF
<pistache> what command can I use to evaluate my current NixOS configuration and get an attribute's value ?
pjstadig has quit [Ping timeout: 258 seconds]
<pistache> I remember there's a way to this, but I didn't note it unfortunately, and can't remember..
eoli3n_ has quit [Ping timeout: 264 seconds]
morgrimm has joined #nixos
Maxdamantus has quit [Ping timeout: 256 seconds]
gxt has quit [Ping timeout: 240 seconds]
Maxdamantus has joined #nixos
<pistache> ah, "nix-instantiate --eval "<nixos/nixos>" -A attr" seems to do what I want
<emily> nixos-option
<emily> that works too, but is less fancy
<pistache> ah yes ther's also nixos-option
<pistache> nixos-option says "error: while evaluating 'walkOptions' [...]# and "error: undefined variable 'config' [...]"
<typetetris> Hi there! How can I get haddock documenantion for a haskell packages built with callCabal2nix ?
cjpbirkbeck has joined #nixos
gxt has joined #nixos
palesz has quit [Remote host closed the connection]
plutes has joined #nixos
morgrimm has quit [Ping timeout: 264 seconds]
KeiraT has quit [Ping timeout: 240 seconds]
fendor has quit [Read error: Connection reset by peer]
Maxdamantus has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
<virus_dave> folks, if i have a `#! nix-shell --pure -i bash -A my-der ./default.nix -I "nixpkgs=/some/path" ` , it seems i'm getting `bash` from the channel at `/some/path`. I really want my script to be executed by the bash in `my-der`'s build environment though. How can i make that happen?
jumper149 has joined #nixos
m0rphism has joined #nixos
jkachmar has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 256 seconds]
<glittershark> does anyone have a cached build of graalvm from nixpkgs anywhere?
<glittershark> it is a really remarkably slow and resource-intensive build
<jumper149> I'm writing a service module and the service shouldn't run as root. So I wonder if I should give the user a hand-chosen uid and gid?
knupfer has quit [Ping timeout: 260 seconds]
<emily> jumper149: yes, or set serviceConfig.DynamicUser
<glittershark> there's actually an RFC for that: https://github.com/NixOS/rfcs/blob/master/rfcs/0052-dynamic-ids.md
<jumper149> I've looked at https://github.com/NixOS/nixpkgs/blob/9aa23e31b356798867c83fe4dc6ddf59f4e94d63/nixos/modules/misc/ids.nix and I surely could just pick one from there. Also, what's wrong with uids above 399?
<emily> oh, you don't need to specify the uid/gid specifically, yeah
<emily> nixos will infer generate ones
<jumper149> So I just can generate the user with `users.users.name = {};`?
<emily> just set users.users.blah = { group = "blah" }; users.groups.blah = {};
<jumper149> Ok dok that sounds good :)
<glittershark> typetetris: doHaddock = true, or `pkgs.haskell.lib.doHaddock pkg`
<jumper149> emily++
<{^_^}> emily's karma got increased to 24
<emily> jumper149: but if you don't need files with specific permissions shared between services or such, serviceConfig.DynamicUser = true in the service is potentially better
<emily> since it does some sandboxing and avoids the need for a statically-defined user
<emily> (you can still have locally-owned state in /var/lib by setting e.g. StateDirectory)
<jumper149> That sounds good too :)
SunWuKung has quit [Ping timeout: 260 seconds]
kraem has quit [Ping timeout: 272 seconds]
lsix has joined #nixos
lsix has quit [Client Quit]
<infinisil> Yeah DynamicUser is preferred if possible (see RFC)
KeiraT has joined #nixos
<jumper149> Is there any sort of documentation on serviceConfig? https://nixos.org/nixos/options.html#serviceconfig doesn't show any deeper attributes?
smatting has quit [Ping timeout: 256 seconds]
wnklmnn has joined #nixos
cosimone has quit [Quit: Quit.]
<infinisil> jumper149: See the man page it references
orivej has joined #nixos
<infinisil> jumper149: That doesn't document anything other than DynamicUser use on NixOS. For knowing what DynamicUser and other attributes do, you need to look in `man systemd.service` and `man systemd.exec`
alp has quit [Ping timeout: 260 seconds]
<infinisil> jumper149: Or `man systemd.directives` which then tells you that you can find out about DynamicUser in `man systemd.exec`
<jumper149> infinisil: Ohh yeah, I kinda forgot that it's configuring systemd x)
<azazel> mmm... i didn't knew of systemd.directives...
FRidh has quit [Quit: Konversation terminated!]
__monty__ has quit [Quit: leaving]
<emily> me neither, infinisi1++
<{^_^}> infinisi1's karma got increased to 1
<emily> eh, infinisil++
<{^_^}> infinisil's karma got increased to 288.00000000000000004
MmeQuignon has quit [Ping timeout: 240 seconds]
<infinisil> I kind of want to implement {^_^} randomly mentioning useful tips
<infinisil> This would be one of them
<dsal> nix-shell seems to modify my prompt to stick newlines everywhere. What's doing this and how do I fix it? :)
gustavderdrache has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @Lassulus merged pull request #86671 → aria2: add libaria2 support → https://git.io/JfszY
<{^_^}> [nixpkgs] @Lassulus pushed 2 commits to master: https://git.io/Jf87h
codygman has quit [Ping timeout: 260 seconds]
<clever> ,locate bin cbindgen
<{^_^}> Found in packages: rust-cbindgen
codygman has joined #nixos
<clever> jumper149: its a systemd flag
<clever> jumper149: i think it will run httpd with the absolute path, but set argv[0] to plain "httpd"
<clever> so the `ps aux` looks cleaner
dingenskirchen has quit [Remote host closed the connection]
<jumper149> Should this be used every time, when the executable is in the PATH?
<{^_^}> [nixpkgs] @veprbl opened pull request #87704 → pkgsi686Linux.cmake: compile with _FILE_OFFSET_BITS=64 for 32-bit targets → https://git.io/Jf85m
maxdevjs has quit [Remote host closed the connection]
maxdevjs has joined #nixos
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
m0rphism1 has quit [Read error: Connection reset by peer]
morgrimm has joined #nixos
<pjt_014> wait does happyfacebot have a floating point error?
cmk_zzz has quit [Quit: leaving]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #86166 → *-wrapper; Switch from `infixSalt` to `suffixSalt` → https://git.io/Jfmvm
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/Jf85z
<pjt_014> also, I'm tring to build a thing with an overlay within an overlay (I think). Is this close?: http://0x0.st/i_kv.txt
agsdheidjd has quit [Ping timeout: 244 seconds]
morgrimm has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #87705 → Wrap pkg config → https://git.io/Jf85o
kraem has joined #nixos
cmk_zzz has joined #nixos
cmk_zzz has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 256 seconds]
<pjt_014> clever: is this close to being right?
<clever> pjt_014: that is creating an attribute called recutils.override, not calling recutils.override
<clever> pjt_014: you want something = pkgs.recutils.override { ... };
<clever> pjt_014: you also didnt pass the system param to anything, so it does nothing
<{^_^}> [nixpkgs] @Ma27 pushed to master « clipman: 1.5.1 -> 1.5.2 »: https://git.io/Jf85b
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « clipman: 1.5.1 -> 1.5.2 »: https://git.io/Jf85h
o1lo01ol1o has quit [Remote host closed the connection]
philr has joined #nixos
<{^_^}> [nixpkgs] @Lassulus merged pull request #86446 → cpu-x: init at 3.2.4 → https://git.io/JfOSa
<{^_^}> [nixpkgs] @Lassulus pushed 2 commits to master: https://git.io/Jf8df
dermetfan has quit [Ping timeout: 246 seconds]
<pjt_014> what would I be setting it to?
erasmas has quit [Quit: leaving]
justanotheruser has joined #nixos
KeiraT has quit [Ping timeout: 240 seconds]
o1lo01ol1o has joined #nixos
jumper149 has quit [Quit: WeeChat 2.8]
Vikingman has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<pjt_014> hmm
shibboleth has quit [Quit: shibboleth]
<srid> I suppose I have to give up on my laptop and buy a gazillion-core desktop machine to make compilation (Haskell) any faster, correct?
<gchristensen> Haskell's compilation slows down with more cores, so fewer faster cores is better
<cole-h> ~16 is the sweet spot with some RTS flags, IIRC. peti went over this on his stream last week (or maybe the week before), I believe.
<gchristensen> perfectly plausible
<pjt_014> or rent out a vps. Vultr has decent high-freq ssd ones
<cole-h> #86948
<{^_^}> https://github.com/NixOS/nixpkgs/pull/86948 (by peti, 1 week ago, merged): haskell: tune generic-builder for more parallel build performance
KeiraT has joined #nixos
<cole-h> (And in that PR ^ is a link to where he talked about it)
<Ashy> srid: desktop cpus are in a fantastic spot for cost vs performance atm
<srid> any recommendations?
<srid> processor, brand, etc.
<cole-h> Anything AMD ;^)
<Ashy> ryzen 3600 is really good bang for buck
<cole-h> AMD has been curbstomping Intel in price vs perf recently.
<Ashy> they really have
<srid> reddit says "Intel CPUs 30% faster than AMD at compiling Haskell" https://old.reddit.com/r/haskell/comments/a5vnjy/intel_cpus_30_faster_than_amd_at_compiling_haskell/
<Ashy> NB: The benchmark conlusions are out of date since no results have been collected for Intel and AMDs latest desktop CPU offerings.
<Ashy> from the top of the blog post
cmk_zzz has joined #nixos
<Ashy> there's a whole new generation of ryzen chips out now (3600 is part of that new generation)
cmk_zzz has quit [Remote host closed the connection]
wnklmnn has quit [Quit: Leaving]
<srid> what's the latest and best i should buy if i had infinite money?
cmk_zzz has joined #nixos
cmk_zzz has quit [Client Quit]
cmk_zzz has joined #nixos
<cole-h> R9 3950X I believe is their top-of-the-line desktop offering?
<Ashy> ryzen 3950x is the top of the line consumer class cpu
<Ashy> threadripper is above that if you want "workstation class"
<Ashy> threadripper 3990x 64 cores (128 threads)
<srid> niiice
<Ashy> we've got a ryzen 3950x machine at work for a compute bound workload that is really nice
<srid> 64 cores ought to be enough for everbody
<Ashy> and i've got a ryzen 3600 build under my desk that's nice too, got a specific haskell package i can time a build for you?
<Ashy> haskell is notriously slow to compile though
<srid> Ashy: run `nix-build -A exe` on https://github.com/srid/MarkdownPreview and tell me how long it takes
<srid> (assuming you are not using reflex-platform cache)
<srid> (i.e., only cache in use is the nixos official one)
<colemickens> Who buys threadrippers? I don't understand how to choose between TR and EPYC?
<colemickens> Oops, definitely not on-topic, never mind.
<Ashy> colemickens: i think epyc has even more pcie lanes than threadripper so that could factor in, but yeah youd want to know you can keep that machine crunching some workload that makes you money (or saves a bunch of money)
<Ashy> srid: running now, i've never heard of reflex-platform-cache
daGrevis has quit [Remote host closed the connection]
<Ashy> srid: ghc seems to be only keeping one core busy...
<{^_^}> [nixpkgs] @aanderse merged pull request #87595 → perlPackages.ConfigProperties: init at 1.80 → https://git.io/JflCK
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/Jf8Fk
o1lo01ol1o has quit [Ping timeout: 246 seconds]
hlisp has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
morgrimm has joined #nixos
<maralorn> Wow, that processor costs 4000€.
morgrimm has quit [Ping timeout: 256 seconds]
<danderson> colemickens: TR is for people who want all the performance but not server features (moar PCIe, OOB management, 10G NICs, ...)
<danderson> people who CAD, basically.
<danderson> TR favors clock speed, epyc favors feature and rock-solid stability
<energizer> or people who use the --store option
<danderson> heh
<pjt_014> with this build file how would I enforce the system parameter? I can tell where I'd put it: http://0x0.st/iLsf.txt
<pjt_014> that 'inherit' line is just a guess
greymalkin has quit [Ping timeout: 260 seconds]
<srid> Ashy: I think you need `nix-build -j 4 -A exe` to utilize say 4 cores
<srid> (Unless your nix is configured to do match the number of cores)
<{^_^}> [nixpkgs] @eadwu closed pull request #86821 → zfs: fix build against PREEMPT → https://git.io/JfGsQ
<pjt_014> do I need to wrap it in a let block or something? The one inherit line doesn't feel like it's doing much.
<pjt_014> ...yeah it's not. everything in the build log is x86-64
<dmj`> why does yarn2nix just fail so bad on workspaceDependenices
<dmj`> yarn2nix has bricked my computer multiple times because of infinite recursion
<dmj`> is there any justice in the world
paraseba has joined #nixos
<pistache> pjt_014: "inherit system" is equivalent to "system = system"
<pistache> pjt_014: do you want to build recutils for for armv6l-linux ?
<pjt_014> yep
<pjt_014> I gotta go for like an hour unfortunately though, If you have any other hints mind putting them here?
<pjt_014> thx
mbrgm_ has joined #nixos
<pistache> pjt_014: sure
<dmj`> all node.js packaging attempts in nix are complete trash