gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
Guanin has joined #nixos
<dmj`> there's no nix derivation for BLACS?
<dmj`> Unode: btw, f90 was really in openmpi pkg
sigmundv_ has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53518 → trilium: 0.26.1 -> 0.27.3 → https://git.io/fhsgE
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « trilium: 0.26.1 -> 0.27.3 »: https://git.io/fhs6Y
Synthetica has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @worldofpeace closed pull request #53486 → trilium: 0.27.2-beta -> 0.27.3 → https://git.io/fhsqY
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53516 → sshguard: 2.3.0 -> 2.3.1 → https://git.io/fhszk
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « sshguard: 2.3.0 -> 2.3.1 »: https://git.io/fhs68
alex_giusi_tiri has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53517 → uriparser: 0.9.0 -> 0.9.1 [18.09] → https://git.io/fhsgl
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @andrew-d to release-18.09 « uriparser: 0.9.0 -> 0.9.1 »: https://git.io/fhs6E
ddellacosta has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53508 → toot: 0.19.0 -> 0.20.0 → https://git.io/fhsRO
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « toot: 0.19.0 -> 0.20.0 »: https://git.io/fhs6i
justanotheruser has quit [Ping timeout: 252 seconds]
justanotheruser has joined #nixos
Guanin has quit [Ping timeout: 252 seconds]
iqubic has quit [Ping timeout: 260 seconds]
eadwu has joined #nixos
sary has quit [Quit: Lost terminal]
<{^_^}> [rfcs] @globin opened pull request #38 → Implementation of RFC 36 → https://git.io/fhsiO
m0rphism has quit [Quit: WeeChat 2.2]
m0rphism has joined #nixos
lord| has quit [Read error: Connection reset by peer]
lord| has joined #nixos
ris has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53484 → otter-browser: 0.9.99.3 -> 1.0.01 → https://git.io/fhsqT
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhsiw
iqubic has joined #nixos
erictapen has quit [Ping timeout: 246 seconds]
boothead has quit [Ping timeout: 256 seconds]
<iqubic> So I've heard that using a ZVOL for swap is a bad idea.
<iqubic> Can some help me change my set-up into something better? Currently I'm using a zvol for swap.
<duairc> iqubic: I've heard that too, I'm also running my swap on a ZVOL
<nDuff> If creating the space requires shrinking space used by ZFS, that's tricky.
<iqubic> I'm not sure how to check if it does or not.
<nDuff> ...so, what do your partition tables look like?
<iqubic> nDuff: I dual boot Windows 10 and NixOS.
<iqubic> That means my partition table is a bit weird.
<duairc> My understanding is that bad things happen when ZFS runs out of memory, and if ZFS needs more memory and the only place to get it is the swap, which is itself managed by ZFS, then basically you get a kind of loop
<nDuff> That's good -- if you can spare some space from the Win10 side, it's probably going to be a little easier to shrink there. Well, depending on the filesystems in use.
<duairc> But from my experience, if my system starts swapping it's quicker to reboot it anyway, I only have swap so I can hibernate, so I don't really care if everything goes to shit if I run out of RAM
<nDuff> (unfortunately, btw, I'm actually due to be heading home pretty soon, so I don't have much time to troubleshoot/plan right now).
<duairc> I put in on a ZVOL because I'm using ZFS's encryption for my root and I want my swap to be encrypted too, and it would be annoying to have to decrypt two things on boot
<nDuff> duairc, ...so, the thing about encrypted swap is you can just generate a new random key every time
<nDuff> there's no reason to preserve a single key / enter a password / etc
<iqubic> I have a partition which is NTFS and is set-up to be a sort of shared memory space between the OSes. I can read and write to this partition from both Windows 10 and Nixos.
<nDuff> since the data is inherently single-use, unless you're running a laptop and use swap for suspend/restore.
<duairc> nDuff: But what if you're resuming from hibernation?
<duairc> nDuff: That's the only reason I even have a swap
<nDuff> duairc, ...ahh. See, I live in datacenters, so hibernation is not a done thing.
<clever> duairc: zfs doesnt support hibernation
<iqubic> What I think I'll do is quickly boot into windows, and shrink that shared partition so I have enough free space to make a *REAL* swap partition.
<iqubic> How would I go about removing this zvol thing that I am currently using for swap?
<clever> iqubic: zfs destroy poolname/volumename
<iqubic> I assume that I'd first need to unmount the partition.
<clever> yeah
nDuff has quit [Quit: zzz]
<iqubic> So how do I unmount a zvol?
<clever> same as any other block device
<duairc> clever: I didn't believe you so I just tried it out (hibernating), and my system just hung for five minutes, never mind resuming
<iqubic> So, how do I get the name of the pool I want to destroy?
<clever> iqubic: you want to destroy just the zvol, not the whole pool
<clever> `zfs list`
<clever> oh, and `zfs list -t volume` i think
<iqubic> right. Because the rest of my filesystem is still ZFS.
<iqubic> umount latitude-tank/swap
<iqubic> umount: latitude-tank/swap: no mountpoint specified.
<iqubic> err... WHAT?!?!
<clever> and swap isnt mounted, you want swapoff
<iqubic> right.
<iqubic> and then I can safely destroy it with zfs destroy?
<clever> yeah
thc202 has quit [Ping timeout: 250 seconds]
<clever> but youll also want to remove it from the nixos config and rebuild/switch
<clever> or nixos will get upset when its missing next time you boot
<iqubic> right.
<iqubic> Of course.
pie__ has quit [Ping timeout: 252 seconds]
freeman42x[nix] has quit [Ping timeout: 252 seconds]
<iqubic> swapoff: latitude-tank/swap: swapoff failed: no such file or directory
<iqubic> What the heck?
<clever> iqubic: cat /proc/swaps
<duairc> What is /var/empty? I'm trying to make some derivations and I keep getting broken builds that are looking for things there... seems to happen with builds that use CMake in particular
<clever> iqubic: latitude-tank/swap is only understood by zfs, the block device is at a different but similar path
<iqubic> it's at /dev/zd0
<clever> iqubic: also, if you disable the swap in the nixos config, nixos will swapoff automatically when you switch
<iqubic> Well, turns out I was doing something rather stupid and didn't realize it at all.
<iqubic> I have zfs snapshots set up on all my zfs partitions.
simukis has quit [Quit: simukis]
<iqubic> Which appearently included my swap partition, as that was under zfs too.
<clever> lol
<iqubic> :facepalm:
<clever> yeah, snapshots on swap are not a good idea
<iqubic> I know.
<clever> of note, `zfs destroy pool/dataset@snap1%snap10` will delete all snapshots between snap1 and snap10, inclusive
<clever> that helps with bulk deleting of snapshots
<clever> zfs list -t volume,filesystem -o name,used,referenced,logicalused,logicalreferenced,written,usedbysnapshots,usedbydataset,refcompressratio,compressratio,compression
<clever> this will list every zvol and filesystem, and the `USEDSNAP` tells you how much the snapshots within it are eating
<clever> zfs list -t snapshot -r -o name,used,refer,written amd/home ; df -h /
<clever> and this will list every snapshot on amd/home
<iqubic> I just went with `zfs destroy pool/dataset -r` to nuke the entire thing I had allotted to SWAP.
<clever> duairc: the cmake files are probably trying to mess with /usr then
<zfnmxt> I noticed that if I use ssdm instead of startx, my xorg.conf file disappears. Where does it go?
<clever> iqubic: that also works
<duairc> clever: So I need to patch them to use $out/ before this thing gets there?
<clever> zfnmxt: ssdm uses an absolute path to xorg.conf, in the ssdm config file
<clever> duairc: yeah
<clever> or override the default, so it never tries to use /var/empty (which it thinks is /usr)
<iqubic> so, I'm going to restart my machine, and switch to my windows operating system (I dual boot) free up some space for a *REAL* swap partition, and then come back here.
<zfnmxt> clever: Ah, okay. Thanks :)
<iqubic> How much free space do I want for this swap partition?
<clever> iqubic: depends on how much ram you have and how obsessesed with tabs you are, lol
<clever> iqubic: ive got 32gig of ram, 64gig of swap, and regularly have over 1000 tabs open
<iqubic> I don't know how much ram I have.
<zfnmxt> 64GB swap O.O
<clever> iqubic: `free -g`
<iqubic> And do I want to make sure that the free space is at the end of my SDD?
<iqubic> *SSD
<clever> iqubic: the free space will always be at the end of whatever partition your shrinking
lord| has quit [Ping timeout: 250 seconds]
<zfnmxt> Why does the NixOS manual make a swap partition instead of a swap file?
<zfnmxt> Is there any benefit to swap partitions? Seems like swap files are far more convenient.
<iqubic> I know. But is it fine if I'm not shrinking the last partition on my SSD?
<clever> zfnmxt: swap files dont work on zfs, and swap files usually have worse performance
<clever> iqubic: for an ssd, it doesnt really matter where on the disk a partition is
<iqubic> swap partitions don't really work on ZFS anyways.
<iqubic> I have 8G RAM.
<clever> zfs doesnt really have partitions
<clever> zvols behave fairly differently
<iqubic> How big should I make the free space that will become my swap?
<clever> iqubic: depends heavily on how you use the machine and how much you go over 8gig
<iqubic> clever: I should really learn how to use zfs effectively.
<iqubic> Thanks.
<iqubic> I'm going to go free up some space now. When I come back I'll be needing some help getting a swap partition created.
<iqubic> bye for now.
<clever> iqubic: just run gparted on linux end
<iqubic> clever: I'm really not sure how Windows will handle this.
<iqubic> I have this NTFS partition that I can read and write to from both windows10 and Nixos. I want to shrink that.
<clever> windows should be able to shrink it just fine
<iqubic> I know.
Lingjian has joined #nixos
<iqubic> But if I want to access Windows, I need to reboot my machine, as I dual boot.
<clever> dont see any problem there
<iqubic> You were saying I should run gparted from linux.
<clever> after you shrink the ntfs
<iqubic> Ah. I didn't understand that.
<clever> "When I come back I'll be needing some help getting a swap partition created."
<iqubic> I'll be back soon.
iqubic has left #nixos ["ERC (IRC client for Emacs 26.1)"]
eadwu has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53530 → python37Packages.zconfig: 3.3.0 -> 3.4.0 → https://git.io/fhsP1
<ottidmes> clever: why this line? https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix#L56 should it not be necessary considering you already called wipefs?
lord| has joined #nixos
<clever> ottidmes: cant remember exactly why i added that
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c2950341d03 (from 71 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
romanofskiWork has quit [Read error: Connection reset by peer]
iqubic has joined #nixos
<iqubic> So I'm back.
<iqubic> I'm now confused as heck.
<iqubic> I can't tell where my free space ended up.
<ottidmes> clever: and since the whole disk will be formatted by the new filesystems, I do not think wipefs is necessary too, but you probabaly have it for some reason and it should not hurt
<iqubic> is there a way to tell which partitions on a harddrive contain free space?
pie_ has joined #nixos
<qyliss> df -h ?
<ottidmes> iqubic: for free space inspection I like ncdu, but that is not saying something about partitions
<{^_^}> [nixpkgs] @f--t opened pull request #53531 → nvidia_x11: 410.78 -> 410.93 → https://git.io/fhsXe
<iqubic> ottidmes: I should have an 8Gig section of my SSD that is not yet partitioned.
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhsXJ
<iqubic> I'm trying to figure out if that actually exists, and where it is.
romanofskiWork has joined #nixos
<iqubic> ottidmes: How does ncdu work?
<iqubic> clever: Can you help me out here?
<ottidmes> iqubic: it loads all metadata needed to determine the sizes and then you can navigate with arrow keys, it works really well (it is a command line GUI via curses)
ddellacosta has joined #nixos
<iqubic> yeah, but It's not telling me if I have any free unallocated space anywhere.
<clever> iqubic: ndcu wont show unpartitioned space, for that, you want gparted
<iqubic> I should I have 8GB of unallocated space somewhere on my SSD, because I just created that with Windows/
<clever> ncdu can only show filesystem stuff, zvols and unpartitioned wont be seen
<ottidmes> yeah, I did not know your exact goal, ncdu is great to find places where you can free some space, I just managed to remove a few gigabytes of stuff, but it won't help with unallocated space insights, no
gagbo has quit [Ping timeout: 246 seconds]
<iqubic> ottidimes: I dual boot Windows 10 and Nixos. I just went into Windows10 and shrunk a Windows partition. I should now have a section of my SSD with 8GB that hasn't been partitioned yet.
<iqubic> I'm trying to see if I can get Nixos to show that to me.
<iqubic> Well. GParted isn't being helpful at all.
<clever> iqubic: can you screenshot gparted?
ferriswheel has joined #nixos
<clever> iqubic: there is no trace of ntfs on that drive
<iqubic> It isn't even showing me partitions belonging to Windows that already have been partiioned.
<ottidmes> iqubic: nix-shell -p parted --run 'sudo parted /dev/sda --script print free'
<clever> try a different drive in the dropdown in the top-right
<iqubic> clever: That's the really strange part.
<gchristensen> its no good
<gchristensen> you have no sda1 it seems
<iqubic> clever: There are no other drives.
<gchristensen> you can't resize a partition which doesn't exist
<clever> iqubic: what does `fdisk -l /dev/sda` report?
<clever> iqubic: and `zpool history | head`
<iqubic> and zpool history | head is taking a long time to run.
<iqubic> something is really really wacky with my system.
<iqubic> clever: Do you have any clue what's happening here?
<clever> the zpool history should give more clues
<iqubic> `zpool history
<iqubic> `zpool history | head` is taking a long time to produce any output at all.
<clever> thats fairly normal
lawlesseel has joined #nixos
<clever> the automatic snapshots can make it slower
<iqubic> Wait... Running it as root goes really much faster. Using sudo was slow.
<iqubic> There we go.
<clever> i'm guessing gparted is just being weird
<{^_^}> [nixpkgs] @worldofpeace opened pull request #53532 → tilix: 1.8.5 -> 1.8.9 → https://git.io/fhsXn
<iqubic> Yes. I suppose so.
<clever> try just `fdisk /dev/sda` and then `n` to make a new partition, it should default to the free space
justanotheruser has quit [Ping timeout: 260 seconds]
<iqubic> So what is going on with gparted?
<iqubic> Because I clearly have sda1 - sda6 on my machine.
<clever> not sure, would need to check into the gparted source to know more
<clever> iqubic: checking the math, i can see an 8gig gap between sda5 and sda6, which fits what you said
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53533 → python37Packages.xdis: 3.8.8 -> 3.8.9 → https://git.io/fhsXW
<iqubic> That's where I'd expect it to be.
<siraben> iqubic: what's your partition table?
<clever> so it should be as simple as `fdisk /dev/sda` and then `n` and hitting enter at nearly everything
<clever> siraben: 2019-01-06 21:42:54 < iqubic> fdisk: http://dpaste.com/1PZ4SY6
<clever> GPT
<iqubic> So I just tried running `gparted /dev/sda5`
<clever> iqubic: thats your problem
<iqubic> What is?
<clever> that told it to open a single partition, not the device
<siraben> iqubic: and sda3 is what?
<clever> so it will only show the contents of a single partition
<clever> iqubic: just run gparted, with zero arguments
<iqubic> siraben: It's a partition that windows 10 created.
<iqubic> clever: when I do that I get the situation shown in that imgur link I gave.
<iqubic> Where it has one long orange bar.
<iqubic> that says /dev/sda
<clever> ah, then its not the problem, but running it on sda5 is just going to be worse
<siraben> Why not just run `sudo gparted`?
<iqubic> siraben: I did.
<iqubic> siraben: this is what i get if I run `sudo gparted`: https://imgur.com/a/s5mRFD3
<siraben> iqubic: what partition are you trying to find?
<siraben> Huh that's odd
<jasongrossman> I find gparted reliably fails to find two of the three partitions on my main drive. Go figure.
<jasongrossman> I suppose I should put in a bug report.
<jasongrossman> Anyway, use something other than gparted when it can't find your partitions!
<iqubic> siraben: I dual boot windows10 and Nixos. I just now went into Windows 10 and shrank a partition there. There should now be an 8GB block of free, unallocatted spac between sda5 and sda6. I'm trying to get nixos to show me that space.
<clever> iqubic: its clearly visible in the gparted output
init_6 has joined #nixos
<clever> iqubic: take the start sector of sda6, and the end sector of sda5
<iqubic> What do you mean?
<clever> > 16777217 * 512 / 1024 / 1024
<clever> 8192.00048828125
<{^_^}> 8192
<iqubic> that's fdisk.
<clever> and then just do some math
<iqubic> I gave you the output of fdisk.
<clever> it comes out to 8192mb of gap between the end of sda5, and the start of sda6
<iqubic> this is the output of `fdisk -f /dev/sda`: http://dpaste.com/1PZ4SY6
<iqubic> Now, the question is: How do I take that free space and turn it into swap space?
<iqubic> And do I want to make it an encrypted swap partition or not?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53534 → qtile: 0.12.0 -> 0.13.0 → https://git.io/fhsXz
<iqubic> clever: Are there any benefits of having a LUKS encrypted swap partition over just a regular swap partition?
<iqubic> regular=unecrypted.
<gchristensen> do you ever do anything you ever want to keep private on your computer?
<clever> iqubic: encryption keys and passwords can potentially leak into swap
<clever> and then persist for days, or even years
kisonecat has joined #nixos
<clever> swapDevices.*.randomEncryption solves the need for you to enter the swap password at bootup
<iqubic> I don't have any other encrypted partitions on this drive.
<iqubic> If I were to make my swap partition encrypted, that would be the only encrpted thing on this drive.
<clever> the randomEncryption flag doesnt ask for a password on bootup, and just uses a new (and random) encryption key every time
kp__ has quit [Quit: WeeChat 2.3]
<gchristensen> clever: is it compatible with hibernate?
<iqubic> I've never used the hibernate feature on my machine.
<clever> gchristensen: i dont believe it supports hibernation
<clever> gchristensen: but zfs also doesnt support hibernation, so ive got no need to make it work
<iqubic> Wait... I can't hibernate at all if I am using zfs?
<clever> correct
<{^_^}> zfsonlinux/zfs#7071 (by jhyeon, 50 weeks ago, open): Suspend to disk does not work with zfs/spl 0.7.5
fresheyeball has quit [Quit: WeeChat 2.2]
<iqubic> So what benefits do I get if I choose to encrypt my swap partition?
<clever> if the rootfs isnt encrypted, not much
sary has joined #nixos
<iqubic> Great. I'm not going to encrypt my swap partition.
<iqubic> So how shall I go about making this swap partition?
<ottidmes> so suspend to disk even fails when using ZFS with a dedicated partition for the swap?
<clever> 2019-01-06 21:51:30 < clever> so it should be as simple as `fdisk /dev/sda` and then `n` and hitting enter at nearly everything
<clever> ottidmes: yeah, something about zfs not properly handling the new kernel seeing the "uncleanly shutdown" fs, before the old kernel has its state restored
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53535 → python37Packages.xarray: 0.11.0 -> 0.11.2 → https://git.io/fhsXS
<ottidmes> clever: hmm good to know, I just heard about it before but dismissed it thinking I was not using swap files anyway
<iqubic> clever: I have now created a partition of type "Linux filesystem" with 8Gig of size.
<iqubic> is that the right type?
<clever> iqubic: you want linux swap, use `t` to change the type
<iqubic> cool
kvda has joined #nixos
<iqubic> great.
<iqubic> Now, I have one last task. How do I go about telling Nixos that this swap partition exists?
<clever> add it back under swapDevices
<clever> like the old one you removed
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c2950341d03 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<clever> 30 swapDevices = [
<clever> 31 { device = "/dev/nvme0n1p3"; priority = 10; }
<clever> thats how mine is setup
<clever> priority only matters if you have more then 1 swap
ottidmes has quit [Ping timeout: 258 seconds]
<iqubic> cool thanks.
justanotheruser has joined #nixos
<iqubic> I assume I want to use /dev/sda7
<iqubic> As that's the path to the partition I just create.
<iqubic> Is that right?
<clever> yeah
<clever> you also have to run mkswap on it, to format it as a swap partition
<iqubic> nixos-rebuild doesn't do that automtically?
<clever> nixos-rebuild just runs swapon
<clever> but swapon will fail if it hasnt been formatted
<iqubic> Nice.
<iqubic> Now... How do I check if swap is actually running?
<clever> cat /proc/swaps
<clever> or free -m
<iqubic> Thank you for your help with changing my swap partition about.
<iqubic> I assume priority = -2 is fine. That's what /proc/swaps is telling me this partition is.
<clever> the default priorities are negative, going further negative with every call to swapon
<clever> so it prefers the 1st device you enable, and uses them in order of swapon
<clever> "larger" numbers (-1 is larger then -2) are higher priority
<clever> 32 #{ device = "/dev/disk/by-partlabel/swap1"; priority = 10; }
<clever> 33 #{ device = "/dev/disk/by-partlabel/swap2"; priority = 10; }
<clever> some of my older swap devices
<iqubic> Thanks for the info. I noticed that when I had my zvol as the swap partition it was also priority = -2.
<clever> if the priority is the same, it will split writes 50/50 between the 2 devices
<iqubic> clever: One last thing. Is it possible to give this new partition a partlabel?
<clever> if you check the help in fdisk (`m`) then youll see an `x` option to go into expert mode
<clever> check the help again, and youll find this command:
<clever> n change partition name
<iqubic> I thought that was how you created a new partition.
<clever> expert mode changes the command set, so `n` does something different
<iqubic> How do I exit expert mode to write the changes?
<clever> what is the very last thing in the expert mode help?
<iqubic> Haven't looked at the help.
<clever> the help explains everything
<iqubic> Yeah, it does.
<iqubic> And now I have a new swap partition that should work a lot better than using a zvol. And now I won't have any needless snapshots.
<iqubic> clever++
<{^_^}> clever's karma got increased to 68
<iqubic> clever++
<{^_^}> clever's karma got increased to 69
<iqubic> That's for helping me with my task.
<clever> your welcome
<iqubic> *you're
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eadwu has joined #nixos
Supersonic has quit [Ping timeout: 268 seconds]
<iqubic> So does swap effectively trade storage space for more proccessing power, or what?
<clever> it wont make the cpu any faster
Lingjian has quit [Ping timeout: 260 seconds]
<iqubic> So what will it do?
<clever> help when programs need more then 8gig of ram
<iqubic> Ah.
init_6 has quit [Ping timeout: 246 seconds]
Supersonic has joined #nixos
init_6 has joined #nixos
rprije has joined #nixos
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
lawlesseel has quit [Remote host closed the connection]
<iqubic> How much RAM does Firefox use generally?
cyounkins has quit [Remote host closed the connection]
<clever> iqubic: depends on how you use it, how many tabs you have open, and what sites your visiting
kisonecat has quit [Ping timeout: 246 seconds]
cyounkins has joined #nixos
<iqubic> I assume more plugins and more tabs = more RAM used.
cyounkins has quit [Ping timeout: 246 seconds]
kisonecat has joined #nixos
wedens has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53536 → qtbitcointrader: 1.40.30 -> 1.40.40 → https://git.io/fhsM0
Lingjian has joined #nixos
eadwu has quit [Ping timeout: 252 seconds]
alex_giusi_tiri has joined #nixos
kisonecat has quit [Ping timeout: 244 seconds]
Lingjian has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @andrew-d opened pull request #53537 → m2crypto: fix build with libressl → https://git.io/fhsMi
<init_6> iqubic: all
eadwu has joined #nixos
b has quit [Quit: Lost terminal]
orivej has quit [Ping timeout: 244 seconds]
worldofpeace has quit [Ping timeout: 244 seconds]
kvda has joined #nixos
orivej has joined #nixos
dckc has joined #nixos
<dckc> does the python dev mode example work for anyone else? https://nixos.org/nixpkgs/manual/#development-mode
alex_giusi_tiri has quit [Remote host closed the connection]
<dckc> I get: error: undefined variable 'buildPythonPackage' at /tmp/x/default.nix:3:1
<{^_^}> [nixpkgs] @matthewbauer merged pull request #47665 → Minor initrd improvements → https://git.io/fxkBs
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhsDt
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 250 seconds]
lassulus_ is now known as lassulus
shpx has joined #nixos
Church_ has quit [Ping timeout: 246 seconds]
eadwu has quit [Ping timeout: 252 seconds]
fusion809 has joined #nixos
drk_lrd_877_ has joined #nixos
shpx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @matthewbauer opened pull request #53539 → Fixes for recent darwin changes → https://git.io/fhsDP
<{^_^}> [nixpkgs] @matthewbauer opened pull request #53540 → wip develop branch → https://git.io/fhsDd
alex_giusi_tiri has joined #nixos
etbe has joined #nixos
<alex_giusi_tiri> Hi. I have a question that's not entirely related to nixos: I am trying to run some android `fastboot` commands, but it cannot detect my device. Would nixos already have the fastboot (odin mode) drivers included? Another solution to try would be to change the udev rules for android, but I am not sure how to edit files in /etc/udev/rules.d/. What would you recommend? :-)
sary has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #52965 → squashfs: 4.4dev -> 4.4dev-20180612 → https://git.io/fhkCZ
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhsyO
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53541 → python37Packages.memory_profiler: 0.54.0 -> 0.55.0 → https://git.io/fhsy4
pie__ has joined #nixos
pie_ has quit [Remote host closed the connection]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53542 → python37Packages.pysmi: 0.3.2 -> 0.3.3 → https://git.io/fhsy1
etbe has quit [Quit: Konversation terminated!]
endformationage has quit [Quit: WeeChat 2.3]
hedning has quit [Quit: hedning]
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
cyphase has quit [Ping timeout: 244 seconds]
doyougnu has joined #nixos
doyougnu has quit [Client Quit]
MinceR has quit [Ping timeout: 250 seconds]
MinceR has joined #nixos
vk3wtf has quit [Ping timeout: 252 seconds]
cyphase has joined #nixos
gerschtli has quit [Quit: WeeChat 2.2]
hyper_ch2 has joined #nixos
gerschtli has joined #nixos
<hyper_ch2> what's the name of android adb now?
<alex_giusi_tiri> what do you mean? the command name?
<hyper_ch2> no, I used to get ADB by adding androidenv.platformTools to the system packages... but that package doesn't exist anymore
<hyper_ch2> error: attribute 'platformTools' missing, at /etc/nixos/configuration.nix....
<alex_giusi_tiri> oh, i just installed android-studio
<alex_giusi_tiri> I pretty sure that that did it
<hyper_ch2> let me try that :)
<alex_giusi_tiri> I also installed some mtp and mtpfs packages
<alex_giusi_tiri> ok, thanks
<alex_giusi_tiri> but that's a/some few hundred megs there
<alex_giusi_tiri> a few/some*
<alex_giusi_tiri> if i remember correctly
<alex_giusi_tiri> to download, that is
shpx has joined #nixos
<iqubic> clever: I have no idea if this is a coincidence or not, but ever since I changed my swap partition, firefox has decided that it wants to load YouTube really really slowly.
<hyper_ch2> don't need mtp :)
<alex_giusi_tiri> hyper_ch2: yeah, i was pretty sure that it was provided by android studio, but i thought i should still mention it
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53543 → python37Packages.django_2_1: 2.1.4 -> 2.1.5 → https://git.io/fhs9V
<jasongrossman> I have adb without android-studio, provided by programs.adb.enable = true;
<dmj`> peti around?
<alex_giusi_tiri> but, which packages does that install?
<alex_giusi_tiri> how to find out?
<hyper_ch2> jasongrossman: oh.... nice
<jasongrossman> hyper_ch2: Recently, I've also needed nixpkgs.config.android_sdk.accept_license = true;
<alex_giusi_tiri> yeah, i noticed that when trying to install, i think, adb-sync
<hyper_ch2> jasongrossman: what's that for?
<alex_giusi_tiri> I thought that youtube videos and such are loaded into ram (and lost on page refresh). is that true?
<jasongrossman> hyper_ch2: I'd be guessing.
<hyper_ch2> ok, also had to accept the licence
<alex_giusi_tiri> i just noticed that i have that too, "programs.adb.enable = true;"
Ariakenom has joined #nixos
<hyper_ch2> thanks
<alex_giusi_tiri> sorry, forgot i had it there
<alex_giusi_tiri> but, i didn't have to accept any license when installing android-studio
Church_ has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53544 → python37Packages.numpy-stl: 2.7.0 -> 2.9.0 → https://git.io/fhsHL
vk3wtf has joined #nixos
jackdk has quit [Ping timeout: 258 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
palo1 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53545 → python37Packages.pycares: 2.3.0 -> 2.4.0 → https://git.io/fhsHb
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
iqubic has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
griff_ has joined #nixos
<hyper_ch2> question: If you talk generally about booting computers. Can you still use "BIOS" for modern systems or should you use "UEFI" instead?
<alex_giusi_tiri> I still use BIOS. I think you should use what you like. But, I guess that EFI is now trendy, perhaps.
ddellacosta has quit [Remote host closed the connection]
MichaelRaskin has quit [Quit: MichaelRaskin]
<makefu> alex_giusi_tiri: BIOS is out of favor since 2006, you should really consider switching to not be one of "these old people"
hyper_ch2_ has joined #nixos
<hyper_ch2_> got disconnected... was there any reply to my question?
<wedens> I use uefi when it's available. for no particular reason :)
hyper_ch2 has quit [Ping timeout: 256 seconds]
<alex_giusi_tiri> at least the machine i use now doesn't have efi
<alex_giusi_tiri> so I can't, unless I chainboot
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53546 → python37Packages.pip-tools: 3.1.0 -> 3.2.0 → https://git.io/fhsQP
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53547 → python37Packages.pytest-rerunfailures: 4.2 -> 5.0 → https://git.io/fhsQy
babic has joined #nixos
<teto> I am trying to override alot src attribute. I've done so in my overlay. nix repl shows the good version for alot.version but if I do nix-build alot than I get another version number :/
griff_ has quit [Quit: griff_]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53548 → python37Packages.fonttools: 3.33.0 -> 3.34.2 → https://git.io/fhs7Y
pie__ has quit [Remote host closed the connection]
orivej has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53549 → python37Packages.elpy: 1.27.0 -> 1.28.0 → https://git.io/fhs7M
orivej has joined #nixos
pie__ has joined #nixos
Church_ has quit [Ping timeout: 258 seconds]
reinhardt has joined #nixos
Notkea has quit [Ping timeout: 268 seconds]
lord| has quit [Ping timeout: 240 seconds]
lord| has joined #nixos
Notkea has joined #nixos
chimay has joined #nixos
simukis has joined #nixos
Makaveli7 has joined #nixos
Tucky has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/7b207060f16 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<wedens> I set option `x` in one module using `x.y = mkOptionDefault { a = 1; };`, how can I extend this set in other module?
<wedens> the first module is added to `imports` of the second module, obviously
<wedens> seems like I can do the same `x.y = mkOptionDefault { b = 2; };` and `x.y` will be `{ a = 1; b = 2}`?
<teto> hum rather it seems like nixpkgs won't update the name of the derivation
<teto> but I was installing the correct one
shpx has quit [Quit: Textual IRC Client: www.textualapp.com]
<ivan> how do I make the reboot/shutdown/suspend buttons inoperable on NixOS? this has no effect https://askubuntu.com/questions/453479/how-to-disable-shutdown-reboot-from-lightdm-in-14-04/454230#454230
<ivan> maybe environment.etc."polkit-1/localauthority/50-local.d/restrict-login-powermgmt.pkla" is the wrong place now
<ivan> maybe I have to write JavaScript instead of .pkla files now
jackdk_ has joined #nixos
<ivan> ah yes it appears pklocalauthority no longer exists
<ivan> "Any backend can now be implemented in JavaScript (if so desired) so we don't need any of this any more."
Makaveli7 has quit [Quit: Leaving]
chimay has quit [Quit: WeeChat 2.3]
reinhardt has quit [Quit: Leaving]
periklis has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53551 → python37Packages.kombu: 4.2.1 -> 4.2.2.post1 → https://git.io/fhsFB
<{^_^}> [nixpkgs] @MP2E opened pull request #53552 → alsaLib: upstream pcm interval patch to fix audio → https://git.io/fhsFg
thc202 has joined #nixos
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
vk3wtf has quit [Ping timeout: 252 seconds]
ddellacosta has joined #nixos
sigmundv_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53553 → python37Packages.pylast: 2.4.0 -> 3.0.0 → https://git.io/fhsbA
dermetfan has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
periklis has quit [Read error: Connection reset by peer]
hedning has joined #nixos
hyper_ch2_ has quit [Ping timeout: 256 seconds]
civodul has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
lihop has joined #nixos
johanot has joined #nixos
ThatDocsLady has joined #nixos
Synthetica has joined #nixos
Ariakenom has joined #nixos
ekleog has quit [Quit: back soon]
<Taneb> How can I set the current NixOS configuration as boot default, without rebuilding it?
<symphorien> /run/current-system/bin/switch-to-configuration boot I'd say
hyper_ch2 has joined #nixos
<Taneb> symphorien: thanks, we'll give that a go
<elvishjerricco> Taneb: Note that won't make it the latest generation; just set the grub menu to choose it as the default.
<Taneb> elvishjerricco: yes, that's what we wont
<Taneb> *want
donguri has joined #nixos
<elvishjerricco> Taneb: Cool. FYI, there's also /run/booted-system, if you want to revert to a system that you know boots.
jackdk_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fhsxu
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fhsx2
<{^_^}> [nixpkgs] @peti pushed 4 commits to master: https://git.io/fhsxa
griff_ has joined #nixos
__Sander__ has joined #nixos
ekleog has joined #nixos
<ivan> how do I actually blacklist `nvidia` so that vfio can grab a card first? `blacklistedKernelModules = [ "nvidia" "nvidia_modeset" "nvidia_uvm" ]` isn't doing much
<ivan> maybe I should edit the module to remove its boot.kernelModules
m15k has joined #nixos
<elvishjerricco> `output '/nix/store/...-stdenv-linux' is not allowed to refer to the following paths:` uh
<elvishjerricco> that's annoying
<elvishjerricco> I have custom cross stages and I'm using a bunch of custom tools
<elvishjerricco> `allowedRequisites = null;` neat
periklis has joined #nixos
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #53554 → searx: 0.14.0 -> 0.15.0 → https://git.io/fhsh3
<{^_^}> [nixpkgs] @Tomahna opened pull request #53555 → mopidy-iris: 3.31.7 -> 3.31.8 → https://git.io/fhsh8
erictapen has joined #nixos
codezero has quit [Quit: The Lounge - https://thelounge.github.io]
alex`` has joined #nixos
codezero has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53556 → pgcli: 2.0.1 -> 2.0.2 → https://git.io/fhGen
<Izorkin> How to need to merge PR #53245 #52765 #51902
<{^_^}> https://github.com/NixOS/nixpkgs/pull/53245 (by Izorkin, 4 days ago, open): zsh.syntaxHighlighting: add option to customize styles
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52765 (by Izorkin, 1 week ago, open): datadog-agent: 6.4.2 -> 6.8.2
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51902 (by Izorkin, 3 weeks ago, open): mariadb.galera: 25.3.24 -> 25.3.25
griff_ has quit [Quit: griff_]
<ivan> how do I configure this in NixOS?
<ivan> iface vmhost inet manual
<ivan> pre-up /sbin/ip link add vmhost type dummy
fusion809 has quit [Remote host closed the connection]
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
<wedens> Izorkin: just wait and pray :)
Izorkin has joined #nixos
Izorkin has quit [Client Quit]
<ivan> ok I figured out I can add the dummy type in nixpkgs
Izorkin has joined #nixos
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #53557 → searx: 0.14.0 -> 0.15.0 [backport] → https://git.io/fhGvE
Izorkin has quit [Quit: ZNC 1.7.1 - https://znc.in]
Izorkin has joined #nixos
m15k has quit [Ping timeout: 256 seconds]
vk3wtf has joined #nixos
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @basvandijk merged pull request #53523 → Fix futhark build on Darwin → https://git.io/fhsV6
<{^_^}> [nixpkgs] @basvandijk pushed 3 commits to master: https://git.io/fhGfc
ddellacosta has quit [Ping timeout: 258 seconds]
erictapen has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53558 → polar-bookshelf: 1.5.1 -> 1.7.0 → https://git.io/fhGfa
orivej has joined #nixos
mudrii has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #53376 → clickhouse: 18.14.18 -> 18.16.1 → https://git.io/fhYFo
<{^_^}> [nixpkgs] @orivej-nixos pushed 3 commits to master: https://git.io/fhGJO
ottidmes has joined #nixos
fendor has joined #nixos
<silver_hook> Why do these X11 settings https://pastebin.com/U095mQFb fail the build like this https://pastebin.com/rRaR6WBC
<silver_hook> It seems to do with display-manager, but I can’t figure out why. I’ve just moved it from a standalone line into the services.xserver block
orivej has quit [Ping timeout: 258 seconds]
<ivan> silver_hook: libinput.enable = true is missing a semicolon. unrelated?
<ottidmes> I want to use a specific Haskell package dependency, megaparsec of at least version 7, but Nix keeps downloading version 6.5, any way to get the later versions? I tried a later GHC version, I tried using my nixos-unstable checkout, neither worked
<drager> If I want to install something that's not present in nixpkgs? For example the "lightdm-webkit2-greeter" Do I need to follow this to do that? https://nixos.org/nixpkgs/manual/#chap-quick-start
<silver_hook> ivan: Unrelated, as this somehow disappeared in the pastebin, it exists in the file.
<wedens> drager: you can create a derivation locally
<silver_hook> ivan: Re-submitted the paste https://pastebin.com/DtxCjtaj
<wedens> drager: you may want to check this https://github.com/NixOS/nixpkgs/pull/43536
<{^_^}> #43536 (by samueldr, 25 weeks ago, open): [WIP]: lightdm-web-greeter (3.0.0rc2)
<drager> wedens: But if I want to have it declaretive in my configuration.nix?
<drager> wedens: Thanks for the issue, will check it out
<ottidmes> silver_hook: maybe add enable = true; to your services.xserver block?
<wedens> drager: modules can also be defined locally, without changing nixpkgs
<silver_hook> ottidmes: That seems to have done it, yes. Thanks.
<ottidmes> silver_hook: maybe create an issue for it, if it assumes it is enabled, the config = mkIf check in the module is wrong I would say
<drager> wedens: Alright, could you point me towards some documentation about that_
lihop has quit [Ping timeout: 264 seconds]
tyang has joined #nixos
<jasongrossman> ottidmes++
<{^_^}> ottidmes's karma got increased to 8
<silver_hook> ottidmes: I’ll try to submit a coherent issue then.
<drager> wedens: Thanks
<wedens> drager: so, you write your module and add it to `imports` in your configuration
<drager> Alright
dslegends has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53559 → pynac: 0.7.22 -> 0.7.23 → https://git.io/fhGUT
Dagger has quit [Ping timeout: 268 seconds]
Guanin has joined #nixos
Dagger has joined #nixos
<Guanin> Hi, I'm in the process of getting a proprietary toolchain (vivado) running on NixOS. Sadly, it sometimes writes and executes shell scripts, where it hardcodes the path /bin/touch. Does someone have a nice way to handle it? or should I just go the easy route and cram everything into a virtual machine with an officially supported linux?
<drager> wedens: But hmm, if I write a module like that. How do I build and point to git repo? Or how's that supposed to work?
<etu> Guanin: Nix has FHS wrappers
<wedens> drager: which repo?
<drager> The "lightdm-webkit2-greeter" in this case
<wedens> Guanin: you can always patch it if it's feasible
<etu> Guanin: For example steam is executed in such a way since it downloads binaries and executes them. And libc and other libs will be in the wrong place.
<wedens> drager: well, it's just a derivation. and you can use the derivation in a module
<Guanin> etu, I guess I have to dig into the FHS wrapper deeper then. Only managed to get something else running as a shell.nix with it, so far
<wedens> drager: that's exactly what PR that I've linked does. it defines a derivation ( pkgs/applications/display-managers/lightdm-web-greeter/default.nix) and a module ( nixos/modules/services/x11/display-managers/lightdm-greeters/web.nix)
<Guanin> wedens, right now I hotpatch the scripts with find and sed executed every 0.1s (yay, race conditions...). At least I got it "working" that way, but it is annoying
<Guanin> But thanks, I'll really have to learn how to package with the FHS wrapper, then
<drager> wedens: Ah, there is dependencies and git urls and stuff. Thanks. I'm very new to nixos so that's why I wondered
<wedens> drager: that might not be the easiest thing to implement for a beginner, but you'll definitely learn a lot :)
<drager> wedens: Alright :D Will try and see at least
griff_ has joined #nixos
<silver_hook> ottidmes: Would that issue with the missing test for xserver=enable fall under NixPgks or some other repository?
<srhb> silver_hook: nixpkgs is the right repo. :)
<silver_hook> srhb: Thanks
Synthetica has quit [Quit: Connection closed for inactivity]
lawlesseel has joined #nixos
<silver_hook> Issue already exists: https://github.com/NixOS/nixpkgs/issues/25735
<{^_^}> #25735 (by nbp, 1 year ago, open): Missing "display-manager" job when enabling sddm
<Taneb> Guanin: let me know how it goes?
<lassulus> hmm, how can I use a url in nix with a ~ in it? nix-prefetch-url 'https://binaries.symless.com/v2.0.12/debian/synergy_2.0.12.beta~b74%2B0b61673b_amd64.deb' returns invalid character '~' in name 'synergy_2.0.12.beta~b74%2B0b61673b_amd64.
<wedens> Guanin: I've found this on github by searching for nix files with vivado, perhaps it'll be helpful https://github.com/lukaslaobeyer/nix-fpgapkgs/tree/master/pkgs/vivado
countingsort has joined #nixos
<wedens> lassulus: try replacing ~ with %7E
<lassulus> hmm invalid character '%' in name 'synergy_2.0.12.beta%7Eb74%2B0b61673b_amd64.deb'
<clever> lassulus: also add a `name = "something.deb";` to the fetchurl
<clever> the name should mostly match the original, just to make things simpler to debug
<lassulus> clever: that worked, thanks!
<wedens> ah, it'll try to make a path in the store with ~ which seems to be invalid
<ottidmes> lassulus: this is my synergy2 package: https://gist.github.com/ottidmes/86d1c6864e1b5d9db036ed03f5848754 (cannot remember what exactly, but I had trouble with it so I have not used it in a while)
<Guanin> wedens, I based my expression on that one, just had to add some additional patches :)
michas has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
fendor has quit [Ping timeout: 246 seconds]
fendor has joined #nixos
<Myrl-saki> Nixos assumes an "in-tree" build. Is this intentional?
<Myrl-saki> If you move nixos to its own directory, everything starts failing.
reinhardt has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « urxvt: Allow switching out package »: https://git.io/fhGIz
<sphalerite> `nix-store -qR $(nix-store -q --deriver /run/current-system) | xargs nix-store -r` in case anyone feels the need to download the sources for the closure of their system
<sphalerite> Myrl-saki: yes
craige[m] has joined #nixos
<{^_^}> [nixpkgs] @basvandijk merged pull request #53399 → apache-httpd/wordpress: copy plugins and themes instead of symlinking → https://git.io/fhOqo
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fhGLk
<Myrl-saki> What's the best current practice for putting something encrypted on /nix/store?
<infinisil> sphalerite: The sources of the closure? Doesn't that command just realize your system?
<Myrl-saki> Basically, I need to read a passphrase from either a file or a string.
<Myrl-saki> At least that's what I think I sould do.
<sphalerite> infinisil: nix-store -qR on the drv for the system => sources for complete system
<Myrl-saki> But I'm not so sure how to make it work with a sandbox without putting the passphrase/decryption key in the /nix/store.
<sphalerite> Myrl-saki: you don't
<{^_^}> [nixpkgs] @ejpcmac opened pull request #53560 → yubioath-desktop: Fix the desktop icon → https://git.io/fhGL8
<Myrl-saki> sphalerite: I don't?
<sphalerite> Myrl-saki: yeah, there's no safe and pure way to do that sort of thing
<Myrl-saki> I'm fine with impurities, I even set the __impure flag for it.
<{^_^}> nix#8 (by edolstra, 6 years ago, open): Support private files in the Nix store
<Myrl-saki> But the problem is disabling sandboxing IIRC reqires you to be a trusted user.
<{^_^}> [nixpkgs] @vcunat pushed to master « knot-dns: 2.7.4 -> 2.7.5 »: https://git.io/fhGL2
<Myrl-saki> sphalerite: Also, I don't need to decrypt the file.
<Myrl-saki> Basically, I encrypt it using Nix, but decrypt it using traditional tools.
<{^_^}> [nixpkgs] @FPtje opened pull request #53561 → nixos/apache-httpd/wordpress: copy plugins and themes instead of syml… → https://git.io/fhGL1
<sphalerite> Myrl-saki: oh, in that case I'd probably export the public key with gpg, then use gpg within the build to import the key and encrypt something for it
<infinisil> I didn't know Nix can encrypt files!
griff_ has quit [Quit: griff_]
__monty__ has joined #nixos
<gchristensen> probably shouldn't encrypt inside a nix-build, since the decrypted sources are also in the store
<gchristensen> unless the thing you're encrypting is generated as part of the build, but even then: any user can look at any in-progress nix build, there is no privacy here
<Mic92> how can a user look at the in-progress build?
periklis has quit [Remote host closed the connection]
fusion809 has joined #nixos
<gchristensen> ah, jk :) the build dir is root/root and drwx------
<gchristensen> although since the inputs are known (they're all in the store) and the computation is known, the encryption is not very useful and the secrets are probably not very secret
<{^_^}> [nixpkgs] @basvandijk merged pull request #53561 → nixos/apache-httpd/wordpress: copy plugins and themes instead of syml… → https://git.io/fhGL1
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to release-18.09: https://git.io/fhGtc
donguri has quit [Quit: Leaving]
iyzsong has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.20-rc7 -> 5.0-rc1 »: https://git.io/fhGt0
Mateon2 has joined #nixos
<Myrl-saki> gchristensen: I have no problem with that.
Mateon1 has quit [Ping timeout: 258 seconds]
Mateon2 is now known as Mateon1
<Myrl-saki> sphalerite: Good point, but damn, I need symmetric encryption.
<Myrl-saki> sphalerite: That's actually a very nice way of doing stuff.
<gchristensen> what is your use case?
<Myrl-saki> gchristensen: I'm making an encrypted livecd.
<Myrl-saki> gchristensen: And I need a way to pass in the LUKS key without having the key in /nix/store..
<sphalerite> Myrl-saki: generate a random symmetric key and encrypt that asymmetrically, putting that in the output? :D
<sphalerite> it won't be deterministic, but I think it should work?
<Myrl-saki> Yeah, determinism is something I'd rather not have anyway.
<gchristensen> Myrl-saki: mindif I ask another level of, what for?
ma9e_ has joined #nixos
griff_ has joined #nixos
<Myrl-saki> gchristensen: The LiveCD I'm making works somewhat as a thin client, and the fastest way to not leak credentials is to just encrypt everything.
<gchristensen> ah, cool
<Myrl-saki> sphalerite: Hm.
<Myrl-saki> sphalerite: I'm somewhat confused
<Myrl-saki> sphalerite: I need to pass something to luksFormat, and it should be human-writeable.
<sphalerite> Myrl-saki: then use diceware to generate it ;)
Dedalo has joined #nixos
<Myrl-saki> sphalerite: Right, but I'm interested in doing it in Nix.
<Myrl-saki> Oh, hm.
<Myrl-saki> I guess it's possible to use GPG with it.
<sphalerite> Myrl-saki: runCommand "encrypted-foo" { buildInputs = [ diceware gnupg ]; } '' gpg --import <${./pubkey} ; diceware > passphrase; cryptsetup luksFormat <stuff> ; gpg --encrypt <ID> <passphrase >$out/passphrase
<sphalerite> approximately :)
<Myrl-saki> Oh.
<Myrl-saki> Yeah, I see what you mean now.
<clever> so every image has a unique passphrase, and only the gpg pubkey and passphrase ciphertext are in the store
<Myrl-saki> Yep.
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
cyounkins has joined #nixos
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #53562 → cpupower: add bash_completion_dir (linux 5.0-rc1) → https://git.io/fhGq0
ThatDocsLady_ has joined #nixos
<drager> I see in the docs for sddm that I can specify a theme: https://nixos.org/nixos/manual/options.html#opt-services.xserver.displayManager.sddm.theme but how would I specify custom ones?
ThatDocsLady has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @globin merged pull request #53554 → searx: 0.14.0 -> 0.15.0 → https://git.io/fhsh3
<{^_^}> [nixpkgs] @globin pushed 3 commits to master: https://git.io/fhGqS
<{^_^}> [nixpkgs] @globin merged pull request #53557 → searx: 0.14.0 -> 0.15.0 [backport] → https://git.io/fhGvE
<{^_^}> [nixpkgs] @globin pushed 3 commits to release-18.09: https://git.io/fhGq7
<sphalerite> Myrl-saki: does that help? :)
hellrazor has joined #nixos
<Myrl-saki> sphalerite: For the most part!
<Myrl-saki> sphalerite: OTOH, I wanted to be able to input it interactively, to some extent, such as a file in the file system.
<Myrl-saki> Or a pipe?
<Myrl-saki> sphalerite: ++
<Myrl-saki> sphalerite++
<Myrl-saki> Hm. Ded bot?
mudrii has quit [Ping timeout: 256 seconds]
<sphalerite> I mean you could probably use sandbox-paths or some nastiness like that, but that makes it a lot more system-dependent
fendor has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos
Guanin_ has joined #nixos
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/cca1e3720f9 (from 39 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
fendor has joined #nixos
Guanin has quit [Ping timeout: 260 seconds]
Guanin__ has joined #nixos
Guanin_ has quit [Ping timeout: 250 seconds]
fendor has quit [Ping timeout: 250 seconds]
<gchristensen> oh dear, ofborg is down?
Dedalo has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @timokau merged pull request #53559 → pynac: 0.7.22 -> 0.7.23 → https://git.io/fhGUT
<{^_^}> [nixpkgs] @timokau pushed commit from @r-ryantm to master « pynac: 0.7.22 -> 0.7.23 (#53559) »: https://git.io/fhGOG
<LnL> wut
<Izorkin> How to need to merge PR #53245 #52765 #51902
<{^_^}> https://github.com/NixOS/nixpkgs/pull/53245 (by Izorkin, 4 days ago, open): zsh.syntaxHighlighting: add option to customize styles
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52765 (by Izorkin, 2 weeks ago, open): datadog-agent: 6.4.2 -> 6.8.3
<{^_^}> https://github.com/NixOS/nixpkgs/pull/51902 (by Izorkin, 3 weeks ago, open): mariadb.galera: 25.3.24 -> 25.3.25
<LnL> gchristensen: but don't we use webhooks for everything?
Dedalo has joined #nixos
kisonecat has joined #nixos
<gchristensen> LnL: I thought so?
<LnL> do you see anything in the logs
<srhb> I don't think we use github services-based anything.
<gchristensen> lots of webhook events, lots of logs about failed signatures
az` has joined #nixos
az` is now known as b11111000000
<srk> gchristensen: I've recently experimented with bare clone of nixpkgs set-up as a mirror with post-receive hook feeding receive events to my app
<gchristensen> neat
b11111000000 has quit [Read error: Connection reset by peer]
<srk> I can build like websocket service out of it so people can subscribe and receive events
<{^_^}> [nixpkgs] @rbrewer123 opened pull request #53563 → pyznap: init at 1.1.2 → https://git.io/fhG38
<gchristensen> that sounds pretty cool
fendor has joined #nixos
<gchristensen> ok, sorted it. wasn't the brown-out, but a bug in the amqp client.
<{^_^}> [nixpkgs] @primeos pushed to master « scons: 3.0.1 -> 3.0.2 »: https://git.io/fhG37
<gchristensen> 46 queued evals now :')
<Dedalo> I'm having troubles to configure Polybar. I'm using i3. I have copied the polybar/config from the arco distro, and I have created a startup script. Then I have modified the configuration.nix adding polybar and I have modified the i3 connfiguration to use the script previously created, but the bar doesn't appear. Anyone can share his configuration.nix or home-manager conf for i3 and polybar? I'm sure someone of
<Dedalo> you is using it.
arianvp has quit [Quit: WeeChat 2.2]
arianvp has joined #nixos
erictapen has joined #nixos
dermetfan has quit [Ping timeout: 272 seconds]
lawlesseel has quit [Quit: Leaving]
lawlesseel has joined #nixos
<spacekookie> I noticed that sometimes nix-shell starts fork-bombing my system and I'm not really sure how to debug this: https://diode.zone/videos/watch/e71f34f9-f479-4130-b70a-97dff9a5ab56
lawlesseel has quit [Remote host closed the connection]
<spacekookie> (I'm running on Fedora so I guess there's a lot of environment that might be causing issues)
lawlesseel has joined #nixos
init_6 has quit [Ping timeout: 272 seconds]
init_6 has joined #nixos
<sphalerite> spacekookie: that's odd! what are the processes that are being created?
<Guanin__> Dedalo, here is my polybar config with home-manager: https://gist.github.com/Amarandus/7f21dc4b3bc51e0983c61a3debc16a3d
<spacekookie> sphalerite: they're all bash from the nix store
Guanin__ is now known as Guanin
<spacekookie> I assume it has something to do with my bash environment or maybe the completions but I'm really not sure what exactly
gagbo_work has joined #nixos
<Guanin> Dedalo, but I'm using xmonad, not i3
<{^_^}> [nixpkgs] @KireevArtur opened pull request #53564 → Adding Russian dictionary for hunspell → https://git.io/fhGsh
<gagbo_work> Hello, is it possible to tell in /etc/nixos/configuration.nix the system to clone a repo in the home directory of a user ?
<sphalerite> spacekookie: could you try moving your ~/.bashrc away temporarily so it doesn't take effect?
<spacekookie> sphalerite: I don't have one
<spacekookie> I use fish as my shell
<sphalerite> gagbo_work: you could use a oneshot systemd service that checks if it already exists, then clones it if not.
<sphalerite> spacekookie: try with /etc/bashrc or /etc/bash.bashrc then
<Dedalo> thx Guanin I take a look
<spacekookie> sphalerite: Actually just running it again, it spawns hundreds of `/nix/store/can00lfiynqkbsdkkmgp6qg8p8w92cxa-bash-4.4-p23/bin/bash -e /home/spacekookie/.nix-profile/bin/manpath`
<spacekookie> Can try
detran has quit [Ping timeout: 240 seconds]
simukis has quit [Quit: simukis]
simukis has joined #nixos
<spacekookie> Oh wow yea okay moving /etc/bashrc fixed it
simukis has quit [Remote host closed the connection]
<sphalerite> you can try moving it back and putting set -x at the beginning if you want to work out why it happens
simukis has joined #nixos
<spacekookie> Yea, I'll try that
<spacekookie> This is the file if you're curious: https://pastebin.com/Da4kAaq6 but thanks for the pointers!
init_6 has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @NRHelmi opened pull request #53565 → aws-xray-daemon-V3.0.0 | awx-xray-daemon: init at V3.0.0 → https://git.io/fhGGB
<cyris212> I have a weird ghci issue. When i run my main function it fails with "can't load .so/.DLL for: libz.so ..."
frigate_freedom has joined #nixos
<cyris212> Compiling it with ghc works fine.
<cyris212> Could this be a nix issue?
<gagbo_work> Iĺl try this sphalerite thanks
philippD has joined #nixos
<ma9e_> gagbo_work: you can also do it with home-manager, home.files.foo = fetchgit ...
<frigate_freedom> Hello guys! I've opened this PR: https://github.com/NixOS/nixpkgs/pull/53564/files and by misclick it suggests to delete all-packages.nix. How can I disable it?
<__monty__> frigate_freedom: Since it's *your* PR amending the commit and force-pushing may be acceptable.
<etu> frigate_freedom: a "git reset --hard HEAD^" drops the latest commit and then a "git push --force" will drop that commit from your remote and also from the PR.
mr_noobs has joined #nixos
<gagbo_work> ma9e_, but then it means I need to find a way to fetch the home.nix from the internet too
dsx has quit [Quit: dsx]
<Guanin> gagbo_work, that can be done with fetchgit/fetchtar/fetchFromGitHub, too
<gagbo_work> hmmm, I really need to read more about this stuff
<mr_noobs> Hi there! I'm trying to find a way to install FreshRSS declaratively on nixos, but with the webserver and stuff it seems a bit complicated (to me at least)
<__monty__> gagbo_work: Both the nix and the nixpkgs manuals are worth a read.
<gagbo_work> I´ve read a few sections already, but not everything yet
<mr_noobs> Ans I saw that they offer a docker image also, so I was wondering, how well does docker mix with nixos? Probably would use docker-compose to have something declarative as well that I can take with me on a github repo
<srhb> cyris212: Did you grab scotty via Nix?
orivej has joined #nixos
<mr_noobs> Is there any recommended way to work with containers?
sir_guy_carleton has joined #nixos
<spacekookie> sphalerite: turns out `manpath` is forkbombing me x)
<teehemkay> hi everyone! I have a multi-user nix install on macos 10.13.6. Issuing a `nix-channel --update` command doesn't seem to update <nixpckgs>. Is that actually the case?
mkoenig_ has quit [Ping timeout: 268 seconds]
<frigate_freedom> __monty__: , etu: , it didn't help
<__monty__> frigate_freedom: What's wrong still?
<frigate_freedom> I did git reset --hard HEAD^ and git push --force but nothing was changed
_lawlesseel has joined #nixos
lawlesseel has quit [Remote host closed the connection]
<__monty__> Your PR definitely changed.
<frigate_freedom> Yesterday opened commit for ksh and it was merged. Today I opend PR for dictionary, but ksh commits were here too. I wanted to remove these commits 'coz they are already merged via GitHub website and that caused this situation
justanotheruser has quit [Ping timeout: 250 seconds]
<frigate_freedom> __monty__: oh, yes, now it does not suggest remove all-packages.nix
<etu> frigate_freedom: But the PR doesn't remove all-packages anymore
<etu> yeah, refresh the page and look again
<frigate_freedom> is having part of old commit in new PR is ok?
<srhb> frigate_freedom: Generally you can squash it all down into one commit for small changes.
<__monty__> frigate_freedom: It *is* because merging the same thing twice is fine. But in this case I'd just rebase your dictionaries commit on top of nixpkgs master.
<jboy> can anyone help me translate this into xrandrHeads format for my system configuration? xrandr --output HDMI1 --primary --above LVDS1
lsyoyom has joined #nixos
<{^_^}> [nixpkgs] @primeos opened pull request #53566 → gringo: Switch to the default SCons version → https://git.io/fhGni
<srhb> jboy: output and primary map directly to attrs in the attrset in the list, the relative geometry can be encoded via monitorConfig, see man xorg.conf and search for "Above"
<jboy> srhb: thanks for the pointer
<cyris212> srhb: Sorry i forgot to include the nix-shell line.
<cyris212> srhb: nix-shell -p zlib -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.scotty])"
<srhb> cyris212: -p zlib should not be necessary. That is indeed odd, it looks correct. I can't reproduce it.
<srhb> cyris212: Which nixpkgs version are you using?
<cyris212> srhb: nixpkgs version = channel?
<srhb> cyris212: And commit ref, preferably.
<srhb> cyris212: I suspect the reason you're not seeing a problem when building it is because your module is not named Main though..
<cyris212> srhb: I do however specify the main method through "ghc -main-is Task.Web.main Task/Web.hs -o t"
<srhb> Ah, I see.
<cyris212> Learning haskell and nix at the same time probably was not my smartest move :-)
<srhb> cyris212: You're in for a ride for sure, but it does have great value compared to other approaches.
<cyris212> srhb: "18.09.1834.9d608a6f592"
alex_giusi_tiri has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
<srhb> cyris212: Still can't reproduce. At this point I'd suspect pollution in ~/.ghc or something. It'd try nuking any x86_* dirs contained therein
<wedens> `nix-build '<nixpkgs>' -A emacs --verbose` hangs after a bunch of `evaluating file ....` lines. emacs is defined in an overlay. what may be the problem?
<cyris212> srhb: will try, thanks for your help
ckauhaus has joined #nixos
dermetfan has joined #nixos
<srhb> cyris212: I don't think there's usually any pollution from env vars in ghci, but you should also try adding --pure to your invocation.
ddellacosta has quit [Ping timeout: 250 seconds]
erictapen has quit [Quit: leaving]
<duairc> A couple of derivations I'm working on both want to install a file ./share/icons/hicolor/icon-theme.cache, so if I try to install them both, there's a conflict. Should the icon-theme.cache file even be in the Nix output at all?
nliadm has quit [Quit: I'M OUT]
alex_giusi_tiri has joined #nixos
<{^_^}> #39057 (by kisik21, 37 weeks ago, open): xfce4-*-plugin icon-theme.cache problems
<cyris212> srhb: now it works :-)
<srhb> duairc: Relevant discussion. :)
<srhb> cyris212: Which change did it?
<cyris212> nuking the x86_* directories did the trick.
<srhb> cyris212: Great, thanks for reporting back.
mkoenig has joined #nixos
<ghostyy> how do i include a file as a string in nixos?
<{^_^}> [nixpkgs] @KireevArtur closed pull request #53564 → Adding Russian dictionary for hunspell → https://git.io/fhGsh
<wedens> hm. and if I type `pkgs.emacs` in repl, it hangs printing "querying info about missing paths". but the same emacs derivation installs just fine
endformationage has joined #nixos
<srhb> ghostyy: builtins.readFile
<ghostyy> ahh great
frigate_freedom has left #nixos [#nixos]
<siers> Is it possible to find out how much android-studio closure weighs? It is taking a while to download, so I'm curious.
reinhardt has quit [Quit: Leaving]
<sphalerite> siers: if you use `nix build` you get a fancy progress meter
<siers> I'm using nix-shell
<siers> fair enough, let's try that
periklis has joined #nixos
<siers> nix build nixos.android-studio?
<siers> Wouldn't that show the closure size of the stuff I've downloaded already? :P
<makefu> ah true
<makefu> nix build will show something useful then
<siers> I'm trying to find the syntax for 1.12, but the talk slides are gone here :D https://www.youtube.com/watch?v=XVIKScU7Uf4
the-kenny has joined #nixos
<siers> nix build nixpkgs.android-studio!
<sphalerite> siers: aaah, if it's in the binary cache you can do nix path-info --store https://cache.nixos.org -S nixpkgs.android-studio
<wedens> ok. now my entire system is frozen after I tried evaluating pkgs.emacs from repl :/
<siers> sphalerite, that's nice!
<the-kenny> Meta: Is the not-registered mode (+rf) forwarding to #nixos-unregistered still necessary? It's extremely annoying as I run IRC from home which suffers a few disconnects during the day.
<siers> the office doesn't have optical fibre, it's not worthe the wait :P (my flat does though)
<sphalerite> the-kenny: any reason not to register your nick?
<gchristensen> the-kenny: let's find out
<the-kenny> sphalerite: the-kenny is, the alternative which is used when the old connection is still open isn't :)
<gchristensen> that is an easy fix! :P
<the-kenny> sphalerite: To be honest I'm just too lazy to either figure out what scripts I need to auto-reclaim my nick, but #nixos is the only channel where this is an issue :)
<sphalerite> the-kenny: you can use SASL to auth before you're actually in and regardless of the nick you're using
<the-kenny> gchristensen: Thanks!
<the-kenny> sphalerite: Oh, I didn't know that
<the-kenny> I'll have a look at that
<{^_^}> [nixpkgs] @baracoder opened pull request #53567 → dotnet-sdk: 2.1.403 -> 2.2.101 → https://git.io/fhG42
npmccallum_ has joined #nixos
npmccallum_ has quit [Client Quit]
<{^_^}> [nixpkgs] @ciil opened pull request #53568 → abella: 2.0.5 -> 2.0.6 → https://git.io/fhGBU
THFKA4 has joined #nixos
THFKA4 has quit [Changing host]
THFKA4 has joined #nixos
<wedens> https://paste.ee/p/exofT this overlay freezes the system when I try to evaluate emacs from repl or use nix-build, but it works fine when used in systemPackages. this overlay doesn't have such problem https://paste.ee/p/DAHo6
<wedens> I'm trying to pin nixpkgs specifically for emacs
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/c2950341d03 (from 16 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/37de10b8691 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<infinisil> wedens: What does "it freezes the system" mean exactly?
<wedens> infinisil: it doesnt respond to anything. I can't even ctrl+c
<infinisil> In nix-repl?
Guanin_ has joined #nixos
<wedens> yes. or if I do `nix-build '<nixpkgs>' -A emacs`
<infinisil> How long did you wait? It might just take a while
<infinisil> Try adding a couple -v's
jabranham has joined #nixos
<sphalerite> wedens: try changing the {} on the nixpkgs import to { overlays = []; }
<infinisil> ("freezing the system" means that your whole machine is frozen to me at least)
Guanin__ has joined #nixos
<wedens> infinisil: I waited for ~10min. yes. whole machine becomes frozen
Guanin has quit [Read error: Connection reset by peer]
<infinisil> :o
npmccallum has joined #nixos
Guanin_ has quit [Ping timeout: 258 seconds]
<infinisil> That sure is rather odd..
<gchristensen> wedens: and you rebooted?
<sphalerite> wedens: do you have swap?
olto has joined #nixos
<wedens> gchristensen: yep. sphalerite: yes, I do
<sphalerite> wedens: does it freeze the machine if you disable swap temporarily using swapoff first?
<wedens> I'll try that after trying to set overlays to [] in the pinned nixpkgs
hyper_ch2 has quit [Quit: Page closed]
<wedens> yeah, it doesn't freeze with overlays = []. was there some infinite recursion?
Makaveli7 has joined #nixos
<sphalerite> wedens: yes — it was importing the nixpkgs, which was loading the overlay, which was importing the nixpkgs, which was…
<infinisil> But why wouldn't it detect it?
<wedens> hm. so, it inherits overlays from the scope?
<wedens> but it doesn't inherit config?
<sphalerite> wedens: no, it gets overlays from ~/.config/nixpkgs/overlays
<sphalerite> unless explicitly specified otherwise
<sphalerite> likewise for config
<{^_^}> [nixpkgs] @WilliButz opened pull request #53573 → prometheus-dnsmasq-exporter: unstable-2018-05-05 -> 0.1.0 → https://git.io/fhGRz
griff_ has quit [Quit: griff_]
<wedens> but why it worked when I did nixos-rebuild ?
<wedens> using the same overlays
<sphalerite> because there you're specifying them in the nixos config, not in /root/.config/nixpkgs/overlays
<wedens> what difference does it make?
johanot has quit [Quit: leaving]
Ariakenom has quit [Ping timeout: 250 seconds]
<wedens> I vaguely understand it, but I'd like to be sure ;)
Dedalo has quit [Quit: WeeChat 2.3]
<sphalerite> when you import nixpkgs without any arguments it looks in ~/.config/nixpkgs for overlays and config
jmeredith has joined #nixos
<sphalerite> when building a nixos config, nixpkgs config and overlays are taken from the appropriate nixpkgs options
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @bjornfor pushed to master « jnetmap: init at 0.5.4 »: https://git.io/fhG0s
Guanin__ is now known as Guanin
<wedens> sphalerite: but why taking overlays from nixpkgs.overlays doesn't result in infinite recursion?
<sphalerite> wedens: because that only applies to the nixpkgs being imported by nixos
<sphalerite> wedens: import <nixpkgs> reimports it
babic has quit [Ping timeout: 258 seconds]
periklis has quit [Remote host closed the connection]
<develCuy> Hi guys, I have a question in regards of polkitd, if this is not the proper channel, please tell where to ask
equivrel has joined #nixos
<{^_^}> [nixpkgs] @kamilchm opened pull request #53574 → qtile: 0.12.0 -> 0.13.0 → https://git.io/fhG0X
<wedens> sphalerite: makes sense. thanks! I wonder if I had the simillar kind of problem with overlays-compat which I decided to remove and just symlink overlays to ~/.config/nixpkgs
knupfer has joined #nixos
equivrel has left #nixos ["ERC (IRC client for Emacs 26.1)"]
Dedalo has quit [Quit: WeeChat 2.3]
equivrel has joined #nixos
Dedalo has joined #nixos
schopp0r has quit [Remote host closed the connection]
griff_ has joined #nixos
<gchristensen> clever: do you have that evil persisting scoped import gist thing?
<clever> gchristensen: was it the one you wrote?
<gchristensen> I don't think I wrote it
ddellacosta has joined #nixos
<clever> i know it used scopedImport
<clever> and i have an example in one of my gists
<clever> but my example isnt recursive
<clever> nixops also has a recursive one
<gchristensen> oh?
<clever> this mutates the NIX_PATH for a single file being imported
<clever> https://github.com/NixOS/nixops/pull/665 recursively does it
<{^_^}> nixops#665 (by grahamc, 1 year ago, open): Support multiple versions of nixpkgs in one network
<wedens> is there something wrong with recursion in overlays (via self) when using overlays-compat thing from https://nixos.wiki/wiki/Overlays page. I've stopped using it and decided to just symlink overlays to ~/.config/nixpkgs/overlays.nix, but I'm still curious to know what was wrong
<clever> that name looks familiar...
<{^_^}> [nixpkgs] @smaret opened pull request #53577 → gildas: 20181201_a -> 20190101_a → https://git.io/fhGzC
<wedens> https://paste.ee/p/cXt0z that's what resulted in infinite recursion with overlays-compat. I've tried moving `pinned` inside `let`, but it didn't help
<samueldr> wedens: generally unless you know you want to refer to the overlay's own dependency, I think it's generally expected you would use super
<samueldr> I don't know if the overlays-compat trick affects that in any way, I wouldn't exepect it
<samueldr> the only thing it does is set NIX_PATH to use the same overlays `nixpkgs.overlays` is configured to use
<equivrel> Hi, this is probably a very basic question: how do I override the version of a package listed in a package's buildInputs? I'm trying to override the derivation for the package mu (https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/mu/default.nix) to use the latest master, but it turns out that it now requires gmime3 instead of gmime2. I can see that nixpkgs provides both gmime2 and gmime3
<wedens> samueldr: they'are defined in the same overlay, so yes, it's a reference to overlay's own dependency. what's interesting is that the problem disappeared when I removed overlays-compat and `nixpkgs.overlays = import ./overlays.nix`, `ln -s /etc/nixos/overlays.nix ~/.config/nixpkgs/overlays.nix`. I also did the same import for home-manager
<gchristensen> clever: O.o :D
glasserc has quit [Quit: ZNC 1.6.6 - http://znc.in]
Tucky has quit [Quit: WeeChat 2.2]
glasserc has joined #nixos
<samueldr> wedens: can you make a minimal reproduction of it? I'd like to test (and also review if the thing I made is bad or not)
<samueldr> oh
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<samueldr> though I never tested with an imported nixpkgs
Guanin has quit [Ping timeout: 252 seconds]
<samueldr> wedens: maybe `let pinned = ...; in` for your overlay and not add it to the overlay itself?
<wedens> yeah, tried that. same issue
dsx has joined #nixos
erasmas has joined #nixos
<{^_^}> [nixpkgs] @pbogdan opened pull request #53578 → rxvt_unicode: fix build → https://git.io/fhGgY
zukaboo has joined #nixos
ddellacosta has quit [Remote host closed the connection]
equivrel has quit [Ping timeout: 240 seconds]
equivrel has joined #nixos
<jabranham> equivrel: https://gitlab.com/snippets/1795659 is how I do it, though I also change the src
<zukaboo> How do I use jupyter with numpy, scipy, matplotlib, etc?
<wedens> samueldr: it's exact same problem I had above with importing pinned nixpkgs
<samueldr> yeah, I realised after asking that you already shared a sample
<equivrel> jabranham: fantastic, thanks! That worked perfectly, for reference I used this: https://gist.github.com/livnev/772e6180710a73114ef7b3c32836e0da
<wedens> https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs perhaps there should be overlays = [];
<wedens> or a note that it should be [] when pinning is done in overlay
equivrel has quit [Remote host closed the connection]
equivrel has joined #nixos
_lawlesseel has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanov_ has joined #nixos
tzemanovic has quit [Read error: No route to host]
sigmundv_ has quit [Ping timeout: 244 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<wedens> ffs. I've returned everything back to "unminified" configuration with overlays-compat and now I get "infinite recursion encountered, at undefined position" again. with `overlays = []` in all pinned nixpkgs
<wedens> https://paste.ee/p/5xUf4 I have no idea how to interpret this stacktrace
AK has joined #nixos
<AK> is there some fast mirror to download minimal install media?
<wedens> it persists if I remove any mentions of packages defined in the overlay
humanoyd has joined #nixos
humanoyd is now known as Guest11330
<duairc> I'm making a derivation for a package that uses meson, and it can't find one of its dependencies. But when I build it manually in a nix-shell with all the buildInputs, it does find it. How can I debug what's happening here?
griff_ has quit [Quit: griff_]
<wedens> what's the difference between doing `nixpkgs.overlays = [ import ./overlays.nix]` where overlays.nix is `self: super: { /* ... */ }` and `nixpkgs.overlays = import ./overlays.nix` where overlays.nix is `[(self: super: { /* ... */ })]`? it seems to make a huge difference
<{^_^}> [nixpkgs] @kisonecat opened pull request #53580 → libsvg: init at 0.1.4 → https://git.io/fhGar
<dmj`> gchristensen: ping
<dmj`> How do I unescape literal quotes in nix to pass args to a bash script (specifically a configure flag with multiple linking options)
<exarkun1> wedens: `nixpkgs.overlays = [ import ./overlays.nix ]`doesn't parse how you think it does, I expect
<exarkun1> nix-repl> builtins.length [ import ./nixpkgs-overlays.nix ] # == 2
<exarkun1> wedens: make sense?
Guanin has joined #nixos
<wedens> exarkun1: no. why is it 2?
Church_ has joined #nixos
<exarkun1> wedens: the first element is the function `import`, the second element is the path `./nixpkgs-overlays.nix`
<clever> ,escape" dmj`
<{^_^}> dmj`: " double quote: \" backslash: \\ bash curly bois: \${} newline: \n tab: \t "
<LnL> dmj`: can you give an example of what you need?
<exarkun1> iow, list building is higher precedence than function calling. if you want the function called there, you need to help it out w/ some ()s
<exarkun1> (and you want the function called there.)
<wedens> exarkun1: now it makes sense. thanks. I'm not used to space separated lists :)
<dmj`> LnL: "--with-mumps-lib="-ldmumps -lmpiseq -lmumps_common -lpord""
<dmj`> LnL: But the inner quotes should not be escaped
<LnL> yeah I figured, you can't pass flags with spaces using configureFlags
<Izorkin> how to enable boot menu in virtual pc with nixops?
<{^_^}> [nixpkgs] @kisonecat closed pull request #53580 → libsvg: init at 0.1.4 → https://git.io/fhGar
<dmj`> LnL: yes, any ideas on how to?
<LnL> dmj`: preConfigure = '' configureFlagsArray+=(--with-mumps-lib="-ldmumps -lmpiseq -lmumps_common -lpord") '';
<rain1> am I allowed to paste the output of nix-env -q into environment.systemPackages in configuration.nix?
<wedens> exarkun1: but what does it mean to import with no argument?
<rain1> they include version numbers which systemPackages doesn't usually have
<LnL> dmj`: the flag arrays in bash do, so you'll have to use those
<exarkun1> wedens: the function is just another value itself. if you don't call it, you're just left with the function value itself.
Adluc has quit [Excess Flood]
Adluc has joined #nixos
<exarkun1> wedens: it's entirely nonsense in _this_ case, as far as I know.
<dmj`> LnL: its now trying to escape the spaces
<dmj`> =-ldmumps\ -lmpiseq\ -lmumps_common\ -lpord
<{^_^}> [nixpkgs] @globin merged pull request #53573 → prometheus-dnsmasq-exporter: unstable-2018-05-05 -> 0.1.0 → https://git.io/fhGRz
<{^_^}> [nixpkgs] @globin pushed commit from @WilliButz to master « prometheus-dnsmasq-exporter: unstable-2018-05-05 -> 0.1.0 »: https://git.io/fhGwv
<LnL> isn't that what you wanted, 1 argument?
<{^_^}> [nixpkgs] @vcunat pushed commit from @dtzWill to release-18.09 « Merge #52584: llvm7: 7.0.0 -> 7.0.1 »: https://git.io/fhGw3
Guanin has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @kisonecat opened pull request #53581 → libsvg: init at 0.1.4 → https://git.io/fhGwW
<clever> you can also mix all 3 types of quotes
<clever> >> ''bashvar='--foo="bar baz"'''
<clever> > ''bashvar='--foo="bar baz"'''
<{^_^}> error: syntax error, unexpected $end, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at (string):214:30
<clever> > ''bashvar='--foo="bar baz"' ''
<{^_^}> "bashvar='--foo=\"bar baz\"' "
<clever> though nix treats ''' as '' ', rather then ' ''
<sphalerite> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<sphalerite> ,escape "
<{^_^}> sphalerite: Did you mean escape"?
<{^_^}> ": " double quote: \" backslash: \\ bash curly bois: \${} newline: \n tab: \t "
<clever> using multiple types can save you from having to escape, when the mix works right
<gchristensen> dmj`: pong
<wedens> exarkun1: I should start checking my config with hnix, I guess :) I'm too stupid for not statically typed languages
<gchristensen> hnix is still just nix
<dmj`> gchristensen: LnL saved me, had some escaping issues
<__monty__> Is the escape'' showing what character sequences can follow ''? I don't get the ''\x ''.
<gchristensen> cool
<wedens> gchristensen: will hnix detect type error in `nixpkgs.overlays = [ import (x: y: {}) ];` ?
<gchristensen> dunno
<__monty__> It's not hnix's goal afaik.
<wedens> but what is the goal?
<__monty__> Only way to get "typed nix" I know of so far is dhall-to-nix.
<wedens> I don't understand what problem it tries to solve tbh
acarrico has quit [Ping timeout: 250 seconds]
<__monty__> The goal is just a reimplementation of nix. That could then become the basis for a typed nix.
<__monty__> Nix was obviously lacking too much haskell, that's what they fixed afaict : )
<wedens> __monty__: yes, but dhall is another language. I thought hnix is supposed to typecheck nix
<Dedalo> clever: do you use i3 with Polybar?
<gchristensen> hnix sometimes provides better errors when things go wrong
<wedens> I really wish hnix was a way to write nix in haskell :)
<LnL> no it's just a reimplementation, which has some advantages and disadvantages
<__monty__> I think johnw has worked on hnix? Maybe he has better info on the goals/timeline?
<LnL> the error messages are much nicer in a bunch of cases
<clever> Dedalo: plain xfce with focus follows mouse
<zukaboo> Typed nix would be nice to have.
sanscoeur has joined #nixos
AK has left #nixos [#nixos]
<exarkun1> wedens: I agree with your last comment, fwiw :)
sveitser has quit [Ping timeout: 264 seconds]
sveitser has joined #nixos
<rain1> what's the nix way to add a directory to PATH? should I just create $HOME/.bash_profile ?
pie__ has quit [Remote host closed the connection]
<mdash> rain1: mmm, it's unusual to need to edit PATH at all, what's your situation
pie__ has joined #nixos
s2mitrov has joined #nixos
<{^_^}> [nixpkgs] @MarcWeber opened pull request #53584 → update wavesurfer → https://git.io/fhGoY
tzemanov_ has quit []
<zukaboo> mdash: It's convinient to have a collection of scripts.
<zukaboo> And not so convinient to bother with packing them.
<mdash> zukaboo: interesting, haven't encountered this use case.
tzemanovic has joined #nixos
s2mitrov has quit [Client Quit]
Izorkin has quit [Ping timeout: 250 seconds]
Izorkin has joined #nixos
jabranham has joined #nixos
<{^_^}> [nixpkgs] @Scriptkiddi opened pull request #53585 → litecli: init at 1.0.0 → https://git.io/fhGo1
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53586 → pasystray: 0.7.0 -> 0.7.1 → https://git.io/fhGKZ
s2mitrov has joined #nixos
s2mitrov has quit [Client Quit]
john3[m] has joined #nixos
fendor has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @spacekookie opened pull request #53588 → void: init at 1.1.5 → https://git.io/fhG6V
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Taneb> Is it possible to cross-compile to Windows with Nix?
<clever> Taneb: yes
random_yanek has quit [Ping timeout: 240 seconds]
<clever> > pkgsCross.mingwW64.hello
<{^_^}> infinite recursion encountered, at /var/lib/nixbot/nixpkgs/master/repo/pkgs/stdenv/generic/default.nix:145:14
<clever> Taneb: this builds hello.exe, when it isnt failing with infinite recursion
pie__ has quit [Remote host closed the connection]
knupfer has quit [Remote host closed the connection]
pie_ has joined #nixos
<Taneb> clever: thanks
<exarkun1> subtext: depending on what you want to build.
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53589 → pdf2djvu: 0.9.11 -> 0.9.12 → https://git.io/fhGiM
random_yanek has joined #nixos
sanscoeu_ has joined #nixos
tzemanovic has quit [Remote host closed the connection]
pie_ has quit [Remote host closed the connection]
tzemanovic has joined #nixos
sanscoeur has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #51570 → cassandra: add option to configure logging → https://git.io/fpXjK
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhGPI
<{^_^}> [nixpkgs] @matthewbauer merged pull request #53072 → fuse-overlayfs: init at 0.2 → https://git.io/fhL87
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhGPq
<infinisil> clever: i wonder why it fails though..
<clever> yeah, thats also a good question
<Izorkin> infinisil: please check pr datadog agent. Updated to 6.8.3
<infinisil> Can you reproduce locally? The bot is on master (and I can't use my computer rn)
drakonis_ has joined #nixos
<clever> infinisil: yep, reproduces
<clever> Bisecting: 1907 revisions left to test after this (roughly 11 steps)
<{^_^}> [nixpkgs] @rvolosatovs opened pull request #53590 → Update keybase and related packages → https://git.io/fhGPi
<clever> a56fe056ece1d7c0b384a08467408ded507573c7 is the first bad commit
<clever> make-derivation: don’t add host suffix if there is no c compiler
<infinisil> Izorkin: I'll get to it when I have time (and feel like it) ;)
<{^_^}> [nixpkgs] @Taneb opened pull request #53591 → metamath: 0.168 -> 0.171 → https://git.io/fhGP1
<Izorkin> ok
drakonis has quit [Ping timeout: 244 seconds]
<infinisil> clever: *has no idea*
<infinisil> (me that is)
<clever> infinisil: the changes do involve cross-compile
<infinisil> Yeah, but like I don't immediately see the reason for the error
<clever> same
<mr_noobs> How would you declare the image for a container?
sigmundv_ has joined #nixos
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fhGXL
Baughn has joined #nixos
<Baughn> Is there a package function that just pre/suffixes binary names?
<Baughn> I.e. to disambiguate clashing names from different packages.
knupfer has joined #nixos
Drakonis__ has joined #nixos
<{^_^}> [nixpkgs] @joachifm merged pull request #53527 → maintainer-list: countingsort -> buffet → https://git.io/fhsoD
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fhGXa
sanscoeu_ has quit [Remote host closed the connection]
<mr_noobs> Also, can I get ssl for weechst without having an http server?
sanscoeur has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
drakonis has joined #nixos
drakonis_ has quit [Ping timeout: 268 seconds]
knupfer has quit [Ping timeout: 260 seconds]
Drakonis__ has quit [Ping timeout: 240 seconds]
Church_ has quit [Ping timeout: 245 seconds]
agander has joined #nixos
<Myrl-saki> Is case $options proper here?
<Myrl-saki> I'd expect it to be similar to line 330.
<Myrl-saki> for option in $options; do...
<freusque> how to run a function in a nix file for debugging purposes? I currently import it from the nix repl, but that caches results somehow
ris has joined #nixos
jomik has joined #nixos
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #53593 → python.pkgs.entrypoints: 0.2.3 -> 0.3 → https://git.io/fhGMI
gagbo has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
fendor has joined #nixos
tzemanovic has quit [Remote host closed the connection]
freeman42x[nix] has joined #nixos
freeman42x[nix] has quit [Remote host closed the connection]
Guest11330 has quit [Quit: WeeChat 2.3]
<jomik> So it seems that pkgs.mkShell usi
<jomik> So it seems that pkgs.mkShell used in direnv causes my emacsclient to be unable to find the socket, any idea why? XD
s2mitrov has joined #nixos
sinner has joined #nixos
sinner is now known as Guest49383
olto has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53594 → neovim-unwrapped: 0.3.2 -> 0.3.3 → https://git.io/fhGMl
ddellacosta has quit [Remote host closed the connection]
Guest49383 has quit [Ping timeout: 245 seconds]
s2mitrov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jomik> How would I go about creating a minimal nix-shell for use with direnv? Currently it seems to polute my environment with a lot of things I don't need.. :(
<LnL> the simplest thing you can do is echo 'use nix -p curl' > .envrc
freeman42x has joined #nixos
fusion809 has quit [Remote host closed the connection]
<infinisil> LnL: I think jomik means a minimal amount of env vars, which isn't really possible
<jomik> Yeah, for some reason the nix shell messes up my emacs daemon :(
<LnL> well they all are, depending on what you're doing
<freusque> nix-instantiate --eval --expr '1' behaves differently from nix eval '1'
<infinisil> freusque: nix eval '(1)'
<freusque> ooh
<freusque> nix eval --help
<infinisil> nix eval takes arguments as expressions only when you put () around them.. which is really weird imo
<freusque> has a little issue
<freusque> yeah
<freusque> thank you!
<gchristensen> you could put derivation { name = "hi"; builder = ./test.nix; system = builtins.currentSystem; } in a shell.nix
<{^_^}> nix#2078 (by Profpatsch, 38 weeks ago, open): nix eval is unintuitively consistent
jomik has quit [Quit: WeeChat 2.2]
ddellacosta has joined #nixos
<Profpatsch> freusque: Just use nix-instantiate --eval for now.
<Profpatsch> The new-style tools are not stable yet
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<freusque> thanks Prof
<Myrl-saki> I just added luks+loop support for stage 1.
<Myrl-saki> At least when I get it to boot.
<{^_^}> [nixpkgs] @gnidorah reopened pull request #53342 → dro2midi: init at 1.6 → https://git.io/fhY88
<infinisil> freusque: I added an `alias ne="nix-instantiate --eval"` that's been really neat
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53595 → gnome3.meld: 3.18.3 -> 3.20.0 → https://git.io/fhGMd
<Myrl-saki> Sweet jesus, why is initrd in nixos-system?
<gchristensen> why not, Myrl-saki?
perique has joined #nixos
<Myrl-saki> Err, clarification. I literally don't know why.
<Myrl-saki> (And at the same time, I don't know why not.)
<Myrl-saki> I mean, I don't know what would happen if it would be removed.
<gchristensen> sweet jesus indicates you have a real opinion here
<infinisil> Do you know what initrd is?
<Myrl-saki> Just that I'm working on stage 1 stuff right now, and it's a bit frustrating that I have to recompile squashfs all over again for the cdrom.
<Myrl-saki> infinisil: initrd is the stage 1 root file system, right?
<Myrl-saki> gchristensen: Yeah, my mistake. It was more of frustration than having an educated opinion.
<infinisil> I'm not an expert myself, but I think that's right
<infinisil> And I don't think there's a way around having this
zukaboo has quit [Ping timeout: 246 seconds]
smove has quit [Remote host closed the connection]
_lawlesseel has joined #nixos
<infinisil> I only put part of it in there though, because they don't give me autocompletion
m15k has joined #nixos
<freusque> yeah I wish there were cross-shell completion standards
lawlesseel has joined #nixos
<freusque> + " \"$@\"" l.o.l.
lawlesseel has quit [Remote host closed the connection]
_lawlesseel has quit [Remote host closed the connection]
<freusque> that's a big configuration repo.
<m15k> Someone has an idea howto configure nixos container to have a virtual ethernet interface bridged to the host ones. Currently the hosts interface is populated into container.
lawlesseel has joined #nixos
phaebz has joined #nixos
<infinisil> freusque: Hehe yeah, it's a tiny bit messy at places
<infinisil> freusque: Oh actually, I could install these bin aliases as both binaries and shell aliases, then I'd have completion in the shell and can still call them outside the shell
<freusque> nice idea actually
griff_ has joined #nixos
freeman42x has quit [Read error: Connection reset by peer]
tzemanovic has joined #nixos
jomik has joined #nixos
detran has joined #nixos
zukaboo has joined #nixos
periklis has joined #nixos
<Myrl-saki> Yay. Finally got it working!
<jomik> Hey guys, I recall having to run some command to refresh desktop entries in KDE/Plasma 5. I forgot which it is and can't seem to google it.. :(
<jomik> Anyone remember? :D
civodul has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53596 → moe: 1.9 -> 1.10 → https://git.io/fhGDC
<jomik> Oh... `kbuildsycoca5`
<infinisil> jomik: Ah hold on
<jomik> Hurray!
<infinisil> Oh yeah :)
<jomik> Logs beat you to it infinisil :D
<jomik> I just recalled that this irc is being logged :D
<infinisil> samueldr++
<{^_^}> samueldr's karma got increased to 49
<jomik> samueldr++
<{^_^}> samueldr's karma got increased to 50
<jomik> Hurray!
periklis has quit [Ping timeout: 252 seconds]
<gchristensen> maybe that program should be run on activation?
orivej has quit [Ping timeout: 250 seconds]
orivej has joined #nixos
s2mitrov has joined #nixos
wedens has quit [Quit: Connection closed for inactivity]
freeman42x has joined #nixos
<samueldr> gchristensen: IIRC it needs to be run as the user that's running KDE, with the proper bits and bobs for dbus and such
s2mitrov has quit [Client Quit]
<johnw> __monty__: what was the question?
<samueldr> and apparently should already? #47842 #47898
<{^_^}> https://github.com/NixOS/nixpkgs/pull/47842 (by peterhoeg, 13 weeks ago, merged): nixos system-activation: support activation scripts run in a user context
<{^_^}> https://github.com/NixOS/nixpkgs/pull/47898 (by peterhoeg, 13 weeks ago, merged): nixos system-activation: support activation scripts run in a user context
<__monty__> johnw: Fairly general. What's hnix's goal? And, is hnix's goal implementing a typed nix?
<gchristensen> samueldr: that is totally doable
<samueldr> sure, since it apparently is already done
<johnw> hnix wants to make it easy for Haskell authors to contribute tooling to the Nix ecosystem. It also makes it easier to debug evaluation failures in Nix expression (I used it for this reason just a couple days ago). Typed nix is not on the agenda, but nothing is off of it either. :)
<samueldr> though looks like something might not be right :/
<Myrl-saki> Why does fileSystems."/nix/store" in iso-image.nix not have neededForBoot, and why does it work?
<Myrl-saki> Er.
<Myrl-saki> Seems like it's hard-coded?
<Myrl-saki> ramdisk. By default, this applies to the root file system
<Myrl-saki> and to the file system containing
<Myrl-saki> <filename>/nix/store</filename>.
zarel has joined #nixos
<Myrl-saki> Yeah, utils.nix:5-7
<{^_^}> [nixpkgs] @globin merged pull request #52750 → gitlab: 11.5.5 -> 11.6.3 → https://git.io/fhUTJ
<{^_^}> [nixpkgs] @globin pushed 8 commits to master: https://git.io/fhGDD
<ldlework> It should be yes.
Church_ has joined #nixos
<ldlework> Jeeze.
<ldlework> I was scrolled up for days.
<Myrl-saki> ldlework: lmao
_lawlesseel has joined #nixos
cyounkins has quit [Remote host closed the connection]
fendor has quit [Ping timeout: 258 seconds]
cyounkins has joined #nixos
<{^_^}> [nixpkgs] @globin pushed 6 commits to release-18.09: https://git.io/fhGDd
lawlesseel has quit [Ping timeout: 256 seconds]
cyounkins has quit [Ping timeout: 246 seconds]
zukaboo has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<{^_^}> [nixpkgs] @globin opened pull request #53598 → atlassian updates → https://git.io/fhGyf
sigmundv_ has quit [Ping timeout: 250 seconds]
alex`` has quit [Ping timeout: 250 seconds]
colonel_john_by has joined #nixos
sir_guy_carleton has quit [Ping timeout: 252 seconds]
zarel has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @markuskowa merged pull request #53051 → soapysdr: fix modules-directory for extraPackages → https://git.io/fhIjO
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhGy0
knupfer has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @jbaum98 opened pull request #53599 → pythonPackages.poetry: init at 0.12.10 → https://git.io/fhGyy
<{^_^}> [nixpkgs] @adrianparvino opened pull request #53600 → Add support for mounting files encrypted with luks → https://git.io/fhGyd
<Myrl-saki> clever: ^
orivej has quit [Ping timeout: 258 seconds]
<__monty__> johnw: What sort of tooling did they have in mind?
sanscoeu_ has joined #nixos
vk3wtf has quit [Ping timeout: 252 seconds]
sanscoeur has quit [Ping timeout: 245 seconds]
Church_ has quit [Ping timeout: 250 seconds]
worldofpeace has joined #nixos
freeman42x[nix] has joined #nixos
kisonecat has quit [Remote host closed the connection]
strobelight has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<pbb> Hi, I really don't understand the output of this failed test, the file I added is not mentioned.
ddellacosta has quit [Remote host closed the connection]
tzemanovic has quit [Ping timeout: 252 seconds]
<johnw> __monty__: debugging tools, code creation, generation, etc.
erictapen has joined #nixos
<gchristensen> pbb: commented
<pbb> thanks
EoF has quit [Quit: eof]
eadwu has joined #nixos
agander has quit [Quit: Leaving]
kvda has joined #nixos
s2mitrov has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #53539 → Fixes for recent darwin changes → https://git.io/fhsDP
<{^_^}> [nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/fhGSP
<yl[m]> is there a package I can use to access pkgs/build-support/setup-hooks/patch-shebangs.sh ?
<yl[m]> I need to use patchShebangs on kubernetes repo to be able to compile it
<{^_^}> [nixpkgs] @ivan opened pull request #53602 → wine{Unstable,Staging}: 4.0-rc2 -> 4.0-rc5 → https://git.io/fhGSD
<{^_^}> [nixpkgs] @primeos opened pull request #53603 → iproute: 4.19.0 -> 4.20.0 → https://git.io/fhGS9
chessai has joined #nixos
<freusque> is there an environment variable for altering the caching time of builtins.fetchGit when no sha is used?
<Myrl-saki> yl[m]: It's mentioned in pkgs/stdenv/generic/default.nix.
<pbb> freusque: I always do `sudo nixos-rebuild switch --option tarball-ttl 0`
<yl[m]> `nix run -f '<nixpkgs>' stdenv -c patchShebangs` does not work
s2mitrov has quit [Client Quit]
<freusque> pbb brilliant, thank you so much
<pbb> you're welcome
<samueldr> yl[m]: looks like it's because patchShebangs isn't an executable, but a shell function?
<samueldr> yl[m]: nix-shell -p stdenv --run 'patchShebangs'
<yl[m]> oh interesting nix-shell works but not nix run ?
rprije has quit [Remote host closed the connection]
<Myrl-saki> yl[m]: `-c` is exec.
<Myrl-saki> yl[m]: So it works for executables, but not for shell functions(?).
<samueldr> I don't know how nix run works (might check later) but yeah, Myrl-saki confirms what I expected
erictapen has quit [Ping timeout: 268 seconds]
<yl[m]> interesting
<samueldr> while nix-shell throws you into a bash shell made from the build environment
EoF has joined #nixos
sanscoeu_ has quit [Remote host closed the connection]
sanscoeur has joined #nixos
erictapen has joined #nixos
semilattice has joined #nixos
semilattice has quit [Client Quit]
griff_ has quit [Quit: griff_]
semilattice has joined #nixos
<semilattice> It seems like the openssh client doesn't support weaker protocols like blowfish or arcfour
<semilattice> Is there a way to enable these?
<semilattice> for slower connections
<simpson> semilattice: I'm not very familiar with this package, but it looks like we don't have special configuration to remove anything, I think: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/openssh/default.nix
<semilattice> Yeah, I guess I'll take a look around. I know I found arch had separate packages to enable them
<semilattice> though maybe even that's old
<Myrl-saki> simpson: It may not be enabled by default.
<Myrl-saki> semilattice: Are you sure the server accepts the algorithms from the start?
jomik has quit [Quit: WeeChat 2.2]
<semilattice> maybe not at the moment. I at least enabled them
<Myrl-saki> semilattice: simpson: `ssh -Q cipher` does not show blowfish, FWIW.
<semilattice> but the client rejects them before I even conect
<semilattice> maybe I'm a bit misguided
<semilattice> rnhmjoj: that helps. ssh -Q cipher doesn't include any of the other ciphers
<Myrl-saki> semilattice: Seems like this is the answer. https://unix.stackexchange.com/a/459080
<semilattice> so I don't think enabling will matter
vk3wtf has joined #nixos
<semilattice> okay thanks for the massive amount of help
<simpson> semilattice: Actually, one more thing. Maybe try avoiding 3DES, as that particular cipher can be *very* slow but is usually available for compatibility.
<freusque> pbb fyy overriding XDG_CACHE_HOME works, too.
<simpson> My SSH sessions seem to usually use ChaCha20, which is supposedly nice in terms of speed. I haven't benchmarked though.
<semilattice> Yeah, I'm just looking at arcfour and blowfish, but chacha is apparently fast and safe just trying to get a speed comparison
<Myrl-saki> Also. I git grepped, and it doesn't seem to be in the git tree at all.
<Myrl-saki> Er, crap. I'm stupid. I just found it.
<Myrl-saki> semilattice: Official support was removed at most 2017.
<{^_^}> [nix] @edolstra merged pull request #2612 → [Needs testing and review] Remove dead code → https://git.io/fh3yg
<{^_^}> [nix] @edolstra pushed 5 commits to master: https://git.io/fhG90
<semilattice> Thanks Myrl-saki
<semilattice> and based on various sources, it seems either chacha or aes are pretty close to blowfish in speed, depending on whether you have hardware acceleration for aes
<{^_^}> [nix] @edolstra merged pull request #2607 → Remove some bashisms from configure.ac → https://git.io/fhLYB
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fhG9u
<Myrl-saki> semilattice: Also. You have things the other way around.
<{^_^}> [nix] @edolstra merged pull request #2601 → Update nlohmann-json 3.0.1 -> 3.5.0 → https://git.io/fhJge
<{^_^}> [nix] @edolstra pushed 3 commits to master: https://git.io/fhG9g
<Myrl-saki> semilattice: You'd probably only want fast encryption for fast connections.
<Myrl-saki> semilattice: Throughput-wise, fast encryption and slow encryption would be the same on a slow connection.
<semilattice> That makes sense, yeah I was just looking at optimizing the connection speed
<{^_^}> [nixpkgs] @matthewbauer opened pull request #53605 → mingw: use current package set for headers → https://git.io/fhG9V
freeman42x[nix] has quit [Ping timeout: 252 seconds]
trevthedev has joined #nixos
<trevthedev> hi all
<gchristensen> hi dev trev
<trevthedev> im trying to get unity3d on nixos (stable), but after taking 751123 years to unpack and all that, i get an error about rpath refrencing /build or something
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53558 → polar-bookshelf: 1.5.1 -> 1.7.0 → https://git.io/fhGfa
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « polar-bookshelf: 1.5.1 -> 1.7.0 »: https://git.io/fhG9r
<Myrl-saki> lol
<trevthedev> contains a forbidden refrence to /build
<trevthedev> is there any workaround or fix i can do?
s2mitrov has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3582fa3f517 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53556 → pgcli: 2.0.1 -> 2.0.2 → https://git.io/fhGen
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « pgcli: 2.0.1 -> 2.0.2 »: https://git.io/fhG9o
<pbb> did I get this right, every option needs an example and a description for the build to succceed?
s2mitrov has quit [Client Quit]
<trevthedev> hmm, think i found a workaround
<trevthedev> nope
jackdk has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #52594 → make-disk-image: use filterSource instead of cleanSource → https://git.io/fhval
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhG9X
Ariakenom has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53606 → libidn2: 2.0.5 -> 2.1.0 → https://git.io/fhG91
m15k has quit [Ping timeout: 256 seconds]
<johnw> hi, I want to run Mac build jobs from a NixOS Hydra server. It seems that release-lib.nix has some facility for making this happen. Are there any good instructions anywhere on how to do this?
strobelight has quit [Ping timeout: 268 seconds]
<trevthedev> this might work, set sandbox off for now(tm)
<trevthedev> will have to install unity3d 2017.x via unstable later
s2mitrov has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53607 → lbdb: 0.47 -> 0.48 → https://git.io/fhG9y
babic has joined #nixos
s2mitrov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simukis has quit [Quit: simukis]
Dedalo has quit [Ping timeout: 258 seconds]
trevthedev has quit [Quit: WeeChat 2.2]
erictapen has quit [Ping timeout: 272 seconds]
<drakonis> shining praise all around
Dedalo has joined #nixos
<ldlework> I wish they would write about doing Dotnet development on NixOS :)
<ldlework> Thanks for the link
cyounkins has joined #nixos
fendor has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkin_ has joined #nixos
cyounkins has quit [Read error: No route to host]
cyounkin_ has quit [Remote host closed the connection]
s2mitrov has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53533 → python37Packages.xdis: 3.8.8 -> 3.8.9 → https://git.io/fhsXW
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhG9A
cyounkins has joined #nixos
sary has joined #nixos
perique has quit [Ping timeout: 268 seconds]
cyounkins has quit [Read error: No route to host]
cyounkins has joined #nixos
s2mitrov has quit [Client Quit]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
cyounkins has quit [Remote host closed the connection]
trevthedev has joined #nixos
<trevthedev> when i run nix-env -iA unstable.unity3d, nothing happens, anyone know why?
cyounkins has joined #nixos
<Myrl-saki> trevthedev: "nothing happens"?
Dedalo has quit [Ping timeout: 268 seconds]
<trevthedev> best way i can describe it xd
<trevthedev> have updated the channel and everything
<Myrl-saki> lol
<Myrl-saki> Uh
* Myrl-saki doesn't use nix-env, but I'll try my best to help
<trevthedev> can download other packages though
<trevthedev> id use cfg.nix but i dont wanna go through setting just this to use the channel and all of that
kingemp_ has joined #nixos
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<Myrl-saki> Also, how did you get an `unstable` attr?
<trevthedev> is the channel
<Myrl-saki> oh.
nodyn has joined #nixos
* Myrl-saki doesn't use Nix channels
<Myrl-saki> Rather, I don't use nix-channel.
<trevthedev> hmm
<Myrl-saki> That aside.
<kingemp_> Hi! I'm looking at https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/opencv/3.x.nix, and was wondering how this line works `, enableJPEG ? true, libjpeg` any tips? Couldn't find in documentation
cyounkins has quit [Ping timeout: 246 seconds]
<Myrl-saki> trevthedev: That should mean that it's already installed.
<trevthedev> alright
<Myrl-saki> trevthedev: What problem are you having that makes you think it's not installed?
<Myrl-saki> trevthedev: I'm guessing that you can't use it as a library?
<trevthedev> it is installed, but 5.x is installed from the stable branch. im trying to install it from the unstable branch, which has 2017.x
<trevthedev> its a game engine(application), not a library ^^
<Myrl-saki> trevthedev: `nix-env -q --installed`?
<kingemp_> it looks like the syntax for default values or for testing inclusion in a set but I'm not sure either of those is the right interpretation
<gchristensen> given a path to a drv, can I create a gc root with it?
<trevthedev> eh, screw it im gonna live off of unstable xd
<clever> trevthedev: what happens if you `nix-build '<nixpkgs>' -A unity3d` ?
<clever> gchristensen: i typically use `nix-store -r /nix/store/foo --add-root result --indirect`
<gchristensen> I don't want to realize it
<clever> yeah, the problem is making roots to .drv files, not sure on that
<Myrl-saki> gchristensen: Symlink?
<clever> indirect roots only work if a magic symlink is setup in /nix/var/nix/gcroots/auto/, that points to the result link
<Myrl-saki> There seems to be an --add-root for nix-instantiate.
<gchristensen> nix-instantiate --add-root ./gc_roots/1 --indirect ./default.nix works, but I already have the .drv path
<clever> yeah, i'm not sure how to skip the eval and just root a drv itself
erasmas has quit [Quit: leaving]
<gchristensen> ehhh... its a race condition anyway, I'll just do it right from the eval
<gchristensen> thanks Myrl-saki
<clever> to the source!
<Myrl-saki> clever: I did some stage 1 funsies today. https://github.com/NixOS/nixpkgs/pull/53600/files
<clever> drvPath = store2->addPermRoot(drvPath, rootName, indirectRoot);
<clever> gchristensen: thats the function that creates the root
<{^_^}> [nixpkgs] @dywedir opened pull request #53608 → alacritty: 0.2.4 -> 0.2.5 → https://git.io/fhGHO
<clever> Myrl-saki: ahh, adding another fstab field
<clever> Myrl-saki: ive done something sorta related in my iscsi rootfs stuff
<clever> Myrl-saki: this allows you to set fileSystems."/".iscsi = { enable = true; host = "..."; lun = "..."; };
<Myrl-saki> clever: Oh yeah, after some time, I think my decision is to just use a named pipe or a port on the qemu system. Is this disgusting or nah?
<clever> and then it magically connects to iscsi at bootup
detran has quit [Ping timeout: 252 seconds]
<Myrl-saki> clever: This is w.r.t. impure inputs.
<Myrl-saki> impure/interactive/something
MarcWeber has quit [Remote host closed the connection]
<clever> Myrl-saki: if you just want to set the luks password, given that the nix store has the original version of everything and no security really exists, just accept that the password is going to be semi visible
philippD has joined #nixos
<clever> Myrl-saki: and choose a password that only unlocks the luks and nothing else
<clever> if somebody can see the store the ISO was made from and read it, they can already see the inputs anyways
<Myrl-saki> True.
<gchristensen> +1
<clever> related, nix-serve, and the defaults in hydra, expose the entire host store to the world (but listing isnt enabled)
<clever> so, if i was to paste the output of `ls -l /run/current-system` to this channel, you could then download my entire machine, right of my hydra
<clever> including the secrets hydra uses to access the github api
<Myrl-saki> Hm, I guess I should identify my attack vectors from the start, huh.
npmccallum has quit [Ping timeout: 244 seconds]
<gchristensen> always
<clever> so whatever machine is handling those secrets, must not act as a binary cache
justanotheruser has joined #nixos
knupfer has quit [Quit: knupfer]
eadwu has quit [Ping timeout: 250 seconds]
semilattice_ has joined #nixos
semilattice has quit [Ping timeout: 272 seconds]
iqubic has joined #nixos
dermetfan has quit [Ping timeout: 244 seconds]
fendor has quit [Read error: Connection reset by peer]
<appleclusters> I'm following this https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134 for a LUKS-encrypted root, but I want to use zfs instead of ext4. I can't find anywhere in the wiki that advises how to do this properly, I'm assumign it has something to do with "zfs create ..." but are there any special options I should be wary of?
trevthedev has quit [Quit: WeeChat 2.2]
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #53610 → librealsense: 2.17.0 -> 2.17.1 → https://git.io/fhGH1
<iqubic> clever: Why the heck does my system seem slower now, with a non-zfs swap partition that it does with the zfs swap partition?
<appleclusters> Ah is it even possible to use LUKS and zfs?
semilattice_ has quit [Ping timeout: 246 seconds]
<appleclusters> Hmm I used /dev/vg/root so far so good
nodyn has quit [Ping timeout: 252 seconds]
<clever> iqubic: is it actually using the swap?, and how much swap did you have before?
<clever> appleclusters: i use zfs on luks for 2 of my machines
nodyn has joined #nixos
<iqubic> clever: 1 Not sure. 2. Also not sure
<clever> iqubic: 1: `free -m` and look at swap, 2: `zpool history | grep swap`
<iqubic> clever: When I say "My system is running slower" what I actually mean is: "Firefox now seems to load youtube slower"
sanscoeu_ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]