<{^_^}>
[nixpkgs] @knedlsepp opened pull request #37354 → pythonPackages.notebook: fix darwin build → https://git.io/vx3DL
ashkitten1 is now known as ashkitten
Lisanna has joined #nixos
testuser has quit [Ping timeout: 240 seconds]
Lisanna has quit [Quit: Lisanna]
<dsop>
i am getting nix-shell requires a single derivation when trying to run a nix-shell
<dsop>
i can't find much about that error
<rawtaz>
dsop: i have no idea but it sounds like it's getting two results from expressions rather than one?
mudri has quit [Ping timeout: 240 seconds]
nD5Xjz has joined #nixos
testuser has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nD5Xjz has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Quit: Leaving]
tos9_ has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
tos9 has quit [Ping timeout: 240 seconds]
tos9_ is now known as tos9
nuncanada has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
srdqty has quit [Quit: WeeChat 1.9.1]
<{^_^}>
[nixpkgs] @peterhoeg pushed to master « qscintilla: fix build on darwin »: https://git.io/vx3SV
aarvar has quit [Ping timeout: 256 seconds]
pkill9 has quit [Ping timeout: 240 seconds]
<manveru>
spotify is broken on nixpkgs-unstable?
<manveru>
can't download it anymore
zearen has quit [Ping timeout: 240 seconds]
<srid>
my grub menu no longer shows up, and nixos boots immediately after bios screen. is there a way to fix this? i have dual boot to windows
thc202 has quit [Ping timeout: 248 seconds]
kblobr has quit [Ping timeout: 246 seconds]
<ottidmes>
srid: Maybe set boot.loader.timeout = 3; (for example), don't know what else causes this behavior
nD5Xjz has joined #nixos
zearen has joined #nixos
kblobr has joined #nixos
Mateon1 has quit [Ping timeout: 260 seconds]
nD5Xjz has quit [Ping timeout: 240 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
Argh, stupid nmap, seemed to work as regular user, did not work on LAN, checked manual, fixed, and now it works as a regular user, but no longer works as root with same arguments
dnovosel has joined #nixos
<ottidmes>
Luckily setting --unprivileged works
alhariel has joined #nixos
<alhariel>
im using xfce+xmonad and my multimedia keys are not automagically working correctly
<alhariel>
the +vol and -vol keys do nothing at all, the mute key shows a notification of toggling mute but has no effect on the audio itself
<alhariel>
the brightness keys work correctly
<manveru>
jtojnar: seems like networkmanager on nixpkgs-unstable is also broken
spear2 has joined #nixos
<ottidmes>
alhariel: I am on xfce+bspwm and I use a hotkey daemon for those, not sure if there is anything in xfce to handle those things
nD5Xjz has joined #nixos
<_null_>
is there a way to override the buildInputs on a derivation? It seems (though I can be wrong) that overrideDerivation just appends instead
hiroshi- has joined #nixos
<_null_>
Alternatively, is there a trivial/minimal package in nixpkgs that's empty? since that would also work
<_null_>
maybe I'm just wrong and screwed something up with my build before cause it's certainly not hitting the cache
logzet has quit [Remote host closed the connection]
<ottidmes>
_null_: I have never actually overridden a derivation like that, although I have been using NixOS long enough, but why do you expect to hit the cache when changing build inputs?
mk-fg has quit [Ping timeout: 246 seconds]
<alhariel>
ottidmes: ill probably just set the hotkeys in the xmonad config
<_null_>
I mean, I was changing the build inputs, so if I had been correct and they were appending, I *would* have hit the cache since it wouldn't have changed the build inputs (since it would have appended [] instead of setting it to [])
pkill9 has joined #nixos
<alhariel>
im just not sure what to do with the notifications tho
<_null_>
so yeah I'm wrong and there's a different factor here.
<_null_>
It's just for fun, but someone on an older version managed to make a 1.2MB docker image with redis, and I can't reproduce it, since there's a glibc depedency sneaking in. I thought it was from the lua buildInput since that's the only new thing since that version of nixpkgs besides redis changes. So it's due to something different in redis
<_null_>
Yeah, I couldn't find that, so I wasn't sure
<_null_>
Yeah I guess it is but it feels weird because I would think names would be a huge problem
<gchristensen>
names?
Mateon2 has joined #nixos
nD5Xjz has joined #nixos
srjek_ has joined #nixos
<_null_>
okay, so I'd imagine most references are going to be ${app1}/bin/app1
<_null_>
and there doesn't seem to be a hacky way to use ${app2}/bin/app2
<_null_>
Maybe I should just debug the glibc reference instead
srjek|home has quit [Ping timeout: 265 seconds]
nD5Xjz has quit [Ping timeout: 265 seconds]
zearen has joined #nixos
n0qqe has joined #nixos
noqqe has quit [Ping timeout: 260 seconds]
n0qqe is now known as noqqe
lord| has quit [Ping timeout: 256 seconds]
tnks has joined #nixos
<tnks>
I've never thought much about this, but how does man find the manpages installed by Nix? I don't see a MANPATH set.
<ottidmes>
tnks: Check `man man`, it points to the man_db.conf file in the nix store that contains the configuration where it is going to look for manpages
<tnks>
ottidmes: hmm... I think for my Debian+Nix setup, it's something else.
<tnks>
I think man derives the path from PATH.
<ottidmes>
tnks: Or less in-depth, you could run `manpath` and it will show the default path, which is /run/current-system/sw/share/man
<tnks>
ottidmes: but you're right. I found it in `man man`: By default, man uses manpath derived code to determine the path to search.
<tnks>
I was curious where the man pages are for the new "nix" command.
<tnks>
I think the --help message might point to something that doesn't exist yet.
nD5Xjz has joined #nixos
<ottidmes>
tnks: As far as I know the manpage of the new nix command is not out yet
<tnks>
ottidmes: okay, good to know.
<ottidmes>
tnks: The --help of nix is pretty good though, together with the nix manual, at least for now
<ottidmes>
I am off to sleep now, goodnight
<tnks>
it's good enough to dink around with... but there's so much not there.
<tnks>
part of me is grateful for the work done... but another part of me feels that it's not good to "release" something without at least finishing documentation.
pkill9 has quit [Ping timeout: 260 seconds]
lverns has quit [Ping timeout: 240 seconds]
nD5Xjz has quit [Ping timeout: 264 seconds]
nuncanada has joined #nixos
ottidmes has quit [Ping timeout: 240 seconds]
owickstrom has quit [Remote host closed the connection]
owickstrom has joined #nixos
nD5Xjz has joined #nixos
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm has joined #nixos
rardiol1 has quit [Remote host closed the connection]
lord| has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
krey has joined #nixos
zearen has quit [Ping timeout: 260 seconds]
<krey>
this change I've been waiting for has been merged into NixOS master. How can I get it? I added the nixpkgs channel, updated channels, but it doesn't seem to be working
nD5Xjz has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
aarvar has joined #nixos
<alhariel>
so, ive basically just set services.mpd.enable = true and defined some audio_outputs in services.mpd.extraConfig
Supersonic112 is now known as Supersonic
markus1189 has joined #nixos
<alhariel>
so with the default music dir being /var/lib/mpd/music, how am i supposed to modify it, given that even tho my user is in mpd group, theres only read permission for group
<krey>
dsop: I'm not sure how to exactly answer that question
<krey>
dsop: most of my packages are from 17.09, some from nixos-unstable
<dsop>
ah okay
<krey>
dsop: what do you mean?
dnovosel has quit [Ping timeout: 240 seconds]
alhariel has quit [Quit: Leaving]
nD5Xjz has quit [Ping timeout: 264 seconds]
tos9 has left #nixos [#nixos]
<dsop>
krey: ah sorry i misread, i don't think i can help you, sorry. maybe someone else can
nD5Xjz has joined #nixos
<krey>
can someone explain why we need to supply sha256 hashes for fetchFromGitHub?
nD5Xjz has quit [Ping timeout: 240 seconds]
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
aw has joined #nixos
spacefrogg has joined #nixos
nuncanada has quit [Quit: Leaving]
mk-fg has quit [Ping timeout: 252 seconds]
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
nD5Xjz has joined #nixos
<infinisil>
krey: for purity and security the nix sandbox only allows network access for things you know the hash of already
<infinisil>
Which is called a fixed-output derivation
otulp has quit [Ping timeout: 240 seconds]
<krey>
infinisil: seems like purity is already ensured by the rev, argument, no?
nD5Xjz has quit [Ping timeout: 240 seconds]
<krey>
infinisil: and security... something something https?
<infinisil>
krey: nope, the rev argument gets just translated to an url, what the web server serves there could change tomorrow
<infinisil>
krey: security because you know that the content will not change. Review it once and you can trust it forever (until you update it and the hash changes)
<krey>
infinisil: yeah, that makes sense
<adisbladis[m]>
krey: What infinisil said :) Also some projects re-tag the same release -.-
<adisbladis[m]>
krey: And having checksums sort of makes TLS or not a moot point. Sure, it's still good for privacy but we don't want to rely on the transport layer for integrity checks.
<{^_^}>
[nixpkgs] @volth opened pull request #37356 → gephi: build from sources → https://git.io/vx3d9
<{^_^}>
[nixpkgs] @volth opened pull request #37357 → jogl: init at 2.3.2 → https://git.io/vx3dQ
nD5Xjz has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
eliaslfox has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #37359 → lib: Split Darwin into macOS and iOS → https://git.io/vx3bY
nD5Xjz has quit [Ping timeout: 264 seconds]
eliaslfox has joined #nixos
krey has quit [Ping timeout: 240 seconds]
sigmundv has quit [Ping timeout: 260 seconds]
nD5Xjz has joined #nixos
kerrhau has quit [Ping timeout: 260 seconds]
eliaslfox has quit [Read error: Connection reset by peer]
kerrhau has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
nD5Xjz has quit [Ping timeout: 264 seconds]
schoppenhauer has quit [Ping timeout: 240 seconds]
schoppenhauer has joined #nixos
eliaslfox has joined #nixos
<fearlessKim[m]>
what's the canonical way to disable a package depending on a condition ? like I want to disable a package if its dependency is on certain version of a buildInput
Fare has joined #nixos
zzamboni has joined #nixos
rauno has quit [Ping timeout: 256 seconds]
leat has quit [Ping timeout: 260 seconds]
nD5Xjz has joined #nixos
<fearlessKim[m]>
nevermind, I got a fix I think
abathur has joined #nixos
nD5Xjz has quit [Ping timeout: 260 seconds]
spear2 has quit [Quit: Leaving]
leat has joined #nixos
<dsop>
I see a package (vscode) on nixpkgs for weeks but i don't find it in nix-env despite being on unstable, any idea why?
_null_ has quit [Ping timeout: 240 seconds]
blankhart has quit [Read error: Connection reset by peer]
<{^_^}>
→ 75491184 by @badi: unifi: 5.6.30 -> 5.6.36
<{^_^}>
→ 4fe3edd7 by @peterhoeg: Merge pull request #37351 from badi/unifi
blankhart has joined #nixos
nD5Xjz has joined #nixos
nD5Xjz has quit [Ping timeout: 240 seconds]
obadz has quit [Ping timeout: 260 seconds]
obadz has joined #nixos
<elvishjerricco>
dsop: nixpkgs has vscode. What have you tried?
nD5Xjz has joined #nixos
nD5Xjz has quit [Ping timeout: 260 seconds]
zzamboni has quit [Quit: Leaving.]
MercurialAlchemi has joined #nixos
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
<fearlessKim[m]>
dsop nix search vscode should give you the path
Guanin has quit [Ping timeout: 246 seconds]
gerschtli has joined #nixos
ma27 has joined #nixos
Guanin has joined #nixos
gerschtli has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
newhoggy_ has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
ma27 has quit [Ping timeout: 240 seconds]
newhoggy has quit [Ping timeout: 240 seconds]
nD5Xjz has joined #nixos
newhoggy_ has quit [Ping timeout: 276 seconds]
muzzy has quit [Read error: Connection reset by peer]
nD5Xjz has quit [Ping timeout: 246 seconds]
<adisbladis[m]>
dsop: Because vscode is non-free maybe?
zzamboni has joined #nixos
<dsop>
elvishjerricco: i tried nix-env -qa 'vscode.*' doesn't show up. I tried nix-env -qa | grep vscode and niether there
<dsop>
elvishjerricco: so i was wondering how it should be installed
<dsop>
it also doesn't show up in the search on the nixos.org website
MichaelRaskin has left #nixos [#nixos]
<etu>
dsop: Yeah, the website doesn't show unfree stuff either
zzamboni has quit [Client Quit]
peterzky has quit [Quit: WeeChat 2.0]
<fearlessKim[m]>
running ./dev-shell from nixops master with nixos-unstable `while evaluating the attribute 'src' of the derivation 'nixops-tarball-1.6pre0_abcdef' at /home/teto/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:148:11:
<fearlessKim[m]>
Nix daemon out of memory` :S any idea? I just freed 40Gb from drive
boomshroom-away has quit [Ping timeout: 260 seconds]
<etu[m]>
Memory, not disk
<adisbladis[m]>
dsop: Vscode is unfree (and unfree packages are hidden from searches by default)
nD5Xjz has joined #nixos
aarvar has quit [Ping timeout: 256 seconds]
pie_ has quit [Ping timeout: 240 seconds]
nD5Xjz has quit [Ping timeout: 240 seconds]
<fearlessKim[m]>
etu: nix has become greedy, I never had any problem running this command before, I have 3G available according to free -m
orivej has quit [Ping timeout: 264 seconds]
nD5Xjz has joined #nixos
alex`` has joined #nixos
nD5Xjz has quit [Ping timeout: 256 seconds]
<fearlessKim[m]>
even with 6Go it can't ./dev-shell nixops :'(
_null_ has quit [Ping timeout: 264 seconds]
reinzelmann has joined #nixos
<elvishjerricco>
fearlessKim[m]: That sounds like something else. There's no way it needs more than 6Gb
rauno has quit [Ping timeout: 256 seconds]
<fearlessKim[m]>
tried setting everything on master and disabled overlay without success. I wonder if it's due to https://github.com/NixOS/nix/issues/1969. I have nix.package = nixUnstable. I will rebuild without that
<adisbladis[m]>
fearlessKim: You could try playing around with the environment variable GC_MAXIMUM_HEAP_SIZE
<adisbladis[m]>
Set it to something huge like 10G :P
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vxsTC
<{^_^}>
→ 1d93c684 by @ryantm: libwebsockets: 2.4.1 -> 2.4.2
<{^_^}>
→ 00e7b063 by @matthewbauer: Merge pull request #37055 from ryantm/auto-update/libwebsockets
robstr has joined #nixos
nD5Xjz has joined #nixos
chocopuff has quit [Quit: WeeChat 2.0.1]
nD5Xjz has quit [Ping timeout: 256 seconds]
mounty has quit [Ping timeout: 240 seconds]
ixxie has joined #nixos
__Sander__ has joined #nixos
paraseba has quit [Ping timeout: 252 seconds]
<Profpatsch>
joepie91: Well, apparently every nwjs 0.x version is a breaking change.
<Profpatsch>
So between 0.9 and 0.23 there have been 14 breaking changes.
periklis has joined #nixos
<Profpatsch>
And upstream is at 0.29 already, this was a PR from mit 2017 :)
<Profpatsch>
s/mit/mid/
<joepie91>
ahhh
<joepie91>
right
nD5Xjz has joined #nixos
<Profpatsch>
They even changed the name in the meantime.
<Profpatsch>
I’m not sure why I even PRed that, since a Chromium with broken sandboxing and nodejs is a hideous idea that should never have happened.
MP2E has quit [Remote host closed the connection]
mounty has joined #nixos
<vaibhavsagar>
but semantic versioning was supposed to solve all the problems and also make me breakfast in the morning
<joepie91>
Profpatsch: heh, I have Opinions about this
<vaibhavsagar>
where did we go wrong
<joepie91>
vaibhavsagar: I mean, technically speaking, anything under 1.x has no stability guarantees, so... :P
<Profpatsch>
joepie91: Opinions? Hear, hear!
<vaibhavsagar>
the fact that this is officially sanctioned behaviour makes my point for me
<joepie91>
vaibhavsagar: ?
<Profpatsch>
vaibhavsagar: The project also uses patch versions, so that’s normal semantic versioning.
<Profpatsch>
They just like to make breaking changes, like, a lot.
<bkolera>
I don't suppose that many nixos issues come in as jsfiddles, but does anyone here know anything about how firefox and chromium guess mime types and have solutions for these shenanigans? Worth a github nixpkgs ticket? https://jsfiddle.net/q89vbo4q/31/
<joepie91>
Profpatsch: tl;dr the fact that Electron and NW.js exist is bad, but also indicative of a problem that a lot of people like to pretend doesn't exist, namely the horribleness of working with existing UI toolkits, and I understand why people choose to use Electron/NW.js and from a cost perspective it's a justifiable choice today
<joepie91>
Profpatsch: basically all parties are at fault here
<joepie91>
to some degree
<Profpatsch>
joepie91: Ah, right. Yes, there arguably is no better GUI toolkit than CSS/JS at the moment.
<joepie91>
Profpatsch: and this is extra annoying because any time I try to bring up the UI toolkit problem, the most rabid anti-NW.js/Electron people start getting angry at me, trying to convince me that current UI toolkits are fine and everybody else is just doing it wrong etc. etc. etc.
<Profpatsch>
And future toolkits will most likely build on e.g. Flexbox.
<joepie91>
there's just a total denial of the problem by almost everybody
<Mic92>
go 23
<joepie91>
result: Electron and NW.js remain a thing and no amount of "this stuff is bad" is going to change that
<{^_^}>
[nixpkgs] @dotlambda merged pull request #37363 → pythonPackages.thumbor: mark as broken under Python 3 → https://git.io/vxsen
<{^_^}>
→ d8c26c0d by @vaibhavsagar: pythonPackages.thumbor: mark as broken under Python 3
<{^_^}>
→ 67f2d3e2 by @dotlambda: Merge pull request #37363 from vaibhavsagar/break-thumbor-python3
<joepie91>
but those in the position to change it, refuse to accept that there is a problem to be solved...
<joepie91>
very frustrating :/
<Profpatsch>
joepie91: I really like Purescript for that reason.
<Profpatsch>
But did you know emacs is a pretty good GUI toolkit?
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @vaibhavsagar to release-18.03 « pythonPackages.thumbor: mark as broken under Python 3 »: https://git.io/vxsIV
<joepie91>
Profpatsch: insert strategic nonresponse here
<Profpatsch>
Especially for quick prototyping, Emacs is a perfect system.
<joepie91>
:p
<Profpatsch>
:)
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
jluttine has quit [Ping timeout: 264 seconds]
<joepie91>
Profpatsch: also, I'd argue that a good layout system would need to be based on not just flexbox but also CSS grids, and that a few performance issues with that remain to be solved
<joepie91>
namely, relatively speaking, layouting the way a browser does it is pretty expensive
<Profpatsch>
joepie91: Did you know that it’s hard even for Qt to render long lists?
<joepie91>
so ideally you'd want some small simplifications to take off the edge of the layout calculations
<Profpatsch>
The Tomahawk people had lots of problems with long playlists afaik.
<joepie91>
Profpatsch: oh yeah, I'm sure. it still boggles my mind how nobody seems to have optimized large elements beyond a few text editors and a few websites
<joepie91>
it's *not that difficult*
<Profpatsch>
When you do arbitrary mutations it pretty much is.
<joepie91>
a bit of viewport magic and cheating on size estimations should be enough to implement it performantly
<joepie91>
Profpatsch: 'perfect is the enemy of good' applies here :P
<Profpatsch>
Well, it’ll be really annoying if your users click the wrong elements all the time because your estimations are off by a few pixels.
<joepie91>
Profpatsch: example: if you're displaying a long list of items, then you don't want to actually calculate the height of each element in the list, but rather just the elements that are visible and those that can be scrolled to quickly; and then you want to make a simplified estimate of the total length of the entire list without actually calculating every other element
<joepie91>
Profpatsch: and if your scrollbar position ends up being off in such a way that the last pixel takes three scrolls to get to rather than two, well, oh well
testuser has quit [Quit: Leaving]
<joepie91>
once you implement simplifications like that, you can get it way more efficient, loading data and calculating stuff as it's accessed
<joepie91>
(I did a PoC of this a Long Time ago in HTML/CSS/JS)
<Profpatsch>
Better give your programmers an infinite list abstraction over that.
<joepie91>
(with a height and translation hack to make the positioning work out)
<Profpatsch>
Or you are in for a fun time.
<joepie91>
Profpatsch: how do you mean?
<Profpatsch>
Well, your model should not suffer from view optimizations down the line.
<Profpatsch>
I’d argue today’s paging of REST responses is a pretty clear sign of not enough abstraction.
PeterRomfeld[m] has quit [Ping timeout: 255 seconds]
ConorCurry[m] has quit [Ping timeout: 255 seconds]
Obscurity[m] has quit [Ping timeout: 255 seconds]
<Profpatsch>
Fuck me, you get a network request between every few elements.
<Profpatsch>
That’s the ultimate IO trap.
M-Dan has quit [Ping timeout: 255 seconds]
<Profpatsch>
But then again, POSIX has the same problem: man 2 recv
<joepie91>
I mean, there's necessarily going to be a tradeoff here
<joepie91>
either you send a lot of data or you send little data a lot
<joepie91>
inherent tradeoff, can't really solve that, no matter the situation
<joepie91>
other than trying to do your best guess at estimating the optimal amount of data to be sent
<Profpatsch>
Hm, it’s really the same problem as with other protocols.
midchildan[m] has quit [Ping timeout: 255 seconds]
<Profpatsch>
Can send length first of course.
<joepie91>
it applies even for things that don't go over the network
<joepie91>
see eg. IPC
jluttine has joined #nixos
M-Dan has joined #nixos
<Profpatsch>
Yeah, as I said recv from socket basically
<joepie91>
hell, 0mq has some pretty bizarre batching logic
<joepie91>
to work around this problem
<joepie91>
and even that is, afaik, just twiddling the sliders until it performs well
<joepie91>
weirdly, 0mq's batching logic apparently works *so* well that neither sending raw UDP packets nor writing your own batching logic is likely to outperform 0mq in sheer throughput
Neo-- has joined #nixos
<joepie91>
I should really read its implementation some day :P
<{^_^}>
→ 04c37137 by @catern: pythonPackages.requests-unixsocket: init at 0.1.5
<{^_^}>
→ 196b4863 by @dotlambda: Merge pull request #35056 from catern/master
nschoe has joined #nixos
rardiol1 has left #nixos [#nixos]
pkill9 has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixops] @AmineChikhaoui pushed to master « be more consistent with EC2 backend: don't raise exceptions if the user »: https://git.io/vxsOB
nuncanada has joined #nixos
periklis has quit [Ping timeout: 268 seconds]
mudri has quit [Ping timeout: 240 seconds]
<woffs>
tfc[m]: no idea yet. Just added nixos-17.09 as channel and run nix-serve with that channel with something like nix-shell -I nixpkgs=$HOME/.nix-defexpr/channels/nixos1709 -p nix-serve
<tfc[m]>
woffs: ok this is completely weird. i reinstalled `nix-serve` and now it accepts the secret key on the server side. client side still does not accepts the signatures, but this looks like a different kind of errir. i am closing the old and opening a new ticket.
<woffs>
Something different: how to run local nixos tests? I try to fix and debug quagga with "nix-build nixos/tests/quagga.nix" but it fails and "nixos/tests/networking.nix" also fails and I guess I do something wrong or an i3 is not enough to run those tests even with prolonged timeouts
<clever>
woffs: they are attributes of nixos/release.nix
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/vxs30
<{^_^}>
→ 80b8caf4 by @matthewbauer: opencolorio: fix on darwin
<{^_^}>
→ 4cc1cd85 by @matthewbauer: cmake-2.8: supports darwin
<{^_^}>
→ 397532de by @matthewbauer: openimageio: supports darwin
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<unlmtd>
neovim looks for every plugin in every individual store path ... the start time is horrible. is that the expected behavior?
<unlmtd>
im talking 3-5 seconds sometimes
testuser has joined #nixos
kerrhau has quit [Ping timeout: 248 seconds]
fl3 has joined #nixos
<YegorTimoshenko[>
how to disable hydra eval's restricted mode?
<sphalerite>
unlmtd: I don't have performance issues as a result of it, but it looks like mine does that too. You could probably work around it by wrapping all the plugins in a buildEnv
<woffs>
tfc[m]: don't know
<tfc[m]>
argh too bad. it looks like no one else on the internet ever had this problem
<{^_^}>
→ c9bbf071 by @y0no: pythonPackages.ipy: 0.74 -> 0.83
<{^_^}>
→ a15544d5 by @y0no: pythonPackages.ajpy: init at 0.0.2
<{^_^}>
→ c9366518 by @y0no: pythonPackages.cx_oracle: init at 6.1
flugsio has quit [Ping timeout: 264 seconds]
equalunique[m] has joined #nixos
flugsio has joined #nixos
<manveru>
i have a really weird fetchGit issue...
<unlmtd>
sphalerite: well then that might not be my main issue, but Im certain it doesnt make it start really fast
<unlmtd>
it just started today
<manveru>
`fetchGit { url = https://github.com/blakepettersson/jsonapi; ref = "wip"; rev = "2ffb1e5b41be7eec76e512dd7da4ac7b501f9086"; }` fails in a default.nix via `nix build`, but when i paste it into a `nix repl`, it fetches the repo and afterwards the default.nix also works...
<manveru>
how to debug? :)
<manveru>
i can reproduce it if i delete the ~/.cache/nix/git dir, but then i have to wait ages for all dependencies to be fetched again :|
<sphalerite>
unlmtd: if that's not the issue (which it may well be, depending on how many plugins you have, since it's O(n²)) then it's probably just one plugin. Maybe try "bisecting" to find out which one is the culprit. I'd recommend trying the buildEnv thing first though
herzmeister[m] has quit [Read error: Connection timed out]
<{^_^}>
[nixpkgs] @abbradar opened pull request #37369 → Move to libglvnd for OpenGL → https://git.io/vxsZq
herzmeister[m] has joined #nixos
<garbas>
hey! anybody knows how to choose an aws region when using -> nix copy --to src://<bucket> <installable>?
<woffs>
thanks clever, "nix-build nixos/release.nix -A tests.quagga" works a bit better, though not fully yet :)
<garbas>
i can only are able to upload to us-east-1
<{^_^}>
→ 7bb9d0bd by @ryantm: postfix: 3.2.5 -> 3.3.0
<{^_^}>
→ f38f3c28 by @dotlambda: Merge pull request #36674 from ryantm/auto-update/postfix
<unlmtd>
sphalerite: thanks for the tip, but I found my issue; the frame wasnt updating so I couldnt see the file content even thou it was already opened. I found out by hitting the refresh map quicly after start
<unlmtd>
probably because its remapped
<unlmtd>
the terminal is hell for those of us who dont use qwerty
<{^_^}>
→ 887e6302 by @volth: jogl: temporary workaround for openjdk8
<{^_^}>
→ 1e2eec16 by @volth: gephi: build from sources
mmlb has quit [Quit: Ping timeout (120 seconds)]
<unlmtd>
and qwerty is the worst keyboard, worst than plain alphabetical order ( I saw the tests for english). It was designed to spread out the most useful keys
<unlmtd>
to avoid jamming
mmlb has joined #nixos
<unlmtd>
another testament to man's lack of critical thinking .. follow the herd!
iyzsong has joined #nixos
<Aleksejs>
Hello, how do I restart network manager? I tried systemctl restart NetworkManager but keep getting "Failed to restart NetworkManager.service: Unit NetworkManager.service not found"
<etu[m]>
unlmtd: I've been on a swedish dvorak layout for 10+ years, I don't think the terminal is that bad just because of dvorak.
<kandinski>
where is the best place to ask for someone running nixos on a thinkpad x220 to share their model-specific tweaks? This is not cientific, but I feel like since I moved on from Ubuntu the fan is on all the time.
<{^_^}>
[nixpkgs] @ericsagnes opened pull request #37371 → pyschedule: init at 0.2.17 → https://git.io/vxsCH
<kandinski>
joepie91: ta very much. I'm still chasing too many things, and this comes in handy.
<joepie91>
:)
<joepie91>
also, suggestions for additions to that gist welcome, with the caveat that I do curate stuff, ie. it needs to be accurate / useful / high-quality / etc. :P
<{^_^}>
[nixpkgs] @ericsagnes opened pull request #37372 → Pyomo: init at 5.4.3 → https://git.io/vxsWh
<avn>
Folks, anyone experienced issues with microphone in chromium (on current nixos master)?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<rauno>
any idea how to debug it?
orivej has joined #nixos
<rauno>
okay, found the reason, patchPhase is overridden by some "sed" cmd, how can i still be able to invoke the original patching phase ?
<ottidmes>
rauno: you probably want to do prePatch or postPatch to do your own stuff while keeping the original patchPhase in place
MercurialAlchemi has joined #nixos
<rauno>
it was overidden by package original maintainer, so probably shouldn't change that
<ottidmes>
rauno: Or in your case change that customized patchPhase to be either the prePatch or postPatch, so the original is still called
<ottidmes>
rauno: I think it is OK to do so
<{^_^}>
[nixpkgs] @clefru opened pull request #37373 → Add space for NIX_CXXSTDLIB_COMPILE+=' ...' as NIX_CXXSTDLIB_COMPILE might not be empty. → https://git.io/vxs8T
<rauno>
hum okay, currenly i worked it around with patch -p1 in this custom patchPhase
<ottidmes>
rauno: That is a possibility, but I think it is considered better if you try and leverage the original patchPhase for this and change the customized of the original to pre/postPatch
xAFFE has joined #nixos
abathur has quit [Ping timeout: 264 seconds]
lord| has quit [Quit: WeeChat 2.0.1]
zzamboni has quit [Quit: Leaving.]
<fl3>
any ideas how I could trace from which nix file that neovim python package comes?
fendor has quit [Ping timeout: 264 seconds]
<garbas>
kandinski: joepie91: https://github.com/NixOS/nixos-hardware ... it is getting a lot of attentions lately. when i have time i will base my dotfiles on it
<fl3>
nix-shell -p 'python.withPackages(ps: with ps; [neovim])' - still cant get why its outdated in that nix-shell :(
<fl3>
garbas: its 0.2.3 in that file, while 0.1.13 in shell :(
<kandinski>
garbas, thanks for your dotfiles!
nD5Xjz has joined #nixos
nD5Xjz has quit [Client Quit]
nD5Xjz has joined #nixos
zzamboni has quit [Quit: Leaving.]
pkill9 has joined #nixos
zzamboni has joined #nixos
<fl3>
garbas: probably I need something more than nix-shell -p 'python.withPackages(ps: with ps; [neovim])' to get fresh python-neovim?
krey has joined #nixos
<garbas>
fl3: you want to use newest python-neovim in neovim or you want to develop it (eg. in nix-shell)?
xAFFE has quit [Quit: Gateway shutdown]
xAFFE has joined #nixos
xAFFE has quit [Client Quit]
xAFFE has joined #nixos
xAFFE has left #nixos [#nixos]
<fl3>
garbas: actually I just want to use neovim :) and trying to fix "INFO: nvim-python-neovim version: 0.1.13 (outdated; from /nix/store/sb1a7sjz5k49p1z5kvcvysm022cdhf5h-python-2.7.14-env/lib/python2.7/site-packages/neovim)"
zzamboni has quit [Quit: Leaving.]
freeman42x]NixOS has joined #nixos
xcmw has joined #nixos
<garbas>
fl3: there is no such things as "just using" :) everybody uses or prefers some setup of nix. the more info i know about your setup the better i can help you
<garbas>
fl3: nixos?
pie_ has joined #nixos
ma27 has joined #nixos
<fl3>
garbas: yes, I am trying to dig into it but run out of google keywords for googling :( I thought that "nix-shell -p 'python.withPackages(ps: with ps; [neovim])'" should gave the same version as inside neovim and is a bit more convinient to debug, its not true?
<garbas>
fl3: which channel are you following?
<garbas>
fl3: what you suggested wont work, since python-neovim is defined from within neovim expression
zzamboni has joined #nixos
<unlmtd>
etu: the h/j/k/l keys dont make sense without qwerty
<unlmtd>
remap those, then you have to remap everything
<srhb>
Is there a nice, generic way of fetching sources with .git intact, extracting certain information from it and then getting rid of it?
xAFFE has joined #nixos
<ij>
I'm compiling with master's ghc and haskellPackages.callPackage, but it doesn't see the 17.09 packages I've given to callPackage. Is it supposed to be that way?
pie_ has quit [Ping timeout: 255 seconds]
<etu[m]>
unlmtd: Well, I don't use those. (backward, forward, next, previous) C-b, C-f, C-n, C-p (beginning-of-line, end-of-line) C-a, C-e. Works in all the shells and default in Emacs ;)
<unlmtd>
yea iv learned all the emacs shortcuts without remap too
<unlmtd>
doesnt make sense to remap those
<fl3>
garbas: hmm, hmm, it seems that there is no neovim package in 17.09 pkgs/development/python-modules. It means I completely dont understand how nix works :(
ma27 has quit [Quit: WeeChat 2.0]
<unlmtd>
ironically, I think only the death of the keyboard will precipitate the death of qwerty
<etu[m]>
Bash has the same keybinds, pretty sure zsh does as well. I know that fish does.
zzamboni has quit [Ping timeout: 265 seconds]
<unlmtd>
yep, so does mksh
Fare has joined #nixos
ma27 has joined #nixos
<fl3>
ok, it was in python-packages.nix and it was 0.1.13. Thanks for help :|
<garbas>
fl3: in 18.03 (current master) it was moved from python-packages.nix
<joepie91>
garbas: added it to my gist btw
<garbas>
fl3: since i see you want to use the latest neovim and latest stable nixos you can only pick neovim from master
<{^_^}>
[nixpkgs] @tazjin opened pull request #37376 → mq-cli: init at 1.0.0 → https://git.io/vxsEY
xAFFE has quit [Quit: Gateway shutdown]
fendor_ has joined #nixos
xAFFE has joined #nixos
fendor has quit [Ping timeout: 256 seconds]
thefloweringash has joined #nixos
xAFFE has left #nixos [#nixos]
xcmw has quit [Ping timeout: 260 seconds]
xAFFE has joined #nixos
<gchristensen>
xAFFE: you ok?
testuser has joined #nixos
periklis has joined #nixos
<xAFFE>
slightly, sorry for the spam, I'm trying to setup automated nicksrv identification, but it does not seem to work
tkral has quit [Quit: Ping timeout (120 seconds)]
tkral has joined #nixos
<xAFFE>
will try that later and maybe leave all the channels :-)
fl3 has quit [Remote host closed the connection]
Arcaelyx has joined #nixos
tkral has quit [Client Quit]
tkral has joined #nixos
fl3 has joined #nixos
thefloweringash has quit [Remote host closed the connection]
Adluc has quit [Ping timeout: 246 seconds]
thefloweringash has joined #nixos
tkral has quit [Client Quit]
tkral has joined #nixos
snajpa has quit [Excess Flood]
dasblondegrauen has joined #nixos
snajpa has joined #nixos
srk has quit [Ping timeout: 264 seconds]
FareTower has joined #nixos
fl3 has quit [Remote host closed the connection]
tkral has quit [Quit: Ping timeout (120 seconds)]
fl3 has joined #nixos
coot has joined #nixos
dasblondegrauen has quit [Quit: Leaving]
Fare has quit [Ping timeout: 264 seconds]
rauno has quit [Remote host closed the connection]
snajpa has quit [Ping timeout: 276 seconds]
blankhart has quit [Read error: Connection reset by peer]
superusercode has joined #nixos
thefloweringash has quit [Ping timeout: 276 seconds]
blankhart has joined #nixos
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
ashgillman has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
<jtojnar>
anyone has any idea why would `find /tmp/tmp.raT2Kv3sQH -type l` take several minutes in NixOS test?
srk has joined #nixos
amiloradovsky[m] has joined #nixos
snajpa has joined #nixos
tkral has joined #nixos
<jtojnar>
the directory is not that big, maybe some problem with a virtual HDD?
<clever>
jtojnar: run it under "strace -f -c"
xcmw has joined #nixos
<clefru>
anybody familiar with packaging rust stuff here? I am hitting a problem with cargo, not being able to update git repo before build: https://pastebin.com/4uU7Ec1H
<clefru>
I have no clue what cargo is ...
nschoe has quit [Ping timeout: 255 seconds]
Adluc has joined #nixos
<fendor_>
did someone try to use haskell-ide-engine on nix? Everytime I start it, it tries to download a new ghc and fails since it is not using nix
FareTower has quit [Ping timeout: 256 seconds]
asuryawanshi has quit []
xcmw has quit [Ping timeout: 240 seconds]
blankhart has quit [Ping timeout: 240 seconds]
erasmas has joined #nixos
<{^_^}>
[nixpkgs] @xeji closed pull request #35564 → qemu: add optional virglrenderer and opengl support → https://git.io/vArLQ
asuryawanshi has joined #nixos
Lisanna has joined #nixos
<Lisanna>
omfg, I've been writing too much nix code
<Lisanna>
I can't write python anymore, at all
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<joepie91>
lol
<joepie91>
Lisanna: careful, in a week you'll have written a Nix-to-Python transpiler
<Lisanna>
):
<Lisanna>
everything is stateful
<Lisanna>
I can't even
<Lisanna>
(nix is my first functional language... which really really sucks, since now I can't use any imperative languages at all without getting an upset stomach)
<joepie91>
Lisanna: fwiw, I find JS to be pretty decent for writing stateless code :P it's not strictly a functional language but it does pretty well
<joepie91>
from what I recall of Python, not having used it for a while now, I suspect it's quite a bit harder there
<fendor_>
would still prefer elm if it is possible
<{^_^}>
→ 2956cc87 by @srhb: haskellPackages.ghcWithPackages: Wrap haddock with GHC lib dir
srk has quit [Remote host closed the connection]
<{^_^}>
→ 81da63f0 by @grahamc: Merge pull request #37132 from srhb/haddock-wrapped
<clever>
oh, related to that pr, i need a way to get the closure of a given haskell package, as a list of derivations
<clever>
is there an easy way to do that?, shal i just recursively map over the propagatedBuildInputs?
nschoe has joined #nixos
<ottidmes>
clever: Do you perhaps know if you can have multiple initrd's with kexec? Would be useful if I could add my extra initrd with the secrets when kexec'ing, although I guess I could unpack the extra initrd myself in the initrd
drewr has joined #nixos
srk has joined #nixos
<clever>
ottidmes: my kexec tools already adds files to the initrd
<clever>
ottidmes: basically, i uncompress (but not unpack) the initrd, then i generate a 2nd initrd with the ssh pubkey, then i just concat the 2 cpio archives, and re-compress
<clever>
there is a special marker at the start of cpio archives, and the kernel will easily accept joining several with cat
<clever>
but the compression layer gets a bit more upset over that, so i have to re-compress
<clever>
kexec itself, doesnt accept a list
iyzsong has quit [Ping timeout: 260 seconds]
<ottidmes>
clever: Ah, thanks, that is a nice solution
reinzelmann has quit [Quit: Leaving]
<clever>
actually, it doesnt re-compress
<clever>
oops
<clever>
gzip is also happy with cat'ing several streams together
<ottidmes>
clever: apparently :P
<clever>
the hardest part i had to figure out, back when i made my own initrd's for gentoo, is that you must use cpio -H newc
<clever>
to set the format
<ottidmes>
clever: Yeah, I remembered you saying that before, but somehow forgot that you had this (extending the initrd) already in your example
<clever>
line 36 of the same file also copies that file out of the initrd, and into the final rootfs
<clever>
so it allows ssh
<shlevy>
Hydra down again?
<ottidmes>
clever: yeah, that was my main problem, kexec would no longer allow me to SSH in the system, not that it really matters in my case, but still, something I'd rather fix
<clever>
ottidmes: you can either embed your pubkey into the configuration.nix as standard, or use the file in / on the host
<ottidmes>
clever: I am now adding a rescue netboot like you have, but keep it build separately from the rest of my system, its rather annoying to have it rebuild it every time I tweak / test my config, so instead I will just call nix-build in a script to build it
chocopuff has joined #nixos
<guillaum1>
I have a new package (gcompris, an educational game). Is it better to do my pull request on top of nixpkgs/master or something else ? (release-18.03 for example?)
asuryawanshi has quit [Ping timeout: 248 seconds]
<ottidmes>
guillaum1: Should be based on master
<guillaum1>
ottidmes: ok, thank you.
Sonarpulse has joined #nixos
<Sonarpulse>
anyone noticed the media keys stopped working?
<Sonarpulse>
`light` seems to require root
<Sonarpulse>
now
<Sonarpulse>
(media keys to adjust brightness)
<ottidmes>
guillaum1: I believe 18.03 is even frozen at the moment, they try to bring failures down as close to 0 as possible
Sonarpulse has quit [Remote host closed the connection]
<infinisil>
Can somebody merge this please? It'a a trivial bugfix without which the znapzend module doesn't work for anybody using it for the first time
jtojnar has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @shlevy pushed to binutils-2.30 « binutils: Revert apparently-broken multiple-definition support in gold. »: https://git.io/vxsiX
<{^_^}>
→ 69873f88 by @angerman: Add `Windows` to platforms.
<{^_^}>
→ 4f0c2c3b by @peti: Merge pull request #339 from angerman/patch-1
zzamboni has joined #nixos
<disasm>
zimbatm: I've seen you mention shellcheck in the past on some PR's. Do you have a solution for getting shell check to pass on shell scripts with a nix-shell shebang defining dependencies for a script?
wchresta has quit [Ping timeout: 260 seconds]
<gchristensen>
I manually spectify --shell or whatever the argument is
fendor_ has quit [Ping timeout: 240 seconds]
zzamboni has quit [Ping timeout: 264 seconds]
<makefu>
clever: what would be the correct page title for this info?
<clever>
makefu: something more along the lines of just building 32bit stuff
<makefu>
okay i will start a section with "Packaging" and down below all the stuff you can package
<{^_^}>
[nix] @dtzWill opened pull request #1989 → util: rename stdout/stdin members to avoid conflicts w/standard macro → https://git.io/vxsFm
rauno has joined #nixos
jensens has quit [Ping timeout: 264 seconds]
xcmw has joined #nixos
Tucky has quit [Quit: WeeChat 2.0.1]
<wilornel>
Hi #nixos! I have this command that I want to always be running. `unison my_proj -repeat 1`. It tries to connect to a remote machine. If the machine is reachable, the command keeps running until the machine is unreachable. If the machine is unreachable, the control goes back to the shell, and I have to run it again when the remote machine becomes available.
<wilornel>
Synthetica: is there a solution where I don't have to manually run the `while true` command?
<wilornel>
I'm resending to people can see: I have this command that I want to always be running. `unison my_proj -repeat 1`. It tries to connect to a remote machine. If the machine is reachable, the command keeps running until the machine is unreachable. If the machine is unreachable, the control goes back to the shell, and I have to run it again when the remote machine becomes available.
<wilornel>
Is there a way to create a daemon which launches anytime I boot my instance?
<Synthetica>
Well, you _could_ make a systemd user service?
<{^_^}>
[nixpkgs] @globin pushed commit from @Ma27 to master « zed: remove »: https://git.io/vxsxK
<wilornel>
alright, that's what I thought
<wilornel>
is that done slightly differently in nixos?
<Synthetica>
Yeah
thblt has quit [Ping timeout: 264 seconds]
ambro718 has joined #nixos
blankhart has quit [Ping timeout: 260 seconds]
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
coot has quit [Quit: coot]
<kthnnlg>
Hi All, I am writing a nix script to help me do some development work. In this script, I have a build dependency on a derivation named foo. Now, suppose that foo creates some binaries in the $out/bin/ folder. What is the usual method to ensure that the binaries created by foo are in the PATH of my development derivation? Thanks
blankhart has joined #nixos
<symphorien>
kthnnlg: how will you script be used ? with nix-shell ?
<kthnnlg>
yep, with nix-shell
<symphorien>
then put foo in the buildInputs of the derivation
<kthnnlg>
yep, it's there
<symphorien>
then ${foo}/bin should be in the PATH of the nix-shell
maximiliantagher has quit [Ping timeout: 276 seconds]
<{^_^}>
[nix] @shlevy merged pull request #1989 → util: rename stdout/stdin members to avoid conflicts w/standard macro → https://git.io/vxsFm
<{^_^}>
→ 9b33201e by @dtzWill: util: rename stdout/stdin members to avoid conflicts w/standard macro
<{^_^}>
→ d53970d3 by @shlevy: Merge pull request #1989 from dtzWill/fix/avoid-reserved-standard-macros
<fl3>
Neovim works fine, but trying to figure out how package overrides works :) I added this: https://gist.github.com/not-fl3/137ac05c6ee6e1e34fc7b4e538356ca0 to my configuration.nix and expect to get neovim-2.0.4 in some nix-shell. What I am doing wrong?
<kthnnlg>
symphorien: oops, sorry, what i actually wanted was for the bin subfolder of foo to appear in the PATH of the terminal session that is opened by nix-shell
<symphorien>
hum this is somewhat non standard...
endformationage has joined #nixos
<fl3>
infinisil: hmm, no errors reported by nixos-rebuild :(
[Leary] has quit [Remote host closed the connection]
<symphorien>
anywa you can preConfigure = '' export PATH=$PATH:${foo}/bin/foo '';
<fl3>
symphorien: I used the advice from 9.11.3.7. in your link, its not relevant to my case?
<kthnnlg>
symphorien: super, thankx
<clever>
kthnnlg: the bin dir of every buildInput is added to PATH automatically
<clever>
kthnnlg: so builtInputs = [ foo ]; would do it
<symphorien>
fl3: this is strange. In the overlay example they override python, because pythonPackages is an attribute of python
<symphorien>
in the example above, they override directly.
<symphorien>
how do you install neovim ?
<symphorien>
with pythonPackage.neovim or neovim ?
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
__Sander__ has quit [Quit: Konversation terminated!]
<fl3>
symphorien: I am trying both "nix-shell -p neovim" and "nix-shell -p pythonPackages.neovim"
<wilornel>
Synthetica: is there a resource that nicely describes the subtleties of systemd in nixos?
<gchristensen>
makefu: I turned it off just now (cc samueldr) to reudec the spam
vidbina has joined #nixos
<manveru>
gchristensen: thx
<manveru>
it's nice to have it somewhere, but probably not here...
<makefu>
great!
<makefu>
but it is a nice heartbeat imho
<infinisil>
fl3: Only to the pkgs argument you get at the top of each module, so yeah systemPackages will work if you used `with pkgs; `
<gchristensen>
I like it when it isn't posting quite so much
<ixxie>
the python package I am packaging requires a specific version of another python module; could someone point me to an example of how that is done?
<manveru>
true... i wouldn't mind if it gave like half-hourly updates of what was merged
<Synthetica>
wilornel: ... Not sure to be honest
<gchristensen>
samueldr: ^
<makefu>
ixxie: you have two chances, either override the already existing package with the new `src` or build a new derivation. use on of these in your propagatedBuildInputs
<samueldr>
manveru: good idea
<infinisil>
ixxie: Patch it to not require a specific version
<infinisil>
ixxie: Assuming the version in nixpkgs more or less matches the specific version
<ixxie>
but they are just kinda doing to prevent 'unpredictable changes'
acarrico has quit [Ping timeout: 260 seconds]
xcmw has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos
justanotheruser has quit [Client Quit]
justanotheruser has joined #nixos
<zimbatm>
disasm: try to add "# shellcheck shell=bash" somewhere in the header
<infinisil>
ixxie: i don't approve of their reasoning, they basically say that if their dependendy breaks backwards compatibility it won't work, duh
<infinisil>
That is the perfect use for patching
ambro718 has quit [Quit: Konversation terminated!]
<ixxie>
infinisil: do you have a nice example?
<ixxie>
honestly though: its weird one cannot pin dependency versions in nixpkgs, but I can imagine it would require maintaining mutliple versions of any package
jeschli2 is now known as jeschli
<ixxie>
unrelated: are there options for configuring SSH timeout, both client and server side?
<clefru>
what does it take to get commit access to nixpkgs?
johann__1 has quit [Remote host closed the connection]
<srhb>
clefru: Mostly asking, a few contributions perhaps! :)
<infinisil>
ixxie: indeed, and the closure size could get a lot bigger when every package needs its specific dependencies
root_662 has quit [Remote host closed the connection]
<clefru>
srhb: sounds not too hard :). does it require some participation in some kind of PR triaging queue?
<srhb>
clefru: Nope. Not as yet at least :-)
* gchristensen
cackles, eviley, at the idea
<srhb>
I think tools like that would be very helpful at the very least :-P
<infinisil>
ixxie: need to put it in extraConfig
<infinisil>
ixxie: and client side in ~/.ssh/config
winem_ has quit [Ping timeout: 252 seconds]
<infinisil>
For server its called ClientAliveInterval
winem_ has joined #nixos
<Lisanna>
can nixops take --arg, --argstr in any way for deployments?
<clefru>
srhb: I probably need to understand what those 10.rebuild* tags are for and when to merge something to staging
<Lisanna>
answer: yes, with set-args
<clefru>
srhb: a contributors handbook would be awesome :). I know that you will invite me to write one in response to that suggestion :)
<srhb>
clefru: Agreed, it would. There is a contributors guide but it's rather lean.
<srhb>
clefru: The tags basically mean "don't merge to master if you're rebuilding the whole world"
<srhb>
Or a sizeable portion of the work
<infinisil>
Lisanna: indeed, didn't know this either first
vidbina has quit [Ping timeout: 264 seconds]
<srhb>
clefru: It's really just a resource concern. The build servers will get bogged down needlessly. Instead we synchronize bigger changes via staging, and thus allow master to move on more or less unimpeded.
<clefru>
srhb: I was guessing that, thanks
<srhb>
:)
M8QL3Gxor-freene has joined #nixos
M8QL3Gxor-freene has quit [Client Quit]
<ixxie>
infinisil: which extraConfig? openssh.extraConfig?
<infinisil>
Yea
fl3 has quit [Quit: Lost terminal]
maximiliantagher has quit []
maximiliantagher has joined #nixos
<ixxie>
cheers infinisil
vidbina has joined #nixos
<elvishjerricco>
Is there any documentation on ssh-ng? I've heard some chatter on it but I have no idea what it is
FareTower has quit [Ping timeout: 260 seconds]
ThatPako has joined #nixos
<ThatPako>
Hello! Do I have to clone NixOS/nixpkgs in order to install a custom program using my configuration.nix?
pie_ has quit [Ping timeout: 245 seconds]
<clever>
ThatPako: no, you can just put a package override into your configuration.nix and load things with callPackage
<ThatPako>
That sounds like something I would be too stupid for lol
<ixxie>
is the system.stateVersion necessary when running unstable?
<gchristensen>
ixxie: recommended!
<clever>
ixxie: it must never be changed, and must remain set at the version you originally installed
<ixxie>
what?
<ixxie>
that is weird
<gchristensen>
why?
<clever>
ixxie: it is the version of the state, which nix cant upgrade
<ixxie>
so I set it wrong
<clever>
ixxie: things like what role has admin in postgress
<clever>
if you mess with it, you break the very things it was meant to fix
<ixxie>
because when I upgraded to 17.09 I changed that
<gchristensen>
ixxie: newer nixos installations have a more verbose warning
<ixxie>
what do I do know to figure out what I should set it to?
<clever>
ixxie: if nothing has broken, then you may not run any of that buggy software
<gchristensen>
one sec
ma27 has quit [Ping timeout: 240 seconds]
<clever>
and the new value would also be ok to keep
<gchristensen>
ixxie: do you use mysql, postgresql, matrix-synapse, ipfs, radicale, or caddy?
<ixxie>
gchristensen: not directly
<gchristensen>
if you don't run those on your server the stateVersion is unused
<ThatPako>
clever: is there some guide on how to install custom packages?
<clever>
ThatPako: thats in the nixpkgs manual
<ThatPako>
Oh, I see
<ixxie>
cool
<ixxie>
thanks
<ThatPako>
From what I read my only two options is `import`ing a .nix file for every package I want to use without a package online, or I add it to my local nixpkgs clone use that as "mirror"?
<ThatPako>
Would I *only* use my local clone then? Or would it only check that clone for packages missing on the remotes?
<clever>
ThatPako: even if you had a local nixpkgs clone, you still must import every nix package, in that clone
<ThatPako>
oh
<clever>
ThatPako: so its simpler to just have a single nix file that defines the changes, and not deal with the clone
fendor_ has joined #nixos
<ThatPako>
a "single file that defines the changes"? So no cloning and just storing my own expressions in some folder I import in my configuration?
<clever>
ThatPako: you can manage that file in git if you want to
<ThatPako>
True.
<ixxie>
infinisil: do you have an example of the patching approach I could model mine after?
<clever>
ThatPako: overlays also help to make it simpler
<ThatPako>
btw, may my user own the configuration.nix file or does it have to be owned by root?
<clever>
ThatPako: it is then put into action with nixpkgs.overlays = [ (import ./overlays/qemu-user.nix) ];
<clever>
ThatPako: nix doesnt really care, so its mostly your choice and how you feel about the security
Myrl-saki has joined #nixos
<ThatPako>
that would make changing the file easier at least
xAFFE has left #nixos ["Error from remote client"]
<wilornel>
I'm thinking about nix, nixos, docker, kubernetes, and amazon aws...
<wilornel>
I feel like nix makes working with the rest much easier
<wilornel>
but I don't know how
<wilornel>
anyone knows some readings I could look into? I would love to talk with someone who is a user of all these technologies
<srhb>
Any nodePackages maintainers that could look at https://github.com/NixOS/nixpkgs/pull/37179 ? The diff is scary large, but I'm guessing that's something specific to the node ecosystem. It's also a first time contribution :)
<ThatPako>
Nix has a nodePackages? :thinking: wew
<ThatPako>
thought it only does haskellPackages
<wilornel>
(also, systemd keeps coming in mind)
<clever>
ThatPako: it also has pythonPackages and linuxPackages (kernel stuff)
<ThatPako>
Wow
<ThatPako>
Nix is way too advanced
<srhb>
idrisPackages, too, though that's small.
<ThatPako>
> idris
<srhb>
Probably a few I've forgotten.
humanoyd has joined #nixos
<srhb>
ocaml!
<srhb>
And elm, too..
<srhb>
I think I mostly know of the functional space :P
<srhb>
I'm not sure if there's any automatic sharing of vendored stuff though?
<srhb>
Every time I build one of them I go "what is it downloading *now*?!"
<foldingcookie>
which package should I install to get bold versions of the "fixed" X11 font?
<ThatPako>
Are you talking about building crates?
<srhb>
ThatPako: I think so :-)
jrolfs has joined #nixos
<ThatPako>
I just got used to cargo downloading half of crates.io every time it builds a crate
<srhb>
But without rustPackages I assume two packages using the same vendored dependency end up building it twice.
<srhb>
Which rustPackages would alleviate, I guess?
<ThatPako>
oh
<foldingcookie>
ThatPako: you can set CARGO_TARGET_DIR to share built deps between crates if they have the same compilation flags
<srhb>
I'm not entirely sure how the ecosystem works, but vendoring usually means less sharing.
<srhb>
Which is a shame.
coot has quit [Quit: coot]
<ThatPako>
Is downloading a tarball and just storing the program in my home dir a no-go in NixOS or could one do that for stuff that's not part of nixpkgs?
<ThatPako>
I guess I would be better off with a nix expression for it though...
<ThatPako>
agh...
<srhb>
ThatPako: You can, but you get so many advantaged from the nix expression
<guillaum1>
gchristensen: ha, that's smart, this way even running program are not garbage collected. Thank you.
<gchristensen>
running programs or paths referenced by running programs (see the fd, environ, cwd, and map checks)
<clever>
gchristensen: aah, the 14 is just an index into the array findRuntimeRoots() returned, and has no real meaning
<gchristensen>
ah bummer, having the pid could eb cool
xAFFE has left #nixos ["Error from remote client"]
<clever>
gchristensen: the return type would have to be changed from PathSet to a list of structs that describe why they are roots
<clever>
gchristensen: but thats still an improvement from what 1.11 did, it refused to even admit it was rooted
<clever>
yet also claimed it was in other areas
<gchristensen>
yeah
<gchristensen>
guillaum1: Nix has a lot of good fundamentals and smarts :)
<srhb>
Am I right that the preference is for all-packages.nix dependency pinning (eg. { fooDep = fooDep_N; }; over package local ones (eg. { fooDep_N }: { ... }) ?
Neo-- has quit [Ping timeout: 240 seconds]
nschoe has quit [Ping timeout: 256 seconds]
winem_ has quit [Ping timeout: 264 seconds]
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi has joined #nixos
<ottidmes>
srhb: That seems to be the pattern and is more flexible, what if I wanted to reuse the package with a different version pinned, the former allows this, the latter does not
<srhb>
ottidmes: Well, it allows it, but fooDep_N = fooDep_M is rather ugly :P
<ottidmes>
srhb: right :P
<srhb>
I was thinking that it might be excusable when you really mean _it won't work with anything but this version_ but I still feel all-packages.nix is nicer.
<ottidmes>
srhb: Or overrideAttrs and probably many other ways
<ThatPako>
I guess I could upload my /nixos folder to my gitolite server if you need any of that
<clever>
ThatPako: the -v output says it never looked in /nixos
hiroshi has quit [Ping timeout: 260 seconds]
hiroshi- is now known as hiroshi
<clever>
so its contents shouldnt matter
<ThatPako>
kk
<clever>
ThatPako: what about the output of nix-info?
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<ThatPako>
that seems to be stuck too
<GlennS>
Does anyone know if there's an easy way to get nix-shell to use a particular channel without having to redownload it every time? I've made a little example to show what I mean: https://hastebin.com/monuwacoja.php
<nliadm>
it seems to be trying to build it, which is new behavior
maximiliantagher has joined #nixos
<ThatPako>
I'
<ThatPako>
ll remove the unstable channel for now
<GlennS>
clever: thanks, I think that's set me on the right path (although it looks like that respository is missing fetchNixpkgs.nix - I found it on the wiki)
<ThatPako>
clever: do I have to run anything after removing the unstable channel?
Synthetica has quit [Quit: Connection closed for inactivity]
<clever>
GlennS: its in the repo, at the root, on the branch i linked
<clever>
GlennS: the one on the wiki also has a small bug, which is fixed on the branch i linked
<clever>
ThatPako: nix-channel --update
<GlennS>
oh right, well double thanks then
tos9 has joined #nixos
<infinisil>
ThatPako: Run `strace nix-instantiate --eval '<nixpkgs>' -A system` and put the last 50 lines or so in a gist
<tos9>
OpenSSL doesn't appear to link libssl (at least on darwin)
<tos9>
Can I get it to?
<ThatPako>
clever: I got `unpacking channels...`, then it finished
<clever>
ThatPako: yep, that should be normal
<infinisil>
ThatPako: (Or the whole thing if you can)
<clever>
ThatPako: what does nix-info say now?
maximiliantagher has quit [Ping timeout: 264 seconds]
sirkha has joined #nixos
leat has joined #nixos
dtheriault3 has joined #nixos
<ThatPako>
infinisil: that one lead me to a rather interesting find. Looks like there was some kind of infinite loop thanks to the firefox overlay I once tried to use in order to get nightly
<ThatPako>
I removed the overlay and now nix-info works
<clever>
ixxie: without that, it looks for nixpkgs inside the directory you give it
<clever>
ixxie: the channels also include a nixpkgs symlink to ., which deals with that for you
<clever>
ixxie: also, if any -I element isnt found, it silently continues to NIX_PATH, so its harder to notice it being broken
reinzelmann has quit [Quit: Leaving]
<ixxie>
clever: so if I have a nixpkgs clone in ~, when running nixos-rebuild in home I can either use -I /home/ixxie or -I nixpkgs=/home/ixxie/nixpkgs but not -I .
maximiliantagher has joined #nixos
<ixxie>
clever: but the channel remark I didn't grok
<foldingcookie>
which package contains the X11 misc-fixed-bold font?
<jtojnar>
hedning[m]: I will not have much time for the PR this week
maximiliantagher has quit [Ping timeout: 240 seconds]
<clever>
ixxie: this symlink causes -I nixpkgs=foo and -I foo to both work, because foo always contains nixpkgs, which points to itself
jrolfs has joined #nixos
jrolfs__ has quit [Ping timeout: 246 seconds]
<ixxie>
right
leat has joined #nixos
mudri has joined #nixos
maximiliantagher has joined #nixos
<ixxie>
so, my ssh connection between my NixOS laptop to my NixOS server keep getting stuck
<ixxie>
I just tried setting programs.ssh.extraConfig = ''ServerAliveInterval 60
<ixxie>
and services.openssh.extraConfig = ''ClientAliveInterval 120
<ixxie>
if it makes a difference I am using tmux
<ixxie>
when this happens
maximiliantagher has quit [Ping timeout: 246 seconds]
aarvar has joined #nixos
dtheriault3 has quit [Ping timeout: 256 seconds]
maximiliantagher has joined #nixos
<infinisil>
Ah i didn't know of ssh.extraConfig
<abcrawf>
Is there a good way to add dependencies to a derivation from NixPkgs? I'm using WeeChat, but want to make use of wee-slack (which requires the websocket-client python library), so I want to add that extra dependency to the WeeChat derivation.
<infinisil>
ixxie: try #openssh maybe
maximiliantagher has quit [Ping timeout: 240 seconds]
<foldingcookie>
ah, it's nixos.xorg.fontsmiscmisc
<foldingcookie>
(and I need to revise my X11 config to include font dirs)
<ixxie>
yeah good call infinisil :P
<nliadm>
abcrawf: you can add a stanza to the plugins member
dtheriault3 has joined #nixos
<abcrawf>
nliadm: Ugh, I was looking at an old version of the derivation. Now I see the plugins. Let me fumble around with that for a bit.
<nliadm>
https://pastebin.com/EirxQSJf here's what I have setup to do automatic encrypted secrets in my config, wee-slack, and the matrix plugin
<nliadm>
it's not well suited to adding dependencies, but you can hack it
<abcrawf>
That is pretty slick. Thank you!
knupfer has quit [Remote host closed the connection]
<infinisil>
*cough* why are we using xml for docs again *cough*
<makefu>
i've heard of a place where this information would be a better fit AND it uses a more straight-forward markup *cough*nixos.wiki*cough*
<infinisil>
makefu: hmm maybe, however nixpkgs is version controlled and synchronous with the changes (or could be at least), whereas the wiki's weechat article is still from last release (as are the nixos.org docs)
hakujin1 has joined #nixos
<infinisil>
"Could be" because most don't update the xml docs anyways when something changes
LangeOortjes is now known as qqlq
hakujin1 has quit [Ping timeout: 276 seconds]
<abcrawf>
nliadm: Thanks for your help. Adding to the extraBuildInputs worked perfectly (I love this build system).
<hedning[m]>
jtojnar: I'll see what I can do by myself :)
civodul has joined #nixos
maximiliantagher has joined #nixos
dtheriault3 has quit [Ping timeout: 248 seconds]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
<jtojnar>
hedning[m]: that would be great, thanks
maximiliantagher has quit [Ping timeout: 256 seconds]
<makefu>
infinisil: at least the wiki hat a better chance to be updated because often times people simply don't bother creating a PR for *just* updating the docs
Ariakenom has quit [Quit: Leaving]
DwarfMaster has quit [Ping timeout: 276 seconds]
maximiliantagher has joined #nixos
dan_b has joined #nixos
<makefu>
for a reference the wiki is not the right thing. for example which options are provided etc
logzet has quit [Read error: Connection reset by peer]
DwarfMaster has joined #nixos
MichaelRaskin has joined #nixos
<maurer>
infinisil: Not that I'm volunteering, but maybe we should get a PR hook that checks whether config structure has changed, and if it has, suggests documentation updates
<maurer>
I don't have that many commits, but I know I've never even thought to check whether what I was poking had docs I was making invalid
boxofrox has quit [Ping timeout: 268 seconds]
<makefu>
maurer: most api changes should have a fallback (modules/rename.nix) so that should be less of an issue
<clever>
makefu: i recently discovered, that the rename stuff, only works when setting the old name
<clever>
makefu: there is no way to ever make reading the old name work
<infinisil>
maurer: I like your suggestion of autosuggesting doc updates
<infinisil>
Imo docs should live where they are relevant, e.g. python packages docs in nixpkgs/pkgs/development/python-packages/readme.md
ixxie has quit [Ping timeout: 256 seconds]
<infinisil>
Then have some nix expression aggregate all docs to export them to man pages/web site/etc.
<infinisil>
and package foobar docs in nixpkgs/pkgs/foobar/readme.md or doc.md
__sean has joined #nixos
<__sean>
I disabled hardening in my bitbake environment but I'm still getting format-security errors, anyone know why? Does `export hardeningDisable="format"` not work in some cases?
jtojnar_ has joined #nixos
maximiliantagher has quit [Ping timeout: 268 seconds]
jtojnar has quit [Ping timeout: 240 seconds]
jtojnar_ is now known as jtojnar
blankhart has quit [Ping timeout: 256 seconds]
maximiliantagher has joined #nixos
<clever>
__sean: you can also just set it as an attribute on the derivation
<makefu>
i also infinisil for the current manual i would really love to see syntax highlighting. i mean it is 2018 already!
<infinisil>
makefu: that's all for free with markdown on github, juuust sayin
vidbina has joined #nixos
<infinisil>
I should make a fork of nixpkgs with docs converted to markdown and keep it up to date, just so i can view always up-to-date docs online with nice formatting and syntax highlighting
<infinisil>
Once everybody uses my nixpkgs fork to view the docs I'll submit a PR
<makefu>
infinisil: problem is that you will need to backport all the new documentation to your branch
mounty_ has joined #nixos
vidbina has quit [Ping timeout: 265 seconds]
ron__ has quit [Ping timeout: 245 seconds]
<ij>
If I'm in a user env are there any dynamic libraries available somehow through PATH or by convention?
FareTower has joined #nixos
<ij>
Oh yeah, ~/.nix-profile/lib.
<wervenyt[m]>
I'm running nixos on the unstable channel, and haven't gotten any package updates in a few days. is this an issue?
<wervenyt[m]>
a few days as in a week
<MichaelRaskin>
It is, but not on your side, if I remember correctly.
<gchristensen>
it is a property of unstable
<MichaelRaskin>
It is property of all channels, but for different reasons
<Ralith>
I have `fonts.fontconfig.defaultFonts.monospace = [ "Terminus" };` and `fonts.fonts` contains `pkgs.terminus_font` but `fc-match Monospace` returns DejaVu Sans Mono
<foldingcookie>
with [ } like that?
<Ralith>
no, that was a typo
<foldingcookie>
ok :)
<ThatPako>
oof. now I'm getting `pyaml not supported for interpreter python3.6m`
<Ralith>
obviously the system would not build with that syntax :P
dtheriault3 has quit [Ping timeout: 240 seconds]
hiratara has joined #nixos
<makefu>
ThatPako: oh oh, maybe you need to bump pyaml for your package.
<ThatPako>
makefu: I can't mix pythonPackage and python3Package?
<makefu>
ThatPako: no, pythonPackages would be "python2Packages"
<ThatPako>
oof
hakujin1 has joined #nixos
lord| has joined #nixos
<ThatPako>
Damn. I have `pkgs.python3Packages.pygobject3` in my propagatedBuildInputs now and it still complains about `gi` not existing
ryanarte_ has joined #nixos
<Lisanna>
aww, you can't opt to omit a hash from fetchgit ):
<Lisanna>
that kind of sucks
<infinisil>
Lisanna: that's intentional
<makefu>
ThatPako: what have you tried?
<Lisanna>
infinisil why
orivej has joined #nixos
<Ralith>
xlsfonts still finds terminus but fontconfig is refusing to believe it exists again
<ThatPako>
makefu: got it to kinda build now. The only way I can get pyaml for python3 is though nixos-unstable though ;-;
<infinisil>
Lisanna: But if you really want impurity you can use `builtins.fetchurl` or `builtins.fetchTarball`
<Lisanna>
infinisil I don't want impurity
<Ralith>
I fixed this before by specifying 'Monospace 12px' instead of 'Monospace' but now that doesn't work either
dan_b has quit [Remote host closed the connection]
<Lisanna>
...wow, builtins.fetchGit is not only failing, it's introducing impurities in the build!
__sean has quit [Ping timeout: 260 seconds]
<Lisanna>
I'm calling it against a directory which is a nested git repo existing in an outer git repo, and fetchGit is pulling git information from the outer repo rather than the inner repo, even though the outer repo is not part of the closure
<ThatPako>
Any idea what `Gdk` might be? when searching for that error all I get is errors about *GTK*
<Lisanna>
tsk tsk
<Dezgeg>
heh, sounds like a bug indeed
hakujin1 has quit [Ping timeout: 240 seconds]
<samueldr>
GDK is AFAIUI what GTK uses to draw stuff on screen
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
eliaslfox has quit [Read error: Connection reset by peer]
tertle||eltret has joined #nixos
eliaslfox has joined #nixos
nikivi has quit [Remote host closed the connection]
Lears has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<clever>
gchristensen: i'm trying to nix-build --repeat 1 something, and ive found a file that differs, but it doesnt have a single \n in it, so all the normal diff utils just fail horribly
<clever>
gchristensen: what would you use?
<gchristensen>
oh boy
<gchristensen>
how does diffoscope do?
<clever>
2 massive blobs, 8mb each
<gchristensen>
ugh
<gchristensen>
is it otherwise text?
<clever>
the files differ in content but have identical length