<tilpner>
That is a module, and you can use it by putting services.foldingAtHome.enable = true; into your nixos-config
ssmike has quit [(Ping timeout: 248 seconds)]
Khetzal has quit [(Ping timeout: 252 seconds)]
joncfoo has quit [(Ping timeout: 248 seconds)]
erasmas has quit [(Quit: leaving)]
dhess has quit [(Remote host closed the connection)]
drakonis has joined #nixos
dhess has joined #nixos
requisitebits has quit [(Ping timeout: 240 seconds)]
markus1199 has joined #nixos
markus1189 has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
jtojnar has joined #nixos
rogue_koder has quit [(Read error: Connection reset by peer)]
rogue_koder has joined #nixos
griff_ has quit [(Quit: griff_)]
joncfoo has joined #nixos
griff_ has joined #nixos
<catern>
hey #nixos
griff_ has quit [(Client Quit)]
<catern>
why does Nixpkgs default to Ocaml 4.0.2?
<catern>
that's ancient
hellrazo1 has quit [(Ping timeout: 240 seconds)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<gchristensen>
FRidh[m]: around? I'd love to update ofxclient in 17.09 but it is a fairly big jump. I don't think I can just cherry-pick the changes from master. any opinions?
griff_ has quit [(Client Quit)]
hellrazo1 has joined #nixos
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 1 new commit to master: https://git.io/vFKDB
<NixOS_GitHub>
[nixpkgs] danbst opened pull request #31641: mysql module: fix flaky check (master...patch-13) https://git.io/vFKDi
NixOS_GitHub has left #nixos []
marantz has joined #nixos
<gchristensen>
hi marantz
<marantz>
hi graham
<gchristensen>
so once you get git, before checking out release-17.09, I'd suggest trying: nix-build . -A python3Packages.ofxclient someone recently put in some patches for it on Unstable, and let's see if it works
<marantz>
will do, still cloning
<gchristensen>
sounds good
<gchristensen>
do you know ofxclient to work elsewhere?
<marantz>
I've used it under debian (real old) and ubuntu (just old)
<gchristensen>
ok
<gchristensen>
my experience with it this evening is that it is a bit brittlee
<marantz>
very. I'd guess that most everyone has to write custom glue for there particular accounts
<marantz>
nix-build fails since I don't have a default.nix
<gchristensen>
ah, so run that from within the nixpkgs checkout
<marantz>
much better
hariel has quit [(Remote host closed the connection)]
<marantz>
nix-build is done
hariel has joined #nixos
<gchristensen>
ok, there is a result symlink in ./ , try ./result/bin/ofxclient
<gchristensen>
and cross your fingers or something
<marantz>
seems to work. how should I install it?
<catern>
ocaml support in Nix seems really poor, why is that?
<catern>
why hasn't the ocaml community (such as it is) enthusiastically embraced Nix? OK in truth I'm only saying this because there's no doc section in Nixpkgs about Ocaml
<catern>
(in the Nixpkgs manual that is)
<gchristensen>
marantz: you can literally do nix-env -i ./result :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vFKy8
<NixOS_GitHub>
nixpkgs/master d5bdfcb Dan Peebles: darwin.make-bootstrap-tools: fix ICU reference to improve purity
NixOS_GitHub has left #nixos []
<marantz>
great. thanks
<gchristensen>
marantz: :) you're welcome! I hope that does the trick :$ I'll see if I can get the patches from unstable ported to stable
acowley_away is now known as acowley
<marantz>
me to. catch you later. now I have to see if the downloader works :-)
<gchristensen>
why is the build queue so short ...
justanotheruser has quit [(Ping timeout: 240 seconds)]
MP2E has quit [(Remote host closed the connection)]
<catern>
it's a christmas miracle!
Supersonic112 has quit [(Disconnected by services)]
theseriousadult has joined #nixos
throwaway_name has quit [(Ping timeout: 240 seconds)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
taktoa has joined #nixos
jgertm has joined #nixos
joko has quit [(Ping timeout: 248 seconds)]
joko has joined #nixos
jtojnar has joined #nixos
mbrgm has quit [(Ping timeout: 248 seconds)]
mbrgm has joined #nixos
<marantz>
gchristensen another riddle. nixpkg web site says there should be a python ledger-autosync but it doesnt seem to exist in the repository. any clues on investigating this?
tgunb has quit [(Ping timeout: 240 seconds)]
<gchristensen>
marantz: it looks like adisbladis removed it from unstable, ledger-autosync is there for 17.09
<gchristensen>
in the release-17.09 branch. I wonder why adisbladis deleted it?
<marantz>
me too. wouldn't `nix-env -i python3Package.ledger-autosync` be able to find it if that is my channel?
<gchristensen>
try doing it by attribute, `-iA` instead of `-i`
<adisbladis>
Because it was several years out of date with no maintainer
<gchristensen>
ah that'll do it :)
jgertm has quit [(Ping timeout: 260 seconds)]
griff_ has joined #nixos
<marantz>
attribute ‘python3Package’ in selection path…
<gchristensen>
note I tried python3Packages first (after I noticed the typo) then got the error "error: beautifulsoup-3.2.1 not supported for interpreter python3.6m" so I tried python2Packages and that worked
<marantz>
I might check out the channel branch and build it too
<gchristensen>
sure, patching it to use beautifulsoup4 on release-17.09 would be easy
<marantz>
I'll see how lazy I end up being
<gchristensen>
:)
<jtojnar>
what does $(out) mean?
<jtojnar>
is not $() shell interpolation?
<vaibhavsagar>
hey, I'm trying to build a docker image with nix and all the double quotes in my Cmd are getting escaped
<vaibhavsagar>
is there a way to work around this?
<gchristensen>
marantz: I'm heading out for the night, good luck
<marantz>
I'm doing the dishes then going to bed :-)
<gchristensen>
same :)
marantz has quit [(Quit: Leaving.)]
<fearlessKim[m]>
I am trying to mimic 'nix-shell -A pkgX' via 'let pkg = pkgs.pkgX; in pkg' in a shell.nix . nix-shell returns 'expression does not evaluate to a derivation' though pkgX is ?!
mizu_no_oto has joined #nixos
<catern>
hey #nixos
griff_ has quit [(Quit: griff_)]
<catern>
the generic builder doesn't seem to set the PREFIX environment builder, is that right?
<fearlessKim[m]>
I was passing the wrong nixpkgs, problem fixed sry
<catern>
how else can I write a simple makefile that works for Nixpkgs?
jb55 has quit [(Quit: WeeChat 1.9)]
<catern>
i guess I can just use ${out}
<fearlessKim[m]>
catern you mean stdenv.mkDerivation ? I would be surprised if it didn't
<catern>
yes, stdenv.mkDerivation, it doesn't set the PREFIX environment variable
<catern>
as far as I can tell anyway
<catern>
yeah, it doesn't seem that it does
python476 has quit [(Ping timeout: 240 seconds)]
matthewbauer has joined #nixos
erictapen has quit [(Ping timeout: 268 seconds)]
Dr8128 has quit [(Ping timeout: 240 seconds)]
grenade has quit [(Ping timeout: 250 seconds)]
grenade has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
drakonis has quit [(Read error: Connection reset by peer)]
patrl has quit [(Quit: WeeChat 1.9.1)]
<dhess>
Anyone around who's using Hydra?
matthewbauer has joined #nixos
MP2E has quit [(Remote host closed the connection)]
matthewbauer has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vFKFZ
<NixOS_GitHub>
nixpkgs/master ce8dea6 Cray Elliott: mwprocapture: patch to fix build for linux 4.14
NixOS_GitHub has left #nixos []
patrl has joined #nixos
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
notthemessiah has joined #nixos
<notthemessiah>
Okay, so I'm very confused because I installed NixOS and it doesn't seem to know about /etc/passwd or anything
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin closed pull request #31639: Dosbox on darwin (master...dosbox-on-darwin) https://git.io/vFK6F
NixOS_GitHub has left #nixos []
<notthemessiah>
It can't start any display managers, I can only log in as root in certain generations.
Vorpal has joined #nixos
Vorpal has quit [(Changing host)]
Vorpal has joined #nixos
<patrl>
@notthemessiah can you share your configuration.nix?
MP2E has joined #nixos
matthewbauer has joined #nixos
<notthemessiah>
patrl: it's pretty close to what came out of nixos-generate-config, and I can clearly see the generated files in /etc/passwd and /etc/group
<patrl>
have you created a user in your configuration.nix
<patrl>
@notthemessiah and declared a display manager?
<notthemessiah>
Yes, and I set display managers and desktop environments and all.
matthewbauer has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<patrl>
@notthemessiah if you share your config I will look and see if anything obvious is wrong
<notthemessiah>
even if I didn't I should be at least be able to su into my generated user. Okay, I'll try to get it uploaded
<notthemessiah>
oddly enough, it seems to work as it should when I chroot from Ubuntu.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler opened pull request #31645: prometheus-surfboard-exporter: init at 2.0.0 (master...surfboard) https://git.io/vFKb5
<notthemessiah>
I disabled both, but I still get a "No passwd entry" when I su into my main user
<clever>
notthemessiah: use sudo, not su
<clever>
notthemessiah: "sudo -u USER -i"
<notthemessiah>
"sudo: unknown user" "sudo: unable to initialize policy plugin"
kmc has quit [(Quit: leaving)]
<clever>
notthemessiah: are you booted into the install or the livecd?
<notthemessiah>
I used nixos-install --chroot to enter into the install. I get the same bug if I boot up.
<notthemessiah>
it's like /etc/passwd doesn't exist, even though I clearly see it there.
<clever>
nixos-install --chroot doesnt setup the new users
<clever>
you need to boot it to make the users exist
<dhess>
clever: What is your Hydra workflow like? Let's say you're developing a new package. Edit, build locally, commit, Hydra?
<clever>
dhess: you can use nix-build to test the release.nix file locally, so you can pre-test things the same way hydra will test them
<clever>
so you can make sure you never push stuff that will fail on hydra
<notthemessiah>
[FAILED] Failed to start Login Service.
<dhess>
clever: the release.nix files in Nixpkgs certainly don't include everything though?
<clever>
dhess: mostly, i be aware of what attributes of release or top-level my changes affect, and build those to test them
<clever>
hydra handles covering everything, to find things i may have missed
Lisanna has joined #nixos
<dhess>
clever: I'm trying to figure out if Hydra has any value for me. I have a small set of hosts, maybe 10-15, 4 different architectures. Right now I just kick off a build when I deploy with NixOps, with 1 build server for each architecture.
<dhess>
using remote-systems.conf
<clever>
dhess: ahh
<clever>
dhess: hydra can handle pre-building things before nixops needs it, so deploys are faster
<notthemessiah>
seems like systemd-logind.service "entered failed state" every time I boot, so I'm tempted to just save my config and wipe my partition and start anew and pray
<clever>
dhess: hydra can automate running tests (in a vm) on the current and future nixpkgs version, so you know if things are broken before you deploy
<Lisanna>
dhess: have you written any tests for your things in Nix?
<dhess>
clever: right. I had planned to use Hydra to update my Nixpkgs channel once a day or whatever and kick off a build so that I know whether it's safe to update and deploy
<clever>
notthemessiah: you can try just wiping only /etc and keep the config, no need to even reinstall
<dhess>
Lisanna: No, not yet. :(
<Lisanna>
also, hydra runs a nix channel basically, so it can save you from having to do that work yourself
<dhess>
Lisanna: right.
<clever>
dhess: hydra cant edit the channel, but you can point hydra to the head of the channel
<dhess>
clever: yeah that's what I meant.
<dhess>
ok so I guess I'll use it that way. I should develop some tests for my stuff as well.
matthewbauer has joined #nixos
<notthemessiah>
@clever: I tried that once, and it didn't get me far (I deleted everything but the contents of /nix/store)
<dhess>
I suppose I'll need a release.nix that covers the services I want to deploy
<Lisanna>
btw, how flexible is hydra in terms of programming it to get the sources for various things? I take it it handles git etc. well enough
<dhess>
Is it possible to create a release.nix from a NixOps machine definition?
<clever>
dhess: thats one of the things ive been wanting to finish
<clever>
dhess: currently, you just need to define a release.nix file and have it return derivations for the major services
<Lisanna>
currently I have a bunch of bash scripts that I run regularly which prefetch the sources and their hashes from all kinds of crazy places, and am hoping to drop Hydra in there in the future
<dhess>
clever: yeah, that's what I gathered.
matthewbauer has quit [(Ping timeout: 240 seconds)]
qz has quit [(Quit: WeeChat 1.4)]
<Lisanna>
hey, how do I get the nix tools like nix-store inside a runCommand in runInLinuxVM? i.e., what package should I add to the buildInputs?
<joehh>
Lisanna: does adding the "nix" package do it?
patrl has quit [(Ping timeout: 248 seconds)]
<Lisanna>
*did not know that this was a package*
<Lisanna>
I guess it makes sense ^^
<joehh>
:):)
<joehh>
I've a very similar question, but for nixos-rebuild
<Lisanna>
now to figure out the correct way to use nix-store --import / --export
<adisbladis>
I'm waiting for the fix to land in master before migrating anything
<hyper_ch>
adisbladis: oh... that needs space
gspia has quit [(Quit: Leaving)]
<adisbladis>
hyper_ch: Yeah :<
<adisbladis>
But still, could have been way, way worse
<hyper_ch>
:)
gspia has joined #nixos
Wizek has quit [(Quit: Connection closed for inactivity)]
patrl has quit [(Client Quit)]
<Lisanna>
I've included a package in runCommand's buildInputs, and inside the VM I call nix-store -qR /nix/store/<mypkg>, and it fails with "error: path '<mypkg>' is not valid", but running the same command outside the VM works fine. And I confirmed that the path exists in the VM, I can ls it and everything
<clever>
Lisanna: can you gist the nix expression?
<clever>
Lisanna: only things in the scope of the nixos for the vm will be "valid" in its nix store, but it will still have read access to things that are "not valid"
<Lisanna>
clever: there is no nixos on the vm, it's a custom disk image
<clever>
Lisanna: ah, i'll need more info then about what your doing, the nix expression would be a good start
<clever>
so line 7 runs the build script of 8 inside a vm, as root
<clever>
and nix plus utillinux plus packages will be in PATH
<Lisanna>
yeah
kier has quit [(Quit: No Ping reply in 180 seconds.)]
<Lisanna>
And preImg has an install of Nix on it, from a previous runInLinuxVM
<Lisanna>
it's a fedora-like OS on the image
p4cman has joined #nixos
<clever>
Lisanna: line 31 is using the nixos vm, not the /mnt nix
<Lisanna>
I know
<clever>
also, the new nix copy lets you do similar things
<clever>
and there is a make-disk-image in nixos to do this
<Lisanna>
I've looked at make-disk-image, but that installs a full NixOS, doesn't it?
matthewbauer has joined #nixos
<clever>
for the most part, yeah
<Lisanna>
yeah, so I need a function which modifies an existing disk image. I've already gotten the "install Nix" part working, now I'm just trying to add arbitrary things to its store
<clever>
ah
<clever>
you could use the new nix copy for that
<Lisanna>
what's that?
<clever>
let me find an example
<clever>
its from nixUnstable
<clever>
nix copy --to local?root=/mnt
<clever>
this lets you recursively copy things from one store to another, including all deps
<clever>
it works similar to nix-copy-closure, but allows the destination to be a local FS
<clever>
no need for chroot
<clever>
just pop nixUnstable into line 9, and: nix copy --to local?root=/mnt/ ${paths}
<fearlessKim[m]>
how can I find where a nix variable is evaluated for the first time ? a variable is evaluated too soon during a kernel build which creates a bad behavior while in a nix-shell
kier has joined #nixos
<hyper_ch>
adisbladis: how did you find that errata?
<clever>
Lisanna: add a "set -x" near the top and then see what happens
<Lisanna>
which evaluates to "nix copy --to local?root=/mnt /nix/store/<mypkg>"
<clever>
and did the error happen right after that?
<Lisanna>
Yeah, I put echo guards around nix copy, and the error happens in nix copy
orivej has quit [(Ping timeout: 248 seconds)]
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever>
Lisanna: try prefixing that with "strace -f" and then gist the output
<Lisanna>
was thinking the same thing
<Lisanna>
also, I am getting "warning: the group 'nixbld' specified in 'build-users-group' does not exist", just an FYI, but that shouldn't be affecting this
<clever>
in your case, it has to be ran within the vm
<clever>
and that will make it a valid source for nix copy
averell has joined #nixos
<Lisanna>
okay, working on it
<jluttine>
i'd like to override one string option in configuration.nix but it just appends the value with the "old" value defined by nixpkgs. can i somehow force override it?
<clever>
jluttine: that depends on the type of the option, what is the name of the option?
<fearlessKim[m]>
when does nix choose to copy a path in the /nix/store for a local path ? the kernel config inherits 'src' from the kernel which triggers a copy of the kernel src in the store (slow)
<hyper_ch>
adisbladis: what if /dev/vdb1 doesn't exist?
ma27 has quit [(Ping timeout: 258 seconds)]
<hyper_ch>
wouldn't it be better for the test to create an image file and then load that as disk for the test?
<clever>
fearlessKim[m]: is src refering to a path on disk, or a fetchurl based derivation?
<fearlessKim[m]>
clever: path on disk src=/home/teto/mptcp
<clever>
fearlessKim[m]: the first time that value enters a derivation, nix will import a snapshot of that directory into the store, and hash the whole thing, and replace the value with a storepath
<clever>
fearlessKim[m]: that all happens at eval time, before a single build has begun
<Lisanna>
okay, that would make it impossible to make "incremental" additions to disk images, but that's not the most valuable use case here
<clever>
Lisanna: it creates a full /nix directory, with the closure of whatever paths you give it
<clever>
yeah, incremental changes to /nix are going to be tricky
<clever>
but taking an ubuntu image, and just replacing /nix with a new copy is easy
joehh has quit [(Ping timeout: 248 seconds)]
proteus-guy has joined #nixos
<Lisanna>
Okay, but what about the other symlinks in the user environment? After running the installer and setting up the user env with a bare-bones /nix, if I blow that away with something else, it might have different paths to /nix?
<Lisanna>
different paths to the user environment / nix tools?*
<clever>
Lisanna: yeah, you would probably want to chroot into the image, and re-run "nix-env --set /nix/store/foo --profile /nix/var/nix/profiles/per-user/clever/" to fix the generations
hellrazor has quit [(Ping timeout: 248 seconds)]
<clever>
it would need to point a buildEnv i think
hellrazor has joined #nixos
<Lisanna>
sounds fun... I'm not exactly intimately familiar with the nix user environment, and what all would need to be updated though
<clever>
Lisanna: or just "nix-env -i /nix/store/foo" to install things into a new profile
<Lisanna>
what's /nix/store/foo in your example?
<clever>
any storepath you would want to install with nix-env
endformationage has quit [(Quit: WeeChat 1.9.1)]
<Lisanna>
when would I be able to run nix-env -i? wouldn't I have to do that outside of the VM?
<clever>
you could do it from within a chroot inside the vm
<Lisanna>
since we haven't been able to get it to load the database?
<clever>
unpacking a tarball to /nix should fix that, i think
averell has quit [(Ping timeout: 240 seconds)]
<Lisanna>
okay, so clobber /nix, manually repair the path to /nix/store/...nix/ so I can run nix-env (or call it from /nix directly), chroot, nix-env -i /nix/store/...-mypackage to add it to the current profile?
<clever>
more for manual use, to test and confirm things work
miko__ has joined #nixos
ma271 has joined #nixos
ma27 has quit [(Ping timeout: 246 seconds)]
<Lisanna>
clever: [22:26] <clever> Lisanna: ah, i see, the VM lacks any code to initialize db.sqlite
<Lisanna>
could you explain this a little more?
<clever>
the root shell that you get from runInLinuxVM has full read access to the /nix/store outside the sandbox, but the db.sqlite is empty
leat has joined #nixos
<clever>
so nix considers every file in /nix/store to be invalid
averell has joined #nixos
<Lisanna>
so the db.sqlite in /nix is not created by runInLinuxVM
<clever>
correct
<Lisanna>
Okay, could I create a file before I go into runInLinuxVM which is a backup of the nix store?
<Lisanna>
i.e. is there a way to do nix-store --export, but as part of a Nix derivation?
<clever>
and the nix sandboxing wont let you access the host db.sqlite, because its impure
<clever>
so you need that perl script to create a fake backup, that has the closure of a given path
<jluttine>
if anyone here happens to be interested on cryptocurrencies, i started sketching something similar to BitKey but based on NixOS: https://github.com/jluttine/CryptOS
ma271 has quit [(Ping timeout: 240 seconds)]
<Lisanna>
pathsFromGraph?
zzamboni has joined #nixos
<jluttine>
very much work in progress, just some preliminary sketching
<clever>
Lisanna: something in that area, cant remember which one
matthewbauer has quit [(Ping timeout: 268 seconds)]
<Lisanna>
Okay, so the next thing I'm going to try is pulling that logic out into its own derivation, with the result being that nix-path-registration file
<clever>
make sure the closure-* file exists
<Lisanna>
exportReferencesGraph creates the closure-* files?
<clever>
i think it does
<clever>
you should be able to throw an ls into the build script, to look around
matthewbauer has joined #nixos
universalpackage has quit [(Read error: Connection reset by peer)]
<clever>
it should at least exist in prevm
zzamboni has quit [(Ping timeout: 250 seconds)]
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<adisbladis>
jluttine: Ohh :) I like it!
<Lisanna>
it exists in prevm, not while the vm is running (At least, not in pwd)
zzamboni has joined #nixos
<clever>
Lisanna: youll need to use one of the xchg things to get the file into the vm
<Lisanna>
is xchg/ shared between prevm and during the vm running?
<clever>
Lisanna: check the results of "mount" in the guest, and ls in prevm, you should see an xchg mount point and dir
<clever>
yeah
<adisbladis>
jluttine: I was thinking of something like that for work
<Lisanna>
yeah, I see one in both
jb55 has quit [(Ping timeout: 248 seconds)]
<Lisanna>
it's importing!
<Lisanna>
and even in color! :)
<Lisanna>
and I see it importing the dependencies!
matthewbauer has quit [(Ping timeout: 250 seconds)]
asuryawanshi has quit [(Ping timeout: 248 seconds)]
Itkovian has joined #nixos
<hyper_ch>
hmmm, I just noticed there's no incron for nixos.... anyone has a suggestion what else to use?
<srhb>
Does anyone have the systemd auto rollback snippet from Lumiguide handy anywhere? :)
<srhb>
(Was it Lumiguide? I think it was...)
pie_ has quit [(Ping timeout: 248 seconds)]
ambro718 has joined #nixos
asuryawanshi has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
ertes-w has joined #nixos
<LnL>
don't know if they shared it somewhere
zzamboni has joined #nixos
ebzzry has quit [(Ping timeout: 248 seconds)]
<clever>
srhb: i would just use "nixos-rebuild test" and then maybe configure a watchdog service
<clever>
srhb: test wont touch /boot, so any reboot would rollback
<srhb>
clever: Is a watchdog service something more specific than cobbling a systemd service together that looks for some file to abandon a timer?
<clever>
srhb: the watchdog i had seen last, would check various conditions to see if they are true (is the network up?, is a given service responding correctly?) and reboot the machine if they fail for X seconds
* srhb
nods
<clever>
srhb: some devices like the raspberry pi also have a hardware watchdog timer, where you must reset the timer constantly, and if the OS locks up for any reason, the timer runs out, and the hardware forces a reboot
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
FRidh has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
pie_ has joined #nixos
asuryawanshi has joined #nixos
<dhess>
Wasn't most of the Lumiguide rollback service posted on the slide in their talk?
blahdodo has quit [(Remote host closed the connection)]
goibhniu has joined #nixos
<dhess>
Maybe there was a component they didn't share. Anyway a service that looks for a file to be touched within N minutes of the service starting, and then rolls back if it's not there would probably suffice, assuming you're using NixOps. (Wrap NixOps with a script that ssh'es into the deployed hosts and touches the file.)
Khetzal has joined #nixos
<Lisanna>
clever: how do I set a boolean option to false? "--option require-sigs false" didn't appear to do anything
<srhb>
dhess: Yeah that's the one I'm looking for :)
blahdodo has joined #nixos
<clever>
Lisanna: what about setting it to 0?
<Lisanna>
I'll try that next
<dhess>
srhb: it's not ideal but it was just one slide's worth of code, shouldn't be that hard just to type it in :)
roberth has quit [(Ping timeout: 248 seconds)]
<dhess>
unless there was some other script they were using from that code that they didn't post
<srhb>
dhess: But mh lazyness. :-) Yeah, I'll do that. Thanks for confirming it was there.
<dhess>
hehe
<Lisanna>
clever: nope
<steveeJ>
Dezgeg: thanks to setting CC and AR the zlib cross-compiled. `pkgconfig --libs zlib` prints the correct path, although dropbear's configure is still not able to find it. any idea what's wrong?
civodul has joined #nixos
pie_ has quit [(Ping timeout: 248 seconds)]
<Lisanna>
clever: is that disk image modifer we got working worth contributing to nixpkgs?
infernal has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
rct has quit [(Quit: WeeChat 1.9.1)]
<manveru>
anyone know what the story of building/deploying elixir apps on nixos is atm?
peacememories has joined #nixos
<srhb>
Does any channel have a working hydra service currently?
<srhb>
(aside from master...)
peacememories has quit [(Client Quit)]
peacememories has joined #nixos
<srhb>
Doesn't look like it. I'll see if a cherry pick of 286faa283 does it.
Itkovian has quit [(Read error: Connection reset by peer)]
<hyper_ch>
dhess: unfortunately I tried to create an override to get zfs/spl with a newer revision but that didn't work.... so I made /nix/store writeable, edited the spl/zfs default nix, added updated rev and sha and then it did compile that... however applying a patch will be even more difficult/different
<neonfuz>
what's on by default? it seems to take much longer than gentoo took to compile
<Yaniel>
you can also completely disable binary caches if you're into that sort of stuff
<fearlessKim[m]>
when upgrading from firefox 55 to 56, I lost audio. Anything happened there ? is pulseaudio mandatory now ?
<neonfuz>
actually, how do I configure cflags and makeflags and stuff?
<goibhniu>
fearlessKim[m] I thought firefox required pulseaudio for a long time already
<neonfuz>
I do have to say, I like that it's an option Yaniel
Itkovian has quit [(Client Quit)]
<neonfuz>
I really like that it's truely an option
<neonfuz>
goibhniu: I think they recently turned it off by default
<neonfuz>
speaking of which, tor-browser doesn't have audio for me and says I need pulse audio... but I'm using pulse audio
<gchristensen>
neonfuz: I also like that it is an option, but I wouldn't recommend it :P
<neonfuz>
I've always liked the idea of having my own build server
<Yaniel>
having an own build server is still a binary cache though
<neonfuz>
like, maybe a desktop or server that's on my network, and compiles packages with my own config
<goibhniu>
neonfuz: you would end up compiling more on NixOS than on gentoo, if you decide to build everything ... but it's possible (in theory) to run your own build server
<fearlessKim[m]>
seems like pulse audio fails to start ok my bad
* goibhniu
gets the feeling it's quite difficult to run hydra though
<neonfuz>
yea
<gchristensen>
goibhniu: running a small one is not so hard, but running one that builds as much as hydra.nixos.org does _is_ hard
Itkovian has joined #nixos
<hyper_ch>
gchristensen: : tcaputi has given me a diff file that I need to debug zfs/spl... but the question is: How can I actually apply that in NixOS? I tend to think I need to make a proper patch file out of it, then make /nix/store writeable and alter the zfs default.nix in such a way that it will also apply that patch file? Or is there a better way. On the weekend I tried to create an overlay to use newer revisisons of zfs/spl and but it seems stuff
<hyper_ch>
like filesystem is a bit more complicated
<goibhniu>
oh, I thought it was still terribly difficult to get it running at all, that's good to hear!
<NixOS_GitHub>
nixpkgs/master 097b282 Graham Christensen: Merge pull request #31643 from grahamc/nix-info-issuee...
NixOS_GitHub has left #nixos []
<gchristensen>
goibhniu: still annoying probably :P
thblt has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<neonfuz>
ugh, I'm running out of disk space compiling this kernel...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] Mic92 opened pull request #1677: release.nix: ncurses-bin is no longer required on debian (master...remove-ncurses) https://git.io/vF6MX
NixOS_GitHub has left #nixos []
<gchristensen>
Mic92: is there any possible future of nix + cargo where we can like pre-build dependencies so any time something changes a teensy bit we don't have to recompile all 9,000 deps?
<gchristensen>
gem-config is really confusing to users
ma271 has joined #nixos
<Mic92>
Wow would you handle it instead?
<gchristensen>
but maybe because of it is mostly lacking docs?
waleee has joined #nixos
<Mic92>
yes, there is zero documentation regarding this feature
<Mic92>
But I think it is the canonical solution, if you want to override different versions of the same library with minimal effort.
<gchristensen>
yeah
<fearlessKim[m]>
pulseaudio failed because there was "too many levels of symbolic link". $HOME/:config/pulse was a symbolic link; i removed it and now that's ok. I have sound but pulse still generates a few warnings such as "failed to load module "module-native-protocol-unix""
<gchristensen>
but I'd really really really like it if there were good docs on it before merging
adamt_ is now known as adamt
<Mic92>
gchristensen: carnix has documentation already
thblt has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 8 new commits to master: https://git.io/vF6yE
jtojnar has quit [(Remote host closed the connection)]
AliasSpider has quit [(Ping timeout: 246 seconds)]
waleee has quit [(Ping timeout: 248 seconds)]
<infinisil>
Hey, I'm using emacs with ghc-mod and company-ghc, but I'm getting "EXCEPTION: browse: module ‘Data.Aeson.Types’ is a package module" for all non-builtin packages. I have a ghc installed with all these packages though, and ghci Main.hs works. Any idea what the problem might be
<infinisil>
?
<ikwildrpepper>
any pypi2nix guru's here?
<ikwildrpepper>
having a project that has postgresql as dep (via psycopg2), however, even when providing '-E postgresql', it doesn't seem to find when running nix-shell requirements.nix -A interpreter
jtojnar has joined #nixos
<ikwildrpepper>
it seems to generate a commonBuildInputs in requirements.txt that is not used anywhere, confusinglt
<ikwildrpepper>
confusingly
<copumpkin>
gfixler: I was just about to reply to your tweet when twitter told me it had been deleted :)
roberth has quit [(Ping timeout: 248 seconds)]
<mbrock>
cargo really doesn't seem to be a friend of nix
<mbrock>
kind of a reason Rust isn't ready to replace C/C++ isn't it
<Yaniel>
I certainly would have expected the opposite
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/vF6Q2
<NixOS_GitHub>
nix/master 2c39e4e Eelco Dolstra: Revert "Don't parse "x:x" as a URI"...
NixOS_GitHub has left #nixos []
<mbrock>
hah, just scrolled up and saw some the promising Cargo Nix pull request mentioned half an hour ago
adamt has quit [(Quit: Leaving)]
ma271 has quit [(Ping timeout: 240 seconds)]
jtojnar has quit [(Quit: jtojnar)]
jtojnar has joined #nixos
adamt has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
<fearlessKim[m]>
rycee: is it possible to merge different HM configs via imports ?
<Mic92>
There is a problem, when too package manager fight compete with each other.
<mbrock>
the carnix thing is pegged at 100% CPU for a long time after the output line "Prefetching winapi-build-0.1.1"... oh computers
glion has joined #nixos
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
waleee has joined #nixos
periklis has joined #nixos
oida has joined #nixos
<Mic92>
mbrock: strace all the things
playX has joined #nixos
roberth has joined #nixos
simendsjo has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ocharles pushed 1 new commit to master: https://git.io/vF6xq
<NixOS_GitHub>
nixpkgs/master 9b90330 Ollie Charles: nodePackages.elm-test: init at 0.18.9
NixOS_GitHub has left #nixos []
playX has quit [(Ping timeout: 260 seconds)]
reallycooldude has joined #nixos
<ocharles>
Urgh, should have actually tested that
zzamboni has quit [(Quit: Leaving.)]
<ocharles>
ಠ_ಠ
MercurialAlchemi has quit [(Ping timeout: 268 seconds)]
oida has quit [(Quit: hurr durr)]
oida has joined #nixos
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<gchristensen>
ocharles: does it work? :)
python476 has joined #nixos
<ocharles>
Well... /nix/store/qmd0ff73b109hk80gdhap2m5sqn364hb-node-elm-test-0.18.9/lib/node_modules/elm-test/bin/elm-interface-to-json: error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory
<adisbladis>
gchristensen: Your taste in music is impeccable
<joko>
Hello, is it possible to use private Git repositories in Hydra?
<gchristensen>
adisbladis: :$
pie_ has joined #nixos
<infinisil>
Man, ghc-mod doesn't seem to work with nix :(
<ikwildrpepper>
joko: yes, by using ssh url as input, and make sure the hydra user has .ssh/config with the correct private key etc
<clever>
joko: somewhat, "sudo -u hydra -i" then "ssh-keygen" and no passphrase, give it access, and then configure hydra with an ssh url in the build input
<clever>
joko: nginx can be configured to allow the binary cache URL's thru, but then anybody that knows the hash of your source can also get the full source
<clever>
the storepath of anything built from that source also counts
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 248 seconds)]
<clever>
joko: another more extreme thing, that i think is a bit of a flaw in hydra and nix-serve, if i gave you the result of `readlink /run/current-system`, you could download a complete copy of my hydra server (the nixos that powers it), along with any secrets that happen to be in /nix/store/ (which includes github auth tokens)
zzamboni has quit [(Ping timeout: 248 seconds)]
leat1 has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
<sphalerite>
Dezgeg: good to know. I do think it's probably a config issue (although I'm on 4.13, not 4.9) on my end, not lack of support. I mean, it works fine in chromeos too
cement has joined #nixos
<ocharles>
clever: what messes with the binary cache? we use it fine at circuithub with basic auth
<mbrock>
clever: oops. makes me feel somewhat justified in my decision to serve my binary cache and channel through a separate web server via nix-push of only the actual jobset builds
AliasSpider has joined #nixos
<ikwildrpepper>
clever: yeah, you shouldn't put secrets in your nixos configs
endformationage has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
<andrewrk>
why is the default firefox nightly?
<ikwildrpepper>
andrewrk: it is only called nightly, due to some licensing issues, if i remember correctly
<gchristensen>
they don't give us permission to distribute "Firefox (tm)" since we build it ourselves
<gchristensen>
(they _did_ give us permission, but then when I asked for permission to place a copy of the email giving permission in nixpkgs source, they rescinded permission)
<Yaniel>
so when's 57 in unstable? :P
<andrewrk>
we should name it iceweasel ;)
<mbrock>
does it have to do with how Nix disables the auto-upgrader?
<ikwildrpepper>
gchristensen: epic
<gchristensen>
no, it has to do with them apparently not wanting us to put a record of their permission grant
drakonis has joined #nixos
<clever>
ikwildrpepper: the only way to deal with github tokens in hydra is to put them into the store, hydra doesnt support anything better
<tokudan[m]>
Yaniel: the pull requests are already there... even the backport for firefox-bin is waiting
<ikwildrpepper>
clever: you mean hydra.conf?
<clever>
ikwildrpepper: yeah
<ikwildrpepper>
you have the possibility to load from file if I remember correctly
<mbrock>
ok, because their trademark guidelines mentions not interfering with any "installation mechanisms" contained in Mozilla products
<ikwildrpepper>
something like file(...)
<gchristensen>
I don't know what to tell you mbrock, we have permission to distribute it as Firefox
<clever>
ikwildrpepper: one thing i noticed, is that hydra will copy it to /var/lib/hydra/ on startup, and i hadnt seen anything like file(...) in the docs
<sphalerite>
I'm guessing that's a matter of "officially approved by Mozilla" vs "not technically OK by our branding guidelines but we'll overlook it"
<gchristensen>
but we don't want to do it without being able to publicly document that permission
<gchristensen>
asuryawanshi: its cool seeing you stick around a bit :P though you missed marantz last night :)
<mbrock>
oh, hydra plugins, didn't know about that. I have a hacky shell script that I run manually every time I want to update our channel and cache :(
<clever>
mbrock: hydra will automatically call a given function in every plugin it can find
<clever>
when certain events happen
<clever>
youll need to make an override on hydra to copy that file into the right part of $out, and then it should work
<mbrock>
sweet, so I could do that nix-push on build finished, and then a channel update on evaluation finished
<clever>
not sure if it has an eval hook
<ikwildrpepper>
clever: it's Config::General feature: include externalconfig.rc
<clever>
ikwildrpepper: ah, ive kept my distance from perl
<mbrock>
clever: I see, thanks! the latest commit to that file could be copied to add evaluation hooks I suppose
<clever>
mbrock: previously, buildQueued was ran for every single job being queued after the eval has finished
zzamboni has joined #nixos
<clever>
mbrock: but that started to run into problems, because the hooks are handled by running the hydra-notify program (a perl script), on each build, one by one
jsgrant has quit [(Remote host closed the connection)]
<clever>
mbrock: and suddenly, it takes 9 hours to run the hooks for every job, lol
universalpackage has quit [(Remote host closed the connection)]
<clever>
a proper eval-finished hook (and maybe a for loop over the jobs) would solve that issue and restore that function
<clever>
one thing lost due to that change, is that the github status plugin wont say "pending" when the job is queued
<binaryphile>
anyone know how to change this behavior? I try to install a package using "nix-env -ibA mychannel.mypackage" from a private binary cache (configured correctly). if I've forgotten to build the package in the cache, the command fails, of course. however, building the package in the cache doesn't enable it to be installed, the command still fails. I go back a day later and try again, and this time it works
<clever>
it only goes into pending when hydra actually starts the build
<clever>
binaryphile: thats the binary cache cache, you can clear it by just deleting /nix/var/nix/binary-cache-v3.sqlite*
<binaryphile>
clever, thank you
<clever>
there is also a TTL option somewhere in nix.conf to make it re-check sooner
zzamboni has quit [(Ping timeout: 240 seconds)]
<binaryphile>
i should've known it was a cache cache. they say the hardest thing in cs is cache caching.
<steveeJ>
Dezgeg: any idea why the cross ld can't find zlib even though it exists? pkg-config manages to find the cross version of zlib
<clever>
binaryphile: in this case, it can take minutes just to query cache.nixos.org for the full closure of your build, so it helps speed it up a lot
<binaryphile>
yeah, not objecting to the behavior. just needed to know how to tweak it. :)
zzamboni has joined #nixos
<binaryphile>
thx again
Arcaelyx has joined #nixos
<Dezgeg>
no real ideas
<Dezgeg>
except maybe a static vs dynamic mismatch
<steveeJ>
Dezgeg: unlikely. am I supposed to set LD_LIBRARY_PATH manually for nix-shells?
drakonis has quit [(Read error: Connection reset by peer)]
zzamboni has quit [(Ping timeout: 240 seconds)]
<steveeJ>
Dezgeg: this works but is very ugly: LD_LIBRARY_PATH=$(pkg-config --libs-only-L zlib | sed 's/^-L//')
universalpackage has joined #nixos
zzamboni has joined #nixos
<boxofrox>
I'm trying to install the nixpkgs-mozilla overlay on a nixos 17.09-stable vm and not having much luck. `nix-env -qaP | grep rust` only shows those packages from the system nixpkgs. I cloned the nixpkgs-mozilla into a subfolder in my home directory, then ran the `./rust-overlay-install.sh` script that creates the `~/.config/nixpkgs/overlays` folder path and adds a symlink there for `./rust-overlay.nix`. I
<boxofrox>
read through the chapter on overlays in the nixpkgs manual, but I can't figure out what I'm doing wrong.
<gchristensen>
is it possible to extend a service's serviceConfig.ExecStart via another module? :/
universalpackage has quit [(Remote host closed the connection)]
toppler` is now known as toppler
universalpackage has joined #nixos
zzamboni has quit [(Ping timeout: 268 seconds)]
FRidh has quit [(Quit: Konversation terminated!)]
<infinisil>
Is there a reason that the extraFlagsArray argument is always present even without --run (which can supply something that populates extraFlagsArray)?
<infinisil>
of a makeWrapper wrapped executable?
leat1 has joined #nixos
universalpackage has quit [(Remote host closed the connection)]
universalpackage has joined #nixos
Tucky has quit [(Quit: WeeChat 1.9.1)]
<gchristensen>
does anyone have a copy of how Bas pins NixOS?
<gchristensen>
nixpkgs*
jb55 has joined #nixos
Ross has joined #nixos
<steveeJ>
Dezgeg: I figured out at least one issue. the RPATH is not set on cross compilation
universalpackage has quit [(Remote host closed the connection)]
seanparsons has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<hyper_ch>
Mic92: I tried to rebuild nixos unstable small since there was an update an hour ago and I got this: https://paste.simplylinux.ch/view/raw/26835632 --> could it be that the problem lies with 4.14 kernel? so far I've used that revision on unstable small which used 4.13.12
Arcaelyx has quit [(Read error: Connection reset by peer)]
<hyper_ch>
ok :)
Neo-- has quit [(Ping timeout: 248 seconds)]
<Mic92>
hopefully this will be merged this week or so
<hyper_ch>
well, wanted to further debug my issue with zfs encrypted receiving and apply tcaputi's patch but that failed also... then I thought I might just upgrade meanwhile until I get reply from tcaputi https://github.com/zfsonlinux/zfs/issues/6821#issuecomment-344312159
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
k2s has joined #nixos
x1n4u has quit [(Ping timeout: 264 seconds)]
<boxofrox>
nevermind on my overlay question. the setup is correct. `nix-env -qaP` just isn't able to query [that particular?] overlay, but installing packages works once you figure out the attribute scheme.
acowley_away is now known as acowley
erasmas has joined #nixos
kalhauge has joined #nixos
zzamboni has joined #nixos
<steveeJ>
bgamari: would you happen to know why a cross gcc produces binaries without RPATH?
<steveeJ>
I'm pretty sure this was different 6 months ago
<kalhauge>
]\
<kalhauge>
\
Dr8128 has joined #nixos
<gfixler>
copumpkin: I decided I didn't stand by what I'd written, sorry
<copumpkin>
for some reason it stuck in my timeline for a couple of hours before twitter noticed it was gone
<copumpkin>
eventual consistency ftw
<gfixler>
found First, Last, Min, and Max in Data.Monoid
<gfixler>
granted, I think they all use Maybe a internally
<copumpkin>
yeah, I hate that
<gfixler>
but suddenly the question felt ill-formed
<copumpkin>
that was from before Semigroup was widespread
<gfixler>
ah
zzamboni has quit [(Ping timeout: 248 seconds)]
<copumpkin>
what's sad is that there's a beautiful `instance Semigroup v => Monoid (Map k v)` instance
<copumpkin>
that is screwed up by all this nasty history
<Mic92>
hyper_ch: do you can handle git?
<gfixler>
I've also stumbled into meet semilattices, though don't yet grok
<hyper_ch>
Mic92: not sure what you mean by that
zzamboni has joined #nixos
<kalhauge>
Hello, I'm trying to setup GHC on a raspberry pi.
<gchristensen>
clever: can I bend your ear a moment?
<Mic92>
hyper_ch: you can checkout the exact same zfs revision, we use in nixpkgs, apply the change and use git format-patch to generate a new patch that applies
<kalhauge>
Let me first say that all the work put in to aarm64 is amazing, but I get this error when I try to install GHC:
a6a3uh has joined #nixos
<copumpkin>
gfixler: the "meet" part is sort of a weird mathism that isn't fundamental. "join" is the counterpart, and sort of feels like someone distinguishing "multiplicative" vs. "additive" monoids, which people also do for notation reasons. Otherwise a lattice just adds `forall x. x * x = x` to the laws, so min/max/gcd/lcm work for example. GCD is another example of a semigroup
<copumpkin>
btw
<kalhauge>
[kalhauge@nixos:~]$ nix-env -i ghc
<kalhauge>
installing ‘ghc-8.0.2’
<kalhauge>
error: cannot bootstrap GHC on this platform
<kalhauge>
(use ‘--show-trace’ to show detailed location information)
<copumpkin>
anyway the #nixos folks probably don't care so I'll stop talking :)
zzamboni has quit [(Ping timeout: 248 seconds)]
<kalhauge>
Do anybody know a workaround the bootstrapping?
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vFi3u
<NixOS_GitHub>
nixpkgs/master 615a374 Felix Richter: Pkgs/dirb/copy wordlists (#31652)...
NixOS_GitHub has left #nixos []
jb55 has joined #nixos
<copumpkin>
kalhauge: I'd file a ticket with more info and highlight @peti
roconnor has joined #nixos
<copumpkin>
what platform is it, out of curiosity?
<roconnor>
fpletz: Hi, can you expand on your bsdmainutils comment @ https://github.com/NixOS/nixpkgs/pull/31625 Should I be replacing untillinux by bsdmainutils and it should work on darwin as well?
digitus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vFi3d
<NixOS_GitHub>
nixpkgs/master 3e80094 Robert Helgesson: monero: 0.11.0.0 -> 0.11.1.0
<gchristensen>
hrmm anyone have nix 1.11.8? it seems nixpkgs doesn't evaluate with nix 1.11.8 anymore
<fpletz>
roconnor: no, it's probably in some darwin package we already have in nixpkgs
<copumpkin>
roconnor: nice to see everyone talking about your language recently!
<copumpkin>
gchristensen: what fails and how?
<gchristensen>
syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/6rlz6whjhcqm4rn5r099aypy24znc2gc-qz9krv2448n8x2j1vh3vgrbv6hmzix2h-nixpkgs-9ea242c617bf6fca9b425b5199a26294a406cbc0/pkgs/tools/archivers/sharutils/default.nix:22:47
<roconnor>
copumpkin: ha really? Who is everyone?
<fpletz>
roconnor: but not sure, never really used darwin myself :)
<roconnor>
fpletz: okay. It's probably best to let some darwin / nix / bitcoin hobbiest help me out here.
<fpletz>
roconnor: yeah :) maybe LnL has an idea
zzamboni has joined #nixos
<roconnor>
copumpkin: Still a lot of work to do!
<kalhauge>
copumpkin: Thank's I'll do that. It's 'aarm64'?
<copumpkin>
aarch64?
<ed-packet>
'aarch64'
<kalhauge>
Sorry, yes!
<Mic92>
gchristensen: I cannot reproduce that on master
<gchristensen>
Mic92: with nix 1.11.8?
<ed-packet>
what the world also sometimes calls arm64, arm64v8, or armv8
<hyper_ch>
Mic92: how to check out the exact same zfs revision?
<kalhauge>
ed-packet: exactly.
<Mic92>
gchristensen: I have 1.11.15
<Mic92>
is that nix on 17.09?
<gchristensen>
Mic92: no, 1.11.8 is nix on $old :P
<gerschtli>
hey guys, I have reinstalled my pc and now I can't sign in dropbox
<hyper_ch>
I search /nix for that dnode file, found it, copied it with path to /tmp... made another copy of it, edited it and tried to apply diff - same result
<gchristensen>
today is yak after yak
<Mic92>
gchristensen: how old?
<gerschtli>
I'm using DWM and I have dropbox in my traybar
<gerschtli>
but when I click on "Sign in", nothing is happening..
<tilpner>
Mic92 - 16.09 has 1.11.8
<adisbladis>
gchristensen: Yak shaving is a way of life
<NixOS_GitHub>
[nixpkgs] 7c6f434c closed pull request #31572: firefox: support for native messaging hosts in wrapper (master...pr/firefox-native-messaging-hosts) https://git.io/vFrWO
NixOS_GitHub has left #nixos []
ertes-w has quit [(Ping timeout: 240 seconds)]
universalpackage has joined #nixos
orivej has joined #nixos
<gchristensen>
our first underhanded nix contest, without using nix to parse it, what does '' substituteInPlace tests/shar-1 --replace '$''\{SHAR}' '$''\{SHAR} -s submitter' '' become? :P
zzamboni has quit [(Remote host closed the connection)]
<Mic92>
hyper_ch: what result?
<hyper_ch>
Mic92: so, I cloned zfs git, I checked out that commit, I altered the file.... but how do I create now a patch file from that revision to my changes? all I aees is everything also later applied will be added to the patch
jgertm has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
<Mic92>
hyper_ch: git diff > foo.patch
<LnL>
roconnor: hmm, can't find it maybe it's in one of the darwin.*_cmds that's broken
johnw has quit [(Read error: Connection reset by peer)]
<hyper_ch>
as I said, I tried the whole weekend to figure out how to make zfs override so that I can use a newer revision because tcaputi thought the issue was already fixed
<hyper_ch>
the only thing that finally worked was making /nix/store writeable and edit the default.nix directly and apply new revision and hash
<goibhniu>
gerschtli: sorry, I don't know why it's broken ... are you on 17.09?
<hyper_ch>
Mic92: cloned nixpkgs, exported NIXPKGS, edited the zfs default.nix, run nix-shell -p linuxPackages.zfs -K but nothing happened execpt nix-shell was started
ambro718 has joined #nixos
<Mic92>
hyper_ch: please the first few paragraphs of the wiki article I gave you
<hyper_ch>
that's what I did
<mrottenkolber>
sphalerite: thanks!
<hyper_ch>
Mic92: that's what I did: clone nixpkgs repo, set the environment variable to it, edited the zfs default.nix, run your command... ended up in nix-shell but nothing else happened
<Mic92>
Ah, this was the wrong package: linuxPackages.zfsUnstable
k2s has quit [(Remote host closed the connection)]
<gerschtli>
goibhniu: FYI, I needed to install dropbox-cli before a02123d3fbec47cbb322136544e14880d0619bb9 to log in, now I use the newest nixpkgs version again and its working fine despite of the error in the output
universalpackage has quit [(Client Quit)]
pbogdan has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<NixOS_GitHub>
nix/master 2f5789c Eelco Dolstra: Add dependencies for coverage test
NixOS_GitHub has left #nixos []
<mbrock>
I distribute some packages with Nix, and some of my users want to occasionally hack on the source code of one package, like they basically want to do exactly the thing that `/nix/store` being immutable prevents you from doing
<mbrock>
and I don't really have a good answer for that
<dtzWill>
modify source, feed into same nix expression in place of original source?
<mbrock>
yeah, that's an option I'm considering. Like a `nix-shell` command that uses `overrideAttr` to set `src = /home/whatever/etc`, perhaps
<clever>
mbrock: you could also just git clone foo, then nix-shell '<nixpkgs>' -A foo
lejonet has quit [(Quit: lejonet)]
<clever>
mbrock: then just skip the unpackPhase, and use what git gave you
jensens has quit [(Ping timeout: 260 seconds)]
<mbrock>
ah, hmm, yes, that is a good idea
<mbrock>
sometimes it's the case that we want to hack on X, and then test it with Y which depends on X, and in that case I think my idea is necessary
<clever>
ahh
<clever>
mbrock: have you seen what import <nixpkgs> { config = { ... }; } can do?
<mbrock>
don't think so :{
<mbrock>
:)
<clever>
mbrock: that argument lets you pass in the value of config.nix
<clever>
so you can just do import <nixpkgs> { config = { packageOverrides = pkgs: { ... }; }; }
<mbrock>
ok, interesting
<clever>
and it will ignore the users config.nix file
<clever>
so you can just put that into the default.nix of X, to modify what Y src it uses
<clever>
and only that checkout of X will use the new Y
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<clever>
so no tainting the rest of the machine
<jtojnar>
sphalerite: are you able to swap the mouse buttons on GNME 3.26?
<mbrock>
maybe I would make a .nix file that gives a nix-shell environment where my whole suite of interdependent packages are sourced from the filesystem
<clever>
jtojnar: i know xfce can do it, ive had to do that on a recent netbook
alhariel has quit [(Ping timeout: 255 seconds)]
asuryawanshi has joined #nixos
<mbrock>
this all kind of relates to a vague question I have about using Nix (wrapped slightly) as the package manager for a programming language, like as an alternative to (e.g.) npm
<jtojnar>
clever: apparently it is a regression, just want to verify if it is the same issue he is having
asuryawanshi has quit [(Remote host closed the connection)]
<mbrock>
I guess language package managers aren't known for having really easy and beautiful ways to do local development in multi-project setups
<mbrock>
cargo's workspaces are kind of what I'm getting at
<mbrock>
I remember this being a huge pain when I worked years ago in a Haskell shop with dozens of internal packages
sigmundv__ has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
<clever>
jtojnar: ah
alhariel has joined #nixos
mrottenkolber has left #nixos []
lejonet has joined #nixos
ambro718 has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vFi4F
<NixOS_GitHub>
nixpkgs/master 26798bd Vincent Laporte: ocamlPackages.batteries: 2.7.0 -> 2.8.0...
NixOS_GitHub has left #nixos []
<gchristensen>
ack trying to git bisect between a version in 17.03 and a version on 17.09 is not a thing that works it seems, since they're divergent histories
<copumpkin>
that seems unfortunate
<copumpkin>
might make sense for us to start requiring dummy merges back to master
jgertm has joined #nixos
<gchristensen>
a childrens author wrote a book about my day today
k2s has quit [(Remote host closed the connection)]
<gchristensen>
dash: LOL
jtojnar has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
<mbrock>
clever: that's good to know! not working on any multi-project Haskell things right now, but now that I think of it there's a project I would split up if I weren't afraid of this exact issue :)
jtojnar has joined #nixos
<clever>
mbrock: the project i linked has at least 10 sub-projects (each with its own cabal file) in that repo, plus many deps that have been forked and are waiting on upstream things like what i linked
<clever>
mbrock: and stack2nix just generates a whole haskellPackages set, with exactly the closure of the project, and nothing more, on the exact versions stack said to use
erictapen has quit [(Ping timeout: 260 seconds)]
<mbrock>
that's pretty awesome
<mbrock>
also cool that you're at IOHK working on Cardano ;)
<clever>
yeah
erictapen has joined #nixos
jmc_fr has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee opened pull request #31668: docs: clarify package and module option naming (master...doc/naming) https://git.io/vFi0q
NixOS_GitHub has left #nixos []
<mbrock>
is it possible to specify a subdirectory of a `fetchFromGitHub {...}` as `src` ?
<clever>
mbrock: modify sourceRoot in the postUnpack
<mbrock>
oh, like postUnpack = "export sourceRoot=foo" ?
<Lisanna>
Hey clever , do you think that disk image modifier we got working last night would be a good thing to upstream to nixpkgs?
oida has quit [(Ping timeout: 268 seconds)]
erictapen has quit [(Ping timeout: 258 seconds)]
ma271 has joined #nixos
<Lisanna>
gchristensen you might be able to answer too... clever and I wrote a function which takes a disk image with a Nix (not NixOS) install on it, and a list of derivations, and adds those derivations to the disk's Nix store.
<gchristensen>
whoa
<clever>
it uses nix copy and runInLinuxVM to mount the image
oida has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
<gchristensen>
"Bisecting: 9133 revisions left to test after this (roughly 13 steps)"
<gchristensen>
I don't know!
miko__ has joined #nixos
<clever>
gchristensen: i once had the fun of trying to bisect a bug, caused by nix sandboxing
<gchristensen>
nooope
<clever>
every build coming from the binary cache was broken
<clever>
every build i made locally worked
<clever>
git bisect cant deal with that pattern
a6a3uh has joined #nixos
<Lisanna>
git bisect can't deal with anything that isn't a linear progression,
<clever>
it took a while to track that problem down
<clever>
turns out, net-snmp will check for /etc/mtab, /proc/mounts, and 3 or 4 other paths, to figure out how your OS deals with keeping track of mounts
<clever>
and then hard-code the result into the binary
<Lisanna>
the nix sandbox allows access to those?
<clever>
a nixos sandbox lacks every one of those, so it hard-codes itself to open "unknown" at runtime
<Lisanna>
oh
<Lisanna>
"local build" = outside the sandbox?
<clever>
yeah, i had sandboxing off at the time
<clever>
so any time i missed the binary cache, the test passed
<infinisil>
is sandboxing enabled by default? I forgot
<Lisanna>
Ever since I found out what sorts of things the NIx sandbox stops... I've been too afraid to ever build anything without it!
<Lisanna>
infinisil: no, it's disabled for performance by default
<clever>
infinisil: i believe its off, but i always turn it on
<clever>
it has to bind-mount every single storepath in the closure of the build, within a chroot like env
<clever>
and setup user, network, pid, and mount namespaces
<Lisanna>
clever: so it adds a constant slowdown to builds? the build's run time complexity is still O(n) of the input sources?
<gchristensen>
it isn't much
<infinisil>
Got any numbers though? How much slower is it? I mean for casual users it shouldn't mean much anyways since most builds are from the cache anyways
<Lisanna>
...thinking that maybe the sandbox should start getting turned on by default
<Lisanna>
and that users who Know What They're Doing™ can turn it off
<steveeJ>
linking seems to work, the resulting binaries just lack RPATH
<steveeJ>
this happens even with a combined compile/link run using gcc -o ..
dhess has left #nixos ["ERC (IRC client for Emacs 25.3.2)"]
lebel has joined #nixos
acowley is now known as acowley_away
<steveeJ>
Sonarpulse: I've used patchelf --print-rpath to check for it, after I found that the linked libraries aren't found
<Sonarpulse>
steveeJ: ok hmm that's odd
<Sonarpulse>
I don't know about that one
maiksen has quit [(Changing host)]
maiksen has joined #nixos
p4cman has quit [(Quit: Connection closed for inactivity)]
lfam has joined #nixos
<steveeJ>
Sonarpulse: so `aarch64-unknown-linux-gnu-gcc sysinfo.c -o sysinfo && patchelf --print-rpath sysinfo` has no output, but exit code 0 if that means anything to patchelf
<Sonarpulse>
steveeJ: do NIX_DEBUG=1 that
<Sonarpulse>
or even NIX_DEBUG=7
<Sonarpulse>
to see if ld-wrapper is adding --rpath entries
<Sonarpulse>
....I still think unless you have crazy deadline you should not be using master
<Sonarpulse>
its just very broken
<Sonarpulse>
hacking around it is a real chore
<Sonarpulse>
and will leave you with a bunch of code you won't need long term fixing these things
<steveeJ>
Sonarpulse: I'm fine downgrading from master, but I came from unstable where the cross toolchain expression I was using broke at one point
<Sonarpulse>
steveeJ: this would be upgrading from master
<steveeJ>
if you give me an old commit on master/unstable I'll revert to that
<Mic92>
gchristensen: does the bot notice, if a pr was meant for 17.09 instead of master?
<mbrgm>
can I supply variables for imports in a nixos configuration.nix?
<gchristensen>
Mic92: I _believe_ in all cases it uses the correct target branch
<Mic92>
gchristensen: yes, it works
<gchristensen>
cool :)
Dr8128 has quit [(Read error: Connection reset by peer)]
<gchristensen>
Mic92: I too wonder why firefox-bin is unfree
<octe>
i'm trying to install oraclejdk but since i already have openjdk installed, nix-env -iA tells me there's a conflict and to use set-flag priority
<octe>
but whatever i send in as a package name to it it just says no matching derivation
<steveeJ>
Sonarpulse: which environment variables should be set in a cross-compile nix-shell? CROSS_COMPILE for sure, but what about CC/AR/LD?
<infinisil>
Am frustrated with ghc-mod and emacs, can't get auto-completion to work properly
<maiksen>
hey would anyone mind telling me, where I have to put a configuration.nix if I only want to use nix as package manager (on say an arch linux) as a single user? I seem to be blind and couldnt find this in the nix docs so far
<srhb>
maiksen: configuration.nix is a NixOS only thing.
ssmike has joined #nixos
<srhb>
maiksen: You may want a ~/.config/nixpkgs/config.nix though, which is documented in the nix (and nixpkgs?) manual.
<maiksen>
ah okay, thats what I ment, I'll have a look
<maiksen>
ah found it ~/.nixpkgs/config.nix, which contains user-local settings for Nix Packages...
<maiksen>
srhb: thanks
<srhb>
maiksen: You're welcome. :)
c0bw3b has left #nixos []
magnetophon has joined #nixos
kalhauge has quit [(Remote host closed the connection)]
erictapen has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
ma271 has quit [(Ping timeout: 240 seconds)]
<magnetophon>
I'm trying to figure out why some code is being ignored. I'm doing nixos-rebuild, and it should compile a new kernel, but it doesn't. This is how I'm troubleshooting:
<magnetophon>
but when I change callPackage in that line to nonsense, the nixos generation claims to build.
<magnetophon>
Same when I change the .nix file in that line to something non-existing. TBH, I'm baffled. Any ideas?
<srhb>
magnetophon: How did you enable that kernel?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] c0bw3b pushed 2 new commits to master: https://git.io/vFi1T
<NixOS_GitHub>
nixpkgs/master a6b1d9a romildo: jdupes: init at 1.8
<NixOS_GitHub>
nixpkgs/master 2236363 Renaud: Merge pull request #26920 from romildo/upd.fdupes...
NixOS_GitHub has left #nixos []
picpic1245 has joined #nixos
picpic1245 has quit [(Client Quit)]
stanibanani has quit [(Ping timeout: 260 seconds)]
<magnetophon>
srhb: I'm not sure I understand the question. I could link you to my dotfiles if you want? Or I can just tell you I've been using musnix for years, and nothing relevant changed afaik.
ssmike has quit [(Ping timeout: 258 seconds)]
<shiver>
does anyone have an example of using "services.tomcat.webapps" to point to a local WAR file for deployment? when i give a directory / file name it's just saying that it's not a package
<shiver>
since the list type is 'package' it seems
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vFiML
<NixOS_GitHub>
nixpkgs/staging 72b98b8 Vladimír Čunát: darwin.stdenv: fix a typo in comment ;-)
NixOS_GitHub has left #nixos []
<magnetophon>
srhb: I wanted to update the kernel, so I changed the version and the hash, but it didn't rebuild. So I started following the trace so to speak. My original question was the endpoint of that tracing.
<magnetophon>
Isn't it really odd that I can change one part of that line, and get an error (as expected), but change another part to nonsense, and get no error?
Itkovian_ has quit [(Ping timeout: 248 seconds)]
<srhb>
I don't know enough to answer that, I'm not sure how lazy eval vs. name resolution works here...
a6a3uh has quit [(Quit: Bye)]
<srhb>
magnetophon: You don't really have musnix disabled in your real config, right?
MP2E has joined #nixos
<magnetophon>
srhb: my main config has musnix disabled, but I use it via "-I nixos-config=/path/to/other/config.nix"
<srhb>
OK, just checking. :)
<magnetophon>
srhb: The code in question is clearly being called: when I change linux_4_13_rt to linux_4_14_rt I get "undefined variable ‘linux_4_13_rt’"
<srhb>
Just backtracking through the definitions it looks like the enable isn't what sets the kernelPackages anyway..
Itkovian has joined #nixos
ma271 has joined #nixos
<magnetophon>
srhb: then again, it looks like I'm missing something dumb, therwise it would just work, so I really appreciate you thinking with me! :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 7 new commits to master: https://git.io/vFiD9
<NixOS_GitHub>
nixpkgs/master 08508f5 Dan Haraj: absl-py: init at 0.1.3
<NixOS_GitHub>
nixpkgs/master 1327d09 Dan Haraj: mpyq: init at 0.2.5
<NixOS_GitHub>
nixpkgs/master 2201774 Dan Haraj: portpicker: init at 1.2.0
NixOS_GitHub has left #nixos []
<srhb>
magnetophon: You have one of these set? cfg.kernel.latencytop || cfg.kernel.optimize || cfg.kernel.realtime
<gchristensen>
I have a strange issue. I'm using NixOS containers (systemd-spawn based) and ever since "systemd: v232 -> v233" (dfebb66f657240e5448a98d9efc90d4c66825274) my host cannot SSH in to them using SSH keys, but instead are prompted with a password. before that commit, the SSH key auth worked fine
<gchristensen>
were there new settings added / defaults changed that might break this?
<danharaj>
Does anyone know if there's a way with the current python infrastructure to interact with setuptools package "extras"?
<magnetophon>
How can it be that when I have "name = callPackage file.nix", and I change name, I get "undefined variable ‘name‘", indicating that line is being called, but when I change callPackage to blah, or file.nix to nosuchfile.nix, I don't get an error????
<hyper_ch>
Mic92: thx for the help
<srhb>
magnetophon: Presumably because the expression the name is bound to doesn't need to get evaluated.
<gchristensen>
Mic92: yeah, /etc/ssh/authorized_keys.d/root exists and has the expected key
<Mic92>
gchristensen: the process list looks healty
<Mic92>
*healthy
<Mic92>
gchristensen: you can try to start sshd with full path: /nix/store/<hash>-.../sshd -dD -h /etc/ssh/authorized_keys.d/root -p 2222 and look at the output
<steveeJ>
Sonarpulse: I'm getting a weird error with that branch: /nix/store/zvys2al3rnx14bjkigf70zzdbhwddx31-hook/nix-support/setup-hook: line 99: die: command not found
<steveeJ>
Sonarpulse: haha that's funny, it fails to display the actual error message because 'die' isn't available :-D
zimbatm has quit [(Ping timeout: 240 seconds)]
mandrews has joined #nixos
zimbatm has joined #nixos
x1n4u has joined #nixos
ambro718 has joined #nixos
civodul has joined #nixos
<dmj`>
uh oh
<dmj`>
FATAL: kernel too old
<dmj`>
when trying to install nix
<gchristensen>
man, you on RHEL5?
* danharaj
recently had to deal with a server running Ubuntu 10
<steveeJ>
Sonarpulse: I managed to overcome all the initial issues and am mass rebuilding now :-) I'm curious!
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<vcunat>
but it would be best to move to newer OS (e.g. centos 6) within several months
<Sonarpulse>
steveeJ: about die?
<Sonarpulse>
that was a PR a while back
<Sonarpulse>
unrelated to cross
<Sonarpulse>
not sure what happened
<Sonarpulse>
good luck!
<steveeJ>
Sonarpulse: I wrote a patch to makeWrapper that allows to skip the checks on the wrapped binary, so my expressions broke on the tree without this patch
<steveeJ>
but die was unable to tell me that the argument isn't supported ;)
<dmj`>
vcunat: not an option unfortunately :/
johnw has joined #nixos
<vcunat>
dmj`: it's (theoretically) possible that "the community will decide" to support 17.09 for longer than half a year
<vcunat>
but I certainly can't guarantee that at this point
<dmj`>
emacs is so old it doesn’t come with package.el (21)
<dmj`>
so I have to manually fetch it, but it contains keywords that 21 doesn’t understand
miko__ has quit [(Ping timeout: 255 seconds)]
zraexy has quit [(Quit: Leaving.)]
hiratara has quit [(Ping timeout: 252 seconds)]
hiratara has joined #nixos
kuznero has joined #nixos
dj_goku_ has joined #nixos
dj_goku_ has quit [(Changing host)]
dj_goku_ has joined #nixos
tommyangelo_ has joined #nixos
ghostyyy has joined #nixos
Bane^^ has joined #nixos
ChongLi_ has joined #nixos
roblabla1 has joined #nixos
MarcWebe1 has joined #nixos
Bane^ has quit [(Ping timeout: 250 seconds)]
ChongLi has quit [(Read error: Connection reset by peer)]
ghostyy has quit [(Read error: Connection reset by peer)]
drp has quit [(Read error: Connection reset by peer)]
roblabla has quit [(Ping timeout: 250 seconds)]
dj_goku has quit [(Ping timeout: 250 seconds)]
MarcWeber has quit [(Ping timeout: 250 seconds)]
Bane^^ is now known as Bane^
ravloony has quit [(Ping timeout: 250 seconds)]
<kuznero>
Hi All!
danharaj has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vFip3
<NixOS_GitHub>
nixpkgs/master f3811ad Vincent Laporte: frama-c.why2: 2.37 -> 2.39
NixOS_GitHub has left #nixos []
<kuznero>
I am trying to create a package now that has one bash script that need to know where it installed. So, I have something like `echo ${mdslider}` in that bash script. What can I do to make this path resolved on the install/build phase of mdslider derivation?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nbp pushed 1 new commit to master: https://git.io/vFipl
<NixOS_GitHub>
nixpkgs/master 20a5e9d Maximilian Bosch: nixos-option: don't eval description...
NixOS_GitHub has left #nixos []
isidore has joined #nixos
<kuznero>
I guess I could try using sed in fixupPhase?
simukis has quit [(Ping timeout: 248 seconds)]
isidore has quit [(Quit: WeeChat 1.9.1)]
vcunat has quit [(Ping timeout: 240 seconds)]
andrewrk has quit [(Ping timeout: 260 seconds)]
ssmike has joined #nixos
isidore has joined #nixos
<shlevy>
Anyone know how to make ghc in a nix-shell ignore the user package DB? Getting an error due to "shadowed dependencies" with ghc 8.2 even in nix-shell --pure