<nineteeneightd>
I had to do a little trickery to mount the original ISO under OS X to extract the bzImage and initrd, but I'm pretty sure I'm using the unaltered ISO I downloaded from nixos.org.
<clever>
nineteeneightd: it sounds like its not able to access its own iso when booting
<clever>
that image is also an MBR disk image, so you can just tell hyperkit that its a hdd img and it should boot without any extraction
<Dezgeg>
correct args to the iso look more like init=/nix/store/m4y072w8jc9ljdgd319sv33ff4gsx9fl-nixos-system-nixos-17.09.3129.1dcd022f01b/init root=LABEL=NIXOS_ISO boot.shell_on_fail loglevel=4
<clever>
the full args should be in a config in the image
<nineteeneightd>
Ok, let me give all that a shot.
<Dezgeg>
yeah, e.g. loader/entries/nixos-iso.conf for the EFI loader
<nineteeneightd>
Sweet, I'm in. Thanks!
Myrl-saki has quit [Ping timeout: 240 seconds]
<kerrhau->
does anybody know where i'd set "QT_XKB_CONFIG_ROOT", I've an app that looks for xkb in /usr/share/X11/xkb, but obviously that doesn't exist so where would it be?
acarrico has quit [Ping timeout: 264 seconds]
<infinisil>
kerrhau-: Set services.xserver.exportConfiguration = true; then it's in /etc/X11/xkb
<infinisil>
kerrhau-: But if you're packaging something you probably don't want do do that
Czen has quit [Ping timeout: 240 seconds]
Myrl-saki has joined #nixos
<Myrl-saki>
Holy wow. `neovim` kills the *tmux server* what the hell
<Myrl-saki>
Can anyone repro?
<Myrl-saki>
FWIW, neovim seems okay.
<infinisil>
kerrhau-: Ah it's in `xlibs.xkeyboardconfig
<kerrhau->
Myrl-saki: works fine here
<Myrl-saki>
release-18.03?
<Myrl-saki>
I forgot to say that.
<infinisil>
kerrhau-: So ${pkgs.xlibs.xkeyboardconfig}/share/X11/xkb
kerrhau- is now known as kerrhau
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<Myrl-saki>
I disabled neovim for the meantime.
Czen has joined #nixos
<Myrl-saki>
It kills all my tmux instances, so I cannot risk having it lol
<kerrhau>
infinisil: is pkgs.xlibs.xkeyboardconfig an environment variable?
<Myrl-saki>
I was going to record it unti I realized that doing it would kill my weechat connection lol
<infinisil>
kerrhau: no that's a nix expression, intended to be used with nix-build or so
<kerrhau>
ah
<infinisil>
Myrl-saki: Use an irc bouncer!
<{^_^}>
[nixpkgs] @mkaito opened pull request #37897 → Tarsnap: add symlink options and a restore service → https://git.io/vxugq
sigmundv_ has quit [Ping timeout: 240 seconds]
<Myrl-saki>
infinisil: Too lazy.
<Myrl-saki>
infinisil: Okay, that was a stupid reply from me.
<infinisil>
How so? I am probably at least as lazy as you are :)
<Myrl-saki>
infinisil: What I meant to say was that I don't like how bouncers work. I prefer client-on-ssh
<infinisil>
Ah
tomberek has joined #nixos
<Myrl-saki>
infinisil: Bouncers are too "artifacty"
<infinisil>
Myrl-saki: What do you not like about them?
<Myrl-saki>
infinisil: For example, timestamps don't work properly.
<infinisil>
They don't?
<infinisil>
Works just fine for me
<Myrl-saki>
infinisil: Because IRC (the protocol) does not define timestamps.
<Myrl-saki>
infinisil: Bottom-line. Bouncer messages are not like real messages.
<infinisil>
Hmm.. not sure what you mean, why would that only affect bouncers?
<Myrl-saki>
infinisil: Do you have a client-side plugin for your bouncer?
<infinisil>
It just relays whatever it got from the server
<clever>
Myrl-saki: i just ssh into a system where i leave irssi running in a screen session
<Myrl-saki>
clever: That's also what I do.
<Myrl-saki>
Well, did.
<clever>
because the irc client is never closed, the timestamps are intact
yorick has quit [Ping timeout: 252 seconds]
<Myrl-saki>
That made me data-hoard, so I stopped that lol.
<infinisil>
Myrl-saki: I don't, it's just weechat, but it does have some znc specific capabilities enabled
<clever>
$ du -h ~/irclogs/
<clever>
3.9G /home/clever/irclogs/
<infinisil>
But it works just fine without them
<Myrl-saki>
I had some weird attachments to my IRC messages that I was so sad about losing my DO instance...
joepie91 has quit [Ping timeout: 256 seconds]
<clever>
Myrl-saki: all of mine are on a local machine
<Myrl-saki>
infinisil: Ah, I think that's why. I was using irssi<->ZNC back then.
<infinisil>
bouncer is also really useful for being able to access on phone
<infinisil>
and to receive messages when you're not there of course
<Myrl-saki>
clever: It's a "compound" program. Tmux on my desktop, and it connects to my router, which runs suckless ii.
<Myrl-saki>
clever: Pretty cool, huh? :)
<clever>
Myrl-saki: ah, i'm just abusing the crap out of an aging gentoo machine
<clever>
Myrl-saki: it was last upgraded around 2014, lol
<Myrl-saki>
clever: That's the best case scenario, but my parents wouldn't allow that due to additional electricity costs. :P
srdqty has quit [Ping timeout: 264 seconds]
<clever>
Myrl-saki: i have 4 computers running 24/7 in my house
<clever>
Myrl-saki: and the desktop+laptop draw enough watts to sometimes trip the overload warning on the UPS
<infinisil>
clever: Whoa..
<infinisil>
Why 4??
<clever>
the desktop alone can sometimes trip the warning just from high cpu usage
joepie91 has joined #nixos
joepie91 has quit [Changing host]
joepie91 has joined #nixos
<Myrl-saki>
clever: I should get a UPS one day.
<clever>
infinisil: wait, 5
<infinisil>
I know one of them is your router
<clever>
infinisil: #1 is the "router", a 2U server with 3 gigabit ports
<clever>
#2 is the nas, nixos, 5 drives, zfs
srdqty has joined #nixos
<clever>
#3 is the old gentoo "server", it only runs an apache and irssi now
<clever>
#4 is the primary nixos desktop
<clever>
#5 is the nixos laptop
<infinisil>
Alright, but couldn't the NAS be combined with the router?
kmicklas has quit [Ping timeout: 260 seconds]
<clever>
#4 has 3 monitors, and #5 is beside it, and synergy joins them up, so it behaves like a 4-monitor setup
<clever>
infinisil: i setup the router before i had the NAS, and it only has a single ethernet port right now
<Myrl-saki>
clever: Also, if you're into more hardware funsies, that was a router with 16MB of RAM, half of which was dedicated to a tmpfs. I had to do qemu-binfmt-chroot to cross compile as it was a MIPS system.
<infinisil>
I plan on setting up a router myself too
<clever>
Myrl-saki: fun, i started linux with a 64mb P1? running redhat9
<Myrl-saki>
clever: I'm way too young. My first computer was a 2GB P4, but I had to use that from 2003 to 2013 or so.
<kerrhau>
infinisil: well, setting QT_XKB_CONFIG_ROOT to /etc/X11/xkb didnt work (after enabling services.xserver.exportConfiguration)
<infinisil>
clever: I may also do some stuff to combine 2 internet connections, plus adding vpn to all of that (because ISP seems to do some weird things), and some smart tc rules to be able to use the full bandwidth but not block interactive things
<kerrhau>
i should probably clarify that im not trying to package it (as it's already in nixpkgs)
<infinisil>
Oh I just had a super nice idea for nixos
<clever>
infinisil: i used to use tc, back when my router ran LFS and i only had 600kbyte/sec down
<clever>
now i have 300mbit down and i cant max it out, lol
<infinisil>
clever: Hah lucky, I'm on about an unstable 20-40MBit/s for one connection and a stable 10Mbit/s for another
<infinisil>
High ping for the first one and low ping for the second
<infinisil>
Wanna combine them smartly somehow
* Myrl-saki
stares with my 5Mb/s
<clever>
infinisil: iptables has a way to load-balance with some weights, and then bind each connection to a given interface
nek0 has joined #nixos
<clever>
infinisil: but the problem is that half your facebook http connections tie up one uplink, keeping it "busy" with idle connections, then all your high bandwidth stuff is stuck on the 2nd modem
<infinisil>
clever: Yeah, tc can also do a lot in that direction, especially when everything goes to a single server (my vpn) on the other end
<clever>
and tcp connections cant change uplink
<infinisil>
and that prevents these issues
<clever>
though if you aggregate 2 links with a vpn, you can bypass that
<infinisil>
Alright now my idea..
<infinisil>
How about having an option `system.pathsToBackup` onto which each module that adds a stateful directory adds an entry, so that in the end you can just read that option to know what things you need to backup
* infinisil
puts it on his todo list
<clever>
infinisil: also look into tarsnap
<infinisil>
Yeah i know it's a backup tool, this option could then be used by multiple backup backends
throwup has joined #nixos
nineteeneightd has quit [Ping timeout: 260 seconds]
pareidolia has quit [Ping timeout: 268 seconds]
<throwup>
hey, I know this probably isn't the right place to ask for this, but i need some help: I accidentally deleted my .config/gtk-2.0 folder (defaults only) and now lots of gtk2 apps seem to be broken. Is there a way to "restore" the default config?
<clever>
throwup: have you rebooted yet?
<throwup>
yes, why?
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
infinisil has joined #nixos
pareidolia has joined #nixos
thc202 has quit [Ping timeout: 264 seconds]
acarrico has joined #nixos
srdqty has quit [Ping timeout: 246 seconds]
michas_ has quit [Ping timeout: 276 seconds]
<elvishjerricco>
clever: Is that issue with store paths being held entirely in memory during `nix copy` tracked on github?
srdqty has joined #nixos
xcmw has joined #nixos
<throwup>
does anyone here know how I could fix my problem?
yyadavalli has joined #nixos
<yyadavalli>
Hi, I'm having trouble with applications installed with nix not finding the right fonts
<yyadavalli>
I'm using nix 2.0 installed on Arch Linux
<yyadavalli>
I've tried installing nerdfonts with nix, as well as from AUR, in either case emacs (installed using nix) is not able to find the font.
<yyadavalli>
Can someone please help
justanotheruser has joined #nixos
<clever>
elvishjerricco: not sure
<clever>
throwup: i would expect the desktop env to replace that on login
<clever>
throwup: since it doesnt exist for newly created users
justanotheruser has quit [Client Quit]
<throwup>
clever: well, I use a standalone wm, so...
justanotheruser has joined #nixos
<throwup>
clever: but I think i misinterpreted some of the errors I was getting, I should just be able to fix it on my own
<plakband>
The hackage libary I'm trying to use seems to not be available on nixpkgs yet (even though hackage says it is, but the link 404s), is there a way to explicitly tell nix to download it from hackage in my shell.nix, like stack's build-depends?
krey has joined #nixos
mbrgm has quit [Ping timeout: 248 seconds]
mbrgm has joined #nixos
<{^_^}>
[nixpkgs] @adisbladis opened pull request #37899 → qt5: Drop qt-5.9 → https://git.io/vxuwl
<{^_^}>
→ a8d08b04 by @grahamc: documentation-highlighter: init
<adisbladis[m]>
boomshroom: You could do it FSM-style and use pasta water or something :)
<{^_^}>
→ 378e05c6 by @grahamc: Merge pull request #37900 from grahamc/documentation-highlighter
<boomshroom>
I've had this machine for several years and it's just been named "desktop" or after the distro to disambiguate multiboot partitions: previously it was ${my_name}_nixos
<arkad>
anyone know how to get a headset mic to work in nixos?
<arkad>
using normal audio plug jack earphones
throwup has joined #nixos
<arkad>
audio works great but microphone does not work with a generic install of nixos
<arkad>
im trying to do this witout enabling pulse audio
<infinisil>
Why?
<infinisil>
Pulseaudio was pretty much made for this
plakband has quit [Quit: leaving]
<arkad>
because pulseaudio doesnt stay running when switching between TTY and xserver
<arkad>
atleast for me, when I start playing sound in xserver using pulseaudio, the sound is cut off when switching to TTY. This doesnt happen when using alsa
<kandinski>
how can I get at the .epub version of the nix, nixpkgs and nixos manuals?
<arkad>
alsa is just much easier to use than pulse in my opinion. does alsa have issues with microphones?
<Myrl-saki>
myrl@myrl:~$ wine --version
<Myrl-saki>
wine-3.3
<Myrl-saki>
feels good
<arkad>
plus, alsa seems to work better when running multiple apps. Using pulse audio I get some apps with audio and some with no audio. With alsa this is never a problem.
<arkad>
pulse sucks
<arkad>
someone needs to fix that junk
<arkad>
alsa rocks
<arkad>
but my mic doesnt work in alsa and I'm trying to figure out why
<arkad>
any suggestions?
<arkad>
pulse is a pita is why I dont want to use it
<infinisil>
arkad: pulsaudio actually uses alsa, it's like a higher level interface
srjek_ has quit [Ping timeout: 276 seconds]
<arkad>
but I will figure it out thanks anyways
<Myrl-saki>
infinisil: If pulseaudio works anyway.
* Myrl-saki
smugs
<arkad>
the problem is it doesnt work
<infinisil>
arkad: and you can get pulseaudio to work on tty by enabling the systemWide pulseaudio option
<arkad>
ok thanks infinisil let me try that right now
<Myrl-saki>
arkad: Do you have pa on rn?
<arkad>
i appreciate the help
<arkad>
@Myrl - I dont understand
<Myrl-saki>
arkad: Because I'm pretty sure, like 10% sure that it's because your mic source is wrong.
<infinisil>
Myrl-saki: has never failed for me, and there's a ton of modules for it
<Myrl-saki>
arkad: pa -> pulseaudio
<arkad>
oh good point myrl
<arkad>
let me try switching the jack around
<Myrl-saki>
arkad: On startup, my NixOS mic source is Line, but I don't even have any digital mic.
<hodapp>
I guess I could just copy the derivation and modify it myself but is there a "proper" way?
<arkad>
whats line?
<hodapp>
2758 like I linked
<hodapp>
oh nevermind
<hodapp>
not me :P
Hackapepper has joined #nixos
nuncanada has quit [Read error: Connection reset by peer]
<Hackapepper>
Hello, I'm trying to compile nix for another platform by using nix itself, but it has just failed. I'm totally new to nix so I'd be glad to receive some help. The output of my compilation is here: https://pastebin.com/LVwQg1tC
<Hackapepper>
the specific suspicious bit is: running test tests/linux-sandbox.sh... [FAIL] error: while setting up the build environment: getting attributes of path '/nix/store': No such file or directory
<Hackapepper>
I gave it a custom nix directory (as per my use case I need it, as I'm building it for another platform where I don't have root, so I can't write under /, just on the /home/user folder)
blonkhart has joined #nixos
<boomshroom>
Hackapepper: If you're building with nix, I'd recomend not setting any environment variables and just building a nix installation that uses the alternate store and then use that nix to build a system tarball that you can copy over.
<arkad>
arkad has quit [Quit: WeeChat 2.0]
<hyper_ch>
good morning folks
<boomshroom>
hyper_ch: Good evening to you from across the sea!
<boomshroom>
hyper_ch: Well If you were on the americas it would nearly be midnight, so I know you live somewhere in Afro-eurasia.
<Hackapepper>
boomshroom: The build line you can see in the pastebin was obtained with the help of some good folks from here. I don't really know what's the best way to approach what I want to do... cause it's the first time I work with nix. So when you say use the alternate store, I don't really know what you mean sorry
<hyper_ch>
boomshroom: currently in Phili
<hyper_ch>
and its way too hot here :)
<boomshroom>
Hackapepper: Try just this without the environment setting: `nix-build -E 'with import <nixpkgs> {}; pkgsi686Linux.nix.override { storeDir = "'$TARGET_MACHINE_HOME'/nix/store"; stateDir = "'$TARGET_MACHINE_HOME'/nix/var"; confDir = "'$TARGET_MACHINE_HOME'/nix/etc"; }'`
<hodapp>
and for some reason, pkgs.python36Packages.overrideAttrs (oldAttrs: rec { pkgs.mxnet = pkgs.mxnet; }); (not even overriding it, just testing) just gives "error: cannot coerce a set to a string"
<hodapp>
it perplexes me a bit that redefining it to exactly the same thing would cause an error
<boomshroom>
Hackapepper: Quick question, is the target really a 32 bit linux machine?\
<Hackapepper>
boomshroom: yes it is, 32bit custom Gentoo 8 years old with no root access
<boomshroom>
Hackapepper: Just making sure. Knowing the platform in question can greatly facilite debugging.
<Hackapepper>
boomshroom: nix seems my best bet to get modern SW to build & run on it without the hell of manually (cross)compiling everything (which I've already done but its impossible to maintain)
orivej has joined #nixos
<boomshroom>
Hackapepper: Nix can feel like magic at times. At other times it fails in mysterious ways.
<Hackapepper>
boomshroom: ok I'l try without the environment setting, but, I should leave NIX_REMOTE=local?root=$BUILD_PATH/rootfs/ right?
<Hackapepper>
otherwise where is it gonna build it?
<boomshroom>
Hackapepper: If you've already been using Nix just fine for other purposes, than it shouldn't be nessisary. I've never had to manually set NIX_REMOTE once.
<Hackapepper>
boomshroom: I've never used nix, this is my first try ever
jrolfs has joined #nixos
<boomshroom>
Hackapepper: Well in that case: run `nix-shell -p hello --run hello` just to see if that works.
<hodapp>
or... should I be using an overlay or packageOverrides here...
<Hackapepper>
boomshroom: yup, that worked
<boomshroom>
Are you running nix right now on the rootless sytem? Or are you using another system to bootstrap?
<Hackapepper>
another system to bootstrap
<Hackapepper>
to actually be able to run nix in the rootless system
<boomshroom>
Hackapepper: That simplifies things. In this case, it should be safe to leave off the NIX_REMOTE.
<Hackapepper>
I tried to compile nix from source in the rootless platform but it fails on the very first step
<Hackapepper>
and everyone agreed that the way is bootstrapping
<coconnor>
boomshroom: wait.. what's the computer's name? I missed that part
<boomshroom>
Hackapepper: I tried that myself and was able to get it working after manually installing the dependencies.
<boomshroom>
coconnor: vanessa. I'm not sure wether or not to capitalise it.
<Hackapepper>
boomshroom: I have all the dependencies but it fails anyways, but really, the system is a mess, it's not worth the effort to try to compile in it
<Hackapepper>
also, should I delete my previous rootfs folder and start from scratch?
<Hackapepper>
it has 2GB of already compiled stuff, it feels a bit sad haha
<Hackapepper>
I'll do a backup and give a try to execute it on the same rootfs
<boomshroom>
Hackapepper: Are you on NixOS, or are you on a different system and used the script installer?
<Hackapepper>
boomshroom: Ubuntu 16.04, used the script installer
jrolfs has quit [Ping timeout: 276 seconds]
<boomshroom>
Hackapepper: In that case, you're probably on a single user installation. The nix-build man page states that unless you're using the daemon in a multi-user installation, NIX_REMOTE should be unset.
<hodapp>
ugh, I'll just copy the derivation and edit it because nothing of override, overrideAttrs, packageOverrides, or overlays is making any sense
<Hackapepper>
ok, then I go back to my previous question, where is it gonna build the nix system I'm asking it to build? In the end I'll need to tar.gz that and extract it in my goal platform, right??
<Hackapepper>
sorry about the double question mark
<boomshroom>
Hackapepper: For now, I'd recommend building a nix version with the alternate store to use locally and use that to build the tarball. It will make dealing with the dependencies easier. You not only want a nix with the alternate store, but one _in_ the alternate store.
<boomshroom>
If you just do a nix-build like in the pastebin, the output will be put in a symlink called 'result' in your current directory. That would then have a bin folder with the various executables.
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vxu6G
<{^_^}>
→ 970f2b50 by @matthewbauer: Revert "justStaticExecutables: enable -dead_strip on mac to shrink closure"
<{^_^}>
→ 799e8c57 by @matthewbauer: Revert "shellcheck: dont statically compile"
<kandinski>
how can I get at the .epub version of the nix, nixpkgs and nixos manuals?
<Hackapepper>
boomshroom: I'm a bit confused by your last sentence: You not only want a nix with the alternate store, but one _in_ the alternate store. Should I just execute the gist script and wait? _if_ that finishes correctly, whats the next step? Executing the same thing again from the nix build in that result folder?
<boomshroom>
I'll show a somewhat different derivation for that since it's a little tricky if you don't what functions to call. Just run the gist without NIX_REMOTE.
<Hackapepper>
ok, running it without NIX_REMOTE
<Hackapepper>
boomshroom: oh wow, that was quick, that command finished, and I have the symlink result folder
Myrl-saki has quit [Ping timeout: 256 seconds]
<Hackapepper>
boomshroom: with the binaries being 32bit (the building machine is 64b)
<boomshroom>
Hackapepper: That might make the next step less efficient, but it's not that important. We won't be using that binary for long.
taktoa has quit [Read error: Connection reset by peer]
<boomshroom>
Hackapepper: You can try copying it into a terminal, but it would be easier to download and run `./result/bin/nix-build rootlessnix.nix`
<boomshroom>
kandinski: For nixpkgs, there's a makefile in the doc folder that can output an epub from the looks of it.
<boomshroom>
kandinski: Similarly, there's a nix derivation with a manualEpub attribute in nixos/doc/manual in the same repo.
<Hackapepper>
boomshroom: got your file, I'm adding flags to use better the computer I'm running this in (a server with 12 cores), so its: ./result/bin/nix-build rootlessnix.nix -j 10 --cores 10
<coconnor>
boomshroom: thanks!
<Hackapepper>
boomshroom: hehe error: creating directory '/home/nao': Permission denied I'll create the folder in the server, but that's kinda ugly :P
<boomshroom>
Hackapepper: I have my jobs set globally and if you plan on using Nix on your current machine more, I'd recommend doing the same.
<kandinski>
boomshroom: thanks
<Hackapepper>
boomshroom: whenever I have nix bootstrapped the rest of the work will be run in a VM with the OS of my ancient platform
<Hackapepper>
boomshroom: so I'm not really using this machine (its a buildfarm machine)
<Hackapepper>
boomshroom: I guess - ""${targetHome}/nix" - should have one less double quote
<boomshroom>
Hackapepper: Bingo.
<Hackapepper>
boomshroom: error: value is a function while a set was expected
<Hackapepper>
boomshroom: ok, this one I don't know
<Lisanna>
how do I enforce requiredSystemFeatures for local builds?
<boomshroom>
Hackapepper: To the manual!
<Lisanna>
I don't see how I can specify what supportedFeatures my local machine has
<Lisanna>
it only seems to be available for remote building, and I don't see a way to force remote building in that case
<boomshroom>
Lisanna: I think that has something to do with your machine knowing what it has, but can't tell what others have. Don't quote me though.
<Lisanna>
boomshroom huh?
<Lisanna>
how could my machine know what it has? I'd have to tell it somewhere
srdqty has quit [Ping timeout: 256 seconds]
srdqty has joined #nixos
<boomshroom>
Lisanna: I think that has something to do with your machine knowing what it has, but can't tell what others have. Don't quote me though. Intel x86 has a register called cpuid that encodes various capabilities your computer has. Odds are the CPU knows better than you what the CPU can do.
<boomshroom>
Lisanna: For something like kvm, the kernel keeps track of that kind of stuff and can probe the CPU itself for info on what it supports.
<boomshroom>
Sorry, I hit up when I didn't mean to.
<Lisanna>
boomshroom I don't think that's true. supportedFeatures isn't about the hardware capabilities so much as it's about your preference about what machines should be used for what
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @ryantm to master « gnustep.gui: 0.25.0 -> 0.26.2 »: https://git.io/vxuiA
<Lisanna>
For example, my local machine has kvm support, but I don't want any kvm builds to happen on my local machine
<Lisanna>
so, I would like to have "kvm" be omitted from my local machine's theoretical list of supportedFeatures
<boomshroom>
Lisanna: I don't actually know how to disable building on the local machine. What I did was spoof the local system into claiming it was something that it wasn't.
<boomshroom>
Lisanna: Is there any particular reason for you to hide KVM's existance from Nix?
<Lisanna>
boomshroom actually, that sounds like it would be a workable hack - if there was some way to disable building on the local machine, I could force it to go through the remote builder, which will enforce that.
<Lisanna>
boomshroom in this particular case, I run other processes on my local machine that cannot be run at the same time as a KVM app
<Lisanna>
and if both are run at the same time, they start crashing
<Lisanna>
VT-x exclusivity and all
srdqty1 has joined #nixos
<boomshroom>
Hackapepper: :facepalm: that would fix it. I swapped nix for nixStable2 (or nixUnstable) because in general, I'd recomend using Nix 2.0. Nix 1.x works fine though.
<Hackapepper>
"/home/nao/nix/store/7ldam5vbzm3icymvnp28k6znnkr0mfvy-bootstrap-stage1-stdenv-linux/setup: line 923: 20068 Bad system call (core dumped) $configureScript "${flagsArray[@]}""
<Lisanna>
ugh, I wish there was documentation on the --builders flag
srdqty has quit [Ping timeout: 240 seconds]
<boomshroom>
Hackapepper: huh. Maybe redo the first command to build the local bootstrap, but make it use the local architecture?
<Hackapepper>
boomshroom: ok, so do first "NIX_REMOTE=local?root=$BUILD_PATH/rootfs/ \ nix-build -E 'with import <nixpkgs> {}; nix.override { storeDir = "'$TARGET_MACHINE_HOME'/nix/store"; stateDir = "'$TARGET_MACHINE_HOME'/nix/var"; confDir = "'$TARGET_MACHINE_HOME'/nix/etc"; }' -j 10 --cores 10"
<Hackapepper>
(note the NIX_REMOTE is there and I'm using nix.override instead of pkgsi686Linux.nix.override)
<boomshroom>
Lisanna: I'm not sure of --builders, but I have used ~/.config/nix/machines.
marusich has joined #nixos
<boomshroom>
Hackapepper: I still don't think NIX_REMOTE is nessisary. If this still doesn't work, try with it set.
<Lisanna>
boomshroom I mean, I know --builders has a hack where you can pass '' to it and that will force local builds, I'm just wondering if there's a way to force it to do a remote build
<Hackapepper>
boomshroom: ok, without NIX_REMOTE then, and just normal nix, no 32bit stuff
<boomshroom>
Lisanna: Do your local and remote machines have different architectures?
<Lisanna>
boomshroom no, although that would be useful
<Lisanna>
(to solve this particular problem)
<boomshroom>
Hackapepper: Yes. the file I gave should be the same in the next step though.
<boomshroom>
Lisanna: Then I'm not sure. I was working on an Arm7 machine and told it that it was actually an x86_64 machine cross compiling for arm7. Since it couldn't actually run x86_64 builds, it would defer to my desktop. That said, I ran into problems when my desktop (now known as vanessa) tried running the arm executables.
<Hackapepper>
boomshroom: that comamnd finished, going for the second one with your gist (but modified for nix instead of nixStable2)
<Hackapepper>
boomshroom: it's actually compiling stuff, lots of it, so looks like we are on a good track, 12 cores working hard. What will be the next step if this finishes correctly? (dunno where are you based, I'm in Sydney, Australia, so we may have a big time difference)
<boomshroom>
Hackapepper: The make-system-tarball function used will... make a tarball... that can be extracted on the target machine and a package list that can be imported to bootstrap the database with all the dependencies copied over with nix itself.
<boomshroom>
I'm in Victoria, BC, Canada, so the other side of the Pacific.
marcioscp has joined #nixos
schoppenhauer has quit [Ping timeout: 256 seconds]
schoppenhauer has joined #nixos
marcioscp has left #nixos ["Leaving"]
<disasm>
FYI, 18.03 nixos-rebuild switch just killed my running X session (i3)
<boomshroom>
Hackapepper: I should mention that since you're using a non-standard store directory, it can't use the binary caches and has to build everything from scratch. Unforunately, that probably includes gcc.
<Hackapepper>
boomshroom: yup, i knew that from my trials yesterday. not only one, but two gcc... so i expect this to be running for at least 4-6h
<boomshroom>
kandinski: Are you in any way changing what Nix sees as the local system? `a 'aarch64-linux' is required to build '...', but I am a 'x86_64-linux'`
<kandinski>
I installed a week ago from the 18.03 image, but I'm now running unstable. It's my main laptop, and most everything seems to work fine.
<kandinski>
boomshroom: I don't think I've tampered with anything.
ryanartecona has joined #nixos
<kandinski>
boomshroom: I also failed while trying to build the nixos manual via the instructions in Chapter 35 of the manual, "Building Specific Parts of Nixos"
<boomshroom>
kandinski: I should mention I've never tried building the manual before so I don't really know what I'm doing. :P
<kandinski>
boomshroom: yeah, thanks for trying to help anyway :)
<kandinski>
I'm in a bit of a loop, because I want to load the manuals on my kindle so I can read them without distractions, but I can't, so I haven't read them yet so I don't know what I'm doing
<kandinski>
GOTO 10
<kandinski>
nice. I got the nixos manual in epub format.
<boomshroom>
kandinski: Nice!
<kandinski>
I also saw where someone removed pdf output because "nobody uses it in 2018"
<boomshroom>
kandinski: I would personally prefer epub over pdf if it weren't for the fact that everything can read PDFs.
<kandinski>
kinda well, the point is we can have derivations that build epub, mobi and pdf
<kandinski>
and let. people. choose.
<disasm>
kandinski: what commit are you on in that git repo you're building from?
<kandinski>
disasm: the one I pasted?
Crypt0x has joined #nixos
<disasm>
yeah
<kandinski>
ah damn
<kandinski>
yeah, I just read the message from that commit
<disasm>
huh, I don't have that commit anywhere, what branch is that?
<kandinski>
master
<kandinski>
it says "this repo is obsolete"
<disasm>
haha, what's your git remote? `git remote -v`
<kandinski>
I just deleted it in shame
<disasm>
haha
<disasm>
yeah, clone, nixpkgs from github.com/NixOS/nixpkgs
<disasm>
although, I am getting that same error on master
<kandinski>
I'm pretty sure when I cloned nix, nixpkgs and nixos, I just did something like "for repo in nix nixpkg nixos; do git clone git@github.com:NixOS/$repo.git; done
<kandinski>
so I never read the website notice (oops!)
<kandinski>
(that would have been yesterday or Monday)
<disasm>
can you switch to release-18.03 branch and try building the manual?
<kandinski>
I just built it where I am by doing `nix-build -A config.system.build.manual.manualEpub`
<kandinski>
in the nixos directory of nixpkgs repo
<kandinski>
I was just in the wrong repo, I think.
<kandinski>
disasm: this was on master branch. Do you still want me to switch to release-18.03 and try again?
<disasm>
kandinski: nope, if it worked for you, all is good :)
<kandinski>
thanks
<kandinski>
I still have to build the Nix and Nixpkgs manuals, though. I promise I'll figure out a way to document it for people coming after me.
<disasm>
oh, I was referring to nixpkgs
<kandinski>
yes, I built nixos manual from the nixpkgs repo
reinzelmann has joined #nixos
<disasm>
kandinski: do you get an error with `nix-build -A manualEpub nixos/release.nix`
justan0theruser has joined #nixos
justan0theruser has quit [Client Quit]
<kandinski>
disasm: yes, I just did. On master. Trying again on release-18.03...
justan0theruser has joined #nixos
<kandinski>
and no, no error on release-18.03
justanotheruser has quit [Ping timeout: 276 seconds]
<disasm>
kandinski: `nix-build -A manual --check nixos/release.nix`
<disasm>
same result on 18.03
<kandinski>
cheers
<kandinski>
disasm: I just built the manual using another path: nix-build --check -A manualEpub nixos/release.nix ``
<kandinski>
damn, sorry
aarvar has joined #nixos
<kandinski>
I meant to paste: `cd <nixpkgs>/nixos && nix-build --check -A config.system.build.manual.manualEpub`
Rusty1_ has quit [Quit: Konversation terminated!]
lord| has joined #nixos
hamishmack has quit [Ping timeout: 276 seconds]
leothrix has quit [Ping timeout: 276 seconds]
robstr has joined #nixos
leothrix has joined #nixos
krey has quit [Ping timeout: 265 seconds]
leothrix has quit [Ping timeout: 264 seconds]
Guanin has quit [Ping timeout: 268 seconds]
orivej_ has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
alhariel has quit [Ping timeout: 264 seconds]
<Hackapepper>
boomshroom: Hey mate, it died again with the same error I had with the way I was trying to build yesterday: https://pastebin.com/XwBtQBbF
<Hackapepper>
boomshroom: running test tests/linux-sandbox.sh... [FAIL] while setting up the build environment: executing '/home/nao/nix/store/bvrnk9njqrr7axdgpvfrd190kdaar9j1-bash-4.4-p19/bin/bash': No such file or directory
<boomshroom>
Hackapepper: Try an ls or file to see if it really does exist.
Guanin has joined #nixos
<Hackapepper>
boomshroom: I was just on it, the file DOES exist
<Hackapepper>
-r-xr-xr-x 1 magiclab magiclab 986K Jan 1 1970 /home/nao/nix/store/bvrnk9njqrr7axdgpvfrd190kdaar9j1-bash-4.4-p19/bin/bash
<boomshroom>
Hackapepper: What does `file` say about it?
<Hackapepper>
(1 january 1970 dated, funny)
<Hackapepper>
boomshroom:/home/nao/nix/store/bvrnk9njqrr7axdgpvfrd190kdaar9j1-bash-4.4-p19/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /home/nao/nix/store/n0w5c71h4wmw3abpr25pxphjgv9ylf6v-glibc-2.26-131/lib/ld-linux.so.2, for GNU/Linux 2.6.32, not stripped
<Hackapepper>
looks correct to me
<boomshroom>
Hackapepper: The timestamp gets set to the minimum value to improve determinism. Can you run the file manually? If you can't check the ld-linux the same way?
<Hackapepper>
I'm gonna run the command again without the -j 10 --cores 10 to get a better log on what is REALLY the first thing that failed
<Hackapepper>
boomshroom: the timestamp thing is pretty cool, thanks for explaining. I executed the bash binary and it does execute, even tho it fails with: bash: complete: command not found
<boomshroom>
Hackapepper: That's probably just auto-complete functionality being broken and shouldn't be that big of an issue.
<Hackapepper>
boomshroom: ld-2.26.so looks good too, ld-2.26.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=587786163ab19bdd68cb17ef85b2cf33df1e7759, not stripped
<Hackapepper>
boomshroom: ran that bash binary in GDB just to be sure it's correct, and it ran, no weird results (other than complete isn't there)
<Hackapepper>
haha actually, I was inside that bash binary and I didn't know (I just wrote exit 5 times in a row), so yeah, that binary is totally alright
<boomshroom>
Hackapepper: The good news is that the failure seems to just be the tests. If you want to try building without the tests, after the .override, and a `.overrideAttrs (old: {doCheck = false; })` you will need to put the rest in parentheses though.
<Hackapepper>
boomshroom: thank you a lot, I didn't know what you meant
<Hackapepper>
is there a way like in docker to attach yourself in the moment that test fails to be in that same environment to debug?
<boomshroom>
Hackapepper: Nix managed to build and it tried to make sure it actually built correctly. It claims that something went wrong that would prevent it from working, but we'll see how well it actually works after moving it over.
pie_ has quit [Ping timeout: 256 seconds]
<boomshroom>
Hackapepper: You can use a nix shell and then manually go through the build steps, but it requires manually calling the unpackPhase, configurePhase, and buildPhase.
<Hackapepper>
boomshroom: I'm too much of a noob to do that right now haha
<Hackapepper>
but thanks for the explanation
<Hackapepper>
you forgot {} after the import message again btw, dunno if that would supposedly not be needed
<Hackapepper>
boomshroom: oh no, it still tried to run the same tests, and ofc it fails
<boomshroom>
Hackapepper: You still need the {}. It would contain any arguments for the whole repository, but we're just using the defaults.
zzamboni has joined #nixos
<dmj`>
so is the hydra-evaluator broken?
<dmj`>
getting "error: access to path '/nix/store/p9znk9sn5b3klv7pvjb8hd34pzkr1zgh-source' is forbidden in restricted mode” a lot
<dmj`>
what is restricted mode?
<dmj`>
the clever mentioned this has to do importing from a derivation
Ariakenom has joined #nixos
hamishmack has joined #nixos
<elvishjerricco>
dmj` '
zzamboni has quit [Client Quit]
<elvishjerricco>
dmj`: I believe this was fixed in Nix 2.0
<elvishjerricco>
but IIRC, it also required a change to `callCabal2nix`
zzamboni has joined #nixos
<dmj`>
elvishjerricco: so I have Nix 2.0 on my machine, but I might not have latest `callCabal2nix`, you wouldn’t by chance have the PR number handy
<elvishjerricco>
dmj`: Hydra has to be built with Nix 2.0
<elvishjerricco>
looking at the commits on callCabal2nix, I can't seem to remember which one was relevant :/
<dmj`>
sure, so hydra works, but then it seems the derivations its attempting to evaluate use callCabal2nix
<elvishjerricco>
dmj`: Right. Hydra does not use your system nix installation for evaluation. It links with the Nix library itself and does evaluation itself.
<Guest81264>
So I remade my partition table, and reran nixos-generate-config + nixos-install on an existing system, it booted correctly but kde freezes on load
xAFFE has left #nixos ["Error from remote client"]
<Guest81264>
And I have permissions issues in /nix
<Guest81264>
should I just nuke things and start over or is there a way to reinstall nixos on a system
<Hackapepper>
boomshroom: any idea why it is still running the tests? typo maybe? I'm trying to look for examples but seems is not that common to disable tests
* dmj`
wonders if he should cherry pick
<elvishjerricco>
dmj`: Yea. I guess `unsafeDiscardStringContext` isn't allowed in restricted evaluation mode?
<boomshroom>
Guest81264: I don't know how to solve the issue, but the moment I tried installing KDE after using NixOS for a while, my system couldn't get past the login screen until I disabled KDE.
<dmj`>
elvishjerricco: you think this would be cherry-picked into `nixpkgs-unstable`? Maybe even peti would need this as well
<elvishjerricco>
dmj`: Note that there was a bunch of development around that function around that time. So you might have to cherry pick a few things
<elvishjerricco>
dmj`: That should definitely already be on unstable
<elvishjerricco>
I think
<Guest81264>
huh, for me it seems like it's just a permissions/ownership issue, but yeah I'll try disabling kde for now, did you re-enable it later?
<Guest81264>
I mean right now I'm just running irssi in a terminal :P
<boomshroom>
Hackapepper: No. I tried the command on my own system, without the first-stage build and it worked perfectly. Unfortunately, everything got installed into /nix so the result won't actually work.
<dmj`>
elvishjerricco: ah nice, unfortuantely, I think the `nixpkgs` I’m pinning to in a few of my repos doesn’t have it...
<dmj`>
I could bump the hash, but that might break a few other things...
<elvishjerricco>
dmj`: Are you sure your Hydra has nix 2.0?
<elvishjerricco>
The web interface will tell you the nix version linked at the bottom of the page
<elvishjerricco>
shlevy did say that none of the prereleases had the commit that fixed it
<elvishjerricco>
not sure if he was right though.
<dmj`>
ah, I think hydra is using my system nixpkgs though… the nixos-nixpkgs
<dmj`>
so maybe a `sudo nix-channel —update` is in order ...
<elvishjerricco>
dmj`: Yea I had to set `services.hydra.package = pkgs.hydra.override { nixUnstable = pkgs.nixStable2; };` for 17.09. Should be `nixUnstable = pkgs.nix` on current nixos-unstable
<Hackapepper>
boomshroom: :( damn, what's next then? try with the REMOTE flag?
rosa has quit [Quit: rosa]
<boomshroom>
Hackapepper: Sure, why not? :P
rosa has joined #nixos
<dmj`>
elvishjerricco: ah nice, let me try this out
<kandinski>
I've managed to build the epub for nixpkgs and nixos. Now I'm working on building the nix documentation. I've started by running `./bootstrap.sh` on a fresh nix checkout, and I find this: https://pastebin.com/GSepMaUZ
<kandinski>
I'm running nixos-unstable if that is needed information.
Ariakenom has quit [Read error: Connection reset by peer]
lord| has joined #nixos
zzamboni has quit [Quit: Leaving.]
alex`` has joined #nixos
zzamboni has joined #nixos
zzamboni has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
davidlt_ has joined #nixos
sanscoeu_ has joined #nixos
sanscoeur has quit [Ping timeout: 260 seconds]
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nixos
<unlmtd>
how do I set the options in `nixos/modules/virtualisation/containers.nix` when creaating containers? Id like to enable IPv6 and disable IPv4 (which I think should be the default since IPv4 is broken)
lattice has joined #nixos
lattice has quit [Client Quit]
semilattice has joined #nixos
<unlmtd>
do I just add those options in the containers' `configuration.nix` ?
<unlmtd>
that doesnt seem like how this works to me
zzamboni has quit [Ping timeout: 264 seconds]
<unlmtd>
ahah nevermind thats exactly how it seems to work
zzamboni has joined #nixos
semilattice has quit [Remote host closed the connection]
vidbina has joined #nixos
<unlmtd>
ahh well that would work declaratively, but I was using `nixos-container` command, so the question kind of still stands, in this case
<{^_^}>
[nixpkgs] @garbas pushed commit from @davidak to master « nixos/systemd: add option for cgroup accounting »: https://git.io/vxu54
civodul has joined #nixos
<infinisil>
Hackapepper: you should be able to disable checks by replacing `with import <nixpkgs> {}; pkgsi686Linux.nix.override` with `with import <nixpkgs> {}; (pkgsi686Linux.nix.overrideAttrs (old: { doInstallCheck = false; })).override`
simukis has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
zzamboni has quit [Ping timeout: 264 seconds]
zzamboni has joined #nixos
reinzelmann has quit [Quit: Leaving]
zzamboni has quit [Ping timeout: 240 seconds]
pie_ has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
ma27 has joined #nixos
MP2E has quit [Remote host closed the connection]
Tucky has joined #nixos
zzamboni has quit [Ping timeout: 268 seconds]
xeji has joined #nixos
MP2E has joined #nixos
zzamboni has joined #nixos
chisui has joined #nixos
roberth has joined #nixos
spear2 has joined #nixos
zzamboni has quit [Ping timeout: 240 seconds]
jetien has joined #nixos
vidbina has quit [Ping timeout: 264 seconds]
zzamboni has joined #nixos
vidbina has joined #nixos
vaninwagen has joined #nixos
zzamboni has quit [Ping timeout: 264 seconds]
spear2 has quit [Quit: Leaving]
vidbina has quit [Ping timeout: 264 seconds]
MP2E has quit [Remote host closed the connection]
MP2E has joined #nixos
ixxie has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
spear22 has joined #nixos
<ixxie>
dotlambda: I pinged you on a couple of PRs if you got some time ^^
spear22 has quit [Client Quit]
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<jetien>
Is there any documnetation or guide on how to deploy system packages from a custom channel? Do you pass your own package collection to the function in /etc/nixos/configuration.nix ? If so, how?
zzamboni has joined #nixos
<ertes-w>
is there a way with nixos-rebuild to 'rebuild' one system and 'boot' another similar system? i'm in the process of making my system redundant, so if my main disk fails i can immediately reboot from my backup disk
<ij>
Why isn't there a function in nixpkgs to build any ruby version? There are, like, just a couple there right now.
<manveru>
i try to keep all the officially supported versions of MRI in
<manveru>
the build process could probably be opened a bit... especially if you don't need the railsexpress patches
<ij>
Oh, I see. So it would make sense for me to change the ruby requested in the Gemfile. But(!) wouldn't it be nice if I could build whichever ruby myself? Is that hard to do?
zzamboni has quit [Ping timeout: 256 seconds]
<ij>
I tried to make a little patch in my local fork, but something didn't work.
winem_ has joined #nixos
* ij
destashes, retries
<LnL>
I made an expression for 1.8.7 a while back, wasn't that hard
<ij>
manveru, (generic { … }).override({ useRailsExpress = false; })? That still complains about the chmod.
<yrashk>
Who'd be the best person to ping about this PR https://github.com/NixOS/nixpkgs/pull/36957? Unlike other inits that I've been sending over, this one seems to be ignored.
sigmundv_ has joined #nixos
<manveru>
ij: sorry, don't have much time right now since i'm at work
<ij>
manveru, Sure, not urgent. I'm just using rbenv ruby-build now.
<manveru>
generally you should use secure ruby versions if possible :)
zzamboni has quit [Ping timeout: 264 seconds]
<manveru>
but i'll try and provide some generic way tonight
<ij>
That would be pretty cool.
<srhb>
Anyone with wireguard experience on? I'm trying it out for the first time, and it looks from wg show like I'm connected (handshakes and transfer look alive) but I can't ping anything at all. allowed ips is 0.0.0.0/0. Any clues to how I might debug this?
zzamboni has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
MP2E has quit [Remote host closed the connection]
tmaekawa has joined #nixos
pietranera has joined #nixos
zzamboni has quit [Quit: Leaving.]
<pietranera>
Hello, I've just tried to rebuild nixos [Linux 4.15.7, NixOS, 17.09.3159.c665fcca9e7 (Hummingbird)] and primus-lib failed to build with "while setting up the build environment: executing ‘/nix/store/mf3jxszrlhzpmv1qraxb88fxnffq8mkr-bash-4.4-p12/bin/bash’: Exec format error". That is, it's trying to run a 32-bit executable on a 64-bit system. Does anyone have pointers? Thanks!
tmaekawa has quit [Ping timeout: 276 seconds]
Crypt0x has quit [Quit: Crypt0x]
zzamboni has joined #nixos
<bennofs[m]>
Shouldn't running 32 bit on 64 bit work fine? (multilib)
jetien has quit [Quit: Leaving.]
<bennofs[m]>
what does `file /nix/store/mf3jxszrlhzpmv1qraxb88fxnffq8mkr-bash-4.4-p12/bin/bash` say?
<Dezgeg>
are you using linuxPackages_hardened?
goibhniu has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
jetien has joined #nixos
vidbina has joined #nixos
nick_l has joined #nixos
<nick_l>
How can I setup DNS such that it works like on MacOSX where lookups are done possibly in parallel even and the first server to respond is used?
ottidmes has joined #nixos
<nick_l>
(I am in a hostile network environment where basic things like DNS do not properly work. )
<nick_l>
Two servers are in my resolv.conf, but only one of them actually works.
newbie|6 has joined #nixos
coot has joined #nixos
coot has quit [Remote host closed the connection]
zzamboni has quit [Quit: Leaving.]
the_real_plumps has quit [Remote host closed the connection]
jetien has quit [Quit: Leaving.]
Synthetica has joined #nixos
__Sander__ has joined #nixos
jetien has joined #nixos
<srhb>
nick_l: I find that the most flexible solution is almost always to have your own dns server.
<srhb>
nick_l: Then you always point at that and let it handle all the trickery.
the_real_plumps has joined #nixos
<srhb>
nick_l: For instance, with dnsmasq, what you're asking for is as simple as starting it with --all-servers
<nick_l>
srhb: the nixos module doesn't support that, does it?
zzamboni has joined #nixos
<srhb>
nick_l: If it doesn't, it's as simple as overriding the ExecStart of the service.
<nick_l>
srhb: overriding stuff is typically not documented in NixOS.
<srhb>
nick_l: foo.bar.baz = newvalue :)
<srhb>
nick_l: Anyway, looking at the dnsmasq manual it appears that every long option to the daemon can also be passed in the configuration file, only without the leading dashes.
<nick_l>
srhb: the NixOS module as it currently exists breaks DNS completely. Thanks for your comments.
<srhb>
Verbatim: "The format of this file consists of one option per line, exactly as the long options detailed in the OPTIONS section but without the leading "--"."
<srhb>
nick_l: Uh, what?
aarvar has joined #nixos
<nick_l>
nick_l: I enabled it without setting additional servers and even with 8.8.8.8.
<nick_l>
srhb: In both cases complete dns resolution failure.
<{^_^}>
→ 232c39e7 by @xeji: libsemanage: 2.4 -> 2.7
<{^_^}>
→ ea7507b9 by @xeji: libselinux: 2.4 -> 2.7
<srhb>
Yes, looks like it actually starts its own dnsmasq instance
asuryawanshi has quit [Remote host closed the connection]
<nick_l>
srhb: nixos/modules/virtualisation/xen-dom0.nix also does it.
<nick_l>
srhb: and it all uses port 53, which is rather silly.
<srhb>
So I'm guessing that libvirtd binds its dnsmasq instance to _some_ interfaces
asuryawanshi has joined #nixos
<srhb>
But without specifying further in the global instance, it tries to bind to _all_ interfaces
sigmundv_ has joined #nixos
<srhb>
So you probably just need to extraConf whatever interfaces you want it to bind to
<nick_l>
srhb: that might be the case, let me check.
<nick_l>
srhb: correct it binds only to vibr0
<nick_l>
srhb: so, then the logic in the NixOS module needs to be modified to bind to at least the physical interfaces by default. I.e. wifi and ethernet.
<srhb>
So you probably want interface=lo and bind-interface in your dnsmasq.conf
<srhb>
No no
<srhb>
You'll be looking up at 127.0.0.1
<srhb>
Not your wifi or ethernet :)
<srhb>
the dnsmasq at 127.0.0.1 will then lookup whatever for you upstream.
jensens has joined #nixos
ma27 has quit [Ping timeout: 265 seconds]
<srhb>
I'm not sure if the default name server cache daemon could also be set up like this.
<nick_l>
srhb: now, I can finally enjoy a reasonable internet connection again on a broken network \o/
<srhb>
nick_l: Woo!
ThatDocsLady_ has joined #nixos
<srhb>
hyper_ch: Did you use wireguard?
ThatDocsLady has quit [Read error: Connection reset by peer]
<Xyoff>
Is there such a thing as a systemd-free nixos? Is that possible, given how nixos works, or am I an idiot for assuming that systemd is somehow a hard dependency for nixos?
<srhb>
Xyoff: systemd is very baked into NixOS. That hasn't stopped some people from doing it anyway.
deepfire has quit [Ping timeout: 240 seconds]
maurer has quit [Read error: Connection reset by peer]
<nick_l>
srhb: yes, the first goto reaction is "I just want everything directly available".
<Xyoff>
srhb: I did mean nix-shell, see what I mean
<srhb>
nick_l: Hm.. Personally I just cargo culted a lot of shell.nix files initially. At some point I needed to learn to spin my own.
<srhb>
nick_l: Oh, yes, mentally it is.
<srhb>
Xyoff: Ah :-P
<Xyoff>
It's hard to get out of the mainstream linux mindset of system installations of software etc
* srhb
nods
<nick_l>
srhb: I put stuff in my system env and for stuff to be shared with others I use nix-shell.
<srhb>
Coming from cabal sandboxes and stuff it was pretty easy to transition for me.
<Xyoff>
in my head I found it complicated to separate out what the system had installed and what my user had
<srhb>
Xyoff: Yes, well, it _is_ more complex.
<Xyoff>
I read a lot about the haskell stuff, never written in that
<Xyoff>
Looks pretty good for it though
<srhb>
I think the payoff is huge though.
<TweyII>
Xyoff: One of the advantages of NixOS is that you barely have to interact with systemd ;)
<Xyoff>
TweyII: True enough
deepfire has joined #nixos
<Xyoff>
I did like the nixos container thingy, too, with systemd-nspawn
<srhb>
nick_l: I keep my system env as minimal as possible
<Xyoff>
srhb: That was my approach too, I had a huge user env on a minimal system
<srhb>
I keep my user env as minimal as possible, too. :-P
<srhb>
In fact, when I choose between the two, I stick things in system env before user env.
<nick_l>
srhb: how does that work in practice? I.e. where is "file" installed?
<srhb>
Essentially: Minimal system env, empty user env, shells all the way
<Xyoff>
One of the things I was less fond of was that _some_ setups are very different, so where on a normal system I might think "I need X, and KDE 5, and I want Virtualbox", with Nixos I had to do quite different nix expressions to do that
<srhb>
nick_l: File is system.
<Xyoff>
And then different again to install something like a browser
* srhb
nods
<nick_l>
srhb: firefox?
<srhb>
nick_l: system env :) Essentially all non-dev is my system env.
<srhb>
(This is a bit untrue now because of home-manager)
<srhb>
But I want nix-env -q to be empty
<manveru>
home-manager <3
<goibhniu>
I also found nix-shell reminded me of virtualenv (python), but way better. I would never have installed python stuff globally anyway, so it wasn't such a leap.
<srhb>
nick_l: I think my main rule of thumb is: There is two ways to have packages available: 1) Always declaratively (system or home-manager) 2) Transiently declarative (shell.nix)
ma27 has joined #nixos
<srhb>
That has worked very well for me.
<srhb>
I only nix-env stuff for something I need for like an evening, and then periodically wipe it
orivej has quit [Ping timeout: 264 seconds]
<srhb>
My main concern is invisible state, which nix-env tends to become imo.
<TweyII>
srhb: ‘nix-env -q’ shows you most of your env state
simukis has quit [Quit: simukis]
<srhb>
Yep.
<srhb>
Except... What are they actually? I could have had all manner of overrides on them.
<lejonet>
srhb: for someone like me that does all kinds of weird things with a myriad of weird binaries, nix-shell and nix-env for me looks like salvation from a almost unmaintainable mess I have on my desktop.... xD
<srhb>
lejonet: :D
<lejonet>
Atm I'm kindof in a dependency hell everytime I want to upgrade... :P
<srhb>
More declarative more better!
<Xyoff>
nixops is also very nice
<lejonet>
Its just, taking the jump to nixos on my desktop, that is going to require quite some effort lol :P
<srhb>
anyway, I'll stop evangelizing now :-)
<lejonet>
Xyoff: its really nice :)
<manveru>
developing with nix-shell is just perfect for me, since i tend to hop between a dozen languages with weird dependencies and versions...
<lejonet>
srhb: xD
<srhb>
lejonet: I had a really short stint on Arch and then NixOS as my daily driver.
<lejonet>
srhb: I've got maybe 7 years or more on gentoo ;)
<srhb>
I haven't used Gentoo since... What, around 2002
<lejonet>
And had a short stint with A LOT of distros :P
<ottidmes>
srhb: I've got a question about home-manager, am I right to understand that its file mechanism (the $HOME equivalent of /etc) only allows for symlinks?
sanscoeur has joined #nixos
humanoyd has quit [Ping timeout: 240 seconds]
<manveru>
i do all my development via pinned nixpkgs in shell.nix, my system is rock-solid 17.09 still, and home-manager can use 18.03... try doing that on a mac :P
<manveru>
ottidmes: yeah
<srhb>
ottidmes: It's essentially what the activation scripts do to /etc yeah
<srhb>
ottidmes: (It's even the same system underneath the hood)
<lejonet>
srhb: I was looking at doing a lxd approach because I CTF regularily, but now I'm thinking about just doing nix-shells for that instead, a lot more lightweight, with same effect
<srhb>
CTF?
<lejonet>
Capture The Flag
<srhb>
I don't understand that in this context :P
<srhb>
Oh, as in network cracking?
<TweyII>
Why does the gcc package provide a ‘c++’ symlink but not a ‘cc’ symlink?
<lejonet>
Usually its a competition with a bunch of tasks in different areas like pwning, forensics, crypto and such
<TweyII>
s/gcc/gcc-unwrapped/
<srhb>
lejonet: Right, cool!
<srhb>
lejonet: Sounds like an obvious candidate for a toolbox shell.nix
sanscoeu_ has quit [Ping timeout: 265 seconds]
<srhb>
nix-shell -p myPwningToolbox :-)
<TweyII>
And how can I get one into my environment? (I'm trying to build a FHS environment to build rust, which wants to link using something on the path called ‘cc’)
<lejonet>
srhb: its great deal of fun, but yeah... unknown binaries and weird deps is the norm xD
ixxie has joined #nixos
<Xyoff>
lejonet: I'm on gentoo now, on and off about five years
<Xyoff>
I keep coming back, lol
<lejonet>
srhb: I should move my VMs to libvirt so its a lot easier to move to nixos
<srhb>
TweyII: Shouldn't you be using stdenv.cc ?
<lejonet>
Xyoff: know what you mean :P
<srhb>
TweyII: Specifically stdenv.cc.cc
<TweyII>
srhb: Is that unwrapped?
<srhb>
Oh.. No.
Harpalus has quit [Quit: Leaving]
<ottidmes>
manveru: srhb: But environment.etc allows you to not make it a symlink: https://nixos.org/nixos/options.html#environment.etc.%3Cname%3F%3E.mode, but when I checked how home-manager implements files, it seems to symlink all
<TweyII>
srhb: I'm explicitly trying to produce impurely-linked binaries (for distribution)
<Xyoff>
srhb: so good they named it twice?
<srhb>
TweyII: I see.
<TweyII>
srhb: gcc-wrapper doesn't like that at all :)
<srhb>
Xyoff: Yeah!
<Xyoff>
:D
<manveru>
ottidmes: do you need something to be not a symlink?
<srhb>
TweyII: I'm not sure it actually exists outside the wrapper. May need to just symlink it to gcc
<ottidmes>
manveru: Not really, I just know there exist programs that do expect them not to be symlinks. I really want to have something more general than what home-manager limits to $HOME and environment.etc to /etc
srdqty1 has quit [Ping timeout: 268 seconds]
<TweyII>
srhb: Weird!
<manveru>
ottidmes: afaik the only way to make a copy instead is to set it executable, but it shouldn't be hard to add such a feature
<srhb>
TweyII: I think so. It's "compile this with some unspecified version of the standard, good luck"
<ottidmes>
manveru: The "has the file changed" bit becomes more complex
srdqty1 has joined #nixos
<srhb>
TweyII: Or it used to be at least.
<ottidmes>
manveru: Yeah, but that is what is being put in the /nix/store, so how it is implemented right now, its still symlinks
<manveru>
ah, so it's linkNewGen
<manveru>
in theory home-manager can check if the checksum of a file is the same as in the previous generation and replace it
<manveru>
and otherwise won't touch it
<manveru>
if there's no previous generation, you have to remove it yourself
<ottidmes>
manveru: yeah, all I could think of was doing a cmp on the file in the target location (i.e. $HOME) and the original file (i.e. found in the gen in /nix/store)
<manveru>
or we could add an option that's like `alwaysOverwrite` and it'll just ignore existing versions of that file
<manveru>
that'd be a first step anyway :)
<TweyII>
srhb: It's not like gcc is better in that regard
asuryawanshi has quit [Ping timeout: 240 seconds]
<manveru>
haven't needed such a feature yet, but if you do, rycee is always happy about PRs
<ottidmes>
manveru: otherwise you will have to resort to state, keeping track of change times
<manveru>
gotta get back to work
<ottidmes>
manveru: Yeah, but I want it outside of $HOME as well, so I guess its out of scope for home-manager. I already have the overwrite by default working
<ottidmes>
manveru: Ok, thanks for things along!
<manveru>
i think you can set home.homeDirectory ;)
raynold has quit [Quit: Connection closed for inactivity]
knupfer has joined #nixos
<pietranera>
Trying to ask again (will pay more attention this time!)... I am failing to buld primus-lib on nixos 17.09 with 64-bit *hardened* kernel 4.15.7 because the derivation wants to use a 32-bit bash (primus-lib is built using the 32-bit packages). Dezgeg suggested that this may be caused by the *hardened* kernel (I think it disables 32-bit emulations). Is there a workaround? primus-lib is a dependency fo bumblebeed that I need to use.
bkchr has joined #nixos
<pietranera>
Thanks!
pie_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
Neo-- has joined #nixos
<TweyII>
pietranera: Is it okay to just use a 32-bit bash?
<TweyII>
You could build with stdenv_32
<pietranera>
well, when I do nixos-rebuild, I get this error:
<pietranera>
building path(s) ‘/nix/store/299qxz52jma00r79nhkhr0r27qg9gvz7-primus-lib-2015-04-28’
<pietranera>
while setting up the build environment: executing ‘/nix/store/mf3jxszrlhzpmv1qraxb88fxnffq8mkr-bash-4.4-p12/bin/bash’: Exec format error
<pietranera>
builder for ‘/nix/store/s9p4828i5zfsmj0z6gsz1p3pkglz08x2-primus-lib-2015-04-28.drv’ failed with exit code 1
<pietranera>
in fact, that bash is a 32-bit executable
<pietranera>
but I cannot execute it
<{^_^}>
[nixops] @rbvermaa pushed to master « Release notes for 1.6 »: https://git.io/vxzma
<pietranera>
AFK
<bkchr>
Hi, is there some definitive guide for priting under nixos? I wanted to use `hplip`, but it does not detect my printer in the local network. I tried to open 5353 and 427 udp ports, but it still does not find the printer. If I flush iptables, it can detect my printer. It is really weird. I also tried to use CUPS directly and that detects my printer with avahi, but when I want to print it says that it can not connect to the printer.. :(
<etu[m]>
gchristensen: I would never find the time for that :O
<gchristensen>
I don't have to commute, which saves a lot of timee
<etu[m]>
Ah :)
<pietranera>
FTR, to make primus/primus-lib build on linux hardened, I had to create an overlay for primus where primusLib_i686 was set to null (also, nixos option docs for nixpkgs.overlays has a syntax error: there should be no semicolon before the closing round paren).
<{^_^}>
[nixpkgs] @shlevy pushed 2 commits to release-18.03: https://git.io/vxzCz
<{^_^}>
→ ae174ee2 by @shlevy: haskell.compiler.ghc8{22,41}: Fix abi-depends non-determinism.
<{^_^}>
→ 8e34b6de by @shlevy: Merge branch 'staging-18.03' into release-18.03
knupfer has joined #nixos
<disasm>
I remember the days I used to get 9 hours of sleep or even 8... Lately the norms been less than 6 :(
<gchristensen>
I also have no children :P
<disasm>
gchristensen: that helps :)
<srhb>
Huh, the wireguard module is really weird. It appears to add a default route just fine, but then there's no route to reach the actual wireguard endpoint via some other means. How does that make sense?
zzamboni has quit [Quit: Leaving.]
AMDmi3 has quit [Remote host closed the connection]
<srhb>
Networking. Graahh.
AMDmi3 has joined #nixos
zzamboni has joined #nixos
<disasm>
gchristensen: is there a trick to building the docs recently? I got this error when I was helping someone last night: https://github.com/NixOS/nixpkgs/issues/37903 -- trying to test out your highlight PR :)
<gchristensen>
wat
<gchristensen>
I thought ofborg tested for this
<gchristensen>
disasm: unfortunately my PR only applies to nixpkgs docs, not nixos docs though
<TimePath>
srhb: I like to mis-spell it 'notworking'
zzamboni has quit [Ping timeout: 246 seconds]
<srhb>
TimePath: Yes.. :P
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<disasm>
gchristensen: it's possible ofborg has a cached options for aarch64?
zzamboni has joined #nixos
<pbogdan>
disasm: try building with nix-build -A manual.x86_64-linux
<lexchill>
I wish nix lang could be visual, with animated emojis
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @ryantm to master « gegl_0_3: 0.3.28 -> 0.3.30 »: https://git.io/vxz4J
<disasm>
I know how to create nixos tests within nixpkgs, but lets say I have an independent repo which has it's own default.nix and depends on nixpkgs for building. Now I want to add a test to that repo that essentially runs the `./result` file it generates and then runs curl to test some things. Anyone have some examples of how I could add this functionality?
zzamboni has quit [Ping timeout: 240 seconds]
<gchristensen>
you can make a nixos test in your othere repo
<TimePath>
lexchill: you might also like projectional editing
zybell has quit [Ping timeout: 240 seconds]
mounty has quit [Ping timeout: 268 seconds]
<disasm>
gchristensen: that's what I was thinking, do you have an example of a repo that does that I could look at to setup the scaffolding around it?
<gchristensen>
well jetpants does it, but that is a LOT of scaffolding for a simple test
<gchristensen>
basically just import <nixpkgs/nixos/maketest> or whatever in your own repo and call it done
<lexchill>
TimePath any tools, editors, IDE's you would recommend to check out?
mounty has joined #nixos
<nick_l>
I specified a nix expression mypackage to be in the systempackages of a node, but how do I reference that package in a module. The module (with its imports) is in a different file (the network description).
kreisys has joined #nixos
<sphalerite>
pbogdan: I had to change sourceRoot=source/core to sourceRoot=$sourceRoot/core in ghc-mod-core.nix, and it's still not building for me… do you have an overlay or something that might be making a difference?
orivej has joined #nixos
<sphalerite>
I'm getting errors about it missing '<.>'
zzamboni has quit [Ping timeout: 256 seconds]
<TimePath>
lexchill: none in particular, just the concept you might find interesting if you like the idea of code blocks
zzamboni has joined #nixos
AMDmi3 has quit [Ping timeout: 246 seconds]
AMDmi3 has joined #nixos
<pbogdan>
sphalerite: hmm, no, I don't have any other haskell-related changes
<kreisys>
Hey all I have a question about fixed point. I'm having a not-so-important issue that's just making me curious... for some reason, if I do something like 'self: super: { packageJson = importJSON "${self.src}/package.json"; }' everything works great. but if I change 'self' to a destructuring assignment like '{src}: super: { packageJson = importJSON "${src}/package.json"; }' I get an infinite recursion. I just want to understand why and what's the
<kreisys>
difference
<sphalerite>
pbogdan: weird. It can't compile core/GhcMod/CabalHelper.hs because of <.>
zzamboni has quit [Ping timeout: 240 seconds]
<disasm>
ok that was entirely way too easy gchristensen :) I think I might just have to start adding tests to all my current projects, lol!
<gchristensen>
Yes!
<sphalerite>
kreisys: because the destructuring thing needs to evaluate the full key set of self, which includes your overlay
<sphalerite>
kreisys: I'm not 100% sure about nix's evaluation semantics, but it might be lazy about it (and work) if you use {src, ...} instead
zzamboni has joined #nixos
zybell has joined #nixos
<kreisys>
oh sorry... I *did* use the ellipsis I just forgot it in the question
<kreisys>
I should really start using copy-paste instead of retyping everything :P
<pbogdan>
sphalerite: the sourceRoot thing sounds familiar though, but IIRC would suggest you are building from older nixpkgs ?
<kreisys>
but yeah you get infinite recursion with or without the ...
<sphalerite>
kreisys: right. But yeah it'll probably still be because it wants to evaluate the key set fully. I don't think it's strictly necessary, but that's just how nix behaves ¯\_(ツ)_/¯
<kreisys>
Same trace too. Which is strange because I'd expect it to just choke on extra arguments without the ...
<kreisys>
So destructuring is strict?
<sphalerite>
kreisys: if you just want to not use self. each time you could do self: super: let inherit (self) src; in
<sphalerite>
on the key set, yes, by the looks of it
<sphalerite>
pbogdan: *facepalm* yes
<kreisys>
Lol I'm not hating on self or anything. Just curious :)
zzamboni has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
dingotux has joined #nixos
tertle||eltret has quit [Quit: Connection closed for inactivity]
krey has joined #nixos
<sphalerite>
pbogdan: right, now it builds, still doesn't work right though :( <command line>: cannot satisfy -package-id megaparsec-6.4.1-DRGXF7AF78S5NwROxpffL8 even though cabal configure and friends all work fine
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
<gchristensen>
\xn 2333
<infinisil>
ignore that :P
<gchristensen>
:P
drakonis has joined #nixos
<infinisil>
Hackapepper: Ah just saw boomshroom's suggestion on how to disable tests, it didn't work because those were install checks, not build checks, what i posted earlier should work then (the thing with doInstallChecks = false;)
<{^_^}>
→ 807a3086 by @coreyoconnor: qtwebengine: correct how NIX_BUILD_CORES is propagated to the gn driven ninja.
<{^_^}>
→ 6cd5667d by @ttuegel: Merge pull request #37889 from coreyoconnor/ninjaflags
AMDmi3 has quit [Ping timeout: 256 seconds]
AMDmi3 has joined #nixos
erasmas has joined #nixos
blankhart has joined #nixos
<makefu>
i've finished my writeup of the nixos hydra article for the wiki which should give a quick overview about how to use hydra. can anybody have a quick look if i've missed something obvious which would be important for newcomers? https://nixos.wiki/wiki/Hydra
<srhb>
Phew.. Finally got some workable wireguard rules up. I wish I could just stick all my regular interfaces in a different namespace and hide them away from my user.
asuryawanshi has quit [Ping timeout: 264 seconds]
<srhb>
makefu: Looks good. It's a little weird that the bullet points turn into weird horizontal scrolly things.
nick_l has quit [Ping timeout: 260 seconds]
<srhb>
(aside from installation, which makes sense)
<infinisil>
makefu: awesome! I'm not in a position to review it, but something about the formatting: I don't like the Definition boxes, because i need to use the horizontal scroll bar to see it fully
<makefu>
srhb: infinisil : ok thanks i will have a look at this. maybe i just roll with second level bullet points
alex`` has quit [Quit: WeeChat 2.0.1]
<srhb>
Deployment and using looks right insofar as that was basically what I did. :-)
<infinisil>
Why is enabling postgresql required? Can't hydra enable that automatically?
<{^_^}>
[nixpkgs] @globin pushed commit from @fadenb to release-17.09 « apacheHttpd: 2.4.29 -> 2.4.33 »: https://git.io/vxzPU
MercurialAlchemi has quit [Ping timeout: 260 seconds]
spear2 has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @globin pushed commit from @fadenb to release-18.03 « apacheHttpd: 2.4.29 -> 2.4.33 »: https://git.io/vxzP7
AMDmi3 has quit [Ping timeout: 276 seconds]
AMDmi3 has joined #nixos
spear2 has joined #nixos
<makefu>
infinisil: it could, but currently it doesn't
<{^_^}>
[nixpkgs] @abbradar pushed to master « linuxPackages.nvidia_x11_legacy173: drop mentions »: https://git.io/vxz1J
<makefu>
maybe because postgres could be hosted on another system
<{^_^}>
[nixpkgs] @abbradar pushed to release-18.03 « linuxPackages.nvidia_x11_legacy173: drop mentions »: https://git.io/vxz1I
<srhb>
Actually, it does
<srhb>
If you haveLocalDB true
<infinisil>
Ah
<srhb>
Which means that cfg.dbi == "dbi:Pg:dbname=hydra;user=hydra;"
<srhb>
Because that's not convoluted at all :-)
<srhb>
(I didn't discover that last time...)
<srhb>
Hmm, I'm a bit surprised. Database access and provisioning is guarded by the same bool.
<bgamari>
what is the default value of `nix build`'s `-f` flag?
zarkone has joined #nixos
xcmw has joined #nixos
<zarkone>
hi all! performin nixos-install from minimal iso, -- installation fails with "no space left". I see that `unionfs` device is full. Shouldn't it build it into my new /mnt partion instead?
<makefu>
bgamari: $PWD/default.nix
<srhb>
zarkone: Did you a) have very little RAM or b) forget to mount the final system on /mnt ?
<makefu>
zarkone: there is currently a regression in nixpkgs which results in first copying the complete operating system description into ram
<srhb>
zarkone: If a) you can swapon the swap device you created
<zarkone>
I see, thanks. Will make a swap file: installing into KVM guest with 1G ram. Or, maybe e.g. 4G would be fine, what do you think?
<makefu>
zarkone: just to let you know that people are aware of the issue and a fix is on the way
<zarkone>
yeah, I've seen this on github but decide dto check out just for the case.
<infinisil>
srhb: bugs in 18.03?
ryanartecona has quit [Quit: ryanartecona]
<srhb>
infinisil: Well, yes.
<zarkone>
my actual reason is also to learn nixos better, so I want to install it into vm. So, I see this PR for RabbitMQ which I need, but it is not merged yet. Figuring out how to plug it to my staging server setup with stable 17.09 system, i.e. repack\redefine existent version
<srhb>
zarkone: That's a pretty common task, and one overlays helps you solve :)
<makefu>
as long as the PR is not about nixos modules
knupfer has quit [Remote host closed the connection]
<zarkone>
this PR have some commits to erlang generic builder, module-list and etc. I'm not sure how to append it properly to my system as a separate package. Could you please describe me in short or give some links?
sud0x3 has joined #nixos
<srhb>
zarkone: If the changes are split over many packages or wide-ranging it might be easier to use your own nixpkgs fork that includes them on top of your stable branch, but... https://nixos.org/nixpkgs/manual/#chap-overlays
<srhb>
overlays won't help with nixos things at all though
<zarkone>
actually, I think that it is possible to make my own package without this EPMD as systemd service, probably, ut I want to make something that could be easily be dropped after upgrade with this PR's code
<TweyII>
So I've got this PR that's been open since February: https://github.com/NixOS/nixpkgs/pull/34971 I think it might be waiting on joachifm; does anyone know what's going on with them? I'm trying to advocate Nix in my company but people are starting to hate it because they have to rebuild Godot all the time :þ
<zarkone>
I see, I had this idea too, thanks for making me sure and for the link. Like, I felt like I should do somethink like this but wasnt sure how
<srhb>
zarkone: I think that will be easier to just use a fork for, yeah.
<zarkone>
srhb: got it, thanks!
<srhb>
TweyII: Hmm, it doesn't look that invasive. I don't know about godot or its dependents, but maybe someone else does.
Crypt0x has quit [Quit: Crypt0x]
<srhb>
It's weird how the headers aren't in dev, but I suppose that just mimics upstream architecture
<srhb>
Anyway, I don't want to bikeshed, that's probably not the issue at hand :-)
<TweyII>
srhb: godot_headers aren't actually the headers for godot -.- They're C headers for integrating with the GDNative API, which is essentially some kind of binding and a bit of a second-class citizen
<TweyII>
But that's what the repo's called
<TweyII>
srhb: Yeah, it's not invasive at all, I've been placating my colleagues with ‘any day now’ for months :þ
<srhb>
TweyII: OK, let me just check it out locally...
davidlt has quit [Remote host closed the connection]
sanscoeur has quit [Remote host closed the connection]
davidlt has joined #nixos
xy2_ has joined #nixos
freeman42x]NixOS has joined #nixos
nick_l has joined #nixos
<nick_l>
In a.nix, I have a variable mypackage, which is obtained via callPackage with some parameters that are only in scope there. In b.nix (which, like a.nix is one of the arguments to nixops), I import a module mymodule.nix. In mymodule.nix, I want to actually access the variable mypackage from a.nix. How do I refer to that? Or how else should I make this work?
<ToxicFrog>
How do I use nix-shell to enter a shell using a package from a specific channel?
<nick_l>
The use case is that in mymodule.nix I have defined a systemd oneshot job, which doesn't have access to the PATH variable.
<srhb>
ToxicFrog: The olden way is NIX_PATH=nixpkgs=path-to-other-channel nix-shell -p thatpackage I think
<ToxicFrog>
I found a message on the ML that suggests using `NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos-unstable/nixpkgs" nix-shell -p ...`, but this doesn't seem to work; it gives me an old version of the package (and yes, I've looked in /nix/var/nix/profiles/per-user/root/channels/nixos-unstable/nixpkgs to make sure that my local copy of the channel isn't stale; it has the right version there)
<ToxicFrog>
srhb: is there a new way?
<srhb>
ToxicFrog: nix run -f thechannel package, I think
<srhb>
Let me check...
<srhb>
nix run -f channel:nixos-unstable wget
<srhb>
For instance.
<ToxicFrog>
Hmm. Looks like I haven't updated in a while and don't have `nix` yet.
<srhb>
It's not in 17.09
<srhb>
At least, not unless you explicitly do something
<ToxicFrog>
Yeah, I'm still on 17.09. Is 18.03 still WIP?
<srhb>
It is.
<ToxicFrog>
Blerf.
<srhb>
I don't understand why what you were doing doesn't work though. What's the package and version?
<srhb>
Or you could do... NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.zip nix-shell -p wget
AMDmi3 has left #nixos [#nixos]
<ToxicFrog>
youtube-dl. Version in systemPackages is 2017-10-20. Version in /nix/var/nix/profiles/per-user/root/channels/nixos-unstable/nixpkgs/pkgs/tools/misc/youtube-dl/default.nix is 2018-03-14. Version I get when I nix-shell is 2017-09-02.
<srhb>
NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz nix-shell -p youtube-dl gives me 2018.03.14
<ToxicFrog>
Hrm
<ToxicFrog>
Oh my GOD
<ToxicFrog>
I had an old overrides file in ~/.config/nixpkgs/overlays from last year
<srhb>
heh :P
<ToxicFrog>
Which included an override to youtube-dl, which apparently applies to all uses of nix-shell
<nick_l>
srhb: do you know how I can do the above?
<srhb>
nick_l: Why not just add it as an overlay so you can refer to it from pkgs?
<bgamari>
makefu, is it supposed to be ./.?
<srhb>
In a NixOS context, that makes most sense to me, I think.
<bgamari>
It seems like this would be much more convenient
<nick_l>
srhb: this is for a nixops deployment. I don't want to have files in user directories.
<srhb>
Uh, not understood.
<makefu>
bgamari: it is, if yo run 'nix build' on some other directory it says 'error: opening file .../default.nix ...'
sellout- has joined #nixos
<bgamari>
makefu, so I'm confused, if ./. is the default why I am I seeing the failure I reported above?
<nick_l>
srhb: I currently have nixops a.nix b.nix, but I suppose I could just merge a.nix and b.nix into one file and then the issue would not exist, right?
<tilpner>
nick_l - You can use overlays without adding files into user directories
<tilpner>
Only the third option mentiones ~/.config
<makefu>
bgamari: it seems to be related to something else i guess.. maybe the nixpkgs default.nix is not supposed to yield the package anymore? idk i am confused as well :D
<srhb>
So your deployment specifies nixpkgs.overlays = [ (self: super: { a = self.callPackage a.nix {}; } ) ]; and then b.nix just refers to pkgs.a
<srhb>
(.whatever)
sellout-1 has quit [Ping timeout: 256 seconds]
archaeron has joined #nixos
leothrix has joined #nixos
<srhb>
TweyII: I see one difference when I run godot in a pure shell: It appears to be missing some alsa stuff. Is that intentionally impure, or acceptable?
<srhb>
Oh, I guess the sandbox is just more powerful than I figured
<shlevy>
So yeah you could create /nix/store/some-hash-foo with the wrong contents, but it would never actually be presented as a build input to a drv or counted as already there when fetching substitutes or anything
digitus has joined #nixos
<shlevy>
You can do that with fetchurl too if you interrupt it at the right point and don't have sandboxing
<shlevy>
(note that --add-fixed already exists, we'd just be adding a hash flag)
<bgamari>
I see
<bgamari>
hmm
<clever>
there was a thing on the nix mailing list, about using a nix tool to compute the output path of a given thing
<bgamari>
shlevy, was it added recently?
<clever>
manually copying it into /nix/store
<clever>
and then registering it as valid
<shlevy>
bgamari: Nope, but I'm not sure if it's documented
<bgamari>
ahh
<bgamari>
indeed it's not
<shlevy>
bgamari: 2005 :D
bkchr has quit [Quit: Konversation terminated!]
ryanartecona has quit [Ping timeout: 260 seconds]
roberth has quit [Ping timeout: 268 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jluttine>
is there some correct way of creating temporary mount directories for a user? when i plug a usb stick, it is mounted automatically somewhere. i'd like to write similar magic in my script. a safe way to mount something for a user
<jluttine>
krey: hmm.. i'm using sshfs and so that does the mounting, i suppose. i just need a directory, i wonder if udisks can create and provide me that.. or if sshfs has some magic for that in itself hmm..
michas__ has joined #nixos
kiloreux has quit [Ping timeout: 240 seconds]
<michas__>
Hi, is there an easy way to build a qemu disk image using a usual configuration.nix file?
<Mic92>
jluttine: I don't think there is a convention for mount points. You could use $(mktemp -d)
<{^_^}>
[nixpkgs] @vbgl opened pull request #37919 → coqPackages.bignums: make it available for Coq 8.8 → https://git.io/vxgvH
generic has joined #nixos
<LnL>
Mic92: everything looks fine, definitely depends on the kernel/docker version
__Sander__ has quit [Quit: Konversation terminated!]
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « libreoffice: wrap to set JAVA_HOME, SAL_USE_VCLPLUGIN and DBus session if not set »: https://git.io/vxgLf
srjek_ has quit [Ping timeout: 276 seconds]
<ottidmes>
Myrl-saki: I distinctly remember someone having trouble with NIX_PATH and seeing a issue stating that something about how NIX_PATH is resolved changed, but if I do <lib> it still resolved to "<nixpkgs>/lib", have to look that up again
<{^_^}>
[nixpkgs] @garbas pushed commit from @Ma27 to master « qpid-cpp: fix build »: https://git.io/vxgLs
rauno has quit [Ping timeout: 256 seconds]
<clever>
ottidmes: sometimes NIX_PATH can wind up set like NIX_PATH=/home/clever/nixpkgs/ and the dist tarball includes a nixpkgs symlink to .
<lejonet>
What stupid thing have I've done to my repo if I get "extend attribute doesn't exist" when trying to deploy a new kernel :(
<clever>
so <nixpkgs> still maps correctly
<clever>
but a side-effect is that <lib> also works, but only when the path is set "wrong"
<LnL>
Mic92: that's definitively not the case, I can nsenter to root (don't tell anybody) -_-
thetet has quit [Quit: Leaving.]
leat has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
<Mic92>
LnL: well nsenter does not apply anything but namespaces, but if something fundamental like libdl.so fails too load, you also do not get a shell?
<Mic92>
(without nsenter)
<Mic92>
for example docker exec
<LnL>
not as a nixbld user, then it fails to find glibc libraries
<Mic92>
LnL: an you are sure, it is not the same permission problem/old docker image?
<Mic92>
*and
<TweyII>
Are there any tools in nixpkgs for building binaries that reference impure paths? I'm trying to build release binaries for other platforms from my Nix expression
Myrl-saki has quit [Quit: WeeChat 2.0]
<LnL>
yes, I can reproduce it with the image I pushed and that works fine on my nixos box
<{^_^}>
[nixpkgs] @garbas opened pull request #37924 → uplifting #37717 pr to release-18.03 branch → https://git.io/vxgto
<{^_^}>
→ 4037d68d by @dtzWill: virglrenderer: fix missing include
<{^_^}>
→ 1c110d52 by @dtzWill: Merge pull request #37892 from dtzWill/fix/virglrenderer-include
<Mic92>
srhb: what are you trying to bend?
John882 has joined #nixos
<lejonet>
If I get "attribute 'extend' missing, at /etc/nixos/nixpkgs/nixos/modules/system/boot/kernel.nix, line 39" what did I screw up with my git checkout? if I try to set boot.kernelPackages to anything I get that
petar has quit [Remote host closed the connection]
coot has quit [Quit: coot]
petar has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 260 seconds]
<LnL>
thought I was going to have to revert my 2.0 update for a second
coot has joined #nixos
<srhb>
Mic92: I was just thinking along to TweyII's needs :) Building a binary for execution on an (I assume) FHS system
<Mic92>
srhb: ah makes sense.
xcmw has joined #nixos
archaeron has quit [Ping timeout: 240 seconds]
<Mic92>
srhb: TweyII you can also use a vm of the target linux distribution to build stuff inside nix. This is what nix uses to build deb/rpm packages.
<Mic92>
TweyII: I will happily review a nixpkgs pr, if you build something for fpm, that does this
<gchristensen>
that'd be so cool
<Mic92>
nix2anything
<Mic92>
given that travis supports nix...
<lejonet>
O.o nix-channel --update gives me no space left on device even tho I have at the most 31% utilized on /, this machines is acting weirder and weirder :(
<{^_^}>
[nixpkgs] @shlevy pushed 2 commits to release-18.03: https://git.io/vxgZL
<{^_^}>
→ 77c457b2 by @shlevy: pythonPackages.py4j: Init at 0.10.6.
<{^_^}>
→ 92b18165 by @shlevy: pythonPackages.pyspark: Init at 2.3.0
* Mic92
hides
<lejonet>
Mic92: nope, ext4
<johnw>
lejonet: at least that one I might have an answer for
<lejonet>
thinking about the "metadata full" problem btrfs have had?
<lejonet>
johnw: :D
TweyII has quit [Ping timeout: 265 seconds]
<Dezgeg>
'df -i' reporting all inodes in use then?
<johnw>
lejonet: run this: echo 1048576 > /proc/sys/fs/inotify/max_user_watches
<johnw>
and then try the update again
<Dezgeg>
nix-channel doesn't use inotify
<lejonet>
johnw: same result
<lejonet>
Dezgeg: nope, there it says 21% used for /
<Dezgeg>
I guess some other filesystem, say /tmp or /run gets full then
<lejonet>
I don't have any other filesystem even near anything but 0% or 1% except for my rootfs :(
jrolfs has quit [Ping timeout: 276 seconds]
<lejonet>
and the rootfs is 31%, just did a huuuge gc, because I thought it was whining at me having 97% on /, but it seems to not like something else
<lejonet>
strace seems to say that openat hardly finds anything at all, so I'm thinking its more that the GC that maybe was a bit too agressive?
<lejonet>
it can't find libnixmain.so or glibc and such
<lejonet>
or well, eventually it seems to find them, have to look at like 901239013 places first tho lol
<lejonet>
"error cloning builder process no space left on device", almost seems like it isn't allowed to fork or something
<Dezgeg>
well, yes
<Dezgeg>
'man 2 clone' lists three potential reasons
jrolfs has joined #nixos
<lejonet>
ah, I apparently have nix 2.0 now, I'm guessing the build daemon hasn't been upgrade then? (how do I check that...)
orivej has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
asuryawanshi has joined #nixos
<ottidmes>
lejonet: `systemctl status nix-daemon` should give you that info, right? Or did you mean something else?
<lejonet>
ottidmes: well I want to double check its version, but its in the path of that and the nix-daemon seems to be dead, I would think that is the reason :P
pie_ has joined #nixos
<lejonet>
apparently not... starting the nix-daemon didn't fix it
jtojnar has quit [Read error: Connection reset by peer]
vaninwagen has joined #nixos
<lejonet>
ottidmes: yep, outputs 2.0, I'll try a normal rebuild switch, without --upgrade and then try to do the --upgrade afterwards and see if it changes anything
<{^_^}>
[nixpkgs] @avnik opened pull request #37927 → toxiproxy: Init at 2.1.3 → https://git.io/vxgcl
jtojnar has joined #nixos
<ottidmes>
lejonet: And nix-env --version returns 2.0 as well? i.e. you have not shadowed it with a nix 1.11 install?
<lejonet>
ottidmes: yes
<lejonet>
ottidmes: both says 2.0, however the rebuild switch wants to pull in 1.11.16, so I guess I'll go with that and see if I can do a update afterwards or something
<srhb>
lejonet: --upgrade just runs nix-channel --update, if you didn't know
<lejonet>
srhb: yes I know that :)
<srhb>
Ah, good.
<lejonet>
just wanted to double check if it indeed was nix-channel that errored out or not :)
* srhb
nods
<srhb>
Makes sense :)
<ottidmes>
lejonet: It will still download 1.11 for tools like nix-repl
<lejonet>
lol, seems like its pulling down half of cache.nixos.org xD
<srhb>
What did you _do_ :P
<lejonet>
(like I said earlier, did a huuuge gc earlier)
<lejonet>
poor nixos, the things it has to go through at my hands...
<srhb>
If they were gc'ed they shouldn't suddenly become needed again.
<srhb>
That would imply you having gc roots to them, in which case they wouldn't just be removed by a gc.
<srhb>
(Assuming no wide ranging changes to your config just now)
nwspk has quit [Ping timeout: 240 seconds]
<lejonet>
weeeelll *prepares to duck behind a wall*
<srhb>
Like.. What did you _do_ :D
<lejonet>
I've decided to switch from my local git checkout to an actual nix-channel *ducks for cover*
<srhb>
Ah, that would do it :-P
asuryawanshi has quit [Remote host closed the connection]
petar has quit [Remote host closed the connection]
<lejonet>
atleast I went to the unstable channel! :P
<srhb>
At least you won't have to reBUILD the world...
<lejonet>
I can do that too!
<srhb>
I'm actually on 18.03. I'm going to try running on stable for this cycle!
<lejonet>
I've just accepted the fact that for most of my systems, stable will do, but not my desktop
<lejonet>
meh "error: unable to start build process" my machine is mad at me :(
petar has joined #nixos
<srhb>
Maybe switch back to your repo first to try to limit the moving bits?
<srhb>
Oh, you gc'ed
<srhb>
Nevermind
<srhb>
:P
MichaelRaskin has joined #nixos
<lejonet>
I gc'd before switching tho :P
<srhb>
Could work then
<srhb>
Without having to rebuild the world
<ottidmes>
18.03 basically is unstable at the moment, I can remove my unstable checkout from my overlay and all pkgs.unstable.<name> references, until it becomes outdated again
<MichaelRaskin>
But I agree that /boot overflow is a significant gotcha
<lejonet>
srhb: I had enabled hardened on this machine, I'll disable sandbox and try
<srhb>
lejonet: So any/all of the workarounds in there might be worth trying
<srhb>
lejonet: Ah good, then you're probably good to go :)
peacememories has quit [Client Quit]
<lejonet>
srhb: oh cool, so the sandbox uses userns now, upping /proc/sys/user/max_user_namespaces to 65536 made it work
<srhb>
lejonet: huzzah
<lejonet>
srhb: I can even do --upgrade! :D
<srhb>
Will the wonders never cease :-)
<srhb>
But annoying bug indeed.
<srhb>
At least your system wasn't hosed -- that's nice :P
<lejonet>
yeah, that "no space left on device" as a generic error of "out of resources" have annoyed me for a looooong time :P
<lejonet>
Even with my best try, I couldn't hose it, yay! xD
<srhb>
It's like trying to use ip as a sensible CLI
<srhb>
FILE ALREADY EXISTS
<srhb>
what
<srhb>
I was making a route
<lejonet>
hahaha
<srhb>
:|
<lejonet>
ip is a sensible cli, ever tried ifconfig? ;)
<srhb>
I prefer the error messages of ifconfig any day of the week.
<srhb>
But in other regards, I do prefer ip
<Mic92>
srhb: yeah, that's the problem if tools just stringify errnos from the kernel.
<srhb>
Indeed.
<lejonet>
:P
<srhb>
The dreaded ENOENT
<srhb>
???
<lejonet>
gaaaah, still "attribute extend missing" when trying to use another kernelpackage :(
<lejonet>
what did I break _this_ time? :P
<srhb>
What is your kernelPackages actually set to? Sounds like the kind of thing that happens if you don't specify an actual package set.
<lejonet>
pkgs.linux_testing
<srhb>
You want linuxPackages_testing
<srhb>
Psychic debugging ftw
JosW has quit [Quit: Konversation terminated!]
<lejonet>
:P
mahalel_ has joined #nixos
<srhb>
But yeah, that option expects a set of packages of which just one is mandatory (iirc), namely *.kernel
<lejonet>
and figuring out the proper name is a nightmare... xD
<srhb>
Right.
<srhb>
The hint that it's kernelPackage*s* not kernelPackage is a bit subtle :p
<lejonet>
I was thinking more that its hard to find what the proper name for the kernelpackages is
<srhb>
They're all linuxPackages_something iirc
<lejonet>
because I found linux_testing from "nox kernel", which has this: 138 linux-4.15-rc1 (nixos.linux_testing)
<lejonet>
The Linux kernel (with patches: bridge-stp-helper, modinst-arglist-too-long)
<srhb>
Aside from linuxPackages which is the base set with the default linux kernel
<lejonet>
so whats the proper name for the copperhead kernel then? linuxPackages_copperhead?
<srhb>
lejonet: I just linuxPackages_copperhead_hardened
<srhb>
Er, that was two messages
<lejonet>
I'll try that lol
<ottidmes>
linux_hardened_copperhead
<srhb>
I'm pretty sure you mean to use linuxPackages
<srhb>
As in, you're attempting to set boot.kernelPackageS
<srhb>
(Which is not just the linux kernel, hence the complaint from ottidmes) :-)
<ottidmes>
srhb: wait wut? I just meant to note that its: linuxPackages_hardened_copperhead not linuxPackages_copperhead_hardened, or they changed it since 17.09
<srhb>
ottidmes: You're right! And they did change it.
<srhb>
linux_hardened_copperhead = linux_copperhead_hardened; # alias for backward compatibility
<srhb>
But in 17.09 it is indeed as you say.
ma27 has quit [Ping timeout: 256 seconds]
<srhb>
Interestingly there's no backwards compatible alias for the linuxPackages for it.
ma27 has joined #nixos
<srhb>
lejonet: Anyway, on nixos-unstable (that was what you changed to, right?) it's linuxPackages_copperhead_hardened
<lejonet>
srhb: yeah, we'll see if I go back to my checkout, this was one of the things I was going to see if it was due to something I screwed up with my git repo :P
<lejonet>
but copperhead_hardened is the "new" name? not hardened_copperhead?
jrolfs has joined #nixos
<srhb>
Yes.
<srhb>
(And yes, no)
Lears has joined #nixos
alexteves_ has joined #nixos
xy2_ has joined #nixos
<lejonet>
lets hope the raven ridge gets happier from the 4.15 kernel
<srhb>
That's.. latest, not testing, right?
<srhb>
I'm confused with your versions by now :-)
<dmj`>
is there a nix formatting tool?
<johnw>
dmj`: hnix will do that
<johnw>
the default mode is to parse your .nix file and then print it back out
alexteves has quit [Ping timeout: 240 seconds]
<lejonet>
According to nox testing is supposed to be 4.15... (but it doesn't make sense because testing should be 4.16-rc7...)
<dmj`>
johnw: perfect, checking it out now
<srhb>
lejonet: When did you split out this branch?
<srhb>
And uh, how does noxs cache work?
<srhb>
lejonet: Did you upgrade to Nix 2.0? If so you have nix search instead.
<lejonet>
srhb: I'm running on unstable channel now
<lejonet>
It stopped after downloading both logstash-2.4.0 and logstash-6.1.2 (why it downloaded the former I have no idea, I've specified logstash6 in the systemPackages)
<lejonet>
or "stopped", it seemingly isn't doing anything atleast
<unacceptable>
It's busy watching them fight to the death
jrolfs has quit [Ping timeout: 276 seconds]
<lejonet>
haha
<lejonet>
Maybe
<unacceptable>
To the Kirk / Spock fight music
<lejonet>
"load average: 0.00" well, it doesn't seem like a particularly interesting fight lol
<lejonet>
lol, its also downloaded both kibana4 and kibana6 even tho I've only specced the latter xD
<lejonet>
and elasticsearch, I think nixops is drunk o.O
<unacceptable>
Has it also downloaded six version of elasticsearch and tied them all in one cluster?
<lejonet>
it hasn't gotten to the cluster part yet, but maybe it will :P
<{^_^}>
→ 9df1ad5a by Wilga: libsepol,libselinux: fix i686 build
<{^_^}>
→ ee28e35b by @dtzWill: Merge pull request #37922 from xeji/p/libselinux-i686
<srhb>
lejonet: Here's a new trick for you
<srhb>
nix why-depends
<lejonet>
"Because."
<srhb>
It's.. Yes. :P
<lejonet>
:P
<srhb>
anyway, you'd do nix why-depends (nixops machine derivation) nixpkgs.kibana4 or whatever
<srhb>
(Of course you can also just show the tree of the whole machine drv)
\\\\\\\\\\\ has quit [Quit: WeeChat 2.0.1]
<lejonet>
srhb: I'm having a hard time understanding what it wants from me xD
<lejonet>
it says it cannot find nixpkgs if I do nixpkgs.kibana6, if I specify version it says it doesn't know what to do with the argument... :P
John882 has quit [Quit: John882]
<infinisil>
I only used nix why-depends with /nix/store paths, which definitely works
* infinisil
still hasn't looked into Nix 2.0 and is using nix-build and co. for everything
jrolfs has quit [Ping timeout: 256 seconds]
<lejonet>
according to why-depends, logstash6 doesn't depend on logstash-2.4.0...
<lejonet>
Is there anyway to ask "what depends on <nix-store path>"?
<unacceptable>
lejonet: nor should it
<lejonet>
unacceptable: yeah, I would've been very surprised if they somehow depended on eachother, but it pussels me why nixops has pulled in 2 version of logstash, elasticsearch and kibana...
<infinisil>
lejonet: Yeah hold on
<lejonet>
especially as I've only specified one, the version 6 one of each
<infinisil>
lejonet: Prints every nix store path that has the given path as a dependency
<infinisil>
with transitivity
<unacceptable>
infinisil: is that in the docs somewhere? I've been looking for that
<lejonet>
infinisil: well, that didn't make me any wiwser :S only things that it depends on is the unit-logstash unit... which iirc it provides itself
<lejonet>
wiser*
<infinisil>
unacceptable: man nix-store
<lejonet>
so why the heck its pulled in is still a mystery
ma27 has quit [Ping timeout: 256 seconds]
<lejonet>
O.o logstash6 doesn't seem to provide its own logstash service, is it so awkward/backwards that it pulls in logstash-2.4.0 just to provide the systemd service? O.O
michas_ has joined #nixos
ma27 has joined #nixos
<lejonet>
oh well, I'll let nixops ponder its existence in peace and go and do something else in the meantime then
<clever>
michas_: this is a complete diskless nixos server, without even an NFS mount, the machines run entirely from a ramdisk, and all state is lost at reboot
<clever>
michas_: it also handles the dhcp and dns server, and performs NAT between the internet and the LAN that the client machines are on
<foldingcookie>
nice
<michas_>
clever: great, sounds like a perfect fit. Thanks!
<clever>
michas_: originally, i had written that to turn my old laptop into a netboot server, to it could hijack the new laptop, and it also includes justdoit (line 12), which will wipe the entire machine with 1 command (run justdoit, lol :D), but you can customize it to run other services and remove that
<clever>
michas_: lines 20-27 is the config for the OS that the target machines run
davidlt_ has quit [Ping timeout: 276 seconds]
humanoyd has quit [Quit: WeeChat 2.1]
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
lazygun[m] has joined #nixos
davidlt__ is now known as davidlt
<michas_>
clever: nice, still reading und trying to understand all the parts. Could you give me a hint on the right command to build/run this?
<foldingcookie>
is there an example of using nix-shell to run GTK programs? I'm not sure how to get "wrapGAppsHook" to apply in a nix-shell invocation
<clever>
michas_: thats a nixos module, just add imports = [ ./netboot_server.nix ]; to your existing configuration.nix, and set netboot_server.network = { wan = "foo"; lan = "bar"; }; with the right interface names
<foldingcookie>
(I'm probably misunderstanding a few things, but hopefully the intent is clear ;))
<clever>
michas_: since your not using it to install things,line 12 and 21-26 of my version can just be commented out
<michas_>
clever: I'm currently planing to run it as a VM in qemu. (Other (diskless) hosts should join using qemu multicast.) It's probably best to integrate it into make-disk-image. - Let's see, if I manage to put all the pieces correctly together. :)
<clever>
michas_: i also have methods of booting a diskless nixos image in qemu
<clever>
michas_: line 6 grabs a configuration.nix that already references the netboot-base file, then builds its kernel+initrd, and boots those directly in qemu
knupfer has joined #nixos
<clever>
michas_: you could potentially chain the 2 things, so the netboot server is also a diskless nixos inside qemu!
Xal has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<phI||Ip>
If I do a "nixos-rebuild switch upgrade" and everything works - how do I delete the older unneeded versions?
<phI||Ip>
ottidmes I knew about nix-collect-garbage but I was missing the -d switch
vidbina has quit [Ping timeout: 240 seconds]
<ottidmes>
phI||Ip: Which each of those links mentions, and they might help your general understanding about garbage collection in Nix
<phI||Ip>
ottidmes: ty somehow I missed it. Im really starting to get hang of Nix but it occur.red to me old software was not being deleted so I thought I'd ask :)
<foldingcookie>
which package includes the glib2 "gsettings" utility?
<michas_>
clever: the idea is to make use of idle desktop machines. On each of those machines I will run a VM. Those will connect through qemu multicast network and make up a cluster which allows to power something like kubernetes. Singe hosts joining or leaving should be no problem. But management must be done from a central PXE qemu instance in order to be part of the network.
<clever>
michas_: ah
<michas_>
clever: I think I now have all the different pieces to make that work.
<clever>
michas_: oh, you could also use that justdoit release.nix just to get nixos running inside qemu
<foldingcookie>
ben: post-"nix-env -iA nixos.glib", I don't see gsettings in PATH or /nix/store/*-glib-2.54.3/
<clever>
michas_: the 1st step runs the test env for justdoit, where just logging in and running justdoit will install nixos, the 2nd step runs it with just the disk image from the 1st, to confirm it boots
<foldingcookie>
should I be looking somewhere else?
<clever>
michas_: nothing says you cant just keep using that disk image as a server
<ben>
foldingcookie: nix-shell -p gsettings and i get /nix/store/mrwb1hl55dar8f894m1yjyg6gb8c0sjv-glib-2.54.3-dev/bin/gsettings
<ben>
i didnt try nix-env -iA
jrolfs_ has joined #nixos
<foldingcookie>
that does exist... I wonder how to get it into $PATH
<foldingcookie>
more broadly, what does "-dev" mean?
<jtojnar>
it is done for glib's bin files with outputBin
<srhb>
foldingcookie: The idea is that you can rely on a subset of a package as a dependency, which is quite handy, rather than splitting things into -dev things like you see on debianesques
alexteves_ has quit [Ping timeout: 256 seconds]
<srhb>
foldingcookie: And all this happens just by moving the final build products into different places during the installPhase
<LnL>
infinisil: outputDev is just the variable name, the contents would be out or dev
<srhb>
It's very lightweight.
<foldingcookie>
ah, so glib has `outputBin = "dev";`
<infinisil>
Ahh
<foldingcookie>
srhb: ah
<LnL>
it's for cases when you don't know if it's a multi output drv of not
<jtojnar>
foldingcookie: yes, we should probably move the gsettings program to `bin` output
<foldingcookie>
so... given this, how would I use nix-env to bring gsettings (from the "dev" subpackage of glib) into my PATH? `nix-env -iA nixos.glib.dev` acts successful but doesn't seem to put gsettings in PATH
<foldingcookie>
ah
<jtojnar>
foldingcookie: I think it should work, as long as you have the nix profile managed by nix-env in path
<jtojnar>
I have glib.dev in my configuration.nix and gsettings is in my path
<foldingcookie>
the whole reason I wanted to use the gsettings program was to debug the right value of XDG_DATA_DIRS to get non-nix-packaged software to run
<foldingcookie>
so I'm aware of that complication ;)
<foldingcookie>
jtojnar: that issue makes it sound like `nix-env -iA nixos.glib.dev` should create a gsettings symlink, but afaict it does not
<foldingcookie>
ah, or not, "Why does nix-env -iA nixpkgs.tmux.man not work? If I run that, it just installs tmux-2.6, and I still don't have manpages."
<{^_^}>
[nixpkgs] @srhb opened pull request #37942 → Backport: opal: build with gcc6 → https://git.io/vxgiK
Synthetica has quit [Quit: Connection closed for inactivity]
<jtojnar>
foldingcookie: either way, it should work with nix-shell if you just want to run it without a global installation