<gchristensen>
so it seems that Nix recommends this behavior ... oof, a tricky call
Lem_ has joined #nixos
<clever>
gchristensen: nix and nixpkgs are fairly tangled together
<clever>
gchristensen: and i dont think ive seen somebody using nix without nixpkgs, beyond basic examples
<gchristensen>
I recently saw someone do it
<gchristensen>
custom stdenv. it was incredible
day|flip has quit [Remote host closed the connection]
<clever>
2016-03-09 06:13:24 < Darksecond> clever: I'm a bit silly and like to do a LFS style build with nix as the package manager (to get a better understanding about nix)
<clever>
-rw-r--r-- 1 clever clever 641 Mar 9 2016 insane
<gchristensen>
lol
npmccallum has joined #nixos
<clever>
gchristensen: somebody that was thinking of redoing the stdenv based on the lfs books
<clever>
which i had made note of
<samueldr>
aren't volth and co. using a nixpkgs-less nix for their nix on actual windows with perl? (though I don't think there's much details out?)
<clever>
gchristensen: i think this is a stdenv that uses /usr/bin/cc to build things
<clever>
the impurities!!!
<gchristensen>
help
<edef>
are we just torturing gchristensen or is there more to this
<slabity>
I wonder how difficult it would be to make Windows app derivations using wine and mono
<gchristensen>
<3 edef
<{^_^}>
edef's karma got increased to 3
* edef
purrs
<edef>
more like ≤3 karma
<gchristensen>
hehe
<gchristensen>
load average: 9.12, 12.47, 12.46 I should probbbbably reduce this 8-core machine own by at least one runner.
flavio_ has quit [Quit: Konversation terminated!]
ris has quit [Ping timeout: 252 seconds]
inquisitiv3 has quit [Remote host closed the connection]
<ivan>
worldofpeace: manual is broken in master by the last 2 commits I'm guessing
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj1Nq
<gchristensen>
:(
<ivan>
maybe ofborg should always try to build manual as well
<gchristensen>
I would like that
<worldofpeace>
ivan: aah, the first time I've broke the manual...
<worldofpeace>
ivan: probably won't be the last
<ivan>
heh
<infinisil>
It's so easy to miss
<gchristensen>
OK I'll put it on my to-do list to take over all the builders, and build the nixos and nixpkgs manual by default
<samueldr>
the hard challenge with that is how the options migrate into the manual
<samueldr>
(I mean, to validate it)
<samueldr>
uuugh... what I mean is: to visually check and say "it's okay"
<gchristensen>
if it builds it is probably close to okay
<gchristensen>
but, fair
thc202 has quit [Ping timeout: 250 seconds]
<gchristensen>
so then the next step is to become netlify and push it to the web :)
<samueldr>
already, if it was built by ofborg it would help greatly; the neat thing to do would be (nerd snipe alert) diff the DOM and push screenshot as a comment if small enough
<gchristensen>
LA LA LA I CAN'T HEAR YOU TALKING ABOUT REALLY COOL IDEAS
<gchristensen>
I need, like, infinity cores :(
<gchristensen>
samueldr: any ideas on diffing two of those install reports?
___laika has quit [Read error: Connection reset by peer]
___laika has joined #nixos
Guanin has quit [Remote host closed the connection]
jasongrossman has joined #nixos
jasongrossman has quit [Remote host closed the connection]
psyanticy has quit [Quit: Connection closed for inactivity]
jasongrossman has joined #nixos
day|flip has joined #nixos
hamishmack has joined #nixos
day|flip has quit [Client Quit]
hedgie has quit [Ping timeout: 245 seconds]
ddellacosta has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
day|flip has joined #nixos
acarrico has quit [Ping timeout: 272 seconds]
<exarkun>
what's the right way to expose a server in a nixos container on a public interface of the nixos host
day|flip has quit [Remote host closed the connection]
<exarkun>
I tried container."name".forwardPorts which didn't seem to do anything and networking.nat.forwardPorts which worked for a minute and then gave up
<exarkun>
clever: Hm that's a lot like the 2nd thing I tried which didn't work well.
<exarkun>
but I also have openvpn in this container ...
<clever>
exarkun: it also helps to understand now tcp works, and tcpdump every interface along the path, to confirm if its doing the right thing at each step
mir100 has quit [Ping timeout: 268 seconds]
<exarkun>
I think it fails because openvpn sets up routes that send the responses to the wrong place
<clever>
exarkun: yeah, that could be the issue
<exarkun>
And it seemed to work at first out of random good/bad luck that let the server start before openvpn even though I thought I told systemd to make openvpn start first
<exarkun>
(possibly openvpn "starts" first but doesn't actually do network setup first so I need a different mechanism to force the right ordering ...)
<clever>
openvpn doesnt setup routes until it contacts the remote machine
<{^_^}>
[nixpkgs] @matthewbauer pushed to haskell-jsaddle-overrides « haskell: add overrides for jsaddle projects »: https://git.io/fj1NQ
<exarkun>
not things I'll fix at 10pm I guess
<exarkun>
thanks for the help, cya later :)
<clever>
and its the remote machine that gives a chunk of openvpn config to the client
tnks has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed 0 commits to haskell-jsaddle-overrides: https://git.io/fj1N7
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #65048 → haskell: add overrides for jsaddle projects → https://git.io/fj1N5
day|flip has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @teto pushed commit from @benley to master « discord: Fix desktop icon »: https://git.io/fj1NA
<tnks>
so I did a `callHackage "ghc-exactprint" "0.6" {}` and it worked... but not with "0.6.1", which appears to be the latest on Hackage.
<tnks>
I looked a little at the Nix expression for callHackage, but didn't trace what's going on here.
Drakonis has quit [Quit: WeeChat 2.4]
jluttine has quit [Ping timeout: 244 seconds]
Drakonis has joined #nixos
<jackdk>
there's a thing called all-cabal-hashes, which is what callHackage looks into, and the version of all-cabal-hashes used is determined by nixpkgs version I think.
<jackdk>
I have never been able to determine who updates all-cabal-hashes and when, but there's a callHackageDirect function which bypasses all-cabal-hashes
Mateon1 has quit [Ping timeout: 272 seconds]
<tnks>
jackdk: thanks... I happened to be looking at the right now... I'll try that.
lambda-11235 has joined #nixos
<tnks>
jackdk: or.. I suppose I can just override the fetchurl for all-cabal-hashes with something more current.
<jackdk>
if you make that work, please post a snippet here. I never explored that and would like to learn
josephtheenginee has joined #nixos
josephtheenginee is now known as josephtheengi
josephtheengi has quit [Client Quit]
Mateon1 has joined #nixos
Mateon1 has quit [Ping timeout: 258 seconds]
Mateon1 has joined #nixos
<tnks>
jackdk: totally worked... and honestly, since this is just a link maintained by FP Complete, I feel this is a really easy thing to change upstream.
<tnks>
I think people probably just nudge it when they have the mind to.
xelxebar has quit [Quit: ZNC 1.7.2+deb2~bpo9+1 - https://znc.in]
<tnks>
but it's not that wild of an override... just changed the commit to the latest one, let it complain about the hash, and the copy the desired on in.
<tnks>
(standard operating procedure for Nix hashes, I guess).
phreedom has quit [Quit: No Ping reply in 180 seconds.]
<jackdk>
,tofu etc
<{^_^}>
etc: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<jackdk>
tnks: cool thanks. how does the all-cabal-hackages you fetch get plumbed into haskellPackages?
xelxebar has joined #nixos
phreedom has joined #nixos
wrunt[m] has joined #nixos
<tnks>
jackdk: the implicit callPackage call that's in the callHackage implementation just ends up picking up the override by name.
orivej has quit [Ping timeout: 246 seconds]
ym555 has joined #nixos
<nh2>
can I use `nix run` with a shell.nix somehow?
<nh2>
mkShell isn't supported by it, is there another way I can specify in a nix file what I'd like to have available in `nix run`?
<vaibhavsagar>
nh2: why not use `nix-shell --run`?
<nh2>
vaibhavsagar: it's too slow, I'm trying to find the fastest way possible to do nix-shell style scripting, but `nix-shell` adds ~1.5 seconds to my invocation, and `nix run` is ~3x faster
<vaibhavsagar>
oh, interesting
<vaibhavsagar>
I wonder where the speed increase comes from
<vaibhavsagar>
jackdk: you can also override `all-cabal-hashes` in `overrides`
<nh2>
time nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/88cb463a3b99ec1727d36febaeae28fde5a7f567.tar.gz -p which --command which
<nh2>
e.g. try these two:
<nh2>
time nix run -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/88cb463a3b99ec1727d36febaeae28fde5a7f567.tar.gz nixpkgs.which --command echo
<nh2>
clever: right but how do I specify in a shell.nix-like file that I want `git` on the path?
<clever>
nh2: nix run -f shell.nix foo
<clever>
nh2: but that will put foo into PATH, not give you the env vars of the foo drv
<vaibhavsagar>
nh2: have you tried `pkgs.runCommand "dummy" { buildInputs = [pkgs.git]; } ""` or something like that?
<vaibhavsagar>
in your `shell.nix` I mean
<nh2>
clever: what do I have to put into shell.nix in that case? Before I used `mkShell`, but `nix run` doesn't like that. However, it seems to like if I just put in there:
<nh2>
clever: in which cases will I suffer due to having only $PATH and not env-vars like nix-shell sets them up?
xkapastel has joined #nixos
<clever>
nh2: any time you want to use gcc
<nh2>
clever: OK, but for running pinned tools like nixops it should be fine right?
<clever>
nh2: yep
Netsu has joined #nixos
mir100 has quit [Ping timeout: 244 seconds]
day|flip has joined #nixos
seppellll has quit [Ping timeout: 272 seconds]
day|flip has quit [Remote host closed the connection]
mir100 has joined #nixos
<nh2>
clever: is there a trick how I can still give a custom `shellHook` with `nix run`?
<clever>
nh2: dont think so
<nh2>
clever: I guess I'd have to give a `--command` that starts e.g. bash, set the env vars I want, and then calls my normal command
<tnks>
nix run doesn't use shellHook, does it? I thought that was only used by nix-shell (this is from memory).
fresheyeball has quit [Quit: WeeChat 2.4]
<nh2>
very possible (I haven't tried it), but I've emulated it with a script that sets the env vars I want and then runs argv
ym555 has quit [Quit: leaving...]
ym555 has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
day|flip has joined #nixos
day|flip has quit [Client Quit]
<ornx>
how do i upgrade to the nixpkgs branch for the next release?
<ornx>
i dont see a release-19.09 branch in the git repo
<clever>
ornx: 19.09 doesnt exist yet, the only thing newer then 19.03 is nixos-unstable
<ornx>
ah, i guess ill try that then
<ornx>
although, i really only need an unstable kernel i think
jluttine has joined #nixos
slack1256 has joined #nixos
v88m has joined #nixos
sellout- has quit [Ping timeout: 268 seconds]
Mateon2 has joined #nixos
ddellacosta has quit [Ping timeout: 245 seconds]
<ornx>
where is linuxPackages defined? i want to use the 5.1 kernel on 19.03 by merging in whatever changes are necessary from the unstable branch but i dont see it in pkgs/os-specific/linux/kernel anywhere
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon2 is now known as Mateon1
Wharncliffe has quit [Ping timeout: 272 seconds]
Myhlamaeus has quit [Read error: Connection reset by peer]
jasongrossman has quit [Ping timeout: 245 seconds]
marusich has joined #nixos
knupfer has joined #nixos
palo1 has joined #nixos
Mateon1 has quit [Ping timeout: 244 seconds]
<jackdk>
thanks V
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
<tnks>
If I want to suggest updates to Haskell versions, but do due dilligence to test things as well as I can on my end... what's the best way to learn more about the current state of Haskell infrastructure? Currently, all I know how to do is just get lost in Nixpkgs code.
knupfer has quit [Ping timeout: 264 seconds]
Drakonis has quit [Ping timeout: 264 seconds]
<srhb>
tnks: If you google a bit for haskellng you will find the original posts detailing the high level design
<srhb>
tnks: But if you have specific questions, just ask :)
<srhb>
Plenty of people in here know how it works.
xkapastel has quit [Quit: Connection closed for inactivity]
<tnks>
srhb: the posts I found were from 2015, and I didn't trust it was current.
Mateon1 has joined #nixos
<srhb>
tnks: The base of it should be. There's been no _major_ redesign since then.
endformationage has quit [Ping timeout: 244 seconds]
<yurb>
I can't install newsboat because nix can't unpack xz on non-nixos... (nix#2762) I wonder if there could be a workaround that would allow me to install it until the issue is fixed?
<yurb>
ah, yes, well... That is certainly an option. I was curios though if there could be something that I can fix in the package (through an override or something)
<yurb>
Um, re daemon mode - I think I initially decided to go with single-user because I have selinux enabled
tonic1 has joined #nixos
<tilpner>
I don't see an obvious way to fix that using overrides
<yurb>
I see.
<yurb>
(well, I meant this as "I understand")
<yurb>
Thanks anyway.
<tilpner>
yurb: You can try unpacking it manually and using nix-store to add it to /nix/store
<tilpner>
yurb: Alternatively, remote builds or fetches on/from a machine with a daemon installation might work
<yurb>
thanks, I'll try unpacking
<tilpner>
Or you can try fixing this bug, if you have a lot of spare time :c
<chaker>
yurb: Maybe you should give another channel a try? "nix-shell -p newsboat -I nixpkgs=channel:nixos-19.03"
Guanin has joined #nixos
<chaker>
Mehh, the version is 2.14, which you already have...
rndd has joined #nixos
<yurb>
going to give it a try just for curiosity
<yurb>
is it possible to have packages from both channels coexist in the same profile?
<yurb>
yeah, it newsboat build fetched from the cache
<chaker>
I think not all packages in nixos-unstable get built and make it to the cache. That's why you need to build it yourself ( I had to build it as well when I tried to use unstable )
isHavvy has quit [Ping timeout: 246 seconds]
fusion809 has quit [Remote host closed the connection]
<asymmetric>
simpson: yeah, so it will error on that warning. but so it means it's not a nix problem, but rather an upstream one?
<asymmetric>
meaning: upstream has a warning in their code, so it won't build even on non-nix?
<simpson>
asymmetric: Possibly! I might also guess that nixpkgs' GCC (or Clang?) is fresher than what they test with; it's not uncommon for -Werror builds to break when GCC is upgraded.
Lears has joined #nixos
pie_ has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
linarcx has joined #nixos
<asymmetric>
simpson: do you know how to build with a different version of gcc?
Netsu has quit [Ping timeout: 260 seconds]
<asymmetric>
nvm, found out :)
d3vnu11 has quit [Remote host closed the connection]
linarcx has quit [Quit: WeeChat 2.5]
linarcx has joined #nixos
<asymmetric>
turns out they were using a fresher version, gcc8, rather than 7
hyper_ch2 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @hedning pushed commit from @r-ryantm to master « gnome3.gnome-getting-started-docs: 3.32.1 -> 3.32.2 (#65073) »: https://git.io/fjMfN
shandogs has joined #nixos
Neo--- has quit [Ping timeout: 248 seconds]
vmandela has joined #nixos
<Thra11>
Supposing there are 3 machines, A, B & C. A has B as a substituter. B has C as a substituter. If A requests a package which only C has in its cache, will B respond that it doesn't have the package, or will it fetch the package from C and pass it on?
<Thra11>
I'm assuming the former, to avoid needlessly proxying packages around the houses?
stepcut has joined #nixos
Soo_Slow has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
selfsymmetric-mu has quit [Remote host closed the connection]
ericsagnes has quit [Ping timeout: 276 seconds]
slack1256 has quit [Remote host closed the connection]
<Taneb>
I believe the former.
srid6390803 has quit [Ping timeout: 258 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyper_ch2 has quit [Remote host closed the connection]
<clever>
rmra: networking.enableIPv6 sets net.ipv6.conf.all.disable_ipv6 for you
<clever>
so both options are doing the same thing
jackdk has joined #nixos
<clever>
rmra: you probably need to reboot to fully apply that change
<rmra>
clever: i will try
<rmra>
clever:tkz
<Dagger>
although you should really not be disabling v6. if you have a problem, fix the problem
<rmra>
dagger: i have a problem with cache.nixos.org
Shoubit has quit [Quit: Leaving]
ericsagnes has quit [Ping timeout: 245 seconds]
<rmra>
it's impossible to update my machine
Thra11 has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed 160 commits to staging-next: https://git.io/fjMTE
<Dagger>
so stick the v4 address for it in /etc/hosts, or depref the v6 address via /etc/gai.conf
<Dagger>
...however you do those on NixOS
<Dagger>
and why are we still using a CDN that apparently breaks often enough for it to be a problem? :|
gratto has quit [Read error: Connection reset by peer]
gratto has joined #nixos
<eraserhd>
How does one format a set for printing, e.g. for builtins.trace when debugging?
<clever>
rmra: why is it imposible to update the machine?
<{^_^}>
[nixpkgs] @zimbatm pushed to new-issue-template « github: use the new issue template »: https://git.io/fjMT2
<eraserhd>
Ah, nm. I see I can use builtins.seq to force the attributes I want to see.
fusion809 has joined #nixos
<rmra>
dagger: so far, has been a simple echo 1 > /proc/sys/net/ipv6/conf/wlp3s0/disable_ipv6 that has been valid, but it is uncomfortable to have to do this just for updade my machine
<clever>
xdxd: probably just a normal package override against pkgs.sqlite
<eacameron>
Is there any way to see what my configuration.nix file looked like for the generation I'm using which is *different* from what the file represents now?
<eacameron>
somehow I broke sddm...
<rmra>
clever: yes
<clever>
rmra: then the problem isnt nixos, the problem is your router giving out an addr that doesnt work
<clever>
rmra: fix your router to stop doing that
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
FRidh has quit [Quit: Konversation terminated!]
jasongrossman has joined #nixos
roconnor has joined #nixos
<{^_^}>
[nixpkgs] @basvandijk opened pull request #65083 → lib: allow sourceByRegex to be composed after cleanSourceWith → https://git.io/fjMTM
<LnL>
did we have ipv6 on cloudfront?
Thra11 has joined #nixos
<rmra>
clever: ok, now i'm in trouble. i can't change configuration on router, its from my ISP.
<LnL>
we had some problems with connection timeouts but thought those where mostly resolved
<clever>
rmra: then complain to your ISP
<rmra>
clever: they don't allow
<clever>
rmra: they dont allow you to complain?
ThatDocsLady has quit [Read error: Connection reset by peer]
<clever>
xdxd: the files stack2nix generates are likely where the problem is
<{^_^}>
[nixpkgs] @johannesloetzsch opened pull request #65085 → xygrib: init at 1.2.6.1 → https://git.io/fjMT5
Tucky has quit [Quit: WeeChat 2.5]
<rmra>
clever: complaining is something i have already done, but in Portugal, the normal answer is "this is how it is, and stays"...
<clever>
rmra: ah
<clever>
rmra: is the router also a modem, or seperate?
<rmra>
clever: so, i came here to complain to you :D
<rmra>
clever: router and modem
<rmra>
all in 1
<clever>
rmra: ack, thats why i hate those boxes, you cant replace the router half
<eraserhd>
I have a function to a derivation, and I'm calling makeOverridable on it, but it's always getting the default set, even though the only reference to it calls .override on it. I'm at a loss. Ideas?
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #65086 → libxkbcommon: fix build on darwin with upstream patch → https://git.io/fjMTx
<clever>
xdxd: in your cabal file, reference sqlite the same way direct-sqlite does
<gchristensen>
LnL: are you asking if cloufront had ipv6? or something ese?
<LnL>
yeah, and whether there are any specific other known issues
<gchristensen>
we did end up having ipv6 on cloudfront by the end
<rmra>
clever: tkz for the help, and i will try dagger advice
erikvk has quit [Remote host closed the connection]
<gchristensen>
known issues with fastly? I think there are some additional problems, and actually thoughtpolice has offered to help us tune the configuration to improve our visibility in to how it is behaving
<xdxd>
clever: cabal file doesn't have anything like that
<gchristensen>
we still might want to add cloudfront between fastly and s3
<clever>
gchristensen: i believe rmra's issue is the router giving our v6 config, but then null-routing all v6 traffic
<gchristensen>
oh man that is not something we can really fix :P
<clever>
gchristensen: and he lacks access to the router config
<gchristensen>
I almost made that change once, but was scared to commit to it, as I think I found a critical problem with it in the last minute
<LnL>
was just wondering since I think ipv6 isn't on by default if the switch just brought with it a lot of ipv6 related problems for people
<clever>
xdxd: you want to add the extra-libraries to your main cabal file, and regenerate the stack2nix output
<gchristensen>
so fastly does support ipv6 by default, cloudfront...not sure.
<LnL>
not all providers, etc. have a good setup for that yet I think
bakakuna has quit [Ping timeout: 244 seconds]
<gchristensen>
fastly's setup causes badly behaving routers to break on ipv6 which, tbh, I really really really don't understand how they can as a business continue doing that if it doesn't work
<gchristensen>
for everybody*
<clever>
gchristensen: 2019-07-19 11:56:39 < rmra> clever: complaining is something i have already done, but in Portugal, the normal answer is "this is how it is, and stays"...
<gchristensen>
clever: I'm understanding properly that we have nothing to fix, and their router is broken, right?
<LnL>
right
<samueldr>
gchristensen: fastly or the modem mfgs?
<gchristensen>
samueldr: fastly's network design is standards compliant, and modem manufacturers (or routers? Don't remember) can't handle it.
hedgie has quit [Ping timeout: 272 seconds]
<gchristensen>
the timeout issue is something I think we're able to get some more visibility in to, and possibly even fix
<samueldr>
gchristensen: "I [really] don't understand how they can [...] continue doing that" <- fastly or mfgs, or both? :)
<gchristensen>
but I need thoughtpolice's help
<gchristensen>
samueldr: fastly
<rmra>
clever: it's still a problem by the comments
<samueldr>
though tbf, the modem mfgs should maybe fix something non-standard compliant :/
<gchristensen>
samueldr: of course they should, but co's aren't paying for fastly to be technically correct
<samueldr>
:)
<exarkun>
when I put nixpkgs.pythonPackages.hypothesis in my propagatedBuildInputs and then nix-shell I get an environment where importing hypothesis fails because one of its dependencies is missing. meh?
<gchristensen>
rmra: fwiw the binary cache sees hundreds of millions of requests each month, and out of that, about 0.00015% of the requests fail
erasmas has joined #nixos
<xdxd>
i see from the configureFlags that sqlite lib path that is passed has no .a files
<gchristensen>
every system will periodically have problems, so seeing an individual error / timeout is not so concerning. of course, systemic and common problems like timeouts we do want to fix them and improve. it sucks to have the cache requests fail
<xdxd>
--extra-lib-dirs=/nix/store/37k4jrrivhqhj8b0ibnxksy7ywyiqnra-sqlite-3.28.0/lib has no static libs ..
<rmra>
gchristensen: well, of course i can do some "hacks" and survive, but maybe there are more than a few people having to do soma "hacks".
dkibi has quit [Quit: leaving]
dkibi has joined #nixos
<andi->
gchristensen: do you have some pointers towards what the issue in broken router is? IN my case I have standard linux connected to a "standard" cisco router connected to the peering router of fastly..
<andi->
no firewalling anywhere on that route, mtu of 9000 within my network, 1500 all the way
Drakonis has joined #nixos
<xdxd>
going to pray that nh2 comes here to help me :)
<nh2[m]>
xdxd: one moment currently a bit busy :)
<nh2[m]>
xdxd: is it urgent or could we discuss it tomorrow?
<xdxd>
whenever you have time i am going to open an issue :)
<eacameron>
I figured it out. I had an invalid setting for services.xserver.monitorSection.
pamplemo1sse has joined #nixos
englishm has quit [Excess Flood]
<MarcWeber>
I tried compiling pagetools, libnetpbm.so is searched, butonly .so.11 and .so.11.82 are in lib/*
<MarcWeber>
how does ld know what version to look for?
englishm has joined #nixos
englishm has quit [Excess Flood]
<clever>
MarcWeber: there should be a libnetpbm.so symlink
Ariakenom has quit [Quit: Leaving]
<MarcWeber>
So I should file a bug report against packaging of netpbm then ?
<clever>
probably
englishm has joined #nixos
englishm has quit [Excess Flood]
englishm has joined #nixos
stepcut has quit [Remote host closed the connection]
Denommus has joined #nixos
stepcut has joined #nixos
<Denommus>
I thought about an heresy today
<Denommus>
can I compile a Debian package using nix?
<xdxd>
probably with enough effort
selfsymmetric-pa has quit [Remote host closed the connection]
stepcut has quit [Ping timeout: 246 seconds]
xdxd61 has joined #nixos
<{^_^}>
[nixpkgs] @WilliButz opened pull request #65088 → prometheus-nginx-exporter: switch to official version & general prometheus-exporters cleanup → https://git.io/fjMkF
<clever>
Denommus: this will unpack all of the .deb packages in a vm, and then compile the package against them, all in a nix sandbox
anhduy has joined #nixos
xdxd has quit [Ping timeout: 260 seconds]
wfranzini has quit [Remote host closed the connection]
orivej has joined #nixos
ericsagnes has joined #nixos
andi- has quit [Remote host closed the connection]
andi- has joined #nixos
ericsagnes has quit [Ping timeout: 268 seconds]
ubert has quit [Remote host closed the connection]
andi- has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
andi- has joined #nixos
o1lo01ol1o has joined #nixos
hedgie has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
andi- has quit [Client Quit]
andi- has joined #nixos
polman has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
polman has joined #nixos
<thoughtpolice>
gchristensen: Mmm, sucks to hear about the IPv6 timeout thing; I can't say I've heard of anything about it on my end, but could ask around. For us it's entirely possible for some issues to appear like noise to us unless we get reports, I think...
<gchristensen>
thoughtpolice: ipv6 and timeouts are separate
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
selfsymmetric-pa has joined #nixos
Drakonis has quit [Quit: WeeChat 2.4]
ericsagnes has joined #nixos
zupo has joined #nixos
Drakonis has joined #nixos
Guest37009 is now known as fgaz
ericsagnes has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @PsyanticY opened pull request #65089 → Add dropPrivileges options for vault module → https://git.io/fjMIM
drakonis2 has quit [Ping timeout: 245 seconds]
selfsymmetric-pa has quit [Remote host closed the connection]
Drakonis has quit [Read error: Connection reset by peer]
judson has joined #nixos
drakonis_ has joined #nixos
srid6390803 has quit [Ping timeout: 245 seconds]
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
r937 has joined #nixos
selfsymmetric-pa has joined #nixos
<ar>
/24
shomodj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<r937>
hi, everyone! need help with vmware-guest. i'm using services.vmwareGuest.enabled = true; , but have `virtualization.vmware.guest.enabled` doesn't exit on nixos-rebuild. didn't find solution on the web
fusion809 has quit [Remote host closed the connection]
ng0 has joined #nixos
andi- has quit [Remote host closed the connection]
selfsymmetric-pa has quit [Remote host closed the connection]
andi- has joined #nixos
andi- has quit [Client Quit]
drakonis_ has quit [Ping timeout: 264 seconds]
jackdk has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @anderslundstedt opened pull request #65092 → Add spotifyd package and service → https://git.io/fjML4
andi- has quit [Client Quit]
<magnetophon>
Any magit or hub users here with a nicely scripted PR workflow? (say I have a list of commits against unstable, that I want to each do a PR for against master)
andi- has joined #nixos
andi- has quit [Client Quit]
srid6390803 has joined #nixos
andi- has joined #nixos
ericsagnes has quit [Ping timeout: 245 seconds]
rmra has quit [Quit: leaving]
magnetophon1 has joined #nixos
magnetophon has quit [Ping timeout: 245 seconds]
magnetophon1 has left #nixos [#nixos]
magnetophon1 has joined #nixos
magnetophon1 is now known as magnetophon
wfranzini has joined #nixos
<magnetophon>
Does anyone have a nicely scripted way of doing PR's, say using hub or magit? (I have a bunch of commits against unstable that I want to PR against master)
vmandela has quit [Quit: Leaving]
Thra11 has quit [Ping timeout: 258 seconds]
r937 has quit [Remote host closed the connection]
fresheyeball has quit [Quit: WeeChat 2.4]
fusion809 has joined #nixos
fusion809 has quit [Remote host closed the connection]
shomodj has joined #nixos
wildtrees has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
<mkaito>
magnetophon: sounds like what you actually want is git send-email, but these modern folks don't like that :P
<rfold>
I download nixpkgs with fetchTarball: import (fetchTarball { ... }). I then want to set an overlay: import (fetchTarball { ... }) { overlays = [mozilla]; } but this gives an infinite recursion error. I tried it with different overlays and all give the same error. "infinite recursion encountered, at undefined position"
<hpfr[m]>
If you’re on a single (super)user nixos setup, how do you decide which packages to install in the user environment and which to install system wide? I was originally doing everything systemwide, but I might move stuff to the user environment so I can use home-manager
rsoeldner has quit [Ping timeout: 250 seconds]
<lambda-11235>
I'm trying to make a derivation for taisei (see above link). But, I'm getting a strange error from meson about not being able to execute a python script (given after code).
<lambda-11235>
Every script uses `#!/usr/bin/env python3` so it's not that. Any ideas what else could cause this?
<ornx>
i try to have as little in the system environment as possible
<ornx>
i only put stuff there when it doesnt seem to work without it
<{^_^}>
[nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/fjMYH
<hpfr[m]>
ornx: makes sense. Might be a stupid question but can you use sudo with packages in your user environment
<ornx>
i dont use sudo but i dont see why not
<ornx>
it might not work with sudo -l but i think regular sudo preserves your environment
<hpfr[m]>
I’m thinking for stuff like sudo nvim /etc/nixos/configuration.nix
<ornx>
oh, wait a second, sudo -l isnt su -l, nevermind
<ornx>
but yes sudo works with user packages
<clever>
hpfr[m]: you want sudoedit, not sudo vim
<clever>
hpfr[m]: `sudo vim` causes root to own vim files in your $HOME, which then breaks using vim without sudo
<hpfr[m]>
That would only be the case when making a new file with sudo vim tho right
wfranzini has quit [Remote host closed the connection]
<clever>
hpfr[m]: i believe so
<hpfr[m]>
However that does seem very useful as it’s editor agnostic, thanks for the tip still pretty new to Linux in general
<clever>
sudoedit will obey whatever you set $EDITOR to
wfranzini has joined #nixos
<hpfr[m]>
Yeah, and it runs the editor itself as the user so you still have configs, it just modifies the file as root from what I can tell
<hpfr[m]>
Definitely more unix than running the whole program as root
<clever>
yep
<clever>
you could even configure sudo to only allow editing certain files, and not allow running things as user X
<clever>
but at that point, just use chmod/chown :P
<eraserhd>
OK, so if you are supposed to use super.callPackage in an overlay, and you are supposed to use dependencies from self in an overlay, does that mean you should explicity specify all dependencies?
<clever>
eraserhd: ive always prefered using self.callPackage
<eraserhd>
clever: cool. There's no magic way that callPackage finds dependencies, so super.callPackage supplies packages from super, right?
<clever>
thats my guess
ym555_ has quit [Ping timeout: 246 seconds]
dsx has quit [Quit: dsx]
hoijui has joined #nixos
dsx has joined #nixos
shomodj has joined #nixos
Thra11 has quit [Quit: WeeChat 2.5]
GiGa has joined #nixos
GiGa has joined #nixos
GiGa has quit [Changing host]
ym555_ has joined #nixos
ambro718 has quit [Ping timeout: 246 seconds]
rmra has left #nixos ["Killed buffer"]
<eraserhd>
OK, is there a way to tell mkDerivation that an attribute shouldn't be sent to the builder? E.g. for an overridable `configure` set?
linarcx has quit [Quit: WeeChat 2.5]
<symphorien>
passtrhu
<eraserhd>
symphorien: I saw this, but that means I'd have to do `foo.override { passthru = { configure = { ...; }; }; }`
<symphorien>
overrideAttrs, ratjer
<symphorien>
*rather
<symphorien>
You can also do (foo // { bar = ... ; })
<symphorien>
Derivations are also regular attribute sets
<clever>
passthru will persist thru .overrideAttrs
<clever>
// wont
abathur has joined #nixos
<eraserhd>
I'm going for something where I can just say `foo.override { configure = ...; };`... this doesn't seem to be getting me there.
<eraserhd>
Perhaps that's not the right way to do it?
<eraserhd>
(I see this pattern on weechat and vim.)
civodul has joined #nixos
<clever>
eraserhd: that wont be passed to mkDerivation at all
<clever>
.override changes the params on line 1, where you put { stdenv }:
<eraserhd>
wait, I can just put `configure ? {}` there?
<clever>
yes
<clever>
thats just defining a function
drakonis_ has joined #nixos
* eraserhd
facepalms
<alexarice[m]>
does nix have ordered pairs?
<vaibhavsagar>
alexarice: not AFAIK
jakkn has quit [Ping timeout: 258 seconds]
<vaibhavsagar>
you can have a list of attribute sets
<vaibhavsagar>
but AFAICT Nix doesn't have pairs
Thra11 has joined #nixos
<alexarice[m]>
vaibhavsagar: that might be my best bet
<alexarice[m]>
thank
<Thra11>
What determines the order in which binary caches are queried?
hoijui has quit [Ping timeout: 264 seconds]
moet has joined #nixos
<clever>
Thra11: there is a nix-cache-info file in the root, that sets the priority
<Thra11>
So I could tweak the priority of a cache if I run it, but I can't change the priority of caches which other people provide?
<clever>
Thra11: correct
<clever>
Thra11: cache.nixos.org is 40, hydra defaults to 100, so nix will prefer using cache.nixos.org when possible
<Thra11>
What about ssh:// substituters?
Drakonis has joined #nixos
srid6390803 has quit [Ping timeout: 245 seconds]
<clever>
Thra11: http:// caches default to 50, the base class for all stores defaults to 0, and ssh doesnt override the default, so its 0, the highest priority
<spacekookie>
When I install `twemoji-color-font` I only get black and white emoji in `font-manager`. Anyone got an idea why that is?
<infinisil>
alexarice[m]: Well you can just use `{ fst = "hello"; snd = 10; }`
<Thra11>
clever, tilpner: Cool. Thanks!
shomodj_ has joined #nixos
shomodj has quit [Ping timeout: 268 seconds]
mexisme has joined #nixos
mix has joined #nixos
moet has quit [Ping timeout: 245 seconds]
mix has quit [Read error: Connection reset by peer]
wfranzini has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
selfsymmetric-pa has quit [Remote host closed the connection]
xkapastel has quit [Quit: Connection closed for inactivity]
mac10688 has joined #nixos
<mac10688>
Man it's amazing how many packages are in nixos
srid6390803 has joined #nixos
noonien has quit [Quit: Connection closed for inactivity]
rsoeldner has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @bjornfor pushed 2 commits to release-19.03: https://git.io/fjMOH
mexisme has quit [Ping timeout: 264 seconds]
m0rphism has quit [Ping timeout: 246 seconds]
rsoeldner has joined #nixos
MmeQuignon has quit [Quit: WeeChat 2.4]
<ornx>
has anyone ever gotten xpra to work in nixos? it is completely broken for me, it complains about no screens found and cant load the dummy video output driver
<ornx>
i get a different error now though, it just complains about no screens
ym555_ has joined #nixos
wfranzini has joined #nixos
Shouou has joined #nixos
<simukis_>
How would I tell nix to place/unpack the source into a particular directory when building derivation?
virus_dave has joined #nixos
<clever>
simukis_: it always unpacks it to $NIX_BUILD_TOP, and then sets $sourceRoot to the path relative to that, and then cd's into the dir
<clever>
simukis_: how different do you need things to be?
<lassulus>
I got xpra to work. But only as root
<ornx>
did you have to do anything special to get it to run as root?
<ornx>
or did you just su; xpra ...
<simukis_>
clever: I want it to create a few directories in `$NIX_BUILD_TOP` and unpack the source into one of those.
<clever>
simukis_: you may need to override the unpackPhase, or use pre/post unpack to tweak things
<simukis_>
Okay. That what I was thinking I’ll have to do.
ym555_ has quit [Ping timeout: 272 seconds]
<lassulus>
ornx: oof, not sure anymore, but maybe i enabled the xpra display-manager and logged in as root
<ornx>
ah, i see
virus_dave has quit [Quit: virus_dave]
ym555_ has joined #nixos
shibboleth has quit [Quit: shibboleth]
Rusty1 has joined #nixos
<ornx>
so, i have services.xserver.modules = [pkgs.xorg.xf86videodummy]; but when i run X it tells me where its modules directory is and i dont see dummy_drv.so anywhere in it
fendor has joined #nixos
judson has quit [Ping timeout: 268 seconds]
<clever>
ornx: find the main config file for X (read the display manager config) and then look for ModulePath in there
<jcrd>
adisbladis: the description of the powerManagement.cpuFreqGovernor option says performance is the kernel default, but the tlp docs say powersave is the default...
<jcrd>
i used extraConfig to specify the CPU_SCALING_GOVERNOR... tlp options manually and that worked
<adisbladis>
jcrd: On any modern intel machine you probably want performance always
mix has joined #nixos
fendor has quit [Read error: Connection reset by peer]
orivej has joined #nixos
Shouou has quit [Ping timeout: 252 seconds]
<jcrd>
adisbladis: this is a t430s so i'm hoping to squeeze all the battery life that i can out of it
<infinisil>
Lua 5.2 seems to be the default lua for some reason in general
<infinisil>
> lua.version
<{^_^}>
"5.2.4"
Netsu has joined #nixos
MrDSmith has joined #nixos
<Netsu>
Hello there. Trying to run sh script during buildPhase, but found that there's no /user/bin/env here, /bin/sh only. On other hand, AFAIK, NixOS does not have /bin/sh, /user/bin/env only. Which shebang should I use?
<jcrd>
can override and overrideAttrs be used together?
<ornx>
when i rebuild a package with nix-env it always rebuilds the entire thing from scratch, is there a way to rebuild a package in a way that only rebuilds files that have been changed?
<infinisil>
It's one of the things nix has to do to ensure pure builds
<infinisil>
ornx: I suggest doing fast iterations in a nix-shell instead
<ornx>
im kind of surprised, what do nix package maintainers do when they want to get a large package working in nix? do they just wait for the whole thing to build every time?
<ornx>
ahh
<infinisil>
Yeah so for the nixpkgs package hello it would be `nix-shell -A hello`, then `unpackPhase && cd $sourceRoot && patchPhase && configurePhase`
<infinisil>
Then call buildPhase many times until you know what you want
<infinisil>
Then fix the nix expression and build it with nix-build
<ornx>
thank you very much that was very helpful! i will try that
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
mbrgm_ has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
kraem has quit [Read error: Connection reset by peer]
kraem has joined #nixos
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm_ is now known as mbrgm
___laika has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @worldofpeace pushed to master « nixos/xdg: default portal from xserver.enable »: https://git.io/fjMsk
<alienpirate5>
I'm having trouble cross-compiling libasyncns to armv7l
<alienpirate5>
I'm consistently getting the following error message:
<alienpirate5>
```
day|flip has joined #nixos
kraem has quit [Read error: Connection reset by peer]