<kisik21>
ok... can I expect Hydra to work in container?
<clever>
not sure
<tertle||eltret>
may as well add xmond while im at it
<kisik21>
clever: also I just do it for fun, but some day (when I get a proper x86_64 server?) I'll probably set up Hydra and a permanent binary cache for my overlay...
<clever>
error: attribute 'diamond' at /home/clever/nixpkgs/pkgs/top-level/all-packages.nix:20374:3 already defined at /home/clever/nixpkgs/pkgs/top-level/all-packages.nix:8087:3
<q3k>
there's a decent open source flow for lattice ice40s and soon lattice ecp5s :)
<{^_^}>
[nixpkgs] @imuli opened pull request #45003 → nixos/networking: set broadcast address → https://git.io/fNbCc
<tertle||eltret>
which part is the controller part?
<tertle||eltret>
infinisil: ?
<infinisil>
The one highlighted
hamishmack has joined #nixos
sigmundv__ has quit [Ping timeout: 244 seconds]
<tertle||eltret>
ok ty, i need to locate that file but it should be fine
<infinisil>
Huh what file?
<tertle||eltret>
default.nix
<tertle||eltret>
on my machine
<infinisil>
No, just put it in configuration.nix
<tertle||eltret>
oh wow, i feel stupid noq
Ericson2314 has quit [Ping timeout: 260 seconds]
andreabedini has joined #nixos
kisik21 has quit [Ping timeout: 272 seconds]
growpotkin has joined #nixos
<growpotkin>
Hey I have a licensing question about a package I'm making.
<growpotkin>
I'm packaging a daemon for spotify
<growpotkin>
the author of the daemon uses the GNU license
<growpotkin>
but I know that libspotify is unfree, does that mean I should mark this package as unfree as well?
<growpotkin>
Like does the unfree license of libspotify (a dependency) supercede the author's license?
<emily>
"ask a lawyer", but IMO yes
<emily>
the source code may be itself distributable under the GPL but the resulting binaries are probably not
lassulus_ has joined #nixos
<emily>
not sure if nixos has a specific policy on this though
<growpotkin>
BINGO that was what I was stuck on
<clever>
synergy source code is on github, yet you have to pay for windows binaries
<growpotkin>
oh yeah I mean I was wondering about Nix's "policy"
thc202 has quit [Ping timeout: 272 seconds]
<growpotkin>
in any case when you try to install it the user is prompted to allow unfree because it uses libspotify
<growpotkin>
So we know the user has enabled unfree packages anyway, but I didn't know how to mark this one. I might need to try and find some examples in the library
<growpotkin>
mopidy probably
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<growpotkin>
Ah interesting, mopidy-spotify is not marked unfree
lassulus has quit [Ping timeout: 256 seconds]
lassulus_ is now known as lassulus
Fare has quit [Ping timeout: 260 seconds]
<adisbladis[m]>
growpotkin: Which is the daemon in question?
jperras has quit [Ping timeout: 268 seconds]
isHavvy has quit [Ping timeout: 272 seconds]
<ekleog>
growpotkin: IANAL either, but there are arguments saying that GPL doesn't apply if you dynamically link and don't ship the .so / .dll ; so I'd guess this would apply here
<emily>
you basically embed the hash of the .so, which I think is problematic at the least
<ekleog>
(IOW, if libspotify is a dependency, I would personally have the package marked as GPL and depending on libspotify)
<emily>
since the usual argument is "you could substitute some other .so", but here one .so is clearly intended
<ekleog>
hmm good point here
Drakonis has joined #nixos
<ekleog>
even though technically you could still substitute some other .so by putting it in the nix-store by hand
<growpotkin>
spotifyd
oida has quit [Ping timeout: 250 seconds]
<growpotkin>
I have it working and wanted to submit it, but I want to make sure the license is correct first
<growpotkin>
(also its my first submission! :D)
imalsogreg has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
Fare has joined #nixos
sigmundv has quit [Ping timeout: 256 seconds]
<thoughtpolice>
q3k: I'm working on a nextpnr expression, FWIW
<thoughtpolice>
q3k: Since I basically maintain the existing IceStorm expressions; though I gotta add libtrellis first...
<jbaum98>
is there a way to set CXXFLAGS from a nix derivation, without affecting CFLAGS?
oida has joined #nixos
justanotheruser has joined #nixos
<ekleog>
growpotkin: congratulations on your first submission :D
Ericson2314 has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ekleog>
growpotkin: for the license, I'd say put whatever you feel most correct, and add a comment on the PR asking whether that is correct or not -- afaik none of us are lawyers, but this way a committer will make sure that it's consistent with the current practice in nixpkgs :)
<ekleog>
(btw, afaik the license= field has no legal value, it's just a helper for people who would like to easily check they have no closed-source packages, and the nixpkgs license includes an explicit disclaimer of liability in case there's an error in it)
orivej has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 272 seconds]
<growpotkin>
haha thanks ekleog
<growpotkin>
Are makeWrapperArgs arguments that are passed to the program at runtime, or are those options to change makeWrapper's behavior?
<growpotkin>
I know it's in the manual somewhere but I'm having trouble finding it.
<ekleog>
growpotkin: if I grep for makeWrapperArgs in nixpkgs, I get eg. `makeWrapperArgs = [ "--prefix" "PATH" ":" "${nettools}/bin" ];`, so it looks like arguments passed to `makeWrapper` :)
<growpotkin>
yeah thats what I've been gathering as well.
<growpotkin>
I'm looking for a way to wrap a runtime argument to always run with the program
<growpotkin>
any tips?
<ekleog>
you may be looking for makeWrapper --add-flags argument :)
<growpotkin>
THANK YOU
<growpotkin>
I can't seem to find documentation for makeWrapper online, should i be looking for it in the source?
<hyper_ch>
joepie91: manveru: Pairing works now... needed to tell Nixos to use bluetooth full package
<growpotkin>
manveru, my god I struggled with that too for ages
<growpotkin>
first is was adding "allFirmware" or something, and then that finally I found that other bluetooth option
<{^_^}>
[nix] @carlosdagos opened pull request #2352 → docs: Update installation location on the hacking section → https://git.io/fNb8z
orivej has joined #nixos
<hyper_ch>
sorry, I meant I needed to add: hardware.pulseaudio.package = pkgs.pulseaudioFull; ---> seems the bt headphones used some protocol that wasn't in the defualt pkgs.pulseaudioLight package
<{^_^}>
[nixpkgs] @jbaum98 opened pull request #45004 → flint: Add darwin support → https://git.io/fNb8K
jmeredith has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @jbaum98 opened pull request #45009 → ratpoints: 2.1.3 -> 2.1.3.p4; add darwin support → https://git.io/fNbRi
Lisanna has quit [Quit: Lisanna]
<{^_^}>
[nixpkgs] @jbaum98 opened pull request #45010 → zn_poly: Add darwin support → https://git.io/fNbR9
<disasm>
growpotkin: yeah, anything touching /home is bad news, lol
<disasm>
usually, you end up having to apply a patch to the code to un-hardcode anything trying to touch $HOME
<growpotkin>
it's for the lock file
<growpotkin>
cargo-lock-index, yeah I gotta find out how to hardcode that
<elvishjerricco>
disasm: You can often get away with `export HOME=$NIX_BUILD_TOP`, as $HOME is often only used for intermediate things, or config files you don't care about trashing
<growpotkin>
I'll give that a try, thanks
<ekleog>
growpotkin: you're packaging a rust application?
<growpotkin>
trying to
<growpotkin>
failing to lol
<ekleog>
do you use buildRustPackage? carnix?
<growpotkin>
yeah i tried buildRustPackage
<growpotkin>
I read about carnix but didn't really understand it
<growpotkin>
buildRustPackage fails because of a "replace" in the .yaml
<growpotkin>
I guess there has been an issue with it correctly replacing packages, I found some old posts about it but no solutions
<growpotkin>
so I've been trying to just write the build phase with "cargo build" and I've run into this fun permission issue
<ekleog>
it's not going to work :/ cargo build tries to download stuff from the internet
<ekleog>
so in a sandbox it'll fail
<elvishjerricco>
I've heard good things about carnix
<growpotkin>
shit. Well I'm glad you told me, I would've wasted all night haha
<growpotkin>
Yeah let me try to figure out how that one works.
<ekleog>
you need to vendor the applications in a fixed-output derivation, and that's what buildRustPackage does for you (theoretically)
<ekleog>
s/applications/dependencies/
<ekleog>
carnix takes another path: building the dependencies itself, not using cargo
<growpotkin>
yeah when I try building that way I wind up with duplicates of a library and it freaks out
<ekleog>
there… are quite a few packages that depend on duplicate versions of the same library, in the Rust ecosystem
* ekleog
looks at cargo-tarpaulin, that builds syn thrice, iirc
Ericson2314 has quit [Remote host closed the connection]
<ekleog>
theoretically, that should work out well in the end. In practice…
<ekleog>
anyway, g'luck with carnix! :)
<growpotkin>
thank you :)
<{^_^}>
[nixpkgs] @jbaum98 opened pull request #45011 → symmetrica: Add darwin support → https://git.io/fNb0W
freeman42]NixOS has quit [Ping timeout: 240 seconds]
<disasm>
can I pass args in a script (in my case haskell) that has a nix-shell shebang? for example, I have something like this: `!nix-shell ../shell.nix -A ci --run "runhaskell -iiohk scripts/ci.hs"` and I want to run `./myscript.hs --foo bar.conf`.
<disasm>
missed a # in copy/paste, the syntax for nix-shell shebang line is correct.
<rauno>
also, it reports that phüsical LUNs failed whwen trying to mount root by uuid
<rauno>
hum, seems like somewhy one brand specific kernel module is failing..
<growpotkin>
Carnix dies on the exact same package :(
<growpotkin>
it's bizarre though, I can build just find from a shell
mzan has joined #nixos
<ekleog>
weird… I guess you should report it on carnix's repo as an issue, might bring in some help :)
<{^_^}>
[nixpkgs] @jbaum98 opened pull request #45013 → fflas-ffpack: Add darwin support → https://git.io/fNbEX
wrl has quit [Ping timeout: 256 seconds]
<growpotkin>
Well removing that package's replacement and just using the original allows the produced binary to run fine and then carnix and buildRustPackage work
<growpotkin>
still doesn't explain why but at this point I'm so over it haha
<ekleog>
heh ^^
<growpotkin>
it will be a mystery for someone else to solve lol
<growpotkin>
probably someone who knows how to actually use rust
orbekk has quit [Ping timeout: 240 seconds]
<rauno>
okay, i think i found the reason, probably 4.9 kernel broken for hp servers
mzan has left #nixos [#nixos]
<rauno>
how can i switch to older kernel ?
<rauno>
as searching packages, is the 4.4 next available to the latest 4.9 on 18.03 ?
hyper_ch2 has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @dezgeg pushed to master « rust: Set dontUpdateAutotoolsGnuConfigScripts everywhere »: https://git.io/fNbaV
<trcc>
If I start a nix-shell with a particular x.nix file, then the nix-shell uses the packages/systemlibraries/whatever I have specified in x.nix right? Whereas if I do e.g. nix-env --install cabal2nix, then it is installed globally? Why would anyone every install something globally? Shouldn't it be part of the x.nix instead?
rauno has quit [Remote host closed the connection]
<srhb>
trcc: Some things actually (and sadly) do not work without being installed in the user profile (which is what nix-env will do by default)
<srhb>
I believe some QT things suffer from this, for instance
<srhb>
Other than that I agree with the sentiment, however, I _do_ want eg. my browser to actually be installed.
<trcc>
srhb: Thank you. I am only using it for developing haskell applications, so not for elements such as browser. So in my case, it should be possible to keep it in x.nix
<srhb>
I've never needed to install anything in the profile for haskell dev at least. :)
<ekleog>
hmm… is there a channel somewhere where only {^_^} is speaking?
* ekleog
would like to split notices from the rest of discussions
<srhb>
ekleog: I don't think so, but great suggestion. I wonder if that suggestion should go to infinisil? I can never remember which person is responsible for which bot :P
<tilpner>
gchristensen - ^
<srhb>
Thanks tilpner
rauno has joined #nixos
<ekleog>
nowadays gchrist*nsen is handling {^_^}, but infin*sil is handling the backend used by comma-based commands, IIRC :)
<tilpner>
ekleog - Note though that {^_^} does more than announcements. Filtering all of {^_^}s notices will make you miss parts of a conversation
<joepie91>
(without visually affecting the name)
<ekleog>
joepie91: some clients ignore it and highlight anyway (first offender in mind: matrix) :/
<srhb>
Filtering the [somerepo] notifications might catch them...
<joepie91>
ekleog: that's... surprising. we're using this in another channel with success, afaik
<srhb>
Oh, but there's no such thing for nix...
<tilpner>
Hmm, actually, I don't think infinisil is using notices at all
<joepie91>
ekleog: when you say 'matrix' are you talking about the bridge parsing highlights, or about a particular client doing this?
hamishmack has joined #nixos
<tilpner>
So go ahead and filter those (and not privmsgs)
<ekleog>
joepie91: about one matrix user claiming to have been hl'd by a zero-width-space-protected name on mozilla#rust-offtopic, iirc :)
<ekleog>
I don't know whether it's the bridge or the client, though
<ekleog>
tilpner: the point (for me) is to read {^_^} notices more attentively than the whole of #nixos, though :° (I could setup triggers to recover only notices from {^_^} in another channel, but well, that's not really useful for other people…)
<DigitalKiwi>
tail -f nixos.log|grep $USER ?
Guest55147 has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @Mic92 merged pull request #45010 → zn_poly: Add darwin support → https://git.io/fNbR9
<tfc[m]>
hey there, what's the best way to make a specific folder exist in the configuration.nix file? I need some folder `/tmp/foo` to exist when some service starts.
<trcc>
So there is a curated set of haskell packages, such that dependencies can be satisfied. But there is also nixpkgs. I thought nixpkgs was specific versions of haskell packages, but this does not align well with the curated set of packages. Can someone clarify this?
<srhb>
tfc[m]: Probably letting systemd manage it.
<srhb>
trcc: nixpkgs.haskellPackages is a slightly curated set of a snapshot of the latest packages from Hackage at some point in time.
<srhb>
trcc: The "curated" set you're mentioning sounds like Stackage LTS?
<tfc[m]>
srhb: what does that mean? i create a service whose whole purpose is creating that folder that is started before other services?
<srhb>
tfc[m]: I think so, yes.
<trcc>
srhb: will be back soon to discuss :)
<tfc[m]>
srhb: ok, thank you
trcc has quit [Remote host closed the connection]
arjen-jonathan has joined #nixos
mrottenkolber has joined #nixos
<andi->
tfc[m]: presStart = "mkdir /tmp/foo"? :)
<tilpner>
tfc[m] - See systemd.tmpfiles.rules
<andi->
or that
<tfc[m]>
tilpner: oh that seems to be the shortest way to what i need!
<trcc>
and it states that nix uses a curated set of packages similar to stack
<trcc>
so I am trying to figure out how it combines nixpkgs version with this. For example, if nixpkgs defines pkg y to be version 1.1, and pkg x to depend on pkg y f version 1.0. How does that resolve?
<tfc[m]>
andi-: tilpner srhb i fixed it with `systemd.tmpfiles.rules = [ "d /tmp/foo 0755 root root - -" ];` thank you very much!
<ekleog>
trcc: it doesn't, pkg x cannot depend on pkg y version 1.0 :) (if it does, then it means nixpkgs also defined pkg y version 1.1)
<andi->
I wonder how compatible that would be with PrivateTmp=true.. I always tend to enable that per default do avoid clashes/leaks/...
<trcc>
ah ok
<trcc>
ekleog: thanks
<dhess>
trcc: haskellPackages in Nixpkgs used to do its own thing, but now it more or less follows the latest Stackage LTS release.
<trcc>
dhess: no worries, I am following the discussion :) srhb then I guess nix does its own build constraints stuff?
<srhb>
The process is a bit convoluted :-)
growpotkin has quit [Remote host closed the connection]
<srhb>
trcc: So as dhess said we mostly have that hackage snapshot (hackage-package.nix) and then we have two(/three) kinds of overrides: Nix overrides (things needed for packages to work on Nix) in configuration-nix.nix, compiler specific overrides, in configuration-ghc-a.b.x.nix and "common" overrides -- things that need fixing regardless of nix and compiler version
<srhb>
trcc: These overrides and fixes can be, for instance, disabling tests or changing dependency version
<srhb>
trcc: I highly recommend taking a stroll through pkgs/development/haskell-modules and reading eg. configuration-common.nix -- the comments should clear up why a given override is necessary. :)
<srhb>
On a high level it really just is "take a snapshot of all hackage packages, then fix up broken things with overrides"
<srhb>
(I hope not one is offended by my gross oversimplifications here...)
<srhb>
s/not/no
<dhess>
well I guess I was right then... from a certain point of view :)
<srhb>
Yes :)
<srhb>
It might also be enlightening to search the nixpkgs git history for "hackage-packages.nix" -- you will see petis automatic updates and from which all-cabal-hashes commit they came.
<trcc>
ahh thanks
<trcc>
Actually understood it :) Well explained
<srhb>
And only through half a jug of coffee down! *proud*
<trcc>
haha
<trcc>
I brought a whole pot from the breakfast table to my own table at the event
<srhb>
Smart!
<ldlework>
does anyone have a nice docker-host nixops config?
<srhb>
The only things I usually find the need for is nailing down the default docker bridge...
<ldlework>
go on
<srhb>
interfaces.docker-bridge.ipv4.addresses = [ ... ]; bridges.docker-bridge.interfaces = [ ]; and then I think it's something along the lines of --bridge in docker.extraOptions.
<Taneb>
Ugh, Hydra's GithubStatus plugin doesn't play as nice with required status checks for protected branches
<srhb>
Taneb: How so?
<srhb>
I use that.
<srhb>
(I think...)
<Taneb>
By default, it's context for the thing is something like "continuous-deployment/hydra:reponame:jobsetname:jobname"
simukis has joined #nixos
<srhb>
What's the problem with that?
<Taneb>
For us, the jobset name is different for every PR, we just want the jobname itself (we have one for our lint checker and one that does all the builds)
<srhb>
Ah
<srhb>
Can you get by with a static context?
<srhb>
Or multiple.
<Taneb>
What do you mean?
<Taneb>
Oh, no, I get you
<Taneb>
We'd have to change how we're doing things quite a bit
<srhb>
That is, just set context = continuous/hydra:importantCheck
<srhb>
Ah.
<Taneb>
But in principle it's possible?
<srhb>
Seems the simplest way to me...
<Taneb>
If I understand it that'd mean we'd have to have a separate jobspec for the lint and the build
<srhb>
Isn't that ideal anyway?
<srhb>
eg. two <githubstatus> blobs
hotfuzz has quit [Ping timeout: 268 seconds]
<Taneb>
Probably, I just wanted to stick to conservative changes from what we had working previously (which was using a really heavily modified Hydra that someone who's no longer here did)
thetet has joined #nixos
thetet has left #nixos [#nixos]
daftect[m] has left #nixos ["User left"]
jbaum98 has quit [Quit: Connection closed for inactivity]
Dedalo has joined #nixos
mayhewluke has quit [Ping timeout: 272 seconds]
trcc has quit [Remote host closed the connection]
goibhniu has quit [Ping timeout: 272 seconds]
goibhniu has joined #nixos
reinzelmann has quit [Ping timeout: 240 seconds]
<maerwald>
bye nixos, back to a working distro
maerwald has left #nixos [#nixos]
<rauno>
:D
<{^_^}>
[nixpkgs] @garbas opened pull request #45019 → firefox-bin: fix for broken icons due to broken symlink → https://git.io/fNbyi
<carlosdagos>
ragequit?
<infinisil>
Lol
mayhewluke has joined #nixos
<hyper_ch2>
Mic92 tried to build zfs master on linux but failed :(
<q3k>
thoughtpolice: i already added trellis, kinda :)
<q3k>
thoughtpolice: there's been some changes on whether nextpnr can build based off an installed trellis - it wasn't able to do that (needed the full source dir earlier), but I think it is able now?
<Mic92>
hyper_ch2: I was able to boot into the zfs version I opend the pull request for.
<q3k>
thoughtpolice: anyway, I also have my half-baked nextpnr expression, just need to fix up trellis support
<hyper_ch2>
Mic92: btw, with current zfs, it takes like 200 secons or something to import hte pool
<hyper_ch2>
time for lunch now
reinzelmann has joined #nixos
<Mic92>
hyper_ch2: sounds like harddrives
logzet has quit [Remote host closed the connection]
<Taneb>
srhb: OK, I think I was being a bit stupid and doing it that way is going to be much, much easier than I assumed
<{^_^}>
[nixpkgs] @domenkozar pushed to master « hydra: remove me as maintainer »: https://git.io/fNbSh
<Phillemann>
I just updated NixOS after a two-week absence and now PA doesn't seem to work anymore. At least pavucontrol doesn't connect. Has anything changed in nixos-unstable recently?
fendor has joined #nixos
<Phillemann>
(Regarding sound, that is)
timokau has quit [Quit: WeeChat 2.2]
freeman42]NixOS has quit [Ping timeout: 240 seconds]
<{^_^}>
#44876 (by eadwu, 3 days ago, merged): display-managers: rely on socket to activate pulseaudio
<Taneb>
Not quite as easy as I assumed...
<{^_^}>
[nixpkgs] @rawkode opened pull request #45021 → Adding new package: Wavebox → https://git.io/fNb9P
<rauno>
probably unstable changes quite much
<Taneb>
So, initially I had a <githubstatus> block which matches jobs "reponame:pr[0-9]+:.*". This was what I was describing earlier.
<Taneb>
I've added two more blocks, one which matches "reponame:pr[0-9]+:lint" and one which matches "reponame:pr[0-9]+:everything" (lint and everything are both things that exist)
<Taneb>
The only way these differ from the working one is they have a different jobs regex and a specified context
<Taneb>
They don't seem to be going through to GitHub
<srhb>
Taneb: And they each have different contexts ig. everything and lint?
<Taneb>
srhb: yes
<srhb>
Taneb: Have you checked the status api?
<srhb>
I can't see anything wrong with what you've done immediately...
<Taneb>
Unless you mean "looking at the checks on the PR", I don't know how I would check the status API
<srhb>
Taneb: I just meant curling the raw endpoint, but I guess that really should be the same thing.
indika has quit [Quit: Connection closed for inactivity]
<ocharles>
Is there a way to turn a Nix path expression into the absolute path it points to (not copying into the Nix store)?
orivej has joined #nixos
<tilpner>
> ${toString ./.}
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
error: syntax error, unexpected DOLLAR_CURLY, at (string):167:1
<tilpner>
> "${toString ./.}"
<{^_^}>
"/var/lib/nixbot/state/nixpkgs"
<clever>
> ./.
<{^_^}>
/var/lib/nixbot/state/nixpkgs
hamishmack has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ocharles>
Taneb: if you figure out how to do what you want I'm interested
<Taneb>
ocharles: srhb has got something similar working, so I've probably just made a stupid mistake
<ocharles>
Note there is a huge flaw atm in Hydra that it only reports statuses for things it builds. E.g., you have two jobs in a jobset. In the first commit job A passes and job B fails. You fix job B in the next commit. Hydra won't report job A succeeding
<{^_^}>
hydra#165 (by ocharles, 4 years ago, open): Hipchat plugin should be configurable to always send messages
<ocharles>
this to me makes the status check pretty useless. Probably the best option is some kind of "union" build that depends on everything else and only do the protected check on that
tv has quit [Quit: WeeChat 2.0]
tv has joined #nixos
<Taneb>
Yeah, that's what we're doing (we've called it "everything")
<ocharles>
Can you share your everything expression?
Fare has joined #nixos
amfl has quit [Ping timeout: 260 seconds]
<Taneb>
It's something like "everything = pkgs.buildEnv {name = "everything"; paths = [{inherit everything we care about;}];};"
<Taneb>
So, it builds an environment with all our packages
<Dezgeg>
at least the nixos tests use releaseTools.aggregate
<Dezgeg>
to build the 'tested' job which depends on the release-critical stuff
<clever>
aggregate does some special stuff, so hydra is aware of it being an aggregate job, and then hydra can show the contents of it
<{^_^}>
#43797 (by sjau, 3 weeks ago, open): ZFS root pool import in initrd slow - 2 min 25 secs
<Baughn>
hyper_ch2: I'd recommend using znapzend instead of physically moving disks around, if possible. Not only will it work better with this code, but spinning rust doesn't like movement very much.
<clever>
Taneb: i checked, and aggregate is just a normal derivation, with _hydraAggregate=true; and constituents = [ list of derivations ];, and a buildCommand that sets up some nix-support stuff when passing
<hyper_ch2>
Baughn: no need for that
<hyper_ch2>
Baughn: I don't move physically disks around
<hyper_ch2>
Baughn: but please tell me, why is there a 2min 25seconds timeout? that's just insane
<clever>
hyper_ch2: because sometimes a drive in the array takes 40 seconds to come online, and its a very bad idea to start a degraded pool
<Baughn>
^ that.
<Dezgeg>
sounds like there just needs to be a knob for people to tune down the timeout if they really need it for their usecase
<Baughn>
It was supposed to be temporary code, waiting for full systemd support in initrd and zfs.
<Baughn>
hyper_ch2: That wouldn't actually help. The pool will still be degraded, and the script isn't smart enough to tell that it *can't* get any better.
<Baughn>
But I do think I have a solution for you. One sec...
<hyper_ch2>
Baughn: why would it still be degrade if it was set to offline?
<hyper_ch2>
where's the systemd part that I tried to write... the script works... just it's not being executed when shutting down
<Baughn>
It just parses the `zpool status` output. To be fair, I haven't checked.
<Baughn>
hyper_ch2: Are you sure your script is being executed?
<hyper_ch2>
Baughn: I use encryption.. is that a problem?
<Baughn>
That makes it more complicated. But basically just put the same import command you'd otherwise use, in there.
<Baughn>
It'll run right after /dev is populated, so before the mount scripts are run.
<Baughn>
It won't be *in order* with any other mounts. This may or may not be a problem.
<Baughn>
...and hopefully it also won't, say, be run after the zfs import script. But I can't guarantee that.
<hyper_ch2>
what do you mean won't be in order with any other mounts?
<Baughn>
It probably doesn't matter. If all your ZFS filesystems are set to mountpoint=legacy, as they should be, then importing the pool won't attempt to mount anything.
<Baughn>
But I mean e.g. attempting to mount /home before /
<hyper_ch2>
ah ok
reinzelmann has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @Mic92 merged pull request #45019 → firefox-bin: fix for broken icons due to broken symlink → https://git.io/fNbyi
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/fNbFw
<lo_mlatu>
Has any one used brightnessctl here? Enable `hardware.brightnessctl` can't get it work. The udev rule added but failed with exit code 1 during boot. However, manually running those commands specified in the rule with sudo succeed
<silver_hook>
If I want to install Python 3.x with some extra modules (e.g. Pygments), how do I go about this proper™?
<silver_hook>
Same question for Haskell
<clever>
lo_mlatu: when i checked the service, it didnt even have a udev rule in the package
Fare has quit [Ping timeout: 272 seconds]
<Taneb>
clever: hmm, the line I linked (which I've just realised was in my fork, but that file's unchanged) shouldn't be breaking things... %seen should fall out of scope for the next $conf, and be undefined
<Taneb>
Then again I don't know perl that well
<Taneb>
I'm gonna try explictly undef'ing it where I'd expect it to disappear
<lo_mlatu>
clever: this has been fixed in the `nixos-unstable` channel
<clever>
lo_mlatu: ah
<symphorien>
silver_hook: install (python3.withPackages(ps: with ps; [ pygments ]))
<clever>
silver_hook: i would avoid installing python or haskell in such a manner, and just load that with nix-shell
<silver_hook>
srk: Thanks. Hmmm, I think something’s wrong with Firefox’s search. I swear I searched the manual for it and it didn’t show it. I has some similar issue on other pages
<srk>
silver_hook: nixos manual vs nixpkgs manual maybe
<silver_hook>
srk: Ah, that could be it.
* silver_hook
still eyes Firefox suspiciously
Denommus has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
eskytthe has quit [Quit: Leaving.]
lo_mlatu has quit [Quit: Page closed]
mayhewluke has joined #nixos
brtknr has quit [Quit: WeeChat 1.9]
<Taneb>
Hmm, that didn't seem to help
pie_ has quit [Ping timeout: 272 seconds]
lo_mlatu has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
selfsymmetric-mu has quit [Ping timeout: 240 seconds]
jmeredith has joined #nixos
Dedalo has joined #nixos
jbaum98 has joined #nixos
UNIcodeX_ has left #nixos ["Leaving"]
<srk>
,overlays
<{^_^}>
srk: Did you mean overlay?
<{^_^}>
Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
Drakonis has joined #nixos
gspia has quit [Ping timeout: 260 seconds]
<Taneb>
(what's the reasoning for using super for library functions?)
<Taneb>
(because if you modify one using itself you end up in a nasty infinite loop?)
<clever>
i would use self.lib
<aminechikhaoui>
any good idea how to disable a user using users.extraUsers ?
hyper_ch2 has quit [Quit: Page closed]
vidbina_ has quit [Ping timeout: 240 seconds]
<aminechikhaoui>
I have basically a user imported from a shared config, I want to disable that without touching the shared config expression
<clever>
aminechikhaoui: what happens if you users.extraUsers.foo = lib.mkForce null;
<aminechikhaoui>
I think it doesn't accept that, let me try again (also tried making the uid null)
<sphaugh>
how do I test a font I want to add to nixpkgs? we can't use them via nix-env?
<aminechikhaoui>
clever: yeah I get value is not of type `submodule'
<clever>
aminechikhaoui: if the uid is null, it will just auto-assign the uid
<clever>
sphaugh: fonts have to be in the fonts.fonts option in nixos
<clever>
aminechikhaoui: i dont think there is any way to disable a user, just force change the ssh keys and password so nobody can access it
endformationage has joined #nixos
<aminechikhaoui>
hm bummer
<sphaugh>
clever, should i add my local nixpkgs to root's NIX_PATH? how would i get around this?
<clever>
sphaugh: you can also just let pkgs2 = import /home/clever/nixpkgs {}; and then add pkgs2.customfont to the config
<sphaugh>
ahh, thanks!!
ryanartecona has joined #nixos
cmacrae has joined #nixos
derchris has joined #nixos
<bbigras>
I'm trying to add a lib path using LD_LIBRARY_PATH (which is not already set). When I set it I think I'm replacing the default value. Is there a way to append to it easily?
<cmacrae>
Oh wow... sorry a bout the formattinig on that message
<cmacrae>
:/
aanderse has joined #nixos
<cmacrae>
Anyway; I was going to ask: Is there a clean expression I can use to simply loop over those in the 'overlays/' directory, rather than having to declare each one?
<bbigras>
I didn't think it was a systemd unit but "services.xserver.displayManager.job" might be to define /etc/systemd/system/display-manager.service. If so, the lib I'm trying to add would already be included.
<bbigras>
I'm trying use Active Directory with sssd. I can log in with ssh but not with gdm. With strace I saw that gdm-session-worked didn't have [...]sssd-1.16.0/lib in its LD_LIBRARY_PATH.
<bbigras>
I was hoping to LD_LIBRARY_PATH on its parent.
<aanderse>
i'm having some issues setting up nix to build with private git repo
<aanderse>
so i have ssh-config-file set in my nix path, and the identity file it specifies is readable by the nix builder
<aanderse>
the error i'm experiencing something like:
<aanderse>
the ssh key was added to the gitlab instance and i confirmed that i can clone it etc... with a user account that has a .ssh/config pointing to the key
<aanderse>
export git@git.----------/some-project.git (rev ----) into /nix/store/------
<aanderse>
initialized empty git repository in /nix/store/-----
aanderse has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<aanderse-work>
so i have ssh-config-file set in my nix path, and the identity file it specifies is readable by the nix builder
<aanderse-work>
the ssh key was added to the gitlab instance and i confirmed that i can clone it etc... with a user account that has a .ssh/config pointing to the key
<aanderse-work>
the error i'm experiencing something like:
<aanderse-work>
export git@git.----------/some-project.git (rev ----) into /nix/store/------
<aanderse-work>
initialized empty git repository in /nix/store/-----
<aanderse-work>
no user exists for uid 1000
<aanderse-work>
fatal: could not read from remote repository
<aanderse-work>
please make sure you have the correct access rights and the repository exists
<aanderse-work>
does anyone have any experience getting this working?
aanderse-work has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<infinisil>
....
Henson has joined #nixos
<gchristensen>
if he manages to come back, tell them to use a pastebin!
<gchristensen>
and collapse their messages in to fewer lines
<infinisil>
I was just about to hit ,paste too lol
<sphalerite>
{^_^} has quit (Killed (Sigyn (Spam is off topic on freenode.)))
<Henson>
is there a way to get Nix to manage files in the /etc directory if I'm not using NixOS? Is it permissible for derivations to alter things outside of the nix store?
<sphalerite>
Henson: the former, sort of. The latter, no
<aanderse-work>
ok... i'm having issue with private git repos
<sphalerite>
Henson: you can make symlinks in /etc to a nix profile
aanderse-work is now known as aanderse
<aanderse>
anyone have any experience getting private git repos working with nixos and ssh keys?
cmacrae has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<gchristensen>
sphalerite: {^_^} can't be killed by Sigyn :)
<aminechikhaoui>
aanderse: I think you need to add ssh://git@..
<aminechikhaoui>
?
hiroshi- has joined #nixos
<sphalerite>
gchristensen: ;)
<Henson>
sphalerite: yes. So I'd just link files from ~/.nix-profile/etc into /etc? But that would have to be done manually outside of Nix? It might even be possible to set up a unionfs overlay to automatically bring things from the Nix profile into the /etc directory without having to do it manually.
sphaugh has quit [Quit: leaving]
<clever>
aanderse: have you looked at builtins.fetchGit, it doesnt need most of that ssh setup
<Henson>
sphalerite: what I mean by "manually outside of Nix", is I couldn't have a Nix derivation do the linking for me
<gchristensen>
Henson: you can create an "activation" script which just makes symlinks in to /etc, and you nix-build it and then execute
<aanderse>
clever: is fetchgit different than fetchGit? and can fetchGit handle private repos via ssh keys?
<sphalerite>
Henson: Yes, although I'd probably create a different profile for it and use `nix-env -p /nix/var/nix/profiles/etc --set -f my-etc-derivation.nix`
<clever>
aanderse: builtins.fetchGit runs the git clone outside of any nix sandbox, so it can just use normal ssh keys in $HOME
<sphalerite>
Henson: and manage the symlinks using stow maybe. Or the unionfs/overlayfs option you mentioned, or a script that symlinks in all the files built (but not run)by nix itself
<sphalerite>
as gchristensen mentioned
sphaugh has joined #nixos
hiroshi has quit [Ping timeout: 256 seconds]
hiroshi- is now known as hiroshi
<aanderse>
clever: that sounds great! i'll try it right now
<sphalerite>
Henson: but yeah, nix derivations can only produce their output paths and can't touch anyhting outside them
<Henson>
sphalerite, gchristensen: ok, thanks for your help!
<sphalerite>
in principle that is. This is enforced by sandboxing, which can be turned off. You could probably make it work somehow by disabling sandboxing and with some very dodgy permissions. But that's really not a good or useful path to follow :)
<aanderse>
clever: no sha256 attribute with fetchGit? how is the source verified?
fendor has quit [Ping timeout: 244 seconds]
<sphalerite>
aanderse: it's not
<sphalerite>
aanderse: you can provide a sha256 in which case it is, but if you don't it behaves completely impurely
<aanderse>
sphalerite: i get an error: unsupported argument 'sha256' to 'fetchGit'
<aanderse>
how do i provide a sha256?
<clever>
aanderse: if you provide a rev, it should mostly be good
<aanderse>
clever: do you have any examples of this? since its the same as fetchgit google search isn't being overly helpful...
<yosemitesam>
Is there a way to build the package qtile with python36 instead of python27 while using services.xserver.windowManager.qtile.enable = true?
<yosemitesam>
I could build qtile with python36 in user env with an overlay which does qtile = super.qtile.override { python27Packages = python36Packages; };
<aanderse>
oh wow thank you all so much for your help!
<aanderse>
i never knew about fetchGit
<yosemitesam>
Should I just add the same overlay in the system configuration or is there a better way to do it in the configuration itself?
<aanderse>
fantastic!
<yosemitesam>
*in the configuration.nix itself
<aanderse>
i've been banging my head all morning trying to get some key stuff working from a blog post
<sphalerite>
yosemitesam: yep that should work
<infinisil>
Any python knowers here? How do I make buildPythonApplication build all setup.py targets? If that's even a thing
<{^_^}>
[nixpkgs] @rawkode opened pull request #45029 → Update vscode from 1.15.1 -> 1.26.0 → https://git.io/fNN83
Ericson2314 has joined #nixos
FareTower has quit [Ping timeout: 244 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<infinisil>
Mic92: According to the setuptools docs these extra_requires are only optional dependencies, and installing `package[extra1, extra2]` would make it add these extras
<infinisil>
But I still don't know how I could do this with buildPython{Application,Package}
johnw has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @eadwu opened pull request #45030 → [WIP] nvidia_x11_beta: reinit at 396.51 → https://git.io/fNN4x
<elvishjerricco>
domenkozar: Do you think there's any chance of getting monoidal configuration for Nix? The fact that `cachix` just copies the cache list in `/etc/nix/nix.conf` to `~/.config/nix/nix.conf` makes me a little queasy, for what if `/etc/nix/nix.conf` is later modified? Plus with some kind of monoidal configuration, we wouldn't need special options to extend things on the command line.
<infinisil>
Oh, I figured it out..
<infinisil>
Nix's buku package was declaring installPhase, which overrides the pip install
<etu>
The questioning is about emacsWithPackages in my link above
<infinisil>
What should I do? How can I specify this exact license in meta?
<MichaelRaskin>
Isn't it BSD3?
<Dezgeg>
yes
<infinisil>
Ohh
<infinisil>
Thanks
jiaew3 has joined #nixos
<bkchr[m]>
Hmm, my zsh configuration complains about zsh-autosuggestions on my raspberry, that it can not find brew? On my Laptop the configuration works without problems..
alex`` has joined #nixos
rouma7 has joined #nixos
<Denommus>
where does the gitlab module actually loads gitlab-smtp-settings?
<kenshinCH>
Hi all. At work I have an iMac and I can't bear MacOS anymore, so I'm strongly thinking of installing NixOS, at first in dual boot and then who knows. Can someone tell me their experience with NixOS on Mac, or point me to web resources? I'd like to be sure it actually works well before making a mess at work :)
kisik21 has quit [Ping timeout: 256 seconds]
jbaum98_ has joined #nixos
jbaum98_ has quit [Client Quit]
jbaum98 has joined #nixos
<jbaum98>
i'm having issues with openblas on darwin. are there known issues with that?
revtintin has quit [Quit: WeeChat 1.9.1]
<ivan>
kenshinCH: you could try getting used to it in a VM first
<kenshinCH>
symphorien: thanks! But I'm afraid mine is an iMac and there I see only MacBooks :7
mahavira has joined #nixos
<mahavira>
I'm failing to get any internet access using nix utilities, inside a docker image. It fails to do download a package or update a channel, but curl, for example, works fine. Any idea why?
<typetetris>
mahavira: Can it be a proxy configuration issue?
johnw has quit [Ping timeout: 256 seconds]
<inquisitiv3>
How do I get WIFI working on my laptop? I installed NixOS yesterday. I have an Intel chip for WIFI. Allowed unfree packages. But can't find Plasma's GUI for connecting to wireless networks in the system tray. Can't find anything relevant to install when I search after packages with the term "network".
<clever>
inquisitiv3: does `iwconfig` or `ip link` show a wireless interface?
<goibhniu>
have you enabled network manager?
<sphalerite>
inquisitiv3: does the interface show up in `ip link`? It should be something starting with wl
<{^_^}>
[nixpkgs] @ocharles pushed commit from @hrdinka to master « postgresql: fix tzdata path »: https://git.io/fNNKi
<Dedalo>
clever I manage to make Sway + Wayland working with Termite terminal and a lot of other stuff. Having Firefox running in a "terminal" window is orgasmic :-)
<ongy>
where is the output of my X session (stderr) storred by default on nix?
Izorkin has joined #nixos
<sphalerite>
ongy: depends on your dispaly manager, but places to look would be journalctl and ~/.xsession-errors
<ongy>
ehh, I think that's slim? And I didn't pick it^^
<infinisil>
Oh also the "pull" one could probably be made easier and correcter with the api endpoint for the archive
<mpickering>
That looks decent but I'm not very good at customising things with custom commands
<Drakonis>
by the way, isn't there some project to enable running nixpkgs modules independently of whether you're running nixos the distribution?
<mpickering>
is zsh the shell that most people use now?
<d1rewolf>
anyone using qutebrowser on nixos and is able to watch videos? Apparently needs some gstreamer plugins...just wondering which pkgs to install
<Drakonis>
ehhh kind of
<EmilHem>
Hi, I'm trying to make an executable work but ldd reports that libstdc++.so.6 is missing. I ran 'find / | grep -i libstdc++.so.6' and found a couple of stores installed with that library. Ex: '/nix/store/v49g935rhxm5f6vjrlj5afl0vphd7znc-gcc-7.3.0-lib/lib/libstdc++.so.6'. I have gcc installed via systemPackages. Now to my question, how can I make the executable find that library?
<{^_^}>
EmilHem (re "gcc installed"): Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<mpickering>
But use patchelf is the correct answer if this is a binary from the wild
<EmilHem>
The binary is node which is from the wild.
<clever>
EmilHem: nodejs?
<EmilHem>
Indeed
<clever>
EmilHem: just use the node already packaged in nixpkgs?
<EmilHem>
Installed via NVM (Node Version Manager)
shabius has joined #nixos
<clever>
EmilHem: any tool that downloads ELF files like that is going to break on nixos, its simpler to just use the versions packaged in nix
<symphorien>
I don't know anything about nvm, but look like you could replace it by just nix-shell
<clever>
"nix-shell -p nodejs", or nodejs-10_x or nodejs-6_x ...
<EmilHem>
clever: I know, that is the easy way. I was just curious to see whether I could make it work without the nixpkgs version
<symphorien>
nix-shell -p nodejs-6_x
<clever>
EmilHem: you would need to re-run patchelf on the binary every time nvm decides to update it
<EmilHem>
symphorien: Damn, you are right! xD I might actually use that solution instead! :D Thanks!
<symphorien>
also a garbage collection could remove the library you patchelf to
<clever>
yep
<sphalerite>
EmilHem: if you really want to not use nix, I'd suggest doing it on another distro, in a VM or container :p
<clever>
symphorien: i also have a util to solve both issues at once...
<clever>
symphorien: fix the library list, run nix-build, the result symlink is now a GC root for those libraries
<symphorien>
I see
<clever>
symphorien: the result symlink is also a bash script that will patch $1
<clever>
so you can ./result node to re-patch node at any time
<d1rewolf>
manveru: I'm revisting your dotfiles...speifically i3.nix. could you point me to where the actual config file is created (~/.config/i3/config)?
<clever>
but in this case, its easier to just `nix-shell -p node`
<clever>
the gist is more for things like games, where you dont(or cant) use steam-run, and need to re-patch them regularly
<clever>
or for just testing what libs you need before you write a full package
<EmilHem>
clever: Thanks, I'll look into your gist.
<Denommus>
how is the gitlab module generating the from: in emails?
<etu>
thanks {^_^} :)
<Denommus>
here it appears as git@<mydomain>
sanscoeur has quit [Read error: Connection reset by peer]
haitlah has quit [Remote host closed the connection]
sanscoeur has joined #nixos
haitlah has joined #nixos
<Izorkin>
infinisil: this patch worked and ohers OSes
<d1rewolf>
anyone using qutebrowser on nixos and is able to watch videos? Apparently needs some gstreamer plugins...just wondering which pkgs to install
haitlah has quit [Remote host closed the connection]
ryanartecona has joined #nixos
infandum has joined #nixos
<jiaew3>
how can one customize a nixpkgs package and install with nix-env? --arg doesn't seem to work
<infinisil>
jiaew3: You gotta be a bit more concrete than that
<infandum>
I'm a haskell user. I normally use stack. I want to make a configuration.nix that basically makes my entire setup. I want to have taffybar installed, but my configuration uses other haskell libraries as well. I'm a bit confused on how to tell nixos to install taffybar with additional libraries that it can see. How can I do this? I found a few places online that hint at this, but they are very confusingly explained.
<hyper_ch>
Mic92: Linux subi 4.18.0 #1-NixOS SMP Sun Aug 12 20:41:04 UTC 2018 x86_64 GNU/Linux
<hyper_ch>
Baughn: with adding that to the boot initrd it worked now fine again with degraded pool
sigmundv has quit [Ping timeout: 240 seconds]
<jiaew3>
I am trying to install geant4 with some options and use nix-env -iA nixos-unstable.geant4 --argstr enableQT true . but the enableQT argument is still not set to true
<clever>
EmilHem: you would just run nix-build directly on that file, and it generates a bash script called result
<clever>
EmilHem: then you run result on the node binary that NVM had downloaded
<inquisitiv3>
Is it only I who think that the window title bar in Plasma is very high?
<inquisitiv3>
Is feels that it's a bit higher than in Debian or Fedora.
drakonis_ has joined #nixos
Drakonis has quit [Ping timeout: 256 seconds]
<EmilHem>
clever: That's pretty cool! Thanks again. Now I see that the other libraries change a bit but the 'libstdc++.so.6' doesn't want to "appear"
<clever>
EmilHem: thats in the gcc package
<clever>
EmilHem: add gcc.cc to the library list
* emily
does "sudo pkill -9 -u nixbld", wonders if there's a less terrible way of dealing with e.g. losing your terminal during a nixos-rebuild leaving it seemingly hung
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<EmilHem>
clever: Damn! That did it! How come the '.cc' part is needed?
<clever>
gcc is a wrapper package, that generates a bash script called gcc, which deals with making nix work
<clever>
gcc.cc is the raw gcc package, that doesnt understand how to find things in buildInputs
<EmilHem>
clever: Huh! Really interesting. I'm pretty new to Nix but have used Arch and Debian for a looong time so this is new and exiting stuff! Thank you for the help!
<clever>
yep
JonReed has joined #nixos
alex`` has joined #nixos
<JonReed>
Hi, so `$out/bin` automatically gets added to $PATH. Is there a way for an expression to just add an arbitrary env variable that can be used in a normal user shell when that expression gets installed using nix-env?
<JonReed>
What I want to do is to install a directory into nixstore and then be able to move it out of the nixstore with `mv $myInstalledDirectiory ./` from a shell. This is because some repositories are easier to use by just running "python <script>.py" because they expect to output into the same directory.
<clever>
JonReed: wrapProgram can be setup to run cd before running the binary
<JonReed>
clever: So, there isn't really a way to do `GLOBAL_ENV_VARIABLE=$out` and then access $GLOBAL_ENV_VARIABLE when the expression like `default.nix` gets installed using `nix-env`?
<clever>
JonReed: not really
<clever>
JonReed: but you could create a bash script that does the cp for you
<clever>
JonReed: ignore the bot, that will generate a bin/scriptname shell script, which when ran, will copy the snapshot of ./. (insert whatever you want there) to .
<emily>
sphalerite: I did it without -9 first and it still didn't unstuck nixos-rebuild :(
<Dezgeg>
I typically SIGINT the nix-build invocations itself
<JonReed>
clever: Okay that makes sense. Thanks.
sigmundv has joined #nixos
<clever>
JonReed: you can also use a ''string'' for the 2nd argument, then just use normal newlines in your editor
fragamus has quit [Remote host closed the connection]
vidbina_ has quit [Ping timeout: 240 seconds]
<SirMadam>
Hey, does anyone know if you can install a package by it's store hash? I'm attempting to install an old version of a package (from an old nixpkgs) and some of the methods seem a bit inconvenient
<{^_^}>
q3k: 0. Sorry. 1. If you complain about PR being in limbo, always provide a number («I have an unmerged PR (#23924)…»), bot will print PR title and it might bring you an impulse-merge. 2. Please look up who commits similar work and ping these people (or request-review), keeping up with all the PRs is not really possible.
<Denommus>
how can I root-login a machine with an hyphen in the name?
<Denommus>
like gitlab-runner
<clever>
Denommus: with nixops?
<q3k>
infinisil: thx
<Denommus>
forget it
<clever>
Denommus: or nixos-containers?
<clever>
Denommus: or ssh?
<Denommus>
the machine was down
<infinisil>
q3k: Also, 20 hours old is one of the newer PR's. There are ones who haven't been merged for months, even simple ones
<Denommus>
clever: nixos-containers
<q3k>
infinisil: i'm not complaining, btw
<clever>
Denommus: should be as simple as `nixos-container root-login gitlab-runner`
<infinisil>
Yeah, the ,pr message is a bit misleading regarding that :)
<Denommus>
clever: yeah, the container was down, my mistake
infandum has quit [Remote host closed the connection]
<clever>
shlevy: is there a simple function that can be combined with haskell.lib.getHaskellBuildInputs to flatten a dep tree down to a single list?
<Denommus>
anyone has any idea of what this means? Aug 14 21:16:08 webserver container gitlab-runner[1519]: Error: argument "ve-gitlab-runner" is wrong: "dev" not a valid ifname
<infinisil>
clever: lib.closePropagation probably
<Denommus>
this happens when I try to start my container
<clever>
infinisil: the one in deprecated.nix ?
<infinisil>
Yup..
<infinisil>
No idea why it's in there, I couldn't find an explanation for it, searched all the way back to its introduction
<clever>
infinisil: it only searches propagatedBuildInputs and propagatedNativeBuildInputs, and even those will have holes due to the runtime nature of that system
<clever>
infinisil: but i can steal it as an example, and write a haskell.lib.getHaskellBuildInputs variant
<infinisil>
Yeah :)
<Dedalo>
clever I need to install the Sway 1.0 alpha, but on the repo there is only the 0.15.2
hamishmack has joined #nixos
<clever>
Dedalo: you need an override the changes the src and name attributes
<Dedalo>
clever first of all, I do I check if is it available on the unstable branch?
<clever>
Dedalo: you can check master first on github
<clever>
Zajcev: vsftpd is trying to namespace itself, but containers are not allowed to create namespaces
<clever>
Zajcev: either run it outside the container, or disable the chroot'ing
<sphalerite>
Dedalo: so in the case of sway primeos would be the one to approve it. I'm not sure primeos has merge rights so you'd want to get them to approve it then get someone else to merge it (Mic92 merges many many things)
<sphalerite>
Dedalo: for unproblematic PRs, this doesn't usually take too long
<sphalerite>
Dedalo: but you can use it before the PR is merged anyway
<Dedalo>
oh, I can use it anyway?
<Zajcev>
clever: i'll try
<sphalerite>
Dedalo: yes, the nix-env command that I wrote builds it and installs it in your profile
<sphalerite>
Dedalo: the commit and PR bit is just so others can use it too :)
<Dedalo>
sphalerite sounds great!
seequ has quit [Ping timeout: 256 seconds]
<Dedalo>
because the version of Sway I have installed doesn't support fractional scaling, and for me res / 2 is too much
<Dedalo>
but native resolution is too small
<Dedalo>
I'm getting old :-)
<sphalerite>
:D
<Zajcev>
clever: still the same problem
<Zajcev>
clever: chroot disabled
<{^_^}>
[nixpkgs] @jtojnar pushed to master « python.pkgs.orderedset init at 2.0.1 »: https://git.io/fNNjO
simukis has quit [Ping timeout: 256 seconds]
<clever>
Zajcev: did you restart the container?
<Zajcev>
yes
Denommus has quit [Remote host closed the connection]
<Zajcev>
all containers I've tried had the same result
Ariakenom_ has quit [Quit: Leaving]
inquisitiv3 has quit [Remote host closed the connection]
<JonReed>
Is there a `nix-env` command/argument that where you can install `default.nix` from the current direcory. Currently, I have to run `nix-build` first and then `nix-env -i <copied-path-from-nix-build>`.
<sphalerite>
JonReed: nix-env -f . -i
<LnL>
urgh, why doesn't GPG_TTY work anymore...
<JonReed>
sphalerite: Thanks! Will add this to my cheatsheet
drakonis_ has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 260 seconds]
hamishmack has quit [Ping timeout: 256 seconds]
Lisanna has quit [Quit: Lisanna]
PyroLagus has joined #nixos
jiaew3 has quit [Ping timeout: 252 seconds]
<pie_>
is it possible to prevent nix-build from trying to download binary info for a derivation?
<pie_>
when i dont have a network connection i cant rebuild stuff i aready have all the necessary files for because nix-build fails on network timeouts
<emily>
hmm, is it expected that /nix/store/rmvx2f6lwjr4hi3zrz4wplpiil11fj5r-hicolor-icon-theme-0.17/share/icons/hicolor/index.theme doesn't end up getting linked into /run/current-system/sw/share/icons/hicolor?
<emily>
so things can't find an icon theme index?
<emily>
oh, I guess because I don't have it in systemPackages ^^;