worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || 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/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
<infinisil> This is me working towards having just generic `settings` options which can accept arbitrary config values, but also allow type checking a part of them using freeform modules
<noonien> also, nixos is a GREAT language for build scripting, and configuration. but i'm not sure it's as great at general-purpose things. i'm not sure how this can be solved, or if it can be.
<infinisil> This way module authors don't need to encode all settings the program support as NixOS options, but they can still do the most important ones
<noonien> yes, that's great!
<infinisil> But it also leaves the user free to specify any additional settings (but not typechecked then)
<infinisil> (you can ignore the RFC as it needs to be updated. The two PRs are really the important bits)
<matthewcroughan> noonien your script is just flawless :P
<matthewcroughan> you even labelled the fat32 with all caps unlike the nix install docs
<noonien> hehe, i'm glad it helped
<noonien> i would also LOVE to be able to use nix as a configuration language in my own apps
<noonien> i've used dhall, and i don't think i'll be using anything else if I can
smatting_ has quit [Ping timeout: 260 seconds]
alexherbo2_ has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Ping timeout: 240 seconds]
yui79 has quit [Remote host closed the connection]
<eyJhb> Can fetchurl refer to a file in the nix store?
<matthewcroughan> noonien I think NixOS is gonna become more pervasive.
<matthewcroughan> Hopefully I can help.
<matthewcroughan> Gonna be making a vid on NixOS and Musnix which is a configuration for a realtime audio workstatin
bqv has quit [Quit: WeeChat 2.9]
bqv has joined #nixos
* Fare is still debugging buildImage. Something fishy happens at the step "Get the files ... *not* present in the old layer"
<Fare> Looks like that's where it's packing the very same files a second time onto the same archive.
never_released has quit [Ping timeout: 240 seconds]
never_released has joined #nixos
<eyJhb> Can I make a if something != "", where something might only be set sometimes, but give something, a default value?
<eyJhb> In a let in style?
abathur has joined #nixos
<{^_^}> [nixpkgs] @bcdarwin opened pull request #94631 → itk4: 4.13.2 -> 4.13.3 → https://git.io/JJoT6
clandest[m] has joined #nixos
proofofkeags has joined #nixos
<infinisil> A variable can't not be defined
<infinisil> Maybe you mean `if (something.foo or "default" != "")`?
<eyJhb> That seems about right infinisil
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJoT5
<eyJhb> But in general, my method of overriding is useless
<eyJhb> Because I need to redefine all my vars :(
<M0-[m]> is default.nix a convention? where can I learn more about it?
noudle has quit []
<eyJhb> I need some much better than doing this - https://termbin.com/iwp3o to override. Currently doing a // on a set, which means I have to specify everything again... The data I override is loaded from a .json file
<eyJhb> Any better ways?
* eyJhb pokes infinisil and bqv
<Fare> OK, looks like the problem is that the "layer" (containing /) and the "layerFiles" (containing /nix/store) are made in two passes that leave no opportunity for file sharing, even though the "layer" files are actually part of the "layerFiles"
<Fare> so of course, everything is copied double.
Darkmatter66 has joined #nixos
<Fare> this is very f'ed up
<matthewcroughan> noonien After I generated my configuration `networking.useDHCP` is set to false.
<matthewcroughan> What does that mean?
<matthewcroughan> Oh there's a comment above it hmm
<eyJhb> If anyone has a better way to override stuff than this - https://termbin.com/57gm coupled with this https://termbin.com/4e70
<eyJhb> Because that is ugly/not a solution
<eyJhb> But at least it can compile Signal APK
<daddy_james[m]> anyone know how I could set my nixpkgs to my fork at the os level instead of just running ```nix-build -a libfoo``` in the directory?
moet has quit [Ping timeout: 256 seconds]
<matthewcroughan> noonien DigitalKiwi I've hit a snag!
<matthewcroughan> > Failed assertions: ZFS requires networking.hostID to be set
<{^_^}> error: syntax error, unexpected ':', expecting ')', at (string):318:18
<matthewcroughan> Ah it's included in wiki/NixOS_on_ZFS
<matthewcroughan> Oh how helpful. If only all systems were this easy to debug :P
<matthewcroughan> lolwut
<matthewcroughan> what is networking.hostId and why does ZFS need it?
<matthewcroughan> I'm so confused :D
<Ashy> matthewcroughan: `nixos-option networking.hostId`
<matthewcroughan> Ashy yes, but why does zfs need it explicitly?
<matthewcroughan> I know that it needs it, but why?
leungbk has quit [Ping timeout: 260 seconds]
<cole-h> It's how it detects if it was properly exported from the previous machine
<cole-h> IIRC
<matthewcroughan> cole-h So. I'm learning about ZFS by playing with Nix :P
<bqv> eyJhb: extends, maybe
rajivr has joined #nixos
<matthewcroughan> cole-h oh no! https://termbin.com/ae54u
<matthewcroughan> wat do
<daddy_james[m]> anyone know how I could test a nix package (https://github.com/urlordjames/nixpkgs/blob/master/pkgs/os-specific/linux/firmware/rtl8192se-firmware/default.nix) in my ```/etc/nixos/configuration.nix```?
<matthewcroughan> Oh hahahahahaha
<matthewcroughan> I got my boot and root mixed up,
<matthewcroughan> I'm an idiot
terribleArtist has joined #nixos
twe4ked100 has joined #nixos
codygman has quit [Read error: Connection reset by peer]
maier has joined #nixos
codygman has joined #nixos
<twe4ked100> Hey, sorry if this is answered somewhere that I haven't found. I'm running MacOS, how likely is it that packages from nixpkgs will work? Thanks
<{^_^}> [nixpkgs] @zowoq opened pull request #94632 → buildGoModule: change doCheck default to true → https://git.io/JJoLE
justanotheruser has quit [Ping timeout: 260 seconds]
h0m1 has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos
maier has quit [Ping timeout: 240 seconds]
<Fare> buildImage is such a mess. Wow.
jonringer has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #94634 → gitAndTools.delta: 0.3.0 -> 0.4.0 → https://git.io/JJotf
multun has joined #nixos
<Fare> some people spent a lot of time writing optimizations that became pessimizations after other people did their own changes.
bqv has quit [Remote host closed the connection]
sigmundv has quit [Ping timeout: 246 seconds]
gustavderdrache has quit [Quit: Leaving.]
bqv has joined #nixos
<Fare> This begs for a complete rewrite :-(
<infinisil> Fare: Can you be more specific?
<Fare> infinisil, stream_layered_image.py does its best to not create stuff on disk
<Fare> creating a tarball twice as a stream so its can compute its checksum and contents before to create a json file and then re-creating the tarball for actual inclusion
<Fare> this kind of optimization
<Fare> but buildImage currently unpacks everything on disk and creates plenty of intermediate files, in O(N^2) if you chain N images with fromImage
<matthewcroughan> noonien are you still around?
<Fare> so any gain from the former has been dwarfed by that
<Fare> also, the way that mkPureLayer works is defeated by buildImage
<Fare> the former is supposed to let you create stuff without /nix/store
<Fare> but the latter creates the /nix/store with all the transitive dependencies
<Fare> files end up included twice
<Fare> once by mkPureLayer, a second time by buildImage
<infinisil> Hm I see, this does sound pretty bad
<Fare> this is ridiculous
<Fare> I can see how each change was suppose to fix some situation with the previous code, but the result is a big mess
Quick_Wango has joined #nixos
work__ has quit [Quit: Connection closed for inactivity]
stephaneyfx_ has joined #nixos
stephaneyfx has quit [Read error: Connection reset by peer]
<matthewcroughan> cole-h it seems that my NixOS hangs indefinitely at Stage 1
<matthewcroughan> Importing Root ZFS pool "Zpool" forever hangs until my screen is filled with periods
<{^_^}> [nixpkgs] @jtojnar merged pull request #93011 → meson: 0.54.2 → 0.55.0 → https://git.io/JJOtL
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to staging: https://git.io/JJomf
pr06lefs has quit [Ping timeout: 244 seconds]
stephaneyfx_ is now known as stephaneyfx
waleee-cl has quit [Quit: Connection closed for inactivity]
<matthewcroughan> DigitalKiwi I told you this would be way harder than it needs to be :P
euandreh has quit [Remote host closed the connection]
euandreh has joined #nixos
<matthewcroughan> noonien You lied to me hahahah
<matthewcroughan> You plain lied to me about what I needed to do. It is not as simple as you stated.
justanotheruser has joined #nixos
<matthewcroughan> FFS. Maybe I should just give up for today, I'm getting frustrated.
<matthewcroughan> How on earth am I supposed to debug if Stage1 fails?
<Ashy> ;)
<matthewcroughan> I don't want to use BTRFS :/
<dxb[m]> is there a straight forward way to cross compile docker images? i wrote a simple dockerTools.buildImage expression in a .nix file and i'm building it with `nix-build --arg crossSystem '{ config = "arm64-unknown-linux-gnu"; }'` and in my buildImage config i have `architecture = "arm64";` i'm able to build the image on my laptop and load it on my raspberry pi but when i try running it i get errors because it's not able to run the
<dxb[m]> packages in the image. i assume they're not being compiled for arm… also i'm pretty new to nix so i'm not too sure where to look from here. i've read through the stuff about cross compiling and the stuff about docker in the wiki and the manual, and i've tried googling stuff but i'm not finding anything that mentions building docker images for other architectures. i _think_ that i was also able to cross-compile just the packag
<dxb[m]> but the pi isn't running nix (yet) so i couldn't really test that… any pointers?
<matthewcroughan> Ashy BTRFS performs strangely worse in a lot of benchmarks.
virus_dave has quit [Quit: virus_dave]
<matthewcroughan> Ashy DigitalKiwi noonien the docs are missing information about ZFS, can you add it?
<matthewcroughan> boot.supportedFilesystems = [ "zfs" ]; is needed according to someone else
<infinisil> This is added automatically if you have any ZFS filesystems
<matthewcroughan> It was not
<matthewcroughan> Like, I don't know what to tell you. I ran this script http://ix.io/2t7J and then generated my config, and it was not present.
<matthewcroughan> I simply do not know what to tell you other than it must be wrong, or there is a bug.
<matthewcroughan> I had to add this information myself.
<matthewcroughan> anyway, the docs do not include this: boot.initrd.supportedFilesystems = [ "zfs" ];
<matthewcroughan> I mis-typed eariler. It's the initrd bit, the docs don't say ANYTHING about this, though it's required for ZFS on Root
<infinisil> Oh well it won't be in your configuration.nix, but boot.supportedFilesystems always implicitly contains all filesystem types from the fileSystems.* option
<matthewcroughan> Can you help me debug this? How can we move on from here? I'm stuck.
<matthewcroughan> The system's busted, nixos-install worked fine, so I'm screwed. I can't fix this without booting into the install media again can I?
<infinisil> Yea probably
<matthewcroughan> I need both boot.initrd.supportedFilesystems = [ "zfs" ]; AAAANNNDDDD boot.supportedFilesystems = [ "zfs" ];
<matthewcroughan> What evidence do you have to suggest otherwise? The docs don't state I need the former.
<matthewcroughan> jonringer is telling me in the discord that this is the case.
<infinisil> You shouldn't need either. I have neither of them in my config
<matthewcroughan> you have ZFS on Root?
<infinisil> Indeed
<matthewcroughan> Why can't anybody tell me the right way to do things? :(
<matthewcroughan> Everyone so far, for the past 3 hours has given me different ways of doing this. And they're all seemingly wrong.
<matthewcroughan> Or missing information.
<matthewcroughan> I've read as much as I can read.
<infinisil> What have you read and tried?
<matthewcroughan> I'm going to have to repeat myself a lot, since I've been here for quite some hours now.
<matthewcroughan> noonien and DigitalKiwi told me "ZFS on root is so easy here" and gave me some scripts to look at
<DigitalKiwi> matthewcroughan: i haven't read everything yet did you fix the hangs at stage 1 that sounds like you're missing a setting
<matthewcroughan> http://ix.io/2t7J
<matthewcroughan> So, I run this, but for my disk and without a swap partition.
<DigitalKiwi> that is not a quote i have said
<matthewcroughan> So therefore p2 and p1 are swapped, so ignore that
<matthewcroughan> So, that script, correctly adapted to my setup. Then, nixos-generate-config. Then apply my changes to that. Then nixos-install. Then reboot.
<matthewcroughan> That's it.
<DigitalKiwi> boot.zfs.enableUnstable = true;
<DigitalKiwi> i think without that i was having hanging
<matthewcroughan> You know what, no.
<matthewcroughan> Remember earlier when I asked you if you ever had issues with this, and you said no?
<DigitalKiwi> boot.supportedFilesystems = [ "zfs" ];
<infinisil> Oh well this is zfs under luks. I for one only know that it's pretty easy to do zfs directly
<DigitalKiwi> is probably important too
<matthewcroughan> I have that. I followed the docs.
<matthewcroughan> I have followed these docs TO THE TEE.
<matthewcroughan> jonringer thinks I need boot.initrd.supportedFilesystems = [ "zfs" ];
<matthewcroughan> that is *not* stated in those docs that I just linked.
<{^_^}> [nixpkgs] @veprbl merged pull request #94298 → projectm: 3.1.3 -> 3.1.7 → https://git.io/JJ2PJ
<{^_^}> [nixpkgs] @veprbl pushed commit from @r-ryantm to master « projectm: 3.1.3 -> 3.1.7 (#94298) »: https://git.io/JJoY4
<infinisil> Docs aren't always correct
<matthewcroughan> Neither are people when they say there are no bugs, issues or problems generally with ZFS under NixOS :/
<matthewcroughan> and that they've been using it just fine and have never encountered issues.
<matthewcroughan> Blind leading the blind.
<infinisil> You're being rude
<infinisil> People are trying to help you, and you're bashing their help
<matthewcroughan> I'm frustrated.
<terribleArtist> howdy, im trying to use node2nix to get a nix-shell that has the vue cli program, how do i go about doing that?
<Ashy> matthewcroughan: the trick is to buy nvme and then the filesystem barely matters
<terribleArtist> i have it running nix-build but i cant figure out how to make a shell with the cli program too
<matthewcroughan> This is an nvme drive. And what you have said is so beside the point it can only be intended to upset me or try and make me more frustrated with the experience.
<matthewcroughan> Speed isn't the only aspect of a filesystem.
leungbk has joined #nixos
<Ashy> sorry, didnt mean to wind you up, i was just responding to the btrfs comment about performance
<DigitalKiwi> 21:28 DigitalKiwi: i'm not here to convince you to use it i personally don't care
<matthewcroughan> I want to use it, and you convinced me.
<matthewcroughan> So I did exactly what you said, and seemingly exactly what the docs said, yet I can't get it to work.
<Ashy> back when i was using zfs there was some gotchas, i followed this blog and the wiki: https://elvishjerricco.github.io/2018/12/06/encrypted-boot-on-zfs-with-nixos.html
<matthewcroughan> And I've really read properly. So I just need your help debugging it.
<Ashy> but i still did about 3 or 4 installs before i got it working
<matthewcroughan> If you can't debug on nixos then *shrug* I guess.
* DigitalKiwi was in a good nap :(
<leungbk> Hi, would anyone mind merging my approved PR from June? The reviewer said that he didn't have merge privileges.
<Ashy> and then about 12 months later the latest kernel breaking support for zfs meant i couldnt boot when i did a rebuild (although, nixos is amazing and i could just choose the previous config in the grub menu)
<{^_^}> #91142 (by leungbk, 6 weeks ago, open): nodePackages.vim-language-server: init at 1.9.0
<matthewcroughan> Ashy This is exactly what I posited earlier and asked DigitalKiwi.
<Ashy> unless you plan on deploying a large zfs deployment i would personally just go with btrfs
<matthewcroughan> He said that no, indeed it has been completely stable for him, and never has he encountered an issue like what you just described in words.
<Ashy> note the update at the top of that blog post about it now having issues with grub
<matthewcroughan> Then noonien came along and said he had deadlocks in some circumstances
<matthewcroughan> Now you're telling me I'll be halted in my kernel upgrade path?
twe4ked100 has quit [Remote host closed the connection]
<matthewcroughan> Seems like there's conflicting information. What's the real answer?
<Ashy> zfs is not mainline kernel, you're always at risk of the latest kernel breaking support for it
<Ashy> no matter what distro
<matthewcroughan> I thought that 5 hours ago before going down this rabit hole.
<matthewcroughan> But I was so convinced by DigitalKiwi that I decided to go down it.
<DigitalKiwi> 21:47 DigitalKiwi: zfs on root is maybe not recommended i may be lucky in not having problems
<infinisil> leungbk: Feel free to ping me for merging when ofborg is green :)
<dxb[m]> honestly why is anyone responding to this guy still? lol… he's blaming other people for his problems and not willing to continue researching any further. let him figure it out on his own, or move to another distro with this attitude.
<matthewcroughan> dxb[m] I've asked politely for help and been left in the dark by the people who gave me the initial advice
<matthewcroughan> after 3 hours of genuine reading.
<matthewcroughan> I am really upset that you think I'm being a troll.
<DigitalKiwi> well i was asleep for one
<infinisil> matthewcroughan: People are using their free time to help you..
<DigitalKiwi> and then i wake up and you're not being nice :(
<matthewcroughan> infinisil At what stage have I disrespected that?
<dxb[m]> you're no longer being polite. i didn't say you're being a troll, just being rude
<DigitalKiwi> i get you're frustrated
<infinisil> matthewcroughan: Now?
<matthewcroughan> Yeah, find me the exact sentence. You're lacking context.
<matthewcroughan> If you had the context, maybe you'd feel for me lol.
<matthewcroughan> Same for dxb[m]
<matthewcroughan> It's not like you've followed my experience for the last 5 hours. You're just seeing the last 5 mins of my frustration.
orivej has joined #nixos
<matthewcroughan> What, I'm not allowed to have even one bad thought or else I'm a troll?
<DigitalKiwi> can we get back to what's currently not working instead of blaming
<dxb[m]> i looked into nixos for like 4 months before installing on a vm, then took 2 weeks setting up the vm, then about 2 days on hardware. just relax. nix isn't at all like other distros, it's got quite the learning curve
<matthewcroughan> It has quite the good looking docs that aren't complete.
<matthewcroughan> Everything looks good, but then you begin to understand that you're in uncharted territory and alone for the most part, with conflicting advice.
<infinisil> Indeed, the docs are not very good
<infinisil> There are efforts to improve them
<dxb[m]> i had to boot into the install disk and re-mount my partitions like 5 times before i booted
<DigitalKiwi> dxb[m]: :D
<matthewcroughan> I have already rebooted several times because of Linux failing to get partition table updates because of ZFS interactions
<matthewcroughan> yknow, partprobe not working, etc
<Ashy> matthewcroughan: it took me 3 or 4 attempts over the space of a couple weeks (in between day job) to get nixos booting on zfs root
<matthewcroughan> So I know that feel.
<infinisil> matthewcroughan: How about just going for a standard zfs without luks for your first install?
lordcirth_ has joined #nixos
<matthewcroughan> I don't see the point? My current laptop is LUKS and I didn't have to know anything about it.
<Ashy> are you trying to learn nixos or zfs?
<matthewcroughan> That's the funny thing. The first experience I ever had with linux was luks encrypted root, ext4 on an ssd, Arch Linux via the antergos installer.
<matthewcroughan> And it's amazing how that was abstracted away for me.
<matthewcroughan> The disk is configured properly, I don't see how luks is the problem?
<DigitalKiwi> matthewcroughan: that is my zfs-configuration.nix it has most if not all of the settings i have related to zfs
<infinisil> I'm just saying that if you don't want to get into lesser-charted territories, don't do luks + zfs
<matthewcroughan> Who said I don't want to get into that territory/
orivej has quit [Ping timeout: 240 seconds]
<infinisil> The reason the docs are bad is because this is lesser-charted territory
<DigitalKiwi> oh you're using luks not zfs native encryption?
lordcirth__ has quit [Ping timeout: 246 seconds]
<matthewcroughan> DigitalKiwi What is the relevance of `boot.loader.grub.copyKernels = true;` on a system that uses systemd-boot?
<matthewcroughan> I did not understand this, I saw it in the official docs.
pr06lefs has joined #nixos
<DigitalKiwi> i don't know
<infinisil> That sure looks entirely irrelevant
<jonringer> copyKernels is to avoid hardlink exhaustion, it's in the paragraph above the code
<jonringer> "Using NixOS on a ZFS root file system might result in the boot error external pointer tables not supported when the number of hardlinks in the nix store gets very high"
<DigitalKiwi> jonringer made it to irc :D
<jonringer> Worldofpeace convinced me that the next release manager should be available in official platforms
<DigitalKiwi> oh you're next RM nice
<jonringer> hurray, work! :)
<DigitalKiwi> you get lots of stickers
<jonringer> lol
<DigitalKiwi> ...soon as i paint them :(
<jonringer> thanks
<DigitalKiwi> i cut the main stencil for 144+
<jonringer> very nice
<DigitalKiwi> but then i was like what colors do i want and ugh :( (and got busy building a deck/pool/retaining wall/helping people move)
<matthewcroughan> I haven't been this pissed off with Linux since I was a noob 3 years ago :D
jasongrossman has joined #nixos
<matthewcroughan> Viewing it through that lens makes me laugh haha
<jonringer> I would slow down. ZFS is usually used for data critical applications. And it's not really meant to be the most user friendly
<matthewcroughan> jonringer the system isn't using grub
<matthewcroughan> What are you talking about? I want to use ZFS.
<matthewcroughan> Therefore, I'm trying to use ZFS.
<matthewcroughan> Telling me *don't use zfs* isn't going to make me not want to use it lol.
<infinisil> Tbh I find zfs very user friendly
<DigitalKiwi> i read a lot and still have to read a lot about zfs
moet has joined #nixos
<matthewcroughan> My problem isn't with ZFS, it's with getting NixOS to run on ZFS on Root.
<matthewcroughan> I know how to use ZFS, I use ZFS.
<ornxka> matthewcroughan: what is the specific problem youre having?
<ornxka> i use zfs for my root
<ornxka> on luks too
<matthewcroughan> Hanging at Stage1 despite successful config gen and `nixos-install`
<matthewcroughan> http://ix.io/2t7J
<jonringer> there's still a lot of subtlety with zfs though, like wrong ashift values can have horrible performance impairment
<matthewcroughan> Using something like this script, applied to my setup, zpool is valid.
<matthewcroughan> jonringer and that is not relevant here, at all
<matthewcroughan> because I'm not even at the stage where we can quantify what you just said, because I can't even boot the OS, so ashift values aren't very important to me.
<ornxka> what does it print at boot?
jasongrossman has quit [Remote host closed the connection]
<ornxka> and, whjat does your configuration.nix look like
<jonringer> the zfs cli is easy to use and intuitive though
<matthewcroughan> ornxka https://pastebin.com/raw/WhRWMWP8
<matthewcroughan> I made the pool. I enabled the filesystem. I nixos-installed. I rebooted.
<ornxka> can you post hardware-configuration.nix too
orivej has joined #nixos
<matthewcroughan> I genned the config and applied the zfs stuff from the zfs nixos docs, since it was not applied for me
moet has quit [Client Quit]
<matthewcroughan> yes, sec
<{^_^}> [nixpkgs] @davegallant opened pull request #94635 → awscli2: 2.0.26 -> 2.0.36 → https://git.io/JJoON
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<matthewcroughan> ornxka where is it stored?
<matthewcroughan> I've mounted the rootfs, but I can't find the configuration.nix
<matthewcroughan> it's no longer in etc
<ornxka> huh
<ornxka> thats odd
<ornxka> it should be in /etc/nixos
<matthewcroughan> oh sorry it is
<matthewcroughan> I misremembered as it just being in etc
<jonringer> it's /etc/nixos/hardware-configuration.nix
<leungbk> infinisil: The PR passed CI and should be ready to look at: https://github.com/NixOS/nixpkgs/pull/91142
<{^_^}> #91142 (by leungbk, 6 weeks ago, open): nodePackages.vim-language-server: init at 1.9.0
<ornxka> btw a useful kernel params is boot.shell_on_fail
pjt_tmp has joined #nixos
<matthewcroughan> You know what else is really frustrating? Buggy Wifi hardware on a brand new laptop.
<matthewcroughan> Intellllll
<ornxka> you can put it in boot.kernelParams or if you boot to grub you can edit the grub entry with e and then just tack it onto the line that starts with linux
proofofkeags has quit [Ping timeout: 240 seconds]
<matthewcroughan> is there an expression that can fix my broken wifi?
<infinisil> leungbk: Have you tested whether this newer version works?
<matthewcroughan> boot.intelFuckedUp = true
orivej has quit [Ping timeout: 240 seconds]
<ornxka> ah yes
<ornxka> (i do not know of a way to fix your wifi unfortunately)
<matthewcroughan> https://termbin.com/aqu2
<matthewcroughan> hardware config
<ornxka> but basically here is what i would do:
<ornxka> i would set boot.shell_on_fail in grub, along with one of boot.debug1, boot.debug1devices, or boot.debug1mounts (probably the last one)
<matthewcroughan> But why, what will that let me do?
<ornxka> depending on which one it should boot you into a shell in the initramfs environment
<ornxka> from there, you can try mounting your root filesystem by hand
<matthewcroughan> it was just saying it couldn't find zpool
<matthewcroughan> something about mnt-zpool
abathur has quit [Ping timeout: 260 seconds]
<ornxka> if for some reason youre unable to, the step that fails will tell you about the nature of the problem
<ornxka> the specific message there would be helpful
<matthewcroughan> alright, so how do I do this without mounting stuff in the /mnt dir on the install media
<ornxka> if it doesnt have the zpool *binary* then that is a much different issue than if it cant mount a pool named zpool
<ornxka> boot to grub menu, then press e
<matthewcroughan> I don't have grub
<ornxka> you will get to edit the menu entry
<ornxka> oh
<matthewcroughan> I'm using systemd-boot
<matthewcroughan> this is uefi
<ornxka> ah...
<infinisil> (grub supports uefi too btw)
abathur has joined #nixos
<matthewcroughan> ya but like, I just hate this process
<ornxka> it is really annoying
<matthewcroughan> like, do I really have to change my damned bootloader to debug things in NixOS? Does this really help?
<dxb[m]> you said you're using luks but i don't see it anywhere in your config
<ornxka> ive spent hours on dumb crap like this
<matthewcroughan> dxb[m] nobody told me I needed to at any stage
<ornxka> recently cryptsetup would fail by saying i had the wrong password even when it was correct when i forgot to include the kernel modules for the cipher it was using
<matthewcroughan> blame noonien who advised me on how to use luks :P
<ornxka> i wasted a whole damn day on that
<ornxka> the most vague error message would have helpful in that case
<matthewcroughan> Of course zpool is unavailable if luks isn't configured to allow it to exist
<matthewcroughan> so, how do I configure luks?
<dxb[m]> matthewcroughan: are you doing full disk encryption?
<ornxka> anyway i dunno how to change your boot parameters from uefi, i still use mbr
<matthewcroughan> dxb[m] I would really like to, yes, and I am.
<ornxka> but that is my general debugging process for stage 1 failures
<matthewcroughan> I mean, I have luks on the disk, I just have not configured it in my configuration.nix like you've spotted
<matthewcroughan> since nobody told me it was necessary
Supersonic112 has joined #nixos
<dxb[m]> i followed option 3 here https://nixos.wiki/wiki/Full_Disk_Encryption but i'm using LVM
<dxb[m]> and i'm using grub
<ornxka> huh i dont see any luks stuff in there
<ornxka> yeah you need to set boot.initrd.luks somewhere
<matthewcroughan> I don't have a chat history that's large enough to get it, but I asked about this specifically, again, I have all this configured on Arch
<matthewcroughan> I'm not completely clueless
<matthewcroughan> but I asked straight up a lot of these things that I thought would be issues, and was told explicitly they would not be issues
<leungbk> infinisil: I tried the vim-language-server executable in Emacs' lsp-mode and it seems to work.
<matthewcroughan> for example, how do i config luks
<matthewcroughan> noonien told me I didn't need to
<{^_^}> [nixpkgs] @Infinisil merged pull request #91142 → nodePackages.vim-language-server: init at 2.1.0 → https://git.io/Jfbu1
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JJo3g
<infinisil> leungbk: Alright, merged :)
Supersonic has quit [Ping timeout: 246 seconds]
Supersonic112 is now known as Supersonic
<leungbk> infinisil: Thanks!
<matthewcroughan> infinisil That looks like it. But ZFS probably complicates this, I wonder hwo.
<ornxka> matthewcroughan: you dont have anything exotic like a detached header do you
<matthewcroughan> I wonder how*
<matthewcroughan> ornxka What is a detached header?
<ornxka> ah great
<ornxka> its something thats a pain to make work ffor encrypted root
<matthewcroughan> Are you suggesting I somehow take my head off with a blade? I'm convinced this is the way forward at this point.
<infinisil> matthewcroughan: I'd think that all you need is the luks setting there
<ornxka> lol
abathur has quit [Ping timeout: 264 seconds]
<matthewcroughan> infinisil you don't think ZFS complicates this?
* Fare opens https://github.com/NixOS/nixpkgs/issues/94636 regarding the buildImage bug.
<{^_^}> #94636 (by fare, 34 seconds ago, open): dockerTools.buildImage layers are 2x too big
<ornxka> lets not get ahead of ourselves here..
<ornxka> i actually dont have much zfs specific stuff in my config at all
<infinisil> matthewcroughan: I think ZFS just tries again a bunch of times until it can find whatever device it needs
<ornxka> it will wait until the device appears
<infinisil> And luks probably runs at the same time
<ornxka> which is incredibly irritating if you do the mounting yourself instead of nix because it will wait until the whole thing times out
<infinisil> If you specify it using boot.initrd.luks.devices.crypted.device that is
<ornxka> on my raid machine with 12 disks after i decrypt it takes roughly 20 minutes to boot
<matthewcroughan> there is no uuid though?
<matthewcroughan> like what is it talking about
<matthewcroughan> the nixos install guide clearly tells you to use labels :/
<infinisil> matthewcroughan: Anything works, as long as it stays the same over time
<ornxka> labels dont exist for zfs
<clever> labels are simpler, because you will know what the label is
<matthewcroughan> ornxka wrong
<ornxka> really?
<ornxka> ive never even heard of them
<matthewcroughan> Maybe not completely, but did you read my script that noonien gave me?
<ornxka> or used them
orivej has joined #nixos
<matthewcroughan> http://ix.io/2t7J
<clever> ornxka: zfs tends to just use the pool name, which is in the metadata of each vdev
<matthewcroughan> mount -t zfs zpool/root/nixos /mnt
<Fare> but yeah, this all once again confirms to me that Docker is a pile of bad design.
<ornxka> the label there is for a fat filesystem
<dxb[m]> even if you're using labels wouldn't you still have a uuid for each partition?
<matthewcroughan> I cannot follow the docs infinisil linked because I don't know what to put in place of the UUID
<clever> matthewcroughan: you have to run blkid to find the uuid that was randomly generated
<infinisil> matthewcroughan: Just look at /dev/disk/by-uuid
<clever> matthewcroughan: which is why label is simpler, you know what the label is, because you picked it
<matthewcroughan> No, why are we using UUIDs?
<infinisil> Or I prefer `tree /dev/disk`
<matthewcroughan> Again, the install guide tells me to use labels, why are we abandoning this concept now?
<matthewcroughan> what was the point of making the labels in the install guide if we're not going to use labels?
<infinisil> Just because one section of the docs doesn't use labels doesn't mean you can't use them
<infinisil> Use them if you want, they're not necessary
<matthewcroughan> `cryptsetup luksOpen /dev/nvme0n1 nixos` will have to be ran before the ZFS pool can be mounted
<matthewcroughan> at which point `mount -t zfs zpool/root/nixos /mnt` will have to be ran
<matthewcroughan> do you honestly think that what is contained in https://nixos.org/nixos/manual/#sec-luks-file-systems will do this?
<infinisil> Yes, if you specify it correctly
maier has joined #nixos
<infinisil> How about just trying it?
<matthewcroughan> So again, what goes in place of the /dev/disk/by-uuid?
<clever> i think you also need a `zpool import zpool` in the middle first
<matthewcroughan> I don't know when /dev/disk/by-label/nixos appears
<matthewcroughan> I don't know if cryptsetup makes that happen
<infinisil> matthewcroughan: `nix-shell -p tree --run "tree /dev/disk"`
<infinisil> Run that, what do you get
<matthewcroughan> https://termbin.com/5xpit
<clever> matthewcroughan: the nixos label is on whatever is in partition 1 of the nvme disk
<clever> so it should be visible once the nvme drivers load
<matthewcroughan> Okay, so since I've already ran nixos-install, what do I run now after I make changes?
<matthewcroughan> nixos-install again?
<infinisil> The d4b0d8af-f83f-4624-a1cc-267dc6695e16 UUID would probably work
<clever> yeah
<matthewcroughan> I really do run nixos-install again?
<matthewcroughan> that seems wrong but ok :V
<matthewcroughan> I trust you
<infinisil> what seems wrong?
<clever> matthewcroughan: why does that seem wrong? its the uuid for p1?
<matthewcroughan> so nixos-install is what you run in a rescue-boot scenario?
<matthewcroughan> I'm referencing the nixos-install command, not the uuid
maier has quit [Ping timeout: 256 seconds]
<ornxka> nixos-install is typical for fixing an existing installation
pr06lefs has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 264 seconds]
<ornxka> the alternative is chrooting in and running nixos-rebuild which involves making a bunch of bind mounts and its annoying
orivej has joined #nixos
<clever> ornxka: nixos-enter is a script to deal with all of the bind mounts for you
<ornxka> whoa really
<ornxka> i learnm new things every day
<infinisil> matthewcroughan: What are you booted into right now?
<clever> NIXOS_INSTALL_BOOTLOADER=1 nixos-enter --root "$mountPoint" -- /run/current-system/bin/switch-to-configuration boot
<clever> ornxka: and nixos-install itself, just runs nixos-enter to run things in /mnt/
<ornxka> ahhh
<matthewcroughan> infinisil I am booted into the Nixos Plasma5 installer media
<matthewcroughan> 20.03
<matthewcroughan> I have already installed, this is the failed install.
<matthewcroughan> So, I have that failed install mounted in /mnt, so should I just run nixos-install again, yes or no?
<infinisil> matthewcroughan: Yes, exactly, nixos-install can be run many times in that state without problems
<matthewcroughan> Idempotency!
<infinisil> Indeed!
<DigitalKiwi> yay declarative configuration
<infinisil> matthewcroughan: So, did you add the luks line to configuration.nix now?
<matthewcroughan> CONFLICTING DEFS IN HARDWARE-CONFIGURATION.NIX
<matthewcroughan> grrrrrrr
<matthewcroughan> yes, were you not the one who asked for my hardware config, of course it's conflicting lol.
<ornxka> if god is idempotent then why does he allow evil to exist
<infinisil> matthewcroughan: Did you edit that file manually?
<matthewcroughan> no, hardware-configuration was entirely generated
<matthewcroughan> has not been modified
<infinisil> What's the full error?
<matthewcroughan> https://termbin.com/xzgd
<matthewcroughan> oh great damned error
<matthewcroughan> ffs
<matthewcroughan> "The option 'fileSystems./.device' has conflicting definitions, in /mnt/etc/nixos/configuration.nix and /mnt/etc/nixos/hardware-configuration.nix"
<bqv> well, does it?
<clever> matthewcroughan: what did you set it to in each file?
<infinisil> matthewcroughan: Ah, you don't need the fileSystems."/" assignment from the manual
<infinisil> clever: bqv: The manual mentions it for a luks without ZFS setup: https://nixos.org/nixos/manual/#sec-luks-file-systems
<matthewcroughan> clever I didn't set it to anything in hardware-configuration.nix
<matthewcroughan> I set it only after infinisil told me to set https://nixos.org/nixos/manual/#sec-luks-file-systems
<matthewcroughan> in configuration.nix*
<infinisil> matthewcroughan: I guess I didn't mention it explicitly, but you *only* need the boot.initrd.luks.devices.crypted.device line
<matthewcroughan> In 10 years, will this file still build?
<matthewcroughan> if not, why not, what do I do to make it true that it will?
<dxb[m]> <matthewcroughan "In 10 years, will this file stil"> does it build now?
<matthewcroughan> yes
<infinisil> I don't know, and I don't care, I'm just here to help you right now
<matthewcroughan> Wait, nixos-install is asking me to set my root passwd again lol
<matthewcroughan> alright, time to reboot and try again
<infinisil> matthewcroughan: Hold on
<matthewcroughan> OH THAT'S INTERESTING
* dxb[m] runs for cover
<matthewcroughan> my old generation is here, that's epic
<infinisil> Just to confirm, you only added this one line?
<matthewcroughan> It worked.
<matthewcroughan> I need to hug you.
<infinisil> Cool :)
<matthewcroughan> Nix Pill was half swallowed, lodged in my throat
<matthewcroughan> it's one of those big pills that you need some water to swallow
Mateon1 has quit [Remote host closed the connection]
<dxb[m]> i think a round of apologies to everyone is in order lol
<dxb[m]> and go grab a snack and a nap
<matthewcroughan> Did I not already apologise.
<matthewcroughan> Really it's noonien's fault for not telling me that luks required that config.
<matthewcroughan> Literally every single thing he gave me was 100% correct, except that.
<infinisil> Stop blaming them!
<infinisil> People make mistakes okay
<dxb[m]> <matthewcroughan "Really it's noonien's fault for "> thus nullifying any theoretical apology
<dxb[m]> it's your fault for not reading the docs
<matthewcroughan> I do apologise, I'm sorry for getting frustrated lol.
<infinisil> If you constantly blame people for making a single mistake, those people won't ever help you again
<matthewcroughan> I did read the docs. I can't read what I didn't know existed.
<matthewcroughan> I can't read 100% of the docs. Nobody can.
<matthewcroughan> I did read, telling me I didn't read makes me feel just as bad as you're claiming I'm making others feel.
<DigitalKiwi> and i don't use luks with zfs i use native encryption
<dxb[m]> no, but you can search for keywords like "luks" "hich will _only_ hit on relevant articles
<simpson> Computers are hard and it's time for a break.
<matthewcroughan> Thanks Homer.
<dxb[m]> * no, but you can search for keywords like "luks" which will _only_ hit on relevant articles
<matthewcroughan> dxb[m] similarly, telling me "You need to configure luks in your config.nix" would also have been good :P
orivej has quit [Ping timeout: 240 seconds]
<dxb[m]> i did :)
<matthewcroughan> Y'all helping me for free
<infinisil> So, I just checked out the nixos-generate-config script, and it does indeed have logic to detect luks automatically and add a boot.initrd.luks.devices entry
<matthewcroughan> but I'm also using nixOS for free, ever thought about that :D
orivej has joined #nixos
<infinisil> But I think it can't detect it when it's used by ZFS
<matthewcroughan> It's not like I'm going to educate and make videos about this shit or anything.
<infinisil> It would have to be updated
<dxb[m]> infinisil i bust set up lvm and luks the other day and i had to config it myself. the script didn't do it for me
<dxb[m]> * infinisil i just set up lvm and luks the other day and i had to config it myself. the script didn't do it for me
<clever> infinisil: i think its using lsblk to track things thru the lvm and luks blocks
<clever> infinisil: lsblk clearly shows that my tank-root is part of an lvm block on root, which is a luks block
<clever> but its not aware of / being part of tank-root via zfs
kalbasit has joined #nixos
<infinisil> Hm yeah, I think this could definitely use some improvements
<infinisil> Nobody wants to write perl though hah
<clever> rewrite it in haskell? :D
<infinisil> I'm sure eelco will love it
<infinisil> clever: For the future I wish for the hardware config to be in an entirely separate profile
<{^_^}> [nixpkgs] @antifuchs opened pull request #94637 → [wip] Make gccemacs build on darwin → https://git.io/JJona
<infinisil> So you can rollback/upgrade hardware and config separately
<infinisil> Because currently this is pretty bad: Any filesystem change you make essentially makes a rollback fence
<matthewcroughan> Now the question is, how do I do wayland :D
<simpson> Is this some tour of setting up all of the hard-to-use stuff?
<matthewcroughan> Well I do it just fine and get on with it just fine on Arch.
<matthewcroughan> Wayland's not hard, Nix is hard, I guess.
<matthewcroughan> I even got Sway and Wayland running just fine on Alpine (MUSL) on a laptop from 2005 (Compaq NC6120)
<matthewcroughan> The funny thing is, I tried to use NixOS on that laptop, and it couldn't get past stage1 because it has 256MB of ram.
<matthewcroughan> I'd have to use a VM to generate the image, then flash it. Now I realise how easy that is with nix-build I guess I can just do that.
Mateon1 has joined #nixos
<clever> matthewcroughan: ive used nixops to deploy nixos to an eeepc 701 netbook
<clever> that lets you trivially build on one machine, then run on another
<matthewcroughan> https://github.com/colemickens/nixpkgs-wayland I've been eyeing this. So is this what's known as a channel? simpson clever?
<infinisil> clever: I think even nixos-rebuild --target-host could be used
<matthewcroughan> clever ah nice, I thought that's what hydra was. I thought I did not know that's what nixops was for.
<clever> matthewcroughan: hydra is more about just pre-building packages, nixops is for building a specific configuration.nix and then deploying it to hw
<simpson> matthewcroughan: I dunno; Nix is hard, after all~ I'm not really inclined to help, sorry. There seem to be lots of helpful hints in the README.
<matthewcroughan> simpson not asking for help
<matthewcroughan> I just want terminology
orivej_ has joined #nixos
<matthewcroughan> So is nixpkgs-wayland as seen in that repo what's known as a channel?
<clever> matthewcroughan: doesnt look like a channel to me
<matthewcroughan> I'm not asking for direct handholding, I am asking for help :P
<infinisil> If I were to want to use wayland, I'd start with programs.sway.enable = true: https://nixos.org/nixos/options.html#programs.sway
<colemickens> It's an overlay.
<matthewcroughan> Enabling programs like that simply puts it on my path right? It doesn't start it at boot right?
<{^_^}> [nixpkgs] @djanatyn closed pull request #94508 → flip: init at v1.40-pre → https://git.io/JJV1r
<simpson> matthewcroughan: Sure, and this is why insulting random folks when they enter the conversation is not a good idea.
<colemickens> Though, with the flake.nix, it can be used as a package set too.
orivej has quit [Ping timeout: 240 seconds]
<matthewcroughan> simpson I don't think I insulted anyone at any stage, you know? I'm pretty much 100% confident I didn't do that.
<matthewcroughan> Maybe I came off jaded and upset, but I didn't insult anyone directly.
<{^_^}> [nixpkgs] @marsam opened pull request #94638 → lxd: 4.3 -> 4.4 → https://git.io/JJonF
<infinisil> enabling options can make arbitrary many things happen
<matthewcroughan> Anyway, I've apologized, can we move on? Or are you wanting to hold a grudge?
<infinisil> Starting services, adding files to /etc, installing packages, etc.
<infinisil> matthewcroughan: If you click on the programs.sway.enable option in the link, you can see a link to the Nix module that defines it
<matthewcroughan> So `programs.sway.enable` puts it on my path. But `programs.lightdm.enable` might start lightdm at boot?
<matthewcroughan> there is no consistency in behaviour just by looking at the expression?
<infinisil> I never said it puts it on your path
<matthewcroughan> No, I'm assuming what it does, I'm just asking if that's true, what I said?
<infinisil> The convention is for programs.*.enable to enable all things that you might need to use said program
<matthewcroughan> I have to derive things, I have to go on the internet and read the description for what enable does for a given package
<infinisil> What exactly that entails is subject to the module authors
<matthewcroughan> I cannot assume .enable is not going to start something at boot, right? It's subjective, it's author's decision?
<matthewcroughan> there is no convention here?
<infinisil> I just said, there is a convention
<matthewcroughan> I read that as soon as I said it, sorry :P
<infinisil> To make the program work
<infinisil> And this might involve starting services yes
<matthewcroughan> Goodie
<matthewcroughan> So I just add this to my config and then nixos-rebuild --switch right?
<infinisil> Indeed
pr06lefs has joined #nixos
<matthewcroughan> My absolute favourite is networking.wireless.networks.Wifi_name.pskRaw
<matthewcroughan> I love this so much, absolutely brilliant.
<matthewcroughan> that is the most annoying state to keep.
<{^_^}> [nixpkgs] @marsam opened pull request #94639 → recursive: 1.052 -> 1.053 → https://git.io/JJocK
<daddy_james[m]> I'
proofofkeags has joined #nixos
<matthewcroughan> Imagine my shock that the wifi is just magically connected by putting that in my config.nix :D
<infinisil> NixOS can be pretty magical yeah :)
<{^_^}> [nixpkgs] @marsam merged pull request #94634 → gitAndTools.delta: 0.3.0 -> 0.4.0 → https://git.io/JJotf
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJocD
<infinisil> It depends a lot on the module quality though. Some are pretty good, but some are also pretty bad
<matthewcroughan> Is there a way to import pubkeys to ssh via the config.nix?
<clever> matthewcroughan: host pubkeys?
<matthewcroughan> like my ssh pubkey so that I can ssh into the machine
<matthewcroughan> but defining it only in the .nix
<clever> matthewcroughan: users.users.<name?>.openssh.authorizedKeys.keys
<matthewcroughan> name being the username of the person I want to have my pubkey in their .ssh/authorized_keys?
<clever> yeah, the name your going to login as
<matthewcroughan> think it'll work for root? :D
<clever> yes
<matthewcroughan> I cannot wait
<matthewcroughan> Oh god I'm getting addicted
<Fare> :-)
<matthewcroughan> Hmm. So is it true then that if I `useradd` that user is not going to be around when I reboot the system?
<clever> mutable users will persist until you disable mutable users in configuration.nix
<matthewcroughan> So anything I do that isn't tracked in .nix is referred to as mutable?
<clever> also called imperative in some contexts
<matthewcroughan> whereas if it is tracked in .nix then it is immutable since it is defined
abathur has joined #nixos
proofofkeags has quit [Remote host closed the connection]
leungbk has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #94559 → zig: fix build → https://git.io/JJwOu
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JJolm
zupo has joined #nixos
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<matthewcroughan> clever https://nixos.wiki/wiki/Sway
<matthewcroughan> Am I supposed to put this example into a whole separate file and include it?
<matthewcroughan> Or am i supposed to shove this alongside what I have?
<{^_^}> [nix] @Ericson2314 opened pull request #3893 → Get rid of json.hpp and use nlohmann/json everywhere → https://git.io/JJo8L
orivej has joined #nixos
<clever> matthewcroughan: mostly personal preference, i prefer a seperate file and then `imports = [ ./sway.nix ];` so i can turn that whole thing off with 1 comment
<clever> and you can also reuse it on other machines more easily
<matthewcroughan> Hmm, could you do this with secrets too?
<clever> yeah
<matthewcroughan> So could you have ./secrets.nix which includes hashed passwds etc
<daddy_james[m]> how would one uninstall a package installed via ```nix-build -A```?
<clever> daddy_james[m]: `rm result`
<jackdk> and at some point `nix-collect-garbage`, I suppose
<daddy_james[m]> how would I figure out where it was installed to?
<clever> daddy_james[m]: nix-build just creates a result symlink, it doesnt install it anywhere
<daddy_james[m]> I know /lib/firmware but I know that's not a real directory in nixos
<jackdk> everything built ends up in `/nix/store`, and `result` is a symlink to it
<daddy_james[m]> ok
<daddy_james[m]> I'll look there
<daddy_james[m]> uh oh
<daddy_james[m]> it says it's a read only file system
<daddy_james[m]> even with sudo
<clever> daddy_james[m]: never try to modify /nix/store directly
<infinisil> daddy_james[m]: Why do you want to remove it? To reclaim space?
<daddy_james[m]> no, just want to test if my firmware is actually working
<clever> daddy_james[m]: why does testing involve removing?
<daddy_james[m]> I want to test something
<daddy_james[m]> yeah
<daddy_james[m]> I just want to see if it would have worked without my firmware
<daddy_james[m]> cus I changed something else in my config
<daddy_james[m]> my firmware might already be in the nixos repos
<clever> daddy_james[m]: the kernel cant find anything that nix-build created
<clever> daddy_james[m]: so undoing nix-build is pointless
<daddy_james[m]> ah, I see
<daddy_james[m]> so my firmware was useless?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<daddy_james[m]> I spent like 4 hours trying to figure it out ;(
<daddy_james[m]> f*ck me
<clever> daddy_james[m]: only a package put into the `hardware.firmware` of `configuration.nix` can have an effect on firmware loading
orivej has joined #nixos
ArtemVorotnikov[ has joined #nixos
<daddy_james[m]> well, I'm gunna go defenestrate myself
<Ke> that's 4 hours learning
<matthewcroughan> clever that's really clever :P
<daddy_james[m]> how would I have theoretically included it in my hardware.firmware anyway?
<clever> daddy_james[m]: hardware.firmware = [ (pkgs.callPackage ./something.nix {}) ]; maybe
<matthewcroughan> Man, and I thought dotfiles were cool. This is the way forward.
<daddy_james[m]> I'll try that if I ever discover I actually need to include firmware that's not in the package manager yet
<clever> daddy_james[m]: when done properly, youll find it in `ls /run/current-system/firmware/`
<matthewcroughan> clever where do I learn to write configs
<clever> matthewcroughan: i just read nixos modules
<matthewcroughan> Well yeah me too, but I can't figure out what that thing at the top is
<matthewcroughan> { pkgs, ... }:
<matthewcroughan> I can't have multiple of these in any given file, can I?
<matthewcroughan> E.g I'm trying to shove the sway thing in the bottom lol
<clever> matthewcroughan: thats defining a function that takes a set as an argument, and the set must contain a pkgs attribute
<clever> a nixos module is almost always in the form of `{ pkgs, config, ... }: { stuff = things; }`
<matthewcroughan> "set"
<clever> but the imports key makes it much simpler to merge things
<matthewcroughan> define set :D
<clever> > { a=1; b=2; }
<{^_^}> { a = 1; b = 2; }
<clever> a set contains multiple key/value pairs, the keys must be unique
<clever> 2020-08-04 01:19:30 < clever> matthewcroughan: mostly personal preference, i prefer a seperate file and then `imports = [ ./sway.nix ];` so i can turn that whole thing off with 1 comment
<clever> if you do that, then nixos will merge the sway stuff for you
<matthewcroughan> I'm close to understanding it. How would I modify my existing config.nix to include sway.nix?
<matthewcroughan> Do I put this as a set?
<matthewcroughan> `imports = [ ./sway.nix ];` IS a set, right?
<dxb[m]> matthewcroughan this has helped me quite a bit https://stephank.nl/p/2020-06-01-a-nix-primer-by-a-newcomer.html
<clever> matthewcroughan: that is a single key=value pair, that goes inside a set, the value is a list
<matthewcroughan> thanks :D dxb[m]
<dxb[m]> also a lot of good links here https://nixos.org/learn.html including some info about nix expression language
<matthewcroughan> So a set is what's inside of {} succeeding a function
<matthewcroughan> a function is {}:
<matthewcroughan> a set is what comes after a function inside of {}
<cole-h> Not necessarily just {}:
endformationage has quit [Quit: WeeChat 2.7.1]
<matthewcroughan> Y'all heard of syntaxation? :D
<matthewcroughan> This is my biggest flaw. Getting caught up on syntax.
<cole-h> > :v nameValuePair
<{^_^}> nameValuePair = nameValuePair is not defined
<cole-h> ree
<cole-h> >> nameValuePair = name: value: { inherit name value; };
<cole-h> So, a function can have `{}:` or `arg:`
<cole-h> (You can also have both)
<matthewcroughan> `{}:` is a function definition? Whereas `arg:` is a function call?
<matthewcroughan> well, function definition *and* call.
<clever> nope, both are functions
<matthewcroughan> Oh wait, I guess I'm not paying attention to what's inside the {} lol. So what is `config, pkgs, ...`
<clever> > let f = a: a*10; in f 5
<{^_^}> 50
<matthewcroughan> first, confused by the ...
<clever> the ... means it ignores any extra args
<matthewcroughan> and where are the args specified?
<clever> > let f = { a, b }: a + b; in f { b = 1; a = 5; }
<{^_^}> 6
<clever> matthewcroughan: when the function gets ran, it expects a set, containing (in my example) a and b
<matthewcroughan> so a and b must be on the right side also
<matthewcroughan> > let f = { a, b }: a + c; in f { b = 1; a = 5; }
<clever> > let f = { a, b }: a + b; in f { b = 1; a = 5; c = 42; }
<{^_^}> 'f' at (string):318:9 called with unexpected argument 'c', at (string):318:29
<{^_^}> cannot add a set to an integer, at (string):318:19
<matthewcroughan> so by removing b and replacing it with c, I have made an error
Gohla has joined #nixos
zupo_ has joined #nixos
<clever> > c
<{^_^}> { _type = "option"; declarations = <CODE>; default = <CODE>; definitions = <CODE>; description = <CODE>; example = <CODE>; files = <CODE>; highestPrio = <CODE>; isDefined = <CODE>; loc = <CODE>; optio...
<clever> you didnt say what c was, so it grabbed this c
<clever> and thats not a number, so it failed to add it with 5
<matthewcroughan> I do actually see it now, it's very indirect lol
<matthewcroughan> So we define b and a, AAAAALLLL the way over on the right
<matthewcroughan> it's backwards
<matthewcroughan> it's like reverse polish or something
zupo has quit [Ping timeout: 256 seconds]
proofofkeags has joined #nixos
<clever> a function always looks something like `args: <body>`
<clever> or `{ arg1, arg2, ... }: <body>`
<clever> args/arg1/arg2 are then in scope, when parsing the <body>
<matthewcroughan> so it literally is just backwards.
<matthewcroughan> with some syntax
<matthewcroughan> I don't know much about functional languages, is this just how it is?
<clever> its the same in imperative languages too
<clever> c for example: int f(int a, int b) { return a + b; }
<dxb[m]> is it though? in pytton you'd have `def someFunc(arg1, arg2): <body>`
<dxb[m]> * is it though? in python you'd have `def someFunc(arg1, arg2): <body>`
pr06lefs has quit [Ping timeout: 260 seconds]
<dxb[m]> in Go you have `func someFunc(arg1 type, arg2 type){ <body> }`
<clever> the only real difference between functional and imperative, is that functional requires <body> to be an expression returning 1 value
<clever> while imperative has <body> being multiple statements, that can have side-effects and not return something
<dxb[m]> and in nix it's `someFunc = {arg1, arg2}: <body>`
<matthewcroughan> clever so how is it that there are no side effects when we enable sway?
<matthewcroughan> programs.enable.sway how does this actually get accomplished?
<matthewcroughan> what does it mean to have no side effects? What is a side effect of pacman -S sway ?
<clever> matthewcroughan: the function is just returning a set like { programs.enable.sway = true; }
<clever> something else (a nixos module) then reads that from the config tree, and acts on it
pr06lefs has joined #nixos
<clever> matthewcroughan: if programs.sway.enable is true, then line 109-133 is put into the config key, but if programs.sway.enable is false, you just get config = {};
Rusty1 has quit [Quit: WeeChat 2.3]
<matthewcroughan> have you got any examples of importing in the default config?
<matthewcroughan> these let's and in's are making me nervous, since I don't understand them lol
<clever> let key1=<expr>; key2=<expr>; in <expr>
<clever> that just creates 2 more values, key1 and key2, which the 3rd <expr> can reference
<matthewcroughan> I have literally no idea what you're saying, I'm sorry, I lack a principal understanding :P
<clever> have you read the nix pills yet?
<matthewcroughan> I just need to see some dumb examples, then I can narrow in
<clever> > let a = 42; in a
<{^_^}> 42
<clever> > let a = 42; in a - 10
<{^_^}> 32
<matthewcroughan> what is being printed?
<matthewcroughan> it's so invisible
<clever> the expression after the `in`
<matthewcroughan> why not just say a = 42; print(a-42)
<matthewcroughan> sorry, print(a-10)
<matthewcroughan> like this is why I can't wrap my head around it
<clever> because print is causing a side-effect, a functional language can only return a value
<matthewcroughan> okay, but I don't see what is being operated on
<matthewcroughan> print() makes it clear in its args
<clever> the bot just parses the entire line, and prints the value out
<clever> > 42
<{^_^}> 42
<clever> > 5 * 10
<{^_^}> 50
<matthewcroughan> > a - 10
<{^_^}> value is a set while an integer was expected, at (string):318:1
<clever> > a
<{^_^}> { x = 10; y = <CODE>; }
<matthewcroughan> > in a - 10
<{^_^}> error: syntax error, unexpected IN, at (string):318:1
<clever> `a` wasnt a number, so you cant subtract from it
<clever> the keys from a let block only exist temporarily
<matthewcroughan> a = 42; a - 10
<matthewcroughan> > a = 42; a - 10
<{^_^}> error: syntax error, unexpected '-', expecting '.' or '=', at (string):39:12
Forkk has joined #nixos
<matthewcroughan> I just don't get what the words do
<clever> when you do `let a = 42; in a`, the a only exists during the `in a`, and then it stops existing
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<clever> matthewcroughan: did you read the nix pills?
<matthewcroughan> I don't get what let does, I'm sorry.
<matthewcroughan> No, I'm busy getting instructed by you :P
<clever> ,pills matthewcroughan
<{^_^}> matthewcroughan: https://nixos.org/nixos/nix-pills
<matthewcroughan> I'm not driven by reading, I'm driven by end goals, that means I want to get sway running, and I'll only read what it takes to get there,
<matthewcroughan> just how I'm wired
<matthewcroughan> I'll read later if it takes it, but right now I just wanna import into a part of my config
<matthewcroughan> and I can't understand the syntax, because the syntax is not clear, since there are words in all the examples, but none in the default config
<matthewcroughan> there are no lets, ins or other keywords in the default config
<clever> any time you can have a value, you can also have a `let key = expr; in value`
<matthewcroughan> therefore I do not understand how to use import, because there are too many unknowns surrounding what is and is not required.
<dxb[m]> i would suggest this over nix pills for syntax related stuff https://nixos.wiki/wiki/Nix_Expression_Language
<matthewcroughan> excellent
<{^_^}> [nixpkgs] @marsam opened pull request #94640 → racket: 7.7 -> 7.8 → https://git.io/JJozx
<dxb[m]> and i get what you're saying about not wanting to read a bunch of stuff that's not directly related to the current goal, but your questions aren't related to that goal either, and these links answer the questions you're asking and probably do a better job than clever could do off the top of his head in a conversation
<matthewcroughan> So, verbose learning aside, I can't do the simple thing for reasons I do not understand.
<matthewcroughan> I placed `imports = [ ./sway.nix ];` at the end of the default config.
<matthewcroughan> And sway.nix is a file in /etc/nixos/sway.nix of course
<dxb[m]> because of nix's ability to rollback a broken config, or completely undo any change you make, there's not much risk in experimenting like crazy
<matthewcroughan> So, I'm running into stuff being already defined.
<dxb[m]> just add it to the current imports line that's already there
<clever> 2020-08-04 01:33:40 < clever> a set contains multiple key/value pairs, the keys must be unique
<clever> matthewcroughan: there must only be a single imports = [ something ]; in the set
<matthewcroughan> Well that makes sense, lol.
<matthewcroughan> Did not realise there was one. Makes sense.
<matthewcroughan> So that's that goal satisfied.
<matthewcroughan> Except for one small twist. `sway/config".source = ./dotfiles/sway/config;`
<matthewcroughan> I was hoping to use the default sway config :P
<matthewcroughan> which *sad tuba* isn't provided!
hyper_ch2 has quit [Ping timeout: 240 seconds]
<matthewcroughan> just copied it off the internet, now I have this `error: The option `location.latitude' is used but not defined.`
<matthewcroughan> bug in the provided example?
<clever> matthewcroughan: does it say where its being used?
<matthewcroughan> sway.nix
<matthewcroughan> sorry, my assumption, incorrect
<clever> the sway.nix you made, or another sway.nix?
<matthewcroughan> I know where it is, it's in the redshift thing
<matthewcroughan> but can't find proof
<clever> if you enable redshift, you must tell it where you are located
<matthewcroughan> sway.nix I made from the provided config here https://nixos.wiki/wiki/Sway
<clever> and the example didnt include that
<matthewcroughan> neat!
<matthewcroughan> clever if I want to use geoclue2 what do you think has to happen ?
tru_tru has joined #nixos
domogled has joined #nixos
<clever> not sure that will work
<matthewcroughan> and do I have to specify this as `redshift.location.provider = "geoclue2"` ?
<clever> location.provider = "geoclue2";
<matthewcroughan> and this has to be specified inside of the services.redshift set
<matthewcroughan> ?
<clever> no
<clever> the option isnt called services.redshift.location.provider
terribleArtist has quit [Ping timeout: 240 seconds]
Mateon1 has quit [Remote host closed the connection]
Mateon1 has joined #nixos
<matthewcroughan> clever it's magical, it just build geoclue2
<matthewcroughan> wtf
<matthewcroughan> completion
<clever> matthewcroughan: if you read the module, youll see why
<matthewcroughan> There are other complications, I haven't been able to launch sway
<clever> matthewcroughan: if you set the provider to geoclue2, then it sets services.geoclue2.enable = true;
bsima has joined #nixos
<matthewcroughan> for reasons I don't get on any other distribution, like logind, direct-ipc, session
<matthewcroughan> clever that is very nice
<matthewcroughan> that's what declarative means then, it means a lot of things..
<matthewcroughan> options can be equivalent to other things
<matthewcroughan> I cannot simply launch `sway` like I am used to, hmm
<matthewcroughan> maybe there's another way
maier has joined #nixos
<clever> ive not used sway yet, so i cant help much in that area
chipb has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
<cole-h> Why can't you just launch sway?
orivej has joined #nixos
<matthewcroughan> permission issues cole-h
<matthewcroughan> stuff I've never ever seen before on any other distro lol
<matthewcroughan> having trouble getting the logs out to a file
sangoma has joined #nixos
<kini> I guess there was some kind of disk space issue on hydra.nixos.org recently, from looking at some aborted build logs... is there an easy way to detect when this has happened, as opposed to more normal build failures? Is there some kind of status tracker for hydra that would show large upticks in failed builds, or health metrics on the build hosts, etc.?
<clever> kini: there is a grafana monitoring all of that, and reporting alerts to #nixos-dev
maier has quit [Ping timeout: 256 seconds]
<matthewcroughan> cole-h I cannot get that text to output to a file.. it's coming out of dbus
<matthewcroughan> not going to stdout, this upsets me a lot lol
<kini> clever: aha, cool. I see they're on https://status.nixos.org/
<dxb[m]> matthewcroughan have you seen this? https://nixos.wiki/wiki/Sway
<matthewcroughan> No, it's the only thing that outputs to stderr properly :P
<matthewcroughan> https://termbin.com/kdus
<chipb> jtojnar: when trying to solve the same issue, I stumbled across irc logs where you were trying to import nixpkgs.nixosModules.notDetected way back (2020/05/27) when you were trying out flakes. I can't speak to whether it's the best way or not, but I ended up importing "${modulesPath}/installer/scan/not-detected.nix" instead. you may also need to add modulesPath to the toplevel arguments list of the file.
<{^_^}> [nixpkgs] @zowoq merged pull request #94584 → .github/workflows/wait-ofborg.yml: double timeout if base branch is staging → https://git.io/JJwa3
<{^_^}> [nixpkgs] @zowoq pushed to master « .github/workflows/wait-ofborg.yml: double timeout if staging »: https://git.io/JJog7
<matthewcroughan> dxb[m] that is literally what I am following and what my sway.nix *is*
<matthewcroughan> ah sway-session
<matthewcroughan> I looked for sway.service
simba1 has joined #nixos
<clever> chipb: pkgs.path returns the path to nixpkgs also
<matthewcroughan> No, sway-session.service does not exist, the wiki doesn't contain enough info
<chipb> clever: would that not also hit infinite recursion too? hm.
<cole-h> sway-session isn't a service, it's a target, usually.
<clever> chipb: ah yeah, since pkgs depends on imports
<matthewcroughan> I don't really know enough to know what that means cole-h-h
<matthewcroughan> I'm just used to running `sway` on every other linux distro
<matthewcroughan> after setting XDG_RUNTIME_DIR to tmp
<cole-h> `systemctl status --user sway-session` won't work -- you need to append `.target`
<matthewcroughan> perms denied
tru_tru has quit [Ping timeout: 240 seconds]
<cole-h> what
<matthewcroughan> You heard. Permission denied :P
<matthewcroughan> Persimmons.
pr06lefs has quit [Ping timeout: 260 seconds]
<kini> Hmm, weird. Looking at the grafana reports, the machines where I see "no space left on device" errors (https://hydra.nixos.org/build/124705541) seem to look fine in terms of fs usage
<matthewcroughan> Huh, it works fine over ssh but not on the system itself wtf
<matthewcroughan> maybe it's because I `su matthew`'d
tru_tru has joined #nixos
<matthewcroughan> oooh maybe that was the problem the whole time lmfao
<matthewcroughan> I can run `sway` if I don't su into matthew
<cole-h> kini: Issue was fixed earlier today I believe. No channel eval has since completed.
<matthewcroughan> man permissions are complicated
dermetfan has joined #nixos
<matthewcroughan> It was *THIS* the whole time
<{^_^}> nix#3891 (by edolstra, 16 hours ago, closed): hydra-queue-runner leaks NARs in /tmp
<kini> cole-h: I see, but I figured I would at least be able to see the problem in grafana by scrolling back to the time of evaluation -- but no, fs usage looks low throghout
<clever> matthewcroughan: polkit and physical terminals come into play
<chipb> jtojnar: clever: I *think* the "correct" way is probably to import directly in the flake file instead of indirectly through a few modules/imports, but have not yet tested. I presume you did the same thing I did and were also starting from a naive conversion of an existing configuration.nix that includes a hardware.nix.
<clever> matthewcroughan: if you login from a text console, you get different permissions from if you login via ssh, or change user with su/sudo
<kini> cole-h: thanks for the link. I wonder if maybe the grafana dashboard excludes /tmp from the fs usage calculation, or something.
<matthewcroughan> yes, but not on the systems I use really
<matthewcroughan> namely arch and alpine
<chipb> er. I guess it'd just be the module in the list in the flake.nix rather than an import there.
<cole-h> kini: That'll be because the grafana dashboard measures the builder instances, whereas I think the problem was on the main instance of hydra (dubbed ceres, IIRC)
<clever> chipb: scan/not-detected.nix literally only does 1 thing, hardware.enableRedistributableFirmware = lib.mkDefault true;
<clever> chipb: you can just paste that into your config instead
<chipb> (and I'm probably mangling terminology. I'm rather green.)
<chipb> clever: yeah, I also realized that *after* I futzed around with it about an hour.
<chipb> ;_;
<kini> cole-h: ahh, got it. Yes, I looked up ceres in grafana and I see the fs usage drop from ~95% to ~20% about 16 hours ago :) mystery solved!
<cole-h> :)
palo1 has joined #nixos
bsima has quit [Quit: ZNC 1.7.5 - https://znc.in]
cole-h has quit [Quit: Goodbye]
<chipb> I guess most of that time was not actively futzing, but trying to understand the mechanics of how modules worked, anyhow.
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<chipb> clever: in any case, thanks. you were also helpful in getting me on the right track in the irc log. :-)
<matthewcroughan> cole-h for some reason starting the sway-session.target doesn't start the session anywhere :thinking:
<matthewcroughan> Says it's started, but I don't see no sway.
bsima has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #94641 → .github/workflows/editorconfig.yml: remove branch restriction → https://git.io/JJo24
serrvan has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<clever> matthewcroughan: did you login from a text console?
<matthewcroughan> nope, when I log in from text console I can't even get that far
<matthewcroughan> I think it's because sway.service does exist
<matthewcroughan> sway-session is something else
<matthewcroughan> starting sway.service does indeed fail
<matthewcroughan> dbus-daemon, no such file or directory haha
<matthewcroughan> But my user can call dbus-daemon on his own
<matthewcroughan> More reading tells me that you're supposed to startsway, and not worry about the systemd services.
polezaivsani has joined #nixos
tru_tru has quit [Ping timeout: 256 seconds]
tru_tru has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #94642 → patchShebangs: performance/readability optimization → https://git.io/JJo2H
spudly- has joined #nixos
spudly- has quit [Changing host]
spudly- has joined #nixos
maier has joined #nixos
spudly has quit [Ping timeout: 256 seconds]
spudly- is now known as spudly
tru_tru has quit [Ping timeout: 240 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tru_tru has joined #nixos
<matthewcroughan> colemickens I'm off to bed now, but man you are my IDOL
<matthewcroughan> I cannot believe YOU are the one responsible for all the nixpkg-wayland stuff, I just noticed
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
growpotkin has quit [Quit: ZNC 1.8.1 - https://znc.in]
abathur has quit [Ping timeout: 240 seconds]
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @doronbehar opened pull request #94643 → wrapNeovim: fix darwin build → https://git.io/JJoaP
mallox has joined #nixos
orivej_ has quit [Read error: Connection reset by peer]
orivej has joined #nixos
mallox has quit [Client Quit]
zupo has joined #nixos
alp has joined #nixos
frodo has joined #nixos
alexherbo2 has joined #nixos
alexherbo2_ has joined #nixos
m0rphism has joined #nixos
hyper_ch2 has quit [Quit: Connection closed]
<frodo> Hello, I just added stack to my configuration file, but when I run nixos-rebuild switch, I get the following error:
<frodo> Any ideas?
hyper_ch2 has joined #nixos
kalbasit has quit [Ping timeout: 256 seconds]
<frodo> I have similar errors when I add other haskell packages, such as cabal-install
<ar> btw, you're running 19.09?
<frodo> Hm, according to my configuration file, I'm running 20.03
<frodo> system.stateVersion = "20.03"; # Did you read the comment?
<ar> nix-channel --list?
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
karantan has joined #nixos
<{^_^}> [nixpkgs] @danieldk merged pull request #94643 → wrapNeovim: fix darwin build → https://git.io/JJoaP
<frodo> That's weird... my config says 20.3, but nix-channel --list says 19.09...
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJowx
alp has quit [Ping timeout: 256 seconds]
n9nes has quit [Ping timeout: 246 seconds]
matthewcroughan has quit [Ping timeout: 256 seconds]
simba1 has quit [Ping timeout: 256 seconds]
sputny has joined #nixos
user_0x58 has quit [Ping timeout: 260 seconds]
n9nes has joined #nixos
noudle has joined #nixos
n9nes- has joined #nixos
n9nes has quit [Ping timeout: 260 seconds]
<srhb> frodo: Users have differing channels
<srhb> frodo: You may be using root's channels for nixos :)
<frodo> I'm root at the moment
<srhb> frodo: However, stateVersion and nixpkgs version are uncoupled, (hence the important comment)
<frodo> Do you think that has something to do with my error?
<srhb> No idea, there's not much information in it.
pjt_tmp has quit [Ping timeout: 256 seconds]
<dminuoso> Using emacsWithPackages, is there a way to use-package something from github, rather than from elpa/melpa/core?
<srhb> I can build stack from a fresh 19.09 checkout -- a7ceb2536ab11973c59750c4c48994e3064a75fa
cfricke has joined #nixos
<srhb> frodo: Maybe pastebin your config.
xelxebar has quit [Remote host closed the connection]
jonringer has quit [Ping timeout: 244 seconds]
lsix has joined #nixos
xelxebar has joined #nixos
__monty__ has joined #nixos
<frodo> This is my config: https://pastebin.com/bgE4h1Lv
<{^_^}> [nixpkgs] @danieldk merged pull request #94640 → racket: 7.7 -> 7.8 → https://git.io/JJozx
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJoov
<frodo> If I comment out stack, the system builds. If I uncomment it, this happens: https://pastebin.com/2339kh4c
drakonis has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @danieldk merged pull request #94534 → navidrome: 0.24.0 -> 0.27.0 → https://git.io/JJV7b
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJooU
<srhb> frodo: Can you switch to the built system version without stack it and paste the output of nixos-version please?
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<clever> frodo: line 27, your nix.extraOptions is a complete mess
itshaydendev has joined #nixos
<clever> frodo: all of the newlines are missing
<srhb> frodo: Oh nevermind, I just noticed it _is_ head of nixos-20.09. stack certainly builds there, so that's not it.
<clever> frodo: having all of that junk in the extra-sandbox-paths could easily break your ability to build anything, `--option extra-sandbox-paths ''` would bypass it temporarily
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #94612 → katago: 1.4.4 -> 1.5.0 → https://git.io/JJrVb
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/JJoot
<frodo> Actually, nixos-version says: 19.09.2520.289466dd6a1 (Loris)
<srhb> frodo: Yeah I just noticed the version from the drv name in your output, forgot it was there.
<frodo> Ok, I'll comment out the extra-sandbox-paths to see what happens
<{^_^}> [nixpkgs] @danieldk merged pull request #94526 → mill: 0.7.4 -> 0.8.0 → https://git.io/JJVQc
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JJooZ
orivej has quit [Quit: No Ping reply in 180 seconds.]
alp has joined #nixos
orivej has joined #nixos
<frodo> Nah, getting the same error after I commented out all of the nix.extraOptions section
<clever> frodo: did you also `--option extra-sandbox-paths ''` ?
<frodo> You mean after nixos-update switch?
<clever> frodo: during the switch
<clever> nixos-update switch --option extra-sandbox-paths ''
<frodo> that worked!
<frodo> Thanks!
<clever> the problem is the current /etc/nix/nix.conf
<clever> it cant make the new one to fix the problem, enless you override it with --option
wfranzini has joined #nixos
wfranzini has quit [Client Quit]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
stephaneyfx has quit [Quit: Leaving]
cjpbirkbeck has quit [Quit: Goodbye, take care]
fnlaai has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
mariatsji has joined #nixos
Alling has joined #nixos
<Alling> Hello guys! I'm struggling a lot with Nextcloud atm. Had it working and could login at one point, but then I made more changes and now nothing works. PostgreSQL is being an absolute PITA. I just want to "start over completely". How?
<fnlaai> idk
<Alling> For example: `sudo -u nextcloud psql --list`
<Alling> I see four databases. I want to see none.
<{^_^}> [nixpkgs] @Mic92 merged pull request #91146 → nixos/zfs-replication: document expected lz4 on host system → https://git.io/JfbaP
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JJo6z
<clever> Alling: stop the postgresql service, and them kill everything in /var/lib/postgresql/
o1lo01ol1o has joined #nixos
rgrau has joined #nixos
<{^_^}> [nixpkgs] @danieldk merged pull request #94509 → jdupes: 1.17.0 -> 1.18.2 → https://git.io/JJV1y
<{^_^}> [nixpkgs] @danieldk pushed 3 commits to master: https://git.io/JJo6K
<Alling> clever: OK. I tried `sudo systemctl stop postgresql.service; sudo rm -rf /var/lib/postgresql; sudo systemctl start postgresql.service` but I still see the same databases.
<Alling> All of them are owned by `postgres` which is not a user on my system so it doesn't seem like I can even delete them.
<Alling> But I just want to "delete everything" and start over with `nixos-rebuild switch`.
<clever> one minute
<fnlaai> i guess nixos-rebuild switch doesn't delete data but apply config
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #94085 → clipmenu: 6.0.1 -> 6.1.0 → https://git.io/JJExw
<{^_^}> [nixpkgs] @Mic92 pushed 6 commits to master: https://git.io/JJo6P
<clever> Alling: nextcloud might be re-creating the databases on startup
<Alling> fnlaai: Yeah, so I want to "delete everything" manually, but I don't know what "everything" is. I basically want my system to be as if I've never done anything PostgreSQL- or Nextcloud-related.
mlatus has joined #nixos
<Alling> clever: Ah, could be. One of the databases is names nextcloud.
<mlatus> > pkgs.hello
<{^_^}> "<derivation /nix/store/iylhv1jiapks1396jz2fv8wq85q68y6y-hello-2.10.drv>"
<Alling> Then we have: 17.03 and earlier: the superuser is root 17.09 and later: the superuser is postgres
<clever> Alling: there is also a /var/lib/nextcloud/
<Alling> `psql: FATAL: Peer authentication failed for user "postgres"`
<Alling> Should I make sure my system has a `postgres` user if I want to use Postgres with `stateVersion: "20.03"`?
<Alling> Would be nice to be able to specify the superuser for Postgres.
<clever> Alling: i believe thats fully automated by the postgres module
mlatus has quit [Remote host closed the connection]
<clever> Alling: there is a services.postgresql.superUser option, and the default varies, based on stateVersion
BlessJah has quit [Ping timeout: 256 seconds]
smatting_ has joined #nixos
<Alling> clever: D'oh! Couldn't find it here though: https://nixos.org/nixos/manual/options.html
Mateon1 has quit [Remote host closed the connection]
<clever> Alling: what search term did you use?
<clever> Alling: oh wait, line 209, internal = true;
<clever> that hides the option from all docs
<{^_^}> [nixpkgs] @FRidh closed pull request #74980 → WIP: init nidaqmx → https://git.io/JeD8f
<Alling> After setting `superUser = "root"`, I get A LOT of `FATAL: role "root" does not exist` in the journal and then timeout on starting Postgres.
cizra has joined #nixos
<clever> Alling: changing the superUser will completely break everything in /var/lib/postgresql
<Alling> I'll try with `identMap = "superuser root postgres"`.
<clever> thats what the stateVersion stuff is for, so it wont change when you upgrade nixpkgs
<clever> but, if you dont have anything in the db, you can just rm -rf it again
<clever> and it will re-make it to fit the new superUser
<rgrau> hi everyone, since the last update of python27Package.urwid, it's failing to build for me. Added the report there, and tried it locally with latest nixpkgs repo. Is there any way I can make sure it's a general thing, not just me? https://github.com/NixOS/nixpkgs/pull/94034
<{^_^}> #94034 (by veehaitch, 1 week ago, merged): pythonPackages.urwid: 2.1.0 -> 2.1.1
<cizra> Hello! I'm trying to set up dev environment by https://nixos.wiki/wiki/Development_environment_with_nix-shell - but I'm hitting an obstacle. SCons calls Cxxtest, cxxtest calls /usr/bin/env python, and python is NOT found by cxxtest, although it's available in shell. My shell.nix is: with import <nixpkgs> {}; pkgs.mkShell { buildInputs = [ gcc scons boost mariadb-connector-c python git ]; }
<Alling> clever: So, all in all, what should I do? Upgrading is not an issue at all; I'm trying to set up Nextcloud for the first time.
<fps> cizra: get yourself some stdenv package and then use the patchShebangs bash command
<clever> Alling: not sure, i try to avoid postgres when possible
<fps> cizra: oh, maybe not. ignore me
Mateon1 has joined #nixos
<Alling> clever: OK, but it's explicitly recommended for Nextcloud.
<Alling> I just want to set up a working Nextcloud. ¯\_(ツ)_/¯
frodo has quit [Remote host closed the connection]
<fnlaai> why avoid postgres? clever it's the best sql dbms they said?
<clever> Alling: try blowing away /var/lib/postgres and /var/lib/nextcloud again?
<Alling> OK!
<clever> fnlaai: all of my experience is with mysql and sqlite, and postgres is just too different
<fnlaai> although it's learning curve is hard
terribleArtist has joined #nixos
<fnlaai> yep that's right.
<cizra> fps: :)
<fnlaai> cost in learning curve
<fps> cizra: what's the precise error message?
<cizra> fps: sh: g++: command not found. (when compiling code)
<Alling> clever: Bam! Deleting /var/lib/nextcloud did the trick! <3
<cizra> fps: /usr/bin/env: 'python': No such file or directory (when generating unittest runner)
<fps> cizra: what happens if you replace gcc with stdenv?
<cizra> fps: same
<fps> and if you create the shell with nix-shell -p gcc scons boost mariadb-connector-c python git
<clever> cizra: are you using nix-shell?
<cizra> clever: yes. Let me paste you full terminal output
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<cizra> fps: clever: https://paste.ee/p/yRqjh
<clever> cizra: oh right, i have seen scons nuke env vars before, breaking nix builds
<clever> if you do `type python` and `type g++`, you should see that they are available
<Alling> clever: Thank you so much! Love this channel. <3
<cizra> clever: Yes, they are available in shell (as mentioned before). Not through scons, though. How do I proceed? I wouldn't like to nuke scons just yet.
<clever> cizra: read the build file that scons is using
<cizra> clever: can't see it modifying PATH
<fps> quote from the manpage: "scons does not automatically propagate the external environment used to execute scons to the commands"
<cizra> ugh
<fps> there's a section on how to propagate the environment
<clever> been there, pulled my hair out, lol
<clever> you need to modify something to make it NOT modify PATH, because it nukes everything by default
<{^_^}> [nixpkgs] @offlinehacker merged pull request #94606 → hivex: 1.3.18 -> 1.3.19 → https://git.io/JJwAL
<{^_^}> [nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/JJo13
<cizra> clever: fps: Thanks, it's now compiling fine.
xourt has joined #nixos
sigmundv has joined #nixos
<Ke> mostly does not delete anything, though activation scripts can touch things in any ways possible
<Ke> but normally no nix derivations are deleted from nix/tore
<Ke> * but normally no nix derivations are deleted from /nix/store
<Ke> you do this by running nix-collect-garbage (--delete-old)
<Ke> or some other similar command that basically does the same thing
<eyJhb> If anyone has a better way to override stuff than this - https://termbin.com/57gm coupled with this https://termbin.com/4e70
<eyJhb> Just throwing it out here again, maybe clever has a suggestion as well
<eyJhb> bqv: extend how?
orivej has quit [Ping timeout: 246 seconds]
nixuser has joined #nixos
<nikita`> hi, this is a long shot and I can't prioritize this right now because I'm interviewing, but is Nix (and Nixpkgs) open for in-tree ports to NetBSD if they stay well-maintained? Just checking out if nix is easier to handle with this than guix.
xourt has quit [Remote host closed the connection]
cizra has left #nixos [#nixos]
turion has joined #nixos
<nikita`> the main issue with guix was opting to not support more than one libc (glibc), which created a whole set of difficulties to expensive to maintain. I'd start looking into if this is possible differently/more liberal with nix once I have the time for this.
<{^_^}> [nixpkgs] @lsix opened pull request #94646 → skypeforlinux: 8.62.0.85 -> 8.63.0.76 → https://git.io/JJoMW
<srhb> nikita`: Not to dissuade you, but I think it's unlikely that there's a strong enough consensus about this that this irc channel will know. Maybe it's a question better posed on the discourse :)
<nikita`> rght
<nikita`> thanks
konobi has joined #nixos
n9nes- has quit [Ping timeout: 264 seconds]
c0c0 has joined #nixos
n9nes has joined #nixos
Alling has quit [Remote host closed the connection]
nixbitcoin_ has quit [Quit: nixbitcoin out]
nixbitcoin has joined #nixos
<eyJhb> > :p (lib.mkMerge [ { "test" = { "urls" = [ "tt" ]; };} { "test" = { "name" = "yeees"; };} ])
<{^_^}> { _type = "merge"; contents = [ { test = { urls = [ "tt" ]; }; } { test = { name = "yeees"; }; } ]; }
<eyJhb> Well, what
dermetfan has quit [Ping timeout: 256 seconds]
<{^_^}> [nix] @edolstra merged pull request #3892 → Move ValidPathInfo to its own header → https://git.io/JJrpI
<{^_^}> [nix] @edolstra pushed 3 commits to master: https://git.io/JJoMQ
waleee-cl has joined #nixos
thc202 has joined #nixos
jasongrossman has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
magnetophon has joined #nixos
<{^_^}> [hydra] @edolstra pushed to master « Restore NoCheckSigs »: https://git.io/JJoDP
<clever> eyJhb: mkMerge and mkIf return a special set, that the module system will post-process at a later point
mathyouguy has quit [Quit: Idle for 30+ days]
iwvt[m] has quit [Quit: Idle for 30+ days]
daraul[m] has quit [Quit: Idle for 30+ days]
flip[m] has quit [Quit: Idle for 30+ days]
gxt has joined #nixos
o1lo01ol1o has joined #nixos
johnnyfive has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
n9nes has quit [Ping timeout: 265 seconds]
n9nes- has joined #nixos
lord| has quit [Ping timeout: 240 seconds]
domogled1 has joined #nixos
asymptotically has joined #nixos
lord| has joined #nixos
domogled has quit [Ping timeout: 264 seconds]
domogled1 is now known as domogled
Neo--- has joined #nixos
b1000101 has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to python-unstable: https://git.io/JJoSv
knupfer has joined #nixos
johnnyfive has joined #nixos
malook has quit [Remote host closed the connection]
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @vbgl merged pull request #94056 → ocaml-ng.ocamlPackages_4_11.ocaml: 4.11.0+β2 → 4.11.0+β3 → https://git.io/JJEBD
<{^_^}> [nixpkgs] @vbgl pushed to master « ocaml-ng.ocamlPackages_4_11.ocaml: 4.11.0+β2 → 4.11.0+β3 »: https://git.io/JJoSa
turion has quit [Quit: Leaving.]
johnnyfive has quit [Ping timeout: 246 seconds]
knupfer1 has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #94647 → ocamlPackages.ppx_deriving_yojson: 3.5.2 → 3.5.3 → https://git.io/JJoS9
jakob_rs has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
johnnyfive has joined #nixos
<jakob_rs> Sound doesn't work, but only on nixos-unstable, and only with linuxPackages_latest. How would I try to debug something like this?
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<chrismatheson> Hello folks!!! on my journey to a nix managed go dev env ..... what's the easiest way to install specific go packages as part of my env in my default.nix expression ? I don't feel like im up to the task of adding packages to the registry yet .... is there a way to express a set of shell commands to eval in my nix-shell ??
wallacer3 has quit [Ping timeout: 240 seconds]
knupfer1 has joined #nixos
jakob_rs has quit [Quit: WeeChat 2.7.1]
<eyJhb> For dev in Go chrismatheson I would just use go.mods
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
wallacer3 has joined #nixos
malook has joined #nixos
knupfer1 has joined #nixos
<eyJhb> srhb: do you have time to merge a PR? https://github.com/NixOS/nixpkgs/pull/94452
<{^_^}> #94452 (by eyJhb, 2 days ago, open): androidenv.build-tools: add libc++ to enable buildToolsVersion 29.0.3
<eyJhb> Or anyone with merge access, it is as simple as it gets :p
<srhb> eyJhb: Nope, maybe this evening.
<eyJhb> Sure, that is fine :D If you don't get the time that is fine as well :)
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
malook has quit [Remote host closed the connection]
<{^_^}> [hydra] @edolstra pushed 3 commits to master: https://git.io/JJoHS
<eyJhb> clever: Seems like I have to use `lib.zipAttrsWith` as far as I can see
knupfer1 has joined #nixos
<eyJhb> But not sure if it generally is the best way, I am going about doing these things. But for now I guess it has to suffice, until there comes a PR for all this stuff
terribleArtist has quit [Ping timeout: 265 seconds]
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @moritzschaefer opened pull request #94648 → Add imagemagick-support to exwm's emacs → https://git.io/JJoQv
graf_blutwurst has joined #nixos
mixmixmix has joined #nixos
knupfer1 has joined #nixos
malook has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
<mixmixmix> Hello everyone! I'm switching to unstable and have a package which is broken (Package ‘gst-plugins-base-0.10.36’ is marked as broken). I would like to know what packages depend on it to exlude them, but stack-trace leads back to `error: while evaluating the attribute 'activationScript' of the derivation ` What does it mean?
malook has quit [Ping timeout: 256 seconds]
alp has quit [Ping timeout: 246 seconds]
knupfer1 has joined #nixos
jboy has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
alp has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
jboy has quit [Quit: bye]
<{^_^}> [nixpkgs] @danieldk merged pull request #94469 → navi: init at 2.7.1 → https://git.io/JJVlP
<{^_^}> [nixpkgs] @danieldk closed pull request #82476 → navi: init 2.1.1 → https://git.io/Jv6QP
<{^_^}> [nixpkgs] @danieldk pushed 3 commits to master: https://git.io/JJo7w
Thra11_ has quit [Ping timeout: 240 seconds]
knupfer1 has joined #nixos
Darkmatter66_ has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
Darkmatter66 has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
Thra11_ has joined #nixos
malook has joined #nixos
wnklmnn has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer has joined #nixos
malook has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jojosch opened pull request #94650 → dbeaver: 7.1.3 -> 7.1.4 → https://git.io/JJodn
alp has quit [Remote host closed the connection]
knupfer1 has joined #nixos
alp has joined #nixos
fnlaai has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jojosch opened pull request #94651 → mycli: 1.22.1 -> 1.22.2 → https://git.io/JJoda
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
__monty__ has quit [Quit: leaving]
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @Luflosi opened pull request #94652 → kakoune: 2020.01.16 -> 2020.08.04 → https://git.io/JJoFL
orivej has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<jtojnar> chipb: yeah, I considered that. In the end, I went with passing `inputs` to `specialArgs` and using `inputs.nixpkgs.nixosModules.notDetected` since I also need to import other files from nixpkgs (e.g. `"${inputs.nixpkgs}/nixos/lib/make-system-tarball.nix"`)
quinn has quit [Quit: ZNC 1.8.1 - https://znc.in]
knupfer1 has joined #nixos
jboy has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @mweinelt merged pull request #94651 → mycli: 1.22.1 -> 1.22.2 → https://git.io/JJoda
<{^_^}> [nixpkgs] @mweinelt pushed 2 commits to master: https://git.io/JJobc
magnetophon has quit [Read error: Connection reset by peer]
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @FRidh pushed to staging-next « messagelib: no longer depend on qtwebkit »: https://git.io/JJob4
allsyed[m] has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 349 commits to staging-next: https://git.io/JJob2
magnetophon has joined #nixos
knupfer1 has joined #nixos
turlando has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @jojosch opened pull request #94654 → jellyfin-mpv-shim: 1.5.11 -> 1.6.0 → https://git.io/JJoNR
knupfer1 has joined #nixos
<{^_^}> [nixpkgs] @mweinelt opened pull request #94655 → python3Packages.asynctest: disable tests on python >= 3.7 → https://git.io/JJoNP
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
<{^_^}> [nixpkgs] @mweinelt merged pull request #94423 → josm: 16731 -> 16812 → https://git.io/JJaF7
<{^_^}> [nixpkgs] @mweinelt pushed 2 commits to master: https://git.io/JJoAJ
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJoAm
CptCaptain has joined #nixos
<CptCaptain> I have an app I want to package which expects /usr/bin/wget to exist. How can I accomplish this?
knupfer1 has joined #nixos
<eyJhb> CptCaptain: patch it
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
maier has quit [Ping timeout: 264 seconds]
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
knupfer1 is now known as knupfer
<CptCaptain> It's a binary distributed file
<makefu> CptCaptain: there is a ld_preload trick for that kind of issue or there is fhsuserenv
alp has quit [Ping timeout: 256 seconds]
<makefu> https://nixos.wiki/wiki/Packaging/Quirks_and_Caveats#Test_cannot_access_.2Fetc.2Fprotocols.2C_.2Fetc.2Fservices_or_expects_a_special_.2Fetc.2Fpasswd_when_building_in_sandbox < this may help
zupo has joined #nixos
<CptCaptain> Dankö
knupfer1 has joined #nixos
<makefu> Bittö
<eyJhb> Sounded like it was from source, sorry CptCaptain :)
<CptCaptain> eyJhb: No worries, I didn't mention it 😅
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
BlessJah has joined #nixos
maier has joined #nixos
dongcarl has quit [Read error: Connection reset by peer]
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
<makefu> CptCaptain: when you encounter that kind of issues there are very (VERY VERY) likely more to come. good luck
dongcarl has joined #nixos
knupfer1 has joined #nixos
alp has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
noudle has quit []
knupfer1 has joined #nixos
emmanuel` has joined #nixos
anderslundstedt has quit [Quit: leaving]
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
justanotheruser has quit [Ping timeout: 260 seconds]
CMCDragonkai1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
CMCDragonkai1 has quit [Remote host closed the connection]
knupfer1 has joined #nixos
Aesth has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
orivej_ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
Thra11_ has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @edolstra closed pull request #35366 → nixos: properly disable sound by default, if stateVersion > 18.03 → https://git.io/vAgpa
knupfer1 has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #92813 → nfs-ganesha: init at 3.3 → https://git.io/JJm2H
<{^_^}> [nixpkgs] @markuskowa pushed 3 commits to master: https://git.io/JJojP
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
cizra has joined #nixos
<cizra> How to get the list of currently visible packages in nix-shell --pure? (I'm trying to use nix-shell for developing software, but G++ is not finding -lmysqlclient (nor -lmariadbclient), despite me having mariadb-connector-c in shell.nix / buildInputs).
knupfer1 has joined #nixos
seanparsons has quit [Ping timeout: 256 seconds]
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
seanparsons has joined #nixos
<noonien> matthewbauer: how did i lie to you? i didn't send you any script, just a sequence of commands i used to setup my system for you to take inspiration from.
<noonien> also, i don't appreciate you calling me a liar, because you made wrong assumptions.
knupfer has quit [Ping timeout: 246 seconds]
<noonien> also, you keep telling people i told you what to do, or told you things about how to setup luks or zfs. i did no such thing, just gave you a paste of commands i used. if you didn't find that useful, perhaps you should ask for a refund.
cjpbirkbeck has joined #nixos
<{^_^}> [nixpkgs] @dasj19 opened pull request #94656 → gdm: 3.34.1 -> 3.36.3 → https://git.io/JJKvM
Extends has joined #nixos
Thra11_ has joined #nixos
<Extends> Hi, I'm trying to package something, and so I have to create a symlink in postInstall, but no matter what I put as destination folder, nix tells me that it doesn't exist (I'm doing ln -sf $out/share/ /home/<user>/folder)
wallacer3 has quit [Ping timeout: 246 seconds]
cosimone has joined #nixos
wallacer3 has joined #nixos
<srhb> Extends: nix cannot create anything outside of /nix/store
ggp0647 has joined #nixos
<Extends> ah, so I have to do it manually ?
<srhb> Extends: nixos and home-manager and co. achieve this by having nix create a _script_ that does the symlinking (so-called activation scripts) that the user may run at runtime (not build-time) or through tooling (nixos-rebuild and home-manager)
<Extends> oh ok I see, i'll try that, thanks
sputny has quit [Remote host closed the connection]
<srhb> Sure thing :) Incidentally, when you want $out/share, that's essentially what nix-env does in ~/.nix-profile for you, when a user is installed for the user
<{^_^}> [nixpkgs] @mikefaille opened pull request #94657 → k8s-gen: init 20200804-27edf66731c4c32a2b13ed7376f75e5291665a52 → https://git.io/JJKf1
marsh has quit [Ping timeout: 244 seconds]
noudle has joined #nixos
Extends has quit [Quit: leaving]
<{^_^}> [nixpkgs] @peterhoeg pushed 0 commits to wxgtk_gtk3: https://git.io/JJKUl
superherointj has joined #nixos
<{^_^}> [nixpkgs] @Kloenk opened pull request #94658 → add build action → https://git.io/JJKUX
orivej_ has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f631400a71d (from 18 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<TheSirC[m]> If you only had access to a Debian host (a VM if that's of concern) and you packaged an application using Nix. How would you deploy it? Meaning how would you put it on the VM, run it, update it and manage it?
<srhb> TheSirC[m]: I'd probably package it with our dockerTools to generate an image. There's also the run-scripts, but I don't think integrating with a foreign systemd installation is much worse than integrating with docker.
<srhb> er, much better.
<srhb> Either way.
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg closed pull request #19622 → kdeconnect: [WIP/RFC] let dbus activate via systemd → https://git.io/vPPX8
<benschza> I have a Cachix binary cache for a project, and all packages are cached except for a Nix Node package I generated using node2nix. What would be the best way to debug why this particular package is always rebuilt rather than fetched from cache?
sangoma has quit [Read error: Connection reset by peer]
Rusty1 has joined #nixos
Aesth has quit [Remote host closed the connection]
<benschza> I think I found the answer `bypassCache = true;`.
<CptCaptain> makefu: You're right. Preloading libredirect makes the app deadlocks with a bunch of futex calls
<TheSirC[m]> "srhb" (https://matrix.to/#/@freenode_srhb:matrix.org): Hmm... What are the run-scripts?
o1lo01ol1o has quit [Remote host closed the connection]
<TheSirC[m]> I just have a grudge against Docker so if I can avoid it...I was also thinking about generating a LXC image with nixos-generator, any gotchas about them?
superherointj has quit [Quit: Leaving]
gustavderdrache has joined #nixos
<manveru> TheSirC[m]: you could also take a look at podman...
<{^_^}> [nixpkgs] @mikefaille opened pull request #94659 → tanka: init at v0.11.1 → https://git.io/JJKIL
pr06lefs has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #94589 → gensio: 2.0.5 -> 2.1.3 → https://git.io/JJwrA
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JJKIs
<{^_^}> [nixpkgs] @ryantm merged pull request #93156 → ser2net: 4.1.8 -> 4.2.0 → https://git.io/JJs87
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JJKIn
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
<nbathum> TheSirC[m]: I have a grudge against containers. it depends on the kind of application, the technology, etc. we deploy a few C programs to non-NixOS systems which are built on NixOS, and then fixed-up in the build to have a 'normal' interpreter
kreyren_ is now known as kreyren
<nbathum> I'd say your notion to use nixos-generators is the right approach for anything that gets more complicated than a small program
justanotheruser has joined #nixos
alp has quit [Ping timeout: 256 seconds]
icey_ has joined #nixos
kgriffin has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alp has joined #nixos
bqv has quit [Remote host closed the connection]
bqv has joined #nixos
mixmixmix has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @xaverdh opened pull request #94660 → nixos / ISO: make squashfs compression easily configurable → https://git.io/JJKti
lordcirth_ has quit [Ping timeout: 260 seconds]
asbachb has joined #nixos
lordcirth has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JJKt9
domogled has quit [Ping timeout: 256 seconds]
<noonien> nbathum: how do you change the path to ld to work on other distros? patchelf, or do you build totally static binaries? if you use patchelf, do you patchelf in the derivation, or do you have another patched derivation?
<asbachb> Can someone tell me more about: Failed to read oom_kill field of memory.events cgroup attribute ?
<makefu> CptCaptain: your other chance is fhsuserenv, you can start by trying to run the app with 'steam-run' (nix-shell -p steam-run --run 'steam-run ./your-app')
proofofkeags has joined #nixos
<{^_^}> [nix] @edolstra pushed 3 commits to master: https://git.io/JJKqV
domogled has joined #nixos
<Mic92> noonien: autoPatchelfHook.
<Mic92> ah sorry misread your intent
<noonien> hehe, no worries
<noonien> i'm building some software that needs to be ran on other distros, and with different architectures, so i'm also dealing with this
<Mic92> I would say the ideal case would be to build it with the native toolchain
<Mic92> So libraries are in the same version
<Mic92> Otherwise static builds might be the most robust alternative
<{^_^}> [nixpkgs] @swflint opened pull request #94661 → pythonPackages.iterfzf: init at 0.5.0.20.0 → https://git.io/JJKqj
<noonien> i go with static builds where available
<noonien> s/available/possible
idontgetoutmuch[ has joined #nixos
<bqv> Why?
proofofkeags has quit [Remote host closed the connection]
<noonien> so they are easier to use on the target systems, one alternative would be tmpnix, but so far, i prefer static binaries,
<idontgetoutmuch[> I am building a package which uses make (the nix is about as simple as it can be) but get `/nix/store/3b9hjxbz9wim69gzg41qkszwxrgnxhdn-gfortran-9.3.0/include/c++/9.3.0/stdlib.h:38:12: error: 'std::abort' has not been declared`
proofofkeags has joined #nixos
<idontgetoutmuch[> The compilation command that is generated is `g++ -march=native -O3 -fomit-frame-pointer -mfpmath=both -fopenmp -m64 -std=c++11 -c ./BioFVM/BioFVM_vector.cpp`
<{^_^}> [nix] @Ericson2314 opened pull request #3894 → Make JSON equality tests agnostic to ordering → https://git.io/JJKmh
nixuser has quit [Read error: Connection reset by peer]
asbachb has quit [Ping timeout: 245 seconds]
proofofkeags has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @mikefaille opened pull request #94662 → jsonnet-bundler: init at 20200804-ada055a → https://git.io/JJKYf
eoli3n has joined #nixos
<nbathum> noonien: the drv takes a boolean parameter 'export', and patchelf in the derivation when true
magnetophon has quit [Read error: Connection reset by peer]
<noonien> i see, i guess that makes sense if you build all derivations your export
magnetophon has joined #nixos
lordcirth has quit [Ping timeout: 244 seconds]
stephaneyfx has joined #nixos
Neo--- has quit [Ping timeout: 240 seconds]
abathur has joined #nixos
Fare has joined #nixos
Neo--- has joined #nixos
lordcirth has joined #nixos
Neo--- has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @Profpatsch opened pull request #94664 → lorri: 1.1 -> 1.1.1 → https://git.io/JJKOG
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f3dac135ba8 (from 18 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f3dac135ba8 (from 18 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
hyper_ch2 has quit [Quit: Connection closed]
Thra11_ has quit [Ping timeout: 265 seconds]
proofofkeags has joined #nixos
<{^_^}> [nixpkgs] @mweinelt merged pull request #94041 → synergy: Add patch to fix CVE-2020-15117 → https://git.io/JJE3Z
<{^_^}> [nixpkgs] @mweinelt pushed 2 commits to master: https://git.io/JJKO6
mallox has joined #nixos
Thra11_ has joined #nixos
virus_dave has joined #nixos
jb55 has quit [Remote host closed the connection]
proofofkeags has quit [Ping timeout: 256 seconds]
nixbitcoin has quit [Remote host closed the connection]
jb55 has joined #nixos
nixbitcoin has joined #nixos
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
cfricke has quit [Quit: WeeChat 2.9]
wallacer3 has quit [Ping timeout: 240 seconds]
<DigitalKiwi> noonien: different matthew
<DigitalKiwi> noonien: matthewbauer has commit bit on nixpkgs lol matthewcroughan is the new one
itshaydendev has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @FRidh merged pull request #94655 → python3Packages.asynctest: disable tests on python >= 3.7 → https://git.io/JJoNP
<{^_^}> [nixpkgs] @FRidh pushed commit from @mweinelt to master « python3Packages.asynctest: disable tests on python >= 3.7 »: https://git.io/JJK3E
b1000101 has quit [Quit: Lost terminal]
wallacer3 has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 137 commits to python-unstable: https://git.io/JJK3r
<noonien> oh, i'm so sorry
proofofkeags has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « hydra-unstable: 2020-07-28 -> 2020-08-04 »: https://git.io/JJK3M
erasmas has joined #nixos
proofofkeags has quit [Ping timeout: 240 seconds]
karolus_ is now known as karolus
<{^_^}> [nix] @edolstra merged pull request #3894 → Make JSON equality tests agnostic to ordering → https://git.io/JJKmh
<{^_^}> [nix] @edolstra pushed 3 commits to master: https://git.io/JJK3b
eoli3n has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @edolstra merged pull request #94225 → lowdown: init at 0.7.2 → https://git.io/JJg1K
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to master: https://git.io/JJK3p
sangoma has joined #nixos
tsruser has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
proofofkeags has joined #nixos
tsruser has quit [Client Quit]
tsruser has joined #nixos
tsruser has quit [Client Quit]
<{^_^}> [nixpkgs] @Ma27 pushed to master « diffoscope: 153 -> 154 »: https://git.io/JJKsL
tsruser has joined #nixos
matthewcroughan has joined #nixos
c0c0 has quit [Quit: WeeChat 2.7.1]
tsruser has quit [Quit: leaving]
virus_dave_ has joined #nixos
jasongrossman has quit [Remote host closed the connection]
virus_dave has quit [Ping timeout: 240 seconds]
lordcirth_ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/38dc94bcf0b (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
cole-h has joined #nixos
tsruser has joined #nixos
<daddy_james[m]> Can someone send me their nixos install script if it has luks encryption? I need to look at a good example script.
domogled has quit [Quit: domogled]
<matthewcroughan> daddy_james[m] hahahaha I did that yday
<matthewcroughan> http://ix.io/2t7J courtesy of noonien
<daddy_james[m]> Much appreciated
lordcirth has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed to master « meld: 3.20.2 → 3.21.0 »: https://git.io/JJKs9
<matthewcroughan> the thing is, you need to add https://nixos.org/nixos/manual/#sec-luks-file-systems to your config
tsruser has quit [Client Quit]
<matthewcroughan> `boot.initrd.luks.devices.crypted.device = "/dev/disk/by-uuid/3f6b0024-3a44-4fde-a43a-767b872abe5d";`
zupo has joined #nixos
<matthewcroughan> where /dev/disk/by-uuid can be whatever pointer to the disk you want, such as a label, as described in the install.
virus_dave_ has quit [Ping timeout: 240 seconds]
tsruser has joined #nixos
zupo has quit [Client Quit]
<{^_^}> [nixpkgs] @Profpatsch opened pull request #94667 → lorri: 1.1.1 -> 1.2.0 → https://git.io/JJKsA
orivej has joined #nixos
Thra11_ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Profpatsch closed pull request #91166 → nixos/hardware: adjust readme to the new location → https://git.io/JfbX0
jonringer has joined #nixos
<{^_^}> [nixpkgs] @ehmry opened pull request #94668 → Define a i686-genode system double → https://git.io/JJKGf
Thra11_ has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch merged pull request #94664 → backport-20.03: lorri: 1.1 -> 1.1.1 → https://git.io/JJKOG
<{^_^}> [nixpkgs] @Profpatsch pushed to release-20.03 « lorri: 1.1 -> 1.1.1 »: https://git.io/JJKGq
virus_dave has joined #nixos
proofofkeags has quit [Remote host closed the connection]
ManiacOfMadness has quit [Ping timeout: 246 seconds]
proofofkeags has joined #nixos
urkk has joined #nixos
rardiol_ has joined #nixos
rardiol has quit [Read error: Connection reset by peer]
magnetophon has quit [Read error: Connection reset by peer]
proofofkeags has quit [Ping timeout: 256 seconds]
virus_dave has quit [Ping timeout: 256 seconds]
magnetophon has joined #nixos
<urkk> when the derivation output is an executable script included in the build input of another derivation, it's automatically executed at the beginning of the build of the second derivation. Is this the expected behavior? If so, how can I prevent it?
<{^_^}> [nixpkgs] @ehmry merged pull request #94668 → Define a i686-genode system double → https://git.io/JJKGf
<{^_^}> [nixpkgs] @ehmry pushed to staging « Define a i686-genode system double »: https://git.io/JJKGg
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f2997db610f (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<urkk> it happens before unpack
virus_dave has joined #nixos
graf_blutwurst has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 244 seconds]
<balsoft> So, I have a very strange bug: https://0x0.st/i3PZ.txt this happens on a private repo that I unfortunately can't share, and it went away after two retries (i.e. on the third try the repo started building). Can you give any pointers as to how to even approach this? Also, what do I need to delete to reproduce this?
bqv has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Sorixelle closed pull request #94235 → pebble-sdk: init at 4.5 → https://git.io/JJgA3
bogdb has joined #nixos
<urkk> wth, any file in the buildInputs gets sourced as a hook? https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L475
__monty__ has joined #nixos
meh` has joined #nixos
polezaivsani has quit [Ping timeout: 260 seconds]
noudle has quit []
serrvan has quit [Ping timeout: 256 seconds]
<{^_^}> [hydra] @edolstra pushed 2 commits to master: https://git.io/JJKZ4
orivej has quit [Ping timeout: 246 seconds]
<daddy_james[m]> I’m getting a grub error when I boot with luks encryption: error no such device (uuid)
drakonis has joined #nixos
<daddy_james[m]> I enabled cryptodisk in my configuration.nix
<daddy_james[m]> And installed with this script: https://github.com/urlordjames/nixos-stuff/blob/master/legacyinstall.sh
lordcirth__ has joined #nixos
ehmry has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
bogdb_ has joined #nixos
<cole-h> If you copied matthewcroughan's by-uuid line exactly, without modifying it, that's your problem.
user_0x58 has joined #nixos
lordcirth_ has quit [Ping timeout: 260 seconds]
<cole-h> It's a UUID -- a "universally unique identifier", meaning your two disk UUIDs will be different.
Jackneilll has quit [Ping timeout: 265 seconds]
urkk has left #nixos [#nixos]
cosimone has quit [Quit: Quit.]
<daddy_james[m]> I did not copy the UUID
<daddy_james[m]> It was automatically configured in my hardware-configuration.nix
bogdb has quit [Ping timeout: 256 seconds]
growpotkin has joined #nixos
arjen-jonathan has joined #nixos
bqv has joined #nixos
Jackneilll has joined #nixos
arjen-jonathan has quit [Ping timeout: 244 seconds]
c0c0 has joined #nixos
justanotheruser has joined #nixos
<{^_^}> [nixpkgs] @alevy opened pull request #94669 → slack: 4.7.0 -> 4.8.0 (linux) → https://git.io/JJKnj
polezaivsani has joined #nixos
bqv has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @aanderse merged pull request #94043 → nixos/zabbix*: replace extraConfig option with settings option → https://git.io/JJE3N
<{^_^}> [nixpkgs] @aanderse pushed 4 commits to master: https://git.io/JJKcJ
bqv has joined #nixos
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d5fee0a57a4 (from 53 minutes ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
<daddy_james[m]> How would I rebuild my system configuration from installation media?
<daddy_james[m]> Luksopen then mount my encrypted filesystem to /?
<daddy_james[m]> Is that even possible?
maier has quit [Ping timeout: 240 seconds]
<daddy_james[m]> Nope I can’t do that...
<ToxicFrog> My first guess would be luksopen, mount to /mnt, then nixos-install --root=/mnt --no-channel-copy --no-root-passwd --no-bootloader
<ToxicFrog> Failing that, mount to /mnt, bindmount /dev /proc /sys into it (maybe some others I'm forgetting), chroot into it, and nixos-rebuild
Jackneilll has quit [Ping timeout: 240 seconds]
<ToxicFrog> Since it's a grub issue you're trying to fix you might need to omit the --no-bootloader depending on exactly where the problem is
<ToxicFrog> If you have /boot on a separate partition don't forget to mount that in /mnt/boot as well
Jackneill has joined #nixos
<cransom> daddy_james[m]: mount the disks into /mnt, copy your configuration.nix (and hardware nix if needed) to /mnt/etc/nixos/, run nixos-install.
<daddy_james[m]> I’ll try that
<wucke13> How is one supposed to navigate to "options" on the new nixos.org page?
<cole-h> https://i.imgur.com/SazHM1r.png "or search among many NixOS options"
<wucke13> cole-h: On what webpage did you find this?
<cole-h> nixos.org
<wucke13> I just disocvered both searches on learn
<wucke13> Ahhhh, I see it now. Thanks!
<cole-h> :)
c0c0 has quit [Quit: WeeChat 2.7.1]
knupfer has joined #nixos
<daddy_james[m]> It worked but my config is still jank
<daddy_james[m]> Thx
domogled has joined #nixos
knupfer1 has joined #nixos
kreyren has quit [Remote host closed the connection]
c0c0 has joined #nixos
serrvan has joined #nixos
kreyren has joined #nixos
domogled has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @pstn closed pull request #91712 → linux: do not depend on utillinuxMinimal → https://git.io/JJvTR
domogled has joined #nixos
mariatsji has quit [Remote host closed the connection]
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
knupfer1 has joined #nixos
mariatsji has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @vctibor opened pull request #94671 → kotlin-native: 1.3.72 → https://git.io/JJKWK
knupfer1 has joined #nixos
domogled has quit [Ping timeout: 265 seconds]
alp has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
bqv has quit [Quit: WeeChat 2.9]
bqv has joined #nixos
aleph- has quit [Read error: Connection reset by peer]
<chipb> jtojnar: oh. that's an interesting option I hadn't seen. thanks.
<chipb> it almost seems like that should be in specialArgs by default when evaluating a flake.
magnetophon has quit [Ping timeout: 240 seconds]
knupfer1 has joined #nixos
mariatsji has quit [Ping timeout: 246 seconds]
serrvan has quit [Ping timeout: 265 seconds]
magnetophon has joined #nixos
<chipb> I guess it makes your modules dependent on being in that same flake (i.e. directly referencing the input), but for some things, I don't think there's necessarily a way of escaping that.
<jtojnar> chipb: I like that things are explicit with flakes, impure.nix was already too much magic for my taste
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
Adrielus has joined #nixos
superherointj has joined #nixos
<Adrielus> Hey, anyone knows where I can find the product.json file of my vscodium installation?
xelxebar has quit [Remote host closed the connection]
knupfer1 has joined #nixos
xelxebar has joined #nixos
<chipb> I dunno, the whole module system itself seems close enough to magic for me.
<chipb> impure.nix is just a dirty little secret... "So *there's* the rug all the dust was swept under!"
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<chipb> from my limited playing around with it, I do rather like flakes though.
aleph- has joined #nixos
mallox has quit [Quit: WeeChat 2.9]
lordcirth__ has quit [Ping timeout: 244 seconds]
meh` has quit [Ping timeout: 256 seconds]
knupfer1 has joined #nixos
simba1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
newbpassingby has joined #nixos
mrosenbe has quit [Ping timeout: 264 seconds]
lordcirth has joined #nixos
<newbpassingby> hi all! I have a question about builds. I'm trying to build a project but its failing to find a file that is referenced directly in its own project folder, "src/keys.proto". Why can't it find this relative path?
<chrismatheson> <eyJhb "For dev in Go chrismatheson I wo"> as in go modules ? im thinking more about how I define the go tools that the dev env needs ? (go-doc guru go-rename etc some of them are not nix pkgs yet
mrosenbe has joined #nixos
<chrismatheson> or are you saying there is a nix function `go.mods` which I can call in my derivation and will install certain go pkgs ?
aleph- has quit [Read error: Connection reset by peer]
<chipb> newbpassingby: try dropping your '"'s and prepend a './' to the path?
bqv has quit [Quit: WeeChat 2.9]
knupfer has quit [Ping timeout: 246 seconds]
bqv has joined #nixos
<newbpassingby> @chipb I'm building the rust-libp2p core, which definitely works outside of Nix https://github.com/libp2p/rust-libp2p/tree/master/core
alp has joined #nixos
lordcirth has quit [Ping timeout: 264 seconds]
Adrielus has quit [Remote host closed the connection]
<WRMilling> Is there a way to specify ConditionPathExists for a systmd service in nix?
<WRMilling> I can't seem to find it in the docs.
<chipb> oh, I'm unfamiliar with the nix rust tooling so I'm probably not helpful. I thought you were talking about a path referenced in a failing .nix expression.
<slabity> wrmilling: `builtins.pathExists` should return true/false
<slabity> Unless I'm misunderstanding what you are asking
lordcirth has joined #nixos
<WRMilling> systemd has a property you can put on the unit file so that it runs if the path exists. I assume the builtin will only create the systemd module if that path exists, but I could remove the hardware between reboots for instance. (correct me if I am mistaken there).
<chipb> wrmilling: unitConfig.ConditionPathExists?
<slabity> wrmilling: Oh, I see. You should be able to use unitConfig.ConditionPathExists
<slabity> What chipb said
<WRMilling> Perfect, thank you chipb and slabity
<slabity> Here's an example for NFS. Look at the `rpc-gssd` module: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/nfs.nix
<chipb> interestingly enough, it looks like unitConfig will take any arbitrary key/value pair and put it in the [Unit] section.
<chipb> ergo, no documentation of 'ConditionPathExists' itself.
<infinisil> chipb: It will be possible to have docs for a part of the supported keys with #82743 :D
<{^_^}> https://github.com/NixOS/nixpkgs/pull/82743 (by Infinisil, 20 weeks ago, open): Freeform modules
od1n has joined #nixos
knupfer has joined #nixos
spudly- has joined #nixos
spudly- has quit [Changing host]
spudly- has joined #nixos
<od1n> how does one pin fontconfig to a previous version?
mrosenbe_ has joined #nixos
mrosenbe has quit [Ping timeout: 246 seconds]
bqv has quit [Quit: WeeChat 2.9]
bqv has joined #nixos
<chipb> infinisil: oh dear. more magic. :-)
spudly has quit [Ping timeout: 246 seconds]
spudly- is now known as spudly
<infinisil> Desperately needed magic!
<cole-h> od1n: Unless you have a beefy builder, I don't think you'll want to do that. You'll have to recompile almost every piece of software you use if you override fontconfig to a previous version.
<DigitalKiwi> infinisil: if i want to add 4 node packages should i do four commits, and for the fourth one do the ./generate.sh and then one PR?
<WRMilling> I figured it would be something like that chipb, just a little bit of learning to be done on my part :)
<infinisil> DigitalKiwi: That sounds reasonable yeah
proofofkeags has joined #nixos
<od1n> cole-h: thanks, will just sit on stable
<DigitalKiwi> ok ty
<DigitalKiwi> i think my battery died before the last ./generate.sh i did finished lol...
<cole-h> od1n: Keep in mind that this change will have made its way into 20.09, which is right around the corner™
<cole-h> So you'll either be on 20.03 forever, or you'll have to find a way to fix whatever problems you're having with the new fontconfig (or ignore them)
cosimone has joined #nixos
<od1n> cole-h: the issues will probably be fixed by then
knupfer1 has joined #nixos
newbpassingby has quit [Remote host closed the connection]
<infinisil> DigitalKiwi: Maybe try to help get another node packages update PR merged first
<DigitalKiwi> infinisil: how do i do that just test them or?
<cole-h> od1n: Maybe. Only if the issues are known, however. Maybe now would be a good time to file an issue on the Nixpkgs tracker? ;^)
<infinisil> DigitalKiwi: I just build it, ask the author whether they tested it, and make sure ofborg is successful
<{^_^}> #94073 (by heapslip, 1 week ago, open): [nightly] fontconfig breaks
<infinisil> (by merging another node packages update PR first, the amount of conflicts people need to fix will be reduced)
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
<DigitalKiwi> oh hey quesiton about this nix = {
<DigitalKiwi> nixPath = [ "nixpkgs=/home/kiwi/nixpkgs" "nixpkgs=/home/kiwi/nixpkgs-1" ] ++ options.nix.nixPath.default;
<DigitalKiwi> do those get merged and the first one take precedence or does only the first one count
<DigitalKiwi> or...other
lordcirth has quit [Ping timeout: 256 seconds]
<DigitalKiwi> infinisil: sometime can you teach me how to rebase
<infinisil> DigitalKiwi: You can check with `nix-instantiate --eval '<nixpkgs/nixos>' -A config.nix.nixPath`
knupfer1 has joined #nixos
<{^_^}> #92618 (by Kiwi, 3 weeks ago, open): matterhorn: fix build
<DigitalKiwi> like that one is probably going to need to be rebased on haskell-packages...again. and i'm very bad at doing it
lordcirth has joined #nixos
<DigitalKiwi> i end up like spending 20 minutes mucking around not knowing what i'm doing and by the time i'm done i don't know what was the right way so the next time i do it...same
magnetophon has quit [Read error: Connection reset by peer]
<DigitalKiwi> i think somehow i end up cherry picking it in the end
<DigitalKiwi> and it involves reset
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<DigitalKiwi> [ <CODE> <CODE> <CODE> <CODE> <CODE> ]
<DigitalKiwi> what does that mean :|
<bqv> it's code, obviously
<makefu> try --strict
<DigitalKiwi> on a different one there are only 3 <CODE>
<slabity> It's a list of <CODE>
magnetophon has joined #nixos
<infinisil> Yeah add --strict
domogled has joined #nixos
<DigitalKiwi> [ "nixpkgs=/home/kiwi/nixpkgs" "nixpkgs=/home/kiwi/nixpkgs-1" "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" "nixos-config=/etc/nixos/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]
<DigitalKiwi> still don't know what it means :(
hpfr[m] has quit [Quit: authenticating]
hpfr[m] has joined #nixos
<DigitalKiwi> i know why i did it i'm just not sure how i used it >.>
knupfer1 has joined #nixos
<DigitalKiwi> that machine has matomo on it which i often have a PR for and it's not merged into master for a while...
<infinisil> DigitalKiwi: Also try `nix-instantiate --eval '<nixpkgs/nixos>' -A options.nix.nixPath.default`
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
<infinisil> Ohh, I think I misinterpreted your question
hpfr[m] is now known as hpfr
<infinisil> No, multiple nixpkgs= assignments won't get merged, they're just all in the NIX_PATH
od1n has quit [Remote host closed the connection]
<infinisil> I think most tools just use the first one though
<DigitalKiwi> better question i guess is what is the effect of doing that which i did
<{^_^}> [nixpkgs] @flokli merged pull request #93587 → rust-analyzer: 2020-07-13 -> 2020-08-03 → https://git.io/JJWeL
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/JJKBL
<DigitalKiwi> the default was the root/channels/nixos one
magnetophon has quit [Read error: Connection reset by peer]
evanjs has quit [Read error: Connection reset by peer]
<infinisil> That just makes it use channels
knupfer1 has joined #nixos
<infinisil> I think you probably just want `nixPath = [ "nixpkgs=/..." "nixos-config=/etc/nixos/configuration.nix" ]`
zupo has joined #nixos
evanjs has joined #nixos
<infinisil> If you want multiple different nixpkgs version you could add a "nixpkgs-alt=/path/to/alt/nixpkgs"
magnetophon has joined #nixos
<DigitalKiwi> i think we maybe tested it and it worked how i wanted at the time :( i remember we had to change the options.nix.nixPath.default to be at the end
magnetophon has quit [Read error: Connection reset by peer]
magnetophon has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
<DigitalKiwi> idk i'm over it :(
proofofkeags has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 256 seconds]
<infinisil> I'm not sure what your goal is
<DigitalKiwi> forensics i guess :(
c0c0 has quit [Quit: WeeChat 2.7.1]
knupfer1 has joined #nixos
<DigitalKiwi> i don't know what that does or if it did what i want even or why i did it (was a long time ago)
c0c0 has joined #nixos
<DigitalKiwi> might be able to find it in logs
wnklmnn has quit [Ping timeout: 256 seconds]
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
<DigitalKiwi> so it was for zncModules
<DigitalKiwi> originally
<DigitalKiwi> 16:28 <DigitalKiwi> (i'm actually really really bad at nix i only figure stuff out through brute force and tenacity and the wiki/manuals/blogs)
<DigitalKiwi> glad that hasn't changed
<DigitalKiwi> :(
cosimone has quit [Quit: Quit.]
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
<{^_^}> [nixpkgs] @fzakaria opened pull request #94672 → jruby: 9.2.12.0 → 9.2.13.0 → https://git.io/JJKB1
ramses_ has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @justinas opened pull request #94673 → prometheus-sql-exporter: init at 0.3.0 → https://git.io/JJKB5
<ramses_> Hey guys, how does nix deal with parallelly running builds creating the same store paths? Is it gracefully handled? Is there a notion of atomicity or such?
magnetophon has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @skykanin opened pull request #94674 → dotty: 0.23.0-RC1 -> 0.26.0-RC1 → https://git.io/JJKR4
maier has joined #nixos
magnetophon has joined #nixos
alp has quit [Ping timeout: 265 seconds]
<immae> ramses_: there is a lock file created so I guess concurrence is handled correctly (I "think" the symptom I saw is that one of the processes will just sit waiting until the lockfile is gone)
<samueldr> ramses_: it'll run one build at a time, and if it's a dep for two concurrently building derivations, it waits as expected
lordcirth has quit [Ping timeout: 272 seconds]
<samueldr> and yeah, within one of the builds it'll look like it's doing nothing
<ramses_> And the lock is per derivation? Or you can have only one build active?
<samueldr> per derivation, you can have multiple builds in parallel (as long as nix is configured to run things in parallel)
<samueldr> if it's not, it'll be waiting for a build slot
<ramses_> Ok, cool! I'll give that a go then
<ramses_> But I am launching multiple nix processes, or is this handled by the daemon?
<samueldr> by the daemon
<ramses_> And on a non NixOS system?
knupfer has joined #nixos
<ramses_> Basically, I want to evaluate 80-something nixos configurations in a github action, to make sure that they all build without error. So it will be running on a github-provided ubuntu on which nix is installed
<samueldr> there is an equivalent option, for the daemon
<samueldr> but the defaults are fine
<ramses_> But most of those system profiles share 80% of their config and will thus evaluate the exact same store paths
<samueldr> everything should work just fine
<ramses_> Cool, I'll give it a go!
maier has quit [Ping timeout: 264 seconds]
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
mariatsji has joined #nixos
CptCaptain has quit [Quit: WeeChat 2.9]
arjen-jonathan has joined #nixos
mariatsji has quit [Ping timeout: 240 seconds]
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
<{^_^}> [nixpkgs] @lucperkins opened pull request #94675 → wapm: init at 0.5.0 → https://git.io/JJKEw
<{^_^}> [nixpkgs] @Ma27 merged pull request #94625 → bpytop: init at 1.0.0 → https://git.io/JJrjU
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JJKEK
gthm has joined #nixos
<noonien> hmm, can i force a package to be rebuild?
rajivr has quit [Quit: Connection closed for inactivity]
<noonien> `nix build -f channel:nixos-unstable pkgsCross.raspberryPi.zmap` doesn't work for me, `/nix/store/...//nix-support/setup-hook: line 4: unzip: command not found` is what i get
<noonien> and i'm trying to see if this has anything to do with cross-compiling, or the package just doesn't build
alp has joined #nixos
<zerocostabstrac4> what's the easiest way to spin up an Ubuntu VM in NixOS
<zerocostabstrac4> i'm talking persistent storage, not sure how I'd do that with docker easily
lordcirth has joined #nixos
camsbury has joined #nixos
matthewcroughan has quit [Ping timeout: 240 seconds]
<noonien> here's the entire log: http://ix.io/2teQ
cosimone has joined #nixos
proofofkeags has joined #nixos
<DigitalKiwi> infinisil: do you know a node package i can help and/or how to find them
cole-h has quit [Quit: Goodbye]
<daddy_james[m]> looks like there's an error with the ```tor-browser-bundle-bin``` package
philr has quit [Ping timeout: 265 seconds]
<daddy_james[m]> I get a 404 when installed int
<daddy_james[m]> * I get a 404 when installed it
<daddy_james[m]> anyone else get the same?
<daddy_james[m]> oh wait there's already an issue for this nevermind: https://github.com/NixOS/nixpkgs/issues/94576
<{^_^}> #94576 (by sk33z3r, 1 day ago, closed): tor-browser-bundle-bin mirror for 9.5 is down
<daddy_james[m]> anyone know when this will get pushed to the official repo?
mariatsji has joined #nixos
mariatsji has quit [Read error: Connection reset by peer]
<DigitalKiwi> daddy_james[m]: the fix has been merged into nixpkgs master
<noonien> hmm, is the problem with libjson? does it not cross-compile?
<DigitalKiwi> so ... soon? or now, if you're willing to use master
lordcirth_ has joined #nixos
<daddy_james[m]> DigitalKiwi yeah I noticed, but when will this actually get uploaded to the official nix channel?
<DigitalKiwi> i don't think anyone really knows when nixos-unstable will get updated it's whenever builds pass, it might hit nixos-unstable-small first
lordcirth has quit [Ping timeout: 260 seconds]
<daddy_james[m]> hmm ok
<daddy_james[m]> I guess I'll just have to manually install tor for now until that gets fixed
<daddy_james[m]> well, not install but just use the portable version
<DigitalKiwi> i'd say <1 week is a good estimate for when nixos-unstable gets updated (it varies)
<noonien> or is it a bug with nixpkgs? i can't figure it out, why would there be an error in nix-support/setup-hook
<DigitalKiwi> you could cherry pick it
<daddy_james[m]> cool, thanks for the info
<DigitalKiwi> or install only that package from git
mariatsji has joined #nixos
<DigitalKiwi> with nix-env and nixpkgs=/path/to/NixOS/nixpkgs
mariatsji has quit [Read error: Connection reset by peer]
<DigitalKiwi> with nix-env and -I nixpkgs=/path/to/NixOS/nixpkgs
lordcirth has joined #nixos
lordcirth_ has quit [Ping timeout: 244 seconds]
lordcirth_ has joined #nixos
lordcirth has quit [Ping timeout: 244 seconds]
<grfn> uh
knupfer has quit [Ping timeout: 260 seconds]
<grfn> I just had a hash for a fetchTarball of a nixpkgs commit change out from under me?
<grfn> commit f97d6efdafc965ebeecc5e1f9a60f9b13d20fd89
<grfn> changed from sha256:15nkr5mcws36789c6vignijmk5sngk0sqlbblfs3mla639i30d0g to sha256:14q3kvnmgz19pgwyq52gxx0cs90ddf24pnplmq33pdddbb6c51zn
<grfn> this seems like it shouldn't happen?
<noonien> could anyone confirm that `nix build -f channel:nixos-unstable pkgsCross.raspberryPi.zmap` doesn't work?
nobrak has joined #nixos
arjen-jonathan has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/JJK2g
<grfn> ...the contents of that changed, too
<grfn> did someone force push somewhere maybe?
<{^_^}> [nixpkgs] @vcunat closed pull request #94532 → mesa.drivers: build with patchelf's master → https://git.io/JJV7u
<noonien> how doid you specify that commit hash?
<{^_^}> [nixpkgs] @vcunat pushed 30 commits to staging-next: https://git.io/JJK2w
<noonien> i see, perhaps github did something strange to it? can you identify the old version and compare them?
<grfn> this is like completely hosing my build right now
<grfn> erm
<grfn> it's really tough to because I don't have its outPath
<grfn> and can't easily get its outPaath
gthm has quit [Ping timeout: 240 seconds]
noudle has joined #nixos
<grfn> oh actually I guess I could just evaluate wwith the old hash
<noonien> ls /nix/store/14q3kvnmgz19pgwyq52gxx0cs90ddf24pnplmq33pdddbb6c51zn* doesn't work?
<infinisil> DigitalKiwi: Just search for open PRs that have "nodePackages init" in them
<grfn> I'm pretty sure the outPath isn't just the sha256 passed to builtins
<grfn> builtins.fetchTarball, that is
<grfn> I think the hash for it includes the name
<grfn> yeah and I can't evaluate the outPath because it's builtins, not a fetcher derivation
<grfn> welp
<{^_^}> [nixpkgs] @jonringer opened pull request #94676 → cpupower-gui: init at 0.8.0 → https://git.io/JJK2y
<noonien> `ls /nix/store/*nixpkgs-unstable*zip` perhaps
<noonien> or even `ls /nix/store/*f97d6efdafc965ebeecc5e1f9a60f9b13d20fd89.tar.gz`
<noonien> might not find the one you're looking for, but i don't see any harm in trying
<grfn> builtins.fetchTarball doesn't put the tarball itself in a store path
<grfn> it seems
<grfn> it unpacks into a directory
emmanuel` has quit [Read error: Connection reset by peer]
<noonien> ah, yeah, that makes sense
emmanuel_erc has joined #nixos
<grfn> oh that's strange
<grfn> the commit doesn't actually exist on github
malook has joined #nixos
<noonien> perhaps it changed from it existing, to a 404?
malook has quit [Client Quit]
malook has joined #nixos
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #94296 → Staging next → https://git.io/JJ265
<{^_^}> [nixpkgs] @FRidh pushed 89 commits to master: https://git.io/JJKan
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to staging-next: https://git.io/JJKaC
<grfn> geez
<{^_^}> [nixpkgs] @vcunat pushed 382 commits to staging: https://git.io/JJKa8
<grfn> well our entire CI build just blew up lol
<grfn> thanks github
domogled has quit [Remote host closed the connection]
<noonien> good thing it got caught
lsix has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @FRidh pushed 174 commits to python-unstable: https://git.io/JJKar
<{^_^}> [nixpkgs] @FRidh merged pull request #94310 → Python packages set updates → https://git.io/JJ2HO
<{^_^}> [nixpkgs] @FRidh pushed 175 commits to staging: https://git.io/JJKaK
<{^_^}> [nixpkgs] @FRidh merged pull request #94379 → c-blosc: 1.19.0 -> 1.20.0 → https://git.io/JJau7
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « c-blosc: 1.19.0 -> 1.20.0 »: https://git.io/JJKaM
<{^_^}> [nixpkgs] @FRidh merged pull request #93740 → libndctl: 68 -> 69 → https://git.io/JJ8Hb
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « libndctl: 68 -> 69 »: https://git.io/JJKaD
<DigitalKiwi> infinisil: lol the first one i found https://github.com/NixOS/nixpkgs/pull/93179
<{^_^}> #93179 (by Zimmi48, 2 weeks ago, open): nodePackages.get-graphql-schema: init at 2.1.2
<{^_^}> [nixpkgs] @FRidh merged pull request #92821 → mpg123: 1.26.1 -> 1.26.2 → https://git.io/JJmKJ
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « mpg123: 1.26.1 -> 1.26.2 »: https://git.io/JJKaS
<DigitalKiwi> want to offer to merge it for them? :P
<{^_^}> [nixpkgs] @FRidh merged pull request #94303 → recode: 3.7.6 -> 3.7.7 → https://git.io/JJ2yJ
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « recode: 3.7.6 -> 3.7.7 »: https://git.io/JJKaF
<{^_^}> [nixpkgs] @FRidh merged pull request #94059 → gettext: 0.20.1 -> 0.21 → https://git.io/JJEEb
<{^_^}> [nixpkgs] @FRidh pushed commit from @lsix to staging « gettext: 0.20.1 -> 0.21 »: https://git.io/JJKax
<cizra> How to get the list of currently visible packages in nix-shell --pure? (I'm trying to use nix-shell for developing software, but G++ is not finding -lmysqlclient (nor -lmariadbclient), despite me having mariadb-connector-c in shell.nix / buildInputs).
orivej has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #93081 → mpfr: 4.0.2 -> 4.1.0 → https://git.io/JJ3Lb
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to staging « mpfr: 4.0.2 -> 4.1.0 »: https://git.io/JJKVI
tsruser has quit [Ping timeout: 264 seconds]
arjen-jonathan has joined #nixos
<{^_^}> [nixpkgs] @ryantm opened pull request #94677 → treewide: add Jitsi maintainers → https://git.io/JJKVY
<{^_^}> [nixpkgs] @jonringer merged pull request #82674 → libsidplayfp: 1.8.7 -> 2.0.4, sidplayfp: 1.4.4 -> 2.0.2, fix API options → https://git.io/JviFz
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JJKV3
_0bitcount has joined #nixos
<Mic92> cizra: echo $buildInputs
<{^_^}> [nixpkgs] @FRidh pushed 212 commits to staging-next: https://git.io/JJKVn
<Mic92> or $nativeBuildInputs
<{^_^}> [nixpkgs] @FRidh opened pull request #94679 → Staging next → https://git.io/JJKVc
<cizra> Mic92: Thanks, that's useful. Linking still doesn't work, though :(
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @Profpatsch merged pull request #94667 → lorri: 1.1.1 -> 1.2.0 → https://git.io/JJKsA
<{^_^}> [nixpkgs] @Profpatsch pushed to master « lorri: 1.1.1 -> 1.2.0 »: https://git.io/JJKVl
<infinisil> DigitalKiwi: Yeah just did :)
<{^_^}> [nixpkgs] @Mindavi opened pull request #94680 → aflplusplus: 2.65c -> 2.66c → https://git.io/JJKV8
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d5fee0a57a4 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
<DigitalKiwi> infinisil: does this count as me helping :D
pr06lefs has quit [Ping timeout: 244 seconds]
<infinisil> A bit yeah! :P
<{^_^}> [nixpkgs] @jonringer merged pull request #94568 → python3Packages.brother: init at 0.1.14 → https://git.io/JJwWW
<{^_^}> [nixpkgs] @jonringer pushed 4 commits to master: https://git.io/JJKV0
<DigitalKiwi> i did recon
<cizra> In nix-shell with mariadb-connector-c, g++ -o output this.o that.o -lsomethingelse -lmariadbclient - fails to find libmariadbclient.so. If I add -L /nix/store/.../lib/mariadbclient, then it finds it but barfs on pthread and glibc. Ideas?
<{^_^}> [nixpkgs] @leo60228 closed pull request #94614 → linux_5_8: init at 5.8 → https://git.io/JJr9Q
domogled has joined #nixos
waleee-cl has joined #nixos
_0bitcount has quit [Quit: Leaving]
pr06lefs has joined #nixos
johnw has joined #nixos
c0c0 has quit [Quit: WeeChat 2.7.1]
dhess has quit [Quit: ZNC - https://znc.in]
dhess has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @flokli opened pull request #94681 → systemd: 245.6 -> 245.7 → https://git.io/JJKwO
drakonis has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
blake1 has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos
proofofkeags has quit [Remote host closed the connection]
blake1 has quit [Client Quit]
blake1 has joined #nixos
proofofkeags has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
blake1 has quit [Client Quit]
higemaru_ has joined #nixos
higemaru has quit [Remote host closed the connection]
higemaru_ has quit [Client Quit]
higemaru has joined #nixos
domogled has quit [Quit: domogled]
sangoma has quit [Ping timeout: 256 seconds]
nixbitcoin_ has joined #nixos
nixbitcoin has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #94650 → dbeaver: 7.1.3 -> 7.1.4 → https://git.io/JJodn
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JJKw1
gxt has quit [Quit: WeeChat 2.9]
maier has joined #nixos
<{^_^}> [nixpkgs] @dywedir merged pull request #94669 → slack: 4.7.0 -> 4.8.0 (linux) → https://git.io/JJKnj
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/JJKrf
maier has quit [Ping timeout: 246 seconds]
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
malook has quit [Quit: malook]
matthewcroughan has joined #nixos
Rusty1 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<{^_^}> [nixpkgs] @Ma27 merged pull request #94410 → gallery-dl: 1.14.2 -> 1.14.3 → https://git.io/JJaQC
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JJKra
magnetophon has quit [Ping timeout: 240 seconds]
gustavderdrache has quit [Quit: Leaving.]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/aae6b4ea12e (from 26 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
knupfer has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #94113 → python3Packages.sunpy: fix build → https://git.io/JJulS
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JJKr6
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
dvorak has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #77785 → gnunet: 0.12.1 -> 0.12.2 → https://git.io/JvUr6
aaronjanse has quit [Quit: The Lounge - https://thelounge.chat]
<{^_^}> [nixpkgs] @jonringer pushed commit from pstn to master « gnunet: 0.12.1 -> 0.12.2 »: https://git.io/JJKry
<{^_^}> [nixpkgs] @Ma27 merged pull request #94677 → treewide: add Jitsi maintainers → https://git.io/JJKVY
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JJKrS
<dvorak> Does anyone here run ZFS natively as their rootfs with some sort of swap enabled? According to the NixOS wiki, it seems that swap has to be a seperate logical volume or parition, because "You shouldn't use a ZVol as a swap device, as it can deadlock under memory pressure."
knupfer1 has joined #nixos
sangoma has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
knupfer1 is now known as knupfer
magnetophon has joined #nixos
<jasom> dvorak: I've used it without swap on NixOS and with swap (on a dedicated partition, not a ZVol) on a non-NixOS system
knupfer1 has joined #nixos
<jasom> dvorak: No reason I couldn't run swap on a dedicated partition on NixOS, I just stopped using swap before I switched to NixOS
<dvorak> jasom: I'm actually doing it the other way around, I haven't used swap for a while but soon will be
<jasom> dvorak: just do it exactly like you would for e.g. ext4 or reiserfs; setup a swap partition separate from the ZFS partition.
<{^_^}> [nixpkgs] @Ma27 merged pull request #94399 → dnsdist: 1.4.0 -> 1.5.0 → https://git.io/JJaMT
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JJKr5
<dvorak> jasom: I assume that there are no stability issues with that?
<dvorak> I've never actually used a swap partition on my physical machine, only VMs
malook has joined #nixos
<jasom> dvorak: I've not run into any. This was a while ago on Gentoo.
orivej has quit [Ping timeout: 260 seconds]
<dvorak> alright
orivej has joined #nixos
<jasom> the stability issues are quite simple when using a zvol; your system needs to write to swap in order to free memory, but ZFS nees to allocate memory to read from the zvol
<{^_^}> [nixpkgs] @jonringer merged pull request #94674 → dotty: 0.23.0-RC1 -> 0.26.0-RC1 → https://git.io/JJKR4
<{^_^}> [nixpkgs] @jonringer pushed commit from @skykanin to master « dotty: 0.23.0-RC1 -> 0.26.0-RC1 »: https://git.io/JJKrd
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
<jasom> dvorak: what's the use-case for swap, if you don't mind sharing?
<dvorak> Occasionally my real system will freeze and requrie a force-restart when my programs use up too much RAM and CPU
knupfer1 has joined #nixos
<jasom> dvorak: swap often (but not always) makes that worse
<dvorak> I assume that earlyoom would prevent this issue? I was also planning on enabling that
<dvorak> I was under the (apparently wrong) impression that having swap space would also alleviate it though
<jasom> it's complicated
<jasom> swap reduces the RAM in use to the active working set in the steady-case (pages not accessed ever get stored on disk).
phreedom has quit [Ping timeout: 240 seconds]
phreedom has joined #nixos
<jasom> however, once you hit contention with swap, the system gets painfully slow while it swaps things in and out of swap, so the OOM won't kick-in until the swap has filled up. Having a small swap is probably a good compromise
<dvorak> How big would a "small" swap be on a system with 8GB ram?
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
<dvorak> 2-4GB?
<jasom> I haven't tested this with a PCIe backed swap, which might be better, but even early SATA SSDs were painful
<infinisil> I have 32GB swap for my 16GB RAM :)
<jasom> no more than 1GB would be my recommendation
<{^_^}> [nixpkgs] @zowoq merged pull request #94641 → .github/workflows/editorconfig.yml: remove branch restriction → https://git.io/JJo24
<{^_^}> [nixpkgs] @zowoq pushed to master « .github/workflows/editorconfig.yml: remove branch restriction »: https://git.io/JJKoe
<jasom> infinisil: do you need core dumps?
<infinisil> jasom: Nah
<infinisil> I actually only needed this much swap once for a super wasteful haskell program I made
knupfer1 has joined #nixos
<jasom> dvorak: have you tried tuning the ZFS ARC size to be smaller? That will also allieve memory pressure (at the expense of performance with larger working sets)
<jonringer> the zfs arc should free memory usage as memory pressure increases
<dvorak> I do not currently have ZFS installed natively, its a dual-boot system which I will probably overwrite in a day or so
<jonringer> I don't use swap on my desktop, but I have 256GB ram on the server, with 256GB swap
<jasom> jonringer: when I last ran an 8gb system it was a bit slow to free, but that was like 5 years ago
orivej has quit [Ping timeout: 265 seconds]
<dvorak> This is a relatively low-end machine
orivej_ has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
<bqv> dvorak: interesting name...
<dvorak> I might end up not using swap due to the thrashing problem you mentioned, and because disk accesses will actually be passed through LUKS before reaching the disk
<dvorak> bqv: I figured it was better than qwerty :P
<jasom> dvorak: you can try using a small amount of zswap as well
<jasom> or zram; whatever the current thing is for doing that
Diogo7 has joined #nixos
<dvorak> The goal is really just to keep the system responsive enough for me to be able to kill the offending program (which earlyoom seems handle automatically)
<jonringer> reviewing tensorflow or pytorch changes can cause 200+GB to be used https://github.com/NixOS/nixpkgs/pull/94156#issuecomment-667257495
Diogo has quit [Ping timeout: 240 seconds]
Diogo7 is now known as Diogo
knupfer1 has joined #nixos
<dvorak> The filesystem itself will be ZFS because it offers a nice snapshot feature (and incremental snapshots AFAIK)
<jasom> dvorak: more than 1GB of swap will make that *worse* in my experience. I cut way back on swap when I had a program go off into the weeds and it took 10 minutes for me to be able to type the kill command in my console because the system was so slow
<dvorak> Yeah, I don't have the patience to wait 10 minutes to kill a program
<dvorak> Should I have swap at all?
<jasom> at 8GB a small amount of either zram swap or SSD backed swap makes sense (a fairly large amount of RAM sits untouched, and that will free it up in the steady-state)
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<jasom> I also have zero experience running ZFS on top of LUKS, fwiw
snajpa has left #nixos [#nixos]
<dvorak> Its actually pretty simple, once opening LUKS you can just `zpool create <pool-name> /dev/mapper/<name>`
<tpw_rules> why not use zfs native encryption?
<dvorak> It seems to be pretty leaky to me
<tpw_rules> what do you mean?
<{^_^}> [nixpkgs] @sikmir opened pull request #94683 → hping: 20051105 -> 2014-12-26 → https://git.io/JJKoO
<tpw_rules> i don't think there's any flaws but you are probably right that it's not hard to make a mistake
orivej has joined #nixos
<dvorak> I'm no expert on ZFS but apparently some things are leaked. The thing is I have no idea what but with LUKS it's essentially a guarentee that there won't be any (since it blindly encrypts each block)
knupfer1 has joined #nixos
<dvorak> I would also assume that with native ZFS encryption an attacker would be able to tell that it is a ZFS partition?
<DigitalKiwi> it doesn't encrypt the name of either/both of pools or datasets
<tpw_rules> yeah there's not even a hope of plausible deniability. you can encrypt different datasets with different keys or not at all
<tpw_rules> yeah it couldn't. otherwise you wouldn't be able to identify them when providing keys
orivej_ has quit [Ping timeout: 256 seconds]
<jasom> tpw_rules: sure it could, it would just require decrypting every name with the provided key and ignoring failures
<DigitalKiwi> (i'm not sure about which one(s) it is but that's the major meta data i know of)
thc202 has quit [Ping timeout: 244 seconds]
<dvorak> Does anyone know if systemd-boot supports LUKS partitions? I haven't tested it yet in a VM
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
<DigitalKiwi> i'm more concerned with someone having access to my data (thief, loss) than whether or not they can tell what the name of my zpool is
<tokudan> it's kind of reliable: anytime I use pkgs.writeShellScript(Bin) I waste 15 minutes figuring out the error cannot "coerce a function to a string"... then I give up, login to irc and before asking, figure out that I forgot to provide the script name. :/
sangoma has quit [Quit: WeeChat 2.9]
<DigitalKiwi> tokudan: i keep notes.txt files or skeleton.nix or bash aliases that tell me stuff like that
<tokudan> DigitalKiwi, pkgs.writeShellScript is so simple that I wouldn't look these up...
<DigitalKiwi> function nixhs-tip-adhoc() { echo 'nix-shell -p "haskellPackages.ghcWithPackages (pkgs: with pkgs; [mtl pandoc])"'; }
knupfer1 has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #94672 → jruby: 9.2.12.0 → 9.2.13.0 → https://git.io/JJKB1
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JJKoc
<DigitalKiwi> would you within 15 minutes? :D
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
<dvorak> what are the security implications of setting `allowDiscards = true;` in the LUKS configuration?
<tokudan> dvorak, it means that attackers are able to see which parts of the disk are in use
<dvorak> ok
<tokudan> and since each filesystem sort of has a fingerprint, they could guess your filesystem, which gives them information
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 has quit [Ping timeout: 246 seconds]
chr0ma[m] has joined #nixos
__monty__ has quit [Quit: leaving]
simba1 has quit [Ping timeout: 272 seconds]
cosimone has quit [Quit: Quit.]
orivej_ has joined #nixos
<{^_^}> [nixpkgs] @tokudan opened pull request #94685 → borgbackup: Allow backup of data streams → https://git.io/JJKKI
arjen-jonathan has quit [Ping timeout: 260 seconds]
orivej_ has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
pr06lefs has quit [Ping timeout: 260 seconds]
ramses_ has quit [Ping timeout: 240 seconds]
malook has quit [Quit: malook]
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @oyren opened pull request #94686 → gtg: init at 0.4.0 (Getting Things GNOME) → https://git.io/JJKKR
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}> [nixpkgs] @kalbasit opened pull request #94687 → mellowplayer: 3.6.4 -> 3.6.5 → https://git.io/JJKKz
wallacer3 has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
wadkar has joined #nixos
<{^_^}> [nixpkgs] @catern opened pull request #94688 → util-linux: 2.35.2 -> 2.36 → https://git.io/JJKKX
gv has quit [Ping timeout: 256 seconds]
Rusty1 has joined #nixos
wallacer3 has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
polezaivsani has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #77828 → gnunet-gtk: init at 0.12.0 → https://git.io/JvTee
<{^_^}> [nixpkgs] @jonringer pushed commit from @pstn to master « gnunet-gtk: init at 0.12.0 »: https://git.io/JJK6v
petar has quit [Ping timeout: 244 seconds]
argc has joined #nixos
pr06lefs has joined #nixos
<argc> I think something has gone fairly horribly wrong with my NixOS rig today, and was hoping for some potential insight. I had a few processes randomly freeze and so rebooted; after the reboot, things came up but when I went to connect to my work VPN (via some scripts managed by NixOS) I got some errors about missing data. Forced fsck on / didn't reveal anything, but there are clearly missing files and an attempt to rebuild my configuration yields an error that
<argc> wasn't happening a few days ago with no changes to the configuration: https://pastebin.com/9TuhV05A -- does this happen to look familiar to anyone?
alexherbo2_ has quit [Ping timeout: 256 seconds]
alexherbo2 has quit [Ping timeout: 256 seconds]
maier has joined #nixos
gv has joined #nixos
bqv has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer opened pull request #94689 → gnunet{,-gtk}: bump to 0.13.1 → https://git.io/JJK6r
bqv has joined #nixos
matthewcroughan has quit [*.net *.split]
turlando has quit [*.net *.split]
growpotkin has quit [*.net *.split]
rgrau has quit [*.net *.split]
judson has quit [*.net *.split]
hspak has quit [*.net *.split]
MightyJoe has quit [*.net *.split]
AlpineLlama has quit [*.net *.split]
tobiasBora2 has quit [*.net *.split]
stree_ has quit [*.net *.split]
cransom has quit [*.net *.split]
m4ts has quit [*.net *.split]
jhuizy has quit [*.net *.split]
sjourdoi- has quit [*.net *.split]
otti0815 has quit [*.net *.split]
deni has quit [*.net *.split]
dfgg has quit [*.net *.split]
<{^_^}> [mobile-nixos-website] @samueldr pushed to master « Add July 2020 round-up »: https://git.io/JJK69
asymptotically has quit [Quit: Leaving]
maier has quit [Ping timeout: 256 seconds]
rgrau has joined #nixos
turlando has joined #nixos
AlpineLlama has joined #nixos
hspak has joined #nixos
judson has joined #nixos
growpotkin has joined #nixos
WeblordPepe has joined #nixos
reivilibre has joined #nixos
jhuizy has joined #nixos
cransom has joined #nixos
tobiasBora has joined #nixos
stree_ has joined #nixos
m4ts has joined #nixos
drewc has joined #nixos
tobiasBora2 has joined #nixos
sjourdoi- has joined #nixos
statusbot has joined #nixos
MightyJoe has joined #nixos
matthewcroughan has joined #nixos
avn has joined #nixos
dweller has joined #nixos
dminuoso has joined #nixos
phI||Ip_Alternat has joined #nixos
vuko has joined #nixos
otti0815 has joined #nixos
runciter has joined #nixos
dfgg has joined #nixos
djanatyn has joined #nixos
deni has joined #nixos
Unode has joined #nixos
oleks has joined #nixos
woffs has joined #nixos
nbathum has joined #nixos
pie_ has joined #nixos
switchy has joined #nixos
electrocat has joined #nixos
tpanum has joined #nixos
lewo has joined #nixos
Philonous has joined #nixos
AlpineLlama has quit [Max SendQ exceeded]
hspak has quit [Max SendQ exceeded]
hspak has joined #nixos
AlpineLlama has joined #nixos
<{^_^}> [nix] @Ericson2314 opened pull request #3895 → WIP: More templated STL support for the daemon protocol --- contains #3859 → https://git.io/JJK6b
erasmas has quit [Quit: leaving]
orivej has quit [Quit: No Ping reply in 180 seconds.]
nckx has joined #nixos
orivej has joined #nixos
<lightandlight> Is it okay to ask plain nix questions here? I'm wondering if there's a simple way to query the output path hash of an expression. `nix-build expr.nix` prints a string of form `/nix/store/<hash>-<name>` to the terminal, is there a nix command that will take `expr.nix` as an argument and print `<hash>` for me?
<dvorak> Another relative noob here, but I believe you can get the derivation path by evaluating the expression in `nix repl`
<dvorak> It should not build the expression unless you use `:b`
<lightandlight> Unfortunately that doesn't help me. In my case, I've already built the derivation and I want to obtain the hash in the output's store path
<infinisil> lightandlight: The best you can do is just modify the resulting string
devalot has quit [Ping timeout: 260 seconds]
<infinisil> > lib.removePrefix builtins.storeDir pkgs.hello.outPath
<{^_^}> "/rg0pr6ddfsigm516lc2i1xwg5ksg12ff-hello-2.10"
<infinisil> > lib.substring 1 32 (lib.removePrefix builtins.storeDir pkgs.hello.outPath)
<{^_^}> "rg0pr6ddfsigm516lc2i1xwg5ksg12ff"
emmanuel_erc has quit [Ping timeout: 256 seconds]
<dvorak> Just curious, how can you import the expression for lib in `nix repl`?
<infinisil> Oh and then you can't nix-build that directly, but you'll have to `nix-instantiate --eval` that
<infinisil> lightandlight: Why do you need this though?
orivej has quit [Ping timeout: 246 seconds]
<infinisil> dvorak: :l <nixpkgs>
<infinisil> Or start it with `nix repl '<nixpkgs>'`
orivej has joined #nixos
smatting_ has quit [Ping timeout: 260 seconds]
<lightandlight> infinisil: I'm using `nixpkgs.dockerTools.buildImage` which by default tags the image with the nix store hash (I think that's a good tagging strategy) (the buildImage builder uses `cut` to extract the hash). So, after building the image I want to invoke `docker load -i image:<hash>`.
terribleArtist has joined #nixos
<infinisil> lightandlight: Ah, then I'd just do `nix-build expr.nix | cut -d/ -f4 | cut -d- -f1` or so
xelxebar_ has joined #nixos
xelxebar has quit [Ping timeout: 240 seconds]
<lightandlight> yep
<energizer> i want to ask my admin to install nix on a many-user machine. should i ask for single-user or multi-user mode?
<lightandlight> Thanks for the help maties
<infinisil> energizer: multi-user!
<infinisil> Otherwise only them or you (but not both, assuming you have a different user) could use it
malook has joined #nixos
<{^_^}> [nixpkgs] @zowoq pushed to master « doc/2009: remove trailing whitespace »: https://git.io/JJKiz
<energizer> infinisil: on this machine i normally have to pay for storage >20G. if the nix store gets large, i'm not sure how that works. i've paid for my own directory in /users/energizer/ , but obviously that's not the right location for the store.
<infinisil> Oh this is not for work?
<energizer> infinisil: this is for work, there is a storage allocation system that involves charge accounts
<infinisil> energizer: If you just want to install Nix for yourself and linux user namespaces are supported, I'd try this: https://github.com/nix-community/nix-user-chroot
<infinisil> No need for any admin action
<energizer> infinisil: i tried that once before but wasn't successful
<infinisil> And Nix can live in your home dir then
m0rphism has quit [Ping timeout: 246 seconds]
malook has quit [Quit: malook]
mbrgm_ has joined #nixos
<infinisil> Oh yeah, that's too old
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
<infinisil> energizer: Maybe you can just ask the admin for a bind mount from /nix to /home/energizer/nix
<infinisil> I believe that should work
<infinisil> And do a single-user installation then
<energizer> infinisil: would proot work?
<infinisil> Maybe, I've never successfully used proot (never tried that hard either though), but it would also be slower
dvorak has quit [Quit: Connection closed]
qer has joined #nixos
<energizer> infinisil: how new does the kernel need to be for nix-user-chroot?
justanotheruser has joined #nixos
<energizer> so who knows i guess :)
<infinisil> So 3.12 should be enough
<energizer> seems i'm about 10 years behind that
camsbury has quit [Ping timeout: 260 seconds]
qer has quit [Remote host closed the connection]
<energizer> er 4 years
lunik14 has joined #nixos
<energizer> infinisil: why single vs multi?
<infinisil> So yeah I'd ask for a bind mount or a linux update, that would be the easiest. Or alternatively if they can make an exception for paying of /nix storage, ask for a multi-user installation
lunik1 has quit [Ping timeout: 256 seconds]
lunik14 is now known as lunik1
wadkar has left #nixos ["WeeChat 2.9"]
alp has quit [Ping timeout: 256 seconds]
page has joined #nixos
camsbury has joined #nixos
<{^_^}> [nixpkgs] @jonringer closed pull request #76260 → Py3 adb shell → https://git.io/JJKPE
iyzsong has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
philr has joined #nixos
camsbury has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
<chipb> energizer: one potential option is to use a non-standard /nix location in your own storage. you'll end up needing to build *everything* since the mirrors won't have them built for your path, but it's certainly doable.