themistocle has quit [(Ping timeout: 258 seconds)]
steshaw has quit [(Ping timeout: 258 seconds)]
bitchecker has joined #nixos
CodingWithClass has joined #nixos
cnu- has joined #nixos
alphor has joined #nixos
nckx has joined #nixos
Bane^ has joined #nixos
sjourdois has joined #nixos
astronavt has quit [(Quit: Leaving...)]
astronavt has joined #nixos
steshaw has joined #nixos
themistocle has joined #nixos
<Acou_Bass>
andi-: i have a GPD Win, uses the same kernel as the Pocket (but I've not tried Nixos on it yet)
x1n4u has joined #nixos
<Acou_Bass>
but thats really awesome, that overlay someone linked - thats exactly the linux kernel i use (on another distro) so id expect it to work just as good on nixos assuming all the same settings were applied
Wieke[m] has joined #nixos
rummik has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
cybrian has joined #nixos
erasmas has quit [(Quit: leaving)]
jensens has quit [(Ping timeout: 250 seconds)]
ericbmerritt_ has quit [(Ping timeout: 258 seconds)]
philipcristiano has quit [(Ping timeout: 258 seconds)]
philipcristiano has joined #nixos
ericbmerritt_ has joined #nixos
erictapen has quit [(Ping timeout: 248 seconds)]
sary has quit [(Quit: leaving)]
sary has joined #nixos
ma27 has quit [(Ping timeout: 276 seconds)]
gerschtli has quit [(Ping timeout: 248 seconds)]
gerschtli has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
Lisanna has quit [(Ping timeout: 260 seconds)]
digitus has quit [(Quit: digitus)]
vandenoever has quit [(Quit: ䷴៚)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
dbmikus__ has joined #nixos
cnu- has quit [(Ping timeout: 255 seconds)]
cnu- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to staging: https://git.io/vbENr
<NixOS_GitHub>
nixpkgs/staging 62cd4f1 Will Dietz: clang_multi: fix incorrect leftover use of "callPackages"...
<samueldr>
Acou_Bass: not the same config, it's the "all yes" config that nixos uses
<samueldr>
it *should* give the same results, from what I've seen
<samueldr>
(with one or two tweaks since one of the patches in the repo stopped a module from being built as a module)
<samueldr>
the config shipping in the repo is built upon fedora's default config
<Acou_Bass>
ahh OK i didn't know that :P but still cool to see a nix overlay for it
<samueldr>
it *might* not build as-is, as they're often rebasing the patches
<Acou_Bass>
right
<samueldr>
that's why I previously shyed away from sharing
<samueldr>
the way I fix it, go to the repo, pick the most recent commit, fix sha256, generally it works, unless upstream upgraded the version
<Acou_Bass>
i built the kernel from git for a while on arch ( using the repo config) until i discovered there were prebuilt ones available,
<Acou_Bass>
never hit any issues building it aside from time wasted because the GPD Win isn't the fastest thing ever for compiling :D
<samueldr>
I know the pain
<samueldr>
--build-host for nixos is a godsend
<Acou_Bass>
oh yeah didn't think of that (i used distcc on arch but my desktop runs Nixos now so can't use that)
<samueldr>
(and the shared configs makes me save bandwidth)
<Acou_Bass>
would be interested in trying it at some point, but quite happy with arch for now ( despite it being Linux i still play games on it so having latest Mesa and stuff is really handy)
<clever>
Acou_Bass: for weak devices, i tend to use nixops to manage them
<clever>
push based deployments, rather then pull based
<Acou_Bass>
so what, it build it on your big machine then basically copies it to the small machine and deploys it? that's cool (I've never used nixops so that's interesting!)
<clever>
yep, exactly
<Acou_Bass>
sweet
<clever>
also, neither of those machines started out in any "sane" state
<clever>
the first one was gentoo, i installed nix with the curl script, then i used nix-build to build a copy of nixos within /nix/store/
<clever>
then i just forcibly ran the script to update the nixos bootloader!
<samueldr>
nice
<Acou_Bass>
hehe
<Acou_Bass>
can i cross-compile too? like could i build for an arm device using that?
<clever>
half of nixos broke, because of gentoo binaries and config
<clever>
it will need an arm build slave to do the building for it
<Acou_Bass>
ah, no cross compiling? :(
<clever>
or at least, something that can run un-modified arm binaries
<yegortimoshenko>
there is no super/self (or previous/final) distinction for config afaik... or is there?
Supersonic112 has quit [(Disconnected by services)]
Sonarpulse has quit [(Ping timeout: 268 seconds)]
Supersonic112_ has joined #nixos
kier has quit [(Ping timeout: 248 seconds)]
Supersonic112_ is now known as Supersonic112
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc force-pushed unstable-aarch64 from ab67fea to 08b8bc2: https://git.io/vSSlm
<NixOS_GitHub>
nixpkgs/unstable-aarch64 08b8bc2 Graham Christensen: Netboot: Add aarch64
NixOS_GitHub has left #nixos []
shachaf has joined #nixos
<yegortimoshenko>
in other words, is there a way to self-reference option, e.g. `nixos.option = config.nixos.option;`?
thc202 has quit [(Ping timeout: 248 seconds)]
globin has joined #nixos
hellrazo1 has joined #nixos
lambdamu has joined #nixos
ertesx has joined #nixos
<Ankhers>
Is there anyone around that can help me understand how Haskell and Nix work? Specifically the cabal2nix and hackage2nix tools?
hellrazor has quit [(Ping timeout: 240 seconds)]
orivej_ has quit [(Ping timeout: 255 seconds)]
lambdamu_ has quit [(Ping timeout: 248 seconds)]
ertes has quit [(Ping timeout: 240 seconds)]
ertesx is now known as ertes
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
<vaibhavsagar>
Ankhers: what is your question?
ivanivan has joined #nixos
<ivanivan>
I added a custom package to packageOverrides, but it's not actually overriding an existing package, but instead defining a personal package that wouldn't make sense in the upstream pkgs tree. Is there a "more correct" place to put such packages?
marusich has joined #nixos
nuncanada has quit [(Remote host closed the connection)]
nuncanada has joined #nixos
cybrian has joined #nixos
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<Ankhers>
vaibhavsagar: Basically, if my application wants to use package "foo" version 2.3.4, but one of my transitive dependencies also wants to use "foo" on a range of "foo >= 2.3 && < 3". How do the two tools coordinate to use the proper version of the dependency?
yegortimoshenko has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
<Ankhers>
Hopefully that makes some semblance of sense.
<vaibhavsagar>
Ankhers: Nix uses a Haskell package set based on a Stackage LTS
<vaibhavsagar>
if you use nixos-17.09 it's currently LTS-9.3
<Ankhers>
That makes sense. Any idea how any other language works for this?
<vaibhavsagar>
every language is different in its own way :)
<vaibhavsagar>
Nix just wraps the existing build tools and ecosystems
<Ankhers>
Yeah. I'm just trying to create something for the BEAM (Erlang) and I just don't really know what to do about this question.
<vaibhavsagar>
I have no idea how the Erlang infra works, but maybe your answer is there?
<Ankhers>
Thanks for that. I'm actually trying to help fix the tooling.
<vaibhavsagar>
oh, oops
drakonis has quit [(Ping timeout: 255 seconds)]
<vaibhavsagar>
I'm not aware of a Stackage equivalent for Erlang
<Ankhers>
There isn't one. But we have lock files that list all of the dependencies and their transitive dependencies for a project.
<Ankhers>
I'm wondering if we should skip the hex2nix tool and just create the rebar2nix tool.
<vaibhavsagar>
it sounds like you want something more like the way npm works then?
<Ankhers>
Could be. I will look into how that works. Thanks!
<vaibhavsagar>
ivanivan: packageOverrides sounds fine, or a custom overlay
astronavt has quit [(Remote host closed the connection)]
astronavt has joined #nixos
jereem1 has quit [(Quit: Connection closed for inactivity)]
babyflakes has quit [(Quit: Connection closed for inactivity)]
cybrian has quit [(Read error: Connection reset by peer)]
kier has joined #nixos
pie_ has quit [(Remote host closed the connection)]
<gchristensen>
my minimal netboot is "Filesystem size 295723.27 Kbytes (288.79 Mbytes)" anyone know a way I could reduce this by 30mb?
pie_ has joined #nixos
ssmike has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] manoj23 opened pull request #32584: davfs2: create user/group davfs2 if not specified in the configuration (master...davfs2-v3) https://git.io/vbuJp
NixOS_GitHub has left #nixos []
manoj has joined #nixos
<manoj>
hello
<manoj>
the default mediaDir for the pmount program is "/media/". Should it be created when we install the package? In my case, I need to manually create that folder.
cybrian has joined #nixos
marusich has joined #nixos
indika has quit [(Ping timeout: 258 seconds)]
indika has joined #nixos
dvim has quit [(Ping timeout: 258 seconds)]
dieggsy has joined #nixos
dvim has joined #nixos
<disasm>
ipv6 works now :)
babyflakes has joined #nixos
<disasm>
so you need to specify it on the interface, and if forwarding is allowed you need to set it to 2, setting to 1, true, etc... won't work
<disasm>
some would say this could be a security issue blindly accepting routes, but other option is to statically add it since dhcpv6 doesn't do the things v4 does like telling you your default gateway
babs_ has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
<disasm>
so if anyone has a computer they want to to make a router with at least two physical interfaces (or even 1 if you have a managed switch that can trunk vlans) https://github.com/disassembler/network should be a fully working example for running nixos on a router with ipv6 and ipv4 support on any ISP that does dhcpv4/dhcpv6 with prefix delegation.
cybrian has joined #nixos
slack1256 has joined #nixos
<gchristensen>
disasm: can we do this together sometime, maybe this weekend?
<samueldr>
ooh, coreboot
marusich has quit [(Ping timeout: 276 seconds)]
marusich has joined #nixos
sary_ has joined #nixos
sary has quit [(Ping timeout: 240 seconds)]
yorick has quit [(Ping timeout: 248 seconds)]
<pierron_>
garbas: Tuesday sounds fine for me, but I might have a last minute team dinner.
<disasm>
gchristensen: sure!
<grahamc>
Cool :) I’m late for bed tonight. I got another Type 2A from Packet.net booted in to NixOS tonight. For giving out access to people in order to get our support first class!
cybrian has quit [(Read error: Connection reset by peer)]
<disasm>
me too, lol, heading that way myself
ylwghst has quit [(Ping timeout: 240 seconds)]
marusich has quit [(Ping timeout: 240 seconds)]
dieggsy has quit [(Remote host closed the connection)]
steshaw has quit [(Quit: Connection closed for inactivity)]
proteusguy has quit [(Ping timeout: 240 seconds)]
sary_ has quit [(Ping timeout: 248 seconds)]
marusich has joined #nixos
sigmundv_ has quit [(Ping timeout: 240 seconds)]
slack1256 has quit [(Remote host closed the connection)]
cybrian has joined #nixos
whatnoise has joined #nixos
mk-fg has quit [(Ping timeout: 246 seconds)]
hamishmack has quit [(Quit: hamishmack)]
mizu_no_oto has joined #nixos
mk-fg has joined #nixos
mk-fg has quit [(Changing host)]
mk-fg has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
zzamboni has joined #nixos
sary has joined #nixos
whatnoise has quit [(Ping timeout: 260 seconds)]
astronavt has quit [(Quit: Leaving...)]
<catern>
here's an example of something exciting you could do with unsandboxed builders
<catern>
you could pull source code from a local repository trivially
dywedir has joined #nixos
<catern>
and avoid pulling in random other files, by only pulling in git-tracked files
dywedir has quit [(Remote host closed the connection)]
dywedir has joined #nixos
marusich has quit [(Ping timeout: 246 seconds)]
zzamboni has quit [(Quit: Leaving.)]
marusich has joined #nixos
ma27 has joined #nixos
Guanin has quit [(Ping timeout: 250 seconds)]
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
marusich has quit [(Ping timeout: 255 seconds)]
Guanin has joined #nixos
marusich has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
ma27 has quit [(Ping timeout: 240 seconds)]
babyflakes has quit [(Quit: Connection closed for inactivity)]
<Fare>
how do I use python packages interactively in nixos?
<Fare>
say I want to use pandas
<Fare>
import pandas as pd ===> ModuleNotFoundError: No module named 'pandas'
<Fare>
even though I did nix-env -iA nixos.python36Packages.pandas
<srhb>
You can usually avoid the confusion about which python is in scope by not using nix-env
<srhb>
nix-shell -p 'python.withPackages (ps: with ps; [ pandas ])'
<pie_>
any recommendations on how to get the python bindings for this? https://github.com/Z3Prover/z3 scroll down to the "Python" section at the bottom
ilyaigpetrov has joined #nixos
<srhb>
Fare: And add whatever you want to list to construct a more complex python environment in your shell.
marusich has quit [(Ping timeout: 255 seconds)]
proteusguy has joined #nixos
reinzelmann has joined #nixos
asuryawanshi has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
kreetx has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
proteusguy has quit [(Ping timeout: 246 seconds)]
leat has quit [(Quit: WeeChat 1.9.1)]
shanemikel has joined #nixos
oida has quit [(Ping timeout: 246 seconds)]
Oida has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 248 seconds)]
Mateon3 is now known as Mateon1
justanotheruser has quit [(Ping timeout: 246 seconds)]
asuryawanshi has quit [(Ping timeout: 268 seconds)]
<sphalerite>
Shouldn't just setting the default route to fe80::1%enpXYZ (where the interface is the gateway to the internet) do just as well?
<sphalerite>
Ah right and he only sets it on enp1s0
<sphalerite>
I don't really see how that would be a security issue
<dhess>
Only if your ISP uses that link-local address for routing, which isn't a requirement.
<dhess>
It's not really a security issue as long as you trust your ISP... which you pretty much have no choice about :)
<dhess>
not when it comes to routing, anyway.
<sphalerite>
Are you sure it's not required?
<dhess>
It is not required.
<sphalerite>
Huh.
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
<aw>
sphalerite, dhess: While you're at discussing IPv6 routing anyways, might I throw in a question?
<dhess>
aw: I'm no expert, but you can try me.
<aw>
I have a vServer connected to native IPv6 through the ISP. I have disabled DHCPv6 (I think) and set defaultGateway6 to fe80::1%ens3 but I seem to be too dumb to disable RA…
<aw>
IIRC I already tried setting net.ipv6.conf.all.accept_ra=0 but I got assigned two additional routes and dmesg is spilled with »ICMPv6: RA: ndisc_router_discovery failed to add default route«, which is quite annoying…
<aw>
Wrong knob?
<dhess>
aw: oh yeah, I had similar issues I think. Let me check.
<dhess>
it's been awhile since I had to deal with that so I'm not sure I can find it, but give me a minute.
<aw>
Sure. Anything that helps is welcome. ;) If you don't find it it doesn't matter either (IPv6 actually works but I wanted to get rid of this messages some time now ;)
periklis has quit [(Ping timeout: 255 seconds)]
<sphalerite>
I don't really know either.
<sphalerite>
Why is RA actually handled in the kernel, I wonder?
<dhess>
aw: right, I believe I had to also disable .default.accept_ra
<aw>
dhess: Ah, okay. I never actually managed to grasp the difference between all and default…
<dhess>
aw: me neither :) I just did that in anger and I think it did the trick. It's been awhile though so again, I might be not remembering correctly.
<dhess>
Either Debian/Ubuntu or the kernel at the time did not behave very well when you tried to disable IPv6 auto* stuff.
<aw>
dhess: I'm going to have a look at dmesg for the next 10 minutes and tell you whether it helped. For the record. ;)
<dhess>
aw: I dunno if it'll help with the log messages, but I think it prevented any routes from being added, in any case.
<dhess>
aw: you might also want to disable it on the interface itself. Oh and I think this maybe had something to do with when the net.ipv6.conf.* settings were applied during the boot process
<dhess>
because if they get applied *after* the kernel accepts a route advertisement, it's probably too late.
<dhess>
In Debian I think I resorted to setting accept_ra to 0 in a pre-up script for the NIC in questino.
<dhess>
question.
yrashk has quit [(Ping timeout: 258 seconds)]
bitonic has quit [(Ping timeout: 258 seconds)]
<dhess>
but NixOS doesn't have that concept :( Actually I wanted to ask about that when some of the core devs were around. It would be nice to have pre-up/post-up and pre-down/post-down per-interface networking hooks.
rizary has quit [(Ping timeout: 258 seconds)]
yrashk has joined #nixos
bitonic has joined #nixos
mkoenig has joined #nixos
civodul has joined #nixos
rizary has joined #nixos
Supersonic112 has quit [(Ping timeout: 240 seconds)]
jensens has joined #nixos
periklis has joined #nixos
orivej has joined #nixos
<aw>
dhess: Meh, messages still appear.
<aw>
dhess: I didn't try enabling at boot time + rebooting, though. Perhaps there's something stale™.
edofic has quit [(Ping timeout: 258 seconds)]
<aw>
Ah, and I didn't actually turn the other knobs (autoconf et al).
Supersonic112 has joined #nixos
edofic has joined #nixos
<dhess>
aw: are you running NetworkManager on that host?
<Fare>
sphalerite, wow, not just nixpkgs but nixos itself? Which model chromebook was it?
<aw>
dhess: No, purely static configuration through configuration.nix
<aw>
dhess: Something™ has done the trick, though. No message in the last 7 minutes.
<dhess>
oh that's good to hear :)
<Fare>
sphalerite: care to share the relevant details of your configuration.nix ?
<aw>
. o O ( Note to future self: Do one thing after another to actually know what solved the problem. )
<joko>
How one could build a package manually? I have forgotten... As in typing buildPhase etc. in the shell
<joko>
Just nix-shell instead of nix-build :P
<aw>
joko: nix-shell -p '<nixpkgs>' -A ... ?
<aw>
joko: man nix-shell | less +/EXAMPLES
shanemikel has joined #nixos
<joko>
aw: ditto, thanks
coot_ has joined #nixos
tomster has joined #nixos
pie_ has quit [(Ping timeout: 268 seconds)]
<sphalerite>
Fare: C201. There aren't any particularly special bits. I haven't got it booting with a nixpkgs-built kernel though, I still build the kernel from a nix-shell and install it manually
<sphalerite>
Still need to do a writeup on how to reproduce it though
tomster has quit [(Ping timeout: 260 seconds)]
shanemikel has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
tomster has joined #nixos
<aw>
dhess: It seems ens3.accept_ra wins over {all,default}.accept_ra Oo
<tomster>
manveru: mornin...
phdoerfler has joined #nixos
<aw>
dhess: With this my shallow understanding of the difference between default and all completely ceases to be…
<aw>
Everything without reboot, though. Maybe it's a matter of activation time. Dunno.
asuryawanshi has joined #nixos
<tomster>
manveru: did you see my feedback from yesterday? unfortunately the chefdk pkg is still not working.... do you think you will be able to continue to investigate?
aminechikhaoui has joined #nixos
shanemikel has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ssmike has joined #nixos
asuryawanshi has joined #nixos
shanemikel has quit [(Client Quit)]
i-am-the-slime has joined #nixos
Itkovian has joined #nixos
thc202 has joined #nixos
<sphalerite>
Calling upon the zfs wizards again: If I don't have native zfs encryption yet, what's the best option for storing snapshots on an untrusted machine (which has zfs support)? Just storing encrypted zfs send streams in files on the untrusted machine?
<sphalerite>
or is there a nicer way?
periklis has quit [(Ping timeout: 250 seconds)]
<sphalerite>
srhb: btw did you end up using systemd's bind mount options for that module you were writing?
<infinisil>
sphalerite: Whew, not idea, maybe #zfsonlinux knows
<sphalerite>
oh yeah, of course
<rnhmjoj[m]>
are you aware of any way to have a self-referencing option in the nixos configuration without an infinite recursion? some fixed-point trick maybe?
<rnhmjoj[m]>
I mean something like `environment.systemPackages = libs.subtractLists [ nano ] config.environment.systemPackages`
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
sigmundv_ has joined #nixos
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
<infinisil>
rnhmjoj[m]: It's how nix works, things have dependencies and nix makes it so the dependencies are available. If you want to remove dependencies you need to do that where they come from. This is also how you'd go about when you see gcc in the closure of some package (which is not something you want)
Itkovian has joined #nixos
<rnhmjoj[m]>
infinisil: i know, that's what I suggested but tracking dependencies can be time consuming
<infinisil>
rnhmjoj[m]: Actually, you might be able to use `apply` of the option type
illinit has joined #nixos
orivej has quit [(Ping timeout: 250 seconds)]
orivej has joined #nixos
pie_ has joined #nixos
<infinisil>
rnhmjoj[m]: When declaring an option, you can do something like `mkOption { type = types.str; apply = f: stripPrefix "foo" f; ... }`. This will apply the stripping function at the very end when the config has been evaluated, so it won't cause recursion
<rnhmjoj[m]>
ah, didn't know about this one
thblt has joined #nixos
dan_b has quit [(Ping timeout: 260 seconds)]
<infinisil>
but you'll have to directly modify nixpkgs for this
dan_b has joined #nixos
tmaekawa has joined #nixos
<rnhmjoj[m]>
infinisil: uhm, so you can't change the type of an option without patching the source
<infinisil>
nope, options themselves can't be changed with other options
<infinisil>
I think
i-am-the-slime has quit [(Ping timeout: 240 seconds)]
<Mic92>
pmeunier: I see some room for improvement in carnix itself to produce more readable output, this can part of future versions of carnix, since this pr is already big.
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
__Sander__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/vbuat
<NixOS_GitHub>
nix/master 2a8f09a Chris Martin: Add builtins.concatStringSep to the manual
<pmeunier>
Mic92: I just saw your changes, looks great to me.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra closed pull request #1722: Fix for builds with system libcurl < 7.30 (master...fix-for-older-libcurl) https://git.io/vbBXz
NixOS_GitHub has left #nixos []
pie_ has quit [(Ping timeout: 248 seconds)]
pie_ has joined #nixos
<pmeunier>
Mic92: about the output of carnix, I guess this needs more discussion. The output used to be pretty readable, and became more complicated over time, with new features and requests.
<Mic92>
pmeunier: I am going to squash some commits and push them to master
<pmeunier>
Mic92: \o/
erictapen has joined #nixos
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
shanemikel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vbuVV
<toogley>
and the build command is: nix-build -A neomutt --check ~/src/nixpkgs
<toogley>
my target is to add _for testing purposes_ nullmailer as a required dependency
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fmthoma opened pull request #32592: gnome3.at-spi2-core: Set environment variable `NO_AT_BRIDGE=1` if disabled (master...fix-a11y-warnings) https://git.io/vbuKh
NixOS_GitHub has left #nixos []
isHavvy has joined #nixos
sary has quit [(Quit: leaving)]
sary has joined #nixos
Havvy has quit [(Ping timeout: 240 seconds)]
linarcx has quit [(Remote host closed the connection)]
aarvar has quit [(Ping timeout: 268 seconds)]
freusque has joined #nixos
tmaekawa has quit [(Ping timeout: 246 seconds)]
JimBob has quit [(Quit: Page closed)]
<sphalerite>
toogley: does nix-build ~/src/nixpkgs -A nullmailer work?
<sphalerite>
(also, I'm guessing nullmailer is a run-time dependency. As such it should probably be in buildInputs, not nativeBuildInputs
<toogley>
sphalerite: oh, yeah. i meant buildInputs and not nativeBuldInputs. nix-build ~/src/nixpkgs -A nullmailer works.
pie_ has quit [(Ping timeout: 255 seconds)]
<sphalerite>
toogley: does the neomutt build work after that?
<toogley>
nope. error: some outputs of ‘/nix/store/15dgafgaafrzj987m0ghvf3y56484nfy-neomutt-20171027.drv’ are not valid, so checking is not possible
<gchristensen>
sounds like you used --check
<sphalerite>
and without the nullmailer input it's fine?
<sphalerite>
oh wait some OUTPUTs
<sphalerite>
yeah you need to get rid of --check
<gchristensen>
--check only works if you built it before
<sphalerite>
you can't check whether it's deterministic if you don't already have something to compare it to
ssmike has quit [(Remote host closed the connection)]
<toogley>
aah, makes sense
<LnL>
using --option build-repeat 2 will build it multiple times
ssmike has joined #nixos
<toogley>
LnL: thanks. however, i just noticed that --check doesn't make sense here, because neomtut isn't deterministic.
<tomster>
manveru: FTR in your chefdk branch kitchen and knife both don't work (are not found) eventhough their gems are listed in the gemfile and in gemset.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vbuP6
<tomster>
so all in all it's actually a regression :(
pie_ has joined #nixos
<tomster>
chefdk and nixos really don't want to play together. my problem is that over at chefdk nobody has ever heard of nixos and they only explicitly support maxos/ubuntu/redhat/windows with their custom installer
<tomster>
and in the nixos world nobody seems to be using chef at all...
<gchristensen>
I used chef on nixos before chefdk was a thing
<gchristensen>
it wasn't so bad then, but it was a while ago
<tomster>
gchristensen: once it's installed chef isn't that bad
<tomster>
particularly inspec is really nice
<tomster>
i can see myself using it to test nixos deployments in the future :)
shanemikel has joined #nixos
<gchristensen>
oh yeah, I had an inspec branch which was starting to support nixos
<sphalerite>
I'd say that is a reasonable attitude to have. If you adopt a not-very-widely-used distro, especially one like nixos which breaks common assumptions, you just sort of have to deal with upstreams not caring about your niche application
<tomster>
gchristensen: for real? interesting!
shanemikel has quit [(Client Quit)]
<sphalerite>
heh, inspec says "Any system, any technology, any app."
confused-with-bo has joined #nixos
freusque has quit [(Ping timeout: 250 seconds)]
<gchristensen>
* as long as it is FHS Debian-based or Redhat-based ;)
<confused-with-bo>
Hello everyone! I'm having some trouble getting boot (http://boot-clj.com) to run a Clojure script under nix, and was hoping you could help me. I'm sure there's something simple I'm misunderstanding.
<tomster>
gchristensen: yeah, that seems to be the prevalent underlying assumption
<tomster>
that's one thing i'm used to already coming from FreeBSD
fre has joined #nixos
<tomster>
oh great, now i'm trying to use chefdk inside a vagrant machine and i get the following error when running `vagrant up`: The `lxc` package does not seem to be installed or `lxc-create` is not accessible on the PATH.
<confused-with-bo>
(sorry, collecting necessary info and demo ...)
<gchristensen>
the other thing tomster is “It is difficult to get a man to understand something, when his salary depends on his not understanding it.”― Upton Sinclair
<tomster>
can anybody give me pointers here, what i need to enable in my configure.nix to get lxc running?
<tomster>
gchristensen: yes, that quote has crossed my path before learning about nixos :)
<gchristensen>
oh? :)
<gchristensen>
tomster: how about using virtualbox instead for vagrant?
<sphalerite>
gchristensen: how does that apply?
<tomster>
gchristensen: so lxc is just the default for vagrant?
<tomster>
maybe that's a new thing...
<gchristensen>
sphalerite: chef is unneeded in a brave new world of functional linuxes
<sphalerite>
oh right, fair enough
dywedir has quit [(Remote host closed the connection)]
<sphalerite>
hey chef people, why doesn't chef run on the OS that hopes to make chef obsolete?
<confused-with-bo>
I figured it was some fundamental misunderstanding on my part like that, thanks.
<confused-with-bo>
(And my nick was supposed to be "confused-with-boot," but it got cut off, haha)
<confused-with-bo>
I was hoping to have a default.nix to make this part of a larger repo of examples that run
<gchristensen>
ok, cool :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbu17
<NixOS_GitHub>
nixpkgs/master 0d27df2 Tuomas Tynkkynen: build-support/vm: Use devtmpfs, not static device nodes...
NixOS_GitHub has left #nixos []
<confused-with-bo>
sphalerite: buildCommand = "boot ${./script.clj}"; gets the same error message
<confused-with-bo>
Exception in thread "main" java.io.IOException: No such file or directory
<sphalerite>
confused-with-bo: I wouldn't call it a fundamental misunderstanding :p it's a fairly common pitfall and it's far from being obvious ¯\\\_(ツ)_/¯
<sphalerite>
hm…
<tomster>
sphalerite: FTR virtualisation.lxc was *not* enabled afterall -> enabling it fixed the issue :)
<sphalerite>
hah :D
chpatrick has joined #nixos
<confused-with-bo>
And the #! line works fine with nix-shell -p boot --run ./script.clj
<sphalerite>
confused-with-bo: oh, apparently boot tries to donwload itself or something
<chpatrick>
do you have any advice for cherry-picking only what a given package needs from nixpkgs?
<sphalerite>
that's a no-no in nix derivations ;)
<sphalerite>
chpatrick: what do you mean?
<confused-with-bo>
Yeah, that sounds like boot :-) Really, I'm not tied to it; I was just hoping for a way to run executable Clojure script (not clojurescript; the full example has some dependencies)
zzamboni has joined #nixos
<chpatrick>
sphalerite: we have a stable in a submodule that's 17.09 + our stuff
<chpatrick>
I'd like to bump a particular package to nixpkgs/master
<chpatrick>
while bumping as little as possible else
<chpatrick>
*we have a stable nixpkgs
<sphalerite>
chpatrick: aah right. I'd try cherry-picking just whatever commit updates the software you need, and just see if that works
<sphalerite>
then incrementally get more if necessary
<chpatrick>
sphalerite: unfortunately it depends on some other packages, so it gets tedious very quickly
<chpatrick>
I was wondering if there's a tool or something
<nixo[m]>
How do I complie 32bit programs in a 64 bit nix shell?
<sphalerite>
chpatrick: not that I know of. Does it depend on that many packages in such recent versions?
<sphalerite>
Nicolò: with difficulty, since you need all the 32-bit libraries. Best to use a 32-bit shell
<sphalerite>
Nicolò: nix-shell '<nixpkgs>' --argstr system i686-linux
cybrian has quit [(Read error: Connection reset by peer)]
<Guanin>
I have a luks encrypted root (decrypt with password). In there is a keyfile that I need to decrypt /dev/sd[a-l]1, which are then assembled to an mdadm raid
griff_ has quit [(Ping timeout: 248 seconds)]
<Guanin>
of course, I could spawn a script with system.activationScripts on boot that iterates over those devices, but I was hoping to use a cleaner approach
<sphalerite>
Guanin: I can't remember exactly how it works but it might be helpful to know that luks devices are opened in alphabetical order
<Guanin>
but wait, I might be able to work around that :) I still have some space left on the lvm where / and swap live in, so I might be able to dd the keyfile on a logical volume :)
griff__ has quit [(Ping timeout: 268 seconds)]
<sphalerite>
yeah I have a setup I stole from gchristensen where I have a key partition which is unlocked by my passphrase, and then used to decrypt all the other luks volumes
griff__ has joined #nixos
cement has joined #nixos
<sphalerite>
Does anyone have a good way of building some package set and pushing it to a binary cache whenever a channel updates? I believe hydra would do the job, but would probably also be overkill
<sphalerite>
I'm thinking maybe a shell script triggered by a web hook gchristensen :D
griff_ has quit [(Ping timeout: 240 seconds)]
<gchristensen>
:)
<gchristensen>
I also offer rabbitmq mesages
griff__ has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
drakonis has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
<nixo[m]>
Linus: plain nix-shell <nixpkgs> --atgstr system I686-Linux refuses to evaluate (pseudo package yada yada). Without <nixpkgs> it enters the shell.nix but still miss stubs-32.h
cybrian has joined #nixos
<sphalerite>
Nicolò: I'm guessing you have an `import <nixpkgs> {}` somewhere in your expression? Try putting system = "i686-linux"; in the {}
coot_ has quit [(Quit: coot_)]
fendor has joined #nixos
cement has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<nixo[m]>
Linus: thanks, makes sense and works now
asuryawanshi has quit [(Ping timeout: 240 seconds)]
nahamu_ is now known as nahamu
magnetophon has quit [(Remote host closed the connection)]
magnetophon has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
szicari has joined #nixos
ylwghst has joined #nixos
dywedir has joined #nixos
orivej has quit [(Ping timeout: 255 seconds)]
Maxdamantus has quit [(Ping timeout: 246 seconds)]
orivej has joined #nixos
<disasm>
dhess: I tried that first, but it wasn't accepting routes until I specified the interface, not sure why. Anyways, only the external interface needs configured to accept routes.
<disasm>
sphalerite: the reason for 2 is because 1 will only accept routes if forwarding is disabled. On a router, by definition you need to forward some packets.
Maxdamantus has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
phdoerfler has quit [(Quit: Leaving.)]
orivej has quit [(Ping timeout: 240 seconds)]
justanotheruser has joined #nixos
<sphalerite>
gchristensen: yay!
phdoerfler has joined #nixos
<sphalerite>
disasm: ah right
orivej has joined #nixos
<Ankhers>
gleber_: ping
asdf_ has joined #nixos
<asdf_>
Hi all. Is there a way to have a dummy runCommand that doesn't produce build output but prints stuff to stdout?
<asdf_>
sphalerite: to have it run every time, is there a way to incorporate the `date` command?
cmiles74 has joined #nixos
<sphalerite>
asdf_: You could put date in, but it breaks reproducibility. And nix won't pick up on it
<sphalerite>
asdf_: if you want to rebuild to *make sure* it's reproducible, you can use --check when building it another time
<asdf_>
Thanks!
<sphalerite>
I thought reproducibility is what you're aiming for ;)
<asdf_>
Sorry, it is. The more complicated version fo what I'm trying to do: reproduce the build environment to execute a script with dependencies. I'd like to have the same dependencies every time, but really the only "build output" should be some printing
<asdf_>
I know I could go the ` nix-shell -p <dep> ` route, but I was hoping to have things tied up neatly with a default.nix file
Maxdamantus has quit [(Ping timeout: 260 seconds)]
<asdf_>
Thanks again, sphalerite
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to 1.11-maintenance: https://git.io/vbubG
<sphalerite>
that's pretty much exactly what nix-shell is for
<sphalerite>
you can pass an expression to nix-shell instead of -p to get its build environment
<sphalerite>
(which would satisfy your "tied up neatly with a default.nix file" want :)
<sphalerite>
so basically, take what you already have, but instead of `nix-build`ing it you nix-shell --run "stuff" it
<asdf_>
Sure, but then I have to remember to write the `--run "stuff"` portion on the command line, not specified in a file
<sphalerite>
If you want it more streamlined you could also put a shellHook in which performs the actual tasks, and then optionally exits
<asdf_>
Or in a separate script
sary has quit [(Ping timeout: 246 seconds)]
cybrian has joined #nixos
<sphalerite>
or put a function doStuff in the shellHook and do `nix-shell --run doStuff`
<sphalerite>
or make an actual doStuff script using writeScriptBin which you add to the shell derivation's buildInputs (which is nice because it doesn't depend on being invoked through nix-shell)
<fikovnik>
a newbie question - what is the difference between all the firefox packages (e.g., firefox, firefox-bin, firefox-wrapper, firefox-unwrapped, firefox-bin-unwrapped)?
vidbina has joined #nixos
<hiroshi>
Show package description
<hiroshi>
nix-env -qa --description '.*firefox.*'
<hiroshi>
that you have it fikovnik
jchia_1 has joined #nixos
thblt has joined #nixos
<fikovnik>
hiroshi: I did that - but that does not really decode it for me
<fikovnik>
I see the difference between source / bin builds
<fikovnik>
but don't get the -wrapped, -unwrapped or Wrapped
<jchia_1>
I'm a Arch Linux & Fedora user trying to learn Nix & NixOS by experimenting in a VM. On the download page https://nixos.org/nixos/download.html, there's the installation CDs and the VirtualBox appliance. Which will give me a better learning experience? Is there much value in going through the installation process?
<hiroshi>
wrapper --> is a firefox with plugins
<fikovnik>
jchia_1: I think it is useful to go through the whole process - the installation is actually really cool!
<Guest34783>
fikovnik: Wrapped versions include a wrapper shell script that sets environment variables correctly so it can find its plugins
Guest34783 has quit [(Changing host)]
Guest34783 has joined #nixos
Guest34783 is now known as TweyII
<fikovnik>
TweyII: would I ever wanted non wrapped version?
<TweyII>
fikovnik: It's a pretty common pattern in Nix
<TweyII>
Maybe for debugging?
<jchia_1>
fikovnik: OK, thanks for the advise.
<TweyII>
I think mostly -unwrapped is a dependency for the normal Firefox
MP2E has joined #nixos
<TweyII>
Presumably firefox = firefox-unwrapped + various Firefox plugins + firefoxWrapper + some install hooks
<fikovnik>
TweyII: ok, now it makes sense!
<fikovnik>
TweyII: thanks!
<TweyII>
NP
<fikovnik>
what is the difference between nixos.<package> and nixpkgs.<package>?
<samueldr>
copy the zip url, replace .zip by .tar.bz2
<hodapp>
TweyII: how?
<hodapp>
ohhhh
rogue_koder has joined #nixos
<hodapp>
cool, that's working
proteusguy has quit [(Ping timeout: 248 seconds)]
k0001 has joined #nixos
jb55 has joined #nixos
<TweyII>
I think https://github.com/$user/$repo/archive/$commitish.tar.gz works for any $commitish
<TweyII>
Or .zip or .bz2 or whatever you want
stranger__ has joined #nixos
<hodapp>
I was just a bit confused since none of the UI seemed to expose any of this
<samueldr>
it did in the past, but somehow it was remove (?!)
<hodapp>
and I was looking around for any similar examples in nixpkgs but wasn't having much luck
<samueldr>
if it's for nixpkgs, there is the fetchFromGithub helper that does it and handles the sometimes changing tar files
<samueldr>
the tar/zip files from github *can* change, as in, not the contents, but the container
orivej has quit [(Ping timeout: 240 seconds)]
<k0001>
Is there something like `builtins.fetchTarball` in `nixpkgs` taking a `sha256` argument? I know the `sha256` argument will be present in nix 1.12, but I'm not using that yet.
orivej has joined #nixos
aloiscochard has quit [(Quit: Connection closed for inactivity)]
digitus has joined #nixos
<hodapp>
samueldr: oh yeah, totally forgot about fetchFromGithub
civodul has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] xrvdg opened pull request #32605: hl1110 : init at 3.0.1-1 (master...hl1110) https://git.io/vbznF
NixOS_GitHub has left #nixos []
simendsjo has joined #nixos
ssmike has quit [(Read error: Connection reset by peer)]
erictapen has quit [(Ping timeout: 240 seconds)]
nico202 has quit [(Ping timeout: 246 seconds)]
ssmike has joined #nixos
<clever>
k0001: is this for fetching nixpkgs itself?
<k0001>
clever: no, just some tarball from the web.
erictapen has joined #nixos
<clever>
k0001: any reason you cant use a fetch function frin nixpkgs?
<hodapp>
I am trying to install https://github.com/raghakot/keras-resnet as another repo tells me I need to do "pip install --user --upgrade", but there is no setup.py, so buildPythonPackage is complaining... is there any example in nixpkgs of handling something like this?
<k0001>
clever: which one? `fetchurl` doesn't unpack the tarball automatically, I have to do it myself.
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever>
k0001: and what does fetchzip do?
<hodapp>
ugggggh, nevermind, there are two identically-named packages, I searched because no URL was provided, and I picked the wrong one
<clever>
k0001: fetchzip will automatically unpack, and i think it supports both tar and zip
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vbzCM
<NixOS_GitHub>
nixpkgs/master 5572de7 Bas van Dijk: containers: deny networkmanager from managing the ve-* and vb-* NICs...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee closed pull request #31888: containers: deny networkmanager from managing the ve-* and vb-* NICs (master...fix-containers-networkmanager) https://git.io/vF57x
NixOS_GitHub has left #nixos []
<k0001>
clever: BUT!!!! it's called fetchzip!! Oh my, thanks, I had no idea that function worked with tar files as well :(
<clever>
k0001: fetchzip just calls the normal unpackFile command that stdenv uses, it was originally meant for non-deterministic zip's, to hash the contents, rather then the zip itself
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vbzlH
<NixOS_GitHub>
nixpkgs/master 5eb4a83 Robert Helgesson: nixos containers: remove stray `,` from pattern...
NixOS_GitHub has left #nixos []
ma27 has quit [(Ping timeout: 255 seconds)]
<hodapp>
thanks, that is working so far
<evangeline>
Hi, when running VirtualBox, I'm gettting the following error: http://dpaste.com/1BJHXKH - it failed due to "libqxcb.so" library error, any ideas why this happens?
cybrian has joined #nixos
ma27 has joined #nixos
<goibhniu>
that sounds a bit familiar evangeline, is your system up-to-date?
tmaekawa has joined #nixos
<evangeline>
goibhniu: yeah, I've just updated everything in the system as well as in the user's profile ... the upgrade is the reason for the issue ...
<evangeline>
goibhniu: yeah I found that, althrough there is no exact solution there ... except to reinstall VirtualBox, which I did, but I get the same issue.
<clever>
evangeline: how did you install virtualbox?
<goibhniu>
sorry, I think you'll need to rollback for now
<clever>
and as i discovered yesterday, it can even break the entire desktop env, leaving you unable to login
<evangeline>
clever: ok, let me switch back to stable in nix-env , which should downgrade certain things.
vidbina has quit [(Ping timeout: 255 seconds)]
<clever>
due to this bug, i would advise that QT apps are only ever installed via systemPackages
<clever>
they may temporarily work in nix-env, but can break anything at the next update
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel opened pull request #32608: KDE Frameworks 5.41 (master...kde-frameworks-5.41) https://git.io/vbz4G
NixOS_GitHub has left #nixos []
oida has joined #nixos
<clever>
everything must be from the same nixpkgs, and nixos solves that in systemPackages
<evangeline>
clever: btw, does nix-env use nixpkgs channel by default? Is there a way to tell it to use a different channel for the purpose of the current command?
<clever>
evangeline: when you do `nix-env -iA nixos.wireshark` your telling it to use the channel called nixos
<clever>
without the -A, its not clear which channel it uses, and its much much much slower
<evangeline>
clever: how can I do "nix-env --upgrade '*'" from a certain channel ?
<clever>
dont think thats possible, but there is a better trick
<clever>
evangeline: using config.nix, you can create a set of packages, and then just nix-env -iA nixos.newstuff
<evangeline>
btw: I didn't have a nixos channel, only nixpkgs, but the "nix-env -iA nixos.wireshark" still worked ok, why's that?
<clever>
and nix will atomicly upgrade everything in that set
<clever>
it will also look in the channels root has
cybrian has quit [(Read error: Connection reset by peer)]
peacememories has joined #nixos
<evangeline>
clever: modifying the channel and doing "nix-env --upgrade '*'" does nothing now, how can I downgrade to the stable version=
<clever>
you either need to remove the channel you dont want, or switch to a config.nix like i pasted above
<evangeline>
I removed the channel I don't want with nix-channel --remove, but the upgrade command doesn't have any effect on the system ...
<evangeline>
Does that mean that everything is already up-to-date to the nixos channel (from root)?
<evangeline>
That way, the other channels are not causing this issue, but something else must be at play here?
ThatDocsLady has quit [(Ping timeout: 276 seconds)]
jars-matey has joined #nixos
<evangeline>
clever: also, after removing wireshark the qt-5.9 is not gone, which means some other packages are using it. Is there a way to query the system to tell me which packages are using this version of the qt library?
<clever>
evangeline: search for a QT thing with /qt, then follow the line up/left
<clever>
ignore any qt things depending on other qt things
<jars-matey>
Hi all! I'm new to nix, and I'm hoping for some help with an expression that builds on previous ones. I have expressions that build java jars as dependencies---call them dep0, dep1, etc. My final expression needs to build these, then include their names in a command, something like `java -cp dep0.jar dep1.jar main-thing-i-want-to-run`. How can I go about this? Thanks.
<evangeline>
clever: there is a bunch of qt stuff in there, not really sure what to look for: https://ufile.io/20c6z
<clever>
evangeline: i prefer gist for file storage, much simpler to download
<clever>
oh, and why is that 3mb, lol
zzamboni has joined #nixos
<clever>
evangeline: qgit is one of the things to blame
<clever>
evangeline: yubikey-personalization-gui
<clever>
evangeline: wpsoffice
k0001 has quit [(Quit: quit)]
<clever>
evangeline: calibre
<makefu>
when trying to build a python package i get a weird error with python3 but with python2 the package builds ( error: invalid command 'bdist_wheel' )
<makefu>
anybody else had a similar behavior?
<clever>
evangeline: smplayer
<evangeline>
clever: will upload with gist next time; I've installed the packages you mentioned, the qt-5.9 is still there.
<clever>
evangeline: try removing all of those (and optionally adding to systemPackages) then check qt-5.9 again
<clever>
upgrading them will keep the qt-5.9 in place, but may point it to a newer version
<clever>
which would just push the problem off into the future
fendor has quit [(Remote host closed the connection)]
<catern>
jars-matey: You write a builder script (probably bash) which uses java -cp $dep0 $dep1 main-thing
<jars-matey>
catern: thanks. And the values of $dep0, etc. are available to the builder script via statements like ` with dep0 ` ?
<catern>
jars-matey: yep
<catern>
though, is this a command that you want end users to be able to run? if that's the case then you could do this in some slightly more easy way
duncan^ has quit [(Quit: WeeChat 1.9.1)]
duncan^ has joined #nixos
<jars-matey>
I've been tinkering with ` shellHook = '' it() { <your command here> } '' `, and then doing ` nix-shell --run it `
ghostyy has quit [(Read error: Connection reset by peer)]
ghostyy has joined #nixos
erictapen has quit [(Ping timeout: 250 seconds)]
erictapen has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] srhb pushed 2 new commits to master: https://git.io/vbzEX
<bgamari>
indeed it looks like the console is passed
pie_ has quit [(Ping timeout: 240 seconds)]
<clever>
i'm not sure then
<bgamari>
strangely enough *now* I see output
<clever>
it may be delayed within the aws api's
<bgamari>
propagation delay perhaps?
<bgamari>
yeah
<chreekat>
Can nixops not provision swap on ec2? My first effort was to create a blockDeviceMapping with fsType = swap, then use the same device in the (logical) machine's swapDevices config. But I don't think fsType = swap had effect - the ebs volume has no formatting
reinzelmann has joined #nixos
<clever>
chreekat: there is a swapDevices option in nixos
<bgamari>
clever, it appears that nixos and c5 hardware don't like one another
<bgamari>
c4 hardware works
<clever>
bgamari: ah, a bug may need to be filed in nixpkgs or nixops
simendsjo has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<chreekat>
clever: but it had no effect, when I used it in the attempt described above
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] cransom opened pull request #32611: gitless: init at 0.8.5 (master...gitless) https://git.io/vbzap
NixOS_GitHub has left #nixos []
<clever>
chreekat: nixos will not try to format swap devices by default, there is another option for that
<NixOS_GitHub>
nixpkgs/master ae1ba39 Thomas Tuegel: taglib: 1.10 -> 1.11.1...
NixOS_GitHub has left #nixos []
<chreekat>
My question is mainly about nixops. Can it provision a swap-formatted volume?
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<clever>
i dont think nixops can format it as swap for you, nixos would need to do that at bootup
reinzelmann has quit [(Quit: Leaving)]
<joepie91>
chreekat: not a direct answer to your question, but nixops itself has no concept of 'setting up a system' - provisioning logic is left entirely up to the provider plugin you're using and what it supports, and the generic NixOps functionality simply assumes that the provider plugin has *somehow* produced a functioning NixOS system that it can apply rebuilds to
<joepie91>
chreekat: (this is why there are provider plugins that provision VMs, but why you can also point it at an *existing* NixOS system at any provider)
<joepie91>
chreekat: anyhow, deriving from that, anything you can do in a normal NixOS system rebuild, you can do with NixOps - additionally, on top of that you can do whatever your chosen provider/provisioning plugin supports :)
<joepie91>
chreekat: (NixOps actually isn't that complex, I recommend having a skim through the source code to get an idea of how it works)
laggy_wifi_ has quit [(Read error: Connection reset by peer)]
laggy_wifi has joined #nixos
<chreekat>
Of course there's some ambiguity in ownership: deployment.ec2.blockDeviceMapping.<device>.fsType *does* exist
<chreekat>
So is it up to nixops or nixos to run mkfs/mkswap? Sounds like the state of the art is that I need to tell nixos to run mkswap
cybrian has joined #nixos
afics has quit [(Remote host closed the connection)]
<gchristensen>
from there, it seems like it should "just work"
<bgamari>
gchristensen, thank you!
<ben>
Has anyone experimented with using EFS to back /nix/store? Does that make sense at all?
<gchristensen>
:)
<gchristensen>
ben: I wouldn't use EFS period, imo :)
<ben>
oh, ok
<gchristensen>
but in general there are issue about using nix daemon on a host with a shared /nix/store, like EFS would be
<gchristensen>
(my bias against EFS is that POSIX FS rules are very hard to make work across multiple instances, and I'd rather not tempt fate... that is all.)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vbzoB
<NixOS_GitHub>
nixpkgs/master dc6f3e3 John Wiegley: coqPackages_8_7.QuickChick: update to latest master
NixOS_GitHub has left #nixos []
<cransom>
i'll agree but just ont he grounds that you are crazy if you are ok with /bin/bash being on a networked file system.
<ben>
It probably spends most of the time in main memory, doesn't it
<ben>
Isn't just about everything on a networked file system on EC2?
<ben>
Like, EBS?
<gchristensen>
EBS isn't a networked file system, it is a networked block device
<srhb>
It's not the distance but the saharing.
<srhb>
...
<catern>
I wonder if there's a networked POSIX FS which is optimized for being read-only everywhere, and writable only in one place?
<gchristensen>
srhb++
* srhb
gives up typing for the day
<catern>
That would work for the nix-daemon
<ben>
I see
<catern>
Does anyone know of such a thing?
<chreekat>
clever: Setting swapDevices.*.size did in fact cause swap to get formatted and activated. Seems a bit roundabout
<chreekat>
Especially since I specify the size of the blockDevice as '2' in the machine description, while separately specifying the size of swap as '2048' in the logical machine description
ylwghst has quit [(Remote host closed the connection)]
peacememories has joined #nixos
ylwghst has joined #nixos
<clever>
chreekat: the .size option is meant to be used on swap files
<clever>
chreekat: if the swap (device|file) doesnt exist, it will create it, and try to use dd/fallocate/truncate to set the size
<clever>
then it will format it with mkswap
<clever>
ah, stat thinks the swap device is 0 bytes, so it tries to extend the file with fallocate, which fails
<clever>
so it thinks fallocate isnt supported, and tries to use dd
<clever>
which just writes to the "tail" end of the swap device
<clever>
as long as the size you specified is less then (or equal) to the block device, it will succeed
<clever>
line 197 tries to shrink the file, but stat wrongly claimed the original size was 0, so it never shrinks
<clever>
then 201 formats
marsam has joined #nixos
<clever>
chreekat: randomEncryption.enable would also be an option, that formats the swap partition every time, without trying to set the size
vidbina has quit [(Ping timeout: 240 seconds)]
ylwghst has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
<chreekat>
Well. I think I know what I want: Just like nixops plugins extends fileSystems, I'd like them to extend swapDevices, e.g. swapDevices.*.ec2.{size,label}. Does that sound reasonable?
<clever>
yeah
<chreekat>
Cool, maybe I can try to poke at that
cybrian has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbzPf
<NixOS_GitHub>
nixpkgs/staging c2b6795 Vladimír Čunát: Merge branch 'master' into staging
NixOS_GitHub has left #nixos []
cybrian has joined #nixos
marsam has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
ylwghst has quit [(Ping timeout: 248 seconds)]
ylwghst has joined #nixos
jtojnar has quit [(Quit: jtojnar)]
jtojnar has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
babyflakes has quit [(Quit: Connection closed for inactivity)]
isHavvy has joined #nixos
Isorkin_ has joined #nixos
capisce_ has joined #nixos
posco has quit [(Read error: Connection reset by peer)]
pikajude has quit [(Ping timeout: 255 seconds)]
metaphysician has quit [(Ping timeout: 248 seconds)]
wrl has joined #nixos
magnetop` has joined #nixos
aw has quit [(Ping timeout: 248 seconds)]
duncan^ has quit [(Ping timeout: 248 seconds)]
oida has quit [(Ping timeout: 248 seconds)]
leat has quit [(Ping timeout: 248 seconds)]
obadz has quit [(Ping timeout: 248 seconds)]
Enzime has quit [(Ping timeout: 248 seconds)]
DavidEGrayson has quit [(Ping timeout: 248 seconds)]
boxofrox has quit [(Ping timeout: 248 seconds)]
Isorkin has quit [(Ping timeout: 248 seconds)]
iMatejC has quit [(Ping timeout: 248 seconds)]
rsa has quit [(Ping timeout: 248 seconds)]
Sigma has quit [(Ping timeout: 248 seconds)]
otti has quit [(Ping timeout: 248 seconds)]
aw has joined #nixos
JameySharp[m] has quit [(Ping timeout: 248 seconds)]
moredread[m] has quit [(Ping timeout: 248 seconds)]
Elephant454[m] has quit [(Ping timeout: 248 seconds)]
indefini has quit [(Ping timeout: 248 seconds)]
florianjacob has quit [(Ping timeout: 248 seconds)]
bendlas has quit [(Ping timeout: 248 seconds)]
zzamboni1 has joined #nixos
rummik has quit [(Ping timeout: 255 seconds)]
jtojnar has quit [(Ping timeout: 248 seconds)]
ylwghst has quit [(Ping timeout: 248 seconds)]
colabeer has quit [(Ping timeout: 248 seconds)]
cement has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Ping timeout: 248 seconds)]
isHavvyGhosting has quit [(Ping timeout: 248 seconds)]
b has quit [(Ping timeout: 248 seconds)]
magnetophon has quit [(Ping timeout: 248 seconds)]
gerschtli has quit [(Ping timeout: 248 seconds)]
himmAllRight has quit [(Ping timeout: 248 seconds)]
_rvl has quit [(Ping timeout: 248 seconds)]
gfixler has quit [(Ping timeout: 248 seconds)]
joshie has quit [(Ping timeout: 248 seconds)]
pSub has quit [(Ping timeout: 248 seconds)]
heath has quit [(Ping timeout: 248 seconds)]
wrl_ has quit [(Ping timeout: 248 seconds)]
barrucadu has quit [(Ping timeout: 248 seconds)]
amfl has quit [(Ping timeout: 248 seconds)]
_cyril_ has quit [(Ping timeout: 248 seconds)]
layus has quit [(Ping timeout: 248 seconds)]
Vorpal has quit [(Ping timeout: 248 seconds)]
edef has quit [(Ping timeout: 248 seconds)]
capisce has quit [(Ping timeout: 248 seconds)]
nikivi has quit [(Ping timeout: 264 seconds)]
adva[m] has quit [(Ping timeout: 248 seconds)]
jtojnar has joined #nixos
corngood has quit [(Ping timeout: 248 seconds)]
berot3[m] has quit [(Ping timeout: 248 seconds)]
Pneumaticat has quit [(Ping timeout: 248 seconds)]
demyan[m] has quit [(Ping timeout: 248 seconds)]
itorres has quit [(Ping timeout: 248 seconds)]
spacekitteh[m] has quit [(Ping timeout: 248 seconds)]
Barnabas[m] has quit [(Ping timeout: 248 seconds)]
posco has joined #nixos
himmAllRight has joined #nixos
pSub has joined #nixos
pSub has quit [(Changing host)]
pSub has joined #nixos
cement has joined #nixos
CodingWithClass has quit [(Ping timeout: 240 seconds)]
joshie has joined #nixos
edef has joined #nixos
barrucadu has joined #nixos
barrucadu has quit [(Changing host)]
barrucadu has joined #nixos
b has joined #nixos
gerschtli has joined #nixos
marsam has quit [(Ping timeout: 255 seconds)]
duncan^ has joined #nixos
aarvar has joined #nixos
pikajude has joined #nixos
Enzime has joined #nixos
obadz has joined #nixos
nikivi has joined #nixos
CodingWithClass has joined #nixos
demyan[m] has joined #nixos
iMatejC has joined #nixos
_rvl has joined #nixos
amfl has joined #nixos
Vorpal has joined #nixos
Vorpal has quit [(Changing host)]
Vorpal has joined #nixos
layus has joined #nixos
DavidEGrayson has joined #nixos
moredread[m] has joined #nixos
Elephant454[m] has joined #nixos
JameySharp[m] has joined #nixos
indefini has joined #nixos
boxofrox has joined #nixos
_cyril_ has joined #nixos
metaphysician has joined #nixos
rummik has joined #nixos
Sigma has joined #nixos
adva[m] has joined #nixos
corngood has joined #nixos
bendlas has joined #nixos
leat has joined #nixos
berot3[m] has joined #nixos
Barnabas[m] has joined #nixos
florianjacob has joined #nixos
itorres has joined #nixos
Pneumaticat has joined #nixos
rsa has joined #nixos
spacekitteh[m] has joined #nixos
cement has quit [(Ping timeout: 248 seconds)]
ylwghst has joined #nixos
heath has joined #nixos
otti has joined #nixos
oida has joined #nixos
Mateon1 has quit [(Remote host closed the connection)]
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
Mateon1 has joined #nixos
Vorpal has quit [(Ping timeout: 240 seconds)]
drakonis has quit [(Quit: Leaving)]
Bane^ has quit [(Ping timeout: 260 seconds)]
gfixler has joined #nixos
<maurer>
Does anyone know of a way to use tmux/screen inside a nix-shell that doesn't massively corrupt the nix prompt?
<maurer>
I know I can start screen first, and then nix-shell inside each, but I frequently find myself already in a nix-shell, and wanting to spawn off a separate terminal in exactly this environment
<MP2E>
I use zsh and urxvt so I don't know if my solution is directly relevant to your problem, but I had issues with incorrect escaping when using tmux, ssh, nix-shell, basically anything up til I put this line in my .zshrc
<MP2E>
'export TERM="rxvt-256color"'
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] LnL7 opened pull request #1731: don't copy path if it's already a (top-level) store path. (master...copy-store-path) https://git.io/vbz9D
NixOS_GitHub has left #nixos []
<MP2E>
from what I recall, the terminfo file for rxvt-unicode isn't able to be found for some reason that I didn't bother tracking down :v
<MP2E>
so I just use a 'hack' by referencing a similar one
glenn_ has quit [(Remote host closed the connection)]
sary has joined #nixos
glenn_ has joined #nixos
<sphalerite>
gchristensen: non-interactive seems the least roundabout way to say it :p
mizu_no__ has joined #nixos
<dtz>
interinactive
<dtz>
intraactive
<dtz>
O:)
<gchristensen>
intractable
<sphalerite>
MP2E: if you have urxvt installed the terminfo definitions should be included too
<sphalerite>
dtz: interpassive
zzamboni has joined #nixos
<dtz>
bash-interpassive
<dtz>
xD
<MP2E>
right yeah, no idea why it doesn't seem to work
<MP2E>
but it doesn't, not doing anything fancy other than just using SSH to break things, either
<catern>
it would be nice if you could configure the derivation driving nix-shell itself, so that you could have it use bashInteractive or zsh or anything
<dtz>
i suppose if we're being less silly, "batch" is often used to differentiate between "interactive" use lol
<catern>
the derivation backing the nix-shell binary that is
glenn_ has quit [(Ping timeout: 255 seconds)]
glenn_ has joined #nixos
<catern>
I guess the reason it doesn't default to bashInteractive is to shrink the closure
<sphalerite>
MP2E: is urxvt installed on the remote end?
<sphalerite>
catern: nixUnstable does default to bashInteractive for nix-she
<MP2E>
yep, to be explicit, both are installed via /etc/nixos/configuration.nix on both machines
jb55 has joined #nixos
<MP2E>
(they actually have quite similar configuration.nix files)
asuryawanshi has quit [(Ping timeout: 268 seconds)]
dan_b has joined #nixos
glenn_ has quit [(Read error: Connection reset by peer)]
glenn_ has joined #nixos
TweyII has quit [(Ping timeout: 246 seconds)]
magnetop` has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Ping timeout: 268 seconds)]
ylwghst has quit [(Remote host closed the connection)]
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]
MP2E has quit [(Remote host closed the connection)]
mizu_no__ has joined #nixos
MP2E has joined #nixos
dan_b has quit [(Ping timeout: 260 seconds)]
Ross has quit [(Ping timeout: 260 seconds)]
Ross has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
hiratara has quit [(Ping timeout: 240 seconds)]
hiroshi has quit [(Ping timeout: 248 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
kgz has joined #nixos
glenn_ has quit [(Remote host closed the connection)]
hiratara has joined #nixos
Neo-- has joined #nixos
glenn_ has joined #nixos
erictapen has quit [(Ping timeout: 268 seconds)]
hiroshi has joined #nixos
erictapen has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
glenn_ has quit [(Ping timeout: 248 seconds)]
coot_ has joined #nixos
Unode has quit [(Read error: Connection reset by peer)]
cmiles74 has quit [(Ping timeout: 255 seconds)]
Unode has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
Unode has quit [(Read error: Connection reset by peer)]
Unode has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] xvapx opened pull request #32615: nodePackages.asar: init at 0.14.0 (master...asar) https://git.io/vbzxf
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] TravisWhitaker opened pull request #32616: bazel: bash needs to be in buildInputs (master...bazel-bash) https://git.io/vbzxO
<mekeor>
in an overlay, how do i reference a package from a specific channel? i tried 'super.nixos-unstable.oraclejre' but i get "error: attribute ‘nixos-unstable’ missing".
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg opened pull request #32618: make-disk-image: Support creating EFI images (master...makediskimage-efi) https://git.io/vbzpS
<m0rphism>
Hi, I'm wondering if there is a way to automatically find the .nix-files involved in an nixpkgs attribute. I often find it usefull to read the package source but finding the correct default.nix file by hand can be quite tedious.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vbzjG
<NixOS_GitHub>
nixpkgs/master 3cad1ab Graham Christensen: Merge pull request #32031 from NixOS/unstable-aarch64...
NixOS_GitHub has left #nixos []
Ross has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc deleted unstable-aarch64 at 08b8bc2: https://git.io/vbzjB
NixOS_GitHub has left #nixos []
orivej has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
mizu_no__ has quit [(Quit: Computer has gone to sleep.)]