<jackdk>
sorry, I know factorio. I'm addicted too =)
<vikingman>
i recently understand how to install nixos
<vikingman>
and now i migrate my servers on it
<jackdk>
This line is already in all-packages.nix: `factorio-experimental = factorio.override { releaseType = "alpha"; experimental = true; };`
<jackdk>
so if you're trying to install the game client you could possibly use `pkgs.factorio-experimental` in your configuration?
<vikingman>
im actualy trying to get the headless
<jackdk>
is this because you want to use the factorio module in nixos? (`services.factorio.enabled = true;` sort of thing?)
<vikingman>
yep
<clever>
the nixos module uses the pkgs.factorio-headless package
<vikingman>
is there a way to ask for experimental using this ?
<jackdk>
`nixos/modules/services/games/factorio.nix` doesn't provide a way to change which package it's running on, but you can replace the package set. So my thinking is to create an overlay that sets factorio-headless to factorio-headless-experimental
<jackdk>
clever: why are you calling factorio.override when there's already a factorio-headless-experimental defined? what am I missing?
<samueldr>
jackdk: the module itself doesn't allow switching the package :/
<samueldr>
it will use `pkgs.factorio-headless`
<clever>
jackdk: yeah, you could also do factorio-headless = pkgs.factorio-headless-experimental;
<samueldr>
hi o/ vikingman is a friend of mine and he asked me earlier to day about that
<clever>
jackdk: was mostly thinking about avoiding recursion, but there is none in this case
<jackdk>
thanks samueldr I saw that. thanks clever.
<vikingman>
he almost gave me the same awnser
<vikingman>
he also helped me to install nixos for the 1st time
<vikingman>
and i saw that he mess with partition in the documentation ;)
<samueldr>
hmmm, the bot's taking a sabbatical
xenog_ has quit [Ping timeout: 246 seconds]
<aleph->
Okay so stupid question, installed nix on ubuntu via the curl installer. Sourced the profile so as to use it. Running "nix-env -i nix-repl" errors out with: "error: selector 'nix-repl' matches no derivations
<aleph->
"*
worldofpeace has joined #nixos
<aleph->
Wondering what the issue might be?
<jackdk>
the repl is built into the nix command on my install, so the command I run is `nix repl`. what is your nix version?
<samueldr>
aleph-: it's been wholly deprecated and removed since it's not compatible with nix 2
<samueldr>
you can use `nix repl` (so drop the dash)
<samueldr>
(assuming yeah that you're using nix 2)
<aleph->
Ahhhh. Gotcha, was just trying out installing a package via nix pills.
<samueldr>
and you're right
* samueldr
checks to fix that
<samueldr>
eek! there are more references than I thought
<aleph->
Heh
<aleph->
Luc I assume? :P
<samueldr>
nope, samuel :)
<aleph->
Ah, heh.
<samueldr>
a nixos contributor, I know the nix-pills need love with regards to `nix-repl`, but uh, that's not for tonight in the end
<aleph->
Aye
<samueldr>
(too much to check, not sure how they're built, I thought it was docbook, but there's a load of .txt)
<aleph->
I should be working, insteasd I'm doing this and muddling over my nix impl
<aleph->
Whole source of nix is what? 50K odd lines?
<samueldr>
don't know, but many years of experience in the lines ;)
<aleph->
Heh
<aleph->
I'm curious, can nix or nixops be used rather like a remote execution tool at all?
EarlDeLaWarr has joined #nixos
<kyren>
okay, endless questions I know... I've gotten nixos-rebuild to work to remote deploy and specify the channel with -I and everything works fantastically actually, this is exactly the setup I wanted.. HOWEVER, after building the version on the target machine is: 18.09pre-git (Jellyfish)
<kyren>
oh wait I know what I did, my channel path is wrong
fragamus has joined #nixos
<kyren>
well, okay I was using `-I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.09.tar.gz` and I imagine that has something to do with it
<kyren>
but now I'm not quite sure what is correct
fragamus has quit [Client Quit]
teto has joined #nixos
<clever>
kyren: nixpkgs has no way to tell what git rev the tarball came from, so it can only say 18.09pre-git
<kyren>
ah okay, I suppose it's not actually a big deal
<clever>
kyren: the official channel has a .version file in it to solve that
<jluttine>
how can i make use of $out in installFlags? installFlags=["INSTALL_LIB=$out/lib"]; doesn't work, it tries to install to "ut/lib"
<jackdk>
what about ${out}?
<jluttine>
hmm.. "INSTALL_LIB=$(out)/lib" worked
<jackdk>
with parens? isn't taht command subtitution?
<jackdk>
oh that's not going to the shell, nix looks at it first. let foo = "steve"; in "hello $(foo)" => "hello $(foo)", though
nek0- has joined #nixos
infinisil has joined #nixos
nD5Xjz has joined #nixos
<Myrl-saki>
> test
<jackdk>
error: undefined variable 'test' at (string):1:1
<Myrl-saki>
lol
endformationage has quit [Quit: WeeChat 1.9.1]
fragamus has joined #nixos
Ariakenom has joined #nixos
<infinisil>
Oh, bot not here again
<sphalerite>
:(
<sphalerite>
{v_v}
<infinisil>
gchristensen: ping
<sphalerite>
{;_;}
reinzelmann has joined #nixos
mayhewluke has quit [Ping timeout: 246 seconds]
mayhewluke has joined #nixos
appleclusters has joined #nixos
vdemeester has joined #nixos
Niall has quit [Remote host closed the connection]
Niall has joined #nixos
fragamus has quit [Ping timeout: 252 seconds]
orivej has quit [Ping timeout: 252 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
astronavt has joined #nixos
hyper_ch2 has joined #nixos
jb55 has quit [Quit: WeeChat 2.2]
orivej has joined #nixos
rauno has joined #nixos
<LnL>
jluttine: jackdk: the parens are make expansion, makeFlags and friends are escaped so bash doesn't touch them
<jackdk>
ah right
tilpner has quit [Remote host closed the connection]
appleclusters has quit []
goibhniu has joined #nixos
Itkovian has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
jasongrossman has quit [Ping timeout: 276 seconds]
nschoe has quit [Ping timeout: 252 seconds]
siers has joined #nixos
WizBright has quit [Ping timeout: 245 seconds]
<siers>
/reconnect
d4g has joined #nixos
<d4g>
Hi ho
<d4g>
Does anyone know how i can manage a nss database in nixos? I fail to find the certutils binary which should be used
justan0theruser has quit [Ping timeout: 252 seconds]
jackdk has quit [Ping timeout: 252 seconds]
<srhb>
,locate bin certutils
<srhb>
,locate bin certutil
<d4g>
is this a bot? ,locate?
<srhb>
d4g: Meh, well, it appears to be in nssTools.tools
<srhb>
Yes, but apparently non-functional.
<d4g>
srhb: ok, I have a look
<d4g>
hm
WizBright has joined #nixos
<d4g>
I already added the package nss
<d4g>
and it seemed like it is the same as nssTools
<d4g>
How would I find that there even exists nssTools.tools ?
<d4g>
nix-env does not show it at least
<srhb>
d4g: Package searching is a bit of a tricky business, and this one in particular is strange in that it uses a non-standard output "tools" instead of the usual ("bin", "out", ...)
<srhb>
d4g: I found it via nix-locate (which is part of nix-index)
<d4g>
ok. So I will install nix-index as well
<d4g>
thx a lot
<srhb>
d4g: Welcome.
<d4g>
I usually search on github
<srhb>
d4g: That works too.
<d4g>
but probably did not find it because of a typo
<d4g>
certutils vs certutil probably
<srhb>
Yeah.
<srhb>
Though actually, the name certutil doesn't pop up at all.
<d4g>
Harg
<srhb>
Like I said, it's a bit of a weird package.. moveToOutput bin "$tools"
<d4g>
i c
<srhb>
^-- is the line in question in the nss derivation
<d4g>
Yeah, it seems that usually only libraries are installed
<d4g>
the maintainer probably saw the primary usecase in there
<srhb>
It's probably split for a good reason, but "tools" really makes me wonder.
<d4g>
How big does an index get with nix-index?
<srhb>
d4g: Mine's 21M
<d4g>
ok, so I should not mind
<srhb>
Note that this approach is also incomplete though
<d4g>
yeah but a step in the right direction probably
<srhb>
It essentially walks through the known attributes on Hydra and checks what files are in there
<srhb>
So if Hydra doesn't build "foo", "foo" will not be indexed.
<d4g>
ok
<srhb>
But yes, it's usually the most complete of the bunch
<d4g>
thanks a lot
<srhb>
Sure thing.
Ariakenom has joined #nixos
Taneb has quit [Quit: I seem to have stopped.]
pasukon has quit [Read error: Connection reset by peer]
wildsebastian has quit [Read error: Connection reset by peer]
<ekleog>
(ftr, a similar patch made it upstream since and will make removal of this patch possible at next release)
<srhb>
I've been using a makeFakeGit for this purpose which constructs a "git" script that returns some hardcoded values for given inputs. Should probably try and upstream this...
jasongrossman has joined #nixos
Cale has joined #nixos
<ekleog>
oh sounds fun
<ekleog>
actually this could maybe be generalized to makeFakeExec { "git log" = fakeExecSuccess "hello"; "maven build" = fakeExecFailure 42 ""; } etc.?
<ekleog>
maybe I'm overthinking this, but I'd guess such a functionality of stubbing executables could be useful in more cases than just git
<ekleog>
then if I want to *really* overthink it, have makeFakeExec able to proxy to the real executable backend for options that are not explicitly overridden, so that we could hook into the build process of things without patching
<srhb>
ekleog: Yep, exactly that.
<srhb>
ekleog: The trick is just making it general enough without having to build a full fledged option parser in Nix, imo. What I've been meaning to do is create a small tool that eats an actual nix expression to specify a simple option parser, everything else should be trivial to do..
<srhb>
Sort of just a dispatcher. :)
<srhb>
With an easy way to inject constants.
bemeurer has quit [Ping timeout: 252 seconds]
thc202 has joined #nixos
alex`` has joined #nixos
bemeurer has joined #nixos
<ekleog>
:DDD
* ekleog
hopes this can get in
<srhb>
I'm sure it can. Just need to, like, finish it... :-P
<srhb>
teto: You seem to have lowercased your example overlay.
civodul has joined #nixos
<teto>
srhb: indeed, must have touched "~" while copying but it doesn'
<teto>
t influence the result
<srhb>
Seems like it's trying to modify the existing cmd2 in the nix store
<srhb>
teto: No, of course. :)
Akii has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
Piece_Maker has joined #nixos
Anton-Latukha has joined #nixos
Acou_Bass has quit [Ping timeout: 252 seconds]
Piece_Maker is now known as Acou_Bass
sigmundv has joined #nixos
h30 has joined #nixos
bjpbakker has joined #nixos
Acou_Bass has quit [Ping timeout: 245 seconds]
bemeurer_ has joined #nixos
bemeurer has quit [Ping timeout: 252 seconds]
carlosdagos has quit [Quit: Connection closed for inactivity]
kai_w has joined #nixos
jasongrossman has quit [Remote host closed the connection]
xenog has joined #nixos
philippD has joined #nixos
<marcinkuzminski>
@domenkozar ping
nbardiuk has joined #nixos
k0001 has joined #nixos
k0001 has quit [Client Quit]
xenog has quit [Ping timeout: 272 seconds]
Taneb has joined #nixos
LysergicDreams has quit [Ping timeout: 252 seconds]
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
LysergicDreams has joined #nixos
woffs has joined #nixos
mayhewluke has quit [Ping timeout: 246 seconds]
mayhewluke has joined #nixos
kai_w has quit [Quit: Konversation terminated!]
TweyII has joined #nixos
kai_w has joined #nixos
fendor has joined #nixos
<domenkozar>
marcinkuzminski: pong
jasongrossman has joined #nixos
Ridout has joined #nixos
<marcinkuzminski>
i've got some python /nix related question. I'd hope you might help :)
c0ffee152 has joined #nixos
<marcinkuzminski>
We're using a wrapProgram for our python scripts, and it seems this produces a huge startup time overhead, like in here: https://issues.rhodecode.com/issues/5494
<domenkozar>
I try to pretend I know nothing about that, but maybe I can help :)
<domenkozar>
marcinkuzminski: your best bet is to use python.buildEnv
<marcinkuzminski>
hmm, how to use this for various sort of binary scripts?
<domenkozar>
they will end up in $bin
<domenkozar>
you need to be careful about collisions though
<domenkozar>
so you can't bundle two packages that have different versions of the same library
<domenkozar>
but you can package each thing as separate buildEnv
<Guillaum>
clever: I'm trying your qemu-user, I've added the repository and set qemu-user.aarch64 = true in my nixos configuration, and it does something (i.e. rebuilt nix), but now, I'm stuck on how I'm supposed to use it. (I.e. run an aarch64 binary on my x86_64).
<symphorien>
there is an option to ignore collisions iirc
<Guillaum>
clever: nevermind, actually it worked...
<marcinkuzminski>
We don't have collisions i'm certain
<marcinkuzminski>
@domenkozar so if i understand this correctly, if our `rhodecode` package has all the scripts, we should just use buildEnv and extraLibs is the rhodecode package
__monty__ has joined #nixos
oida has quit [Ping timeout: 256 seconds]
rprije has quit [Ping timeout: 244 seconds]
xenog has joined #nixos
ryantrinkle has joined #nixos
typetetris has joined #nixos
oida has joined #nixos
<typetetris>
Is there a package containing the nixpkgs manual ? So I can easily read it offline?
xenog has quit [Remote host closed the connection]
xenog has joined #nixos
silver has joined #nixos
<srhb>
typetetris: Not quite a package in nixpkgs, but nix-build '<nixpkgs/doc>'
Anton-Latukha has quit [Remote host closed the connection]
freeman42z has quit [Ping timeout: 252 seconds]
silver_ has joined #nixos
silver has quit [Ping timeout: 252 seconds]
Anton-Latukha has joined #nixos
orivej has joined #nixos
<arianvp>
how do I run memtest86 on a non-grub install?
<arianvp>
there's no way to add extar boot entries manually with the boot.loader.systemd-boot functionality
silver_ has quit [Read error: Connection reset by peer]
<rawtaz>
arianvp: to run memtest you should probably boot the system from an external disk, e.g. a usb drive or whatever, so you can load the mimimum OS
<infinisil>
Not sure if that's a valid usecase though lol
<infinisil>
And I think it would work without __functor too
Ridout has quit [Quit: Lost terminal]
<{^_^}>
[nixpkgs] @edolstra pushed 9 commits to release-18.09: https://git.io/fxCuq
<Myrl-saki>
infinisil: That's pretty cool.
<ekleog>
infinisil: I'm very sad
thibm has joined #nixos
<ekleog>
this example doesn't actually re-use nix grammar, but uses builtins.readFile :'(
* ekleog
hoped some dirty hacks to actually define identifiers without let and the like :p
<Myrl-saki>
ekleog: Wait, what
<Myrl-saki>
Okay, wtf.
<Myrl-saki>
How did he do that
steveeJ has joined #nixos
<ekleog>
well, the trick is nix is lazy, so everything in the parenthesis of eval won't be evaluated and thus won't trigger an error if they're never called for
<ekleog>
so so long as it parses as valid nix it's ok, even if variables are not defined
joehh_ has joined #nixos
joehh has joined #nixos
<ekleog>
so infinisil reads the source file where eval is called and parses it without ever calling for its argument, hence being able to include any syntax that can correctly parse as nix
<ekleog>
as a consequence, you can't mix it with actual nix code, like doing eval (import ./my_file.lisp) with my_file.lisp containing the current definition, wouldn't work
<Myrl-saki>
lol
<Myrl-saki>
That's scary
<Myrl-saki>
ekleog: In effect, infinisil also had to make a lisp parser and evaluator in Nix, right?
<ekleog>
yup
<ekleog>
(well, that's how I understand it, at least)
electrocat has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 opened pull request #48153 → nixos-option: don't abort with shell failures if options are not existant → https://git.io/fxCzE
joehh has quit [Ping timeout: 246 seconds]
<infinisil>
ekleog: Myrl-saki: Nope
<ekleog>
?
<infinisil>
I'm only using readFile to get variables I'm using in the source
<infinisil>
So Nix doesn't complain about them being undefined
<infinisil>
So (import ./file) and the likes should work :)
xenog has quit [Ping timeout: 245 seconds]
joehh has joined #nixos
<ekleog>
… ooooooh gotcha
<ekleog>
eval only parses the `def` and `defun`
andromeda-galaxy has quit [Ping timeout: 250 seconds]
<ekleog>
… I think? actually I don't get it
<ekleog>
eval' appears to first evaluate expr', so it has to evaluate-as-nix-code
<ekleog>
and if it's a functor then it checks if it's named `def` or `defun`
<ekleog>
but… where are the nix `def` and `defun` identifiers defined? o.O
thibm has quit [Quit: WeeChat 2.0]
bjpbakker has joined #nixos
<samueldr>
arianvp: a tad late, but there's no Free memtest for EFI :(
<arianvp>
:(
<arianvp>
damnit
<arianvp>
ohwell memtesting now, but everything seems fine
<arianvp>
still. NixOS reboots as soon as I browse longer than 15 minutes in Firefox
<arianvp>
or just freezes. Any other hardware debugging tips n tricks?
<srk>
sensors, dmesg -Hw
joehh has quit [Ping timeout: 252 seconds]
<srk>
also ping from another machine if it's just gpu or whole pc
<arianvp>
it sometimes actually reboots
<arianvp>
dmesg didn't show anything :(
<etu>
arianvp: If you have "dmesg -Hw" running over ssh from another machine you may be able to see things when it dies
<srk>
try with latest kernel and with/without gpu drivers
TweyII has quit [Ping timeout: 246 seconds]
xenog has joined #nixos
TweyII has joined #nixos
<betaboon>
i just never understand why people go and call something "extraConf".. why not call it "extraConfig" !?
jperras has joined #nixos
aminechikhaoui has quit [Ping timeout: 245 seconds]
<gchristensen>
why not call it additionalConfiguration?
<{^_^}>
[nixpkgs] @clacke opened pull request #48154 → lib: overrideScope: Correct parameter names in deprecation warning → https://git.io/fxC27
<betaboon>
I'm open to any meaningful combination of semi-complete words xD
<gchristensen>
eC
<FaerieFly>
extraConf seems like a meaningful combination of semi-complete words :p
<betaboon>
XD
<arianvp>
doesn't systemd persist the dmesg logs from previous boots?
<arianvp>
I checked them with journalctl -k -b-1 but no luck
<samueldr>
if the system is failing in an uncelan way, it might not be able to persist them
<arianvp>
good point
xenog has quit [Ping timeout: 246 seconds]
<arianvp>
hmm I'll maybe just hop back to linuxPackages_4_17
<arianvp>
however it's not in nixpkgs anymore, only linuxPakcages_4_17 and 4_14
<infinisil>
You mean why use an `eval (lisp code here)`?
<ekleog>
yup
jperras_ has quit [Ping timeout: 260 seconds]
<infinisil>
Because I need some way to get to the result
patrl has quit [Ping timeout: 252 seconds]
<ekleog>
oh indeed :)
<infinisil>
(lisp code here) just evaluates to { sym = "lisp"; args = [ ... ]; }
<ekleog>
so… wow, thanks :)
<gchristensen>
this sounds like prime #nix-lang convo
<infinisil>
Probably :P
<ekleog>
oh had completely forgotten about this chan, visibly forgot to add it to the autojoin last time :°
ryantrinkle has quit [Ping timeout: 252 seconds]
<siers>
what an innovative smiley
<infinisil>
ekleog: The worst thing about this lisp implementation is that it doesn't work in non-files
<{^_^}>
[nixpkgs] @basvandijk pushed 0 commits to reelase-18: https://git.io/fxCwa
<ekleog>
infinisil: well, it could expose a lispSymbol function that returns { sym = name; functor = ... }, and have users define their symbols themselves, couldn't it?
Synthetica has quit [Quit: Connection closed for inactivity]
<infinisil>
ekleog: Yeah, was actually what I thought I'd do first, but it's just too inconvenient
<{^_^}>
[nixpkgs] @basvandijk pushed 0 commits to reelase-18: https://git.io/fxCwD
<infinisil>
Not even sure how that would properly work with scoping
reinzelmann has quit [Ping timeout: 250 seconds]
<ekleog>
you can also generate a .nix that just defines all identifiers of <= X chars that respect lisp naming conventions :°
<gchristensen>
elvishjerricco: what features does it turn on that you don't want?
<elvishjerricco>
gchristensen: It's not that I'm vehemently opposed to the feature it turns on. It's just that I don't care about it, so I'd rather not have it cluttering my emacs file, plus I can't automatically add it anyway. And seeing "You must modify your emacs config to contribute to this repo" is a big annoyance to drive-by/first-time contributors=
<gchristensen>
why must you modify your emacs config?
* gchristensen
isn't _trying_ to be dense :)
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco>
gchristensen: Because it's insanely frustrating to have every new buffer (including minor ones like magit UIs) also pop up this prompt "Would you like to save these things?"
<elvishjerricco>
You can't tell it to *stop* asking (nor should you have to)
<gchristensen>
elvishjerricco: I think I'm missing something, and I'm trying to understand what it is I'm missing -- not challenging that it is a frustrating experience
clefru has joined #nixos
<gchristensen>
elvishjerricco: dir-locals doesn't get dynamically loaded, but is instead appended to your emacs init.el or whatever?
<elvishjerricco>
gchristensen: emacs asks if you'd like to apply the variables in every new buffer you open. Then, if you'd like it to stop prompting, your only option is to tell it to write to your emacs config that you trust these particular variables, so it'll open new buffers (and use the enabled features) without the prompt.
<gchristensen>
ahh it has to write the trust status
<elvishjerricco>
So with magit, you press one key per action you're trying to take. Each key you press opens this prompt
<gchristensen>
makes sense
<etu>
elvishjerricco: Hih? What makes this?
<etu>
huh*
<elvishjerricco>
etu: the .dir-locals.el file in the root of nixpkgs currently
<elvishjerricco>
I expected other emacs users to fight me lol
<gchristensen>
I just wanted to understand what was annoying
<etu>
elvishjerricco: oh, I never noticed it. I'm using emacs but I have no idea what it did.
<gchristensen>
not just the behavior but why that was happening.
<etu>
elvishjerricco: My emacs have never behaved like you described in nixpkgs
<sphalerite>
that doesn't seem like the right solution to me..?
<sphalerite>
Surely there must be a way to disable dir-locals?
<gchristensen>
I asked in #emacs
<elvishjerricco>
sphalerite: I mean you shouldn't have to disable dir-locals entirely either
<elvishjerricco>
Contributing to nixpkgs should have *zero* requirement on your emacs config
<gchristensen>
if emacs can't store state anywhere, it can't know that you already refused
<etu>
So dir-locals is some thingy to set variables in emacs for a project you're in?
<gchristensen>
also it turns out it is fairly rare for projects to have a dir-locals file (to quote #emacs, "<bremner> notmuch has one, but we're freaks.") so
<elvishjerricco>
etu: Yea. But the way emacs avoids letting this be a remote code execution attack is a pretty hostile UX
vmandela has joined #nixos
<etu>
elvishjerricco: Yeah, that doesn't surprise me that it can be since it's elisp
catern has quit [Excess Flood]
<etu>
elvishjerricco: I haven't heard about this before. But I still don't get why your emacs complained? Have you configured it in some way to deny these files?
<etu>
elvishjerricco: Which would be sane to do. But mine doesn't complain and I would like to understand why :)
<elvishjerricco>
etu: I simply haven't configured it to *accept* the file, because I shouldn't have to. Anyone who's accepted it and saved it to their emacs won't get the popup anymore
<etu>
Afaik I haven't configured it to accept it either... :/
<etu>
elvishjerricco: Nope, my config is read-only and handeled by home-manager
<elvishjerricco>
etu: Huh... I can't imagine why your's doesn't prompt you then
trevorriles has joined #nixos
aleph- has joined #nixos
trevorriles has quit [Ping timeout: 252 seconds]
vmandela has quit [Remote host closed the connection]
vmandela has joined #nixos
silver has joined #nixos
ryantrinkle has joined #nixos
reinzelmann has quit [Quit: Leaving]
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Fix #58: add new logo »: https://git.io/fxCS6
fendor has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of 'e16d6fcd2e443a13c4c269a5becedf7e85ec2b1e' commit built by Travis-CI \#439657658 »: https://git.io/fxCSH
endformationage has joined #nixos
nbardiuk has quit [Quit: Lost terminal]
<lassulus>
does someone know how to use xpra? i tried with: xpra start ssh:localhost --start=xterm but I get a Syntax Error during exection, seems xpra wants to open the shellwrapper as a python script
<aleph->
So very stupid question, on pill 8 of nix pills, modifying my autotools build script and it says to add $baseInputs to the for loops with $buildInputs. What exactly does it mean? Script is here: https://bpaste.net/show/25175bd38640
ZeDestructor_ has joined #nixos
ekleog has quit [Remote host closed the connection]
lewo has quit [Ping timeout: 260 seconds]
aminechikhaoui has joined #nixos
ZeDestructor has quit [Ping timeout: 252 seconds]
ZeDestructor_ is now known as ZeDestructor
ekleog has joined #nixos
vmandela has quit [Quit: Leaving]
<{^_^}>
[nix-pills] @exyi opened pull request #84 → Fixed typo in 03-enter-environment.xml → https://git.io/fxC7k
<{^_^}>
[nixos-weekly] @domenkozar pushed 6 commits to master: https://git.io/fxC7L
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '7bd4691ef536f79b321381d292f548e809d6b761' commit built by Travis-CI \#439670145 »: https://git.io/fxC7B
<{^_^}>
[nixos-weekly] @domenkozar pushed 7 commits to production: https://git.io/fxC7d
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Call for Content: 2018/12 »: https://git.io/fxC7p
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #69 → Call for Content: 2018/12 → https://git.io/fxC5e
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit '7f05b18ae34e9353d419e1c1299a6b69c1a0a20e') built by Travis-CI \#439672365 »: https://git.io/fxC5v
<garbas>
domenkozar: you are a machine! really thank you for doing this.
<gchristensen>
domenkozar++
<{^_^}>
domenkozar's karma got increased to 6
<domenkozar>
thanks :)
<domenkozar>
I try man :)
<etu>
domenkozar++
<{^_^}>
domenkozar's karma got increased to 7
<Taneb>
domenkozar++
<{^_^}>
domenkozar's karma got increased to 8
<apeyroux>
domenkozar++
<{^_^}>
domenkozar's karma got increased to 9
<apeyroux>
:)
<etu>
All that sweet karma
<domenkozar>
woot <3
<dhess>
Hmm there are a few things in that "Your First Hydra" blog post that my Hydra doesn't do (or need, as far as I can tell)
<dhess>
my Hydra config, I should say
<gchristensen>
like what?
BlessJah_ has joined #nixos
<dhess>
The explicit Postgres config, for example
<dhess>
(I wasn't even aware Hydra used Postgres until I read that post, in fact!)
<dhess>
also adding hydra, hydra-evaluator, and hydra-queue-runner to trustedUsers
<dhess>
surely that isn't necessary?
<gchristensen>
I guess not? I dunno
patrl has joined #nixos
<dhess>
do your Hydras have those users listed in trustedUsers?
<gchristensen>
don't think so
<gchristensen>
I don't run a personalhydra
<cransom>
i also wonder where the best place to stick in a proviso (i haven't seen it anywhere) that if you are building disk images, `nix.autoOptimiseStore` completely breaks the image size guesstimation
<dhess>
gchristensen: oh you should, man. It's the best ;)
<cransom>
hydra-queue-runner is the only one in my trusted-users
<dhess>
cransom: even that one isn't in mine, and as far as I can tell my Hydra works as it's supposed to
<cransom>
he kind of already has the keys to `the` hydra, a personal hydra probably isn't that much of a win :)
<dhess>
I was just joking. Running a Hydra is not particularly fun if you can avoid it
<gchristensen>
^.^
<gchristensen>
I don't _use_ `the` hydra machines for anything personal, but administering one hydra is definitely enough
hyper_ch2 has quit [Ping timeout: 256 seconds]
<clever>
i have admin access on 4 hydras ....
<gchristensen>
any time I need something powerful I just rent it, I don't mind.
<cransom>
i know i'm fairly susceptible to stockholme syndrome, but i did commit to my prod repo last night and hydra built software, uploaded an ami, and tweaked an auto scaling group to put it in service. it was... thrilling. i'm sure somethign else probably could have done it easier but nix+bash to make it happen was kind of fun.
<gchristensen>
that makes me glow with joy
<gchristensen>
is that using post-build hooks in Hydra/
<srhb>
I was just about to ask. runcommand being put to good use?
<cransom>
it is not currently. it is an extremely unsandboxed hydra.
<gchristensen>
haha nice. I have a machine here setup as a remote builder with impure as a mandatory system feature for ... dirty ... things ...
<srhb>
gchristensen: Honestly that's often nicer because you'll be able to incorporate some kind of status into the build result.
<srhb>
gchristensen: (eg. failure)
<cransom>
i feel dirty about the lack of sandbox and making network calls in the hydra job, but yeah. if the post-build hooks can't fail a build, it's hard to string together deploy tasks.
<gchristensen>
:) I used that machine for playing with using AMT to do remote installation of NixOS on bare metal hardware pretending to be a real user
<srhb>
cransom: Yeah, you essentially have to roll your own ci on top of runcommand. I prefer to just notify some _other_ ci system that's better at impure stuff with those.
<gchristensen>
+1
<cransom>
amen. i'm just trying to keep it to 1 build system at a time to start out with.
<srhb>
... one build system? What is this sorcery
<dhess>
domenkozar was working on a Hydra config for Snabb Lab that would create channels, and then the boxes were configured to pull that channel. I thought that was a pretty clever approach to deployments (if the deployments can be a bit "lazy")
<dhess>
I think that's how it was supposed to work anyway
o1lo01ol1o has joined #nixos
<judson>
How do folks test new NixOS modules?
<dhess>
judson: I write tests for mine
<judson>
i.e. what's the analog to `nix-build -f <my new package expression>`
<judson>
And let Hydra run them?
<dhess>
yeah
<dhess>
it's a PITA but really nice once it's working.
<srhb>
judson: try nix-build nixpkgs/nixos/tests/postgresql.nix for instance
<judson>
That seems like a really long dev cycle...
<judson>
Aha. Interesting.
<dhess>
well better a long dev cycle than debug cycle
<judson>
And then if you want to use them before they're in a channel?
<gchristensen>
clever: say, did you see my proposal for how to manage the macos vm's disk image?
<o1lo01ol1o>
Hello, I'm new to nixos configuration. I'm trying to setup simple-hydra (https://github.com/ElvishJerricco/simple-hydra): which configuration.nix should I edit on my build machine? there's only a root user for this machine, is that okay?
<gchristensen>
clever: I'd love your feedback on it, if you don't mind
<cransom>
thats a workable approach too. but one of the things we really wanted for this was a completely baked image that we could add to an ASG. there's no user-data/amazon-init/nixos-rebuilds when it boots the first time so there's no reliance on a binary cache or anything 3rd party (except for kms to decrypt some secrets)
<gchristensen>
cransom: _drool_
<gchristensen>
cransom: who is this for..? :)
<dhess>
judson: I don't use channels, I pin my Nixpkgs in all of my projects and the Hydra runs CI on nixpkgs-unstable (or whatever). When I want to upgrade, just check the Hydra to see which channel rev passed the tests.
erasmas has joined #nixos
<dhess>
cransom: yeah that's nice. I would like to bake mine as well to avoid the rebuild when launching a new EC2 instance. Working on it.
<srhb>
dhess: I think they are just asking how to do the base simplest test locally, (which conveniently will be easy to add to hydra post-hoc)
Ariakenom has quit [Ping timeout: 252 seconds]
<dhess>
srhb: ok fair enough.
<judson>
The nix-build seems reasonable for that.
<srhb>
Well, just guessing.
<srhb>
:)
<cransom>
our `legacy` system is chef and it takes 10 minutes and a reboot for a machine to come up for a rails app. it makes traffic spikes a bit dicey when it takes that long for capacity to react
<cransom>
gchristensen: dailykos.com
astronavt has quit [Remote host closed the connection]
<dhess>
I take my Hydra for granted and forget how hard it was to get it set up and working reliably.
astronavt has joined #nixos
<judson>
But I'd like to use (my motivating case here) dnscrypt on my laptop. I'm happier making exceptions to a stable channel than pinning to a rev for my work machine.
ryantrinkle has quit [Ping timeout: 252 seconds]
<dhess>
cransom: my god, if I never need to run Ansible again I will be so happy
<srhb>
judson: tor.nix is a very small module you could model a test case off.
<gchristensen>
cransom: very advanced for a group politics blog. *nicely done*. I'd love to see y'all blog about it.
<cransom>
the chef/capistrano deploys we are also moving away from, it's ~12 minutes for a prod deploy. it takes about that much time to build/upload ami and stick it in the load balancer. but yeah. it's been fun.
<dhess>
That's cool and makes me even happier to read dailykos :)
bjpbakker has quit [Ping timeout: 252 seconds]
<cransom>
dhess: i was considering (i still dont think its a bad idea) that ansible would be handy for the orchestration part to jenga the AWS/cloud side.
<dhess>
cransom: I've switched to Terraform for that. Wowwwwwww it's pretty damn amazing.
<judson>
cransom, I'll second the "please blog about that" :)
<o1lo01ol1o>
Ok, simpler question: I need to edit my configuration.nix. Can I just add the lines? Do I need to tell nix to refresh something?
<judson>
o1lo01ol1o: `nixos-rebuild switch`
<o1lo01ol1o>
ahhh, cool. thx
<judson>
Although "just add lines" sounds like a misapprehension.
<judson>
Yes, you can edit the expression.
<cransom>
we spin up all the static stuff with terraform, but decided that managing the state and current configuration stuff is terrifying. so the moving bits like asgs/launch configs get created once and the system just copies the last config with the updated bits
<dhess>
sorry, what's an "ASG"? You've used that term a few times.
<gchristensen>
cransom: terraform is such an incredibly powerful footgun.
<cransom>
oh sorry, auto scaling group
<dhess>
scaling group?
<dhess>
right
<dhess>
On the other hand I think that terraform, with the proper IAMs (assuming we're talking EC2 here and not other backends) can be *less* of a footgun
<dhess>
not that I have figured out exactly how to do that yet :) But I know it's possible.
<gchristensen>
I want support in terraform for a rolling deploy
<dhess>
gchristensen: I think people have done that with the new workspace support?
<dhess>
gchristensen: speaking of Terraform, is your prototype NixOS plugin dead/frozen in time?
<gchristensen>
I actively use it, but I'm not sure it really needs to exist
<o1lo01ol1o>
ok, next question: /etc/nixos/configuration.nix is read only to root. is there any special way to set write permissions so it can be edited?
<gchristensen>
it is just a regular file, do whatever :)
<o1lo01ol1o>
k, so no issue with making and leaving it writable
<cransom>
maybe i'll have some renewed faith when they proclaim terraform 1.0, but right now, i have some minor skirmishes with it yet. and nightmare stories from others when they upgraded from 0.3 to 0.6 (iirc) and the aws provider changed the default of not specifying an egress rule for security group from full access to no access.
<gchristensen>
cransom: how about how it used to be, that if you changed the description of a security group it destroyed the security group, and thus everything that is related to a security group .....
<dhess>
gchristensen: "used to be" ? I was having that problem with a very recent version. Something related to IPv6 if I recall correctly.
ryantrinkle has joined #nixos
<gchristensen>
oh I dunno about that, but if you changed the words in the description it would destroy your universe :|
<dhess>
oh I missed that bit. Yeah this was just constantly destroying and re-creating the security group, not the universe
mic921 has joined #nixos
<dhess>
still happening last I checked
astronavt has quit [Ping timeout: 252 seconds]
Ariakenom has joined #nixos
jabranham has joined #nixos
<gchristensen>
yeah, so because it was destroying the SG it'd need to destroy any instance that touched it, or any other SG depending on it, or any launch config touching it ...
patrl has quit [Quit: WeeChat 2.2]
<apeyroux>
x
<apeyroux>
oups
worldofpeace has joined #nixos
sigmundv has quit [Ping timeout: 268 seconds]
<aleph->
Hmm, bollocks.
<aleph->
When installing python packages, how would I pin them?
<aleph->
Seems the most recent version is broken
Ariakenom has quit [Read error: Connection reset by peer]
<Taneb>
jabranham: I think nix-shell -p "emacsWithPackages (p: [p.magit])" should work
mkoenig has quit [Remote host closed the connection]
mayhewluke has joined #nixos
shabius has quit [Client Quit]
Acou_Bass has joined #nixos
<clever>
joko: the submodule thing is likely something that would help a number of users
<clever>
joko: i also need to fix the github status's further, they still have some bugs
shabius has joined #nixos
ryantrinkle has joined #nixos
<{^_^}>
[nixpkgs] @costrouc opened pull request #48161 → pythonModules.azure-* refactor move to python-modules (no version change) → https://git.io/fxWUP
<{^_^}>
[nixpkgs] @timokau merged pull request #48020 → buildRustPackage: fix regex for separating lib and bin → https://git.io/fxsQu
<{^_^}>
[nixpkgs] @costrouc opened pull request #48166 → pythonPackages.facebook-sdk: 0.3.0 -> 3.0.0 refactor move to python-modules → https://git.io/fxWqi
<{^_^}>
[nixpkgs] @timokau pushed commit from @erictapen to staging-18.09 « buildRustPackage: fix regex for separating lib and bin »: https://git.io/fxWqd
kiloreux has joined #nixos
jgt has joined #nixos
<jgt>
does anyone know if AWS S3 CORS policies can be managed with NixOps?
xenog has joined #nixos
<infinisil>
,error Church-
<{^_^}>
Church-: What exactly doesn't work? What commands did you run and what error did they produce?
srid has joined #nixos
<srid>
How do I inspect the attributes (of say `haskell.packages` set) using `nix repl`?
<gchristensen>
pkgs = import <nixpkgs> {} then pkgs.haskell.packages
<samueldr>
starting nix repl using "nix repl '<nixpkgs>'" brings pkgs in scope if desired
<joko>
steveeJ: I'm getting "Failed to start transient service unit: Process org.freedesktop.systemd1 exited with status 1"
<steveeJ>
pasting again because the above was missing an s: `systemd-run --quiet --wait --user --property WorkingDirectory=$PWD --pty /bin/sh -c 'echo $PWD'`
<steveeJ>
joko: are you using home-manager?
<joko>
steveeJ: yes
<steveeJ>
I wonder if a non-home-manager user has the same issue
jperras has joined #nixos
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nixos
<cocreature>
can I somehow refer to $out in configureFlags?
<cransom>
i've got a bus error
<cocreature>
so something like "configureFlags = ["${out}/…"];
<cocreature>
"
<clever>
cocreature: "$(out)" is the usuall hack
<cransom>
i'm not a home-manager user
<clever>
but i think builtins.placeholder is the new way to do it
<cocreature>
clever: thanks!
[0x4A6F] has joined #nixos
globin has joined #nixos
orivej has joined #nixos
<gchristensen>
,locate fsutil
<{^_^}>
Found in packages: salt, wineFull, gdrivefs, wineWowPackages.full
<gchristensen>
oops
[0x4A6F]1 has joined #nixos
LysergicDreams has quit [Ping timeout: 252 seconds]
<dhess>
Hmm... I'm trying that but on the way back in (nix->json->nix) Nix is complaining that it's not a path. I assume it thinks it's a string
<dhess>
yeahhhhhh cool
<dhess>
clever: thanks!
<dhess>
Hmm I wonder if it needs to be an absolute path
<clever>
nix turns it into an absolute path automatically
<dhess>
ok. That's a problem in my case.
<dhess>
I lied, this isn't nix->json->nix, it's Dhall->json->nix :)
aleph- has joined #nixos
<dhess>
and Dhall can't represent paths as literals. It wants to import their contents
tnks has quit [Ping timeout: 252 seconds]
<dhess>
which works fine in many cases, but there are some places in Nixpkgs/NixOS where you have to provide a path (no option to represent it as the contents)
<dhess>
such as `sslCertificate` in the Nginx vhost submodule
<wpcarro>
Does anyone have any recommendations for Wifi clients? I keep just editing my /etc/wpa_supplicant.conf file, but this lifestyle is getting old fast...
<{^_^}>
[nixpkgs] @globin pushed 4 commits to release-18.09: https://git.io/fxW8a
<wpcarro>
I don't have a desktop environment; just using i3. I'm open to suggestions though
<Synthetica>
Can I mount it with mount /dev/nvme... or should I mount it by-uuid?
<clever>
either way works
joehh has quit [Ping timeout: 252 seconds]
aanderse has joined #nixos
<Synthetica>
Okay, that seems to have worked...
<Synthetica>
clever +1
<clever>
Synthetica: try "clever++" instead
<aanderse>
i'm working on a systemd service preStart section which is run as root. i'm trying to run a command which connects to a mysql database using user configured credentials. in the case the user specified socket authentication the command doesn't work, which makes sense as it is being run as root. what is the proper way to run a command or two from this preStart as the specified user?
<Synthetica>
clever++
<{^_^}>
clever's karma got increased to 29
<Synthetica>
:)
<clever>
aanderse: ive seen a few packages using su to change to a given user
<Synthetica>
(It explains sooo much, I couldn't figure out why things stopped working after reboots 😅)
<{^_^}>
[nixpkgs] @gebner pushed commit from @erictapen to release-18.09 « ja2-stracciatella: fix build due to #47709 »: https://git.io/fxWBE
<{^_^}>
[nixos-homepage] @rbvermaa merged pull request #241 → Make it more obvious that nixos options in the search results are clickable → https://git.io/fA1Yc
<{^_^}>
[nixos-homepage] @rbvermaa pushed 2 commits to master: https://git.io/fxW0e
<wpcarro>
Hi. I'm trying to change my SDDM theme. I see in the sddm.nix file on nixpkgs, themes are locates at /run/current-system/sw/share/sddm/themes. Looks like that directory doesn't exist on my system even though I have sddm enabled. How are themes supposed to be installed?
<catern>
hey #nixos, I'm enumerating the *disadvantages* of deploying Nix onto Debian via nix-user-chroot (or the "nix --store ~/mynix run bash", would that work?) vs deploying Nix as a multi-user setup with nix-daemon
<catern>
so far I've got: setuid binaries don't work, including ones that can be fairly important like sudo; have to run all your stuff inside the chroot which is overhead for users; sharing between multiple users doesn't work; maintenance/support is harder if something goes wrong since you don't see the state of the system globally
<{^_^}>
[nixpkgs] @xeji pushed commit from @anpryl to master « goa: 1.0.0 -> 1.4.0 (#48147) »: https://git.io/fxWa2
<catern>
symphorien: yeah but you still couldn't share build artifacts
<symphorien>
Why ?
<catern>
symphorien: because you wouldn't be able to trust that they weren't messed with out-of-band
<catern>
like, if the store is just owned by an individual user they can mess with it however they want
<clever>
catern: nix stores the hash of every build product in db.sqlite
<clever>
and it will error out if somebody has messed with things
<catern>
clever: doesn't matter, you could modify that too
<clever>
yeah, thats still a problem
<symphorien>
Well like in a regular single user install
<aleph->
So I posted earlier about an error with the aws package, so when I run "aws" with any sub command, I get this error: "sanity-check: "": file is missing. (Format: AccessKeyID\nSecretAccessKey\n)"
<catern>
you need signing, I guess? does artifact-sharing work fine?
<aleph->
I guess for certain packages I can just get around with using pip. Ugh
<catern>
does artifact-sharing work fine with multi-user installs normally*
<catern>
but I guess it doesn't because there's no guarantee that someone doesn't have root on a host
<catern>
so you do need signing
<{^_^}>
[nixpkgs] @xeji merged pull request #48176 → dia: fix on darwin → https://git.io/fxWgW
<{^_^}>
[nixpkgs] @xeji pushed commit from @veprbl to master « dia: fix on darwin (#48176) »: https://git.io/fxWaN
<{^_^}>
[nixpkgs] @xeji pushed commit from @veprbl to release-18.09 « dia: fix on darwin (#48176) »: https://git.io/fxWaj
aminechikhaoui has joined #nixos
<o1lo01ol1o>
so I have a hydra server up and running on nixos. I'd like to be able to deploy to a staging server after a certain job involving git finishes but I'm not sure the best way to proceed. Is there a good way to handle deployment in this case?
<rfold>
Is it possible for a build to connect using TCP to a server running on the machine outside of the build? I'm getting connection refused.
<gchristensen>
no
<rfold>
I'm running tests as part of a build. The tests submit requests to this server. The server runs nix-build in response to the requests. Because recursive Nix doesn't work, I cannot run the server inside the build.
<Synthetica>
Speaking about which: is there a recommended way to use a different (older) version of nixpkgs? I currently have a few `git subtree`s in my /etc/nixos folder, but to quote Raymond Hettinger: "there must be a better way!"
<aleph->
Trying to get the micro editor patched and working.
<clever>
Synthetica: you can fetch a specific revision with builtins.fetchTarball
emacsomancer has quit [Quit: WeeChat 2.2]
viric has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @costrouc opened pull request #48183 → pythonPackages.atomman: init at 1.2.3 → https://git.io/fxWKM
<aleph->
Cool, bitlbee discord plugin is there.
<clever>
Synthetica: yeah, but every time you nixos-rebuild it will re-download the latest master, and update those things
<clever>
Synthetica: and master isnt always built by hydra, or tested
<aleph->
Hey since I'm feeling lazy as shite, anybody want some cash to package a binary or three?
<clever>
Synthetica: so it may be better to pick a rev that you know is stable, and has the thing you want
<Synthetica>
I have a few revs of things that are broken in master/current unstable, so it's good to know that it's possible (and master is nice for when you want to use a pr that hasn't appeared in an unstable yet)
<clever>
Synthetica: recently, i had to update nix on a random box, but didnt want to update the channel because of past latex problems
<aleph->
Okay so here's a better question, looking to install weechat and as I'm searching the git repo for it, I notice that is has a scripts sub dir with .nix files per script/plugin. So my question is how would I install those via nix?
rfold has quit [Quit: leaving]
<aleph->
Would it be like accessing an attribute of the weechat package?
<aleph->
And nevermind, I see the manual has a section on it.
<philippD>
Is someone on here who is familiar with the upgrade process for texlive packages in nixpkgs?
<clever>
this commit, that claims to be about php stuff, also added the 4.0 version of wxPython
<clever>
but it added no references to the 4.0, so it was useless
<ghostyy>
ahhhhh
<clever>
that feels like somebody got sloppy with `git add --all`
<Synthetica>
Compiling...
<aleph->
clever: Is there a good guide on building a core/defeault nix configuration from the ground up?
MrGhetto has joined #nixos
<cransom>
you get a bare bones with nixos-generate-config. what you do with it beyond that is up to you. you can read `man configuration.nix` for inspiration
<o1lo01ol1o>
ok, so copying the /root/.ssh/ to /var/lib/hydra/.ssh/ hasn't changed the output of the hydra jobset: it still can't log into gitlab. do I need to restart the server?
<clever>
o1lo01ol1o: the key must also be owned by the hydra user, or it wont have permission to read the keys
<o1lo01ol1o>
ah, of course.
emacsomancer has joined #nixos
<judson>
I'm back to trying to build a slightly older version of Ruby. Chopping up the ruby/default.nix in a ~/.config/nixpkgs/overlays file. It looks like it just build from source, but now it says opening file '/nix/store/8qjq4vpg83ypxiyb5q4bib2ysgc7mj31-ruby-2.1.10/default.nix': No such file or directory "while evaluating makeOverridable"
<Church->
Hmm, so clever in my configuration.nix could I do something like users.users.aleph.packages { import path/to/packages.nix};
<clever>
judson: the files in your overlays must return a set of packages, if you toss a normal default.nix in there, it will likely malfunction
<Church->
So that way I can just install my user specific packages via config.nix
<judson>
No, I'm pretty sure I'm returning packages now.
<clever>
Church-: users.users.aleph.packages = import path/to/packages.nix; maybe, depends on what packages.nix contains
<judson>
But lemme doublecheck that
<o1lo01ol1o>
clever: I've chown'd * but no dice: -rw------- 1 hydra root 3401 Oct 10 23:06 id_rsa
<Church->
clever: Was planning on doing several import lines. One for weechat.nix, python.nix, etc, etc.
<clever>
o1lo01ol1o: `sudo -u hydra -i` then try to `ssh git@gitlab.com` i think, what happens?
<Church->
So I can have a sturdy core and everything else in my user profile.
<clever>
Church-: then you want users.users.aleph.packages = [ (import ./pkg1.nix) (import ./pkg2.nix) ];
<Church->
While not mixing and matching between nixos-rebuild and nix-env
<Church->
Yeah perfect.
<Church->
Thanks!
<judson>
clever, HA! You were sort of right. I've got a double callPackage...
<clever>
judson: ah, so its building the entire package, then looking for a default.nix in its result, to build
<o1lo01ol1o>
clever: i'm able to connect with the hydra user.
<clever>
o1lo01ol1o: what is the check interval in hydra?
<o1lo01ol1o>
0
<clever>
o1lo01ol1o: then hydra wont check until you force an eval
<judson>
Yeah, exactly.
<o1lo01ol1o>
clever: ok! now we're getting somewhere: command `git rev-parse master' failed with exit status 32768 ...
<clever>
o1lo01ol1o: does the project contain any submodules?
<o1lo01ol1o>
I don't have a master branch and it does contain submodules
<clever>
o1lo01ol1o: the current version of hydra breaks when any inputs contain submodules
<o1lo01ol1o>
can I make a gitClone.nix expression that manually git clone --recursive?
<clever>
you could also just use modules, create a new file, that looks similar to configuration.nix, and does users.users.aleph.packages = [ pkgs.foo ]; and then just imports = [ ./newfile.nix ];
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<Church->
... christ this really ain't for newbies.
<clever>
many ways to get it done
<Church->
And this ain't my first time around the block either
<gchristensen>
clever: you might be providing too much info / too many options :)
<clever>
maybe, lol
<aleph->
Yeah just a few mate.
<aleph->
:P
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<aleph->
clever: So with that inherit packages one, why exactly would I do inherit packages? Why couldn't I do something like - pkgs: with pkgs { pkgs.[ "python36" "micro" "etc" ] };
<aleph->
Man having a TC complete language for package management can be kinda annoying lol
<clever>
{ pkgs.[ "python36" "micro" "etc" ] } is not valid nix
<aleph->
Yeah I rather figured.
<clever>
and due to the `with pkgs;` nearby, you can just do [ python36 micro etc ]
<aleph->
Oh, so pkgs: with pkgs; { [] }; works?
<clever>
{ [] } isnt valid either
<gchristensen>
you don't need / want the { .... } part
<gchristensen>
just with pkgs; [ ]
<clever>
yeah
<aleph->
Ah, how come? Cleanness?
<gchristensen>
it isn't valid Nix.
<clever>
{ is the start of a set, which must contain key=value; pairs
<gchristensen>
{ ... } is an attrset, it sounds like you're expecting it to define a scope or something :)
<aleph->
Oh, doy doy doy. I need to go re-read the nix grammar then.
<aleph->
Okay so think I'm still being dumb, - pkgs: with pkgs; [ "python36" "micro" ] when placed in common-packages.nix and run via nix-env -if common-packages.nix as a test fails out with "error: expression does not evaluate to a derivation (or a set or list of those)
<clever>
aleph-: that is a list of strings, not a list of packages
<aleph->
...
* aleph-
swears he's getting stupider by the minute.
<gchristensen>
just take a second and think a bit more carefully
<aleph->
So packages in that instance would be a non string enclosed string of characters deliminated by whitespace inside a set of brackets?
<samueldr>
of note: the language was made for this purpose; contrasted to tools like chef where strings are used to represent packages, in nix it's easy for them to be a first-class citizen
<gchristensen>
aleph-: you're thinking in terms of packages, but you should be thinking in terms of variables
<aleph->
Ah, that was... more obvious than I thought it was going to be. heh
<gchristensen>
> let pkgs = { a = "1"; b = "2"; }; in with pkgs; "${a} ${b}"
<{^_^}>
cannot coerce an integer to a string, at (string):197:50
<gchristensen>
oops...
<gchristensen>
infinisil: something is wrong with the bot: that works in a PM but not here
<clever>
those are strings...
<aleph->
So which would be valid if I put it under common.nix? (pkgs: with pkgs; []) or just remove the ( and ) because either way nix-env -if common.nix still throws an error about it not being a valid derivation. Do I need to have something like import <nixpkgs> (); up at the top?
<clever>
the pkgs: defines it to be a function, that accepts a set of packages
<clever>
nix-env doesnt provide that
<clever>
so you need another nix expression that does: let pkgs = import <nixpkgs> {}; in import ./common.nix pkgs