gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<infinisil> Command-not-found hasn't been working at all for me though :/
hakujin has quit [Ping timeout: 265 seconds]
<foldingcookie> the version provided system-wide does seem to work here
tos9 has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to release-18.03 « wlroots,rootston: Mark them as broken until the first stable release »: https://git.io/vxHzj
<tos9> Hi. NixOS locked me out of my machine. Is there a quick tut on fixing that via booting into the livecd -- presumably I need to reset root's password, and/or be able to nixos-rebuild switch after editing the configuration.nix
<tos9> If I just chroot, mount /proc and /dev or so, and chroot into the disk, is that gonna give me enough to do the latter?
sigmundv has quit [Ping timeout: 260 seconds]
<tos9> (I tried chrooting and just running `passwd`, but that appears to not have persisted)
<clever> tnks: nixos-install --chroot
<clever> tnks: and also, you need to use nixos-rebuild boot
<clever> switch wont work in a chroot
<infinisil> clever: wrong nick
<clever> oops
<tos9> clever: giving that a shot, thanks.
adamt has quit [Ping timeout: 240 seconds]
jrolfs has quit [Ping timeout: 256 seconds]
<tos9> ech...
<tos9> can I tell nixos-install --chroot where configuration.nix lives?
<tos9> it appears confused, because /etc/nixos/configuration.nix is a symlink, which it's looking for outside the chroot
<clever> tos9: i suspect your iso is on the version that has broken --chroot support
<clever> so its trying to do a full install
<tos9> I'm on...
telent has quit [Ping timeout: 260 seconds]
dan_b has quit [Ping timeout: 264 seconds]
<clever> tos9: another quick fix is to just edit the kernel params in grub, change init= to init=/bin/sh
<clever> it will complain it doesnt exist, tell it to continue anyways
<tos9> 17.09.2987.something
<tos9> clever: yeah ok was gonna be my next step. /me tries...
<ruhatch> So I just added a couple of lines to services.openssh.extraConfig and deployed with NixOps and I've lost SSH connection to the machine...
<ruhatch> Any ideas how to get it back?
<clever> tos9: https://github.com/cleverca22/nixos-configs/blob/master/rescue_boot.nix also, if you insert this into your configuration.nix via the imports line, it will put an entire install image in /boot, and your grub menu
<clever> tos9: so you can get a fully working nixos, with more basic (but still customizable config) as a rescue env
<infinisil> ruhatch: Well your line was probably wrong, and I'm afraid there is no way to do it remotely (unless you have some other way of accessing the machine via a qemu or so)
random-nixor has joined #nixos
<ruhatch> :O
<infinisil> ruhatch: The ssh daemon tried to restart and it couldn't
<ruhatch> Yeah, I thought as much :(
<tos9> clever: it's not letting me hit * to continue :/
<tos9> clever: (thanks by the way, will keep that link for whenever I get back in)
<infinisil> ruhatch: Also happened to me recently, I really think NixOS should have something that prevents you from locking yourself out like that
<clever> tos9: ah, that can happen if you dont have usb drivers in the initrd
<ruhatch> infinisil: Yeah, I agree
<ruhatch> Like if the SSH config fails, just roll back!
<infinisil> Yeah
<clever> tos9: you will need to use a ps2 keyboard if possible, or try the iso again
Ariakenom has quit [Quit: Leaving]
<ruhatch> Do you know how to have NixOps delete a specific machine rather than the whole deployment?
<ruhatch> Or do I just delete the machine manually on AWS
<tos9> clever: this is a laptop, and its builtin keyboard (though I know that might still need usb, just mentioning it)
<clever> ruhatch: --include
<clever> tos9: ah, id try the iso again, also, there is a shortcut to get around chroot
<clever> tos9: just run passwd on the host, read the hash from /etc/shadow, then edit /mnt/etc/shadow
<tos9> I can burn a new ISO obviously too
<tos9> clever: you're saying the new one should fix this?
jrolfs has joined #nixos
<infinisil> Burn?? You mean you actually burned a CD for this??
<clever> tos9: yeah, also, the iso works on USB
<tos9> infinisil: no I jailbroke a usb drive
<infinisil> Ah, not sure what jailbreak means with usb disks though
<clever> you can just dd the iso into any normal usb stick
<tos9> infinisil: I was trying to trigger you :)
<infinisil> Whew
<tos9> (it's a regular usb stick, yeah, via dd)
<elvishjerricco> Is there a way to get a completely statically linked Nix toolchain?
<clever> elvishjerricco: i think dtz is working on something like that
<tos9> clever: can I ask you a bit more specifically how I use that rescue boot you linked
jrolfs has quit [Ping timeout: 260 seconds]
<tos9> that's your own personal config repo right?
<tos9> you're saying I should copypaste this into a module, and then import that in my configuration.nix?
<clever> tos9: yeah
<tos9> got it, thanks.
<clever> tos9: in your imports list, just do ./rescue_boot.nix
* tos9 nods
<clever> and as long as your using grub, and have ~300mb on /boot, it will work
<tos9> cool.
stumble has joined #nixos
<tos9> oh. interesting.
<tos9> clever: if I'm masochistic, and chose btrfs, I take it I need that in that boot.supportedFilesystems array
<tos9> instead of zfs
stumble has quit [Remote host closed the connection]
<clever> yeah
<tos9> oh hey look at that, which your comment already said :), never mind me.
<clever> and you can customize that however you want, you could even go nuts and put xorg into it with xfce
<clever> but it will cost more /boot space, and make it more fragile
stumble has joined #nixos
<tos9> this way I can lock myself out twice!
<clever> potentially breaking in the same way as the machine you want to fix
<clever> yep
<clever> only major problem, it rebuilds with the same nixpkgs as the host
<clever> so if something in nixpkgs breaks nixos horidly, it also breaks the rescue env
<tos9> so if it's a package that broke you, you... yeah k
<clever> it was originally meant to shuffle /nix into its own dataset on my laptop
<clever> so it only had to work once
Lisanna has joined #nixos
<clever> but i saw more uses in it, and left it enabled
<tos9> whee, the new ISO appears to not support controlling my backlight
<tos9> time to run this under candle light :D
eqyiel has quit [Changing host]
eqyiel has joined #nixos
<tos9> hm, it says nixos-install --chroot: unknown option --chroot
<clever> with one of my laptops, i suspect there was a partial break in the ribbon cable that controlled the backlight
<clever> and i found that changing the brightness, with the display at the right angle, would fix it
<clever> or just opening and closing the lid until it comes on :P
<ottidmes> I am no C/C++ developer, so this might be a strange question, but why is configure so super slow? I would expect its checks to go super fast. I am building Samba, but just getting to the end of the configure phase takes forever (feels like a few minutes, should really time it)
<clever> tos9: oh, i think it got renamed into its own tool, nixos-enter
<tos9> (nixos-install --help still lists it)
* tos9 tries tat
<Lisanna> ottidmes your might have something slowing down your shell
jrolfs has joined #nixos
<infinisil> Lisanna: I think he means during builds, how configure takes a fraction of a second for every step, nothing to do with the shell
<infinisil> Happens with nix-build at least
stefan___ has quit [Quit: stefan___]
thc202 has quit [Ping timeout: 256 seconds]
<ottidmes> Lisanna: Yeah, what infinisil says, like, I can track every configure step easily, so slow it goes, fraction of second for each, and there are many
<Lisanna> infinisil I mean, having a slow shell might be slowing down each configure step, since configure is just shell code
<tos9> clever: ok, some sort of progress, I added a `password` to the configuration.nix, but running nixos-rebuild boot gives some funny errors
<tos9> complaining that /run/user/0/ doesn't exist when trying to create tempdirs via perl
<clever> tos9: unset TMPDIR
<tos9> (just before and after where it'd run "buildin")
<tos9> a ha..
<infinisil> Lisanna: And that still has nothing to do with the shell, the shell doesn't interpret stdout of processes
<tos9> clever: hm, not set
<tos9> clever: Set it to /tmp?
<Lisanna> infinisil what do you mean?
<clever> tos9: just unset, thats a command
<clever> tos9: also check `env | grep user/0` to see if anything else points there
<ottidmes> And it stops directly when I ctrl+C, while if it was a shell slowdown, shouldnt it lag?
<tos9> clever: Yeah I know, TMPDIR isn't set
<Lisanna> ottidmes not necessarily
<tos9> clever: I see XDG_RUNTIME_DIR is what's set to that
<clever> tos9: try to unset that too
<ottidmes> Lisanna: I am using zsh with no special config
<tos9> k
<tos9> clever: ok cool, that worked, except for some errors about dbus not being running
<tos9> let's see if it works after a reboot...
<infinisil> Lisanna: when a shell launches a process (like ./configure), it just streams the stdout of that process to the terminal, it doesn't even look at it. And shell's are only slow when they look at stuff and interpret that.
<tos9> clever: hm, I don't see a new Generation entry when booting
<tos9> should I expect one?
<Lisanna> infinisil I'm not necessarily saying that the launching shell is slow, but that the executing shell is slow
<Lisanna> (maybe slow)
<clever> tos9: was /boot mounted when you ran nixos-rebuild boot?
<infinisil> Lisanna: The output of a process doesn't even touch the shell
<Lisanna> infinisil configure is written in shell code
<infinisil> Ahh you mean like that
<Lisanna> <_<
<clever> infinisil: the shell doesnt even stream the stdout on, it just shares the file handle with the child
<infinisil> yeah
<infinisil> (Had to think a second about how pipes work in linux again)
<Lisanna> anyways, autotools is full of suck anyways, we should bug eelco to finish the nix build system project he started forever ago
<clever> Lisanna: i just use raw makefiles in all of my nix based projects
<infinisil> I'm not sure how faster that would be
<tos9> clever: all I ran was the nixos-enter command as soon as I got into the live cd
ertes has joined #nixos
<tos9> clever: was I supposed to do more than that
<clever> the makefile assumes its being used inside nix, and that the compiler is sane
<clever> so there is no point in checking the size of things
<clever> tos9: you still need to mount your rootfs to /mnt, your store to /mnt/nix and your boot to /mnt/boot, the same as when you initially installed
<tos9> ah, k, right yeah I did do that but only the first one
<Lisanna> clever manually written makefiles can be painful though, 'cause they won't always have the same set of options you can enable (like verbose output)
<ottidmes> I think it probably is some python code that is to blame, since it uses some kind of python build tool (Samba that is), but it looks like any other C project configure, and most of Samba is C, so I doubt that actually is it
<Lisanna> so, lots of people will use autotools just so they can have a "regular makefile"
<clever> Lisanna: and cmake if the project is a bit more complex
<foldingcookie> how can I create/install one modified package and use it in environment.systemPackages?
stumble has quit [Quit: Leaving]
<Lisanna> foldingcookie put an expression that returns the derivation in systemPackages
slack1256 has joined #nixos
<Lisanna> let myPkg = stdenv.mkDerivation { blah }; in systemPackages = [ vim emacs myPkg ]
<foldingcookie> ok, thanks
pkill9 has quit [Quit: WeeChat 2.0.1]
<Lisanna> ^ that is definitely not correct nix syntax, but you get the idea
hamishmack has quit [Quit: hamishmack]
<foldingcookie> yeah
<{^_^}> [nix-pills] @dudebout opened pull request #56 → replace indent with nix show-derivation → https://git.io/vxHa0
drakonis has quit [Read error: Connection reset by peer]
<tos9> clever: your shutting the lid trick works by the way :D
<tos9> now if I could only remember what partition was my boot one :/
<tos9> I have multiple efi boot partitions (one for OSX and one for nixos)
<clever> tos9: blkid /dev/sd*
<clever> and also, just guess, and ls to see if it looks nixos-y
<tos9> a ha, ok, process of elimination says I have 2 vfat partitions, and 1 is the osx one I am pretty sure
<tos9> trying the other one...
klntsky has quit [Ping timeout: 268 seconds]
<clever> apple also tends to use HPFS+ for their /boot's
<clever> the uefi firmware has been modified to support that
<infinisil> I'm gonna be using the /dev/nmve's once I get my new laptop!
<clever> infinisil: that also broke my justdoit script
<infinisil> \o/
<clever> the script assumes ${device}${partition} for partitions, and ${device} for the device
chrios has quit [Ping timeout: 268 seconds]
<tos9> ok! now I see /boot/loader has a new generation, hooray...
<clever> so /dev/sda + 1 is /dev/sda1
<clever> but nvme, is /dev/nvme0n1 and /dev/nvme0n1p1
<infinisil> Heh
<clever> and without the p, the partition creation tool saw /dev/nvme0n1p11 and created partition 11, then failed to find 1
<tos9> clever: and I'm alive! Thanks.
<clever> tos9: your welcome :)
<tos9> now to fix the 1000 other problems, but at least I'm in.
<lejonet> clever: and in theory, there can be more than n1 :P
<clever> lejonet: yeah
<infinisil> clever: There must be some command to get partitions of a disk
<lejonet> labels!
<clever> infinisil: there is, but this problem was during partition creation
<clever> ${cfg.rootDevice}1 : size=${toString (2048 * cfg.bootSize)}, type=83
<clever> if you use this, to tell sfdisk to create a partition
<clever> and rootDevice is /dev/nvme0n1
<clever> you wind up telling it to create /dev/nvme0n11
<infinisil> Oh I just found `lsblk -J /dev/sda`
{^_^} has quit [Remote host closed the connection]
<infinisil> outputs a json!
<clever> infinisil: nice!
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
<clever> but that doesnt help with creating names for sfdisk to create partitions of
<infinisil> Add some jq sprinkles and bam
TonyTheLion has quit [Ping timeout: 240 seconds]
<clever> infinisil: line 44, the disk has just been nuked from orbit, no partition tables exist
<infinisil> Oh
<infinisil> Ohhh
chrios has joined #nixos
klntsky has joined #nixos
<clever> lines 50/51, 53, 54, 66-68, 70/71, and maybe some more, need a p
<clever> but only if your using nvme
<infinisil> Hmm, now where to get that info..
<clever> yeah
<clever> another fun fact, grub has no nvme support
<clever> yet it can still boot from nvme!
<infinisil> Well, there isn't anything special to nvme's or is there?
<clever> it relies on the uefi services the firmware provides, so you have to rely on your motherboard oem giving you nvme support
<clever> which means my primary desktop can never have /boot on nvme
<clever> but my laptop can
<infinisil> But isn't it just a normal block device in the end?
<clever> you need drivers to turn it into a block device
<clever> without drivers, its just an unknown pci device
<infinisil> Ahh right, I remember reading recently that Linux has had NVME support since 2.x or something
johnw has joined #nixos
<clever> yep, but grub needs to be able to find linux first
<clever> and it relies on the EFI providing the nvme support
<infinisil> The efi is provided by the firmware?
<clever> yeah
<infinisil> I C
chrios has quit [Ping timeout: 264 seconds]
<clever> i discovered this when i tried to put the MBR + stage 1.5 onto a dumb sata disk with /boot on nvme
<clever> legacy booting will never find nvme at the grub level
<clever> and efi booting only finds it if the firmware supports it
markus1199 has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d306abafcd0 (from 67 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<infinisil> I'll be getting myself a Librem 15 laptop, with coreboot and NVMe, gonna see how well this goes :)
<infinisil> Oh and TPM
<clever> i looked into coreboot a bit a month ago
<clever> my router and nas support flashrom, it is able to at least read the bios image
<clever> the router is legacy, and the bios is almost entirely unreadable binary garbage
<lejonet> infinisil: if they weren't so damn expensive, I might've gotten one of em
<clever> the nas is uefi, it has .zip, PE, jpeg, gif, and png signatures everywhere
<clever> and the zip files contain more of the same
<clever> and with the right tools, you can datamine the crap out of it
<lejonet> infinisil: and if they had AMD options
<infinisil> clever: That sounds fun!
<clever> both my laptop and desktop lack flashrom support
<clever> so there is no way to reprogram the bios from within
markus1189 has quit [Ping timeout: 256 seconds]
<clever> infinisil: i was also directed to this, but never got around to packaging it: https://github.com/LongSoft/UEFITool
<infinisil> lejonet: They are pretty expensive.. But I think of it as part donation to privacy focused people :)
<infinisil> clever: Ohh that looks interesting
<clever> infinisil: in theory, i could unpack the bios, insert an extra PE32/PE64 binary that provides drivers for ext3 or nvme, and then repack the bios
<clever> infinisil: and then my efi system partition can be ext3 on nvme, lol
<infinisil> clever: Wait how does putting modified firmware back in work?
<lejonet> infinisil: true, I still want an AMD option... tired of Intel :P
<clever> infinisil: uefi firmware is much more standardized, its basically a giant array of .exe files, which get initialized on bootup, before it looks for the boot media
<clever> infinisil: so you could just insert another into the list
<clever> and then reflash the chip with flashrom
<clever> if your lucky, it works
<clever> if your not, its a paper weight!
<infinisil> clever: .exe files?? A la windows executable??
<clever> infinisil: yeah, efi is entirely based around that file format
<clever> it doesnt use the windows api's, but it uses the PE file format
<infinisil> Huh
<clever> its like ELF for linux or mach-o for darwin
mbrgm has quit [Ping timeout: 260 seconds]
<infinisil> Interesting
jperras has quit [Quit: WeeChat 2.1]
<clever> infinisil: if you then use dd to extract a section of the bios, starting at offset 0x47EBAC, you get a perfectly valid .exe file, which can be read by tools like objdump
<clever> it wont run under windows, but most tools that can read an exe can work with it
<infinisil> I'll never be able to look at UEFI the same way as before..
Supersonic has quit [Ping timeout: 260 seconds]
<infinisil> (Maybe #nixos-chat would be better for further offtopic stuff though)
<ToxicFrog> infinisil: UEFI has only started catching on recently, but it was originally developed in the late 90s, and PE was a popular choice for executable format at the time
Supersonic has joined #nixos
hamishmack has joined #nixos
<infinisil> ToxicFrog: I see, we are in #nixos-chat talking a bit more :)
mbrgm has joined #nixos
<Ralith> holy shit, nix 2 builds python stuff way faster
<Ralith> or something
ottidmes has quit [Ping timeout: 264 seconds]
jtojnar has quit [Remote host closed the connection]
acarrico has joined #nixos
blonkhart has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d306abafcd0 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<Ralith> in less exciting news, why was the group name length limit reduced to 16 characters? this breaks things :|
<Ralith> 21 character names worked fine in 17.09
<Ralith> it appears that someone just stuck in an assert witout checking what the actual limit is :/
iqubic has joined #nixos
Ross has quit [Ping timeout: 240 seconds]
Ross has joined #nixos
achambe has joined #nixos
<achambe> Hi there, I just updated two machines to 18.03 and the audio stopped working on both
<achambe> I am using only i3
<clever> achambe: hardware.sound.enable = true;
<clever> the default was changed recently
<iqubic> I'm still using 17.09, should I update?
<achambe> iqubic, thats the only issue I had so far
<iqubic> That's not an answer to my question.
<iqubic> How long will 17.09 be supported for?
jrolfs_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/51e4358cc3d (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<achambe> thats a good question, ive been looking for the support policy myself.
johnw has quit [Ping timeout: 256 seconds]
jrolfs_ has quit [Ping timeout: 265 seconds]
<iqubic> I'd like to delete all nixos generations older than a week. How can I do that?
<achambe> nix-collect-garbage -delete-older-than 7d -d
<achambe> the -d nukes the old profiles i think
<iqubic> Also, how do I tell NixOS to run emacsclient at start up?
<achambe> you could write a systemd unit I think, you will need to research how to do that
<iqubic> services.emacs.enable = true; also works.
<iqubic> Nixos has good documentation.
<achambe> most of the time haha
jtojnar has joined #nixos
<[Leary]> Weird thing ... with linux 4.14.32, my boot process gives up immediately after selecting the boot option. I don't see any messages, and nor do the denizens of /var/log. But with 4.14.24 and 4.15.something it boots fine.
<iqubic> Looks like -d does a whole lot more than delete old generations.
<iqubic> Either that or I'm miss interperting this long list of terminal output.
<clever> iqubic: it then does the normal garbage deletion that nix-collect-garbage always does
<achambe> iqubic collect-garbage deletes all unreferenced packages.
<clever> and with the generations gone, there is a lot of new garbage!
<achambe> so if you did an update or something it leaves the old versions until you collect it up
<achambe> there is an option for automatic background garbage collection to save some disk space.
<achambe> that just runs periodically
<iqubic> clever: that makes sense.
CrazedProgrammer has quit [Ping timeout: 268 seconds]
CrazedProgrammer has joined #nixos
<iqubic> How important is it that I upgrade to 18.03? I currently use 17.09
freeman42x]NixOS has quit [Remote host closed the connection]
freeman42x]NixOS has joined #nixos
kmicklas has quit [Ping timeout: 260 seconds]
jrolfs has quit [Ping timeout: 255 seconds]
<achambe> iqubic: you just get newer software, if you have no reason to stay back, then you should upgrade. Looking at the patch history, 17.09 will still get some updates for a few months, but i can't find an official document saying when it will end.
<achambe> 17.09 got an update 4 days ago and 17.03 got an update 3 months ago
<{^_^}> [nixpkgs] @Ekleog opened pull request #38537 → nheko: init at 0.3.0 → https://git.io/vxHrU
<achambe> clever: sound still not working :(
<clever> achambe: have you rebooted since applying that change?
<achambe> yeah
<clever> achambe: does alsamixer show any devices?
asuryawanshi has joined #nixos
<achambe> yeah, i tried enabling pulse audio too, not that also shows up
<clever> what happens when you run pavucontrol?
jrolfs_ has joined #nixos
<iqubic> clever: can you help me upgrade my system to 18.03. I don't know how to do that.
asuryawanshi has quit [Remote host closed the connection]
<achambe> I can see two bars, System Sounds and Firefox AudioStream
silver has quit [Read error: Connection reset by peer]
<achambe> sudo nix-channel --add https://nixos.org/channels/nixos-18.03 nixos && sudo nixos-rebuild switch --upgrade
<achambe> should work
<clever> achambe: and on the playback tab, is it muted?
<clever> achambe: if you go into `alsamixer -c 0`, and try to unmute everything, does it start working?
<iqubic> achambe: I'll also need to update the unstable repo too.
<achambe> clever: not muted, if i play a video on youtube i can see the output jumping for the firefox stream
<achambe> clever: that was the problem
<achambe> strange, doign an update made alsamixer mute everything, I didn't know thats what MM meant
<achambe> thank you for the help
<iqubic> So, this is odd.
<achambe> iqubic: yeah?
<iqubic> http://termbin.com/n0un This is my configuration.nix. It won't compile because: "syntax error, unexpected $end, expecting ; at configuration.nix:184:2"
<iqubic> The odd thing is, I get that error 3 times in a row.
<{^_^}> [nixpkgs] @peterhoeg pushed to master « elisa: 0.0.20180320 -> 0.1 »: https://git.io/vxHrw
<achambe> iqubic: that last semicolon is not needed
<achambe> a let expression doesn't need one there.
ona has joined #nixos
hamishmack has quit [Quit: hamishmack]
<iqubic> I get the same error three times when I remove it.
<achambe> you have unbalanced {
<achambe> oh i see
<iqubic> What?
<achambe> your xserver { is matching with the last }
<achambe> you need to add a }
<achambe> so your windowManager line
<achambe> has the wrong {
<achambe> }**
<iqubic> Yeah, I fixed that.
<iqubic> I just needed to add a closing bracket for exwm.
<iqubic> How do I check that I'm running 18.03?
slack1256 has quit [Remote host closed the connection]
<achambe> nixos-version
<achambe> just run that
<iqubic> Upgrading to 18.03 now.
<achambe> cool
jrolfs has joined #nixos
nuncanada has quit [Quit: Leaving]
<iqubic> So I dual-boot Windows10 and Nixos on my laptop here. If my bluetooth headphones work on Win10, than I should be able to get them working on Nixos too, right?
<iqubic> That seems like a really logical thing to request. But it doesn't work that way for me.
<iqubic> I think my the TTY I was using to update Nixos may have hund for me.
<iqubic> *hung.
jrolfs_ has quit [Ping timeout: 268 seconds]
* infinisil is using a bluetooth headset with NixOS
<iqubic> Cool. How did you get it set up?
<infinisil> I think I just did hardware.bluetooth.enable = true;
<infinisil> Then start bluetoothctl and do some steps to pair it
<infinisil> Once it's connected pavucontrol shows it as a new speaker
<infinisil> Sometimes I have to `systemctl restart bluetooth` though. And I always need to bluetoothctl > connect <my device id, tab completed>
<infinisil> when wanting to use it
<iqubic> Yeah, I can't get bluetoothct to connect to my device.
<iqubic> Which is weird because it works out of the box on Window10 on the same machine.
<infinisil> Well it's an entirely different OS
<iqubic> Also, I think running "nixos-rebuild switch --upgrade" in a TTY was a bad idea.
<infinisil> How so?
<iqubic> It completely stopped showing output.
<iqubic> Which leads me to think that the update is hung.
<iqubic> Except that hitting enter still adds newlines to the TTY
<zybell_> Which is called echo.
endformationage has quit [Ping timeout: 260 seconds]
<iqubic> What do you mean?
<zybell_> And is available on hanging programs too.
<iqubic> I see. That makes sense.
<zybell_> But not on hanging kernel.
<iqubic> So how should I resolve my issue with the update to 18.03 being hung?
<achambe> iqubic: control-c doesn't stop it?
<iqubic> I can't just kill the terminal because it's a TTY.
<zybell_> Another term?
<iqubic> achambe: I feel stupid.
<{^_^}> [nixpkgs] @Ralith opened pull request #38538 → matrix-synapse: 0.26.1 -> 0.27.2 → https://git.io/vxHrh
<iqubic> I should try that.
endformationage has joined #nixos
<achambe> nixos updates are relatively safe, it installs everything first, then switches
<achambe> so you can just cancel it
<iqubic> Let's try this again.
<achambe> and your old system is unchanged
<iqubic> Control-C does kill the thing.
<zybell_> running it under strace may give you progress report.
<achambe> iqubic: it may just be that the cache server is busy
<achambe> with lots of machines updating
<clever> the last person i helped with this issue, it was just network io
<iqubic> Well, it is hanging at the exact same place.
<iqubic> And there it goes.
<iqubic> When was 18.03 released?
jrolfs has quit [Ping timeout: 245 seconds]
<zybell_> there is a fundamental issue with nix/nixos. It comes up in several disguises at least once a day on #nixos. I would call it the plugin issue. The (often unstated) issue is: A package (like libnss,python,...)uses libdl to load a plugin mentioned in a config/script-file, which it expect to find in a compiled in path. Even when that plugin is installed (dependency is missing)it is never and can't be in that path.
<infinisil> iqubic: 4th April!
<zybell_> infinisil:shouldnt that mean proper name is 18.04
<infinisil> Good point..
<infinisil> I guess the goal is to have a regular 6 month release, instead of just releasing 6 months after the last release
hamishmack has joined #nixos
<kandinski> hi, I'm writing my first derivation for a simple autotools-driven program. My first question is about dependencies. If the project page says that I need boost and boost-devel, how does that translate to nixpkgs dependencies?
<zybell_> But it would be good style to admit not reaching that goal. Ubuntu did so once (But it was 2 month,not a week)
<kandinski> the string "boost-devel" doesn't exist in the nixpkgs source tree
<zybell_> -devel you can omit.
<zybell_> in nix
<iqubic> How long does the update to 18.03 take?
<infinisil> kandinski: It's just `boost` as well I'm pretty sure
<infinisil> kandinski: Packages can contain multiple outputs, and a common one is a "dev" output, which contains development stuff
<infinisil> mkDerivation will automatically take the .dev output though, so you can just add boost to the buildInputs
hakujin has joined #nixos
sanscoeur has joined #nixos
bsima has quit [Ping timeout: 264 seconds]
colescott has quit [Ping timeout: 256 seconds]
glines has quit [Ping timeout: 264 seconds]
nD5Xjz has quit [Ping timeout: 264 seconds]
<achambe> iqubic: I just left my PC, I would guess it was 10-30 minutes, I have fiber internet.
glines has joined #nixos
<kandinski> infinisil: ta
ldlework has quit [Ping timeout: 276 seconds]
<iqubic> Yeah, it just finished so I'm not concerned.
andromed1-galaxy has quit [Ping timeout: 264 seconds]
abrxs has quit [Ping timeout: 264 seconds]
endformationage has quit [Ping timeout: 264 seconds]
hakujin has quit [Ping timeout: 265 seconds]
abrxs has joined #nixos
<achambe> if anyone is interested, I'm trying to write a terraform nixos provider that lets you specify a channel and a configuration.nix
andromeda-galaxy has joined #nixos
<kandinski> why does this happen? Do I need to register the directory somewhere?
Lisanna has quit [Remote host closed the connection]
<infinisil> kandinski: $NIXPKGS doesn't point to nixpkgs
<kandinski> it does, I exported it
<infinisil> Oh
<kandinski> like if I substitute xmlcopyeditor by bc, as in the wiki's example, it does work
<infinisil> You probably want nix-shell -p xmlcopyeditor or nix-build $NIXPKGS -A xmlcopyeditor
endformationage has joined #nixos
<infinisil> What's your goal?
Arcaelyx_ has quit [Remote host closed the connection]
<infinisil> Hmm
ldlework has joined #nixos
<kandinski> my goal is to package xmlcopyeditor for nixos/nix-linux
<infinisil> Well xmlcopyeditor doesn't exist..
<kandinski> no, I'm packaging it anew!
jrolfs has joined #nixos
nD5Xjz has joined #nixos
bsima has joined #nixos
<infinisil> Ah yeah just read it
<kandinski> I've created pkgs/applications/editors/xmlcopyeditor/default.nix
<kandinski> etc
<infinisil> Did you add it to nixpkgs/pkgs/top-level/all-packages.nix?
<kandinski> nope
<infinisil> That's where nixpkgs gets its attributes from
<kandinski> guide doesn't mention it. Thanks.
<infinisil> I don't see anywhere it mention how to create new packages, only a bit on nix-shell
<infinisil> Ah
<infinisil> Yeah it assumes an already existing package
<kandinski> well, the page is called "Create and debug packages"
<kandinski> maybe a misnomer
<infinisil> Lol
<infinisil> Oh no, see at the very top
<kandinski> all-packages doesn't seem to be alphabetically sorted. Is there any order I should preserve?
<infinisil> "Writing packages is covered in http://nixos.org/nixpkgs/manual"
<infinisil> kandinski: read the very top
<zybell_> Not mentioning it should be remedied.
<infinisil> Yeah, it's a mess
<infinisil> But the ### sections give it somewhat of a structure, which is probably more annoying than anything
Arcaelyx has joined #nixos
<kandinski> well, once I know how it works I can maybe help fix the docs.
endformationage has quit [Ping timeout: 276 seconds]
jrolfs has quit [Ping timeout: 264 seconds]
asuryawanshi has joined #nixos
endformationage has joined #nixos
martingale has quit [Ping timeout: 260 seconds]
schoppenhauer has quit [Ping timeout: 240 seconds]
abrxs has quit [Ping timeout: 276 seconds]
schoppenhauer has joined #nixos
martingale has joined #nixos
<zybell_> I think all-packages was once thought to be alphabetically sorted (How else avoid adding pkg twice) but every body who didn't get the idea and added its pkgs every which way deteriorated it into a state more people dont get the idea.
abrxs has joined #nixos
<clever> zybell_: there is also some rough categories
<zybell_> Not good, see parentheses.(think 80000 pkgs)
rotaerk has quit [Ping timeout: 260 seconds]
<zybell_> Of course you could have the same prog in differently named pkgs. But that is already possible and maintainable (multi version)
endformationage has quit [Ping timeout: 256 seconds]
<{^_^}> [nix-pills] @Ericson2314 merged pull request #56 → replace indent with nix show-derivation → https://git.io/vxHa0
<{^_^}> [nix-pills] @Ericson2314 pushed commit from @dudebout to master « replace indent with nix show-derivation »: https://git.io/vxHKL
endformationage has joined #nixos
rotaerk has joined #nixos
endformationage has quit [Ping timeout: 260 seconds]
martingale has quit [Read error: Connection reset by peer]
martingale has joined #nixos
<{^_^}> [nixpkgs] @lopsided98 opened pull request #38539 → nginx: allow basic auth passwords to be specified in a file → https://git.io/vxHKB
endformationage has joined #nixos
<infinisil> How about 2-char directory subdivisions
<infinisil> So there's nixpkgs/pkgs/{aa,ab,ac,...,zz} (but only the used ones), and each of them contains the packages with that prefix
rotaerk has quit [Ping timeout: 268 seconds]
<infinisil> Then we put into each package definition a meta.tag value which is a list like [ "data" "CLI" "application" ] indicating its categaries
<infinisil> Get some nix functions to filter packages based on tags and kablam! A new and better way is born
<infinisil> Optionally subdivide each of those prefixes with one more 2-char subdivisiovn
<kandinski> https://paste.debian.net/1019080/ contains my next roadblock. fetchurl results in a source file with different hash than the one I calculated.
<kandinski> obviously it will work when I substitute the hash in the error message for the one I calculated on the cli, but I'd like to know what I did wrong.
<kandinski> ...
<kandinski> Next question. If adding a package (in this case xmleditor) requires upgrading the version on a dependency (in this case intltool), should I upgrade intltool in the same pull request, or do it in a separate pull request?
<kandinski> ...
<infinisil> kandinski: Maybe you need --flat
<infinisil> added to nix-hash
<kandinski> infinisil: yes, this produces a matching hash
<infinisil> kandinski: Upgrade in the same PR, but with a separate commit
<kandinski> infinisil: thanks
<infinisil> :)
<kandinski> it's not required, btw. master has an updated intltool. I'm running an older version despite being on unstable channel.
<infinisil> Optimally you should use master for making changes
<kandinski> I don't know what's wrong here. Error says I need intltool 0.40.0 or later. master branch on nixpkgs (where I am branching off) has 0.51.0.
<kandinski> Yes, that's what I thought I was doing. using $NIXPKGS pointing at a master branch checkout should get the right tree.
<kandinski> could ./configure version detection be wrong?
Arcaelyx has quit [Read error: Connection reset by peer]
Fare has joined #nixos
<kandinski> possibly related to this issue: https://github.com/NixOS/nix/issues/964
rotaerk has joined #nixos
<kandinski> could solution be make a user for development and make it be on master?
Fare has quit [Ping timeout: 265 seconds]
Arcaelyx has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
rotaerk has quit [Ping timeout: 260 seconds]
endformationage has joined #nixos
Arcaelyx has quit [Read error: Connection reset by peer]
rotaerk has joined #nixos
orivej has joined #nixos
Arcaelyx has joined #nixos
endformationage has quit [Ping timeout: 260 seconds]
Arcaelyx has quit [Read error: Connection reset by peer]
endformationage has joined #nixos
aarvar has quit [Ping timeout: 260 seconds]
endformationage has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 264 seconds]
Arcaelyx has joined #nixos
endformationage has joined #nixos
<zybell_> I would try to link binaries against the *oldest* libs I can use. Makes it run against the newer as well. So a dev user should *not* be based on master. IMHO
<kandinski> hmm
<kandinski> I don't know what I'm doing here. First of all, intltool is not an explicit dependency or buildInput
<kandinski> so i don't even know how to pin it
Arcaelyx has quit [Read error: Connection reset by peer]
Fare has joined #nixos
blonkhart has quit [Quit: WeeChat 1.9.1]
marusich has joined #nixos
<iqubic> Anyone here have experience setting up a bluetooth headset in nixos?
Arcaelyx has joined #nixos
<zybell_> is gettext dependency?
<kandinski> buildInputs = [ aspell boost expect libxml libxslt pcre xercesc ];
Rusty1_ has quit [Quit: Konversation terminated!]
<zybell_> Sorry should read:is gettext a transitive dependency?
<kandinski> is there a command that unfolds the dependencies of a package from its buildInputs?
<kandinski> (I'm reading documentation but can't find it)
<iqubic> So no one know how to get bluetooth working on nixos?
<zybell_> search -qpR I think
orivej has joined #nixos
<kandinski> iqubic: it works for me just from installing gnome.
<iqubic> I need to do it manually, as I am running i3.
<zybell_> First you need to pair the device (check out the -a option to bluetoothctl), then connect should work.
orivej has quit [Ping timeout: 264 seconds]
<iqubic> How does one connect?
<zybell_> echo connect id|blut...
<zybell_> id is the id of the dev
blankhart has quit [Read error: Connection reset by peer]
<zybell_> or you run bluetoothctl manually
<zybell_> try help
blankhart has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
stumble has joined #nixos
iqubic has joined #nixos
ruhatch has quit [Quit: Connection closed for inactivity]
<iqubic> Yeah, I can't make this work at all.
<iqubic> I'm trying to get the command line bluetooth interface to work, and I can't.
stumble has quit [Client Quit]
<iqubic> [bluetooth]# power on
<iqubic> Failed to set power on: org.bluez.Error.Blocked
<iqubic> [bluetooth]# scan on
<iqubic> Failed to start discovery: org.bluez.Error.NotReady
<iqubic> So I'm not sure how to make this work.
<iqubic> Can I get some help making this work?
jrolfs has joined #nixos
Arcaelyx has quit [Read error: Connection reset by peer]
NightTrain has quit [Quit: Lost terminal]
sanscoeu_ has joined #nixos
Arcaelyx has joined #nixos
sanscoeur has quit [Ping timeout: 264 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
grahambouvier has joined #nixos
michas_ has joined #nixos
<grahambouvier> Hey, is it possible to have xerver.enable = true; with no displayManager? Looks like slim is running, but xserver.displayManager.slim.enable = false; causes an error on refresh.
<{^_^}> [nixpkgs] @FRidh closed pull request #32438 → pytorch-0.3 with cuda and cudnn → https://git.io/vblbG
<grahambouvier> Actually, I managed my way around that with displayManager.job.execCmd = ""; But I was exepcting that to allow me to run startx, but I still get a `X Error of failed request: BadAccess` error
<grahambouvier> I haven't tried other wms, but `exec emacs` in an .xinitrc works for me
Arcaelyx has quit [Read error: Connection reset by peer]
ldlework has quit [Changing host]
ldlework has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 189 commits to python-unstable: https://git.io/vxHP3
<{^_^}> → a1454514 by @FRidh: python: cookiecutter: 1.4.0 -> 1.6.0
<{^_^}> → db39035c by @FRidh: python: coveralls: 1.2.0 -> 1.3.0
<{^_^}> → 4825246a by @FRidh: python: cryptography: 2.1.4 -> 2.2.2
Arcaelyx has joined #nixos
<kandinski> I've advanced quite a bit, mostly by explicity adding dependencies, but now I have an issue with libxml that might not be the first time it appears: wraplibxml.h:26:10: fatal error: libxml/parser.h: No such file or directory
Arcaelyx has quit [Read error: Connection reset by peer]
marusich has quit [Quit: Leaving]
<boomshroom> I tried to update my environment and firefox failed because an icon wasn't in the directory it expected.
Arcaelyx has joined #nixos
<kandinski> hmm
<kandinski> how do I force explicit inclusion of a file in a nix-ish way?
davidlt has joined #nixos
johnw has joined #nixos
<srhb> lejonet: Hey, sorry I missed you, I've been quite busy. I'll be away until sunday, but I'll try to remember to poke you then :)
orivej has joined #nixos
johnw has quit [Ping timeout: 268 seconds]
phry has quit [Ping timeout: 256 seconds]
phry has joined #nixos
TonyTheLion has joined #nixos
<kandinski> right, so how can I nix-ish-ly modify the include path in an autotools-managed C/C++ project?
thefloweringash has quit [Quit: WeeChat 2.0]
sanscoeu_ has quit [Remote host closed the connection]
<boomshroom> kandinski: Probably either configureFlags or an environment variable. Environment variables are just set as set elements of the argument to mkDerivation.
<kandinski> I've tried a preConfigure=''export CFLAGS="-I${pkgs.libxml2.dev}/include/libxml2/libxml"'' attribute in the mkDerivation function, to no effect.
sanscoeur has joined #nixos
<kandinski> boomshroom: thanks
<boomshroom> kandinski: Perhaps try CFLAGS="-I${pkgs.libxml2.dev}/include/libxml2/libxml"; as an atribute itself?
<{^_^}> [nixpkgs] @Moredread opened pull request #38540 → josm: 13500 -> 13576 → https://git.io/vxHXy
<kandinski> boomshroom: you meani an attribute to mkDerivation?
<boomshroom> kandinski: Yes. Attributes are implicitly set as environment variables.
<kandinski> oooh!
<kandinski> thanks a lot
alex`` has joined #nixos
asuryawanshi has quit [Ping timeout: 256 seconds]
krey has quit [Ping timeout: 260 seconds]
<kandinski> I have my derivation in my branch. What's the etiquette here? Is it ok to make a PR for a non-working derivation with an exmplanation of what it is that doesn't work in the PR message?
<kandinski> or should I rather paste the URL for the github branch here, and ask for advice that way?
<boomshroom> kandinski: I'd say the latter. It would probably be best to make sure it works before submitting the PR.
<kandinski> sure
Jetien has joined #nixos
hakujin has joined #nixos
<kandinski> this is what I have. the package doesn't compile because it can't find the libxml headers
stefan___ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38540 → josm: 13500 -> 13576 → https://git.io/vxHXy
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxHXA
<{^_^}> → 49d0fa77 by @Moredread: josm: 13500 -> 13576
<{^_^}> → f8e90cc1 by @Mic92: Merge pull request #38540 from Moredread/josm
<kandinski> I'd appreciate some help in going foward.
selaux has joined #nixos
acarrico has quit [Ping timeout: 264 seconds]
hakujin has quit [Ping timeout: 256 seconds]
<thor> I want to use dnsmasq on my laptop with nework manager, while also providing a couple of custom rules for dnsmasq's resolving rules, I've set networking.networkmanager.useDnsmasq to true
<boomshroom> Using git for personal projects is usually such a chore, but it is really cool how I can just stow away a particular change in its own branch and then fetch your changes into the same tree.
<thor> I'm on a laptop that move between corporate and private networks as well as using VPNs
jrolfs_ has joined #nixos
<kandinski> boomshroom: I love git unabashedly and with very few reserves.
michas_ has quit [Ping timeout: 240 seconds]
<boomshroom> kandinski: Trying to build your package is making me download a worrying number of packages
Jetien has quit [Quit: Leaving]
<etu[m]> boomshroom: Probably because it's based on master and you're not running master. So you get alot of newer packages :)
<boomshroom> kandinski: I was in the middle of typing just that. :P
<kandinski> boomshroom: oops?
<etu[m]> Anyone else having a missing firefox icon for firefox-bin in latest nixos-unstable? :)
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxH10
<{^_^}> → 5a75e845 by @Ekleog: nheko: init at 0.3.0
<{^_^}> → d017bc39 by @Mic92: Merge pull request #38537 from Ekleog/nheko-init
<{^_^}> [nixpkgs] @Mic92 merged pull request #38537 → nheko: init at 0.3.0 → https://git.io/vxHrU
<boomshroom> etu[m]: No, my firefox just refuses to build because the icon is in the wrong place.
Arcaelyx has quit [Read error: Connection reset by peer]
<etu[m]> For me it's just like that
blankhart has quit [Ping timeout: 260 seconds]
<etu[m]> boomshroom: Then I'm better off :D
zarkone has joined #nixos
stefan___ has quit [Remote host closed the connection]
selaux has quit [Remote host closed the connection]
<zarkone> hi! configuring was deploy for cluster. in service file, I use `networking.firewall.allowedTCPPorts = ....`, but I can't use `networking.hostname` for some reason: getting
<zarkone> `nixops deploy -d staging-ec2 --include appserver1 appserver2 appserver3
<zarkone> error: undefined variable 'networking'`
<zarkone> how should I do it properly with nixos\nixops
<zarkone> ?
<{^_^}> [nixpkgs] @sifmelcara opened pull request #38541 → pcmanx-gtk2: fix build → https://git.io/vxH1V
selaux has joined #nixos
<{^_^}> [nix] @Bogdacutu opened pull request #2052 → release.nix: Use $sourceRoot instead of hardcoded source directory → https://git.io/vxH1P
<boomshroom> kandinski: Try setting C_INCLUDE_PATH = "${pkgs.libxml2.dev}/include/libxml2"; I think it would be cleaner than CFLAGS and I think were looking one directory too deep.
<boomshroom> kandinski: The alternative would be to include pkgconfig and let it handle everything.
<boomshroom> Hold on. You're setting the pkgs.libxml2 in the include path, but specifying libxml in the buildInputs!
<kandinski> oops
<kandinski> I really don't know what I'm doing, I'm sorry for that. About 20% of the time I work by superstition.
<iqubic> why is bluetoth so confusing?
<boomshroom> kandinski: I can see what you were trying to do with that: allow the user to select which version to provide.
<iqubic> *bluetooth
<boomshroom> kandinski: Setting C_INCLUDE_PATH and CPLUS_INCLUDE_PATH to "${pkgs.libxml2.dev}/include/libxml2" got it to a different error.
<{^_^}> [nixpkgs] @sifmelcara opened pull request #38542 → spin: fix build → https://git.io/vxH1j
jrolfs_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed to staging « iana-etc: 20180108 -> 20180405 »: https://git.io/vxHMv
<iqubic> [bluetooth]# power on
phreedom has quit [Remote host closed the connection]
<iqubic> Failed to set power on: org.bluez.Error.Blocked
phreedom has joined #nixos
<iqubic> [bluetooth]# scan on
<kandinski> boomshroom: a different error is good. progress!
<boomshroom> iqubic: Good question. Last time I tried using bluetooth, only one of my Joy-Cons decided to connect.
<elvishjerricco> zarkone: Sounds like you're referencing `networking.hostname` as a variable. Are you trying to set it to something?
<iqubic> Failed to start discovery: org.bluez.Error.NotReady
<iqubic> see I cant even get bluetoothctl to work
Arcaelyx has joined #nixos
<boomshroom> kandinski: The next issue seems to be that the source hardcodes /usr/share so you will need to patch the source to fix that.
<kandinski> boomshroom: interesting!
<kandinski> (thanks!)
<iqubic> Anyone know how I can get bluetoothctl to work?
<kandinski> iqubic: can you run gnome with i3 as your window manager?
<iqubic> I could, but why would I?
<kandinski> that's what I do with xmonad
<kandinski> well, I do it so I get the gnome goodies like working bluetooth
<kandinski> (and network-manager, and other dbus-related things that just work)
<iqubic> Is that the only reason I would install such a big package like gnome?
<iqubic> Internet works just fine for me.
<iqubic> Not sure what other dbus things I'd need help with.
<kandinski> I was trying to be helpful by suggesting what works for me. Is all.
<kandinski> Auto-mounting of external discs the moment they are plugged-in via USB.
leat has quit [Ping timeout: 264 seconds]
<kandinski> That's something that I like to have.
<iqubic> I see. I don't really want to install gnome. Is that the only way to get bluetooth to work?
<kandinski> iqubic: I don't know. I'm new to nixos too.
<iqubic> Ah. I se.
<kandinski> boomshroom: can you share your changes? I removed the lxml library rename, and set the paths you suggest, but I still get the old error.
jrolfs has quit [Ping timeout: 265 seconds]
<boomshroom> kandinski: sent a pull request.
<kandinski> ta
<boomshroom> iqubic: I personally use blueman. It worked find on Arch. It's working less than fine so far on NixOS.
<iqubic> I don't have blueman installed. How hard is it to get that set-up?
<boomshroom> iqubic: It's a simple standalone application.
<iqubic> Oh, actually I do have it installed.
<iqubic> Odd that "blueman" is not a valid command.
<iqubic> What's the terminal executable called?
<boomshroom> iqubic: That's because it's a collection of binaries. It's a graphical configuration. I've just been running it from dmenu-desktop.
<iqubic> What is the application called?
<boomshroom> The desktop entry is called Bluetooth Manager. The executable is blueman-manager.
hotfuzz has joined #nixos
hotfuzz_ has quit [Ping timeout: 265 seconds]
<kandinski> boom, thanks a lot for the diff, and thanks for the to-do in the comment!
<iqubic> Well, I have this partially working.
<iqubic> My bluetooth headset is paired to my computer, but I can't get any sound to come from it.
<iqubic> It is being recognized by pavucantrol, but no sound is being piped to it.
<iqubic> Nevermind. Somehow setting it as a fallback seems to work.
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon3 is now known as Mateon1
<zarkone> elvishjerricco: hey, sorry for long abcense. no, i'm trying to determine current hostname: `hostname = networking.hostname;`
jrolfs has joined #nixos
<zarkone> elvishjerricco: `postStart = if hostname != "appserver1" then ..`
<boomshroom> JoyCons: Connected!
<elvishjerricco> zarkone: Oh. You need to use `config.networking.hostname`. The `config` value holds all the final configuration definitions
<elvishjerricco> boomshroom: Are you running NixOS on a Switch?
<zarkone> elvishjerricco: oh, I see! but why `networking.firewall.allowedTCPPorts = [ epmdPort rabbitPort ];` works in the same file then?
<boomshroom> elvishjerricco: I wish. 👿
<elvishjerricco> zarkone: epmdPort and rabbitPort must be brought into scope somehow
<elvishjerricco> I can't really say without knowing more about the file
<zarkone> yes, those are local vars from `let`
<elvishjerricco> So why wouldn't you expect them to work?
<{^_^}> [nixpkgs] @rycee pushed commit from @limeytexan to master « perlPackages.FilePid: init at 1.01 »: https://git.io/vxHM5
<{^_^}> [nixpkgs] @rycee closed pull request #36915 → perlPackages.FilePid: init at 1.01 → https://git.io/vxUDO
<zarkone> well, because if I try to get `networking.hostname` I get `unbound variable networking`
<boomshroom> elvishjerricco: Managed to get the driver working and now I have full dual-Joy-Cons on PC!
<zarkone> but inn the same file, networking.firewall doesn't complain about anything
<{^_^}> [nixpkgs] @rycee pushed commit from @limeytexan to master « perlPackages.FileTouch: init at 0.11 »: https://git.io/vxHMx
<{^_^}> [nixpkgs] @rycee closed pull request #38519 → perlPackages.FileTouch: init at 0.11 → https://git.io/vx95Q
<elvishjerricco> zarkone: That's because you're *declaring* network.firewall, not *referencing* it
jrolfs has quit [Ping timeout: 276 seconds]
<elvishjerricco> Anything referenced must be in scope. Declarations are simply made
grahambouvier has quit [Quit: Lost terminal]
<zarkone> elvishjerricco: aha, right! now I've got it, thanks a lot :) just not get used to NixOS yet, thanks!
<boomshroom> Time for Xenosaga + Joy-Cons.
<iqubic> That works on linux?
<boomshroom> iqubic: Of course it does. All hardhare works on linux, and most software not made for linux works on linux through various means.
<{^_^}> [nixpkgs] @rycee pushed commit from @limeytexan to master « perlPackages.FileTail: init at 1.3 »: https://git.io/vxHDt
<{^_^}> [nixpkgs] @rycee closed pull request #36914 → perlPackages.FileTail: init at 1.3 → https://git.io/vxU1V
asuryawanshi has joined #nixos
asuryawanshi has quit [Read error: Connection reset by peer]
simukis has joined #nixos
winem_ has joined #nixos
johnw has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 265 seconds]
johnw has quit [Ping timeout: 260 seconds]
winem_ has quit [Remote host closed the connection]
<boomshroom> Well, I can play Xenosaga with Joycons, so that's a thing.
<boomshroom> And now I'm playing Pokemon Ultra Moon. What will I do next?
justanotheruser has quit [Ping timeout: 264 seconds]
ma27 has joined #nixos
<ij> Is there a channel update & upgrade wiki or manual? Is it possible to update only via configuration.nix?
<MichaelRaskin> zybell_: re: "18.04": I would expect checking that all the infrastructure prepared for 18.03 handles 18.04 name to take more than 4 days.
davidlt_ has joined #nixos
<boomshroom> Goodnight guys, it's almost 2 and I've had fun setting up my Joy-Cons.
boomshroom has quit [Quit: WeeChat 2.0]
justanotheruser has joined #nixos
davidlt has quit [Ping timeout: 260 seconds]
posco has quit [Read error: Connection reset by peer]
posco has joined #nixos
bsima has quit [Ping timeout: 240 seconds]
mutantmell has quit [Ping timeout: 240 seconds]
mutantmell has joined #nixos
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
_rvl has joined #nixos
bsima has joined #nixos
logzet has joined #nixos
<kandinski> generic question: Makefile.am is the input, and Makefile.in should not even be in the source tree, is this correct?
<kandinski> (generic question, but it regards a nixos package I'm attempting to build)
<kandinski> or do I patch Makefile.in, and Makefile.am is something that should be fixed upstream so we don't need to patch the Makefile.in?
ma27 has quit [Ping timeout: 260 seconds]
kerrhau has quit [Ping timeout: 260 seconds]
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
Ariakenom has joined #nixos
_rvl has joined #nixos
<zybell_> iqubic: gnome depends on dbus, bluetoothctl too, dependency is written into gnome, forgotten in bluetoothctl (or it can use another bluetoothdriver as well, with which it is compiled)
Mateon1 has quit [Remote host closed the connection]
<iqubic> I got bluetooth working without gnome.
Mateon1 has joined #nixos
ma27 has joined #nixos
<zybell_> MichaelRaskin:If the infrastructure can't take a change 18.03->18.04 NixOS has no worth. The reason NixOS exists is to make such changes painless dependable. If there is something in NixOS that prohibits that,one should know about it(and fix it).
leat has joined #nixos
<zybell_> Broken Nix:there is a fundamental issue with nix/nixos. It comes up in several disguises at least once a day on #nixos. I would call it the plugin issue. The (often unstated) issue is: A package (like libnss,python,...)uses libdl to load a plugin mentioned in a config/script-file, which it expects to find in a compiled in path. Even when that plugin is installed (dependency is missing)it is never and can't be in that path.
<MichaelRaskin> zybell_: do you understand the difference between NixOS code, Nix guarantees and supporting stuff like Hydra job configs, documentation references, web sites etc.?
<MichaelRaskin> zybell_: plugin issue is a real issue, and is generally solved by patching out the assumption that a user can never privately install a plugin to a system-wide installed package. Once this problem (coming from upstream code) is solved, it becomes trivial to write a wrapper (and the wrapper gets written)
hihello has joined #nixos
xy2_ has joined #nixos
<hihello> Hi. I'm a total noob here but I'm feeling brave to ask a question. How can I have two nix configurations one with gnome applications and de and one with plasma5 and kde apps?
nyanloutre_ has joined #nixos
michas_ has joined #nixos
ottidmes has joined #nixos
<MichaelRaskin> hihello: look at the documentation of nesting.children options
<hihello> MichaelRaskin: Yay! Will do that.
nyanloutre_ has quit [Client Quit]
<hihello> MichaelRaskin: Ooh it's perfect.
<{^_^}> [nixpkgs] @LnL7 opened pull request #38544 → stdenv: introduce meta.supported → https://git.io/vxHSK
<zybell_> If a user can install a private plugin to a systemwide installed package that is called by root, it has security ramifications that can't easily patched out. Think about how setuid-binaries ignore LD_PRELOAD? And the problem is greater than you assume. If it is a scripting language (bash can load extensions)shebang-lines can't take scripts. So you need an additional wrapper thats callable by env.
xy2_ has quit [Quit: WeeChat 1.9.1]
xy2_ has joined #nixos
<hihello> MichaelRaskin: This issue was helpful for what you told me to look at https://github.com/NixOS/nixpkgs/issues/23458
<MichaelRaskin> zybell_: a user should be able to privately install a plugin for the times when the user calls the package without affecting other users' use of the same package
<kandinski> how does one patch a .cpp file that has a harcoded "/usr/share" path?
chimay has joined #nixos
<kandinski> I know almost nothing about C/C++, I'm only trying to package this editor that I use.
<MichaelRaskin> hihello: my statement there that I don't use NixOS bootloaded configuration code anymore is still true.
<MichaelRaskin> kandinski: does the package install all the files that it wants itself? If so. replacing /usr with build-time value of $out should work
blankhart has joined #nixos
<zybell_> The problem is that a plugin has to be in a path. For every user that path is different. So it cant be compiled in. Using LD_LIBRARY_PATH as a general environment is size restricted. Using it in a particular call needs at least two wrappers and changed shebangs everywhere. The only scalable approach I see is a $ORIGIN based general plugin infrastructure which is every plugin-using package is patched to use.
<kandinski> MichaelRaskin: I don't know. This is the offending code: http://paste.debian.net/1019099/
thblt has joined #nixos
TonyTheLion has quit [Remote host closed the connection]
<MichaelRaskin> zybell_: well, or just using tha Mozilla solution of dlopen to absolute names inside MOZ_PLUGIN_PATH (although the name has to be different)
<MichaelRaskin> kandinski: not completely sure what wxGTK expects there. You could try the straightforward approach and see if it works…
<ikwildrpepper> MichaelRaskin: you still using julia from nixpkgs?
<MichaelRaskin> Not too often nowadays.
<ikwildrpepper> MichaelRaskin: just wondering if we can remove some of the older versions
<MichaelRaskin> Definitely 0.4, and probably 0.5
<ikwildrpepper> I expect to do some julia work with nixpkgs, so want to know what versions are still relevant
<MichaelRaskin> 0.6.2 is upstream-current
<ikwildrpepper> yep
<zybell_> MichaelRaskin:The environment Variable may be called LD_LIBRARY_PATH,MOZ_PLUGIN_PATH or whatever, the size of the environment is restricted. If every package needs its plugin path in the environment, there cant be many packages using plugins.
<MichaelRaskin> ikwildrpepper: yeah, I would hope that almost a year after the last 0.5.x release 0.6.2 will not break again for us
<MichaelRaskin> zybell_: with some wrappers you do not need to set all the plugin directories inside the user's top-level environment
pkill9 has joined #nixos
coot has joined #nixos
<MichaelRaskin> But you are right that with some amount of plugin-loading packages it becomes better to use something like $PACKAGE_PLUGINS/lib/${package.name}
ixxie has joined #nixos
<zybell_> And did you know that *every* binary in the OS loads plugins?
<MichaelRaskin> Its own plugins? Not really.
<MichaelRaskin> Probably trying to load some glibc plugins.
<zybell_> Not its own. But it loads nss-plugins.
<{^_^}> [nixpkgs] @dotlambda merged pull request #38532 → pythonPackages.ewmh: init at 0.1.6 → https://git.io/vxHlC
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/vxH96
<{^_^}> → 5e7e762b by @bandresen: maintainers: add bandresen
<{^_^}> → 1d0bff83 by @bandresen: pythonPackages.ewmh: init at 0.1.6
<{^_^}> → a05f246b by @dotlambda: Merge pull request #38532 from bandresen/pyewmh
<MichaelRaskin> Well, it is a single plugin-loading package.
<ixxie> So, some of us have been working on packaging Jupyter ecosystem stuff and other data science tools and I would like to sort of formalize the project
<ixxie> what is the standard channel for doing that sort of thing on Nixpkgs?
<MichaelRaskin> ixxie: in what sense of «formalise»?
<ixxie> MichaelRaskin: in the sense of coordinate in one point with other people interested in working on Nixpkgs data science infra
<ikwildrpepper> ixxie: easiest to create a PR, and send email to mailing list requesting feedback, or ask if other people would like to participate, I guess
thc202 has joined #nixos
<ikwildrpepper> ixxie: what kind of infrastructure are you thinking of btw, I'd be interested in jupyter related stuff
<ixxie> ikwildrpepper: I wouldn't know what kind of PR to make for this sort of strategic coordination which doesn't have anything to do with particular code merged, normally that is what a project is for but I don't have the permission to make one
<MichaelRaskin> A lot of quasi-projects run on a few tracking issues and a series of PRs
<zybell_> Yes, but with pam, python, language bindings for middleware like postgres, seldom used but hopefully supported like bash extensions, and possibly others I forget there are many ways to find unexpected dependencys. That plugin infrastructure is needed. And if only because it is where packages are m:n-related. And even in a database that needs an extra table (read infrastructure).
<ikwildrpepper> oh, I assumed you already had something for a PR. indeed, like MichaelRaskin said, you can just create an issue to discuss
<mkaito> is there any documentation on using nixos containers as nixops target?
<ixxie> ikwildrpepper: but most interestingly is aborsu's work here https://github.com/NixOS/nixpkgs/pull/33673 because it opens the way for Nix specified jupyter kernels :)))
<ixxie> thanks MichaelRaskin, ikwildrpepper - I will make an issue
<MichaelRaskin> ixxie: re: jupyter-service PR: I think there is a healthy discussion right there…
hihello has quit [Quit: Page closed]
johnw has joined #nixos
<mkaito> once a PR gets merged into nixpkgs, when does it show up on my system? I'm on unstable.
<MichaelRaskin> It depends. I would expect something like single-digit days.
<MichaelRaskin> If a channel is behind the master branch more than by a week, people consider it a problem to fix; but channel bumps wait for Hydra builds of a master revision, so it is far from instant
<mkaito> oh I thought unstable was tracking master
<MichaelRaskin> It is, but with a filter
<ixxie> MichaelRaskin: yes but the scope is too narrow; I wanna look at coordinating coverage of ML/NLP/Statistics stuff from the Python ecosystem, and completing the Data Haskell collection
zybell_ has quit [Ping timeout: 265 seconds]
<MichaelRaskin> If you can formulate a clear goal and list a set of partial achievements related to it, it sounds like a tracking issue. Maybe put [RFC] in the beginning of the title.
<mkaito> MichaelRaskin: I was wondering about this PR in particular https://github.com/NixOS/nixpkgs/pull/38427 — only been 3 days, so there's that. but since you mention a filter, maybe that's relevant?
johnw has quit [Ping timeout: 260 seconds]
<MichaelRaskin> I just run off a git checkout, so I am not really tracking the channel delay
<MichaelRaskin> https://howoldis.herokuapp.com/ says that it should be one day old
<mkaito> which probably means I'm doing something wrong locally
<MichaelRaskin> Oh, that's nixpkgs-unstable
<MichaelRaskin> Which unstable do you run, though?
<MichaelRaskin> nixos-unstable has been bumped 3 days ago to something two weeks olld
<ixxie> MichaelRaskin: will do
<mkaito> nixos-unstable
<mkaito> that makes sense then
<MichaelRaskin> Hm, there is a failure
<MichaelRaskin> Hm, that's a strange docker failure
<mkaito> hmm?
<MichaelRaskin> This is a failure that prevents the nixos-unstable channel bump
<mkaito> good thing I came asking, I guess :P
<MichaelRaskin> Nah, I don't use NixOS mainline nor docker
<MichaelRaskin> I don't even know how to reproduce that locally.
<MichaelRaskin> ikwildrpepper: does https://hydra.nixos.org/build/72403628 look like a transient resource-related failure that needs just a restart?
<mkaito> it ran out of threads
<mkaito> runtime: failed to create new OS thread (have 12 already; errno=11)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b25153a2983 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<mkaito> runtime: may need to increase max user processes (ulimit -u)
<mkaito> so probably transient
<mkaito> although it's been failing since the 25th
bollu has quit [Ping timeout: 264 seconds]
<MichaelRaskin> It is a cached failure, though
<MichaelRaskin> If it is the same exact build, it doesn't get rebuilt by default
zybell_ has joined #nixos
<mkaito> hmmm
cinimod has joined #nixos
<mkaito> 5b01b0d316b65f7defac195cf360cf79f797903c bumps the go version
<mkaito> likely related
bollu has joined #nixos
<MichaelRaskin> Nothing better for careful reading of dependency change list than a user actually interested in the fix…
<mkaito> I guess globin might want to have a look maybe
<zybell_> MichaelRaskin:Because as nss shows librarys can use plugins too, which can be independent from the calling program, I propose a two-step approach. A user-installed pluginloader.so with rpath $ORIGIN/loader, in loader/ a <pkg>.so with rpath $ORIGIN/<pkg>-plugins and in loader/<pkg>-plugins the plugins get installed, systemwide installed ones by symlink. The pluginloader.so is a dependency and provides a DLopen(pkg-name,plugin-name)style
<zybell_> function.
<MichaelRaskin> Wait, installed inside a store path?
<Dezgeg> nss modules is a solved problem by using nscd though
<kandinski> I'm about to make my first PR, what should I put in the meta.maintainer property? My github account name?
<MichaelRaskin> And PAM is hopefully system-wide, I guess.
<zybell_> Thats not solved, thats sidestepping.
<MichaelRaskin> kandinski: yes, github account name is a fine default, but you also need to fill in the details in nixpkgs/maintainers/maintainer-list.nix
<kandinski> MichaelRaskin: I'll do that too, thanks.
<MichaelRaskin> Fortunately, if there is a mismatch ofborg will complain in a way that no committer would override.
b has joined #nixos
<MichaelRaskin> So just check after 5 to 15 minutes to see if ofborg checks have passed
hakujin has joined #nixos
ixxie has quit [Ping timeout: 260 seconds]
ericsagnes has quit [Quit: WeeChat 2.0]
<zybell_> If you stop plugin infrastructure from being used, by providing another super-plugin (nscd) that doesn't fix the errors in the plugin infrastructure.
hakujin has quit [Ping timeout: 265 seconds]
jrolfs has joined #nixos
<zybell_> PAM could be needed on user level too. idk how the (sub)accounts are called, that a user can create, but sometimes I wished for my browser to have the ability to create one for certain websites, because they run so much stuff that it seems warranted.
<Dezgeg> does PAM even support such user-level things?
<MichaelRaskin> I prefer the browser to start already inside an nsjail, though (and give the user sudo-like access to grabbing fresh UIDs, just in case)
<zybell_> idk, but I would consider it a bug if not.
<MichaelRaskin> cinimod: maybe super instead of pkgs
<cinimod> I tried that but the tests still got run :(
<kandinski> Close to finishing. I assume that, for new packages, no issue is required, just the PR?
<MichaelRaskin> Yes
<cinimod> I can modify nixpkgs and then use -I /me/nixpkgs
<zybell_> grabbing fresh UIDs lands you right into PAM country.
<cinimod> But that is hardly satisfactory
<{^_^}> [nixpkgs] @candeira opened pull request #38545 → xmlcopyeditor: init at 1.2.1.3 → https://git.io/vxHQV
<kandinski> submitted, thanks everyone!
<{^_^}> [nixpkgs] @domenkozar pushed 2 commits to release-17.03: https://git.io/vxHQy
<{^_^}> → 9f9f727f by @NeQuissimus: linux: Add 4.14
<{^_^}> → d64de62f by @dguibert: kernel 4.14 require libelf to compile modules.
<{^_^}> [nixpkgs] @domenkozar pushed to release-17.03 « kernel: depend optionally on libelf »: https://git.io/vxHQH
<{^_^}> [nixpkgs] @vbgl merged pull request #38203 → ocamlPackages.js_of_ocaml-ppx_deriving_json: init at 3.1.0 → https://git.io/vxKLz
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.js_of_ocaml-ppx_deriving_json: init at 3.1.0 »: https://git.io/vxHQ5
jrolfs_ has joined #nixos
jrolfs has quit [Ping timeout: 268 seconds]
tpanum has joined #nixos
<tpanum> I'm having issues upgrading gnome 3.26.2 -> gnome 3.28, on the unstable channel. Am I the only one? Receiving:
<tpanum> libnm symbols detected; Mixing libnm with libnm-util/libnm-glib is not supported
<{^_^}> [nixpkgs] @romildo opened pull request #38546 → balsa: init at 2.5.5 → https://git.io/vxH7c
klntsky has quit [Remote host closed the connection]
tpanum has quit [Remote host closed the connection]
Myrl-saki has joined #nixos
logzet has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/15a2dca15c2 (from 19 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
MP2E has quit [Remote host closed the connection]
jrolfs_ has quit [Ping timeout: 240 seconds]
ericsagnes has joined #nixos
telent has joined #nixos
dan_b has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed 2 commits to release-17.03: https://git.io/vxH77
<{^_^}> → 2c1838ab by @domenkozar: btrfs-progs: 4.14.1 -> 4.15.1
<{^_^}> → d51b5654 by @domenkozar: e2fsprogs: 1.43.8 -> 1.44.1
Izorkin has quit [Ping timeout: 255 seconds]
avn has quit [Remote host closed the connection]
Izorkin has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed 7 commits to python-unstable: https://git.io/vxH5J
<{^_^}> → 41ad19aa by @dotlambda: python.pkgs.moto: fix build
<{^_^}> → dc79df04 by @dotlambda: octoprint: fix build
<{^_^}> → 079ef316 by @dotlambda: python.pkgs.prawcore: 0.12.0 -> 0.15.0
jtojnar has quit [Quit: jtojnar]
Supersonic has quit [Quit: Bye]
Supersonic has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
freeman42x]NixOS has joined #nixos
zybell_ has quit [Ping timeout: 255 seconds]
zybell_ has joined #nixos
spear2 has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
avn has joined #nixos
avn has quit [Client Quit]
avn has joined #nixos
<thblt> Hi! I've tried to build alacritty locally, and it works fine, but I have to manually hack LD_LIBRARY_PATH to get it to run outside the build shell. What am I missing? The packaged alacritty doesn't need that.
<tilpner> The packaged alacritty sets the rpath of the binary
* thblt googles rpath
<thblt> Oh I see, thanks tilpner
<tilpner> rpath is similar to LD_LIBRARY_PATH, but is not inherited by child processes AFAIR
<thblt> tilpner: thanks a lot, now I know where to start
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python: pytest-mock: 1.7.1 -> 1.8.0 »: https://git.io/vxH5p
Arcaelyx has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @wmertens merged pull request #38527 → nixos/nginx: fix gitweb submodule → https://git.io/vxHLY
<{^_^}> [nixpkgs] @wmertens pushed 2 commits to master: https://git.io/vxHdU
<{^_^}> → 07308991 by @gnidorah: nixos/nginx: fix gitweb submodule
<{^_^}> → d55e8309 by @wmertens: Merge pull request #38527 from gnidorah/gitweb
random-nixor has quit [Quit: Page closed]
telent has quit [Remote host closed the connection]
dan_b has quit [Remote host closed the connection]
Arcaelyx has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
Rusty1_ has joined #nixos
shoogz has quit [Ping timeout: 268 seconds]
slyfox has quit [Ping timeout: 276 seconds]
shoogz has joined #nixos
slyfox has joined #nixos
<{^_^}> [nixpkgs] @domenkozar pushed to staging « e2fsprogs: 1.43.8 -> 1.44.1 »: https://git.io/vxHd5
dan_b has joined #nixos
telent has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #38547 → nixos/iftop: add module → https://git.io/vxHFC
krey has joined #nixos
ThatPako has joined #nixos
<ThatPako> Is using `stack` outside of a shell an okay approach? I have no idea how to set up a hakyll environment on NixOS :/
<ThatPako> *nix-shell
MP2E has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed 6 commits to python-unstable: https://git.io/vxHF7
<{^_^}> → bdfc7fc4 by @dotlambda: python.pkgs.pytest-fixture-config: fix build
<{^_^}> → f4104daa by @dotlambda: python.pkgs.pytest-shutil: add termcolor dependency
<{^_^}> → b4c0695c by @dotlambda: python.pkgs.pytest-server-fixtures: add future dependency
chreekat has joined #nixos
<mightybyte> ThatPako: Try "nix-shell -p haskellPackages.hakyll"
<ThatPako> mightybyte: with that I still need `stack` to build the stuff
<mightybyte> You should be able to build it with cabal.
<ThatPako> oh
davidlt_ has quit [Remote host closed the connection]
<mightybyte> Is the code you're using available somewhere?
<ThatPako> I'm in a nix-shell with hakyll but `cabal build` complains about hakyll (as a dependency) not being acessible
[Leary] has quit [Remote host closed the connection]
<ThatPako> I'm using the default stuff you get when running `hakyll-init`
<mightybyte> Ahhh, it looks like there's a difference between hakyll the executable and hakyll the library.
tos9 has left #nixos [#nixos]
<mightybyte> The above nix-shell command gets you hakyll-init.
Lears has joined #nixos
<ThatPako> yea
<mightybyte> Once you've created the project you need a slightly different method to build the package.
<mightybyte> One approach that is often recommended is to run the following command in the directory you just set up.
<mightybyte> cabal2nix --shell ./. > default.nix
<ThatPako> yea, with that I can build
<ThatPako> thanks!
<lejonet> clever: this is sooo slow, I'll probably just end up getting another board instead lol :P
<mightybyte> ThatPako: There's another approach that I find very useful.
<{^_^}> [nixpkgs] @aszlig opened pull request #38548 → Increase max group name length to 32 characters → https://git.io/vxHbm
<lejonet> clever: (the ubootBananaPi thing hasn't finished yet...)
<ThatPako> running `cabal exec site watch` doesn't seem to work though :thinking:
<ThatPako> any idea?
<mightybyte> ThatPako: Use this as your default.nix: https://gist.github.com/mightybyte/c0d3c4840d9013a1a7b7cc49f545986f
<mightybyte> That default.nix file will work with any cabal package and it provides a really easy and obvious way to override things that commonly might need to be overridden.
chreekat has quit [Quit: quitting]
<mightybyte> ThatPako: You were running `cabal exec ...` where? In a nix shell?
<ThatPako> ye
<mightybyte> And you ran `cabal build` first?
<ThatPako> ye
<ThatPako> running `./dist/build/site/site watch` works
<mightybyte> Ok
coot has quit [Quit: coot]
vaninwagen has joined #nixos
fresheyeball has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 260 seconds]
aramiscd[m] has joined #nixos
fresheyeball has joined #nixos
<{^_^}> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/2c1838ab99b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
coot has joined #nixos
shoogz has quit [Ping timeout: 268 seconds]
coot has quit [Client Quit]
andrewrk has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.redNotebook: remove alias »: https://git.io/vxHbi
coot has joined #nixos
xcmw has joined #nixos
shoogz has joined #nixos
andrewrk has joined #nixos
coot has quit [Client Quit]
yorick_ is now known as yorick
MarcWeber has joined #nixos
<{^_^}> [nixpkgs] @jfrankenau opened pull request #38549 → easytag: add opus support → https://git.io/vxHNR
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.thinc: loosen version constraints »: https://git.io/vxHNK
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b25153a2983 (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
dan_b has quit [Remote host closed the connection]
telent has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d55e830982f (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
acarrico has joined #nixos
civodul has joined #nixos
chimay has quit [Quit: WeeChat 2.1]
chimay has joined #nixos
<mightybyte> Anyone know why nix-instantiate gives me "error: attribute ‘split’ missing" when I run it on a file that uses builtins.split?
<mkaito> mightybyte: well, that means "split" is not in "builtins".
aarvar has joined #nixos
<mkaito> try lib or stdenv
<mightybyte> mkaito: Yeah, but it is
<mkaito> I know, but Nix disagrees, evidently -_-
<mightybyte> Hmmm
<mightybyte> Maybe I'm getting an older version
<infinisil> I have it
<infinisil> It's probably only Nix 2.0
<mkaito> I have it too, also on 2.0
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.spacy: loosen version constraints »: https://git.io/vxHAR
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.spacy: loosen version constraints »: https://git.io/vxHAz
ThatPako has quit [Quit: Lost terminal]
xcmw has joined #nixos
<mightybyte> Anyone seen this error with recent nixpkgs? https://gist.github.com/mightybyte/2ba4f0274a89bfe8b68ace1a1f0abe20
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @pSub pushed to master « accountsservice: 0.6.45 -> 0.6.46 »: https://git.io/vxHxW
<{^_^}> [nixpkgs] @pSub pushed to release-18.03 « accountsservice: 0.6.45 -> 0.6.46 »: https://git.io/vxHxB
cx405 has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to python-unstable: https://git.io/vxHxa
<{^_^}> → 82f958cf by @dotlambda: python.pkgs.spacy: loosen version constraints
<{^_^}> → acd67c05 by @dotlambda: python.pkgs.spacy: clean up propagatedBuildInputs
<cx405> Hi! So I am learning nix in nix-repl and sometimes doing something stupid, like entering cyrillic letter "ц(enter)", at which point nix-repl locks into waiting for EOF, but does not react to Ctrl+C. How do I break the expression to get the control back?
<tilpner> Ctrl+D
xcmw has joined #nixos
<cx405> tilpner: Thank you! Any chance you know how to return to repl instead of quiting it, perhaps?
<MichaelRaskin> Dunno, for me Ctrl-c does break out of ц
<MichaelRaskin> For quitting there is also Ctrl-\
<cx405> MichaelRaskin: I am running unstable variant, as in nix-shell -p nixUnstable --run "nix repl"
<MichaelRaskin> (ctrl-c: interrupt ctrl-d: eof ctrl-\: quit)
<MichaelRaskin> Ah, nix repl not nix-repl
<cx405> Well, it advertizes with "nix-repl>", got me confused. :(
hotfuzz has quit [Read error: Connection reset by peer]
<MichaelRaskin> For maximum confusion, Nix 2.0 has both nix-build and nix build
hotfuzz has joined #nixos
<infinisil> For backwards compatibility!
<MichaelRaskin> If only nix build actually could do all the stuff what nix-build does.
<infinisil> There also isn't a replacement for nix-shell and maybe a bunch more
<infinisil> as in #!/usr/bin/env nix-shel
<MichaelRaskin> Of course, nix-shell is used for multiple different purposes
<MichaelRaskin> Some of them are achievable via nix run
<MichaelRaskin> Not all of them, though.
Neo-- has quit [Ping timeout: 265 seconds]
<infinisil> I'm honestly not so sure if it was a good idea to release Nix 2.0 in this seemingly unfinished state
<infinisil> Most frustratingly of all: `man nix` -> `No manual entry for nix`
<MichaelRaskin> Hehehe
<cx405> Could I ask another question if I may? I got system.stateVersion = "17.09", but nixos channel at 18.03. Now that I noticed 18.03 official release, can I "system.stateVersion = "17.09" >> system.stateVersion = "18.03";" safe? I don't seem to have anything relevant that would be mentioned in https://nixos.org/nixos/manual/release-notes.html#sec-release-18.03
<MichaelRaskin> Well, chroot-store and nix copy _are_ useful even as it is
<infinisil> cx405: Don't change stateVersion
<ottidmes> infinisil: There are only a few packages that actually depend on stateVersion, right, some databases and such?
<MichaelRaskin> Well, it is only about NixOS
<infinisil> Yeah, it can only break stuff, it doesn't update anything
<cx405> infinisil: I already borked one install by changing it and understood that stateVersion is sorta "profile". When could I get upgrade it? I am running nixos on baremetal.
<MichaelRaskin> So DB choice of packages, but also the rules about some small defaults here and there
<{^_^}> [nixpkgs] @aborsu opened pull request #38550 → nextcloud: 13.0.0 -> 13.0.1 → https://git.io/vxHpK
<MichaelRaskin> The hope is that you do not need to upgrade it…
<infinisil> cx405: You don't need to update it
<infinisil> I think we should use a sequentially increasing integer instead of the nixos versions, to prevent people from thinking they need to change it
jayq has joined #nixos
<cx405> But how does this var gets updated? I got impression that stateVersion is version of the core, right? I don't have any generation or channel 17.09.
<cx405> I don't have any generation or channel at 17.09 anymore.
<infinisil> cx405: stateVersion is used by nixos for state whose default changed throughout different versions, e.g. a database directory now being in /var/db instead of /var/lib/db. So there is a switch: dbDir = if stateVersion < 18.03 then /var/db else /var/lib/db
<infinisil> wait wrong way, but you get the idea
<infinisil> Updating this variable would mean that suddenly it thinks the db is in a different place, so it breaks
acarrico has quit [Ping timeout: 240 seconds]
<infinisil> You can update it if you really want it, but then you need to go through the list of changes and manually migrate everything
<infinisil> That means moving the database from /var/db to /var/lib/db yourself
<ottidmes> infinisil: But I count only 8 packages that actually use it, when I search for it in my nixpkgs checkout
<ottidmes> None of which I use, so I just went and updated mine to 18.03
<infinisil> ottidmes: Yeah, it's not widely used, and that's even more reason not to need to update it
<cx405> infinisil: so, basically its core profile and nixos is not truly rolling? I am fine with breaking compatibility to 17.09.
<cx405> so there is no mechanism, that would automatically update the core, correct?
<MichaelRaskin> cx405: it is for defaults that can be overriden anyway
<infinisil> Just don't update it, it's not worth it
<MichaelRaskin> And it is actually possible just to omit it completely.
<MichaelRaskin> But it just tracks what were the defaults where they don't matter much anyway
<infinisil> The only thing it gets you is that the string "17.09" isn't in your config anymore and potential problems, literally nothing else
<infinisil> It's the only thing module writers can rely on to not change
<infinisil> To keep it backwards compatibly
<cx405> Well, this is not correct. There is a structure, that is from 17.09, which is being worked-around by parsing the stateVersion variable, and I would appreciate if I could get away from this relic. Something like tool in live ISO, that allows to upgrade the core. I don't really need any backward compatibility to 17.09.
<infinisil> I'm not sure what you're talking about
<MichaelRaskin> cx405: well, you can just erase the line completely…
<MichaelRaskin> NixOS will still work without that line.
<MichaelRaskin> You will get slightly more sudden changes of defaults on future upgrades than if you keep it
<infinisil> That's the same as just setting it to 18.03..
<infinisil> Which will break your setup if you use a service that uses that option
<MichaelRaskin> Well, it is the same for now. If you always bump it, you can as well just delete it.
<cx405> I changed it from 17.09 to 18.03 when 18.03 channel was listed. That lead to bunch of stuff building instead of copying and then broke the printing.
<ottidmes> I think the question was, how to upgrade those DB store paths to the new locations, if we take DBs as an example that use stateVersion and assume they use it for their changed storage location
<infinisil> Well that's the point, you're not supposed to bump it
<MichaelRaskin> I would expect that it will not break the DB services — just initialise a new DB in a new place.
<cx405> Is there a tool that allows to apply those migration changes?
<MichaelRaskin> Hm, it could break printing because the DB directory moved and the printing settings were in the old one
<ij> To update to 18.03 I need to update the channel URL manually?
acarrico has joined #nixos
slyfox_ has joined #nixos
<cx405> ij: yes.
<infinisil> cx405: No there isn't
<infinisil> But the release notes list the changes
<ij> So it isn't possible to do it with configuration.nix?
slyfox has quit [Ping timeout: 256 seconds]
<MichaelRaskin> You can also override cx405 whatever defaults have changed to their old values.
<cx405> ij: No, you need to update the root channel with "nixos" alias to new release.
knupfer has joined #nixos
<infinisil> Well whatever, if you wanna update it sure, I'm not going to stop you, but it surely doesn't do anything like update anything
<ottidmes> ij: You could in theory configure it within your configuration.nix, if you do not use nix-channel but manage it yourself, but generally this is done outside of your configuration.nix
jayq has quit [Ping timeout: 260 seconds]
random-nixor has joined #nixos
<cx405> infinisil: I have a problem with relics in configuration. As world moves on, the relics tend to get less attention, so at some point I could end with inconsistency in workaround for current old stateVersion, which would produce bugs that nobody can replicate on fresh system. Actually I though that Nixos does core upgrades (irrevocable, its fine) automatically, so flipping the stateVersion after that would change nothing because the core has
<cx405> already migrated.
<infinisil> cx405: NixOS can't do that
<random-nixor> hello. how can I tell who brings unwanted dependency? I am getting "Error: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported" while building https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse/build-eclipse.nix
<infinisil> cx405: NixOS has no idea of the state on your disk
acarrico has quit [Ping timeout: 240 seconds]
<MarcWeber> random-nixor: nix-store -q --tree store path or .drv file
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38553 → hdf5-threadsafe: 1.10.1 -> 1.10.2 → https://git.io/vxHh3
<infinisil> cx405: And what workaround are you talking about?
<ottidmes> cx405: You just have to do those upgrades yourself, like I said, there are only 8 packages that I counted that actually use it, so it should be managable to do once in 6 months, and they are unlikely to change things that often
knupfer1 has joined #nixos
<random-nixor> MarcWeber: thank you
<cx405> ottidmes: Can you elaborate on how to find those packages and how to do manual core upgrade? I am noting everything down, this is likely to go on the Nixos wiki.
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
<infinisil> cx405: I linked it already: https://nixos.org/nixos/manual/release-notes.html#sec-release-17.09-incompatibilities
<infinisil> Search for stateVersion on that page, there is only 1 item for 18.03 and I doubt you're using it
concatime has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed to master « spin: switch back to dropbox mirror »: https://git.io/vxHhC
ThatPako has joined #nixos
<ottidmes> cx405: What he said :P All I did was do a simply "Find & Replace" in my Sublime Text 3 window on my nixpkgs checkout
<concatime> Hi guys. I have a question. If I want to update a nix file in NixOS/nixpkgs, how can I test the build before submitting a pull request?
johnw has joined #nixos
jperras has joined #nixos
<cx405> ottidmes, infinisil, MichaelRaskin: thank you!!
<{^_^}> [nix] @shlevy pushed commit from @Bogdacutu to master « release.nix: Use $sourceRoot instead of hardcoded source directory »: https://git.io/vxHh0
<{^_^}> [nixpkgs] @pSub closed pull request #38542 → spin: fix build → https://git.io/vxH1j
<ThatPako> is there any reason the pandoc package is two years old?
<{^_^}> [nix] @shlevy merged pull request #2052 → release.nix: Use $sourceRoot instead of hardcoded source directory → https://git.io/vxH1P
<ottidmes> concatime: If it is a package you could just use nix-build or nix-shell -p to test it out, if it is a module, you probably want to make the nixpkgs checkout you made the changes in to be your nixpkgs used when building your config (by setting it in NIX_PATH via e.g. nix.nixPath as nixpkgs=/your/path)
blankhart has quit [Ping timeout: 245 seconds]
<cx405> tilpner: you may probably remember me, you massively helped me when I borked the system by flipping the stateVersion before 18.03 was officially released.
<ottidmes> ThatPako: Not 100% sure, but could it not be that people now use haskellPackages.pandoc instead of pandoc?
<ThatPako> ottidmes: I tried both but I get pandoc 1.19.*
<MichaelRaskin> cx405: maybe a migration tool that could get some tratction would be nix-diffing your system evaluated with different stateVersion values
<ThatPako> *1.17
johnw has quit [Ping timeout: 276 seconds]
<ottidmes> ThatPako: That was all I got, hopefully someone else can shed some light upon it
<concatime> @ottidmes, ok, cool. I will give it a shot right now.
Neo-- has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38554 → insomnia: 5.14.9 -> 5.15.0 → https://git.io/vxHh6
<ottidmes> concatime: If you do not want a massive rebuild, you might want to copy over the module to the nixpkgs branch you normally use. And if you start managing your own nixpkgs checkout you want to look at: https://github.com/NixOS/nixpkgs-channels
knupfer has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @pSub pushed 2 commits to release-18.03: https://git.io/vxHh1
<{^_^}> → afddafa7 by @pSub: spin: 6.4.7 -> 6.4.8
<{^_^}> → 3fa32939 by @pSub: spin: switch back to dropbox mirror
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38555 → harfbuzz: 1.7.5 -> 1.7.6 → https://git.io/vxHhQ
ilyaigpetrov has joined #nixos
<{^_^}> [nixpkgs] @shlevy pushed 877 commits to staging: https://git.io/vxHh7
<{^_^}> → 70260bea by @volth: perlPackages: MIMEtools and MIMETools
<{^_^}> → 3a17fab5 by @volth: perlPackages: simplifications for the update bot
<{^_^}> → 25a57bfe by @volth: [cpan2nix] perlPackages.XMLSAX: cleanup
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38556 → iproute: 4.15.0 -> 4.16.0 → https://git.io/vxHhd
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @ryantm to release-18.03 « libsForQt5.libopenshot: 0.1.7 -> 0.1.9 »: https://git.io/vxHhh
<concatime> If `nix-build https://github.com/concatime/nixpkgs/archive/patch-2.tar.gz -A zulu8` built perfectly and I have `useSandbox = true;` in my configuration.nix, can I check the 'Tested using sandboxing' when submitting a PR?
chimay has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38557 → iasl: 20170303 -> 20180313 → https://git.io/vxHjf
cx405 has quit [Quit: Goodbye cruel world!]
<ThatPako> Is moving to 18.03 hard? looks like that also ships with new pandoc versions
<infinisil> ThatPako: Just switch the channel and nixos-rebuild
<ThatPako> oh
<ThatPako> now I gotta figure out how to switch the channel
<ThatPako> for some reason `nix-info` still believes my user is on 18.03pre130932
jrolfs_ has joined #nixos
acarrico has joined #nixos
mutantmell is now known as mtjmullen
<concatime> @ThatPako, I *think* it is `nix-channel --add https://nixos.org/channels/nixos-18.03 nixos`
<ThatPako> ohh, I have to add a `nixos` to the end of it
<concatime> followed by `nixos-rebuild boot --upgrade`
<concatime> and then you reboot
allter has joined #nixos
selaux has quit [Remote host closed the connection]
jrolfs_ has quit [Ping timeout: 260 seconds]
klntsky has joined #nixos
<{^_^}> [nixpkgs] @concatime opened pull request #38558 → zulu8: 8.21.0.1 -> 8.28.0.1 & openjdk: 8.0.131 -> 8.0.163 → https://git.io/vxHj2
knupfer has joined #nixos
vaninwagen has quit [Quit: Connection closed for inactivity]
keith_analog has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<sphalerite> why is allowMissing = true; in the module closure maker in nixpkgs/nixos/modules/system/boot/stage-1.nix ?
ryanartecona has joined #nixos
<keith_analog> Hi All, I'm writing a nix script `build-all.nix` to assist me in developing an application, which consists of a number of github repositories, e.g., `foo` and `bar`. I'm trying to do the following: I'm writing one `global.nix` script to gather together `foo` and `bar` as runtime dependencies. Both `foo` and `bar` are built via `foo.nix` and `bar.nix` respectively. Further, both `foo.nix` and `bar.nix` each have an input paramter
<keith_analog> `fooSrc` and `barSrc` respectively. I'd like for `build-all.nix` to introduce options (e.g., via mkOption) to determine `fooSrc` and `barSrc`. In particular, I'd like to select between passing a raw path or a fetchFromGithub result. Can someone point me to a solution? Thanks!
<keith_analog> oops, please substitute `global.nix` above by `build-all.nix`
tertle||eltret has joined #nixos
<infinisil> keith_analog: The easiest thing would be to just use foo = stdenv.mkDerivation { src = ...; }
<infinisil> Then you can override it with `foo.overrideAttrs (old: { src = someOtherSource; })`
knupfer1 has joined #nixos
allter has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
keith_analog2 has joined #nixos
keith_analog has quit [Ping timeout: 245 seconds]
knupfer has quit [Ping timeout: 260 seconds]
<MichaelRaskin> sphalerite: this reduces the amount of trade-off arguments for including some stuff everyone needs as a kernel built-in instead of a module.
ryanartecona has quit [Quit: ryanartecona]
random-nixor has quit [Ping timeout: 260 seconds]
acarrico has quit [Ping timeout: 260 seconds]
keith_analog2 has quit [Quit: Konversation terminated!]
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
pkill9 has quit [Quit: WeeChat 2.0.1]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38560 → freewheeling: 0.6.2 -> 0.6.4 → https://git.io/vxQeQ
colescott has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38561 → freetds: 1.00.70 -> 1.00.80 → https://git.io/vxQve
knupfer has joined #nixos
Izorkin has joined #nixos
klntsky has quit [Ping timeout: 268 seconds]
phreedom has quit [Ping timeout: 268 seconds]
nuncanada has joined #nixos
phreedom has joined #nixos
Neo-- has quit [Ping timeout: 265 seconds]
shoogz has quit [Ping timeout: 268 seconds]
knupfer has quit [Ping timeout: 245 seconds]
alhariel has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
klntsky has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/ae2266b0fba (from 60 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
shoogz has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38563 → gdbm: 1.14 -> 1.14.1 → https://git.io/vxQvV
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/315cd0159bf (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
boomshroom has joined #nixos
<boomshroom> Good morning!
jperras has joined #nixos
<infinisil> boomshroom: Hi there!
<boomshroom> Last night I managed to get my Joy-Cons connected and was able to play Xenosaga. Now I want to try other games, like Borderlands.
<infinisil> No idea what either of those are, but glad you got it to work :)
blankhart has joined #nixos
<boomshroom> Joy-Cons are the Nintendo Switch controller. Xenosaga is a PS2 game I emulated, and Borderlands is a game available natively on Linux.
<{^_^}> [nixpkgs] @dotlambda pushed 116 commits to python-unstable: https://git.io/vxQv7
<{^_^}> → bd076ab9 by @FRidh: python: pylint: 1.8.2 -> 1.8.3
<{^_^}> → 4d166e03 by @FRidh: python: pyobjc: 4.1 -> 4.2.1
<{^_^}> → 832a575f by @FRidh: python: pyodbc: 4.0.22 -> 4.0.23
orivej has joined #nixos
xy2_ has quit [Ping timeout: 276 seconds]
<lejonet> Hmm, what is the easiest way to get a nix-shell or similar with a functional gcc env? (i.e. basic includes and libraries needed, like gcc_s and libc)
<infinisil> lejonet: probably nix-shell -p stdenv
<boomshroom> lejonet: Probably `nix-shell <nixpkgs> -A hello`
<lejonet> infinisil: I'll try that, thanks :)
John882 has joined #nixos
<lejonet> worked like a charm, thx!
cript0nauta has left #nixos [#nixos]
<lejonet> (are there any good guides/howtos to nix-shell? )
<infinisil> man nix-shell
jperras has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #38522 → lib: make extensible → https://git.io/vx9b2
<{^_^}> [nixpkgs] @Ericson2314 pushed commit from @Infinisil to master « lib: make extensible »: https://git.io/vxQf4
<lejonet> True, the nix tools manpages are usually quite good
<infinisil> Yay for my PR to get merged \o/
John882 has quit [Quit: John882]
xy2_ has joined #nixos
orivej has quit [Ping timeout: 276 seconds]
michaelpj has quit [Quit: ZNC 1.6.5 - http://znc.in]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaelpj has joined #nixos
jayq has joined #nixos
nyanloutre has quit [Quit: Page closed]
<iqubic> I'm noticing tearing on YouTube videos in the latest Firefox version. Anyone have a fix for this?
nyanloutre has joined #nixos
<nyanloutre> Hello ! I am curently trying to create a C# package, but I am strugling to get it compiled from sources
<nyanloutre> I don't know how to manage dependancies (normaly managed with nuget but not possible in a nixos build)
ma27 has quit [Ping timeout: 260 seconds]
<nyanloutre> Is there any good example are documentation that I could read ?
<MarcWeber> %$(nix-build -A cabal2nix /tmp/nixpkgs)/bin/cabal2nix . -> does this work for you after cding into git clone https://github.com/NixOS/cabal2nix.git 'ed directory?
pkill9 has joined #nixos
ma27 has joined #nixos
concatime has quit [Ping timeout: 260 seconds]
ivanivan has joined #nixos
allter has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ae2266b0fba (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38565 → geos: 3.6.1 -> 3.6.2 → https://git.io/vxQJO
mkoenig_ has quit [Remote host closed the connection]
<ivanivan> Can anyone tell me how to make vim_configurable compile with the "fontset" flag explicitly enabled/disabled?
<ivanivan> It uses "edf" in composableDerivation to define a number of flags:
<ivanivan> Some can also be set via nixpkgs.config.vim, but it's not clear to me how to set the rest (such as fontset)
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to python-unstable: https://git.io/vxQJu
<{^_^}> → e456c489 by @dotlambda: python.pkgs.mozterm: disable on python 3
<{^_^}> → d134cb6d by @dotlambda: python.pkgs.progressbar: disable on python 3
slyfox_ is now known as slyfox
hakujin has joined #nixos
knupfer has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/95ece9efe51 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
mkoenig has joined #nixos
jayq has quit [Ping timeout: 260 seconds]
rihards has joined #nixos
<boomshroom> This package isn't up to date enough. I'll just make a one line expression to fix that.
vaninwagen has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
rihards has quit [Client Quit]
rihards has joined #nixos
<joko> nix build does not accept a -j flag anymore?
<{^_^}> [nixpkgs] @zimbatm opened pull request #38566 → Jupyterlab 0.31.12 → https://git.io/vxQU8
ivanivan has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.progressbar: disable on python 3 »: https://git.io/vxQUB
pkill9 has quit [Quit: WeeChat 2.0.1]
<boomshroom> joko: It probably implicitly does parallel builds if it can.
<boomshroom> Is the nix 2.0 command going to receve nix-env functionality at some point?
ndrei has joined #nixos
pkill9 has joined #nixos
<boomshroom> Does anyone know how to build go packages that depend on the golang.org/x namespace?
<ben> is there something special about it?
johnw has joined #nixos
<joko> boomshroom: I see, thanks
<joko> The thing is I was expecting some kind of a limit
statusfa1led is now known as statusfailed
<boomshroom> ben: The source code isn't actually located at the url and the website merely hosts it. Also I can't seem to make it look like a git repo.
<ben> `go get` knows how to deal with it
<ben> theres like <meta> tags, maybe dependent on some secret query params
<ben> id assume that go2nix also deals with it by extension?
<michaelpj> joko: `--max-jobs`. Look at `nix --help-config` for a list of config options you can set
<michaelpj> not sure what the default is
<boomshroom> ben: go2nix generated an empty dependencies file.
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python3.pkgs.git-annex-adapter: replace eject by utillinux »: https://git.io/vxQTC
ThatPako has quit [Quit: Lost terminal]
<ben> mhh go2nix works for me, after manually fetching the dependencies with `go get ./...`
<ben> (so theyre in the gopath in the first place? i kinda thought go2nix would take care of that too tbh)
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
blonkhart has joined #nixos
<joko> michaelpj: many thanks!
xy2_ has quit [Ping timeout: 240 seconds]
<ben> boomshroom: im not sure if youre trying to write a nix expression or just compile some go code you found somewhere
<boomshroom> ben: The latter. I was manually modifying deps.nix because go2nix left it empty.
<ben> that sounds painful
<ben> does `go get ./...` in the package's dir followed by `go build ./...` or w/e do something useful?
<ben> (if its public code do you wanna link it?)
tertle||eltret has quit [Quit: Connection closed for inactivity]
alex`` has quit [Quit: WeeChat 2.1]
chris| has quit [Quit: ZNC 1.6.5 - http://znc.in]
<{^_^}> [nixos-homepage] @samueldr opened pull request #205 → Fixes horizontal scrolling originating from `<code>` blocks. → https://git.io/vxQTH
ma27 has quit [Ping timeout: 260 seconds]
chris| has joined #nixos
yann-kaelig has joined #nixos
<{^_^}> [nixpkgs] @winniequinn opened pull request #38567 → vscode: 1.21.1 -> 1.22.1 → https://git.io/vxQTQ
jrolfs_ has joined #nixos
<ben> it doesnt build for me with `go get github.com/riking/joycon/...` but it did go and fetch the golang.org/x/sys dependencies
chris|_ has joined #nixos
<boomshroom> ben: It shouldn't build with just go get because it depends on udev and cgo doesn't work without setting CC to clang.
chris| has quit [Ping timeout: 260 seconds]
chris|_ is now known as chris|
<boomshroom> ben: When downloading, it cloned https://go.googlesource.com/sys but saved it as golang.org/x/sys.
<ben> that is correct
<ben> the "vanity" path is canonical
<ben> nix-shell -p libudev clang --run 'CC=clang go get github.com/riking/joycon/...' exits successfully and leaves me with ~/go/bin/jcdriver
xy2_ has joined #nixos
<boomshroom> ben: You don't need multiple -p's? That would have been nice to know earlier.
pkill9 has quit [Quit: WeeChat 2.0.1]
<boomshroom> ben: It looks like go2nix is getting confused by the vender, because it doesn't vender *all* of its dependencies.
M-ms has joined #nixos
<mpickering> Hello Saturday people, anyone fancy a simple review and merge? https://github.com/NixOS/nixpkgs/pull/38526
ryanartecona has joined #nixos
<ben> I'm not sure but vendoring incomplete dependencies seems like really bad practice
<ij> Does your neovim have the +python flag? I installed the default one and it doesn't even though by the looks of its nixfiles it should've.
ma27 has joined #nixos
jrolfs_ has quit [Ping timeout: 260 seconds]
<boomshroom> mpickering: is your package listed in all-packages.nix?
<mpickering> what do you mean?
pkill9 has joined #nixos
<boomshroom> mpickering: What's the attribute path you'd normally use to build it?
zarkone has quit [Ping timeout: 255 seconds]
bpa has joined #nixos
<mpickering> openorienteering-mapper
simukis has quit [Ping timeout: 240 seconds]
chisui has joined #nixos
<nyanloutre> @Infinisil concerning my pull request, you want the package to be installed with the service so the cli is available ?
<nyanloutre> thanks a lot for the help btw
ryantm has quit [Ping timeout: 240 seconds]
blonkhart has quit [Ping timeout: 260 seconds]
ryantm has joined #nixos
blonkhart has joined #nixos
<joko> Did the --chroot flag of nixos-install got erased?
<clever> joko: replaced by nixos-enter
shymega has joined #nixos
<joko> clever: ah, right, just saw it at https://github.com/NixOS/nixpkgs/pull/34636
<joko> I need to start complying to Nix 2.0 :D
<infinisil> nyanloutre: Yeah
<infinisil> Np :)
<clever> thinking about it...., i could implement 90% of nixos-install with a single nix command...
<clever> nix build '<nixpkgs/nixos>' -A system --store local?root=/mnt/
<joko> clever: what would be the rest 10%? Bootloader installation?
<clever> only thing missing is using the host store as a binary cache, and installing the bootloader under chroot
<nyanloutre> infinisil: OK, it should be pushed soon, I will ping you
<joko> Ah, right, host store, too
<clever> joko: the above might even fix a bug nixos-install had (unsure if 18.03 has it)
<clever> a while back, nixos-install was rewritten to nix-build it on the host
<clever> which required enough ram to store the entire closure!!
<clever> and even if the entire os is installed, it has to re-build and re-download it all in ram, then copy the differences to disk
<MichaelRaskin> I think host store could still be passed as a substituter with some schema…
<clever> MichaelRaskin: yeah, i just dont have that syntax memorized
<MichaelRaskin> Activation and bootloader installation is still neede afterwards, of course
<MichaelRaskin> That's actually how I imaged a new HDD with my not-precisely-NixOS
<clever> heh
<nyanloutre> infinisil: done ! I hope everything is all right now
<joko> clever: I think I had experienced that bug :D
<nyanloutre> I will do the variabilisation of the package later
<joko> This is when I decided to split my packages to user ones, too, the system closure was giant
<infinisil> nyanloutre: Nice, looks good to me :D
<nyanloutre> thanks !
<tilpner> clever - Any idea what might be wrong here? tx0.co/k
<tilpner> clever - (It works with -f ~/dev/nixpkgs, but not when <nixpkgs> is a file)
<clever> tilpner: i think the problem is that its invoking tar without the /tmp/foo prefix on its input file
<tilpner> Where should that be fixed?
<clever> simplest thing, just unpack nixpkgs manually and give nix a dir
<tilpner> That's just a workaround though. I don't need private stores, I just tested them because you always show them :)
<tilpner> Is this is a Nix or stdenv issue?
Fare has quit [Ping timeout: 276 seconds]
<clever> nix, builtins.fetchTarball cant unpack tar's inside that dir
yann-kaelig has quit []
<clever> and when you put a tarball into the NIX_PATH, it uses the same code
<tilpner> Oh, NIX_PATH doesn't link to a tar, it links to a Nix file that eventually downloads and extracts a tar, if that makes a differences
<clever> but how does that nix file extract the tar?
<tilpner> But that's still fetchTarball
<clever> yep
<tilpner> No, the error would be different :/
<clever> i dont think it has an open issue
<joko> Guys, do you know how to search botbot.me? I can't find any search button :S
<tilpner> joko - You can search https://logs.nix.samueldr.com/nixos/
<boomshroom> I was able to get this driver working yesterday.
<joko> tilpner: Any way to remove date from search?
<boomshroom> I have 2 different binaries that for some reason, one works and the other doesn't
<tilpner> joko - I don't understand your question. Remove it from where? The results?
<tilpner> clever - Please add any information I missed to https://github.com/NixOS/nix/issues/2053
<joko> tilpner: let's say that I am searching for my own messages, I add "joko" to the filter and it filters the currectly selected date. Any way to search for "joko" in 2018?
<samueldr> joko: tilpner: there are two search boxes on the logs thing, the left one searches across days, the top one in the day
<samueldr> joko: for your particular case: https://logs.nix.samueldr.com/nixos/search?q=nick%3Ajoko
<clever> joko: linked a line of source that is relevant
<clever> joko: ive got plain-text logs i could search
<joko> samueldr: got it, thanks... tilpner: I was using the filter :/
<iqubic> Anyone know how to deal woth screen tearing in the latest version of FF?
<mkaito> is there a way to specify initial permissions for the home folder of a user when created by nix? I need the home folder of a system user to be 1750 instead of 0700.
johnw has quit [Ping timeout: 256 seconds]
<clever> mkaito: its hard-coded to 700 in the perl, i think an issue may have been opened for it
jayq has joined #nixos
<mkaito> sweet. alternative ways to chmod it once after activation?
<mkaito> I could use the corresponding systemd service's preStart, but that's unnecessary and is probably going to run into problems with the sticky bit later.
<clever> mkaito: its a bit ugly, but you could use another activation script and mkAfter, to redo the chmod every time nixos changes it
ryanartecona has quit [Quit: ryanartecona]
<mkaito> let me try that
jayq has quit [Read error: Connection reset by peer]
jayq has joined #nixos
<mkaito> well, it works. at least it's better than running it in a service's preStart. thanks, clever.
<{^_^}> [nixpkgs] @samueldr opened pull request #38568 → doc: Fixes repeated callout in 15.1 → https://git.io/vxQtk
ficl has joined #nixos
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<clever> yep
raynold has joined #nixos
jayq` has joined #nixos
jayq has quit [Ping timeout: 255 seconds]
jayq` has quit [Ping timeout: 260 seconds]
jayq` has joined #nixos
Tobba has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @samueldr opened pull request #38569 → doc: Fixes in-text callouts and screen callouts. → https://git.io/vxQqm
<{^_^}> [nixos-homepage] @samueldr opened pull request #206 → doc: overrides `hljs` overflow rules for better linking. → https://git.io/vxQqW
blankhart has quit [Ping timeout: 260 seconds]
pkill9 has quit [Quit: WeeChat 2.0.1]
hakujin has quit [Ping timeout: 260 seconds]
bollu has quit [Quit: Ping timeout (120 seconds)]
corngood has left #nixos ["User left"]
bollu has joined #nixos
spear2 has joined #nixos
cinimod has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38570 → getmail: 5.5 -> 5.6 → https://git.io/vxQmc
tertle||eltret has joined #nixos
blankhart has joined #nixos
pkill9 has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to python-unstable: https://git.io/vxQm6
<{^_^}> → 3c223a3a by @dotlambda: platformio: move out of pythonPackages
<{^_^}> → 71f6ddc7 by @dotlambda: python.pkgs.click_5: uninit
<{^_^}> → ab726f39 by @dotlambda: platformio: 3.5.1 -> 3.5.2
<{^_^}> [nixpkgs] @dotlambda closed pull request #38508 → platformio: 3.5.1 -> 3.5.2 → https://git.io/vx9GD
jayq` has quit [Ping timeout: 256 seconds]
bollu has quit [Quit: Ping timeout (120 seconds)]
bollu has joined #nixos
niklob has joined #nixos
keith_analog has joined #nixos
<keith_analog> Hi, I am using the following command `callPackage ../foo/foo.nix {}`, but would like to replace the absolute path by a path relative to the github repository where `foo` lives. Could someone help me find the right command? I'm using pkgs.fetchFromGitHub to source the foo package and am taking the reference to the github source package via a parameter named fooSrc. thanks!
xy2_ has quit [Ping timeout: 260 seconds]
nyanloutre has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @tadfisher opened pull request #38572 → enyo-doom: init at 1.05 → https://git.io/vxQYK
frostspanner has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @roberth to master « linuxPackages_custom: fix missing argument and add test »: https://git.io/vxQYj
fragamus has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice closed pull request #38034 → linuxPackages_custom: fix missing argument and add test → https://git.io/vxV1d
allter has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @thoughtpolice pushed 2 commits to release-18.03: https://git.io/vxQOt
<{^_^}> → 4bf96589 by @apeyroux: resilio-sync: 2.5.2 -> 2.5.12
<{^_^}> → f5f89dd9 by @roberth: linuxPackages_custom: fix missing argument and add test
<{^_^}> [nixpkgs] @thoughtpolice closed pull request #38035 → linuxPackages_custom: fix missing argument and add test → https://git.io/vxVDC
niklob has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @kevincox opened pull request #38573 → Allow setting cargoSha256 to null. → https://git.io/vxQO8
hiratara has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiratara has joined #nixos
<{^_^}> [nixpkgs] @joncfoo opened pull request #38574 → Update psc-package from v0.3.2-pre to v0.3.2 → https://git.io/vxQOK
fragamus has joined #nixos
<{^_^}> [nixpkgs] @joncfoo closed pull request #38574 → Update psc-package from v0.3.2-pre to v0.3.2 → https://git.io/vxQOK
vaninwagen has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @joncfoo opened pull request #38575 → psc-package v0.3.2-pre -> v0.3.2 → https://git.io/vxQ3l
<ottidmes> keith_analog: I am not completely sure I understand your question, but would something like this work: callPackage "${pkgs.fetchFromGitHub ... your code ...}/foo.nix" {}
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.protobuf: use 3.5 by default »: https://git.io/vxQ30
knupfer has quit [Ping timeout: 255 seconds]
<keith_analog> ottidmes: super! this looks like what i want
ficl has quit [Ping timeout: 276 seconds]
lostman has quit [Quit: Connection closed for inactivity]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @ahmedtd opened pull request #38576 → nomacs: 3.6.1 -> 3.8.1 → https://git.io/vxQsL
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python: cmarkgfm: 0.3.0 -> 0.4.0 »: https://git.io/vxQsO
bpa has quit [Remote host closed the connection]
oW-NAPfzaZHT7 has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
hiratara has joined #nixos
pkill9 has quit [Ping timeout: 276 seconds]
ma27 has quit [Ping timeout: 256 seconds]
rihards has quit [Quit: rihards]
mduggie has quit [Ping timeout: 265 seconds]
<pbogdan> hmm https://nixos.org/nixpkgs/manual/#ssec-stdenv-functions suggests makeWrapper wrapProgram are part of stdenv
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f5f89dd97c0 (from 56 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
semilattice has joined #nixos
<pbogdan> clever: right, are they part of stdenv though? sorry, I perhaps misunderstood what that means
mduggie has joined #nixos
<clever> not sure
<pbogdan> ok, thank you
orivej has joined #nixos
fragamus has joined #nixos
<{^_^}> [nixpkgs] @etu opened pull request #38577 → Package OpenZWave and Python_OpenZWave → https://git.io/vxQsA
orivej has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #38570 → getmail: 5.5 -> 5.6 → https://git.io/vxQmc
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vxQGv
<{^_^}> → 27c9bd66 by R. RyanTM: getmail: 5.5 -> 5.6
<{^_^}> → 584270e3 by @7c6f434c: Merge pull request #38570 from r-ryantm/auto-update/getmail
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 245 seconds]
<abrxs> hi all, please forgive me for asking what must be a hideously basic question... I am trying to create a systemd service. I am trying to pass a conffile generated with pkgs.writeText as an argument to the daemon at start up. in order to do this, I am trying to copy the conf file to /var/lib/ in preStart, like this: prestart = ''mkdir -p -m 0755 -p /var/lib/servicename; cp ${confFile}
<abrxs> /var/lib/servicename/conf.yml''. but I keep getting permission denied. as far as I can tell, this is the exact same procedure being used by countless pkgs out there already, so i'm wondering what i'm doing wrong?
blankhart has quit [Ping timeout: 276 seconds]
civodul has quit [Ping timeout: 255 seconds]
<clever> abrxs: does /var/lib/servicename/conf.yml exist?
<abrxs> nope
<abrxs> itcreating the base directory as a part of the preStart fails
<abrxs> it's actually*
chisui has quit [Ping timeout: 260 seconds]
<avn> abrxs: also in case if daemon want config writeable, you may be need chmod config after copying
<clever> abrxs: is the User field set on the service?, the preStart may not have permission to create the directory
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f5f89dd97c0 (from 81 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<abrxs> i have systemd.services.servicename.serviceConfig.User set, is there another option i might be missing?
<abrxs> i'm creating this user as well with isSystemUser = true; for what that's worth
blankhart has joined #nixos
<clever> abrxs: you will want to set createHome and home then, and nixos will make the directory for you
kmicklas has joined #nixos
<achambe> Hi, I'm having a small problem with understanding something. builtins.fetchTarball doesn't seem to return a derivation, but something else. Is that correct?
<clever> achambe: it returns a string with the storepath
<abrxs> clever: believe it or not, i've done that as well! maybe a gist will help
<achambe> is there a way I can get a gc root from that string?
<achambe> a symlink
<achambe> I'm just trying to bootstrap nixpkgs with the builtin then prevent it from being collected
<clever> achambe: exactly the same thing i did here
<achambe> thank you
acarrico has joined #nixos
<clever> abrxs: why not just -C ${confFile} ?
<abrxs> I tried that as well, actually, and i think the service at startup tries to chmod it or something to that effect. I get a chmod() read only in that case
<clever> and what is the error in the journal? can you add that to the gist?
<abrxs> sure, you bet
jrolfs_ has joined #nixos
<clever> abrxs: in the prestart, run id, and ls -lhd ${cfg.stateDir}
<semilattice> Is there any easy way to use build sandboxes non-globally?
<abrxs> alright clever, let me give that a try
<semilattice> For say a specific package, or temporarily?
<abrxs> interesting, the user is nogroup
sigmundv has joined #nixos
<achambe> clever: thanks, it works well. I'm trying to avoid using the nix-channel updater because I don't trust 'small patches' to not break anything :/
<achambe> though maybe that is just paranoia
raynold has quit [Quit: Connection closed for inactivity]
Sigma has quit [Quit: ZNC - http://znc.in]
<achambe> it would ne nice is nix-channel had a way to go to a specific revision of a channel
ndrei has quit [Ping timeout: 255 seconds]
<achambe> I guess I could make my own channel too.
<ottidmes> achambe: Why not just manage your own local nixpkgs checkout?
<abrxs> hmm... little further along by setting the users group, but now this again: chmod() of /nix/store/il32if3csacahncqilj93c8hcvrqf95k-stubby-0.2.2 via /proc/self/fd/3 failed: Read-only file system
<ottidmes> achambe: Base it on: https://github.com/NixOS/nixpkgs-channels
<abrxs> which is the same error, incidentally, as passing ${confFile} directly
<achambe> ottidmes: thats sort of what im doing. I go NIX_PATH="" then fetch an exact nixpkgs from the stable channel using clever's derivation he linked, then use that for everything.
<achambe> and i get the exact version from a stable channel like you said
<ottidmes> achambe: But why? Is it not more flexible to have your own git checkout that you can then manage, change stuff in? Just add nixpkgs=/your/checkout to NIX_PATH
<achambe> this is for automated deployments to a remote server, otherwise you are right.
Sigma has joined #nixos
<ottidmes> achambe: Ah, was about to say that that would be the only valid use case I could think of where your approach would probably be better :P
<achambe> playing with nix expressions is so addictive
<boomshroom> achambe: Indeed it is
<ottidmes> achambe: Yeah, it takes tinkering with Linux to the next level, creating config to generate config :)
<ottidmes> I like that you basically are building your own specialized distro for your machines (in some sense at least)
<achambe> haha, yeah
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38579 → dcraw: 9.26.0 -> 9.27.0 → https://git.io/vxQZj
<boomshroom> ottidmes: I've had an idea floating around recently for a "NixOS from scratch", ie: a full Nix built linux system without nixpkgs.
<achambe> no nixpkgs to be really minimal?
<boomshroom> achambe: No, more for the challenge of building your own nixpkgs from scratch, in the same way that LFS builds an entire system from a bunch of source downloads and a book.
<achambe> Oh, that is cool. I'm pretty interested in that
<ottidmes> boomshroom: I would subscribe to that :) would be fun to experiment with
<avn> boomshroom: I believe better to spend time refining nixpkgs base components
<clever> abrxs: when you copied the file, the copy is still read-only
<clever> abrxs: so you might need to chmod after you copy
<boomshroom> avn: Ya, but where's the fun in that? And going through it would probably give you a better understanding of Nix itself.
<achambe> boomshroom: I was a little curious about how to do something like that because I was an openbsd user before nixos, and wondered how difficult it would be to make a hybrid OS.
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/7f25b26511a (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<avn> boomshroom: try to remove libkrb5 vs krb5, w/o creating buildloops ;) I tried, and failed
thc202 has quit [Ping timeout: 265 seconds]
<abrxs> clever: ah, okay, it looks like it's actually working now!: the chmod error seems to be appearing there because the rebuild is trying to modify the config file while the service is running. the service started successfully after all, in spite of the error
<abrxs> bit odd...
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38580 → containerd: 1.0.2 -> 1.0.3 → https://git.io/vxQni
<abrxs> weird, even when i kill the service and nixos-rebuild, i get the error. but the service starts all the same
krey has quit [Ping timeout: 276 seconds]
<abrxs> clever: ok, that error is gone now too! I just had to change the systemd.tempfiles to write to the stateDir
<abrxs> thanks for your help
<clever> ah, i'm guessing the tmpfiles stuff changed how things works