jsgrant- has quit [(Read error: Connection reset by peer)]
eacameron has quit [(Ping timeout: 248 seconds)]
estewei has quit [(Quit: Quit)]
<hodapp>
ugh... what I keep observing is that setting services.nginx.appendConfig or appendHttpConfig results in nginx just using the default configuration
[0x4A6F] has quit [(Ping timeout: 252 seconds)]
<hodapp>
first it was updating the config properly if I used 'config' or 'httpConfig', now it's still just running nginx with the default options
<hodapp>
this is really frustrating
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
peti_ has joined #nixos
deepfire has quit [(Ping timeout: 255 seconds)]
peti has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to release-16.09: https://git.io/vMQK4
<acarrico>
And specifically, the command: > nix-shell -A haskellPackages.attoparsec
<acarrico>
To make this actually work I need to specify a path, like '<nixpkgs>'
eacameron has joined #nixos
<acarrico>
Is this a bug in the post, or does ocharles have some setup to default the path?
<sheenobu>
acarrico, i think nix-shell -A assumes your local folder has a default.nix
<sheenobu>
acarrico, you can use nix-shell -p
<acarrico>
sheenobu: yes I've used it that way, and the man page seems to agree (default.nix, or shell.nix).
derjohn_mobi has joined #nixos
<acarrico>
I think -p or --path is optional, before '<nixpkgs>' (or whatever).
<sheenobu>
acarrico, either the command has changed since 2014 or the blog post is assuming you are using a nix file from earlier in the post
<acarrico>
Ok, cool. Just making sure I'm not missing something. Thanks sheenobu :).
<sheenobu>
-p just lets you specificy the packages. -A accepts an attribute so without a source for that attribute (a file or '<nixpkgs>') it will fail
<acarrico>
Oh, I see. I parsed the man page wrong.
<acarrico>
Got it.
mizu_no_oto has joined #nixos
eacameron has quit [(Ping timeout: 264 seconds)]
<acarrico>
It is these little things that sometimes make nix a little opaque.
<acarrico>
Love it in general though.
<acarrico>
It is funny how something so clean semantically can sometimes degenerate into a maze of config files and env vars for novices like me.
<acarrico>
I guess that is just the evolution of real systems.
pxc has joined #nixos
<acarrico>
Thanks again. sheenobu.
bfrog has quit [(Quit: WeeChat 1.6)]
Lowl3v3l has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
<sheenobu>
acarrico, np. i struggle with some of it too.
mbrgm has joined #nixos
ilja_kuklic has quit [(Ping timeout: 276 seconds)]
mexisme2 has quit [(Read error: Connection reset by peer)]
mexisme has joined #nixos
systemfault has joined #nixos
t7 has quit [(Remote host closed the connection)]
acarrico has quit [(Ping timeout: 240 seconds)]
calvinx has joined #nixos
iyzsong has joined #nixos
peti_ has joined #nixos
hexagoxel has quit [(Ping timeout: 245 seconds)]
peti has quit [(Ping timeout: 255 seconds)]
Lowl3v3l has quit [(Remote host closed the connection)]
hexagoxel has joined #nixos
acarrico has joined #nixos
peti_ has quit [(Ping timeout: 258 seconds)]
peti_ has joined #nixos
sheenobu has quit [(Quit: Leaving)]
shanemikel has quit [(Read error: Connection reset by peer)]
shanemikel has joined #nixos
ryantrinkle has quit [(Ping timeout: 255 seconds)]
ryantrinkle has joined #nixos
eacameron has joined #nixos
peti has joined #nixos
peti_ has quit [(Ping timeout: 240 seconds)]
alx741 has quit [(Quit: alx741)]
eacameron has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
peti has quit [(Ping timeout: 260 seconds)]
Wizek has quit [(Ping timeout: 258 seconds)]
ryantrinkle has quit [(Ping timeout: 255 seconds)]
alx741 has joined #nixos
peti has joined #nixos
mizu_no_oto has joined #nixos
edvorg has joined #nixos
MP2E has quit [(Quit: brb)]
MP2E has joined #nixos
mguentner has quit [(Quit: WeeChat 1.6)]
eacameron has joined #nixos
mrkgnao has joined #nixos
mguentner has joined #nixos
<mrkgnao>
is there an official "sane NixOS defaults" guide anywhere?
eacameron has quit [(Ping timeout: 255 seconds)]
<mrkgnao>
like setting up channels and so on
<mrkgnao>
and generally other things that are basically the first changes you make on a new install
ertes has joined #nixos
eacameron has joined #nixos
ryantrinkle has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
matthewbauer has joined #nixos
xadi has joined #nixos
Itkovian has joined #nixos
xadi has quit [(Client Quit)]
agjacome has quit [(Read error: Connection reset by peer)]
agjacome has joined #nixos
mguentner2 has joined #nixos
<NixOS_GitHub>
[nixpkgs] MostAwesomeDude opened pull request #22028: Tahoe-LAFS version bump (master...tahoe) https://git.io/vMQDF
mguentner has quit [(Ping timeout: 240 seconds)]
mguentner2 is now known as mguentner
acarrico has quit [(Ping timeout: 258 seconds)]
MP2E has quit [(Quit: brb)]
MP2E has joined #nixos
target_i has joined #nixos
shanemikel has quit [(Read error: Connection reset by peer)]
acarrico has joined #nixos
sitedyno has quit [(Ping timeout: 240 seconds)]
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 255 seconds)]
georges-duperon has quit [(Ping timeout: 252 seconds)]
pikajude has quit [(Quit: ZNC 1.6.3 - http://znc.in)]
pxc has quit [(Ping timeout: 240 seconds)]
pikajude has joined #nixos
sitedyno has joined #nixos
edvorg has quit [(Ping timeout: 240 seconds)]
systemfault has quit [(Quit: Bye!)]
proteusguy has quit [(Remote host closed the connection)]
proteusguy has joined #nixos
systemfault has joined #nixos
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
proteusguy has quit [(Ping timeout: 264 seconds)]
proteusguy has joined #nixos
Nadri has quit [(Remote host closed the connection)]
eacameron has quit [(Remote host closed the connection)]
Nadrieril has joined #nixos
matthewbauer has quit [(Ping timeout: 256 seconds)]
alx741 has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
sitedyno has quit [(Ping timeout: 248 seconds)]
brh has quit [(Quit: Lost terminal)]
sitedyno has joined #nixos
sitedyno has quit [(Ping timeout: 256 seconds)]
matthewbauer has joined #nixos
matthewbauer has quit [(Ping timeout: 258 seconds)]
<endformationage>
Is there a way to refer to a derivation's outPath inside mkDerivation?
systemfault has quit [(Quit: Bye!)]
phanimahesh has quit [(Ping timeout: 240 seconds)]
phanimahesh has joined #nixos
eacameron has joined #nixos
Wizek has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
mrkgnao has quit [(Ping timeout: 240 seconds)]
sdothum has quit [(Ping timeout: 276 seconds)]
endformationage has quit [(Quit: WeeChat 1.5)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
matthewbauer has joined #nixos
phant0mas has joined #nixos
matthewbauer has quit [(Ping timeout: 256 seconds)]
bennofs has joined #nixos
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
cfricke has joined #nixos
<unlmtd[m]>
why would invoking the nix-shell with clang start downloading the same version that's already installed?
phanimahesh has quit [(Remote host closed the connection)]
<unlmtd[m]>
it has a different hash
<unlmtd[m]>
hmm
systemfault has joined #nixos
eacameron has joined #nixos
sdothum has joined #nixos
glines has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 255 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
faffolter has quit [(Ping timeout: 240 seconds)]
angerman has joined #nixos
Itkovian has joined #nixos
eacameron has joined #nixos
MP2E has quit [(Quit: sleep)]
eacameron has quit [(Ping timeout: 240 seconds)]
<mog>
i am having weird issue
<mog>
i have copied over the config files for tinc from one box to another
<mog>
and when i did nixos-rebuild all the services are there except for the main one
panostimos has joined #nixos
matthewbauer has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
matthewbauer has quit [(Ping timeout: 256 seconds)]
<mog>
reboot fixed it
<mog>
odd
<MichaelRaskin>
endformationage: In the scripts, there is $out; in the derivation, no, because of how hashing is used, but why do you want it?
<MichaelRaskin>
sheenobu: acarrico: Nix still has a semantically simple core which is perfectly usable directly; friendly helpers on top try to match common use cases, and user behaviour is messy, so are these helpers
sj_mackenzie has joined #nixos
calvinx has quit [(Quit: calvinx)]
systemfault has quit [(Quit: Bye!)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
LUuM has joined #nixos
xadi has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
mudri has joined #nixos
wkennington has quit [(Read error: Connection reset by peer)]
matthewbauer has quit [(Ping timeout: 245 seconds)]
<gchristensen>
good morning #nixos
xadi has quit [(Quit: Leaving.)]
<Unode>
o/ gchristensen
<Unode>
LnL: yesterday, problems, there was some hydra related discussion on the mailing list that lasted a couple of days. It was fixed but I assume things were still catching up.
<LnL>
the cpu/memory usage thread?
<Unode>
yes
<Unode>
well, infinite ... I didn't pay so much attention to it.
<LnL>
that was not related to the nixos.org instance, that one is running an older version
ertesx has joined #nixos
<Unode>
ok, sorry for the confusion then.
<LnL>
was just wondering, since everything has been working fine AFAIK
<ronny>
hi
<ronny>
is there a way to select configuration options based on a environment variable
<ronny>
i'd like to unify the configuration modules for most of my systems in a way that makes picking the distinct settings of each system more automated
<LnL>
gchristensen: morning :)
<Unode>
ronny: have the settings in one file and source it where relevant?
ertes has quit [(Ping timeout: 240 seconds)]
ertesx is now known as ertes
<gchristensen>
:)
<Unode>
is there any FAQ section other than the outdated wiki?
<Unode>
or is stackexchange the de factor question place now?
<Unode>
*de facto
<LnL>
ronny: I have my common configuration in configuration.nix and have another file for each system that I add to the imports
<ronny>
Unode: im more looking for a way to automatew picking the module for the current computer
kampfschlaefer has joined #nixos
<ronny>
(atm i do use symlinks)
<ronny>
but i'd much prefer if i could name the current computer somehowand always have my configuration pick out
<Unode>
ronny: I don't really now how to do this with nix configuration files but in a nother setup I have a filename matching the hostname and I just import based on that.
<ronny>
for that matter i#d also like to get a better way to create vm images of saif configurations
<LnL>
yeah, you can have a configuration.nix that imports your repo and includes a hostname
<Unode>
I use this trick to have machine specific tweaks on my awesomewm configuration.
<LnL>
then you configure a bunch of things based on that
<gchristensen>
LnL: so, it seems like the hydra needs to evaluate the most current master, then apply the merge
<Unode>
is there any way (command line) to know if when issuing a "nix-env -i" command I'll be fetching a pre-compiled tarball or going for source compilation?
<gchristensen>
LnL: otherwise we get real weird diffs in the passing / failing packages, since our evaluated master isn't the same
<LnL>
using the last eval of the master jobset won't work?
<gchristensen>
well maybe ... but it might still provide weird diffs
<LnL>
any idea why that is?
<gchristensen>
if the master's latest eval isn't current to what the PR is merging to
<NixOS_GitHub>
[nixpkgs] fpletz pushed 15 new commits to staging: https://git.io/vMQh4
<NixOS_GitHub>
nixpkgs/staging a9c1d92 Franz Pletz: varnish: 4.0.3 -> 5.0.0
<NixOS_GitHub>
nixpkgs/staging 77c891f Franz Pletz: rrdtool: 1.5.5 -> 1.5.6
<NixOS_GitHub>
nixpkgs/staging 281a56a Franz Pletz: collectd: 5.6.0 -> 5.7.0
derjohn_mobi has quit [(Ping timeout: 256 seconds)]
Itkovian has joined #nixos
JagaJaga has quit [(Ping timeout: 258 seconds)]
<bennofs>
using hydra on latest nixos unstable, i am unable to add jobset inputs, they just don't appear to get saved. anyone experiencing similar issues?
<LnL>
yeah
<bennofs>
any workaround?
<LnL>
sec
reinzelmann has quit [(Ping timeout: 240 seconds)]
<jophish_>
hmm, I'm running into "current Nix store schema is version 10, but I only support 7" again
<LnL>
what's your nix version?
<jophish_>
LnL: nix-build --version report 1.11.6
<jophish_>
reports*
<jophish_>
however, the error is coming from /nix/store/...-nix-1.11.4/
<gchristensen>
fpletz: ooh does globin want to convert a query to DBI for me? :o
<bennofs>
Btw, why does it take so long to get any comments on Hydra/Nix PRs? Is niksnut overloaded with work?
<LnL>
jophish_: yeah, perhaps your daemon is still running 1.11.4?
<LnL>
the daemon process doesn't have an absolute path :(
<jophish_>
LnL: that must be it, it's running /usr/bin/nix-daemon, installed ages ago
<bennofs>
fpletz: nice, that looks good, thank you
mudri has quit [(Ping timeout: 248 seconds)]
<LnL>
jophish_: ah, you're not on nixos. then you have to update the daemon
<jophish_>
LnL: It should be ok to run /nix/var/nix/profiles/default/bin/nix-daemon I hope
<fpletz>
gchristensen: well, aren't we all eagerly awaiting hercules-ci's first alpha? :>
<jophish_>
oh, /usr/bin/nix-daemon is nix-daemon (Nix) 1.12pre1234.abcdef
<jophish_>
fpletz: working on it now :D
<LnL>
jophish_: yes, that's what I do with nix-darwin. just don't remove nix from that profile :)
<fpletz>
!m jophish_
<[0__0]>
You're doing good work, jophish_!
<jophish_>
^.^
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
cpennington has joined #nixos
<gchristensen>
fpletz: months away :( in the mean time, I have a faster query for the home page
<the-kenny>
can I get the absolute path for the current file in Nix?
<gchristensen>
like where it is in the store?
<LnL>
I was also waiting for pr support in hercules, but then gchristensen talked about the packet.net offer
<the-kenny>
gchristensen: no, inside a .nix file.
<the-kenny>
gchristensen: at evaluation time
<bennofs>
gchristensen: what's missing from hercules right now?
Itkovian has joined #nixos
<jophish_>
bennofs: nearly everything :)
<gchristensen>
bennofs: well it isn't usable
<gchristensen>
(according to its own status page)
<the-kenny>
gchristensen: Something like `builtins.getEnv "PWD"` but maybe a bit cleaner :)
Itkovian has quit [(Client Quit)]
<jophish_>
yesterday I got it to show a list of the logged in user's repos. That's about where it is
<gchristensen>
jophish_: you're using hydra's existing schema right?
Itkovian has joined #nixos
<jophish_>
gchristensen: I'd like to make a clean break. At the moment it uses the hydra database and performs queries there for domenkozar's frontend
<jophish_>
it also uses the 'hercules' database for storing anything new, like the table of hercules users (with github login info etc...)
<gchristensen>
huh
<jophish_>
we're discussing at the moment whether to just put more tables in the hydra database
<bennofs>
gchristensen: do you plan hercules to be like hydra (input based, where you can have multiple inputs) or more like travis (repo based, where there is a single repo that triggers updates)?
<fpletz>
gchristensen: yeah, but hydra deperately needs some more committers to keep it in a usable state… but at least I don't have the time to refresh my perl-fu :)
<LnL>
the-kenny: the module system tracks the location of definitions somehow
<jophish_>
bennofs: at the moment it's going to be like travis
Itkovian has quit [(Client Quit)]
<gchristensen>
bennofs: I don't have any involvement in herculese
<gchristensen>
I can't even spell it! %)
<jophish_>
herculeses is the language it's being written in perhaps :)
<jophish_>
I can't even spell herculese!
<bennofs>
fpletz: well, to be fair, contributing to hydra is not such a smooth experience. Feels like there's often no response to created issues or PRs for quite some time
mudri has joined #nixos
<fpletz>
bennofs: yup :/
<jophish_>
at one point I think I owned every single issue on page one of hydra's issues page :)
<bennofs>
fpletz: so I don't really have motivition to look closer into perl or hydra
_c_ has quit [(Changing host)]
_c_ has joined #nixos
simendsjo has quit [(Quit: ERC (IRC client for Emacs 24.5.2))]
Itkovian has joined #nixos
<the-kenny>
LnL: hm, that might be overkill here. I think I'll to with builtins.getEnv
matthewbauer has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Client Quit)]
Lowl3v3l has joined #nixos
<gchristensen>
jophish_: I'd worry about the viability of replacing hydra.nixos.org when the underlying db doesn't transfer over
<jophish_>
gchristensen: my initial goals for hercules are to have it be a better nix based travis replacement than hydra is
<gchristensen>
I see
<jophish_>
and for it to be easier to extend and maintain than hydra
<bennofs>
gchristensen: you could put the old hydra into read-only mode for archivement purposes and transfer the projects to the new one
<gchristensen>
bennofs: I can't do anything! have to convince Top Brass on that
Itkovian has joined #nixos
<jophish_>
This is a little odd, the nix-daemon from pkgs.nix from nixpkgs HEAD still says it only supports 7
<gchristensen>
10 was introduced on nixUnstable
<jophish_>
ah, so I'll need to get it from NixOS/nix
matthewbauer has quit [(Ping timeout: 252 seconds)]
<gchristensen>
no, nix.package = nixUnstable
<gchristensen>
or something like that
<MichaelRaskin>
gchristensen: if only we had a nix-daemon-proxy, Hydra and whatever other thing would share the builders and noone would notice until all users would quietly switch to the new thing…
<MichaelRaskin>
(As far as I understand, right now there is no cheap way to make sure Hydra and Hercules sharing the builders would not build the same thing twice on different builders)
<bennofs>
MichaelRaskin: when running them in parallel, couldn't you just disable builds for the Hydra?
reinzelmann has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<MichaelRaskin>
The initial decision would be cheaper, and the decision to make Hydra read-only would be needed only after the supporting data would have arrived
<jophish_>
Hercules is able to query the hydra database, I don't think getting it to not perform redundant builds should be too problematic
<MichaelRaskin>
It cuts both ways: you want to make sure tht if Hercules starts the build first, Hydra doesn't start it in another place
<jophish_>
we could poke the Hydra database, but I feel like that would be a real can of worms!
<yorick>
I think the power supply was just too puny
eacameron has joined #nixos
<pradeepch>
I am able to run nix-shell but whenever i do nixos-rebuild switch it fails saying "The option __ignoreNulls defined in /etc/nixos/app.nix doesnot exist
<pradeepch>
I am unable to figure out the reason why it is failing but nix-shell works perfectly fine.
<pradeepch>
Any pointers will be appreciated. Thanks.
<ronny>
hmm
matthewbauer has quit [(Ping timeout: 256 seconds)]
<ronny>
whats the canonical way to get the name of a system/ a user configuration from the env/an argument in nix so i can select configuration files based on hostname/arguments
<hodapp>
is there a standard way to start containers at startup in NixOS?
eacameron has quit [(Ping timeout: 260 seconds)]
<hodapp>
'systemctl start' runs them, but 'systemctl enable' gives the "The unit files have no installation config..." message
<LnL>
hodapp: containers.<name>.autoStart = true;
eacameron has joined #nixos
<hodapp>
oh, thanks!
<hodapp>
couldn't find that last night
<pradeepch>
anyone who can help in debugging ""The option __ignoreNulls defined in /etc/nixos/app.nix doesnot exist" error please
<jophish>
Is there a way I can add another x86_64-linux build machine which will perform builds as well as my current x86_64-linux machine. remote builds for darwin work well, but when I perform an x86_64-linux build it's only done locally
<gchristensen>
jophish: same as you added your remote darwin builder
<pradeepch>
gchristensen: thanks a lot for the comments. one quick question - i can then add rest of the block like fetchFromGitHub as it is, right?
<jophish>
hmm, I must have done something wrong then
<gchristensen>
jophish: did you set the systems it can build?
<jophish>
it looks like this in $NIX_REMOTE_SYSTEMS: nix@calcifer x86_64-linux /etc/nix/remote 6 6
<gchristensen>
pradeepch: sorry, I can't help further :(
<pradeepch>
no problems. i will try it out myself :)
<gchristensen>
pradeepch: hint though: you probably don't want to override builder like you do on line 18
<pradeepch>
ahh ok.
goibhniu has joined #nixos
<gchristensen>
jophish: not sure, I've never set it up outside of a hydra
<jophish>
yeah, it works fine for my hydra instance too
rmrfroot has joined #nixos
<ronny>
how do i get the HOSTNAME in a full system build? it seems the env var is empty
<LnL>
getting distributed builds to work can be a bit annoying
<jophish>
It's working well for builds which I can't perform locally.
<LnL>
have you tried to ssh to the machine with root/hydra-queue-runner
<LnL>
the builder won't be used when it's not in the known_hosts yet
GiGa|Laptop has joined #nixos
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<jophish>
LnL: that was it!
<jophish>
thanks
sdothum has joined #nixos
<LnL>
that's what I mean, no warnings or indication why it's not used
sternenseemann has left #nixos []
<jophish>
the annoying thing is that it's only now that I remember I had this exact same problem when I was setting up hydra!
<jophish>
there's also some sneaky issue when packages aren't signed, but I forget the details
<jophish>
how good is the load balancing, will it be a win if I put an old (perhaps 1/3 the power of my desktop) laptop as a shared builder?
eacameron has joined #nixos
<gchristensen>
if your builds average out to equal build time, yes
<gchristensen>
but if your slow machine gets stuck with chrome it'll be a loss
<jophish>
what is a little odd is that nix builds 'hello' remotely. I guess it doesn't know any better since that won't have 'perferlocalbuild' or whatever
<BlessJah>
how is bios in brix? I've bought gigabyte mobo with same SoC as some brixes and bios is so horrible
matthewbauer has joined #nixos
<MichaelRaskin>
I dunno, I found it OKish for my complicated task of enabling UEFI and forgetting about BIOS settings forever
<gchristensen>
jophish: nix has no idea how hard a build will be
<MichaelRaskin>
I run 4770R headless, so I haven't went into BIOS since a long time
GiGa|Laptop has quit [(Ping timeout: 240 seconds)]
athan has quit [(Ping timeout: 248 seconds)]
<jophish>
gchristensen: yeah, that's understandable. Perhaps the behaviour I'm looking for is that nix performs builds locally until the machine is saturated, and then starts performing builds on other machines in the office
<gchristensen>
jophish: that is actually easy to accomplish :)
<gchristensen>
(I think..!)
<jophish>
oh! pray tell!
<gchristensen>
jophish: set your local speedFactor to like 99999
<BlessJah>
MichaelRaskin: y ga-n3150n was meant to be NAS, bios on the board would be kinda ok unless if it simply allowed to turn some options on or off, but it's easily to get combination that wont boot into bios anymore (I had to clear cmos way too many times)
<MichaelRaskin>
Oh, NAS
matthewbauer has quit [(Ping timeout: 245 seconds)]
asymmetric has joined #nixos
GiGa|Laptop has joined #nixos
<GiGa|Laptop>
Can anyone give me some advice on "git cherry-pick" please? I've got a package definition I've edit that I'd like to commit and perform a pull request for.
<BlessJah>
i've heard good things about zotax zbox (with the same cpu) - bios allows you even to fake floppy with sd card
<jophish>
gchristensen: does that mean I have to treat my local machine as a remote builder, or is there some option in nix.conf for that?
MoreTea has joined #nixos
<MoreTea>
I was looking a bit at the parser. I saw now definition of booleans, so I guess that it's handled by injecting true and false in the top level lexical scope.
<gchristensen>
jophish: you'll have to treat local as remote
<MoreTea>
As a consequence, `let true = false; in true` evaluates to false, hehe.
<GiGa|Laptop>
globin said to perform a cherry-pick but I'm struggling a bit with the syntax. He said "git cherry-pick COMMIT_WITH_UPDATE". I'm assuming I replace "COMMIT_WITH_UDPATE" with something else
<MichaelRaskin>
BlessJah: for me, the point was to get a full i7 in a size that is easy to throw in a backpack
<gchristensen>
MoreTea: what happens then if you assert true?
<jophish>
gchristensen: I'll give it a go, thanks!
* BlessJah
would love to have raid, dual nic and ipmi in backpack carry-able form factor
<LUuM>
GiGa|Laptop: yes, the hash or ref of your commit.
<MichaelRaskin>
I don't care much about dual NIC, for me USB3-ethernet works fine
<GiGa|Laptop>
LUuM, so I can specify an arbitrary sting, or I should specify the branch name I created?
<MichaelRaskin>
RAID means you need to fit two storage devices and cooling — that can cool them too
<MichaelRaskin>
My BRIX already overheats often, just rarely enough to still be good performance on average
* GiGa|Laptop
is very very new to git
michaelpj has joined #nixos
<MoreTea>
@gchristensen, `let true = false; in assert true; true` ==> error: assertion failed at (string):1:22
<gchristensen>
fancy
<BlessJah>
GiGa|Laptop: git has dead simple data model, once you learn it it's much much easier to reason about somewhat crazy interface
<rmrfroot>
anyone familiar with `hydra-create-user` getting a "DBD::SQLite::db prepare_cached failed: no such table: Users" error?
dramforever has left #nixos ["Leaving"]
<MichaelRaskin>
«somewhat»
<LUuM>
GiGa|Laptop: Ok. So what's exactly your situation? You got a (older) git branch with your own commits, but in order to create a pull request you want to update to master first?
<rmrfroot>
alright, i have hydra running, webUI works, the pg database is populated after restarting the systemd service hydra-init.
<GiGa|Laptop>
git checkout -b update-jetbrains
<GiGa|Laptop>
git reset --hard upstream/master
<gchristensen>
ay
<Unode>
Is there any portable way to have "$(dirname $(readlink $(which git)))/../share/git/contrib/diff-highlight/diff-highlight" as a symlink or in the PATH ?
<GiGa|Laptop>
**applied my change to a file**
<GiGa|Laptop>
LUuM, now I want to get to a position where I submit my updated file
<rmrfroot>
gchristensen: i had already restarted hydra-init before i got that error
ebzzry has joined #nixos
<rmrfroot>
gchristensen: is sqlite used alongside postgres?
<LUuM>
GiGa|Laptop: sound's quite good to me. you applied you changes manually, so the files now have the desired state you want to submit?! no need for cherry picking then.
pi3r has joined #nixos
ebzzry has quit [(Client Quit)]
<gchristensen>
no
<GiGa|Laptop>
LUuM, OK, that's good
<GiGa|Laptop>
so just git commit?
<rmrfroot>
gchristensen: maybe that's the problem then, that the user creation script tries to use sqlite?
<gchristensen>
rmrfroot: you may need to set the dbi
<gchristensen>
joepie91: maybe an issue? but it would be even better if you started regularly and consistently making efforts to be the change you want to see in nixos
<joepie91>
gchristensen: one of the points in said rant is that it's impossible for me to do so
<gchristensen>
joepie91: but you can start with the issue and then do the other part
<joepie91>
:)
<GiGa|Laptop>
yet "git commit" gives me "On branch update-jetbrains nothing to commit, working tree clean"
<gchristensen>
why is that?
<GiGa|Laptop>
so now git push?
<LUuM>
GiGa|Laptop: next step is to push it to a new branch on your "private" git repo
<joepie91>
gchristensen: because I barely understand any of how the current Nix tooling works, and I'm finding it extremely hard to get questions about it answered, meaning I can't document anything because I don't understand it to begin with
<rmrfroot>
gchristensen: i'm running the command as the hydra user, and HYDRA_DBI is set to the right value. the /var/lib/hydra/.pgpass file has the correct value too. i will double check passwords and all that, maybe i've got the wrong password somewhere.
<joepie91>
gchristensen: I have made an offer here in the past to write documentation based on people's notes, but as of yet, nobody has taken me up on this
<LUuM>
GiGa|Laptop: hm? why commit again?
<joepie91>
I can write documentation, but not if I don't understand the thing to be documented
<joepie91>
gchristensen: hence writing a rant about the issues I've run into regarding documentation and generally finding answers, in the hope that either 1) it motivates people to help me help them or 2) it communicates to the more NixOS-competent users how to better communicate their knowledge to new users
<GiGa|Laptop>
LUuM, OK, that's pushed to my private repo
<rmrfroot>
joepie91: i can relate to that!
<gchristensen>
joepie91: sounds good :)
<joepie91>
gchristensen: on the issue tracker would be best, then?
<LUuM>
GiGa|Laptop: now you should be able to create the merge request via the github website
<GiGa|Laptop>
LUuM, yep, looking at that now
simendsjo has joined #nixos
<gchristensen>
joepie91: do you have anything in particular you want to document? or do you want guidance on where to focus / help researching and understanding to write the docs?
<bennofs>
joepie91: do you have any concrete questions?
<joepie91>
bennofs: I have concrete questions every time I try to do basically anything concerning packaging, but the concrete questions aren't the problem, the problem is how hard it is to find an answer :P
<joepie91>
documentation accessibility is just not good right now
<gchristensen>
I agree
<LnL>
jophish: I do have a bunch of notes on distributed builds that should probably end up in the manual
* gchristensen
looks towards the long-absent kmicu :(
<LnL>
joepie91: ^
<LnL>
yeah what happend to him?
<LnL>
!seen kmicu
<joepie91>
gchristensen: my goal here is mostly to point out the documentation issues (since I get the impression that those in the best position to document NixOS are not particularly experienced at documentation writing, and vice versa), and to get an effort started on fixing that... the contribution from my side would be primarily knowing how to *write* the docs, and other people would have to pitch in with the actual content/concepts
<gchristensen>
aye
<NixOS_GitHub>
[nixpkgs] joncojonathan opened pull request #22030: Updated versions of various Jetbrains applications, including PHPStor… (master...update-jetbrains) https://git.io/vM7TK
<bennofs>
joepie91: have you had a look at the nix pills?
<gchristensen>
[0__0]: seen kmicu
<[0__0]>
Yes, I saw kmicu 2 weeks ago.
<GiGa|Laptop>
OK, I think that's done
<[0__0]>
kmicu said: "gchristensen: ah, that chapter is not updated since 1.6 with ‘Nix now has proper integer arithmetic operators. For instance, you can write x + y instead of builtins.add x y, or x < y instead of builtins.lessThan x y. The comparison operators also work on strings.’."
<joepie91>
LnL: right, it might be a good idea to dump those in the thread as well, as a starting point for somebody
<GiGa|Laptop>
LUuM, thanks for your help
<joepie91>
bennofs: yes, but the nix pills only document so much, and it is more a step-by-step tutorial than a way to look up specific concepts / problems
<bennofs>
oops sry for the broken link
<gchristensen>
joepie91: perhaps opening an issue when you're having trouble with something and saying "I'm trying to document X but need help understanding Y and Z" would be a good way to solicit that information? I'm not sure, I definitely understand your pain
<gchristensen>
but sure, open an issue to start the convo :)
<joepie91>
gchristensen: this takes too long, and doesn't solve the inherent problem
<joepie91>
takes too long to get a response, I mean
<LnL>
the nix pills explain a bunch of nix internals like how callPackage works, they are great but it's not really documentatioon
<bennofs>
joepie91: can I help you in any way right now?
<jophish>
LnL: yeah, a list of all these 'gotcha's would be nice
<joepie91>
it took *ages* to get anything approaching an answer
<joepie91>
this is not viable for day-to-day work with Nix
<LnL>
jophish: oh, I pinged a relevant person by accident? :D
<bennofs>
joepie91: oh, if you're talking about understanding specific parts of nixpkgs, I definitely agree 100% with you that nixpkgs is a mess
<jophish>
LnL: always interested in what you have to say :)
<joepie91>
bennofs: not with any specific points, no - the question was mostly just where to publish a rant/essay/whatever-you-want-to-call-it about the documentation issues... documenting specific issues can follow from that
<joepie91>
but there's not much point approaching specific issues until I've outlined the issues I see :P
<joepie91>
(with the current approaches, that is)
<joepie91>
because I'll just end up replicating the rant in realtime on IRC but more poorly worded
<bennofs>
joepie91: perhaps posting a link on the nix-dev ML would be appropriate?
<bennofs>
joepie91: if you don't want to use github
* joepie91
has no qualms with using github for this
<gchristensen>
joepie91: to be fair though, wine seems to be one of the more obscure sides, I've never heard of anyone making a wine-based package
<bennofs>
gchristensen: there's dozen of obscure parts in nixpkgs though, which is a problem
<joepie91>
gchristensen: well sure, but- yeah, that
<joepie91>
and even just a pointer would be nice
<joepie91>
it doesn't have to be a full essay
<bennofs>
joepie91: to use anything more complex from nixpkgs currently you need to read the code for that IMO. I don't want to endorse that situation, but that's how it is right now
<gchristensen>
bennofs: no doubt
<joepie91>
like, generally speaking, when something isn't already packaged, that means it's not your standard autotools-based package, and so you're going to need to understand the more obscure bits to be able to package it
<joepie91>
bennofs: this is rapidly going into reproducing-my-rant-on-IRC territory :)
<gchristensen>
but even if I wanted to help, I don't know of a single person I could direct joepie91 to
<joepie91>
(this is also covered in my rant)
<gchristensen>
(re wine)
<joepie91>
so I'll just get started on writing it into an issue, heh
<gchristensen>
good :D
<gchristensen>
thank you, joepie91
<LnL>
(y)
iyzsong has quit [(Quit: bye)]
cpennington has quit [(Remote host closed the connection)]
GiGa|Laptop has quit [(Ping timeout: 256 seconds)]
<rmrfroot>
gchristensen: i found the problem, i ran the command using "sudo -u hydra [CMD]". when doing that the env vars was not set since they are only set on login. running the command "sudo -u hydra -i [CMD]" solved the problem
<gchristensen>
ahh good, rmrfroot
<rmrfroot>
gchristensen: thanks for being my rubber duck ^^
agjacome has quit [(Read error: Connection reset by peer)]
<bennofs>
pradeepch: it sounds like you tried to include that as a configuration module instead of a package
<gchristensen>
also worth considering joepie91 is the growth of nixpkgs since october 2015, in that since octobor 2015 we've merged as many PRs as existed over the life of the project at that time (8,000 before october 2015, 8,000 since october 2015)
<bennofs>
pradeepch: iirc stdenv.mkDerivation might return a set that has an __ignoreNulls attribute
agjacome has joined #nixos
<pradeepch>
bennofs: ahh ok. how can i debug it :)
<bennofs>
pradeepch: what command can I run to reproduce your error?
<LnL>
gchristensen: I didn't know it where that many
<pradeepch>
i basically imported this app.nix into configuration.nix and ran nixos-rebuild switch
<gchristensen>
LnL: indeed :D
<bennofs>
pradeepch: how did you import it into configuration.nix?
<bennofs>
pradeepch: can you show the code from configuration.nix where you do that?
<pradeepch>
yes sure
<pradeepch>
bennofs: here is how both app.nix and configuration.nix looks like
<bennofs>
pradeepch: imports is meant for nixos module imports
mojjo has joined #nixos
<bennofs>
pradeepch: so you could use it to split up your configuration.nix into multiple modules for example
<pradeepch>
ahh ok ok
<bennofs>
pradeepch: but obviously, your app.nix does not define configuration options which is why it fails (it just so happens that a derivation is also an attribute set and thus *could* be a valid module, but of course the names of the attributes aren't valid option names)
rmrfroot has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
<bennofs>
pradeepch: you can add packages (which your app.nix is) like this: environment.systemPackages = [ (import ./app.nix) ];
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vM7k6
<NixOS_GitHub>
nixpkgs/master 733365b Alexander Batischev: paratype-pt-sane: s/sane/sans/
<pradeepch>
bennofs: i think i am getting what you meant.
<bennofs>
pradeepch: that'll add the app env to the list of things that have /bin, etc symlinked into your system environment
<pradeepch>
ok ok
<pradeepch>
i am also trying to pull a github repo using fetchfromGithub
<pradeepch>
can i remove derivation completely and do the same
<bennofs>
pradeepch: hmm? what do you want to do when you pulled the github repo?
glines has joined #nixos
matthewbauer has quit [(Ping timeout: 255 seconds)]
<bennofs>
pradeepch: the code for src in your app.nix looks correct, yet I still don't see what the sense behind all of this is supposed to be :)
<pradeepch>
bennofs: i have never used nix, just learning from today .. I want to run the flask app. I was thinking to use systemd and start flask app after pulling the code from github
<pradeepch>
i am thinking in the way how rest of the config management and deployment tools works :) Maybe there is better ways to do in nix world
<bennofs>
pradeepch: in nixos way, you would first write a package for your app and then you can write a module that setups systemd services etc
<bennofs>
pradeepch: for the package, app.nix is halfway there
<bennofs>
pradeepch: let me quickly adapt your nix file to show you what I mean
<pradeepch>
bennofs: that will be great. thanks a lot.
<bennofs>
pradeepch: then you can run nix-build app.nix and you get a result symlink that allows you to launch your hello world app: result/bin/hello-world
<gchristensen>
LnL: I added benchmark to all the machines and now every machine is doing nothing but building metrics :)
<pradeepch>
bennofs: thank you very much. I can compleletely correlate package and module by looking at it. very appreciating :)
jensens has quit [(Ping timeout: 255 seconds)]
<roundhouse>
hi guys, is there anywhere I can see when a commit to nixpkgs master will be available in nixos-unstable?
<gchristensen>
contrapumpkin, globin, domenkozar: can we merge https://github.com/NixOS/nixpkgs/pull/21971? it passes everything AFAICT and fixes a fairly annoying issue with my hydra
georges-duperon has quit [(Ping timeout: 252 seconds)]
<bennofs>
pradeepch: I've played around with your example a little bit more (always wanted to learn about nixos containers :), so here is a complete nixos service that runs your app with systemd: https://gist.github.com/bennofs/de8098067940142af39971376352913a
<bennofs>
pradeepch: the previous version I posted was really more of a "package"
eacameron has quit [(Ping timeout: 240 seconds)]
* joepie91
is up to 12kb of text so far
<the-kenny>
Does anybody here see (in)frequent emacs25 crashes? For some reason my emacs started crashing randomly (mostly when refreshing some test on the screen, for example during `rgrep`)
<bennofs>
the-kenny: haven't noticed that, at least not since I disabled EXWM :)
<jophish>
LnL: That doesn't seem to work for me. I'm talking about dependencies necessary to perform the evaluation, so in this example I'd expect to see pkgs.hello in the list https://gist.github.com/72b6d59957e6e0b73a55326492072096
<the-kenny>
bennofs: I'm not using that. I *suspect* it might have something to do with the font rendering, as I switched fonts a while back (and nothing else)
eacameron has joined #nixos
<the-kenny>
It's super annoying as it sometimes happens three times in 10minutes then not once for days
<jophish>
As far as I know these are evaluated when they are required, and there's no program to print the list without running them
<bennofs>
jophish: i suspect that in general, this is undecidable
<jophish>
Which is understandable, as they could be arbitrarily dependent on other inputs
<bennofs>
jophish: there might be multiple stages required
<jophish>
exactly
<LnL>
jophish: hello should be in the closure of the drv, but there's not really a way to get the attribute
<the-kenny>
...and the backtrace only names "libphtreaded" and many many questionmarks :)
<jophish>
I'm just wondering for the hercules user experience. Can it be done better than hydra, where it just says "evaluating" for potentially quite a long time
<NixOS_GitHub>
[nixpkgs] fpletz opened pull request #22034: Disable conntrack helper autoloading by default (master...conntrack-helpers) https://git.io/vM7mY
<bennofs>
LnL: there's ways to use hello *without* it appearing in the drv though, like comparing its store path to a fixed string and doing something different dependending on the results
<jophish>
for example when I build my haskell packages they depend on cabal2nix for evaluation. It's much nicer for me as a human to build cabal2nix ahead of time and then build my haskell package
<LnL>
bennofs: huh?
<bennofs>
LnL: like: if "${hello}" == "blablabla" then ... else ...
<bennofs>
LnL: then hello won't appear in the .drv
<bennofs>
LnL: therefore, it's not part of the closure of the .drv
<jophish>
what would be nice would be to get the "next" set of unbuild packages in order to advance the evaluation
<bennofs>
jophish: nix has no support for that, so it is impossible apart from adding support for that to nix
<jophish>
I wonder if it's possible to get a list of packages required after a successful evaluation
<bennofs>
jophish: there's not enough info after evaluation i think, because evaluation creates a .drv and that .drv does not contain references to the paths required to build the .drv
<bennofs>
s/build/produce
<jophish>
gotcha
<bennofs>
jophish: I'd be interested in this as well, since it is annoying that you cannot add roots for these dependencies. My haskell setup relies on cabal2nix at derivation time, so while I can add roots for all haskell deps cabal2nix always needs to be recompiled after gc
<jophish>
Perhaps this wouldn't be too hard to add. What would need to happen would be to tell the builder that it's not allowed to build anything during evaluation, but it can put the desired derivation on stdout or some other channel to be picked up and built by another tool
<jophish>
the builder can only advance when that appears in the store
<jophish>
of course this sounds very error prine
<jophish>
prone*
<bennofs>
jophish: "not allowed to build anything during evaluation" isn't there already an option for that?
<jophish>
yes, I think so
<bennofs>
Ah, restrict-eval, but not sure if that's exactly that
<bennofs>
restrict-eval
glines has quit [(Ping timeout: 240 seconds)]
<bennofs>
If set to true, the Nix evaluator will not allow access to any files outside of the Nix search path (as
<bennofs>
set via the NIX_PATH environment variable or the -I option). The default is false.
<jophish>
is that the same one which prevents downloading unhashed inputs?
cfricke has quit [(Quit: WeeChat 1.6)]
<LnL>
bennofs: I'm not sure if that happens in practice
<bennofs>
LnL: that exact example probably not. But one could imagine using builtins.readFile on such a derivation and switching on the output
<jophish>
bennofs: one solution to this would be to declare the evaluation-inputs ahead of time
<jophish>
and not get them ad-hoc from nixpkgs inside the derivation
<jophish>
bennofs: just regular arguments I suppose
<jophish>
they could have default values (which would do naughty building during evaluation)
<bennofs>
jophish: ah and the arguments must be filled in by hydra/ci?
matthewbauer has joined #nixos
<jophish>
but tools such as hercules and hydra could be instructed to fill these in manually to give a more predictable evaluation time
<bennofs>
jophish: so just like regular inputs?
<jophish>
exactly
goibhniu has quit [(Ping timeout: 276 seconds)]
<jophish>
It could be a problem if the inputs the CI is instructed to supply differ from the defaults the developer is using
<bennofs>
jophish: I don't like that. For example, it would be very difficult to feed in each cabal2nix'ed expression if you use cabal2nix at evaluation time in various places
<bennofs>
jophish: I think this would quickly become way too huge to be usable
eacameron has joined #nixos
<jophish>
hmm, I'm not sure what you mean
<jophish>
oh, I see
<jophish>
there could be a half way house, where just cabal2nix is provided from outside
<bennofs>
jophish: well assume you take nixpkgs. there's probably places deep in nixpkgs where cabal2nix may be used, and you'd have to thread all those expressions down to the usage sides
p0le has joined #nixos
<jophish>
the intention is to make evaluation faster, not necessarily without any building (i.e. running cabal2nix)
hiberno has joined #nixos
<jophish>
hmm, that does sound like a pain
<bennofs>
jophish: yeah, you could pass in last-eval and use last-eval instead of <nixpkgs> for getting the tools for import-from-derivation. That should avoid rebuilds where possible
<bennofs>
the tools should be cached anyway
<bennofs>
although that may change behaviour if the current evaluation includes a different version of the tool
<jophish>
yeah, we have this scheme at work and it's not a huge problem aside from when we bump the nixpkgs version and evaluations take forever
matthewbauer has quit [(Ping timeout: 245 seconds)]
<jophish>
bennofs: there is another solution: Make the output from nix-build easier for a machine to understand. Although the evalution would take just as long the CI server could say "evaluation in progress, currently building dependency xxx"
<jophish>
and treat that output as any other build
matthewbauer has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<bennofs>
jophish: that boils down to: implement import-from-derivation properly inside nix, and not in the ad-hoc way it is right now
<bennofs>
it would clearly be nice to have dry-run work for import-from-derivation
<joepie91>
and the same for modifying the `mods`, I guess
<olejorgenb>
bennofs: thanks (do you know it there's some function that call all phases necessesary? eg. configurePhase alone fails for autoconf packages)
<jophish>
asymmetric: builtins.filterSource?
<olejorgenb>
(worked calling the autoreconfhook manually though)
<bennofs>
joepie91: IMO, nix-build --expr should be the default and it should put 'import <nixpkgs> {}' into the scope by default. Or perhaps have a nix expr command to do that, like: nix expr 'callPackage ./default.nix { ... }'
<joepie91>
completely unrelated question, is there a way to obtain what Nix thinks is the SHA256 hash of a file, *without* adding it to the store?
<bennofs>
joepie91: so without nix-store --add-fixed?
<joepie91>
yeah
<jophish>
joepie91: nix-hash
<bennofs>
^^^ was about to say that .)
<joepie91>
hmm. trying to reproduce the hash now, but failing so far...
<joepie91>
sec
<asymmetric>
jophish: can i use `builtins.filterSource` in the preBuild step?
<joepie91>
hrm. --add-fixed seems to be missing from the nix-store manpage?
<asymmetric>
in the docs i see it's used on src, but src in my case is coming from fetchgit, not a local path
<bennofs>
joepie91: yeah seems to be missing. hmm
sj_mackenzie has quit [(Remote host closed the connection)]
<ronny>
again, how can i take env vars or the hostname into account in configuration.nix?
<bennofs>
ronny: you can get the hostname via config.networking.hostName
<bennofs>
...assuming you set that in your configuration.nix
<bennofs>
ronny: otherwise, there is builtins.getENv
<bennofs>
s/getENv/getEnv
<bennofs>
ronny: also, builtins.readFile if you want to store the host-dependent info in some fixed location config file, or you could just format that file with nix syntax and directly `import` it
<gchristensen>
I like that option best
<joepie91>
alright, my updated package works
* joepie91
adds "make a PR" to to-do list for tomorrow
johnsonav has quit [(Ping timeout: 255 seconds)]
<ronny>
bennofs: the env one was empty
<ronny>
bennofs: i am trying to get the current hostname to decide what configfile to include
asymmetric has quit [(Ping timeout: 264 seconds)]
<ronny>
(so i can manage the configurations of different computers all the same
<mzarella>
error: The option `networking.wireless.enable' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/networking/networkmanager.nix' and `/etc/nixos/configuration.nix'
<mzarella>
i searched for keywords in this error message, but i haven't been able to find this problem
<mzarella>
what is the process of debugging it?
<fpletz>
mzarella: there problem here is that the networkmanager module sets the networking.wireless.enable to another value than you do in your configuration
<fpletz>
mzarella: IIRC networkmanger starts it's own wpra-supplicant, so networking.wireless.enable should be false
<fpletz>
*wpa-supplicant
<mzarella>
oh
<mzarella>
i see there's an assertion that config.networking.wireless.enable be false
mrkgnao has joined #nixos
<mzarella>
thank you for that information fpletz
<fpletz>
but the module also sets it to false anyways? it would be nicer if the assertion would be triggered before that other error/asserts in the module code
<mzarella>
i was just going to read through networkmanager.nix and see if i could figure it out
<fpletz>
let me have a look, this is a UX problem :)
<mzarella>
but that answer hopefully saves me some time
mizu_no_oto has joined #nixos
<mzarella>
do i have to install the networkmanager on a per user basis?
<mzarella>
i installed it using the root user
<mzarella>
my understanding so far is that nix will install packages on a per user basis
<LnL>
man this keyboard lag is annoying, but I have no clue why it's happening
<Unode>
clever: hum.. that starts a long compilation. From what I read on that issue and the related ones, I might still end up without useful information...
<clever>
Unode: that function will altar the build flags to include debug symbols
<ronny>
bennofs: is there a wa to make this configurable tho? (i#d like to build "vms" of different pc's i have)
<Unode>
clever: I understand. I was just referencing that on the issue the reporter spent 2 days compiling and still didn't get usable symbols at the end.
<gchristensen>
fpletz: little things like that remind me of just how stinkin' powerful nix is.
<moet>
fpletz: cool! i'll read about the requisites option.
<moet>
hmm. i don't see a `requisites` option anywhere on the nix-env manpape.
<moet>
manpage* .. is it in another castle?
<gchristensen>
it is nix-store not nix-env
<moet>
oops. misread. that's one i haven't started using yet!
<fpletz>
yeah, the nix commands are a bit confusing at first… but they do make sense! you're just not used to think like in the context of normal a package manager :)
matthewbauer has quit [(Ping timeout: 245 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
avn has quit [(Ping timeout: 240 seconds)]
avn has joined #nixos
<aristid>
argh this is a bit of a painful realization, even if no harm came to pass: i just noticed that my tarsnap cronjob made no archives from early 2016 to late 2016... in november it had fixed itself
yeahboi has quit [(Quit: Page closed)]
<gchristensen>
:o
<aristid>
there is a commit in nixpkgs around that time (september-november) about fixing something with tarsnap
ryantrinkle has quit [(Ping timeout: 255 seconds)]
* gchristensen
should probably set up backups before his computer dies
<gchristensen>
"250 picodollars / byte-month" LOL
<bennofs>
aristid: you need monitoring for your backups !
<gchristensen>
aristid: does our tarsnap exclude /nix?
<aristid>
gchristensen: i only backup $HOME
<gchristensen>
ah
<aristid>
to tarsnap that is
<aristid>
tarsnap is rather expensive
<gchristensen>
no kidding, especially at 250p$/b
<aristid>
i think it also lists it in normal units nowadays
<aristid>
gchristensen: i noticed today that i'm currently paying close to a dollar a day because my excludes ruleset had a problem :D
<gchristensen>
heh
<bennofs>
i don't even have anything important in $HOME, i treat $HOME as sort of user-level /etc and nearly everything is in git
<bennofs>
(everything non-auto-generated)
<ronny>
i wish i whas there already
<ronny>
btw, anyone aware of a nice solution for storing provate photos, the google kinda backup is creepy
<gchristensen>
put them on s3
<aristid>
hmm, i wonder how easy it is to set up your own git-lfs server
johnsonav has joined #nixos
<viric>
I use git-annex with multiple hard disks for media, restic for the rest, and multiple external hard disks, some remote.
<fpletz>
aristid: have you tried git-annex?
<fpletz>
oh :)
<aristid>
fpletz: a long time ago, but it was too confusing
ixxie has joined #nixos
moet has quit [(Quit: thanks all!)]
JagaJaga has joined #nixos
<gchristensen>
kde has a fancy tool for showing what is using up most space in your disk. anyone remember what that is?
ryantrinkle has joined #nixos
stepcut has quit [(Remote host closed the connection)]
<mzarella>
how can i delete generations that are no longer used?
<aristid>
gchristensen: no, but i like to use ncdu for that
avn has quit [(Ping timeout: 258 seconds)]
systemfault has quit [(Quit: Bye!)]
<gchristensen>
nice, aristid!
<aristid>
ncdu is actually a lot faster than du
* gchristensen
collects garbage
<gchristensen>
it is killing my computer, running ncdu :o
stepcut has joined #nixos
<mzarella>
ncdu looks nice
avn has joined #nixos
<gchristensen>
"61363.68 MiB freed"
<philipp[m]>
ncdu is one of the first tool I install on every box. You can't install it, when you most need it.
<Ralith>
til about ncdu
<NixOS_GitHub>
[nixpkgs] alibabzo opened pull request #22036: neofetch: init at 2.0.2 (master...init/neofetch) https://git.io/vM7lw
morsicus1 has joined #nixos
civodul has joined #nixos
johnsonav has quit [(Ping timeout: 255 seconds)]
matthewbauer has joined #nixos
<morsicus1>
Hi there, i have a "failed to probe partition scheme "/boot": Input/output error" on my fresh install of nixos. I'm on USB stick with EFI and a /boot with 500 mo (vFAT)
<morsicus1>
Any idea ?
mzarella has quit [(Ping timeout: 258 seconds)]
<LnL>
the efi partition must be >512m
stepcut has quit [(Remote host closed the connection)]
<ronny>
whats the correct way to use nix-shell in a shebang for python
matthewbauer has quit [(Ping timeout: 255 seconds)]
<avn>
LnL: migration configuration ;)
<LnL>
morsicus1: not sure then, in this with the usb itself?
matthewbauer has joined #nixos
morsicus1 has quit [(Quit: Leaving.)]
morsicus1 has joined #nixos
stepcut has joined #nixos
matthewbauer has quit [(Ping timeout: 252 seconds)]
<gchristensen>
blah ... tarsnap is expensive for me
<swflint>
Is there anything I should know about installing on an MMC?
<simpson>
gchristensen: Yikes. That doesn't bode well for my pricing.
<gchristensen>
simpson: what pricing?
<simpson>
gchristensen: Pricing for the paid version of my backup offering. I can get relatively close to Tarsnap's pricing, but I have more overhead than him.
<gchristensen>
oh I see
ixxie has quit [(Remote host closed the connection)]
<gchristensen>
I dunno, I might not be representative :)
<gchristensen>
simpson: "If we discover this kind of data on the grid, we may choose to remove it:" how does this work and still be "nobody can read any given file"
<simpson>
gchristensen: Good question! Most of that discovery is presumably aided by people who are unhappy with certain content on the grid. I can't go searching for it.
rmeis has quit [(Ping timeout: 240 seconds)]
<moet>
i put an rfkill-unblock command in `powerManagement.powerUpCommands`, but i guess that's too early for rfkill: "stage-2-init: Can't open RFKILL control device: No such file or directory"
<moet>
i'm currently searching `man configuration.nix` for a later hook..
alx741 has quit [(Ping timeout: 240 seconds)]
<gchristensen>
simpson: is this like, honor system?
<simpson>
gchristensen: No, it's cryptographically ensured. There's no way for me to find files without people sending me links to those files.
jgertm has joined #nixos
<gchristensen>
simpson: no I mean the payment process :)
<simpson>
gchristensen: Oh. Uh, I'm keeping track of where the money goes, but the site really should show more status information.
<gchristensen>
simpson: are you on "the cloud"? I have 50gb+ of data here. will $5/mo really cover your costs?
<GiGa>
Thank you folks for your help over the last few days
<GiGa>
hoping that once I get up to speed I'll be able to contribute more
<gchristensen>
simpson: it ins't clear to me what that means, or if it answers my question about $5 for 50GB
<simpson>
gchristensen: I think that $5 would only keep 50 GB alive for a portion of a month. I'm not sure about exact amounts.
<Ralith>
is there a standard procedure for reinstalling with NixOS in-place yet?
<gchristensen>
simpson: interesting ... sounds like I should read up on Tahoe more ... is there a conversion rate of dollars to data?
mzarella has quit [(Ping timeout: 276 seconds)]
<Ralith>
tahoe-lafs is super neat and I'm glad it's still alive
hiratara has quit [(Ping timeout: 255 seconds)]
<GiGa>
The "patches" element in a recipe - is that what will be produced?
hiratara has joined #nixos
<simpson>
gchristensen: Still working on it. Basically data is very cheap for me to Just Store ($4/100GB/mo) but a little more expensive to constantly verify. I don't know how much is "a little more" yet.
athan has quit [(Ping timeout: 255 seconds)]
<gchristensen>
simpson: should I use this now? / how much should I pay you / do you automatically bill
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vM70v
<NixOS_GitHub>
nixpkgs/staging df67f58 Vladimír Čunát: gtk3: move gtk-update-icon-cache to the main output...
morsicus1 has joined #nixos
mizu_no_oto has joined #nixos
avn has quit [(Ping timeout: 264 seconds)]
morsicus1 has quit [(Client Quit)]
derjohn_mobi has joined #nixos
avn has joined #nixos
JagaJaga has quit [(Ping timeout: 245 seconds)]
xwvvvvwx has quit [(Ping timeout: 256 seconds)]
<GiGa>
Anyone know when BSDDB3 will be fixed in python3 ?
<GiGa>
It's a dependency of GRAMPS 4,2,5 which I'm trying to upgrade the recipe for
<simpson>
gchristensen: You can use it now for free https://matador.cloud/introducer.furl / when I have services worth paying for, I'll let you know / autopay is a deep trouble that I don't do yet.
justbeingglad has joined #nixos
<GiGa>
I'm trying to update a recipe for clementine, but every time I "nix-build -A clementine" in my working copy it completes instantly. Doing a "--version" shows me v1.2.3
<GiGa>
I don't understand why it's not building what I've given it
<gchristensen>
try nix-build . -A clementine
justbeingglad has left #nixos []
<GiGa>
Completes instantly - think I need to clear the store that links to ./result ?
<gchristensen>
GiGa: have you changed the version and forgotten to update the hash of the fetch?
matthewbauer has joined #nixos
justan0theruser has quit [(Ping timeout: 240 seconds)]
johnsonav has joined #nixos
<GiGa>
gchristensen, thought I'd updated that. That helped, thanks
<mzarella>
" it is simply not possible at this point to install virtualenvwrapper on Python 3.5 because of the currently defined dependencies. "
mizu_no_oto has joined #nixos
phant0mas has joined #nixos
athan has joined #nixos
Judson has joined #nixos
<Judson>
I'm trying to start up work on a Ruby project. When I run `bundle` I get 'mv: inter-device move failed: '/tmp/bundler20170122-8599-1j59etlpublic_suffix-2.0.5/cache/public_suffix-2.0.5.gem' to '/nix/store/dkx1rz5prdxslrwk4kxghj2ma2xhxn3m-bundler-1.11.2/lib/ruby/gems/2.3.1/cache/public_suffix-2.0.5.gem'; unable to remove target: Read-only file system'
<Judson>
Which, sure, bundler is in /nix/store, but why is bundler trying to install there?
alx741 has quit [(Quit: alx741)]
alx741 has joined #nixos
xadi has joined #nixos
justanotheruser has joined #nixos
morsicus1 has joined #nixos
GiGa has quit [(Ping timeout: 240 seconds)]
avn has quit [(Ping timeout: 276 seconds)]
morsicus1 has quit [(Client Quit)]
GiGa has joined #nixos
<GiGa>
Is there a way to make services.mysql.package use mariadb ?
GiGa has quit [(Changing host)]
GiGa has joined #nixos
avn has joined #nixos
t7 has quit [(Quit: ChatZilla 0.9.93 [Firefox 50.1.0/20161209093710])]
CodeWarrior has joined #nixos
athan has quit [(Read error: Connection reset by peer)]
<globin>
but I'd still like some general purpose webhook router for nixpkgs in flask/pyramid that can be extended, e.g. tracking patches, automated security notifications, PR testing, style checking etc.
<LnL>
globin: oh that looks better then what I did
jgertm has quit [(Ping timeout: 240 seconds)]
<LnL>
yeah
xwvvvvwx has joined #nixos
<gchristensen>
yeah
<globin>
gchristensen: yeah we were hacking around with the declarative projects which worked quite well until it stopped working %)
<globin>
but going to look at that in a few days
<LnL>
yeah I was thinking about that first, but gchristensen or somebody else said that it's broken
<gchristensen>
it is spooky to me that we have 0 queued jobs
<LnL>
that's not it, those on master failed because of a timeout
<LnL>
but since you have a new jobset it gets retried there
ambro718 has quit [(Quit: Konversation terminated!)]
matthewbauer has joined #nixos
<LnL>
gchristensen: check the diff again
<gchristensen>
hmm neat
matthewbauer has quit [(Ping timeout: 240 seconds)]
<LnL>
so it's just because of builds that fail sometimes
<gchristensen>
by the way, globin, thank you for taking on the release manager position :)
<gchristensen>
I think it is time to figure out closing jobsets
<LnL>
I guess we could just restart failed builds once a day or something if the queue is empty anyway
p0le has quit [(Quit: WeeChat 1.6)]
avn has quit [(Ping timeout: 264 seconds)]
mzarella has quit [(Ping timeout: 240 seconds)]
Sonarpulse has quit [(Ping timeout: 255 seconds)]
moet has joined #nixos
nekroze has joined #nixos
avn has joined #nixos
<moet>
it seems my nixos doesn't run systemd-rfkill.service properly, and when i tried enabling it, it indicated that it isn't a unit which is meant to be directly enabled
<moet>
i'm curious, does anyone know how nixos normally runs this unit? (to unblock/restore RF state on boot)
<nekroze>
I have forked nixops as I would like to contribute and added my fork as a submodule to a nixops deployment I intend to test my changes with. I want to use my fork in the nix-shell described in the deployments default.nix but I cannot get it to build. It seems that the nixpkgs for nixops uses build artifacts and the release.nix in the nixops source is designed to build those artifacts on hydra, not locally.
<nekroze>
Does anyone know how I can get this working?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
CodeWarrior has quit [(Ping timeout: 240 seconds)]