<infinisil>
Can recommend home-manager, using it extensively
<infinisil>
It's like a user-level nixos configuration.nix, not sure if that's what you meant with "backing up user info"
<infinisil>
It's certainly no backup
<daveo>
well, maybe this is lame but I want all my widgets and themes to be in configuration... Or I can just rsync my data drive and my whole home directory...
<infinisil>
Ah yes, home-manager be it
<zybell_>
daveo:cd;git init
<zybell_>
then git remote add ...
<daveo>
zybell_: I use git for my /etc/nixos haven't considered doing that for the home directory. Thought rsync would be more appropriate
<infinisil>
Well you won't have history with rsync
<infinisil>
I have my system and home config all in a single repo and do commits for every change
<zybell_>
a backup is git commit;git push
<daveo>
zybell_: what service or server do you send it to?
<zybell_>
a git repo on a usb-disk
<daveo>
zybell_: Awesome idea. That's why I came here!
semilattice has joined #nixos
<daveo>
zybell_: trying it with a `nix-os rebuild build-vm` to see what the VM looks like after the backup is restored
<tnks>
I see the nixos module code that generates /etc/nsswitch.conf, but it's kind of rigid as defined.
<tnks>
is there a way I can take the string that's generated and do a replaceStrings on it?
<tnks>
I tried doing in in my /etc/nixos/configuration.nix, and got an infinite recursion.
<tnks>
Using these modules as designed is not that bad, but I'm trying to tweak them without a but load of copy-and-paste.
<samueldr>
gchristensen: where are the node modules, mongodb for webscale, docker image and microservices?
<gchristensen>
samueldr: I'm guessing you saw my tweet
<Profpatsch>
gchristensen: Yes, we demand to know!
<Profpatsch>
We *need* to know
sigmundv__ has quit [Ping timeout: 240 seconds]
<Profpatsch>
Where is the swarm of web-scale docker images thou hath spoken about?
<Profpatsch>
hath’d?
<gchristensen>
its vaporware, but for maximal performance I'm thinking a Go daemon with a single image pre-loaded in to memory, the entire HTTP response ready to be sent, pre-chunked in to packets. each container only returns a single image. then, load up a bunch of them in k8s + a load balancer for the randomness.
iqubic has joined #nixos
<samueldr>
that's a good way to stuff a resume
<Profpatsch>
Orchestrated with only the finest cyber-netes, like a soothing symphony of futuristic devopsy-ness
<gchristensen>
naturally
<Profpatsch>
Before you don’t put it into unikernels and start a fresh one for each request I can’t take you sereously!
<Profpatsch>
serious*
<gchristensen>
there you go
dcol has quit [Remote host closed the connection]
dcol has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #39353 → cc-wrapper use xargs → https://git.io/vpO9i
<fearlessKim[m]>
bhipple: --check (to confirm with manpage)
hamishmack has quit [Quit: hamishmack]
<teto1>
I have a networkmanager script but for some reason it ends up with /etc/NetworkManager/dispatcher.d/03userscript0002: line 7: env: command not found"
<AstroBadger>
I *think* it's an issue, but that depends on fdisk standard and expected behavior.
ikitat has joined #nixos
<kuri0>
does anyone know how to fix this error when installing gnome on aarch64 ? mcholesky_invert unscaled hilbert
freeman42x]NixOS has quit [Ping timeout: 255 seconds]
<ikitat>
I'm having trouble using cabal with nix 2.0.1 : error: syntax error, unexpected ',', expecting ')', at /nix/store/llqc6lf15iwg3g4fy5x9k0bncjf54nx5-interactive-expense-1.0.0-environment.drv:1:15
<sir_guy_carleton>
no, i'm just wondering if i could work it with nixos
<sir_guy_carleton>
currently, i'm on ubuntu, and i was able to get it working by downloading a program from hp's website
<sir_guy_carleton>
it's an hp laserjet mfp m130fn
Rusty1_ has quit [Quit: Konversation terminated!]
rauno has joined #nixos
jperras_ has joined #nixos
jperras has quit [Ping timeout: 264 seconds]
Lisanna has quit [Remote host closed the connection]
<sir_guy_carleton>
hmm ... it looks like hplip is in the nix repository
aarvar has joined #nixos
<sir_guy_carleton>
so it might not be a problem at all. cool
knupfer has joined #nixos
jperras_ has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
<elvishjerricco>
Is it possible to make libraries installed with `nix-env` show up under pkgconfig? I know this isn't the "right" way to deal with this stuff on nixos, but it would come in handy now and then
<sir_guy_carleton>
thanks. question: how big would recommend a nixos root parition without the home directory (it's going to be on another drive)?
robstr has joined #nixos
<makefu>
sir_guy_carleton: nixos requires a bit more space than other distros, especially after doing updates because essentially you will have almost twice the size after the upgrade if you don't garbage collect
<robstr>
Morning, using nixops, I need to _link_ two machines, like getting database server ip from the one. What is the way to archive this ?
<makefu>
sir_guy_carleton: on my laptop i have 35gig but i still always run full - however i do a lot of testing with different nixpkgs versions and such
<makefu>
if you have storage restrictions make sure that your whole system you want to install can fit twice on the root disk
<robstr>
gchristensen: thank you :)
<sir_guy_carleton>
hmm, i was thinking of going with ~100 gb on a ssd
<gchristensen>
should be fine
Arcaelyx_ has joined #nixos
<sir_guy_carleton>
yeah, i was thinking going 1/2 nixos and 1/2 windows 10 for that drive.
<makefu>
that will work
Arcaelyx has quit [Ping timeout: 265 seconds]
sir_guy_carleton has quit [Quit: leaving]
sir_guy_carleton has joined #nixos
mightybyte has joined #nixos
<silver_hook>
Since I upgraded to 18.03 bluetooth won’t scan and connect anymore (Failed to start discovery: org.bluez.Error.NotReady) and in Plasma I can’t get the power settings and battery monitor.
<silver_hook>
Any ideas?
klntsky has quit [Ping timeout: 268 seconds]
<makefu>
dmesg says anything regarding bluetooth or firmware?
klntsky has joined #nixos
<makefu>
have you restarted with the new kernel?
ericsagnes has quit [Ping timeout: 248 seconds]
<silver_hook>
makefu: I have restarted several times in between, yes.
<silver_hook>
bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0a5c-21e6.hcd failed with error -2
<silver_hook>
Hmm
<makefu>
worst case is opening an issue and doing a rollback to the working channel until the issue is fixed
ryanartecona has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
astrofog has joined #nixos
<mightybyte>
Whenever I run nix-env I get the following error:
<mightybyte>
building '/nix/store/7yb8hmfcfrl92vjf2asi44a74yqan9sk-user-environment.drv'...
<mightybyte>
error: getting status of '/nix/store/3l37x329n6lzxliki888zyh62n3dq86m-virtualbox-5.0.6-4.2.3/bin/VBoxBFE': No such file or directory
<mightybyte>
builder for '/nix/store/7yb8hmfcfrl92vjf2asi44a74yqan9sk-user-environment.drv' failed with exit code 1
<{^_^}>
[nixpkgs] @timbertson opened pull request #39355 → nix-pin: 0.1.2 -> 0.2.2 and add updateScript → https://git.io/vpOFQ
<mightybyte>
Anyone know what might be going on?
ryanartecona has quit [Ping timeout: 264 seconds]
<silver_hook>
makefu: That’s the oddest bit. The (last) snapshot from 17.09 channel now won’t connect me to the internet.
<silver_hook>
But yeah, I’ll figure it out, I guess.
<alevy>
has anyone had success using/installing eagle 9 on nixos? i'm able to install and run eagle 7 from nixpkgs, but eagle 9 is a different front-end with different runtime dependencies (new-ish to nix, so not yet very good with the nix language or packaging in general)
periklis has joined #nixos
ixxie has joined #nixos
pav has joined #nixos
ixxie has quit [Client Quit]
griff_ has joined #nixos
<elvishjerricco>
mightybyte: Yeesh, that's ugly. Kinda sounds like some packages in your env got garbage collected somehow?
<elvishjerricco>
mightybyte: Huh. That was easy ;)
jperras_ has joined #nixos
pav has quit [Quit: Leaving]
johann__ has quit [Quit: Leaving.]
ilyaigpetrov has joined #nixos
jperras_ has quit [Ping timeout: 260 seconds]
<unlmtd>
does SLNOS have a repo somewhere ? Anyone knows?
<tilpner>
Someone said they upstreamed a few things to nixos/nixpkgs
jrolfs has joined #nixos
<bkchr[m]>
Hi is someone here a autoconf pro? I cross compile for Android, and the library is created with name library-46.so and want to link this library to another library with the la file. But, the linker gets only called with "-llibrary", the "-46" is missing... Anyone an idea on how to fix that?
chrisburr has joined #nixos
jrolfs has quit [Ping timeout: 260 seconds]
telent has joined #nixos
dan_b has joined #nixos
ericsagnes has joined #nixos
<chrisburr>
Is it possible to write a derivation which is independent of its inputs? I'm writing one which only requires extracting an archive and I don't want it to be updated every time stdenv changes
griff_ has quit [Quit: griff_]
<vaibhavsagar>
chrisburr: if you use the nix builtins it should be independent of nixpkgs
<makefu>
chrisburr: you can use builtins.* functions, this should make it independent
<vaibhavsagar>
e.g. builtins.fetchTarball
<makefu>
after all, nix comes form "nicks" which essentially defines what is available for your derivation at the very beginning
<{^_^}>
→ ae4dac3e by @markuskowa: openmpi: 3.0.0 -> 3.0.1
<{^_^}>
→ 82063417 by @Mic92: Merge pull request #39333 from markuskowa/openmpi-up
<robstr>
Morning, I'm using nixops with aws which works perfect, now I want to add local virtualization too, I'm running nixos and added the `virtualisation.virtualbox.host.enable` flag. But Nixops run's a gui for each virtual machine ?
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @vbgl to master « eff: 20140928 -> 5.0 (#39264) »: https://git.io/vpOpy
vaninwagen has joined #nixos
<teto1>
robstr: virtualbox must have some CLI tools too
<teto1>
I am really puzzled by this file /etc/NetworkManager/dispatcher.d/02overridedns that is owned by nobody nogroup. How can I debug that ? sounds like a nix bug
thc202 has joined #nixos
sir_guy_carleton has quit [Quit: leaving]
<robstr>
teto1: yea I know, but why is nixops running it
<nyanloutre[m]>
so they don't like SystemD and made a fork
<unlmtd>
thats what im trying to figure out- if there actually is a fork
<unlmtd>
someone says there is... so either hes lying or there is
<thblt>
It's not that they don't like SystemD. It seems to deserve being called a pathological relationship to systemd.
<unlmtd>
but it doesnt seem to be on a public-facing web server
<adisbladis[m]>
The guy sending out that email has made some _very_ controversial PRs, not much in the way of getting nixpkgs "suckless approved" actually gets merged from what I have seen
<unlmtd>
Ill contact them, just havent used email in forever, I think they have tox though
<unlmtd>
there is someone doing openwrt with nix, someone getting runit squashfs images, and there is them - it's high time for a fork of sorts to take some shape
<angerman>
The changed `<file> -A <attr>` to `-f <file> <attr>` from `nix-build` to `nix build` makes for some fun line editing
ckauhaus has joined #nixos
chimay has quit [Ping timeout: 248 seconds]
<unlmtd>
it would be worth using that name just to see if someone comes up with a lawsuit
iqubic` has joined #nixos
<thblt>
unlmtd: lawsuit?
chimay has joined #nixos
<vaibhavsagar>
thblt: lowercase everything and put a space between the 'x' and the 'o'
<vaibhavsagar>
or uppercase everything
iqubic has quit [Ping timeout: 265 seconds]
<unlmtd>
μNixOS
<vaibhavsagar>
problem solved
orivej has joined #nixos
<thblt>
vaibhavsagar: I suspect you meant that for unlmtd
<vaibhavsagar>
thblt: no, it was meant for you :)
<nyanloutre[m]>
unlmtd: as long as it's a μ and not a u it should be fine 😛
<thblt>
vaibhavsagar: I'm not sure I know what to do if it :-)
<unlmtd>
nyanloutre: exactly my thought! what a neat way to lift the middle finger!
<vaibhavsagar>
thblt: never mind then :)
<thblt>
But is "NixOS" even registered?
<unlmtd>
just use a greek finger!
<thblt>
I suspect if you really wanted to troll, you could find smarter ways.
<thblt>
HemeraOS
<thblt>
(Nix: goddess of night, daughter of Chaos, Hemera: daughter of Nix, goddess of day)
[Leary] has quit [Remote host closed the connection]
<thblt>
ErisOS - daughter of Nix, goddess of strife and discord.
jperras_ has joined #nixos
<manveru>
Hails Eris!
robstr has joined #nixos
adamt has joined #nixos
<manveru>
meh, there's a KallistiOS already
<robstr>
Still struggle with nixops and virtualbox - when i run `nixops deploy` it hangs at `waiting for ip address` :-/ can someone help out here ?
<adamt>
Is anybody trying to fix https://github.com/NixOS/nixpkgs/issues/38477 (NixOS 18.03 installation fails with an EFI error)? It seems rather critical that NixOS 18.03 can't be installed. :P
<{^_^}>
→ 85dfd4b4 by @primeos: slop: 7.3.49 -> 7.4
<{^_^}>
→ cd1eefcd by @primeos: maim: 5.4.68 -> 5.5
<adamt>
I'm trying to gauge whether I should work around it with efibootmgr, or wait for a fix.
<thblt>
manveru: the Greek pantheon is large enough to accomodate all your symbolic distro name projects :-)
jperras_ has quit [Ping timeout: 248 seconds]
<manveru>
:)
<adamt>
Nvm., i see a PR for that exact issue. Hope it'll get merged soon.
<manveru>
well, i already use greek letters for my machine names, so it'd fit nicely
* thblt
uses vampires
<srhb>
adamt: Or it looks like just adding the sys mount manually might do the trick.
* thblt
is currently on Maladict
<adamt>
srhb: How? Reading on github it sounded like nixos-enter is the one not mounting /sys properly inside the chroot.
<thblt>
There's also Rudiger, Anna and Wednesday (not technically a vampire, but too amazing to ignore)
<srhb>
adamt: You can just do the bind from outside the chroot?
<srhb>
adamt: (I assume.)
<srhb>
adamt: This is the first I see of it, so I might be making some false assumptions.
<thblt>
adamt: or just install 17.09 and upgrade
<adamt>
srhb: Maybe that's possible unless the installer does something weird (e.g. using something other than /mnt as chroot)
<srhb>
adamt: Not that I know of
<adamt>
thblt: I'm not going to upgrade to a version that i can't cleanly install on all my servers
<srhb>
adamt: But yeah, seems simpler to just cherry pick that commit and go with that :)
<thblt>
adamt: ... why not?
<adamt>
Besides, using "/nix/store/blabla/bin/switch-to-configuration switch" seems to not write boot entries when upgrading from 17.09 to 18.03, at least when i tried last week. Not sure why.
<thblt>
I mean, it's NixOS, you don't need to have the installer version match installed version.
<adamt>
thblt: We create unattended installers for reinstalling the servers, using the exact same configuration as we have deployed, so to answer your question: I would have to keep old install media ready for all servers, or make them from really old points in time from our repository :-)
<adamt>
srhb: Uh. Neat trick.
<adamt>
srhb: When is that required? When changing channels?
<srhb>
I can never remember which part of the activation that does it though... :-)
<srhb>
Ah, yes, switch-to-configuration calls out to some appropriate perl script which checks for that var.
<adamt>
srhb: Hmm, i don't get it, it doesn't seem necessary in this case, since the there already is a bootloader present, and it is writing the generations to the boot entries no matter what.
<srhb>
adamt: Right, in the case of systemd-boot I assume that flag just ensures the creation of the efi booter in the actual firmware, not in the efi system partition
<srhb>
boot/switch will do the regular bootloader stuff
<srhb>
That is, populating the efisys partition
<srhb>
Sorry, I missed your question earlier, I should have been clearer :)
asuryawanshi has quit [Remote host closed the connection]
<srhb>
I've not experienced not having boot entries created, and that shouldn't rely anything but /boot/*
asuryawanshi has joined #nixos
<adamt>
I'll look otherwhere for that particular problem then. Thanks though :-)
<srhb>
Sure
<adamt>
srhb: Funny thing is, the system is switched alright and everything, only the boot entry is missing. :-)
<srhb>
So there's just the previous 17.09 generation there?
<adamt>
srhb: Yup.
<srhb>
Huh. I'm on grub/efi right now, so I can't check. :/
<teto1>
if I do etc."myfile".source = hook.sh and I got nix strings in hook.sh, will they get interpolated ?
<srhb>
teto1: Not.
<srhb>
teto1: You probably want .text for that, or use source and writeScript it elsewhere, interpolating from that expression.
<adamt>
srhb: I think it has to do with the python script using the content of /nix/var/nix/profiles/system-profiles/ to get the list of profiles, and at least on my laptop (18.03) that dir doesn't exist.
<adamt>
So if that's the same on the server, that's a problem, since no boot entries would then be written.
<srhb>
adamt: Which script is that? That sounds potentially very wrong.
<adamt>
Looks like it haven't been changed for months though
<teto1>
srhb: I tend to believe that .text is better than .source since you can both do .text = readFile hook.sh and .text= '' '' but you can only do .source = writeScript readFile hook.sh . I wonder if I should change networking.networkmanager.dispatcherScripts to accept .text too
<srhb>
teto1: I'm not fond of using readFile, I'd prefer import.
<srhb>
adamt: I'm.. Mystified.
<adamt>
srhb: For all I know it might be a totally different script that populates the boot entries.
<teto1>
srhb: it's a shell script, import will fail
jperras_ has quit [Ping timeout: 268 seconds]
marzzzello has joined #nixos
<srhb>
teto1: You said it has nix vars, so it can't be! :-)
<srhb>
adamt: I think this is for multiple system profiles.
<srhb>
adamt: Which you probably don't have.
<teto1>
for more context, it's a networkmanager dispatch shell script but has the networkmanager process has almost nothing in PATH, I need to use nix strings to get different binaires
thblt has quit [Ping timeout: 260 seconds]
<srhb>
teto1: The usual approach is to have a nix expression that produces the shell script in question as outlined above.
<srhb>
teto1: There's no run-time nix interpolation.
<teto1>
it's a long script and writing it within a .nix makes me lose syntax highlighting
<adamt>
Ah, didn't notice the call to get_generations with default parameters.
<srhb>
teto1: Then write a small nix wrapper that calls it with those arguments or sets appropriate environment variables.
<{^_^}>
→ 7f693c2f by @dywedir: xonsh: 0.6.0 -> 0.6.1
<{^_^}>
→ f5dd5219 by @adisbladis: Merge pull request #39359 from dywedir/xonsh
ma27 has joined #nixos
ma27 has quit [Client Quit]
ma27 has joined #nixos
<adamt>
srhb: actually `sudo nix-env --list-generations -p /nix/var/nix/profiles/system` only shows the original gen (1) even after en update, so it's not just the boot loader entry that is missing, it's the entire new generation :P
thblt has joined #nixos
<srhb>
adamt: Hmm, this hasn't happened on my end.
<zybell_>
robstr:VirtualBox can be started (default) with a virtual DHCP server, that gives it an address. However NixOpS cant obviously work that way. So *you* need to start a real DHCP Server (possibly in a VM)to give your Box an IP.
<srhb>
adamt: Are you doing something Weird^{tm} or is it just: upgrade channel/nixpkgs src to 18.03 and rebuild switch?
<{^_^}>
→ 5257f8e5 by R. RyanTM: supercollider: 3.9.2 -> 3.9.3
<{^_^}>
→ 54d6efc0 by @nlewo: Merge pull request #39187 from r-ryantm/auto-update/supercollider
iyzsong has joined #nixos
thblt has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<adamt>
srhb: Why is that necessary now, when it isn't when updating from one 17.09 config to another?
<srhb>
adamt: It should be necessary then as well.
robstr has quit [Quit: WeeChat 1.9.1]
<fgaz>
Is there a way to locally add a nixos module like with package overlays (ie without cloning and modifying nixpkgs itself)
<srhb>
Unless someone changed switch-to-configuration when I wasn't looking.
<srhb>
fgaz: Yes, nixpkgs.overlays is the option in question.
<fgaz>
oh, it can do modules too?
<srhb>
fgaz: I find it a little cumbersome though...
marzzzello has quit [Quit: bb]
<fgaz>
srhb: how do you do it instead?ù
xeji has joined #nixos
<ikwildrpepper>
you don't need overlays really, right
leat has joined #nixos
<srhb>
fgaz: I just pass in the overlays explicitly to my pkgs import at the entry point
<ikwildrpepper>
you can just import the module file?
<fgaz>
ikwildrpepper: I tried but it doesn't really work
<fgaz>
"enable" remains false
<fgaz>
and the service does not appear in nixos-options
<fgaz>
I modified an exixting module, so the structure should be right
<fgaz>
wait
<fgaz>
I forgot to s/oldname/newname/ in all places >.<
<fgaz>
Sorry for wasting your time
<fgaz>
I should use my rubber duck more often :-P
<adamt>
srhb: Aha! Lovely find, we missed that in your lovely nixdeploy. I'll get somebody to mail you a box of cookies. :p
<srhb>
adamt: If it helps, I forgot to do that as well at some point in nixdeploy and got _very_ surprised when I rebooted a server that had been running for months. ;-)
<srhb>
There should be some embarrassed commit message for that line.
<srhb>
But yay, cookies.
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
MP2E has quit [Remote host closed the connection]
TweyII has joined #nixos
TweyII has quit [Client Quit]
humanoyd has quit [Ping timeout: 256 seconds]
sanscoeur has joined #nixos
ixxie has joined #nixos
[Leary] has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthiasbeyer closed pull request #30412 → rust build support: Find Cargo.lock file upwards in tree → https://git.io/vd1mK
<{^_^}>
→ dd486e64 by @adisbladis: Merge pull request #39322 from elitak/trezor
<srhb>
Myrl-saki: Because it has other nice things like vmWithBootLoader
<Myrl-saki>
srhb: Oh okay.
<srhb>
Myrl-saki: Some of those are used by eg. nixos-rebuild build-vm
<[Leary]>
I've overridden xmonad and xmonad-contrib source with git repo revisions, but on updating the versions to newer revisions nixos-rebuild now fails, missing a dependency (semigroups) which I believe was added recently. Do I need to somehow override the dependency in?
<srhb>
[Leary]: haskell.lib has an addBuildDepend that you might use to transform the derivations.
<[Leary]>
Cheers srhb, I'll give it a go.
<srhb>
Or maybe addExtraLibrary is more appropriate, not sure.
<Myrl-saki>
srhb: So I could also do something like -A rebuild?
<srhb>
Myrl-saki: No, there's no 1-1 correspondence between the commands and the attributes
<Myrl-saki>
srhb: Aw. :(
ericsagnes has quit [Ping timeout: 248 seconds]
<srhb>
Myrl-saki: You can do nixos = import <nixpkgs/nixos> { configuration = import /etc/nixos/configuration.nix; } in your nix repl and explore the attributes by tab completing on nixos.<tab>
pie_ has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos
hihello has joined #nixos
betaboon has joined #nixos
<betaboon>
hello #nixos, has anyone ever tried to deploy 20+ containers into a virtualbox using nixops and ran into problems? I'm running into problems when trying to start the virtualbox+containers, which i guess are due to resource-limitations/timing and the like, any ideas?
<hihello>
I'm having trouble installing the 'eventmachine' gem. It fails saying that 'package configuration for openssl is not found'. I have openssl installed.
<{^_^}>
[nixops] @amemni opened pull request #933 → Add labelling for newly created GCE volumes and snapshots → https://git.io/vp3OF
sud0x3 has joined #nixos
<manveru>
hihello: you're using bundix?
simukis has joined #nixos
<hihello>
manveru: I was making an expression(with bundix) for a gem and it's dependency was 'eventmachine'. It can't install it due to this error. So yak shaving.
xy2_ has quit [Read error: No route to host]
xy2_ has joined #nixos
<Myrl-saki>
srhb: Thanks.
<manveru>
hihello: can you show your expression?
xy2_ has quit [Client Quit]
pie_ has quit [Ping timeout: 260 seconds]
xy2_ has joined #nixos
<hihello>
manveru: There's nothing wrong with the expression. gem install eventmachine has the same behaviour.
<manveru>
well, `gem install eventmachine` doesn't use bundix
<manveru>
nor does it use bundlerEnv
peacememories has joined #nixos
[Leary] has quit [Remote host closed the connection]
<mkaito>
some bisecting: wineStaging seems to be causing a recompile of rustc. if I just pull rustc via nix-env, it grabs it from the cache.
Guest86067 has joined #nixos
<Akii>
whoo another day another dependency issue (Haskell). Some package (servant-auth-server) needs the package cookie < 0.4.4 however only cookie = 0.4.4 is available. Any way I get my hands on 0.4.3?
<Akii>
or, alternatively, can I overwrite servant-auth-server to use 0.4.4? afaics there are no changes that would break it
<zybell_>
robstr:VirtualBox can be started (default) with a virtual DHCP server, that gives it an address. However NixOpS cant obviously work that way. So *you* need to start a real DHCP Server (possibly in a VM)to give your Box an IP.
<robstr>
zybell_: Ok, is this the recommented way ? I just want to test on a local virtualization before deploying to aws :-/
<robstr>
zybell_: Or would it be better to go with libvirt
jperras_ has joined #nixos
<zybell_>
Depends on what you want to achieve.
<zybell_>
libvirt may help you with aws too.
<robstr>
zybell_: my aws deployment works perfect, just deploying locally to a vm isn't working
<zybell_>
Start dhcpd locally and see what happens.
<nick_l>
robstr: the string "foobar" already ends up in multiple places the machine (for example in the PS1) variable, so it seems that it must be available somewhere.
<Myrl-saki>
Also, scartch that. I just remembered that why-depends is only runtime dependency.
<Dezgeg>
because librsvg is partially written in rust
jperras_ has joined #nixos
<Myrl-saki>
Dezgeg: What I meant to say is that that resulted in no output.
<Myrl-saki>
Dezgeg: Anwyays, I think that broke i686 a bit.
<Myrl-saki>
Dezgeg: Because even a clean configuration.nix depends on rust, if the Hydra hasn't built rust yet.
<{^_^}>
→ 483815a7 by @oxij: nixos: documentation: move some code around, make docstrings more informative
<{^_^}>
→ fbd4563b by @oxij: nixos: documentation: implement `documentation.dev.enable` option
<zybell_>
Huh?robstr:does dhcp client run in your image, or is there another vboxnet? active? (ifconfig -a ?) Or is your vm possibly configured "isolated"?
griff_ has quit [Quit: griff_]
nh has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<zybell_>
robstr: vboxnet0 RX packets: *0*? Whats going on? Do you have arping?
<robstr>
zybell_: Yes, I can ping `192.168.56.1`
<robstr>
zybell_: oh arping is a software product :P
<zybell_>
with protocol arp you would ping ff:ff:ff:ff:ff:ff
jperras_ has joined #nixos
<clever>
arping cant be blocked by firewalls
<clever>
but it also cant pass thru a gateway/router/nat
<zybell_>
while running `ip monitor vboxnet0` on another term to see how many (virtual) network cards are connected to vboxnet
<hyper_ch>
clever: how to make a udev rule that puts a zvol in 0777 mode... by default it's 0770 root disk and user session qemu/kvm can't access it
szicari has joined #nixos
<robstr>
zybell_: nix-env -iA nixos.arping - gives me now `error: attribute ‘arping’ in selection path ‘nixos.arping’ not found` whats going on now :P
<clever>
hyper_ch: you need to start with `udevadm monitor` to find the sysfs path when the device is created (spam more volumes? import/export?), then use some other cmd i cant remember to query the params on it, and write a rule based on them
<nh>
in my infinite wisdom i added both nixos and nixpkgs to channels causing everything to be doubled
<nh>
now no matter what i try i can't seems to get rid of the nixpkgs channel
<clever>
robstr: its in iputils
<nh>
nix-channel --remove nixpkgs
<nh>
and nix-channel --update
<nh>
also nix search -u
<clever>
robstr: and it needs root to work
<nh>
still show all the nixpkgs. stuff
<nick_l>
Isn't this supposed to work? /nix/store/nx3jw576gqw01iiijgsav39w2qa4cni2-python-2.7.14/bin/python /nix/store/55jsr2xwnxvz43hz33svagj6amzqcwfp-dd-agent-5.11.2/bin/.dd-agent-wrapped foreground
<hyper_ch>
clever: device is already create
blankhart has quit [Ping timeout: 264 seconds]
<clever>
nick_l: what does nix-channel --list show as both root and not?
pemeunier has joined #nixos
<nick_l>
(I just copy-pasted the command that was running and crashing all the time. )
<nh>
just nixos
<clever>
hyper_ch: which is why i said to spam-create more volumes, to see what the names look like
odi_ has quit [Ping timeout: 265 seconds]
<clever>
nh: on one or both users?
<nick_l>
clever: for which question is this?
<Myrl-saki>
How do I search for i686 only on Hydra?
LysergicDreams has quit [Ping timeout: 256 seconds]
<clever>
my -a shows it in a different format
<clever>
and i dont see any fields we can use to key it properly
<hyper_ch>
what about /devices/virtual/block/zd0 ?
<hyper_ch>
does it really change?
<clever>
2018-04-23 10:32:44 < clever> that number will be different every time you boot
jperras_ has joined #nixos
<clever>
it may
<hyper_ch>
the other started at 16
<nick_l>
clever: how can I override the system python to also have yaml? I already have an expression resulting in a python27 that already has yaml, but it is not picked up.
<hyper_ch>
and I set blocksize to 16
<clever>
depending on the order you import pools, and if other volumes get created
<clever>
its not the block size
<hyper_ch>
"block" :)
<clever>
nick_l: pythonWithPackages
<zybell_>
-I *vboxnet0* ff:ff:...
<nick_l>
clever:
<nick_l>
clever: I did that.
<clever>
nick_l: can you pastebin your nix expressions?
<nick_l>
clever: but somehow the systemd job is pointing at a python that doesn't have that.
<zybell_>
The stars are for emphasis.
<clever>
ctrl+b also works
coot has joined #nixos
<nick_l>
nix/store/nx3jw576gqw01iiijgsav39w2qa4cni2-python-2.7.14/bin/python <- has no yaml
<clever>
and you cant copy/paste that
<clever>
nick_l: you have to use the python that pythonWithPackages generates
<clever>
nick_l: thats what the drv in overrideAttrs (drv: { ... }) is for
<hihello>
gchristensen: hi hello :)
<{^_^}>
[nixpkgs] @grahamc pushed commit from @LightDiscord to release-18.03 « vscode: fix files with space(s) #39112 »: https://git.io/vp31z
<gchristensen>
hihello: ^
xcmw has quit [Ping timeout: 248 seconds]
<hihello>
gchristensen: Thank you.
asuryawanshi has quit [Ping timeout: 264 seconds]
<zybell_>
robstr:Did you rerun the vm? Or only reboot?
silver has joined #nixos
<robstr>
zybell_: i killed it with `nixops destroy` and "redeployed" with `nixops deploy`
blankhart has joined #nixos
<zybell_>
so we have only the view of the local kernel.
<zybell_>
try to fire a ctrl-alt-del in the vm. the gui should have a knob.
<nick_l>
clever: I think I got it to work.
<nick_l>
clever: thank you
<fgaz>
is there a way to check if I'm in a nix-shell?
erasmas has joined #nixos
<hyper_ch>
clever: now it says: USEC_INITIALIZED=10766831
jb55 has joined #nixos
<clever>
]$ env | grep SHELL
<clever>
IN_NIX_SHELL=1
<clever>
fgaz: that variable is set
xcmw has joined #nixos
<fgaz>
clever: thanks, I was tabbing from $NIX_ so I missed that
<clever>
hyper_ch: *doh*, i used the wrong syntax to convert the timestamp, neither one is within 10 years of now :P
<robstr>
zybell_: `192.168.56.100 lladdr 08:00:27:76:58:ec REACHABLE` and `STALE`
sigmundv__ has quit [Ping timeout: 265 seconds]
<hyper_ch>
clever: but the value has changed
raynold has quit [Quit: Connection closed for inactivity]
<clever>
hyper_ch: so you cant rely on it
<hyper_ch>
IIRC
<hyper_ch>
can't I just use /devices/virtual/block/zd0 ?
<hyper_ch>
or zd*
Myrl-saki has quit [Quit: WeeChat 2.0]
<hyper_ch>
only zvols seem to use zd* and they're all going to be VMs
<hyper_ch>
(btw, I did create the zvol inside an encrypted zfs ds and the zvol did inherit the encryption)
<clever>
hyper_ch: do you care about only getting access to a specific zvol, or just getting all?
<zybell_>
did you unleash tcpdump?
iqubic` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<robstr>
zybell_: but when entering the vm over the VirtualBox gui (it was my first time) i receive a error message "VT-X/AMD-V hardware acceleration is not availible on your system. Your 64 bit guest will fail to detect a 64 bit cpu and will not be able to bood" -.-
<hyper_ch>
clever: only user is me... so access to all zvols is fine
<nick_l>
I thought you were going to say sniffing...
<hyper_ch>
already changed to it...
<hyper_ch>
but seems I have to reboot
olto has joined #nixos
<clever>
yeah, these events only trigger when importing the pool
ShalokShalom has joined #nixos
<ShalokShalom>
hi
<ShalokShalom>
is it possible to get a 1.9 installer?
<ShalokShalom>
for nix, the package manager, on other distros
<gchristensen>
Nix 1.9 is quite old, why do you need that?
<ShalokShalom>
2.0 got just released?
robstr has joined #nixos
<ShalokShalom>
Since it break here all my symlinks
<gchristensen>
1.9 doesn't come before 2.0
<ShalokShalom>
I install it via script and sooner or later is every symlink disappeared
<ShalokShalom>
oh, i see
<ShalokShalom>
so, which is currently the maintainence release before 2.0?
<ShalokShalom>
is there one?
<gchristensen>
that will still be a problem for Nix 1.11.16, because you're the first person I've heard describe this issue.
<clever>
ShalokShalom: what symlinks are disapearin?
<ShalokShalom>
all
<robstr>
zybell_: who -.- I'm sorry for this, I needed to active hardware virtualization :-/
<ShalokShalom>
in /nix/store
<clever>
ShalokShalom: are they made by you or a build?
<ShalokShalom>
script
<ShalokShalom>
that one which is offered on the nix homepage
<ShalokShalom>
so, Nix 1.11.16 is the newest release before 2.0, where can I get it?
<ShalokShalom>
is the homepage open source?
pie_ has quit [Ping timeout: 260 seconds]
<ShalokShalom>
i guess so, so i think i take a look into its Github
page_ is now known as page
<ShalokShalom>
thanks
<gchristensen>
Nix 1.11.16 won't solve your problems, and we can't fix the problem you seem to have in 2.0 because nobody understands what you're saying is happening, because you're not giving enough detail
fendor has joined #nixos
<simpson>
ShalokShalom: So, just to double-check, you upgraded from 1.x to 2.0 and your store was corrupted? Do you have a way to reproduce this problem?
breadjpg has quit [Ping timeout: 260 seconds]
<fendor>
hey guys, it seems that the performance counter tool likwid (https://github.com/RRZE-HPC/likwid) is not packaged, is that correct, or did I just not find it?
<simpson>
fendor: I don't see it in my recent checkout, so it's probably not packaged yet.
breadjpg has joined #nixos
<fendor>
simpson, would it be possible to package it?
<clever>
ShalokShalom: what filesystem are you using?
<gchristensen>
ShalokShalom: what specific file names are missing and how do you know
<ShalokShalom>
XFS
<ShalokShalom>
gchristensen: all symlinks
<ShalokShalom>
because i test
lo_mlatu_ has joined #nixos
<ShalokShalom>
every single file name is not found
<ShalokShalom>
including the nix tools itself
<clever>
can you give examples?
<simpson>
fendor: Hard to say without trying. It looks like it should be possible.
<gchristensen>
ShalokShalom: I don't know of a file named 'all' which is installed by thee nix installer
<gchristensen>
ShalokShalom: how did you determine theere should be a file named 'all'
<ShalokShalom>
every
<ShalokShalom>
single
<ShalokShalom>
one
<ShalokShalom>
:D
<gchristensen>
ShalokShalom: you are not helping us solve your problem because you are not giving us sufficient detail.
<fendor>
simpson, can i poke someone to do that or should i rather try it myself?
<gchristensen>
please create a pastebin of every file you think should exist but doesn't exist
<fendor>
i guess for learning purposes it would be smart to do it myself...
<ShalokShalom>
i dont know whats complicated to understand, when I say all
<ShalokShalom>
all = everything
<simpson>
fendor: Sometimes people are willing to do this for you, but it would be a good learning exercise.
<ShalokShalom>
Is that so hard?
<clever>
ShalokShalom: can you give examples?
<ShalokShalom>
nix-build
<ShalokShalom>
mono
ShalokShalom has left #nixos [requested by gchristensen (you're clearly not interested in being helped)]
<gchristensen>
(short term)
<zybell_>
robstr:does it work now?
<clever>
gchristensen: i have seen a similar issue from somebody that was more interested in getting help
<fendor>
simpson, ok, ill try and come back crying if it doesnt work
<clever>
gchristensen: the user had ~/.nix-profile pointing to a weird place
<clever>
gchristensen: so nix-collect-garbage didnt detect his profile as a root
<clever>
and then nix GC'd itself
<gchristensen>
I heard about that too from a recent user
<aminechikhaoui>
hm why did you ban him ?
<gchristensen>
they won't be banned long. they have come in several times and the only thing they've said is every symlink is deleted. they refuse to provide additional information or provide specifics
daveo has quit [Ping timeout: 256 seconds]
<aminechikhaoui>
oh ok didn't know it was done several times
<robstr>
zybell_: yea, at least this issue is resolved :)
<robstr>
zybell_: thank you verry much for your time
<fendor>
clever, i think that was me
<gchristensen>
aminechikhaoui: I don't _like_ banning people ...:)
* hodapp
peeks in
<aminechikhaoui>
gchristensen: hehe yeah, just seemed weird so I asked. thanks :)
<gchristensen>
thank you
mmlb has joined #nixos
<fendor>
clever, it happened again btw, but i knew how to resolve it, so i didnt say anything
<clever>
fendor: any idea what was causing it?
<fendor>
clever, no i just assumed i did something stupid
<gchristensen>
the time I know someone did it is they ran nix-env --switch-profile to a bogus profile
odi_ has quit [Remote host closed the connection]
Izorkin has quit [Read error: Connection reset by peer]
<gchristensen>
the other time is they did nix-env with -p ~/.nix-profile, which is wrong
odi_ has joined #nixos
<fendor>
gchristensen, yeah i think i did the former once, but dont know what caused it the second time
<fendor>
gchristensen, ok, will do, but hopefully it wont happen again :D
suvash_away has joined #nixos
suvash_away has quit [Changing host]
suvash_away has joined #nixos
<fendor>
another question, currently, on gnome, the firefox symbol is not found, only the default icon for an executable is displayed, this purple ,rotated square, any reasons for that or some bug?
<{^_^}>
[nixpkgs] @matthewbauer pushed 6 commits to master: https://git.io/vpsJp
<{^_^}>
→ b2be363f by @gnidorah: nixos/hans: init
<{^_^}>
→ 16c5866c by @gnidorah: nixos/hans: passwordFile option #24288
<{^_^}>
→ 276d10da by @gnidorah: nixos/iodine: passwordFile option #24288
<lejonet>
Anyone else here that uses the copperhead kernel WITH sysv shared memory working? I've now confirmed on 2 systems that sysv shared mem seems to be disabled somehow (as in the one that uses the shm* values in sysctl and shmget and friends in the C API)
<lejonet>
(Talking about linuxPackages_linux_hardened_copperhead)
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpsUl
<{^_^}>
→ 560891d3 by Fionn Cleary: cdparanoia: Fix private keyword in header
<{^_^}>
→ 3678dca0 by @matthewbauer: Merge pull request #36979 from clearyf/cdparanoia
civodul has quit [Ping timeout: 248 seconds]
jensens has quit [Ping timeout: 268 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<Dezgeg>
maybe someone disabled it for hardening reasons?
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #35685 → ipxe: fix ISO build, update the package → https://git.io/vAKQP
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vpsUF
<{^_^}>
→ 4d7bea7e by @edef1c: ipxe: fix ISO build
<lejonet>
Dezgeg: most likely, and tho I understand why, because its been superseded by posix shared mem, but there are still a few applications that seem to depend on it (postgres for one)
<{^_^}>
→ 8ae0c8a6 by @edef1c: ipxe: 20170922 -> 20180220
<{^_^}>
→ 1439d0b9 by @matthewbauer: Merge pull request #35685 from edef1c/ipxe-iso
<lejonet>
so I'll just enable it on the few systems that need it and go on my merry way :P
<Dezgeg>
well they disable lots of other stuff as well
<lejonet>
Mhm
<Dezgeg>
like 32-bit binary support on 64-bit
<lejonet>
one of the main reason I'm going with that kernel afterall
<lejonet>
Yep, had to enabled that for my desktop
<lejonet>
Just didn't know what the proper kernel config entry was for sysv shared mem, so I thought it might be something they patched out (because when I grepped for shm in /proc/config.gz, I found that shmem was indeed y)
<lejonet>
so that just means thet config_shmem is posix shm and sysvipc is sysv shm
sanscoeur has joined #nixos
tg has quit [Ping timeout: 240 seconds]
<hihello>
Hi, I've seen people, instead of using a nix channels, checking out nixpkgs from git and using that. Can someone point to some docs on that or explain?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpskC
<{^_^}>
→ b9a74cf2 by @ryantm: buildbot: 1.0.0 -> 1.1.0
<{^_^}>
→ cf6fdcab by @matthewbauer: Merge pull request #36964 from ryantm/auto-update/buildbot
<lejonet>
O.o isn't package overrides supported when running a system with nixops? I've added the same kernel override to enable sysvipc on a nixops-managed server, but its not compiling a new kernel for it (heck it isn't even changing kernel for it, that server is on linux_testing atm, so just changing to copperheads kernel it should pick up, you'd think)
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpsk1
<{^_^}>
→ f07b330e by Timo Kaufmann: linbox: init at 1.5.2
<{^_^}>
→ bf6641ed by @matthewbauer: Merge pull request #36460 from timokau/linbox-init
<monotux>
any updates on the memory usage issues with nix 2.0? I can barely install anything complex on my laptop (4 gb ram) which pretty much defeats the purpose of using nixos :/
magnetophon has joined #nixos
jperras has quit [Ping timeout: 263 seconds]
<avn>
hihello: usually because they use modified repo, and PR their changes later
<adisbladis[m]>
hihello: It's actually quite simple :) You can set your `NIX_PATH` environment variable to point to your git checkout.
jperras has joined #nixos
<hihello>
avn: So this is typical of nixpkg contributors.
<adisbladis[m]>
For example: `export NIX_PATH=nixpkgs=~/src/nixpkgs`
<ixxie>
anybody know about NixOps Digital Ocean deployment? Is it still the case I must set an environment variable with my auth key?
drakonis has quit [Read error: Connection reset by peer]
<abcrawf>
Has anyone tried using Mozilla's overlay to install Firefox?
<infinisil>
abcrawf: plenty people, including me
<infinisil>
(Just ask your question instead)
xcmw has quit [Ping timeout: 248 seconds]
<abcrawf>
I tried adding the overlay to my nixos configuration under the nixpkgs.overlays section. When I try to install it in environment.systemPackages, I get a stack overflow.
<abcrawf>
Do you actually install the overlay into .config/nixpkgs or do you dynamically fetch it?
<abcrawf>
(I'd rather dynamically fetch it so that I don't have to worry about keeping it up-to-date)
<abcrawf>
I use a similar technique in my nix-shell derivations to install Rust.
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vpstD
<{^_^}>
→ c214bc9a by @matthewbauer: gstreamer: fix on Darwin
<{^_^}>
→ b09c2504 by @matthewbauer: gst_plugins_base: fix on darwin
<{^_^}>
→ 49d97c34 by @matthewbauer: Merge branch 'qtmultimedia'
<infinisil>
abcrawf: Can you gist your configuration.nix?
<abcrawf>
Sure
jrolfs has quit [Ping timeout: 248 seconds]
<infinisil>
And the error is an actual stack overflow? Not infinite recursion?
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<abcrawf>
It says "error: stack overflow (possible infinite recursion)"
<ThatPako>
Is there a latex package which I can use together with pandoc? I can't seem to find one :/
<srhb>
ThatPako: Yeah, search for texlive :)
<ThatPako>
ohh
vidbina has joined #nixos
<ThatPako>
should I get tectonic or one of the many texlive packages? If so, which texlive package? All their descriptions sound the same to me
hihello_ has quit [Ping timeout: 260 seconds]
ryantm has quit [Ping timeout: 264 seconds]
ma27 has quit [Ping timeout: 265 seconds]
ryantm has joined #nixos
<symphorien>
is there a way to run diffoscope on the result of nix-build --check ?
jrolfs has joined #nixos
<nwspk>
I just updated my packages and the newer version of Octave doesn't has the GUI anymore
<nwspk>
Does anybody else also have this bug?
hihello has joined #nixos
<symphorien>
did you try octaveFull ?
<nwspk>
one sec
<ThatPako>
srhb: any idea why I'm getting `! LaTeX Error: File `lmodern.sty' not found.` when trying to compile with latex now? I installed `texlive.combined.scheme-basic` :/
<nwspk>
symphorien: thanks, that's it
<nwspk>
I'm feeling kind of stupid now..
<symphorien>
np
<srhb>
ThatPako: I'm guessing lmodern.sty is not included in scheme-basic?
<{^_^}>
→ 84ace02e by @primeos: android-studio: 3.1.1.0 -> 3.1.2.0
<{^_^}>
→ 42a9ba28 by @primeos: androidStudioPackages.{dev,canary}: 3.2.0.10 -> 3.2.0.11
nuncanada has quit [Ping timeout: 256 seconds]
xy2_ has quit [Ping timeout: 260 seconds]
ma27 has joined #nixos
kisik21 has joined #nixos
jrolfs_ has quit [Ping timeout: 255 seconds]
<kisik21>
Hello. I have a server.nix file, which describes all default settings for my server programs. I want to make it usable in a containers/<servicename>.nix files (which are used to declaratively set up a container) without modification. How can that be possible?
griff_ has joined #nixos
<kisik21>
To clarify, I want server.nix's services to appear as container.<name?>.services when imported from containers/<name?>.nix.
jrolfs_ has joined #nixos
Neo-- has joined #nixos
<{^_^}>
[nixpkgs] @flokli opened pull request #39379 → pdf-quench: init at 1.0.5 → https://git.io/vpsZq
sigmundv__ has quit [Ping timeout: 255 seconds]
xy2_ has joined #nixos
bennofs has joined #nixos
nschoe has joined #nixos
<ixxie>
kisik21: import from or to the containers/<name>.nix?
<kisik21>
ixxie: server.nix is imported from containers/<name>.nix. Currently it is listed in imports.
<kisik21>
Do you need pastebin-ed nix files? If yes, I could snip out relevant sections for you.
<ixxie>
I doubt very much I can help
<ixxie>
I am trying to understand better to learn something because this sounds like a cool idea xD
<scottviteri>
I am running the nix package manager on ubuntu, and I am currently trying to build icecat, since it wasn't in the nix-env packages
<scottviteri>
In order to isolate my build, I am creating a shell.nix file with the dependencies for the build
tmaekawa has joined #nixos
<scottviteri>
My process is as follows: change shell.nix, find another missing requirement for the build, look for it in packages, add that package to my shell.nix, try again, and repeat
<scottviteri>
Is there a better way to do this? Thanks in advance!
<ixxie>
scottviteri: I guess it depends on the context; for packaging python modules for examples there is often a requirements.txt
<scottviteri>
Sure sure
<ixxie>
scottviteri: but of course these are often incomplete
<scottviteri>
I am working off of a configuration executable
<ixxie>
configuration executable?
Xal has quit [Ping timeout: 248 seconds]
<thoughtpolice>
For arbitrary C/C++ packages that's normally about how you have to go. Normally you need to spend a bit of time looking at the build system to make sure you capture every dependency/optional feature, if you want it.
<scottviteri>
I mean a bash file that is named configure
<scottviteri>
Sorry for the ambiguity
<scottviteri>
I see, that kind of sucks
<scottviteri>
Actually wait, there must be a way to do better here
<zybell_>
simply run it,it will tell you what it needs
<thoughtpolice>
Unfortunately Ubuntu users have it easier, because if they want the *real* dependencies for a build, they can always look at the NixOS expression to clearly find them ;P
<scottviteri>
Oh yes that is why I'm here :)
<sphalerite>
scottviteri: the project should also have docs on its dependencies.
<sphalerite>
scottviteri: in the case of icecat, since it's basically just a rebranded and minorly patched firefox, you should be able to just steal the deps from the existing firefox expression
<sphalerite>
the deps and more, probably
<ixxie>
maybe we can trained a supervised algorithm to learn how to find dependencies for any package
<scottviteri>
Interesting, but also what has this world come to
<ixxie>
scottviteri: well, what I mean is that information about dependencies tends to be scattered and incomplete, and fuzzy algorithms may be needed to automate such a process
<kisik21>
Repeating and rephrasing my question just in case: anyone knows how to merge globally defined services section with containers.<name>.services?
<sphalerite>
kisik21: what do you mean?
<simpson>
kisik21: Unless I missed something, it's not possible to have systemd services inside a container.
<kisik21>
simpson: I'm USING systemd services inside a container right now.
<simpson>
kisik21: Oh, cool. TIL.
<scottviteri>
ixxie: for my particular situation, a more clear solution would be to write an algorithm that does the process that I am going through
<{^_^}>
[nixpkgs] @timokau opened pull request #39381 → glpk: Add gmp support → https://git.io/vpsCF
<scottviteri>
ixxie: 1. run the script, 2. read what is missing, 3. add it to nix-shell 4. repeat
<kisik21>
sphalerite: I have a services section in my configuration.nix (actually it's in separate file, but that's not that important). I want to make it available to containers.web, so I could reuse existing configuration and avoid copypaste.
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpsW3
<{^_^}>
→ 3cdb8f58 by @kamilchm: spark: provided-hadoop -> nixpkgs hadoop
<{^_^}>
→ 7ab91da9 by @matthewbauer: Merge pull request #31861 from kamilchm/spark
<sphalerite>
scottviteri: alsaLib in this case
<scottviteri>
thanks fam
<kisik21>
sphalerite: gitea.nix and web.nix are almost the same.
<scottviteri>
But I didn't know offhand which of alsa-firmware, alsaLib, alsaOss, alsaPlugins, or alsaTools to pick immediately
<ixxie>
scottviteri: are you only using the CLI search?
<kisik21>
scottviteri: alsaLib, I guess.
hiroshi has quit [Ping timeout: 268 seconds]
<scottviteri>
yes, I am only using CLI search
<sphalerite>
kisik21: in any case, I think you want to set containers.gitea.config = import ./containers/gitea.nix; rather than containers.gita = import ./containers/gitea.nix;
daveo has joined #nixos
<scottviteri>
really I put the output into a file and grepped for speed, but yes
<kisik21>
containers.gitea.config? oh, I'm silly
<sphalerite>
scottviteri: nix-index can be very useful for this kind of thing too
<kisik21>
seriously
<kisik21>
I'm dumb
<sphalerite>
scottviteri: also, `nix search` is much nicer than nix-env -qa :)
<scottviteri>
Ooh, I was using nix-env -qa
nschoe has quit [Ping timeout: 256 seconds]
<symphorien>
also nix-locate is handy when looking for a .so for example
<scottviteri>
looking into now
<scottviteri>
oh jesus
<symphorien>
ah sorry already said
<sphalerite>
nix-env -qa is still the "canonical" one since the new nix command isn't a stable interface yet
lo_mlatu_ has quit [Ping timeout: 264 seconds]
<sphalerite>
but nix search is miles better ^^
Arcaelyx_ has quit [Ping timeout: 265 seconds]
ThatPako has quit [Quit: Lost terminal]
<kisik21>
sphalerite: It seems to... actually do something,
<scottviteri>
So nix index is a github repo
<infinisil>
sphalerite: I'm really wondering why Nix 2.0 is called 2.0 and the default already..
regulus_ has joined #nixos
<scottviteri>
So it is separately installed from vanilla nix?
<sphalerite>
scottviteri: it's in nixpkgs too though
<sphalerite>
yes
<sphalerite>
it's not part of nix. But you can install it using nix-env -f '<nixpkgs>' -iA nix-index
<kisik21>
sphalerite: Um, it worked. Strangely, it worked. Thanks.
<ixxie>
scottviteri: the URL to the project site is often helpful in distinguishing similarly named packages
<scottviteri>
yes, I see
<scottviteri>
ixxie: please elaborate
<sphalerite>
kisik21: what's strange about it working? :p
<kisik21>
bash? Better than C++? lol, C++ at least is fast. Bash is painfully slow, but extensible with commands. When I was a bash freak, I tried to work with Telegram Bot API in Bash. Even found a library for that. 2-3 seconds for one query.
<sphalerite>
lol
<kisik21>
Okay, going on-topic. If I use lib.mkDefault lib.mkForce is not needed, right?
<johnw>
if I've run nix-shell and it built lots of dependencies, what argument do I pass to "nix copy" to copy the closure for that shell environment to another machine?
<{^_^}>
→ 83e5b55e by Timo Kaufmann: ecl_16_1_2: Adopt upstream error handling patch
<{^_^}>
→ 7c350172 by @7c6f434c: Merge pull request #39380 from timokau/ecl-error-handling
<scottviteri>
sphalerite: also it would be interesting to have xor
<scottviteri>
sphalerite: (I mean potentially useful)
<{^_^}>
[nixpkgs] @timokau opened pull request #39384 → fflas-ffpack: Drop liblapack dependency → https://git.io/vpsB5
<sphalerite>
would it?
<scottviteri>
sphalerite: Idk what if I want a certain package, but I don't want any of its pals/extras to show up
<Guest2114>
hi everyone.
<Guest2114>
Do I need the option boot.zfs.enableUnstable when I upgrade to 18.03?
<Guest2114>
it's not clear in either the release notes or the wiki.
<scottviteri>
sphalerite: Like all of the stuff that comes up when I do 'nix-env-qaP | grep 'alsa''
<sphalerite>
right but what would you exclude?
<sphalerite>
Guest2114: no, you shouldn't need it.
<Guest2114>
sphalerite: thanks.
tg has joined #nixos
<scottviteri>
sphalerite: (Plugins|Tools|Utils)
hiroshi has joined #nixos
<scottviteri>
sphalerite: actually I don't feel strongly about this point, maybe it is just best to add in 'and' functionality by hand
<sphalerite>
by hand?
toby_ has joined #nixos
<scottviteri>
sphalerite: what I was going to suggest is that maybe regular expression is actually the wrong abstraction here -- it is inherently ordered, which is why we have funky expressions for and, (and we would for xor as well)
<kisik21>
Could I somehow make a remote cross-compiling nix setup for an ARM board? For example, I have a powerful machine and a board on the same network, how could I tell nix to build everything (for example, when doing nixos-rebuild) using cross-compiler on powerful machine?
<kisik21>
No compiler should ever be on an ARM board.
<sphalerite>
scottviteri: yes. Hence just support multiple expressions, and require all of them to match
<sphalerite>
kisik21: I like having compilers on my arm laptop :)
<sphalerite>
kisik21: but it should in principle be possible by importing nixpkgs with system = "x86_64-linux" and the appropriate crossSystem
<kisik21>
Native compiling is less cool when you have 4 cores, only 1 gig of memory and no drives with an SD card instead.
<sphalerite>
and having the powerful machine set up as a remote builder
<scottviteri>
sphalerite: true -- this is the equivalent of taking the product construction on the two DFA's to create a new one
<kisik21>
And how, for example, bootstrap the environment so I won't have to use binary caches, and compile everything on an ARM board?
<sphalerite>
scottviteri: before `nix search`, https://github.com/madjar/nox was all the rage and I implemented it for that which was easy, but it just seems to be such a fuss with how nix search is implemented
taktoa has quit [Remote host closed the connection]
<sphalerite>
kisik21: same thing, except you start on the powerful machine.
<sphalerite>
kisik21: not sure how well nixos itself supports cross-compilation at this point though.
<sphalerite>
it may not work well.
<sphalerite>
(or at all)
<kisik21>
Can I cross compile, make a small native environment (only basic packages so it would at least launch to getty), install it on ARM board and then nixos-rebuild to make a native compiler and environment?
<sphalerite>
it should be easy with nix on some other linux distro though
sanscoeu_ has joined #nixos
<sphalerite>
well yes you can get a native compiler and stuff but that means building everything that's not on some binary cache locally
<kisik21>
That's what I actually meant.
<scottviteri>
sphalerite: one could also do it on the bash side -- I could just write some syntactic sugar over the funky and expression
ixxie has quit [Ping timeout: 256 seconds]
<sphalerite>
scottviteri: yeah, the issue with that is that nix search's output isn't very searchable. At that point it's probably easier to implement the whole thing as a bash script based on nix-env -qa --json.
<sphalerite>
and jq
sanscoeur has quit [Ping timeout: 256 seconds]
<scottviteri>
oh nice
sanscoeu_ has quit [Remote host closed the connection]
<sphalerite>
but `nix search zsh auto` would be nicest :p
pie_ has joined #nixos
<steveeJ>
how would I go about making an initrd that runs a dhcp/bootp request on each wired network interface?
<scottviteri>
Yeah, yeah -- but we just showed how to implement that
<scottviteri>
sphalerite: you could generalize to n expressions as well
<sphalerite>
steveeJ: boot.initrd.network.enable + networking.useDHCP, as far as I can tell
<scottviteri>
sphalerite: *implement it without running through all of the packages n times
adam5 has joined #nixos
<steveeJ>
sphalerit: cool, thanks!
robstr has quit [Quit: WeeChat 1.9.1]
<sphalerite>
scottviteri: it's still simpler to just run through all the packages, applying each expression successively, because then you don't get exponential growth in the expression. And overlapping patterns work.
mahalel_ has quit [Remote host closed the connection]
dan_b has joined #nixos
telent has joined #nixos
mahalel_ has joined #nixos
<sphalerite>
that would be a nice feature for options.html, describing the type/merge behaviour as well
<hihello>
I'm having an annoying time trying to use vscode-with-extensions. I defined the extensions I want like so https://pastebin.com/CXKC3sfZ. The synlink to code is pointing correctly to vscode-with-extensions in the store but the exectuable wrapper symlinks to *vscode-1.21.1/bin/code: https://pastebin.com/RmR7MweM not the wrapped version that includes the extensions dir: https://pastebin.com/ExFNaBuC
Sonarpulse has joined #nixos
<adam5>
hey. i have proof, verifiable proof we are in the matrix http://adioha.s.lamc.la ... #far? that means we can "find and replace" cancer and AIDS and not doing that is "evil" IMHO, http://kansa.s.lamc.la ... and make bullets drop in midair like in the Matrix, http://arrr.s.lamc.la and Minority Report. These things, these movies, part of the message. http://fromthemachine.org/SEVENTY.html -- I need help gaming reddit, and whatever else you guys can think of, email
<{^_^}>
→ 41206617 by @jensbin: Adjust email address
<{^_^}>
→ 7ea3c9e8 by @vcunat: Merge #39383: maintainers-list.nix: change e-mail
<simpson>
adam5: Wrong channel, sorry.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hihello>
adam5: Yeah not the right channel like at all.
ryanartecona has joined #nixos
<adam5>
every channel is the right channel to see the truth
<adam5>
literally, like, "immortality" or "not the right channeL" is your choice
lo_mlatu_ has joined #nixos
<disasm>
How can I capture network traffic inside nix-build? e.g. I have a derivation that runs some processes in the background, then tries to issue some REST API commands to those processes, and I want to capture all network traffic between each of those processes.
<simpson>
adam5: Still wrong channel, sorry.
<sphalerite>
adam5: I'll go with "not the right channel".
<adam5>
do you care about children being shot in schools?
<simpson>
I am probably not human. Don't worry about it. You're in the wrong channel. Please leave and find someplace else to discuss philosophy or current events.
<adam5>
your package manager is supremely unimportant
<sphalerite>
infinisil: /msg chanserv access #nixos list
<sphalerite>
adam5: it happens to be the topic of this channel. Please take your topic of choice to a channel where it is welcome.
<adam5>
so you think you can dtell the difference between heaven and hell
<adam5>
fake blue skies, and ending all [pain
<adam5>
fuck.s.lamc.la you
adam5 has left #nixos [#nixos]
<simpson>
Great song, still wrong channel.
<hihello>
Ugh
<johnw>
I don't have ops here, sadly
<simpson>
Sorry about that. I thought that they'd be dissuaded quicker.
dax has joined #nixos
astiles has quit [Remote host closed the connection]
<hihello>
Need a bot to automatically kick anyone who mentions the matrix
<samueldr>
(what about matrix users?)
lo_mlatu_ has quit [Ping timeout: 248 seconds]
<hihello>
lol
astiles has joined #nixos
<sphalerite>
/kick #nixos hihello mentioned the matrix
<sphalerite>
:p
<infinisil>
I think we need more mods here
<hihello>
clearly
xcmw has joined #nixos
<hihello>
just when i had an important question too. all blocked out by that crap
<infinisil>
Eh, it happens really seldom though
sanscoeur has quit [Remote host closed the connection]
<simpson>
hihello: Sorry, I don't know anything about VS Code.
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vps2K
<{^_^}>
→ ce8f347c by @gnidorah: nixos/hans, nixos/iodine: fix passwordFile attribute
<{^_^}>
→ 20381ef3 by @matthewbauer: Merge pull request #39387 from gnidorah/hans
<simpson>
Hm. Yeah, sorry, but I don't know.
genesis has quit [Read error: Connection reset by peer]
<mekeor>
how can i list the packages in nodePackages or pythonPackages etc?
<mekeor>
or search in them?
astiles has quit [Ping timeout: 255 seconds]
<simpson>
mekeor: My preferred method is $(nix-repl nixpkgs/default.nix) and then Tab-completion on `pythonPackages`. You can also grep python-packages.nix for Python or the package.json lists for Node.js.
<nur0n0>
I'm working on a project in which I `import` a `default.nix` file I have stored locally. it seems to work fine(when I run nix-build directly on it), but when I add it to`buildInputs`, nix gives "error: cannot coerce a function to a string". any idea what I could be doing wrong?
knupfer has quit [Ping timeout: 260 seconds]
<bendlas>
`mix-packages.nix`, that is
astiles has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<sphalerite>
mekeor: to answer directly, `nix-env -f '<nixpkgs>' -qaPA pythonPackages` will list them
astiles_ has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
<sphalerite>
mekeor: in the case of pythonPackages, it should already be searched automatically by `nix search` though
<mekeor>
simpson: thank you
<sphalerite>
e.g. `nix search pygame` gives me both the python 2 and python 3 versions of pygame
sanscoeur has joined #nixos
<mekeor>
sphalerite: oh. nice. i actually wanted to search nodePackages. :)
<mekeor>
i wonder why `yarn` isn't in nodePackages but on top-level
orbekk has joined #nixos
<sphalerite>
you can also add an overlay like `self: super: {nodePackages = super.recurseIntoAttrs super.nodePackages;}` to make `nix search` include stuff in nodePackages
<sphalerite>
(you'll need to run it with -u the first time after adding the overlay)
<mekeor>
that's cool
sanscoeur has quit [Remote host closed the connection]
klntsky has quit [Ping timeout: 268 seconds]
breadjpg has quit [Quit: Lost terminal]
astiles has quit [Ping timeout: 255 seconds]
<zybell_>
nur0n0:mostly when that happens sb forgot to execute the function with {}
sanscoeur has joined #nixos
<sphalerite>
the reason that such package sets aren't searched by default is performance though. I have an overlay like that for haskellPackages, and as a result nix search with -u is *really* slow.
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @ryantm to master « google-compute-engine: 20170914 -> 20180129 (#36565) »: https://git.io/vpsaN
griff_ has quit [Quit: griff_]
klntsky has joined #nixos
<nur0n0>
zybell_: thanks, that's it!
bennofs has quit [Quit: WeeChat 2.0]
jperras has quit [Ping timeout: 248 seconds]
Judson1 has joined #nixos
<Judson1>
I'm having serious misgivings about getting this python package into Nixpkgs :/
<Judson1>
It's turning out to be an incredible hassle.
szicari has quit [Quit: szicari]
thblt has quit [Ping timeout: 255 seconds]
<simpson>
Judson1: Are the dependencies weird? Are the tests not passing? Is cffi/numpy/matplotlib/etc. being difficult?
klntsky has quit [Remote host closed the connection]
<Judson1>
Tests aren't passing. It integrates against 4 deps not in the existing python-packages. Their tests don't pass. Their tests depend on further packages. Every new package is itself a new expression...
<Judson1>
pypi2nix did the job, and I get that there's a way to do Python in Nix, but this is super tedious.
<Judson1>
I kinda want to take my branched install of jira_cli on my machines and call it a day.
<sphalerite>
disasm: I think I've pretty much got the socat thing working, in case you want the details?
<sphalerite>
disasm: basically have a script log.sh containing `tee -a /tmp/from-client | socat stdio tcp:google.com:80 | tee /tmp/from-server` and run socat tcp-listen:localhost:12345,fork,reuseaddr exec:./log.sh
<sphalerite>
disasm: for logging multiple connections you could use /tmp/from-*-$$ so it sticks in the script PID
<sphalerite>
disasm: then all that's missing is interleaving the from-client and from-server logs correctly... I hope you don't need that? :p
<simpson>
Judson1: This hurts me a little, but `doCheck = false;` is totally legal on Python packages and nobody will be mad at you.
<simpson>
Python upstreams are *really* bad at temporary files and directories when running tests from the Nix store. There's entire testing tools (Trial in particular) that are just broken to hell.
shad has joined #nixos
<Judson1>
Unless it isn't commented as to why doCheck=false, which is reasonable. But it means running each build until tests fail....
<shad>
Good evening.
<Judson1>
Plus, it hurts me to ;)
<Judson1>
Yeah, one of the packages I'm adding uses VCR, but doesn't include cassettes.
<simpson>
Judson1: Yeah, but I say this as somebody else who's maintaining parts of the Python tree. I know that the packages aren't broken; they work fine from a development checkout. They're just not checkable by Nix. I'd rather just mark them as not runnable.
Xal has quit [Ping timeout: 240 seconds]
<Judson1>
Which, I guess I understand.
<simpson>
Wow, I remember that era when every device that could read or write cassettes came with two spare tapes. Those were the days.
<Judson1>
:D
<Judson1>
One of them is keyrings.alt, which depends on a bunch of other modules to run its tests?
<Judson1>
No, I got it to "from unittest import mock ImportError: cannot import name mock"
fendor has joined #nixos
daveo has quit [Ping timeout: 255 seconds]
<Judson1>
Part of the issue here is that I'm not a Python programmer normally, so I'm rummaging about a bit.
<simpson>
Oh yikes, yeah, it's no fun working with languages and tools you don't know. `unittest` and `mock` are Python package names that you might need to add to buildInputs.
<Judson1>
Neither worked when added to checkInputs.
<Judson1>
I'm also working against my own biases that top level python packages is very fussy and wrongheaded. I'm really trying to set that prejudice aside, but it's hard.
fendor has quit [Ping timeout: 256 seconds]
<sphalerite>
I thought unittest came with python
Xal has joined #nixos
<Judson1>
simpson: it seemed to me that there were some packages that needed to be ordered - IIRC the python-packages set isn't rec?
<Judson1>
Yeah, isn't unittest in stdlib? I dimly suspected that.
coot has quit [Quit: coot]
<simpson>
Oh, sorry, I meant to type `unittest2`.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL>
clever: nix-darwin also uses /run/current-system
<sphalerite>
clever: whoops so it is. Right so GNU's is the nonstandard one :)
<nur0n0>
builtin for zsh, not for bash
<sphalerite>
what a tangent
<sphalerite>
chreekat[m]: didn't mean to "sound" critical in my lspci comment btw!
<sphalerite>
chreekat[m]: oddly though I do get a command-not-found message saying that lspci is found in pciutils and in busybox
<sphalerite>
either way, there's nothing wrong with not knowing and not working out where to find lspci. If anything maybe it should be installed by default, or the command-not-found thing should have worked for you!
Rusty1_ has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « doc: add filtered pr list »: https://git.io/vpsiW
<infinisil>
Btw, zsh builtins can be read about in `man zshbuiltins`
blankhart has quit [Ping timeout: 256 seconds]
MichaelRaskin has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @ck3d opened pull request #39389 → tbs: updated to kernel-4.14 → https://git.io/vpsij
ryanartecona has joined #nixos
xcmw has quit [Ping timeout: 260 seconds]
Ariakenom has quit [Quit: Leaving]
Neo-- has quit [Ping timeout: 248 seconds]
iqubic has joined #nixos
<{^_^}>
[nixpkgs] @LnL7 opened pull request #39390 → qemu: fix darwin build → https://git.io/vpsXv
<srid>
when declaratively configuring a systemd *user* service, how do I get the value of $HOME?