<offlinehacker[m]>
pikajude: if you will be using kubernetes dns locally, you need to set port on 53 and disable dnsmasq, or set it on another port and configure dnsmasq to use multiple resolvers
sellout- has quit [(Quit: Leaving.)]
<pikajude>
okay, i'll write that down
JagaJaga has quit [(Ping timeout: 240 seconds)]
k0001 has quit [(Ping timeout: 245 seconds)]
<globin>
pikajude, offlinehacker[m]: I was planning to play with it, too so I'll be fixing up stuff possibly, too if I find something :)
<pikajude>
offlinehacker[m], how do pods discover each other?
<pikajude>
actually, i should probably take this to the kube channel
<offlinehacker[m]>
pikajude: using dns or static service ips and env variables, in general they do not connect directly, but using service, which is also a load balancer
digitus has quit [(Quit: digitus)]
<pikajude>
ok, so to use dns would I need to do what you said earlier
takle has joined #nixos
<ndowens08>
So which is prefered in packaging with optional dependencies. using assert or ++ lib.optional(s)?
<offlinehacker[m]>
pikajude: no, just to use dns locally, pods will be able to resolve regarding local dns settings
<gchristensen>
hi #NixOS
<pikajude>
offlinehacker[m]: i see
<offlinehacker[m]>
dns, will resolve services, not pods
<offlinehacker[m]>
somew thing like "myservice.default.svc.cluster.local"
<pikajude>
i see
<offlinehacker[m]>
pikajude: lookup deployments and services, these two you need
<NixOS_GitHub>
[nixpkgs] ndowens opened pull request #22888: awesome-4.0: Add optional hicolor-icon-theme for theme support (master...master) https://git.io/vD9W6
acowley_away is now known as acowley
panostimos has quit [(Ping timeout: 255 seconds)]
<ndowens08>
I looked at guix's packaging method, i think it may have confused me more than Nix's :) , some ppl prefer scheme since they know it, but I know none so, Nix's is a little bit more natural compared to that :)
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<globin>
niksnut, ikwildrpepper: channel updates seem to be dead for 3 days despite the conditions to bump them seem to be met
<fpletz>
gchristensen: just though about it, wasn't sure at first if this is maybe too much… but then I remembered that allowBroken is a global flag and users don't even notice they're installing a vulnerable package… +1
takle has joined #nixos
<globin>
gchristensen: additionally to fpletz comment, you should be able to use an env var, too, like NIXPKGS_ALLOW_UNFREE=1
<gchristensen>
fpletz: yeah, I'd just use broken, but it isn't fine-grained enough.
<gchristensen>
globin: aww... okay :)
<globin>
gchristensen: I use that env var for unfree stuff nearly always :>
<gchristensen>
yeah, I was just hoping to avoid a global turn-off
eacameron has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<globin>
gchristensen: yeah but I normally install stuff like that into my user-env, e.g. explicitly allow unfree to install spotify
<gchristensen>
ah
eacameron has quit [(Ping timeout: 260 seconds)]
* gchristensen
goes spelunking
<gchristensen>
I've never performed such shenanigans so core to nixpkgs before
peterhoeg has quit [(Remote host closed the connection)]
ryanartecona has quit [(Quit: ryanartecona)]
mudri has quit [(Quit: WeeChat 1.7)]
alx741 has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vD9Be
<NixOS_GitHub>
nixpkgs/master 6515854 Pradeep Chhetri: awless: init at 0.0.13
<simpson>
Stupid question: What provides the Linux `prof` profiler?
<simpson>
Ah, never mind, they meant the standard `perf`.
sigmundv_ has quit [(Ping timeout: 260 seconds)]
Rizy has joined #nixos
sheenobu has joined #nixos
<sheenobu>
I'm not seeing empathy anymore?
<sheenobu>
i just need a decent chat program for google support =\
takle has joined #nixos
kampfschlaefer has quit [(Ping timeout: 256 seconds)]
peti has quit [(Ping timeout: 240 seconds)]
kampfschlaefer has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
<gchristensen>
globin, fpletz: still around?
jabb has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc opened pull request #22890: nixpkgs: allow packages to be marked insecure (master...mark-as-insecure) https://git.io/vD9zs
kampfschlaefer has quit [(Ping timeout: 240 seconds)]
<gchristensen>
^
derjohn_mob has quit [(Ping timeout: 258 seconds)]
<simpson>
Nice.
mkoenig has quit [(Ping timeout: 240 seconds)]
<gchristensen>
:D
phreedom has quit [(Remote host closed the connection)]
jabb has quit [(Ping timeout: 240 seconds)]
sheenobu has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
estewei has quit [(Quit: Quit)]
phreedom has joined #nixos
jabb has joined #nixos
roconnor has quit [(Ping timeout: 240 seconds)]
derjohn_mob has joined #nixos
griff_ has joined #nixos
takle has joined #nixos
Wizek_ has quit [(Ping timeout: 245 seconds)]
Wizek has quit [(Ping timeout: 240 seconds)]
Wizek__ has quit [(Ping timeout: 240 seconds)]
davidak has quit [(Quit: Leaving.)]
takle has quit [(Ping timeout: 240 seconds)]
jabb has quit [(Quit: leaving)]
systemfault has joined #nixos
mbrgm has quit [(Ping timeout: 252 seconds)]
mbrgm has joined #nixos
<ndowens08>
ok how is this: name = "eric6-${version}"; trying to coerce a set to a string?
s33se_ has joined #nixos
s33se has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
<pikajude>
version is a set
<NixOS_GitHub>
[nixpkgs] danielfullmer opened pull request #22891: gnupg21: Fix scdaemon for usb smartcards (master...gnupg-scdaemon-fix) https://git.io/vD92o
tm_ has quit [(Ping timeout: 255 seconds)]
<ndowens08>
hmm, first time i have encountered that happening :)
RchrdB has quit [(Ping timeout: 245 seconds)]
<ndowens08>
pikajude: any idea how to work around that?
mexisme2 has quit [(Read error: Connection reset by peer)]
takle has quit [(Ping timeout: 268 seconds)]
takle has joined #nixos
<pikajude>
ndowens08: did you get one of those error messages where it says such and such error, but the line it gives you is the `name` definition of a package?
<pikajude>
i LOVE those
<ndowens08>
nix-build -A eric6 --show-trace
<ndowens08>
error: while evaluating the attribute ‘nativeBuildInputs’ of the derivation ‘eric6-17.02.1’ at /home/ndowens/nixpkgs/pkgs/applications/editors/eric6/default.nix:6:3:
<ndowens08>
then it tells about the set to string error
<gchristensen>
pikajude: aren't they just a treat?
<ndowens08>
might have an idea, maybe
<pikajude>
ndowens08: that means something inside buildInputs is causing the error
<pikajude>
not the name attribute
acowley is now known as acowley_away
takle has quit [(Ping timeout: 268 seconds)]
<AtnNn>
peti has joined #nixos
<ndowens08>
pikajude: weird, as my buildinputs look like : buildInputs = with pkgs; [ qt57 python3 ];
<ndowens08>
just changed it to removed with pkgs; to [ pkgs.qt57 pkgs.python3 ]; same result
<ndowens08>
eh oh well lol
mizu_no_oto has joined #nixos
<ndowens08>
was hoping I could find something in issues I could do, but nothing :)
griff_ has quit [(Quit: griff_)]
matthewbauer has joined #nixos
<ndowens08>
Oh, if the person that was asking me aboout the hicolor-icon-theme and awesome is still here, i edited the nix file for awesome and created a PR request, emailed the previous maintainer and he replied that he don't even have linux anymore
hexagoxel has quit [(Ping timeout: 260 seconds)]
roconnor has joined #nixos
hexagoxel has joined #nixos
takle has joined #nixos
sellout- has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
indi_ has joined #nixos
fresheyeball has quit [(Ping timeout: 240 seconds)]
deepbook5broo has joined #nixos
deepbook5broo has left #nixos []
Rizy has quit [(Quit: Rizy)]
Rizy has joined #nixos
roconnor has quit [(Ping timeout: 240 seconds)]
dramforever has joined #nixos
mguentner2 has quit [(Quit: WeeChat 1.7)]
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
mguentner has joined #nixos
takle has joined #nixos
indi_ has quit [(Remote host closed the connection)]
<ndowens08>
is there a way to seperate pull request? I have pending PR for update to awesomewm and created one for hiawatha server
systemfault has quit [(Quit: Bye!)]
Rizy has quit [(Quit: Rizy)]
takle has joined #nixos
Rizy has joined #nixos
<bgamari>
is there any trick for determining what attribute can be used to refer to a particular derivation?
<bgamari>
for instance, if I run nix-build in my project and I see it fails in derivation X
<bgamari>
how would I go about determining what attribute to call nix-shell on to reproduce the issue?
<bgamari>
Sonarpulse, if you have a moment... ^
roconnor has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
cpennington has quit [(Remote host closed the connection)]
takle has joined #nixos
roconnor has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
dramforever has quit [(Quit: Leaving)]
<bgamari>
ahh, I see, you can just refer to it via its path
sheenobu has joined #nixos
<ndowens08>
bgamari: i dont know nix-shell but i know you can use -k on nix-build and it will keep the dir if it fails and you can cd in to it, or possibly nix-shell in it, but like i said i haven't figured out shell yet
siel has joined #nixos
Rizy has quit [(Quit: Rizy)]
<bgamari>
ndowens08, ahh, yes, I suppose that is also true
mguentner2 has joined #nixos
<Sonarpulse>
bgamari: hi
<bgamari>
Hey; I think I have answered my own question
<Sonarpulse>
oh really?
<bgamari>
it seems that way
<Sonarpulse>
cause Dan and I did not know of a good answer thinking about it just now :)
<bgamari>
heh
<bgamari>
well, I answered it by avoiding asking it in the first place
<Sonarpulse>
ah righto
<Sonarpulse>
--show-trace --keep-failed are our gotos
<bgamari>
I neglected to consider that you can still refer to a derivation by path even if it fails
<bgamari>
s/it/a previous build of it/
<bgamari>
at least it appears to work
mguentner has quit [(Ping timeout: 240 seconds)]
<bgamari>
that being said, knowing what attribute we followed to get to the failing derivation would be nice to know at times
<bgamari>
not essential here though
systemfault has joined #nixos
uralbash has left #nixos []
hexagoxel has quit [(Ping timeout: 240 seconds)]
hexagoxel has joined #nixos
dramforever has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
tm_ has joined #nixos
ndowens08 has quit [(Ping timeout: 252 seconds)]
wkennington has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
ebzzry has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
fhoffmeyer has quit [(Ping timeout: 255 seconds)]
alx741 has quit [(Quit: alx741)]
AllanEspinosa has quit [(Ping timeout: 260 seconds)]
systemfault has quit [(Quit: Bye!)]
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
dramforever has quit [(Quit: Leaving)]
justanotheruser has quit [(Ping timeout: 252 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
indi_ has quit [(Remote host closed the connection)]
justanotheruser has joined #nixos
paperd has joined #nixos
alx741 has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 255 seconds)]
Sonarpulse has quit [(Ping timeout: 260 seconds)]
danharaj has quit [(Ping timeout: 268 seconds)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
paperd has quit [(Quit: WeeChat 1.0.1)]
Rizy has joined #nixos
jgertm has joined #nixos
indi_ has joined #nixos
freusque has quit [(Quit: WeeChat 1.4)]
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
phreedom has joined #nixos
endformationage has quit [(Quit: WeeChat 1.6)]
matthewbauer has quit [(Ping timeout: 260 seconds)]
brh_ has quit [(Remote host closed the connection)]
brh has quit [(Remote host closed the connection)]
fhoffmeyer has joined #nixos
johnsonav has quit [(Ping timeout: 276 seconds)]
alx741 has quit [(Quit: alx741)]
ertesx has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
ertesx is now known as ertes
matthewbauer has joined #nixos
Mercuria1Alchemi has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
katyucha has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha1 is now known as katyucha
Rizy has quit [(Quit: Rizy)]
katyucha1 has joined #nixos
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
indi_ has quit [(Remote host closed the connection)]
ebzzry has quit [(Ping timeout: 240 seconds)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
takle has joined #nixos
matthewbauer has joined #nixos
indi_ has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 240 seconds)]
matthewbauer has quit [(Ping timeout: 240 seconds)]
freusque has joined #nixos
kampfschlaefer has joined #nixos
takle has joined #nixos
matthewbauer has joined #nixos
deepfire has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 3 new commits to master: https://git.io/vD9Fa
<NixOS_GitHub>
nixpkgs/master c2a5733 Dmitry Kalinkin: wxPython: fix on darwin
<NixOS_GitHub>
nixpkgs/master 0a44f25 Dmitry Kalinkin: python27Packages.taskcoach: mark as broken on darwin
matthewbauer has quit [(Ping timeout: 255 seconds)]
reinzelmann has joined #nixos
devoid has quit [(Quit: Leaving.)]
goibhniu has joined #nixos
jgertm has quit [(Ping timeout: 260 seconds)]
devoid has joined #nixos
fritschy has joined #nixos
takle has joined #nixos
matthewbauer has joined #nixos
martinb has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<martinb>
Hi. I managed to create a package and service for CouchDB 2.0.0. Should I create a pull request as an update to the existing 1.6.1, or make a second package for 2.0.0?
matthewbauer has quit [(Ping timeout: 240 seconds)]
georges-duperon has quit [(Ping timeout: 252 seconds)]
<goibhniu>
hi martinb, I assume 2.0 isn't backwards compatible, right? So it's probably good to keep 1.6.1 around for a while and make the service configurable to allow someone to choose.
<martinb>
goibhniu: Hi. Unfortunately I couldn't find out easily about compatibility. I'll go with your suggestion then.
pi3r has joined #nixos
<goibhniu>
I have no idea myself, but I guess that's why they'd bump the major release number.
<LnL>
we usually only keep the latest version of a package, but things like databases are a bit different because you might have to migrate your data
Wizek_ has joined #nixos
Wizek has joined #nixos
Wizek__ has joined #nixos
fadenb has quit [(Quit: WeeChat 1.6)]
fadenb has joined #nixos
<sphalerite>
will lib.commitIdFromRepo work without pulling in the whole of .git?
<LnL>
if you look at the postgres service, you can see that the version is based on the original version your config was generated with
<martinb>
Do I create a new folder structure couchdb2/default.nix or do I create a new file, like couchdb/release-2.0.0.nix?
takle has joined #nixos
kampfschlaefer has quit [(Ping timeout: 240 seconds)]
<LnL>
just create a 2.0.0.nix file next to the other one
<martinb>
And then I introduce some option for the service which version to use, and branch out to the different implementations in couchdb.nix. Right?
matthewbauer has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
thc202 has joined #nixos
MichaelRaskin has quit [(Quit: MichaelRaskin)]
matthewbauer has quit [(Ping timeout: 260 seconds)]
Itkovian has joined #nixos
indi_ has joined #nixos
nschoe has joined #nixos
indi_ has quit [(Ping timeout: 260 seconds)]
ambro718 has joined #nixos
matthewbauer has joined #nixos
panostimos has joined #nixos
ixxie has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
<martinb>
LnL: I get that, but I need to generate the ini files and the service differently depending on wether the 1.6 branch or the 2.0 branch is used.
<LnL>
ooh, the service configuration is not compatible?
<martinb>
LnL: exactly
<LnL>
that makes it a bit harder
johann__1 has quit [(Ping timeout: 260 seconds)]
matthewbauer has joined #nixos
ambro718 has quit [(Ping timeout: 240 seconds)]
<martinb>
LnL: I guess it will result in some mkMerge expression, but I need to know what to dispatch on. Introduce an option "useVersion2"? or try to parse the version of the .package attribute?
matthewbauer has quit [(Ping timeout: 260 seconds)]
yenzenz has joined #nixos
<LnL>
I guess you could base default version of useVersion2 on builtins.parseDrvName couchdb.name
teknico has joined #nixos
wkennington has quit [(Quit: Leaving)]
__Sander__ has joined #nixos
Shou has joined #nixos
jgertm has joined #nixos
deepfire has quit [(Ping timeout: 240 seconds)]
thaega has quit [(Ping timeout: 252 seconds)]
<brodul>
Hi, I am wrapping tests scripts on Jenkins into nix-shell --run
<brodul>
I have 3 different jobs
<brodul>
that are hanging
matthewbauer has joined #nixos
<brodul>
I guess they are trying to build the same derivation
<brodul>
is there a way to determine which derivation is locking
<martinb>
LnL: Can I not use couchdb.version?
<brodul>
any ides on how to debug this?
matthewbauer has quit [(Ping timeout: 260 seconds)]
<domenkozar>
brodul: is this on the same slave?
<brodul>
yes
<domenkozar>
ps aux |grep nixbld
ixxie has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
<brodul>
domenkozar: huh there are no processes
<brodul>
except the grep
<domenkozar>
ah you're probably using the daemon
<domenkozar>
ps aux | grep nix-
<brodul>
yea they are 10 procs
<brodul>
btw this is a raise condition
<domenkozar>
all idle or doing some CPU intensivework?
<brodul>
idle
<brodul>
I have a weird question
<brodul>
can I set a TTL for a derivation build
<LnL>
martinb: a derivation might not have that attribute
<brodul>
thsi stuff only happens when we gabarge colect
<domenkozar>
brodul: hydra does that, but I don't think it's a Nix feature
<brodul>
in the night
<domenkozar>
brodul: GC blocks all building derivations
<domenkozar>
is GC done?
<brodul>
yes
<brodul>
never mind I will do the GC manually since we have a alot of disk space
matthewbauer has joined #nixos
<brodul>
if I rerun the jobs they work
<domenkozar>
hmm ok, I've never seen this before. GC blocks all building, I have GC enabled on multiple servers and I've never seen this. So it must be something else contributing to the problem
<brodul>
it's just that the first PR on Jenkins that are efected
<brodul>
yea
<brodul>
it's really strange
<brodul>
btw domenkozar, any plans for todays evening
ThatDocsLady has joined #nixos
derjohn_mob has quit [(Ping timeout: 240 seconds)]
<domenkozar>
brodul: none yet :)
thaega has joined #nixos
<brodul>
we should go for a glass of wine
<brodul>
or whiskey
matthewbauer has quit [(Ping timeout: 260 seconds)]
<pierron>
LnL: You can continue with the pull request.
<LnL>
huh?
<pierron>
LnL: your work is more complete than the draft I made at the FOSDEM
<LnL>
ah, sure
<LnL>
sorry about not mentioning it in the pr, feel kind of bad about it :/
<domenkozar>
brodul: in that order
<brodul>
ACK
<LnL>
pierron: what do you think about adding an argument for the modules basedir to evalModules? or do you prefer just dropping that idea and only allowing paths
<pierron>
LnL: I am not yet sure. I don't like adding more arguments to the module system, but this would makes sense.
kthnnlg has joined #nixos
<LnL>
yeah I'm not sure about it either and it's not very clear to me what the default value should be
matthewbauer has joined #nixos
<pierron>
LnL: an empty list of paths?
matthewbauer has quit [(Ping timeout: 240 seconds)]
derjohn_mob has joined #nixos
<NixOS_GitHub>
[nixpkgs] vdemeester opened pull request #22896: glide: make sure to dispaly the correct version (master...fix-glide-version) https://git.io/vDHTz
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vDHTg
<niksnut>
hm, unfortunately nixos.org runs on an instance type that doesn't support online resizing
Shou has joined #nixos
<martinb>
LnL: I think I managed to create something usable. Thanks for your help.
matthewbauer has joined #nixos
samvher has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] globin closed pull request #22896: glide: make sure to dispaly the correct version (master...fix-glide-version) https://git.io/vDHTz
samvher has joined #nixos
thaega has quit [(Ping timeout: 255 seconds)]
<LnL>
great! ping me on github if you want me to look at the pr
matthewbauer has quit [(Ping timeout: 240 seconds)]
MP2E has quit [(Quit: leaving)]
samvher has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] globin pushed 2 new commits to master: https://git.io/vDHq6
<NixOS_GitHub>
nixpkgs/master cc4fd4f Orivej Desh: perl-Net-IMAP-Client: init at 0.9505
<NixOS_GitHub>
nixpkgs/master 47ded42 Orivej Desh: lumail: init at 2.9
<NixOS_GitHub>
[nixpkgs] timor opened pull request #22897: couchdb: add support for version 2.0.0 (master...couchdb-2.0.0) https://git.io/vDHqQ
mudri has joined #nixos
thaega has joined #nixos
matthewbauer has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
mudri has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
JagaJaga has joined #nixos
soundtoxin has quit [(Quit: leaving)]
JagaJaga has quit [(Ping timeout: 240 seconds)]
martinb has quit [(Ping timeout: 255 seconds)]
samvher has joined #nixos
matthewbauer has joined #nixos
deepfire has joined #nixos
matthewbauer has quit [(Ping timeout: 240 seconds)]
<symphorien>
hello, I have installed nix on a linux machine where I have an LDAP account. getent passwd $(whoami) displays nothing and ssh refused to work because of that. How do I emulate that I exist ? nix seems to overlook the existing nsswitch.conf
matthewbauer has joined #nixos
matthewbauer has quit [(Ping timeout: 255 seconds)]
mudri has quit [(Ping timeout: 255 seconds)]
msd has joined #nixos
<msd>
Hey! Could I get a quick check-in on this PR please? https://github.com/NixOS/nixpkgs/pull/22898 <- just removing an option to grant functionalities to Stanchion. This option--by existing--is preventing stanchion from running
samvher has quit [(Ping timeout: 260 seconds)]
wizeman has joined #nixos
samvher has joined #nixos
DutchWolfie has joined #nixos
DutchWolfie has quit [(Changing host)]
DutchWolfie has joined #nixos
eacameron has joined #nixos
<makefu>
msd: has the ssl feature been removed from stanchion?
JagaJaga has quit [(Ping timeout: 260 seconds)]
<msd>
makefu: it's not specified in the Stanchion configuration; instead, it's specified in another package (Riak CS)
matthewbauer has joined #nixos
<makefu>
okay, well if this is the case then simply removing should be fine. the pr looks good to me
<NixOS_GitHub>
[nixpkgs] arianvp opened pull request #22899: Fix mattermost systemd unit (master...patch-1) https://git.io/vDHZ1
<sphalerite>
Which version of zlib will be in 17.03?
ndowens08 has joined #nixos
eacameron has joined #nixos
samvher has quit [(Ping timeout: 240 seconds)]
samvher has joined #nixos
<mbrgm>
is it preferable to nix-ify most configuration options for a service or do people prefer to specify verbatim configuration when there are a lot of options?
eacameron has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vDHcH
<symphorien>
can I get statically linked executables with nix ?
<msd>
globin: saw that you authorized my last PR. Don't mean to sound too pushy, but could you also please authorize this? https://github.com/NixOS/nixpkgs/pull/22900 <- upgrade to Riak, which is a dependency to Stanchion
<domenkozar>
symphorien: yes, but not easily
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
xadi has quit [(Quit: Leaving.)]
<symphorien>
I tink the dependencies of my executable are juste the libc and gmp so I can try. How then ?
bennofs has quit [(Ping timeout: 255 seconds)]
xadi has joined #nixos
abcrawf has quit [(Remote host closed the connection)]
<clever>
symphorien: this is how i build a static qemu
abcrawf has joined #nixos
<symphorien>
so you put .static variants of the libs you use and that's it ?
<clever>
and glib didnt have a static output, so i had to make an override to rebuild glib
<symphorien>
apparently there is a derivation called glibc.static in hydra
<clever>
glib and glibc are different
<symphorien>
ah sorry misread
samvher has quit [(Ping timeout: 240 seconds)]
<mbrgm>
is it preferable to map most configuration options for a service to a nixos module option or do people prefer to specify verbatim configuration when there are a lot of options?
samvher has joined #nixos
<mbrgm>
see e.g. haproxy vs gitlab service.
<clever>
mbrgm: i prefer to map them all to seperate options in nixos, it enforces types and a valid config
<clever>
so it cant break at runtime because you made a typo
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<mbrgm>
clever: sounds legit. but given you haven't created a service yourself, haven't you been to the situation for a nixos module where you'd exactly know how to build the verbatim config for the service but spend most of the time reverse-mapping that to nixos options by examining the implementation?
<avn>
btw, folks are we have any escapeing function for `description =` in nixos modules, to make them docbook friendly?
derjohn_mob has quit [(Ping timeout: 240 seconds)]
<mbrgm>
clever: that'd be a vast amount of nixos options
romildo has joined #nixos
<clever>
avn: one weird thing ive discovered, the entire description is pasted inside a <para>${description}</para>, and it doesnt allow nested para's
ixxie has joined #nixos
<clever>
avn: so you are forced to do description = "para1</para><para>para2";
matthewbauer has quit [(Ping timeout: 255 seconds)]
<avn>
clever: Actually I wont escape < and > manually ;)
<clever>
avn: more about, the xml must be invalid, to be valid
<mbrgm>
anothere one: is it possible to override the preStart part of a systemd service implementation?
<clever>
mbrgm: due to how the serviceconfig works, no, the entire serviceConfig is one option
derjohn_mob has joined #nixos
<mbrgm>
gnah
<clever>
yeah
<clever>
i think all you can do is serviceConfig = mkForce { ... }; to replace the entire thing
<clever>
or copy the entire module, rename it, and put it in imports
<clever>
then you can customize the module
<clever>
or, just copy all of nixpkgs and modify it directly
<ben>
hmm, how comes PKG_CONFIG_PATH is empty when I run nix-shell non-interactively, but not when I do, say, echo 'pkg-config --cflags blah' | nix-shell?
<ben>
err
<ben>
is not empty when i run it interactively
<clever>
ben: compare the output of "env | grep PKG" in the shell and build
<ben>
it's set when i run nix-shell and type env into the interactive prompt, it's not set when i say echo "env | grep PKG" | nix-shell
<ben>
but I'd have expected those to be equivalent
<clever>
ben: and nix-shell will also inherit variables from the parent shell, which leaks stuff like this, --pure stops that
<ben>
The shell from which I'm invoking nix-shell doesn't have PKG_CONFIG_PATH set either :/
<ben>
+ it's set with --pure
<clever>
strange
<ben>
my default.nix is like, stdenv.mkDerivation { ... buildInputs = [ ... (a thing with pkg-config files) pkgconfig ]; }
msd has quit [(Remote host closed the connection)]
thetet has quit [(Remote host closed the connection)]
m0rphism has quit [(Quit: WeeChat 1.4)]
ixxie has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
ale-batt42 has joined #nixos
<ale-batt42>
hello, i asked a question on ##nix-darwin, but i'm not sure the chan is really used .. Its about installing nix on osx without root access, impossible to create /nix
<symphorien>
that is not on darwin, but on linux I used proot
<LnL>
you can change the path of the nix store, but then you can't use the binary cache so that's probably not what you want
<ale-batt42>
I'm checking to build from the source
<ale-batt42>
I'm new to nix, and this kind of tricks
<LnL>
there's sandbox-exec on darwin, but I'm not sure if you can define a chroot with that
<ale-batt42>
it's not to install nixos, just the packet manager
<ale-batt42>
I don't think chroot is needed to install nix right ?
<gchristensen>
good morning, #NixOS
matthewbauer has joined #nixos
<ale-batt42>
Not the morning for me, but good morning ^^
<LnL>
no but if you use /nix/store you get binary caches from nixos.org etc..
<LnL>
using another store means you'd have to compile llvm/clang yourself for example
<ndowens08>
LnL: or gchristensen is there a way to have more than one PR on github, if I push another package i created while my PR for awesomewm is pending, it attaches my hiawatha pkg to awesome pr
samvher has joined #nixos
<ale-batt42>
Oh ok ...
<LnL>
ndowens08: put your changes on a branch
matthewbauer has quit [(Ping timeout: 260 seconds)]
<ale-batt42>
I think i will stay with brew at school, and keep learning nix at home..
<ndowens08>
hmm, so i create a branch in my fork? and when i push from the branch it will seperate them on github?
<NixOS_GitHub>
[nixpkgs] ttuegel opened pull request #22902: KDE 5 packaging instructions (master...kde5-instructions) https://git.io/vDHzF
<goibhniu>
the stable releases only get security updates (mostly)
griff_ has joined #nixos
<contrapumpkin>
GiGa: your whole system doesn't need to fetch all packages from the same channel, so you can grab a handful of packages from unstable while the rest of your system is configured from 16.09
<contrapumpkin>
individual users (or shells, or anything really) get a choice about where their packages come from
<ndowens08>
LnL: hmm I created a branch, and went to create pull request, but it still wanted to add awesome to it?
<ibrahims>
i'll start fresh. i'm trying to run mesos on nixos, it has been running fine for quite a while. today when i tried to install it on another machine i got an error for `cp /etc/docker.tar.gz /task/path/`
<ibrahims>
it exists with an error
<ibrahims>
exit status: 32512
phreedom has quit [(Ping timeout: 260 seconds)]
<ibrahims>
i thought it might be related to path, previously i've gotten a similar error where it could not find gzip commands and adding `systemd.services.mesos-slave.path = [ pkgs.gzip ];` would fix it.
<ibrahims>
now the error might be related to that or it may not be. can some tell me if `cp` would be included in the path of each executable, and if not which package would be needed for it
matthewbauer has quit [(Ping timeout: 260 seconds)]
<ibrahims>
sorry to barge in like this, i'm a bit on fire currently.
cpennington has joined #nixos
<gchristensen>
cp should definitely be there, ibrahims
<gchristensen>
if you can, I'd recommend adding a `set -x` at the top of the start script
<NickHu>
contrapumpkin: I'm trying to get qutebrowser working with the webengine backend (see https://github.com/NixOS/nixpkgs/issues/22753); apparently it was merged into master a few days ago but I can't seem to install it from nixpkgs-unstable channel yet
<GiGa>
contrapumpkin: In future, am I better off submitting pull requests both to 17.03 and master then? To allow people to get the updates?
<contrapumpkin>
NickHu: perhaps tests aren't passing or a mass rebuild is causing hydra to take a while
<NickHu>
I'm quite new to nixos so I'm wondering if I've forgotten to do some sort of channel sync command
samvher has quit [(Ping timeout: 268 seconds)]
<NickHu>
In general, how can I tell if it has actually landed in unstable?
<contrapumpkin>
GiGa: nah, 17.03 hasn't branched off yet, but possibly once that happens
<GiGa>
contrapumpkin: well, yes :)
<GiGa>
That's fine, I don't mind suggesting pulls to both
martinb1 has quit [(Ping timeout: 255 seconds)]
<ibrahims>
gchristensen: `sh: @cp@: command not found`
<contrapumpkin>
cool, then yeah
fhoffmeyer has quit [(Ping timeout: 260 seconds)]
<NickHu>
I'm also wondering why I can't seem to uninstall a particular package I installed: I do a `nix-env -e vimplugin-vimproc-vim-2016-08` and it just does nothing and returns 0
<ibrahims>
is the exact error, does those `@` mean anything to you?
<contrapumpkin>
NickHu: not sure of a general way to do that, but there probably is one
samvher has joined #nixos
<GiGa>
although presumably I want to branch the release and then make changes, otherwise it'll think I'm trying to put in loads of extras
<contrapumpkin>
ibrahims: sounds like a substituteAll invocation without a required argument of cp, but I don't know
<bennofs>
GiGa: that would work. you can also get all unstable versions if you just replace that with: idea = unstable.idea;
<contrapumpkin>
shlevy: I rsync -a /nix/store/1231jkl21j5kl1-blahblah-channel ~/blahblah-channel
<contrapumpkin>
then nix-store --add ~/blahblah-channel
samvher has quit [(Ping timeout: 240 seconds)]
<contrapumpkin>
--add-fixed seems to not do anything
<GiGa>
bennofs: ok, then define idea.phpstorm and idea.idea-community in systemPackages?
<bennofs>
GiGa: yes
<Dezgeg>
I guess the directory can't be named blahblah-channel
matthewbauer has quit [(Ping timeout: 240 seconds)]
<contrapumpkin>
Dezgeg: I actually reproduced the original name
<clever>
contrapumpkin: what about just using nix-copy-closure?
<Dezgeg>
oh, the blahblah didn't include the hash
<contrapumpkin>
that was my only point
<bennofs>
contrapumpkin: why not just use nix-store --export and nix-store --import ?
<contrapumpkin>
bennofs: perhaps that's what I need! I haven't used those before
<clever>
contrapumpkin: nix-copy-closure will just copy storepaths from one box to another, including all dependencies
<contrapumpkin>
this needs to run under a nix builder, so I'm trying not to do anything that requires nix on the "source"
<clever>
ah
<clever>
a lot of things are restricted under the context of a builder
samvher has joined #nixos
<contrapumpkin>
so far I've just been using exportReferencesGraph on the channel
<contrapumpkin>
and then copying that in the usual way
<clever>
so no ssh and no --import
<clever>
--export, maybe
<contrapumpkin>
but it feels silly because the channel has no import
<contrapumpkin>
err, no dependencies
<contrapumpkin>
maybe I'll just leave that for now
<NixOS_GitHub>
[nixpkgs] jsmaniac opened pull request #22905: crack-attack: enable sound support in the crack-attack game. (master...crack-attack-sound) https://git.io/vDH6Z
<contrapumpkin>
bennofs: how do I ask it to be recursive?
<contrapumpkin>
it seems unmentioned in the man page
<contrapumpkin>
the whole --add-fixed command
<bennofs>
contrapumpkin: --recursive
<GiGa>
bennofs: still PHPStorm 10, but the right version of idea-community. That doesn't make sense
<contrapumpkin>
bennofs: worked but didn't produce the same hash :/
<contrapumpkin>
in fact it produced the same hash as -add
erasmas has joined #nixos
<bennofs>
GiGa: yeah that sounds weird. check if you have installed phpstorm as root maybe?
<bennofs>
GiGa: nix-env -q | grep phpstorm as root
<GiGa>
bennofs: nope, neither are correct, I made an error
<GiGa>
they're both the old versions
<GiGa>
so it looks like my override is being ignored
<bennofs>
ol),
<GiGa>
does it need to be above systemPackages in configuration.nix?
<bennofs>
Number(Number),
<bennofs>
String(String),
<bennofs>
Array(Vec<Value>),
<bennofs>
Object(Map<String, Value>),
Sonarpulse has joined #nixos
<bennofs>
oops sry
<bennofs>
GiGa: that't shouldn't be needed
<GiGa>
then I don't understand at all
<bennofs>
GiGa: what does type -a phpstorm say?
<GiGa>
phpstorm is /run/current-system/sw/bin/phpstorm
<bennofs>
GiGa: can you update the gist with your current configuration.nix?
<contrapumpkin>
bennofs, shlevy: aha, the reason I can't reproduce the hash is because it's not a fixed-output derivation; it's the result of unpack-channel.nix
<GiGa>
bennofs: sure, one sec
<contrapumpkin>
(I think)
<GiGa>
bennofs: is this better off moved into a /msg
<GiGa>
?
<contrapumpkin>
I'll just stick to the closure export for now
<ndowens08>
Is there an issue with xmonad? I have it in my configuration and enabled xtrapackages and things like that and if I choose it as my session through my display manager it just stays at a blank screen, nothing loads and also made sure to try keybindings to see if i could get a program to run
mudri has joined #nixos
<ndowens08>
never tried that wm, so wanted to give it a try
<GiGa>
bennofs: I must have adjusted my file wrong, as I'm being told unexpected in
<GiGa>
bennofs: fixed my typo
<GiGa>
now get this "error: file ‘nixos-unstable’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:60:23"
<clever>
now each nixpkgs has its own overrides and config
samvher has quit [(Ping timeout: 240 seconds)]
Rotaerk has quit [(Ping timeout: 240 seconds)]
<GiGa>
clever: that's building
<GiGa>
There's certainly going to be a lot of old configs for me to remove once this is all sorted :)
<GiGa>
Aside from the fact you folk have been using NixOS a lot longer than me, I assume, I am in awe of how much you all know
<GiGa>
and apologise for my lameness!
samvher has joined #nixos
<clever>
i get a bit OCD about knowing how things work, so ive read relatively large chunks of the nixpkgs and nix source
matthewbauer has joined #nixos
ttuegel has joined #nixos
<contrapumpkin>
clever, bennofs, shlevy: given the output of exportReferencesGraph, is there a way to ask it what the "root" of the export was? I currently need to pass them separately now and it's icky
<contrapumpkin>
or niksnut for that matter :&
romildo has joined #nixos
<GiGa>
I think we're cooking with gas folks
<GiGa>
that's the right versions now
ndowens08 has joined #nixos
<GiGa>
I really appreciate it. It's fair to say that's made my weekend (I'm developing this weekend, and the prospect of being stuck with v10 was doing my head in)
<ndowens08>
xmonad still won't start after adding it to my configuration, anyone know if it is broke?
matthewbauer has quit [(Ping timeout: 240 seconds)]
<mudri>
ndowens08: it works on my machine. What other desktop environments and window managers do you have installed?
<ndowens08>
awesomewm
<mbrock>
clever: it seems to me that the source basically is the documentation for nixpkgs (:
<gchristensen>
can you override* a derivation which is marked as broken, without allowing broken?
<mudri>
ndowens08: what do you mean by “won't start”?
<ndowens08>
i use lightdm for display manager and if xmonad is selected it just stays at the screen with a background(not sure which bg) but selecting awesome works;
<bennofs>
mbrock: that's kind of accurate atm :(
<clever>
gchristensen: dont think so, you wont even be able to access the .override attribute
<gchristensen>
that does appear to be the case
<ndowens08>
mudri: what I mean is that is just stays at a screen with a background and from what I read mod1+p would bring up where I can type what to run but nothing happens
<bennofs>
gchristensen: you should be able to override, but not overrideDerivation
<contrapumpkin>
niksnut, domenkozar: almost done "splitting out responsibilities" for nixos-install so I can use the common core stuff across the new image builder and nixos-install, and I think it's looking pretty good!
romildo has quit [(Quit: Leaving)]
<contrapumpkin>
I'll have a PR later today I think
<bennofs>
joachifm, gchristensen: ah it's because callPackage works for functions as well. so callPackage f args checks if (f args) is an attr set or a function, and thus forces (f args) and triggers the assertion
<contrapumpkin>
basically the new core logic is called nixos-prepare-root and can run fully root-less, but does no Nix building and doesn't need anything from the host. nixos-install takes care of building if necessary (dealing with the host store) and passes the resulting closures into nixos-prepare-root. The image builder uses the same script but internal to a (pure, VM-less) nix build
<contrapumpkin>
I think it's a separation of responsibilities that makes sense and avoids all the "substitute from filesystem" stuff we had to do in old nixos-install
<bennofs>
idk why my paste protection didn't catch this
<bennofs>
LnL: an example of a file listing from hydra that contains non-unicode characters
<bennofs>
pippijn: not entirely valid json, since one string there has a non-unicode character :)
<pippijn>
bokm.l.alias
<pippijn>
right
<pippijn>
e5 :)
<LnL>
bennofs: :p
<bennofs>
joachifm, gchristensen: what I actually wanted to say is that this occurs because '(throw "undefined" // { foo = 3; }).foo' fails, even though you could say it should succeed
<bennofs>
nix is too strict in this case. but well, then even '(4 // { foo = 3; }).foo' would succeed, which is perhaps not what we want
<clever>
bennofs: i believe it needs to eval both of the // arguments, to find the list of keys, and know which side to get the valid from
<clever>
value*
sellout- has joined #nixos
<bennofs>
clever: well it could start with the right one and if it finds it in the right side, dont eval the left
<clever>
ah, for the // case, yeah
<clever>
it overwrites, so a right to left search works
<bennofs>
clever: but then it cannot check the type of left, so if it matches in right, it cannot check that left is a set as well
<clever>
that might even be faster, but i believe it currently doesnt search, but rather, creates a new attrset with the result of merging
eacameron has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vDHHf
<lassulus>
slim with no desktopManager and xmonad as windowManager
<lassulus>
but I'm not sure if I have to run urxvtc twice
<lassulus>
will test it later, after reboot
Criena[m] has joined #nixos
Wizek has joined #nixos
Wizek_ has joined #nixos
Wizek__ has joined #nixos
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
georges-duperon has quit [(Quit: Leaving)]
Kingsquee has joined #nixos
<Criena[m]>
Hi there, can someone give a hint on using custome (Python) scripts in combination with nix packages? How to do it?
<Criena[m]>
Background: I'm currently migrating my prosody server to NixOS and want to use external authentication (a python script).
<Criena[m]>
For some reason though prosody can't start the script. I even have trouble figuring out why.
ambro718 has joined #nixos
<Criena[m]>
I tried with amending the she-bang to nix-shell and added python and the required packages, but still no success.
<mudri>
lassulus: I've got a pretty similar setup, so testing would be helpful. Sometimes it's easy for me to think that I've only asked for a terminal once, when I've actually asked twice. Or maybe I didn't actually hit the key.
<mudri>
But I'm fairly sure, by running urxvtc from my command launcher.
moritz1 has joined #nixos
<Criena[m]>
NixOS seems really great so far (migrated three machines already), but the fact that it's rather different to "standard" Linux, makes it hard to get a move on.
sivteck has joined #nixos
Shou has joined #nixos
ndowens08 has joined #nixos
Itkovian has joined #nixos
Itkovian has quit [(Client Quit)]
<mudri>
Criena[m]: Yeah, Nix takes a long time to learn. I don't think it's something one can practise, like one would with programming exercises for languages.
<simpson>
Criena[m]: The most helpful thing would be error messages.
<mudri>
And sorry, I can't help much with scripting or Python.
<ndowens08>
ok am I missing something or don't understand something correctly. https://github.com/NixOS/nixpkgs/pull/22888 on that PR, i am using assert enablehicolorTheme -> hicolor_icon_theme !=null, abbradar posted that am not actually using hicolor_icon_theme anywhere? Do i have to add hicolor_icon_theme somewhere else, like buildInputs = [ ] ++optional [hicolor_icon_theme]; ?
<mudri>
But what does it mean to use a script with a package? I can think of a few interpretations.
ertes has joined #nixos
mjhoy has joined #nixos
<ndowens08>
thought using assert would say if enableHicolorTheme is true then install hicolor_icon_theme
<mjhoy>
Does nixos somehow determine my default web browser?
cpennington has quit [(Ping timeout: 255 seconds)]
samvher has quit [(Ping timeout: 240 seconds)]
acowley_away is now known as acowley
samvher has joined #nixos
<Criena[m]>
Prosody isn't of much help. I only get "auth_external: Nonsense back" as an error message.
<Criena[m]>
Simply starting the script from the shell doesn't work, since it requires the ldap3 and systemd modules.
<Criena[m]>
mudri: It's not a python issue in general.
<clever>
contrapumpkin: if you build the kexec_tarball attribute as shown in line 1 of the config, you get a tarball containing a shell script, kernel, and initrd, and the initrd contains a full nixos build
<contrapumpkin>
fancy!
<clever>
contrapumpkin: the idea, is that you upload this tarball to any server, unpack it to /, and then just run /kexec_nixos
<ttuegel>
gchristensen: We should add that to our contributor guidelines: don't @ anyone in a commit message! :-)
<gchristensen>
haha yeah
<gchristensen>
because I have probably 50 emails about that commit now haha
<NixOS_GitHub>
[nixpkgs] wizeman opened pull request #22908: nixos.samba: add enableNmbd and enableWinbindd options (master...u/fix-samba-disable-srv) https://git.io/vDQe6
<clever>
contrapumpkin: and within 2 minutes, its running full nixos from ram, you can ssh into that, and wipe the hdd, then do a normal nixos-install
bennofs has quit [(Ping timeout: 240 seconds)]
<contrapumpkin>
clever: lovely! makes NixOS even more infectious :P
<wizeman>
gchristensen: sorry, I don't know how to disable those CCs!
<clever>
contrapumpkin: yep
<gchristensen>
wizeman: you can't :) it is okay, don't stress
<clever>
contrapumpkin: line 53-60 of configuration.nix is another addition i did recently to deal with crappy network configs
<clever>
contrapumpkin: the datacenter i had to deal with lately lacks dhcp, so i had to put static ip config into this file, but if i get it wrong, i cant remotely reboot
<clever>
contrapumpkin: but a couple extra lines of nix later, i have a systemd timer that reboots back to the original OS every hour
<clever>
if i do get in, i can just stop the timer
<contrapumpkin>
reboots back to the original OS?
<clever>
yeah
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
<clever>
contrapumpkin: the kexec works entirely in ram, without any changes to the MBR or bootloader
<contrapumpkin>
oh okay
<clever>
contrapumpkin: so if you just reboot without formating things, the previous OS boots back up
<contrapumpkin>
nice :)
<clever>
contrapumpkin: and another idea i had recently, just put this initrd in /boot, and give it a grub.cfg entry
<clever>
contrapumpkin: now you can basicaly boot the install CD at any time
<contrapumpkin>
also very cool, reminds me of the macOS recovery partition
<clever>
and if you enable ssh in that recovery image, you could ask the datacenter to pick it from grub for you
<clever>
then recover it yourself
sigmundv_ has quit [(Ping timeout: 240 seconds)]
<clever>
contrapumpkin: i also then had another idea on how to further improve the usability of nixos in remote locations
<clever>
contrapumpkin: in theory, i can make a program that runs on bootup, within the initrd, that will wait ~30 seconds for certain network packets, and if it gets none, it boots the default OS
<clever>
contrapumpkin: but if you do give it the right network packets, you get a boot menu over the network
<clever>
and in either case, kexec the chosen nixos image
<clever>
after that, you just need to ensure nixos always reboots upon any boot failure
jgertm has joined #nixos
<contrapumpkin>
sounds lovely!
<contrapumpkin>
would beat most of the guides to installing on unfriendly hosts
<clever>
yeah
<clever>
one thought i had, is to add the kexec stuff to nixops
samvher has quit [(Ping timeout: 240 seconds)]
deepfire has quit [(Ping timeout: 240 seconds)]
<clever>
so you just give nixops root access to any linux machine in any datacenter, and it just works
acowley is now known as acowley_away
indi_ has joined #nixos
yenzenz has quit [(Ping timeout: 240 seconds)]
samvher has joined #nixos
<contrapumpkin>
ooh, that'd make gchristensen very happy
<gchristensen>
:)
nschoe has quit [(Quit: Program. Terminated.)]
<clever>
and there is another trick, for cases where kexec isnt in the kernel of the target
<clever>
just edit the existing bootloader to make the recovery image the default
<clever>
either keeping the current grub, or blowing it away via nixos-in-place mechanics (running the nix build of grub-install)
ale-batt42 has quit [(Remote host closed the connection)]
indi_ has quit [(Ping timeout: 260 seconds)]
kthnnlg has joined #nixos
eacameron has quit [(Quit: Leaving...)]
<Judson>
Hrm. Any idea how the bundlerEnv passthru.env is meant to be used? It has a buildCommand that's clearly meant to prevent it being used for building. I'm trying to inherit it into a shell.nix though, and the buildCommand still runs...
<clever>
Judson: how are you trying to inherit it?
<Judson>
Which is maybe wrong? From what I can see, I'd like the IRBRC it sets up, and I'm not intending to use it in a build default.nix...
kthnnlg has quit [(Remote host closed the connection)]
freusque has quit [(Ping timeout: 255 seconds)]
<Judson>
(even more, I'd like to be able to set up e.g. ruby and rake in my nix-shell based on wrappedRuby, but I'll get there)
<NixOS_GitHub>
[nixpkgs] 2chilled opened pull request #22909: sweethome3d: version compatible with master and 16.09 (master...master) https://git.io/vDQTB
<clever>
Judson: that is copying every attribute from the env, including the build command
<clever>
Judson: oh wait no, thats env = rubyEnv.env; which means it has to build that env first
<Judson>
Okay? But nix-shell should be setting up just shy of running that buildCommand, shouldn't it?
<clever>
and with an invalid buildEnv, it cant
<clever>
buildCommand*
ibrahims has quit [(Ping timeout: 268 seconds)]
<Judson>
That's sort of what I figured. What I want, though is to get that env set up in my nix-shell without building it.
<clever>
the env attribute is meant to have nix-shell directly ran on it, via nix-shell -A rubyEnv.env
<Judson>
I'm assuming that builderEnv is written with a particular invocation in mind, and wondering what that should look like
<clever>
and then its env vars get set inside the shell
samvher has quit [(Ping timeout: 260 seconds)]
samvher has joined #nixos
<Judson>
clever, that gives me 'error: cannot auto-call a function that has an argument without a default value (‘name’)'
<NixOS_GitHub>
[nixpkgs] joachifm opened pull request #22910: linux_4_9: version bump and cve patch (master...linux_4_9) https://git.io/vDQkh
davidak has joined #nixos
<ndowens08>
nix-env -i doesnt want to work in build-vm and nix-channel --update gives nixos-17.03pre101267.a9584c9.drv no such file or directory?
<clever>
Judson: what is in default.nix?
<clever>
ndowens08: the build-vm has a read-only store by default
<ndowens08>
trying to see if my update of awesome will work and need those commands lol
<ndowens08>
can it be set to write clever ?
ibrahims has joined #nixos
<Judson>
No default; there is a shell.nix
<clever>
Judson: does the shell.nix import <nixpkgs> ?
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vDQqB
<NixOS_GitHub>
nixpkgs/master 89a0365 Matthias Herrmann: sweethome3d: version compatible with master and 16.09...
<ndowens08>
so how do i make the store writable in qemu to test my package so it can be pushed to master?
<Judson>
(except that doesn't let the ruby app itself work... hm)
pi3r has joined #nixos
<ndowens08>
looking at the module for qemu and trying to add it to my test config but either it gives me option not found or can't coerce whatever to string
sivteck has joined #nixos
ttuegel has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
phreedom has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 3 new commits to release-16.09: https://git.io/vDQm4
<NixOS_GitHub>
nixpkgs/release-16.09 c8ef369 Matthias Herrmann: sweethome3d: version compatible with master and 16.09...
<NixOS_GitHub>
[nixpkgs] bjornfor closed pull request #22909: sweethome3d: version compatible with master and 16.09 (master...master) https://git.io/vDQTB
<clever>
ndowens08: what command are you currently using and what are you trying to test?
takle has quit [(Ping timeout: 260 seconds)]
samvher has quit [(Ping timeout: 260 seconds)]
<ndowens08>
awesomewm changes i made, though seems it may not be needed, seems we are leaning as making the dep needed for 4.0 themese as propagatedbuidInputs
samvher has joined #nixos
freusque has quit [(Quit: WeeChat 1.6)]
<NixOS_GitHub>
[nixpkgs] joachifm closed pull request #22685: Add option to power up bluetooth controller (master...bluetooth) https://git.io/vDwWu
<NixOS_GitHub>
[nixpkgs] aszlig pushed 6 new commits to master: https://git.io/vDQOr
<NixOS_GitHub>
nixpkgs/master a5e9668 aszlig: nixos/test: Fix escaping for copyFileFromHost...
<NixOS_GitHub>
nixpkgs/master 32c2e8f aszlig: taskserver/helpertool: Fix error message on export...
<NixOS_GitHub>
[nixpkgs] abbradar pushed 2 new commits to master: https://git.io/vDQsy
<NixOS_GitHub>
nixpkgs/master 213356c Nikolay Amiantov: activation-script service: add utillinux to path
<NixOS_GitHub>
nixpkgs/master e67416f ndowens: awesome-4.0: Add hicolor-icon-theme for theme support...
griff_ has quit [(Quit: griff_)]
<NixOS_GitHub>
[nixpkgs] abbradar closed pull request #22888: awesome-4.0: Add optional hicolor-icon-theme for theme support (master...master) https://git.io/vD9W6
acowley_away is now known as acowley
<NixOS_GitHub>
[nixpkgs] teh opened pull request #22912: lib: Add a function to filter sources by regular expressions. (master...sourceRegex) https://git.io/vDQsb
<ndowens08>
gchristensen: Thanks :) about to push another pkgs :)
<gchristensen>
and you said you weren't a programmer
s33se has joined #nixos
samvher has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
<ndowens08>
i'm not :)
<philipp[m]>
Has anybody elses setuid bit for sudo gone missing after rebuild on unstable today?
s33se_ has quit [(Ping timeout: 240 seconds)]
<gchristensen>
philipp[m]: could be ... pcap wrappers were merged
<ibrahims>
gchristensen: thanks, updated the mesos and it's working now. 1.0.1 -> 1.10 update could not happen in place though. is it expected behaviour?
<gchristensen>
nice
<gchristensen>
I don't know, sorry, I don't know anything about mesos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vDQnb
<NixOS_GitHub>
nixpkgs/master bd0d8ed Robin Gloster: programs.mtr: init setcap-wrapper
<ibrahims>
okay. good evening.
<globin>
philipp[m]: might have to login again to get the new PATH
<globin>
philipp[m]: or reboot
<globin>
philipp[m]: I'm planning to add some temporary link before the release
<philipp[m]>
Ah, I had my tmux still running with an old env.
way218 has joined #nixos
reinzelmann has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vDQcz
<lassulus>
qknight_: nix has no types, so I guess you cant query the type
ibrahims has joined #nixos
takle has joined #nixos
<avn>
lassulus: it is duck typed, so when function called, you can look to type of passed arg (but I not remember how `typeof` named)
ibrahims has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
<clever>
nix-repl> builtins.typeOf "foo"
<clever>
"string"
sivteck has quit [(Quit: Leaving)]
<dtz>
hey folks--if I wanted to use a rust tool as a dependency for non-rust code, is there a good way to do this, like rustPackages.packagename that represents the corresponding item from our fixed registry?
ertes has quit [(Ping timeout: 240 seconds)]
<dtz>
i see I could do a buildRustPackage if I wanted to tell it where the source was and such but I was hoping to avoid that and basically capture the equivalent of what I get with "cargo install package". Is this possible/am I missing something? :)
pi3r has joined #nixos
<NixOS_GitHub>
[nixpkgs] ndowens opened pull request #22916: Hiawatha: Init at 10.5 (master...master) https://git.io/vDQuv
ibrahims has joined #nixos
cpennington has quit [(Ping timeout: 255 seconds)]
<dtz>
heck, I guess it's the same problem of not having rust packages from registry available at Nix level for installation (without explicitly being added), but there I suppose adding ~/.cargo/bin to my PATH works if a unsatisfying Nix-wise
<dtz>
anyway please LMK if I'm missing something or maybe misunderstanding rust/cargo/our-infra-for-them O:).
samvher has quit [(Ping timeout: 260 seconds)]
samvher has joined #nixos
ibrahims has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
s33se_ has joined #nixos
ibrahims has joined #nixos
takle has joined #nixos
s33se has quit [(Ping timeout: 260 seconds)]
cpennington has joined #nixos
ibrahims has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
s33se has joined #nixos
s33se_ has quit [(Ping timeout: 240 seconds)]
johann__1 has quit [(Ping timeout: 240 seconds)]
MP2E has joined #nixos
ibrahims has joined #nixos
<MP2E>
hi, I updated to the latest nixpkgs master and now I can't log into root or use sudo
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-16.09: https://git.io/vDQaK
<NixOS_GitHub>
nixpkgs/release-16.09 33ed68f Robin Gloster: gexiv2: 0.10.3 -> 0.10.4...
<MP2E>
rolling back seems to fix it
<MP2E>
but my last rollback is the master from 11 days before
<MP2E>
not sure why that would be broken..
<viric>
weird thing, yes
griff_ has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
s33se_ has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
samvher has quit [(Ping timeout: 268 seconds)]
<clever>
MP2E: thats usualy what hydra saves you from, if your on nixos-unstable
samvher has joined #nixos
s33se has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub>
[nixpkgs] rycee opened pull request #22917: Fix Graylog on NixOS 16.09 (release-16.09...fix/graylog/16.09) https://git.io/vDQV0
MP2E has quit [(Quit: leaving)]
ibrahims has joined #nixos
Shou has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
schneefux has quit [(Ping timeout: 258 seconds)]
yenzenz has joined #nixos
<Criena[m]>
Hi there, can someone give me a hand regarding how to debug a service? I.e. how do I get into the same "environment" the service sees?
<Criena[m]>
Would I use nix-shell for that?
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vDQKq
<NixOS_GitHub>
nixpkgs/master 73577a2 Joachim Fasting: linux_4_9: 4.9.9 -> 4.9.10
<NixOS_GitHub>
nixpkgs/master e8007c0 Joachim Fasting: linux_4_9: patch for CVE-2017-5986...
<NixOS_GitHub>
nixpkgs/master 0a22a86 Tim Steinbach: Merge pull request #22910 from joachifm/linux_4_9...
<ndowens08>
tell me if i am right, if I use ${pkgs.writeText} I could write it to a file in the store. I am trying to write a module for hiawatha i just did a PR on, and using the module to write the config file including ${cfg.options} to be set by the user?
<Baughn>
So what's the correct way to run Perl scripts, anyway?
<Baughn>
Neither buildInputs nor propagatedBuildInputs work to make LWP accessible.
<Baughn>
ndowens08: Yeah, that works. See also plentiful prior art in NixOS modules.
<ndowens08>
so something like ${pkgs.writeText "${pkgs.hiawatha}/etc/hiawatha/hiawatha.conf"}
<bennofs>
Baughn: I think there is some buildEnv style for perl using perlPackages?
<ndowens08>
Baughn: yea that is where I got the idea of this :)
<bennofs>
Baughn: look at the hydra nix expression, hydra is written in perl
johann__ has quit [(Ping timeout: 255 seconds)]
<ndowens08>
Just the examples I have found seem to write into a internal file, vs to the actual pkg location
pi3r has quit [(Ping timeout: 260 seconds)]
<gchristensen>
you can never write in to a package after it has been built
<ndowens08>
gchristensen: oh :\
<ndowens08>
eh no biggie :)
<gchristensen>
:)
<Baughn>
ndowens08: You *can* however trivially combine two derivations, e.g. with symlinkJoin.
<Baughn>
Or make a third that refers to the first two through absolute paths, or..
<ndowens08>
lol sounds complicated :)
<ndowens08>
still new to this concept, so i dont understand this stuff grealy
<ndowens08>
s/grealy/greatly
<ndowens08>
hmm well crap, might not work then, may could only do a enable and that is it :\
<Baughn>
contrapumpkin: "I just cut & pasted most of the current nixos-install logic, amending it where relevant"
<Baughn>
This sentence worries me.
<ndowens08>
because hiawatha option is not just for one config file, but a dir
<contrapumpkin>
Baughn: how come?
<Baughn>
contrapumpkin: Is it specifically *cut* and paste, or copy and paste?
ibrahims has joined #nixos
<contrapumpkin>
*cut*
<Baughn>
Ok, that's fine then. :)
<contrapumpkin>
that's what the rest of the text is saying, I factored out the commonalities
<contrapumpkin>
so it's not in nixos-install anymore
<contrapumpkin>
:)
davidak has quit [(Quit: Leaving.)]
deepfire has joined #nixos
MP2E has joined #nixos
isHavvyGhosting has joined #nixos
mudri has joined #nixos
<Baughn>
buildEnv gets me a suitable perl environment.. by all appearances, but it does not end up on perl's search path (despite perl running from there).
ibrahims has quit [(Ping timeout: 260 seconds)]
<Baughn>
And the perl doc page only has information on how to build modules from CPAN.
<Baughn>
Oh, apparently I need to set PERL5LIB manually? Bah.
<Baughn>
..no, that's not it either.
isHavvy has quit [(Ping timeout: 240 seconds)]
<clever>
Baughn: that could be improved with a setup hook, that scans $nativeBuildInputs for things in /lib/perl and adds them to $PERL5LIB
<taktoa>
dtz: ha, I had a feeling you'd be interested in souper
<taktoa>
or dtzWill_
<dtzWill_>
taktoa: O:)
Drakonis has joined #nixos
<dtzWill_>
taktoa: (both O:))
dtzWill_ is now known as dtzWill
<Baughn>
clever: Apparently I'm supposed to use buildPerlPackage, but that assumes I have a Makefile.PL
<contrapumpkin>
Baughn: thanks for the thumb
<clever>
Baughn: i havent done much with perl, never even see a Makefile.PL before
<Baughn>
And is, in general, not geared towards applications.
<Baughn>
clever: It seems an empty one will do.
<Baughn>
More or less.
<Baughn>
Amazingly, this actually seems to have worked. Whoo.
mkoenig has quit [(Read error: Connection reset by peer)]
Drakonis has quit [(Read error: Connection reset by peer)]
alx741_ has joined #nixos
alx741 has quit [(Ping timeout: 240 seconds)]
Hunner_ is now known as Hunner
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
lambdamu has joined #nixos
<lambdamu>
hi, does man -k work for you on nixos, out of the box?
Ptival_ has quit [(Remote host closed the connection)]
mkoenig has joined #nixos
<lambdamu>
possibly after mandb -u
athan has quit [(Quit: Lost terminal)]
ibrahims has joined #nixos
yenzenz has quit [(Ping timeout: 255 seconds)]
ibrahims has quit [(Ping timeout: 240 seconds)]
<mudri>
lassulus: hmm, interesting.
<justanotheruser>
I'm writing a program that will execute instructions based on a descriptive definition of those instructions provided in a file. Basically it will perform a calculation a certain way for certain parameters given multiple 2d arrays, misc parameters, etc, defined descriptively, then it will generate html based on the description as well. Any suggestions?