worldofpeace changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018 || For best support,
aristid_ has quit [Ping timeout: 276 seconds]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
aristid_ has joined #nixos
zeta_0 has joined #nixos
Rusty1 has quit [Remote host closed the connection]
<zeta_0> i burned nixos into an sd card and put it into my raspberry pi, and my pi is not detecting it(tv tells me no signal) ? why is it not working ?
<zeta_0> i burned a .img file onto the sd card, should i convert it to a .iso file and then burn it onto the sd card
<notgne2> I believe in this case they should be the same thing (just a different extension)
jgeerds has quit [Ping timeout: 240 seconds]
<notgne2> that is, if you're writing it with `dd`, I'm not sure how to use raspis really
<zeta_0> notgne2: i used dd, i don't know why the pi is not recognizing nixos ?
ng0 has quit [Quit: Alexa, when is the end of world?]
<zeta_0> has anyone here had this issue before with their pi ?
mexisme has quit [Ping timeout: 245 seconds]
<zeta_0> i don't know what to do next ?
<zeta_0> i'm stuck
<DigitalKiwi> which iso did you burn?
shibboleth has joined #nixos
<samueldr> you will need to use the one specially for the raspberry pi 4
mbrgm_ has joined #nixos
<zeta_0> samueldr: oh, thanks'?
mbrgm has quit [Ping timeout: 265 seconds]
mbrgm_ is now known as mbrgm
<zeta_0> samueldr: typo
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
waleee-cl has quit [Quit: Connection closed for inactivity]
LysergicDreams has quit [Ping timeout: 240 seconds]
shibboleth has quit [Quit: shibboleth]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #73946 → lua wrapper: Fix bash error → https://git.io/Jeils
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @risicle opened pull request #73947 → [r19.03] slurm: add patch addressing CVE-2019-12838 → https://git.io/JeilZ
iqubic has joined #nixos
Rusty1 has joined #nixos
mananamenos has quit [Ping timeout: 252 seconds]
jluttine has quit [Ping timeout: 265 seconds]
betawaffle has joined #nixos
LysergicDreams has quit [Ping timeout: 246 seconds]
drakonis1 has quit [Quit: WeeChat 2.6]
thc202 has quit [Ping timeout: 265 seconds]
LysergicDreams has joined #nixos
iqubic` has joined #nixos
iqubic has quit [Ping timeout: 245 seconds]
rardiol has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JeilD
growpotk- has joined #nixos
marcusr has quit [Remote host closed the connection]
wildtrees has quit [Quit: Leaving]
marcusr has joined #nixos
zeta_0 has joined #nixos
zeta_0 has quit [Remote host closed the connection]
zeta_0 has joined #nixos
<zeta_0> samueldr: using the img you linked to i burned the new img onto the sd card and put it in my raspberry pi, but it is still not working ?
<zeta_0> samueldr: still not detected ?
<samueldr> just verifying, this is a .bz2 image, you did unpack it before, right?
<zeta_0> samueldr: no ?
<zeta_0> samueldr: i have to unzip it ?
<samueldr> you will need to, bunzip2 the file
<zeta_0> samueldr: so the utility that i need to install is called `bunzip2` ?
<samueldr> it's likely already in your environment, though other tools may be able to handle it too, maybe file-roller does
<zeta_0> samueldr: it's there, my mistake, i had never heard of that file extension before
<zeta_0> samueldr: `bunzip2` or `bzip2` ?
<samueldr> one zips, the other unzips
noudle has quit []
<zeta_0> samueldr: oh so bunzip2, thanks
LysergicDreams has quit [Ping timeout: 276 seconds]
LysergicDreams has joined #nixos
<zeta_0> samueldr: so: `bunzip file_name.bz2` ?
<zeta_0> samueldr: correct ?
iyzsong has joined #nixos
<zeta_0> samueldr: typo: bunzip2
nuncanada has quit [Quit: Leaving]
<zeta_0> samueldr: i'm guessing it works the same as `unzip`
Ariakenom has quit [Read error: Connection reset by peer]
zeta_0 has quit [Quit: fixing stuff]
jluttine has joined #nixos
o1lo01ol1o has joined #nixos
daspork has joined #nixos
tmaekawa has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73903 → kde-frameworks.extra-cmake-modules: allow for unset qtPluginPrefix → https://git.io/Jeie2
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/Jei8t
<aleph-> Hmm, anyone see something wrong with this nginx service declaration? Not getting any errors on a rebuild but there's no nginx service file/nginx isn't starting up.
LysergicDreams has quit [Ping timeout: 265 seconds]
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<daspork> So are there any active cache.nixos.org mirrors for mainland china? I see there is a mirror of the actual nix package manager @ tsing hua uni, but im unclear if that is also a package mirror. The information on this seems to be a little sparse.
LysergicDreams has joined #nixos
<gchristensen> daspork: I can't look now, but I suppose fastly doesn't have any POPs in China?
<clever> aleph-: nginx wont do anything until you nginx.enable = true;
<aleph-> ... god dangit
<aleph-> Guess I deleted that stanza
<aleph-> Sigh...
pbb has joined #nixos
<daspork> gchristensen doesnt seem like it, at least from china mobile's network, i have not tested china telecom
<daspork> getting mirrors in china is reasonably easy to do and im willing to do that work to get at least the local uni to set it up. the unis, huawei, and alibaba have extensive mirrors of very minor things.
<daspork> but I saw no clear documentation on any of this, mirror changes etc, but this is most probably my ignorance
mexisme has joined #nixos
lovesegfault has quit [Ping timeout: 240 seconds]
LysergicDreams has quit [Ping timeout: 250 seconds]
mexisme has quit [Ping timeout: 250 seconds]
h0m1 has quit [Ping timeout: 246 seconds]
<nh2> clever: do you use zfs on root with encryption? If yes, does systemd-boot support unlocking that?
<nh2> (without /boot partition)
<clever> nh2: i use grub on everything, and my encrypted systems are all plaintext /boot with luks+zfs
Okinan has quit [Quit: Konversation terminated!]
<clever> nh2: efi requires a plaintext /boot for the efi binaries
<adisbladis> daspork: Fastly doesn't have anything in the mainland. HK is the closest.
LysergicDreams has joined #nixos
h0m1 has joined #nixos
<adisbladis> daspork: We don't really have mirrors, we have cache frontends
Okinan has joined #nixos
<daspork> and there is the rub, if you know anything about internet here its split between three provider networks and for instance if im on china mobile and the HK link is on china telecom its not that great.
<adisbladis> daspork: Yeah I know :/
<daspork> i will add that its not unusable. ~90k, but when you are on gigabit fiber......
<adisbladis> daspork: Yeah my experiences with the nixos cache in mainland china are not fantastic...
<daspork> cool, ill do some reading on those links, but im here boots on the ground and have at least reasonable ties to a decent sized local uni with some existing mirrors, maybe running a cache isnt out of the realm of possibility
<adisbladis> daspork: You could easily just spin up a caching proxy
<daspork> let me read more about how it works etc
<adisbladis> Though that wouldn't really help with the initial downloads
<daspork> yeah the issue is, that its never gonna really help me but would help others
<clever> daspork: ive got a caching mirror for cache.nixos.org on my lan, and it gets about 50% hit ratio (by byte) over the long term
<clever> daspork: so roughly half of the things i get from the binary cache, are just direct gigabit from another hdd in the house
growpotk- has quit [Ping timeout: 240 seconds]
<clever> daspork: https://github.com/cleverca22/cachecache is the source
<{^_^}> [nixpkgs] @edef1c opened pull request #73948 → ###### Motivation for this change → https://git.io/Jei8R
<aleph-> clever: Hmm, see anything wrong here? Specifically with the git entry. Confirmed nginx serice up, confirmed that git serice is up, however it's timing out trying to connect over https and complete. https://bpaste.net/show/QFIJ6
<clever> aleph-: did you tell the nixos firewall to open both 80 and 443?
bridge[evilred] has quit [Remote host closed the connection]
<edef> i swear to god, hub(1) is going to end me
bridge[evilred] has joined #nixos
morgaine[evilred has joined #nixos
<aleph-> ... clever can we just assume yes and never speak of this again
<clever> aleph-: i also prefer enabling https like this: https://github.com/cleverca22/nixos-configs/blob/master/earthtools.ca.nix#L67-L69
<{^_^}> [nixpkgs] @edef1c opened pull request #73949 → iperf3: correct license to bsd3 → https://git.io/Jei80
<daspork> adisbladis clever thanks for helping
<aleph-> clever: Yeah I tried that, gonna go back to it. Assumed I was doing something wrong but alas it was my iptables conf...
<aleph-> Sighhhh
<adisbladis> daspork: Out of curiousity, how many nix users are there in your uni?
<adisbladis> I haven't met a whole lot of chinese nix users
<adisbladis> There is a fair community in HK though
<daspork> I'm not part of or at the uni just know a lot of people there. There is a lot of interest in it. I see it mentioned a lot in our QQ group
<adisbladis> Cool :)
<{^_^}> [nixpkgs] @edef1c opened pull request #73950 → Fix steam build under `allowAliases = false` → https://git.io/Jei8u
<daspork> And to be fair on this whole issue, all of us have ways around GFW, but the reliable methods are not simple and hard to set up on a bare OS
<daspork> For me the only 100% reliable, never gets throttled way is proxy over stunnel. This is not a simple thing to include in a chroot, nspawn, or virtualbox install
<adisbladis> daspork: I'm aware.. It used to be so simple :/
<adisbladis> I used to use obfsproxy, dunno if it's still a viable approach or not.
johnw has quit [Quit: ZNC - http://znc.in]
<{^_^}> [nixpkgs] @edef1c opened pull request #73951 → Fix gnupg build under `allowAliases = false` → https://git.io/Jei8V
johnw has joined #nixos
<daspork> obfsproxy works for a while for me, 7-10 days then the hosts become unreachable. They seem to completely ignore TLS traffic on 443, 8000, 8080 though
<{^_^}> [nixpkgs] @samueldr opened pull request #73952 → jack2: 1.9.13 -> 1.9.14 → https://git.io/Jei81
rhalff has joined #nixos
<adisbladis> daspork: Hmm, interesting. I used to use that approach but it started being unreliable, hence switching to obfsproxy.
rhalff has quit [Remote host closed the connection]
<daspork> thats the thing, people seem to think of the GFW as a monolithic thing, but its an extremely fractured thing with many many implementations and methods, for instance even if you completely obfuscate the traffic, a high ratio of unsniffable traffic to normal china traffic over time will get a server ip banned. This i have been able to replicate a lo
<daspork> t, hence the use of proxy over TLS since its very easy and well supported in browsers to pass traffic to proxies based on regex
<adisbladis> daspork: My favourite solution was always to get one of those special HK sims that bypass GFW :P
<adisbladis> Even in the mainland
<edef> samueldr: i'm confused by your checkmarks
<daspork> when your traffic just disappears and goes to a single ip and its uninspectible, its only takes days to get a server ip ban
<edef> samueldr: you're aware that [x] shows a checked box, right?
<edef> samueldr: (and is what ticking the box in GitHub UI produces)
<samueldr> I have seeing "x/y tasks completed" on my PRs
<samueldr> I hate*
<samueldr> checkboxes should be used for tasks that can be completed imo :)
<samueldr> the current way they're used it couldn't really be used to keep track of the status of a PR with "todo items"
<samueldr> though I don't see an alternative
<edef> mmm
<edef> i just delete items that aren't relevant
Lysergic1reams has joined #nixos
LysergicDreams has quit [Ping timeout: 276 seconds]
<nh2> clever: I am trying out zfs's native encryption. https://nixos.wiki/wiki/NixOS_on_ZFS recommends vfat for /boot. Do you know if that's necessary?
<edef> VFAT is a reasonable choice if you're using EFI
<edef> UEFI*
<clever> nh2: also, i dont think grub supports zfs crypto, so the kernel+initrd must be on a non-zfs /boot/
Lysergic1reams has quit [Ping timeout: 240 seconds]
<clever> and efi requires /boot to be vfat
<adisbladis> edef: Not only reasonable but required
<{^_^}> [nixpkgs] @suhr opened pull request #73953 → alloy: 5.0.0.1 -> 5.1.0 → https://git.io/Jei89
<edef> adisbladis: depends!
<edef> adisbladis: on mac UEFI, you can use HFS+
<adisbladis> edef: TIL :)
<edef> adisbladis: and on any other, there are ports of the GRUB2 filesystem drivers, including ZFS, that you could patch into your firmware
felixfoertsch has joined #nixos
<clever> yeah, its up to the firmware vendor to add other FS's
<clever> but most only do vfat
<edef> adisbladis: https://efi.akeo.ie
<edef> adisbladis: this is all of course mildly ridiculous, but technically usable
<nh2> edef adisbladis clever: I know ESP has to be vfat, but there seems to be lots of possibility of what actually gets mountet at /boot (according to the systemd-boot man page, apparently sometimes the ESP itself get s mounted at /boot, but sometimes at a subdirectory). So I'm wondering if the "/boot needs to be vfat" requirement is only true if the ESP is at /boot
<clever> nh2: yeah, you can shove the ESP at /boot/ESP, but grub still doesnt support the zfs crypto, so /boot must be non-zfs
orivej has quit [Ping timeout: 276 seconds]
<clever> nh2: and that just adds one more partition&fs into the mix
<edef> do you have anything *but* the ESP stuff in there
felixfoertsch23 has quit [Ping timeout: 265 seconds]
<edef> i'm using systemd-boot and there's just like, kernels and a systemd-boot binary and .conf's for the entries
<adisbladis> edef: That's my kind of crazy right there :)
<edef> adisbladis: ^_^
<edef> if i had a non-laptop to mess around with i'd totally patch ZFS support into the firmware
<clever> edef: i'm not sure what systemd-boot will do if /boot isnt the ESP
<edef> shouldn't be that much trouble to repack those, i used to do it back in the day for patching custom SLICs into the firmware
<clever> edef: my understanding, is that systemd-boot is more limited, and must use the FS drivers the firmware provides
<edef> clever: correct, yes
<clever> while grub is basically an entire os, and can supply its own drivers
<edef> yep
<clever> related, grub does NOT have nvme drivers!!
<edef> systemd-boot is a very boring UEFI chainloader
<edef> oof
<clever> it relies on the efi firmware to provide nvme support
LysergicDreams has joined #nixos
<clever> for my desktop, my entire /boot must be non-nvme, i cant chainload from a stage1.5->nvme/boot
<clever> but for my laptop, it boots directly from nvme
rhalff has joined #nixos
mla has quit [Quit: WeeChat 2.2]
<clever> edef: i also dont know how, but the windows installer can detect if the bios has nvme support, and will refuse to even install to an nvme disk
ddellaco1 has quit [Ping timeout: 265 seconds]
gagbo has joined #nixos
<edef> clever: sounds reasonable tbh
<clever> i'm interested in how, so nixos could tell you its not going to work
<clever> and give bypass options, like using a sata disk to bootstrap
<edef> hmm, EFI runtime services might know
<edef> there's probably some protocols for NVMe stuff
<clever> yep, just a matter of how to interface with them from userland, and what to ask
<edef> been a while since i did UEFI programming
<clever> i tried building a hello-world with the nixpkgs cross-compilers, but it didnt boot under qemu
m0rphism has quit [Ping timeout: 250 seconds]
<edef> oh, nuts
<edef> my PRs all got mangled
tmaekawa has quit [Quit: tmaekawa]
<Ashy> does anyone here have an example of adding udev rules to configuration.nix for a solokey?
<Ashy> or just custom udev rules in general?
<nh2> clever: hmm I found that systemd-boot-builder.py complains when the ESP is mounted under /boot/efi
<edef> welp, found a bug in my patch submission code i forgot about
<clever> Ashy: services.udev.extraRules
<clever> nh2: you must set boot.loader.efi.efiSysMountPoint to where you mounted the ESP
<nh2> clever: is there a benefit to not having ESP directly on /boot (I imagine one benefit is that I can dictate amount of space available to kernels this way if i don't want to resize the ESP that's already on my machine?)
<clever> nh2: i think the only real value, is if / is ext4, then /boot can just be a directory on / itself, and you have no size limits
<clever> nh2: only the main efi binary will be on the esp, and it basically never grows
<Ashy> clever: cheers
<nh2> clever: right, I have that setup on another machine and find that convenient, but I guess that doesn't work if / is zfs
<clever> nh2: yeah, so you need to make another partition for /boot/ and then you just moved the problem elsewhere
<clever> nh2: for non-encrypted zfs, i have had limited success with grub reading zfs
<clever> nh2: somehow, it can boot, but all directory listing operations fail, so its nearly imposible to debug how it works
<clever> and when things do go wrong, your screwed :P
<nh2> clever: yeah I've seen the bug that dir listings don't work
<nh2> clever: I'm going with the unencrypted /boot == ESP option for now and see how that goes. I like that nixos prompted me for the passphrase; it did interleave that prompt with some other boot garbage though
<nh2> the Ubuntu + LUKS graphical boot prompt on my other machine looks a bit slicker in that comparison
<clever> nh2: i mentioned how to fix that in an issue...
<{^_^}> #44965 (by ElvishJerricco, 1 year ago, open): Enabling plymouth hides ZFS password prompt
<nh2> clever: cool I subscribe there
Okinan has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @marsam merged pull request #73909 → nodejs-13_x: 13.1.0 -> 13.2.0 → https://git.io/JeifK
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jei8j
oxford has quit [Ping timeout: 260 seconds]
oxford has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #73954 → perl: 5.30.0 -> 5.30.1 → https://git.io/Jei4U
boxscape has quit [Ping timeout: 250 seconds]
iqubic` is now known as iqubic
<{^_^}> [nixpkgs] @edef1c closed pull request #73951 → Fix gnupg build under `allowAliases = false` → https://git.io/Jei8V
LysergicDreams has quit [Ping timeout: 265 seconds]
LysergicDreams has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
slack1256 has joined #nixos
aw has joined #nixos
spacefrogg has joined #nixos
rardiol has quit [Ping timeout: 265 seconds]
rhalff has quit [Remote host closed the connection]
rhalff_ has joined #nixos
dansho has joined #nixos
rhalff_ has quit [Remote host closed the connection]
<sheenobu> what's the status of wayland on nixos?
bahamas has joined #nixos
das_j has quit [Remote host closed the connection]
Scriptkiddi has quit [Remote host closed the connection]
das_j has joined #nixos
Scriptkiddi has joined #nixos
<Ashy> working fine for me in sway and gnome
bahamas has quit [Ping timeout: 276 seconds]
delfin219[m] has joined #nixos
delfin219[m] has left #nixos ["User left"]
reactormonk has joined #nixos
<slack1256> How do I set up sysctl variables on starup on nixos?
LysergicDreams has quit [Ping timeout: 250 seconds]
<slack1256> More than that, how do I configure cgroups v2 controllers/options at startup?
LysergicDreams has joined #nixos
mexisme has joined #nixos
fresheyeball has joined #nixos
<fresheyeball> so I am using readFile for my vimrc
<fresheyeball> annnnd I am pretty sure updating the vimrc does nothing
<fresheyeball> does readFile not count as a src?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
mexisme has quit [Ping timeout: 246 seconds]
<evils> fresheyeball: do you also rebuild nixos after updating your vimrc?
reactormonk has quit [Ping timeout: 276 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
work_ has quit [Quit: Connection closed for inactivity]
lovesegfault has joined #nixos
endformationage has quit [Quit: WeeChat 2.6]
xkapastel has joined #nixos
o1lo01ol1o has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.6]
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
sheenobu has quit [Remote host closed the connection]
<iqubic> And this is #nixos
<iqubic> This is awesome art.
<slack1256> DigitalKiwi: Good art, do you ship overseas?
<DigitalKiwi> yes
o1lo01ol1o has quit [Remote host closed the connection]
<nh2> which was the helper function that allows me to prepare a directory tree in the nix store? I always struggle to find it
lovesegfault has quit [Ping timeout: 252 seconds]
lovesegfault has joined #nixos
<infinisil> nh2: symlinkJoin or buildEnv?
<infinisil> Or there's linkFarm too
<lovesegfault> infinisil: You nerd sniped me
<infinisil> Hehe how?
<nh2> infinisil: I think it wasn't one of them but will double check
<lovesegfault> I was going to go to Hawaii on Sunday and not bring my laptop, just my pipe and a book
<lovesegfault> Now I need to build my beets replacement
<lovesegfault> So I guess that's what I'll do in hawaii :P
<infinisil> nh2: What do you mean by "prepare a directory"?
<infinisil> lovesegfault: Haha, I'm not taking any responsibility for a wasted Hawaii trip xD
<lovesegfault> infinisil: I've already directed my wife to you for complaints
<nh2> infinisil: make a nested directory structure where leaves can be writeFile and so on. If it was one of the ones you said, it was probably linkFarm
<lovesegfault> it's too late
<infinisil> !
<infinisil> nh2: Yeah that sounds about like that. I also have a function for transforming an attrset into a dircetory structure somewhere
<infinisil> Like { foo.bar = "test"; } gets made into $out/foo/bar containing test
<nh2> infinisil: that looks like what I need, thanks!
<infinisil> :D
morgaine[evilred has quit [Quit: Idle timeout reached: 10800s]
<infinisil> I've heard some people issue concerns about the pushd/popd instead of using subshells though
Rusty1 has quit [Quit: Konversation terminated!]
<infinisil> Not sure why tbh
<slack1256> I miss the old nixos-devel mailing list. I can't find a way for the discourse interface to send me Emails instead, is that possible?
marusich has joined #nixos
<infinisil> slack1256: https://discourse.nixos.org/u/infinisil/preferences/emails "Mailing list mode"
<infinisil> Oh um, on your own preferences page
<slack1256> Thanks infinisil
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<nh2> should `displayManager.sessionCommands" manage to run tray GUI apps like `pasystray`? It suggests these run before the window manager so I'm not sure it's legal
orivej has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
codygman____ has joined #nixos
bvdw has joined #nixos
<codygman____> nix-build looks for default.nix right? Is there a minimal default.nix I can make that simply executes a shell script?
<infinisil> codygman____: `with import <nixpkgs> {}; runCommand "foo" {} "touch $out"`
zeta_0 has joined #nixos
zeta_0 has quit [Client Quit]
zeta_0 has joined #nixos
<zeta_0> ok, i got nixos to boot up in my raspberry pi 4, it brought me to the terminal, after this are the installation instructions the same as installing nixos on a laptop, or am i going to need to take different steps from here ?
<clever> zeta_0: should be pretty similar from then on
mexisme has joined #nixos
<zeta_0> clever: so i need to use the nixos manual as well as the manually for pi ?
<clever> zeta_0: manually for pi?
<zeta_0> clever: manual(not manually), i'm getting sleepy
<clever> zeta_0: you should be able to freely use configuration.nix and nix-env as normal
<zeta_0> clever: there is no configuration.nix file, do i just create one ?
<zeta_0> clever: what instructions do i need to follow from here ?
<clever> zeta_0: ah, yeah, youll need to create one, and it should include the proper bootloader config
<zeta_0> clever: so let me get this straight, i just need to create a configuration.nix file, fill it out, then do a rebuild switch, or do i need to do other steps as well ?
mexisme has quit [Ping timeout: 276 seconds]
<clever> zeta_0: should be that simple
<zeta_0> clever: ok, so i'll do a `touch configuration.nix` in `/etc/nixos/`
<clever> and it must be a valid nixos config
<clever> that accurately describes the pi (what mounts where, and how it boots)
slack1256 has quit [Remote host closed the connection]
palo1 has joined #nixos
<zeta_0> clever: ok, i am using the configuration options from the raspberry pi documentation
palo has quit [Ping timeout: 252 seconds]
palo1 is now known as palo
<zeta_0> clever: i haven't setup any passwords, so how do i sign into root ?
isHavvy has joined #nixos
sb0 has joined #nixos
<clever> zeta_0: what happens if you `sudo -i` ?
<zeta_0> clever: it worked, i got signed into root, thanks, i haven't done this in a long time, so i don't remember the commands to well
orivej has quit [Ping timeout: 240 seconds]
<clever> zeta_0: normally, sudo will ask for a password, so you may want to set one now, it sounds like that image was changed from the default
isHavvyGhosting has quit [Ping timeout: 245 seconds]
<zeta_0> i need to set a password for both: `user` and `root`, right ?
<clever> yeah
zqxw has joined #nixos
zupo has joined #nixos
captn3m0 has quit [Ping timeout: 265 seconds]
<zeta_0> clever: to disconnect the fan attached to the raspberry do i just need to unplug one of the 2 cords(while its on), i don't want to break the fan ?
<clever> zeta_0: fan?
<zeta_0> i placed the pi in a case that comes with a fan
<zeta_0> clever: and it connects to 2 pins
o1lo01ol1o has joined #nixos
<clever> zeta_0: which 2 pins?
<zeta_0> clever: it's just to loud, 2nd and 14th pin(like the instructions stated)
<clever> can you link those instructions?
<zeta_0> clever: the instructions came with the pi, so let me see if i can find a link
<zeta_0> clever: www.vilros.com
<zeta_0> clever: raspberry pi 4 compatible clear case with fan
<clever> zeta_0: which case from there did you get?
orivej has joined #nixos
halfbit has joined #nixos
zqxw has quit [Quit: Lost terminal]
o1lo01ol1o has quit [Ping timeout: 276 seconds]
<zeta_0> clever: it came as a set
<clever> zeta_0: id say its safe to just unplug the fan and forget about it
<zeta_0> clever: ya, i think its good for heavy tasks but right now it is just annoying
<zeta_0> heavy tasks where the components could heat up that is
<codygman____> This default.nix doesn't seem to run my emacs tests in my github action: https://github.com/codygman/my-emacs-everywhere/blob/master/default.nix
<pistache> zeta_0: on my pi I reused a "low-noise adapter" to reduce the fan RPM
<zeta_0> pistache: what's that ?
<pistache> I think it's just some resistors, but I need to check
<evils> it's 1 resistor
<evils> between a male and a female fan header
<pistache> yep, just a single resistor
<clever> zeta_0: it will also depend on what pins 2 and 14 are
<zeta_0> when i try useradd `user_name`, it asks for a password, but i don't know what that password is, my root password doesn't work ?
zupo has quit [Ping timeout: 265 seconds]
<pistache> 2 is 5V IIRC
<clever> zeta_0: you should be using configuration.nix to add users
zupo has joined #nixos
<zeta_0> well, i know that there is full-mode(pin 1) and quiet-mode(pin 2), is that what you guys mean ?
<clever> pistache: the pinout i have printed, says the 5v is on the complete oposite end from that photo
<pistache> zeta_0: quiet mode is 3.3V, and full mode is 5V
<pistache> but you may be able to go even lower, depending on the fan
<zeta_0> they're both loud so ya, i'll eventually to figure out how to lower the rpm
<pistache> they just reused the two available potentials on the pi, but I suppose the fan has a wider range
<zeta_0> clever: last time i couldn't install nixos because i didn't set any passwords, i just want to make sure that i don't run into that same issue again
<clever> zeta_0: as long as you set a pw on root, you can get root again to fix things
xkapastel has quit [Quit: Connection closed for inactivity]
<zeta_0> clever: cool, now i can finally go to configuration.nix
zupo has quit [Client Quit]
<zeta_0> do programmers stay up late at night, i didn't think anyone would be on at this time ?
<pistache> what function should I use to map each pair of an attrset to multiple pairs of another attrset ?
<lovesegfault> I'm trying to fix the derivation of cargo-edit
xkapastel has joined #nixos
<lovesegfault> tests are failing for no good reason; how can I disable them?
<evils> lovesegfault: `dontCheck = true;`?
<lovesegfault> evils: inside buildRustPackage?
<evils> lovesegfault: ah, no idea
<clever> lovesegfault: try it and see what happens!
<lovesegfault> trying
<zeta_0> clever: configuration.nix is empty, i hope i am doing this right
<lovesegfault> :D
<codygman____> Anywho, thanks infinisil!
<clever> zeta_0: try starting with no configuration.nix file, and run nixos-generate-config
<zeta_0> clever: ok, i'll delete it then run that command, thanks for the heads up
<lovesegfault> clever: That did not work
<clever> lovesegfault: how did it fail?
<lovesegfault> is it `doCheck = false;`?
<lovesegfault> it ran the check
<clever> lovesegfault: which derivation did nix say failed?
<lovesegfault> error: build of '/nix/store/x3yxk05nvn88m50gcyl2b5qcizcsr8lj-cargo-edit-0.4.1.drv' failed
<lovesegfault> the one I'm editing
<clever> lovesegfault: and if you run `nix show-derivation` on that drv, does it have a `doCheck` in it?
<clever> lovesegfault: or a dontCheck
<lovesegfault> clever: it had a `dontCheck = true` now I wrote `doCheck = false` to see what happens
zupo has joined #nixos
halfbit has quit [Ping timeout: 240 seconds]
<evils> xD no idea where i got 'dontCheck' from
<zeta_0> clever: will the generated default configuration.nix work with a rebuild switch right away, or will i need to change some of those options ?
<lovesegfault> clever, evils it works now
<clever> zeta_0: not sure, i havent done it in a while
<clever> zeta_0: maybe try `nixos-rebuild test` first
<evils> lovesegfault: nice when people use the same term for the same thing, and someone remembers it correctly
ArdaXi has quit [Ping timeout: 246 seconds]
ArdaXi has joined #nixos
<zeta_0> clever: is there any way to increase the font size from the terminal, the words are hard to see ?
<clever> zeta_0: i generally just turn ssh on, and use another machine
bahamas has joined #nixos
<zeta_0> clever: are there some instructions on how to that in nixos ?
dema has joined #nixos
<clever> zeta_0: services.sshd.enable = true;
dansho has quit [Remote host closed the connection]
<zeta_0> clever: in laptop or pi ?
<clever> zeta_0: the pi
dansho has joined #nixos
<zeta_0> clever: i don't have a cord, and wireless is not setup on pi, may be too painful
<clever> zeta_0: yeah, it gets harder if you dont have network setup yet
codygman____ has quit [Ping timeout: 260 seconds]
marusich has quit [Remote host closed the connection]
Heirlung has quit [Quit: ZNC - http://znc.in]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @vbgl opened pull request #73955 → OCaml: fix configure flags for (optional) flambda and AFL support → https://git.io/JeiRX
aveltras has joined #nixos
<zeta_0> clever: i'm going to sleep, thanks for the help
<zeta_0> clever: do i shutdown the pi switch or is there a terminal command to shut it down, i am too tired to remember ?
<eyJhb> zeta_0: shutdown -h 0
<eyJhb> Prefix with sudo if needed
<zeta_0> eyJhb: thanks
<zeta_0> clever++
<{^_^}> clever's karma got increased to 250
<zeta_0> eyJhb++
<{^_^}> eyJhb's karma got increased to 4
<eyJhb> Always fun with the timezones, I just got up :p np zeta_0 ! Sleep well! :D
<zeta_0> eyJhb: thanks, good night
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
Heirlung has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
gwen has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed 3 commits to master: https://git.io/JeiR5
ixxie has joined #nixos
mexisme has joined #nixos
mojjo has joined #nixos
mexisme has quit [Ping timeout: 250 seconds]
<mojjo> can I run `nix-build` with current packages installed on nixos provided as default arg? including overlays of course...
<clever> mojjo: you would need to put the overlays into somewhere under ~/.config/nix i think
gwen has quit [Quit: Leaving]
gwen has joined #nixos
ixxie has quit [Ping timeout: 252 seconds]
smatting_ has joined #nixos
genesis has quit [Remote host closed the connection]
<gwen> My tor browser is kind-of broken since 19.09 -- does not automatically connect to tor network and crashes when downloading files. Any ideas?
<gwen> I tried removing ~/.local/share/tor-browser and using the tor-browser from 19.03 (on the 19.09 configuration), but it didn't work.
raboof has joined #nixos
<evils> gwen: can you try it from nixos-unstable?
hamishmack has joined #nixos
cbarrett has joined #nixos
scott has joined #nixos
m0rphism has joined #nixos
chessai has joined #nixos
zupo has joined #nixos
<dema> `substituteInPlace servers/native-espeak/Makefile --replace 'LIBPARENTDIR = ${PREFIX}/' 'LIBPARENTDIR = /'` How do I escape `${` so nix wont think that it's a variable PREFIX?
mjsir911 has joined #nixos
<aria> i have a pc on stable 19.09, but need to install a package (clang-tools) from unstable. how do i do it?
<clever> > '' ''${foo} ''
<{^_^}> "${foo} "
<clever> dema: ^
<gwen> aria: You add the unstable channel, and install the package via that channel.
<clever> ,unstable aria
<dema> aria, something like this works for me https://pastebin.com/pBGXgV2s
<leotaku> How can I get the nth item of a list in Nix?
<clever> > lib.elemAt 2 [ "a" "b" "c" "d" ]
<{^_^}> value is a list while an integer was expected, at (string):271:1
<clever> > lib.elemAt [ "a" "b" "c" "d" ] 2
<{^_^}> "c"
<clever> leotaku: ^
<leotaku> clever: thanks
jeregrine has joined #nixos
Tritlo has joined #nixos
<dema> clever++
<{^_^}> clever's karma got increased to 251
chloekek has joined #nixos
<dema> One more question :) Is it possible to run installPhase from inside nix-shell without getting Read-only filesystem errors? Or I just have to set $out to something like /tmp/myout?
<clever> dema: yeah, just change $out first
<dema> ok!
<dema> clever++ :)
<{^_^}> clever's karma got increased to 252
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ng0 has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « vector: make some more options override-able »: https://git.io/JeiE5
ckauhaus has joined #nixos
mananamenos has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.6]
ckauhaus has joined #nixos
dansho has quit [Quit: Leaving]
MichaelRaskin has joined #nixos
iqubic has quit [Remote host closed the connection]
iqubic has joined #nixos
mananamenos_ has joined #nixos
mananamenos has quit [Ping timeout: 240 seconds]
chloekek has quit [Ping timeout: 240 seconds]
captn3m0 has joined #nixos
<{^_^}> [nixpkgs] @Dema opened pull request #73957 → emacspeak: init at 50.0 → https://git.io/Jeiuq
lovesegfault has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #73923 → eksctl: 0.9.0 -> 0.10.2 → https://git.io/JeiqO
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jeium
<{^_^}> [nixpkgs] @marsam merged pull request #73925 → parity: 2.5.9 -> 2.5.10, parity-beta: 2.6.4 -> 2.6.5 → https://git.io/Jeiml
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JeiuO
mexisme has joined #nixos
mexisme has quit [Ping timeout: 252 seconds]
iqubic` has joined #nixos
smatting_ has quit [Ping timeout: 265 seconds]
silver has joined #nixos
iqubic has quit [Ping timeout: 245 seconds]
smatting_ has joined #nixos
alexherbo2 has joined #nixos
<bahamas> is there a way I can add this package to my configuration.nix systemPackages? https://github.com/nix-community/pip2nix
<{^_^}> [nixpkgs] @markuskowa opened pull request #73958 → liblapack: 3.8.0 -> 3.9.0 → https://git.io/Jeiur
MichaelRaskin has left #nixos [#nixos]
<{^_^}> [nixpkgs] @aristaeus opened pull request #73959 → refactor awstats module → https://git.io/Jeiuo
<gwen> bahamas: I guess usually, you would do something like (pkgs.callPackage (pkgs.fetchFromGithub {...}) {}), but maybe this package is already in the NUR?
<mananamenos_> Hi, i've set up HIE, lsp-mode, lsp-haskell with emacs. The doc snippets, error messages, hlint warnings all work, except the stuff like lsp-find-type-definition, lsp-goto-type-definition. I get "Not found for". Any knows what im missing?
<gwen> bahamas: Ah sorry, no it's not in the NUR.
smatting_ has quit [Ping timeout: 240 seconds]
<bahamas> gwen: yes, I just tried and it complained about not finding it
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to release-19.03: https://git.io/Jeiui
<{^_^}> [nixpkgs] @markuskowa merged pull request #73947 → [r19.03] slurm: add patch addressing CVE-2019-12838 → https://git.io/JeilZ
<dolanbatar> hi, have you tried to run VS Code on nixos?
<dolanbatar> i have to do it unfortunately
<dolanbatar> ive tried to patchelf it but no luck
<dolanbatar> it segfaults
<leotaku> Is there any standardized way to get the current nixexprs.tar.xz from a nixos-channels url?
<gwen> evils: I still run into the same problems on tor browser 8.5.6 (based on Mozilla Firefox 60.9.0esr), which is the one I got from the unstable branch
<gwen> my next step would be to try the binary version
<tilpner> leotaku: Just append /nixexprs.tar.xz?
<tilpner> leotaku: Assuming you're talking about URLs like https://nixos.org/channels/nixos-unstable
<leotaku> tilpner: Oh right, I tried that but accidentaly put "tar.gz"...
<gwen> evils: The binary version works better, but has weird graphical display (there seems to be a thick white margin around the displayed content). Whatever, I have to leave soon...
<tilpner> leotaku: In many places of Nix tooling, you can also do: channel:nixos-unstable
ozychhi has joined #nixos
<bdju> does nixos have a packaging wishlist? would be cool to have OpenITG and Etterna packaged. free software rhythm games
<gwen> bdju: I think you can open an issue on the nixpkgs repository, at least I saw many "packaging request" issues there.
<bdju> cool, thank you
ng0 has quit [Ping timeout: 260 seconds]
sb0 has quit [Quit: Leaving]
clefru has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
gwen has quit [Quit: Leaving]
ng0 has joined #nixos
<bdju> anyone have tips for profiling to try to find the cause of performance issues? I'm getting really bad lag pretty often on a reasonably strong machine. the clock will stop updating, the mouse will freeze up, that sort of stuff.
<eon`_> hi, is there a nixos module for managing a pki (ca, self-signed certs, like easyrsa) ?
smatting_ has joined #nixos
Okinan has joined #nixos
<tilpner> > easyrsa.meta.description
<{^_^}> "Simple shell based CA utility"
<tilpner> The package is there, what would the module do?
<tilpner> Renewals?
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ma27 pushed to master « nixos/networkd: add missing `dhcpv6` and `static` options to `IPv6PrefixDelegation` »: https://git.io/JeizY
m0rphism has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @Ma27 pushed to release-19.09 « nixos/networkd: add missing `dhcpv6` and `static` options to `IPv6PrefixDelegation` »: https://git.io/Jeiz3
smatting_ has quit [Ping timeout: 240 seconds]
clefru has joined #nixos
m0rphism1 has quit [Ping timeout: 250 seconds]
bahamas has quit [Quit: leaving]
mexisme has joined #nixos
<{^_^}> [nixpkgs] @spacekookie opened pull request #73960 → wally-cli: init at 1.1.1 → https://git.io/JeizW
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
sondr3 has joined #nixos
m0rphism1 has joined #nixos
mexisme has joined #nixos
Raffa has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #73910 → sops: 3.4.0 -> 3.5.0 → https://git.io/JeifF
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JeizE
Raffa has quit [Remote host closed the connection]
<mananamenos_> i have cachix on my nixos, added `cachix use hercules-ci` succesfully, also ` (import (builtins.fetchTarball "https://github.com/hercules-ci/ghcide-nix/tarball/master") {}).ghcide-ghc865` but then nixos-rebuild switch still compiles this project instead of getting the binary from cachix. What am doing wrong?
<{^_^}> [nixpkgs] @kwohlfahrt opened pull request #73961 → nixos/kerberos: port tests to python → https://git.io/Jeiza
roberth has joined #nixos
<roberth> mananamenos_: you're probably running nixos-rebuild as root whereas cachix use applies to the user settings
* clever scratches head
<clever> roberth: you answered a question from before you joined the channel, lol
<mananamenos_> roberth, `sudo -i; cachix use hercules-ci` says this operation should not be done as root
<clever> mananamenos_: try `nixos-rebuild build`, without root
mexisme has quit [Ping timeout: 245 seconds]
<clever> mananamenos_: long-term, you want to get the url and pubkey for the cachix server, and add them to your configuration.nix file
<mananamenos_> fails with permission denied
<roberth> mananamenos_: you can use cachix --nixos to write nixos configuration files
<clever> mananamenos_: permission denied to what?
<mananamenos_> when doing `nixos-rebuild switch' without sudo. It fails with error: creating symlink from '/nix/var/nix/profiles/system-62-link.tmp-19104-67170885
<clever> mananamenos_: i said build, not switch
<mananamenos_> oh sorry
<clever> mananamenos_: build will obey the non-root config that cachix had generated, and use the cache
<clever> mananamenos_: then it will already be in /nix/store, so switch as root wont have to build anything
<clever> mananamenos_: but `cachix --nixos` would be better, to make it just work as root
<mananamenos_> Invalid option `--nixos'
<clever> mananamenos_: it may be cachix use --nixos?
<mananamenos_> the same
<clever> maybe the version is too old?
<{^_^}> [nixpkgs] @d-goldin opened pull request #73962 → xidlehook: 0.7.1 -> 0.8.0 → https://git.io/JeizQ
<{^_^}> [nixpkgs] @dasJ opened pull request #73963 → rainloop-standard: Fix pname and license → https://git.io/Jeiz7
<evils> since bdju asked for it, i'm giving packaging etterna a try, getting a build error, any suggestions? https://paste.ee/p/7Ugrz
<clever> evils: thats the format security warnings being turned into errors, youll want to check nixpkgs for examples of how to disable format security
<clever> evils: its mainly a safety, to make the code harder to be exploited, so they are doing something "wrong" but it will work
<evils> oh, a grep tells me the manual has something about it xD
mexisme has joined #nixos
andymandias has quit [Quit: ZNC 1.7.4 - https://znc.in]
orivej has quit [Ping timeout: 265 seconds]
andymandias has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace closed pull request #73952 → jack2: 1.9.13 -> 1.9.14 → https://git.io/Jei81
zupo has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #73950 → Fix steam build under `allowAliases = false` → https://git.io/Jei8u
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/Jeigf
<evils> yay, i'm down to the undeclared dependencies :P
zupo has quit [Client Quit]
mexisme has quit [Ping timeout: 276 seconds]
rardiol has joined #nixos
mexisme has joined #nixos
misterwhatever has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
<adisbladis> srk: Indeed reverting 1601a7fcce389ae3f1b1b36676fd5545035566af fixes the problem
<adisbladis> Now I just need to figure out why ;)
juhe has joined #nixos
<das_j> has anyone experienced "chmod (directory attributes) error: Operation not permitted" when unpacking a zip in the unpackPhase?
<clever> das_j: have you checked the directory listing of the zip for anything fishy?
mexisme has joined #nixos
<das_j> clever: It looks like it wants to restore permissions and times/attribs for each entry. but that should work in the sandbox, shouldn't it?
juhe has quit [Client Quit]
<das_j> running `unzip` as my user works well
<clever> pkgs/tools/archivers/unzip]$ cat setup-hook.sh
<clever> unzip -qq "$curSrc"
<clever> das_j: nix uses `unzip -qq` when unpacking
<das_j> just checked that, works for me as well
<das_j> I'll just reboot the machine first
<das_j> well, that fixes it :O
mexisme has quit [Ping timeout: 246 seconds]
kaliumxyz has joined #nixos
mexisme has joined #nixos
<{^_^}> [nixpkgs] @sikmir opened pull request #73964 → gpxsee: 7.17 -> 7.18 → https://git.io/Jeigo
FRidh has joined #nixos
misterwhatever has quit [Remote host closed the connection]
kleisli has quit [Quit: Leaving]
jco has joined #nixos
hmpffff has joined #nixos
m0rphism has joined #nixos
m0rphism1 has quit [Ping timeout: 265 seconds]
mexisme has quit [Ping timeout: 276 seconds]
Thra11 has quit [Ping timeout: 276 seconds]
civodul has joined #nixos
mexisme has joined #nixos
dema has quit [Ping timeout: 276 seconds]
mexisme has quit [Ping timeout: 245 seconds]
Chiliparrot has joined #nixos
mexisme has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
mexisme has joined #nixos
o1lo01ol1o has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
mexisme has joined #nixos
<das_j> clever: Actually, the reboot made everything worse. As I rebooted, I booted into a patched kernel which has AppArmor networking support enabled which I forgot to configure. Hence, almost everything on that server broke and I had to write policies as fast as possible
<clever> das_j: heh, you can always pick an older generation at grub to undo things?
mexisme has quit [Ping timeout: 276 seconds]
<das_j> clever: Nah, then I would have to write the policies at a later time. It just forced me to do it now in the middle of the day (it's 3 PM here)
<das_j> It was just some php stuff and my gitea
mexisme has joined #nixos
<srk> adisbladis: yea, this. I suspect 'unset propagatedDepFilesVars', I will try again later as the stdenv build takes quite long on my machine
<das_j> ummmm
<{^_^}> [nixpkgs] @c0bw3b merged pull request #70979 → discord-canary: 0.0.96 -> 0.0.98 (backport) → https://git.io/JelE3
<{^_^}> [nixpkgs] @c0bw3b pushed 4 commits to release-19.09: https://git.io/Jeiaf
<adisbladis> srk: Lets see :) I can do an stdenv rebuild fairly quickly
<das_j> Why would nix have a ELF 32-bit LSB executable, Intel 80386?
<clever> das_j: some upstream software is only shipped as a 32bit library
<clever> steam for example, is 32bit, so they dont have to deal with shipping 2 versions
<das_j> oh it's about steam actually
<das_j> my hydra failed. maybe I should also switch to the 32 bit libva
<adisbladis> srk: Funnily enough, just building rustc with this commit reverted takes longer than all of the rest...
<clever> das_j: the libva thing is already fixed on nixos-unstable
mexisme has quit [Ping timeout: 252 seconds]
<adisbladis> Ahh! The rustc build is nowhere near using all my cores!
<das_j> clever: I think it was also backported? Anyway, I'm overriding the steam package to add the lib (but the 64 bit variant)
<clever> das_j: yeah, i also saw a pr to backport
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
Guest72295 is now known as OmnipotentEntity
OmnipotentEntity has quit [Changing host]
OmnipotentEntity has joined #nixos
mexisme has joined #nixos
orivej has joined #nixos
<evils> odd, the output only includes an Etterna directory, no binaries
Ariakenom has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
juhe has joined #nixos
<evils> in case someone wants to give it a shot, https://github.com/Evils-Devils/nixpkgs/tree/etterna
<clever> [clever@amd-nixos:~/apps/nixpkgs-hasura]$ nix build -f . etterna
mexisme has joined #nixos
Rusty1 has joined #nixos
<clever> evils: i see the same thing, many things in that one dir
<clever> so the question, is what is the real binary to start it all?
iqubic`` has joined #nixos
<clever> evils: or perhaps the `make install` rules in `CMakeLists.txt` isnt even installing an executable
iqubic` has quit [Ping timeout: 245 seconds]
mexisme has quit [Ping timeout: 250 seconds]
noudle has joined #nixos
<evils> well, cmake's getting `-DCMAKE_INSTALL_BINDIR=/nix/store/lcflzmlyjyjpsi21pnpmalb05sifllcv-etterna-0.66.1/bin`
<clever> but if you read the CMakeLists.txt, what do the install directives do?
<evils> what's CPack?
<clever> havent heard of it before
<clever> include(CMake/Helpers/CMakeLinux.cmake)
<clever> add_executable(Etterna)
<clever> evils: this says that there should be a binary named Etterna
<{^_^}> [nixpkgs] @c0bw3b merged pull request #73963 → rainloop-standard: Fix pname and license → https://git.io/Jeiz7
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @dasJ to master « rainloop-standard: Fix pname and license (#73963) »: https://git.io/Jeiay
mexisme has joined #nixos
acarrico has quit [Ping timeout: 245 seconds]
<evils> [1178/1178] Linking CXX executable ../Etterna
<clever> target_link_libraries(Etterna ${X11_LIBRARIES})
<clever> that adds custom platform specific libs to the binary
<clever> evils: i think this is the bulk of the cpack stuff
<clever> evils: aha, and that has all of the install() calls!
<clever> string(REGEX REPLACE "/" "\\\\\\\\" CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP "${CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP}")
<clever> evils: dont you just love windows style paths? :D
<evils> i had the good sense to abandon windows before i had a chance to thuroughly hate it
<clever> evils: i notice that only windows and apple will install the Etterna binary, weird
<clever> you may want to just toss in a postInstall to copy it yourself, but how will it find the other bits...
<evils> the readme says the only way to use it on linux is to build it yourself, and doesn't mention installation instructions...
<avn> Folks, anyone know how to connect Bluetooth headset and wacom tablet to nixos? (my kid have new toys)
mexisme has quit [Ping timeout: 246 seconds]
<clever> i suspect lines 42-53 are only meant to be used on windows and apple, but where shared between the 2
<clever> and linux install support was never added
dema has joined #nixos
<clever> so if you try on linux, you wind up with half an install, the stuff that windows&apple happened to share
<clever> evils: youll need to reverse engineer how the game finds its own files, and finish the install by copying things to the right places
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @dasJ to release-19.09 « rainloop-standard: Fix pname and license »: https://git.io/Jeiax
<evils> clever: this stuff's fairly actively developed, i'm just gonna open an issue and wait xD
<avn> clever: btw, I cases like this -- I usually suggest just wipe any cpack, and any custom platform detection, just let cmake core macros do the job
<clever> evils: that also works
<clever> avn: out of the box, cmake wont install anything, and needs some install() statements added
mexisme has joined #nixos
<avn> clever: may be it need elseif(LINUX) then (but need some quirks, to force LINUX paths here on darwin)
<clever> avn: yeah, and there is the unknowns of how the binary will try to find the other files, and the icky problem of it creating a $out/Etterna/ dir, which will show up in places like ~/.nix-profile and /run/current-system/sw/
<avn> clever: $out/share/Etterna should be ok then.
<das_j> ah, is there a simple way to flatten nested attrsets with a separator? something like { a = { b = 3 } } which would turn into { "a/b" = 3 }
<clever> das_j: lib.mapAttrsRecursive might help
<das_j> nice, thanks!
<avn> clever: btw sometimes it general problem, I like to have a way strip unneeded paths from .nix-profile or /run/current-system/sw/
<clever> avn: one option is to just make it split output, outputs = [ "out" "data" ]; then tell cmake to shove all of the data into $data, and the binary in $out/bin/
<clever> nix-env and systemPackages will usually ignore .data
mexisme has quit [Ping timeout: 252 seconds]
mexisme has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « python: keyring: support Python 2 »: https://git.io/JeiVG
<avn> clever: that a solution also
<avn> clever: but it a thing which nice to have to wrap derivation to keep out only bin (or even just some binaries from bin)
<clever> yeah, ive done that to extract `strings` from binutils
<avn> I like to have "objdump" and "strings", but I won't full binutils polluting my $PATH
<clever> because i really dont want compiler tools in my global env, but i use strings a lot
mexisme has quit [Ping timeout: 276 seconds]
<avn> I probably push my pulseaudio changes for 1st review today, I tired from massive rebuilds :/
<avn> (or tomorrow, when build complete)
<clever> avn: that reminds me, my desktop sound card is a bit weird
<clever> it has 3 ADC channels, and 3 physical inputs (front&rear line-in, and a mic jack)
<clever> and 3 muxes, to select any jack for any ADC
<avn> clever: sound always have some weirdness ;) Someone who use pulseaudio as non-sytemwide would be welcome to build/test ;)
mexisme has joined #nixos
<clever> out of the box, pulseaudio only supports a single capture channel
reactormonk has joined #nixos
<clever> but you can define a config file to describe all of the above to PA, so it can enable capturing on each seperately
<clever> and you can either expose the mux's to the user (via pavucontrol) or pre-configure them with the config file
<avn> hehe. I still hope that nixos wouldn't go mainstream "no go for systemwide pulse" ;)
<clever> however, all 3 muxes have the identical name (due to alsa drivers), and they only differ by index#
<clever> and the pulse config file format, didnt support configuring them by index
<clever> so i patched pulse to support that, lol
<avn> :thumbsup: ;)
<clever> once i got it all working, i never used it, never upstreamed the patches, and just commented out the package override! lol
<clever> dont code while bored :P
<avn> clever: I splitted from upstream here year ago, and rebuild browsers is always boring ;)
<avn> clever: one doubtful modification also -- .server output for pulseaudio itself, and only cli tools to $out
genesis has joined #nixos
<clever> neat
<avn> (err $bin for cli, $out for libs)
<clever> you could also use $lib for libs, and $out for any text content
ddellacosta has joined #nixos
<avn> clever: I probably do some changes after review. Sadly rebuilds are massive, and I need reboot to ensure that daemon starts ;)
zupo has joined #nixos
<hyper_ch> eyJhb: for me the new patch works. It also auto-restores both screens... but once in a while it gets stucked at bootup of kde
<clever> i sometimes play with loopback modules in my pulse, and i'm pretty sure systemwide blocks all module loading
Makaveli7 has joined #nixos
chloekek has joined #nixos
mexisme has quit [Ping timeout: 246 seconds]
mexisme has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
FRidh has quit [Quit: Konversation terminated!]
dema has quit [Ping timeout: 252 seconds]
mexisme has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
<leotaku> What's the current status of the nix flakes effort? It seems to me like it's something that's definitely going to land in Nix in the nearer future. Is that correct?
<{^_^}> [nixpkgs] @d-goldin opened pull request #73966 → make-options-doc: fix string context issues → https://git.io/Jeiwq
mexisme has quit [Ping timeout: 250 seconds]
_pash has joined #nixos
<_pash> hi, a little confused here, do commits make it from master to nixos-unstable or vice-versa?
<gchristensen> master -> nixos-unstable
<_pash> is that with the 2-3 day lag for hydra to rebuild?
<gchristensen> not necessarily 2-3 days, but yes it does wait for hydra to finish building everything
<_pash> which branch should I be on?
<_pash> nice, thanks
<gchristensen> which branch you want depends on what yu want to do
<_pash> also i have an issue that i can't clone nixpkgs into .config/nixpkgs, because i have a default nix there that i build from
<_pash> im currently on nixos-unstable, but i would also like to have the flexibility to attempt to fix/modify various packages
<_pash> also would prefer not having to wait for hydra when PR's get merged
<tilpner> You can do that from any channel
<gchristensen> you should use a nixos-* branch for NixOS
<gchristensen> ,which-branch _pash
<gchristensen> hrm
<tilpner> ,which-channel _pash
mexisme has joined #nixos
<gchristensen> thanks tilpner
<_pash> so nixos-unstable...
<_pash> makes sense, thank you
<{^_^}> [nixpkgs] @mat8913 opened pull request #73968 → nixos/upower: Allow customization of UPower.conf → https://git.io/Jeiwl
<tilpner> _pash: Note that you can enjoy fresh packages from unstable even while using a stable channel for your important system packages
<sondr3> I'm curious how many people on home machines use unstable over stable for NixOS
<_pash> but how do people work with the repo on localhost? what's the best way to set it up so that your packages build from that repo and you can manually decide to update it
Makaveli7 has quit [Quit: WeeChat 2.6]
<tilpner> _pash: You can use multiple worktrees to keep your config buildable while working on other branches
<tilpner> _pash: And then you just use (import ~/dev/nixpkgs/feature-x {}).foo instead of foo
<tilpner> That gets more complicated in restricted mode, but we'll just ignore that for now
mexisme has quit [Ping timeout: 246 seconds]
<_pash> i see, thank you, so i can clone the repo anywhere, it doesnt have to be .config/nixpkgs
acarrico has joined #nixos
<tilpner> Yes
<_pash> what's the benefit of having it inside .config/nixpkgs?
<tilpner> You can even clone the repo with Nix during evaluation
<tilpner> No objective advantage
LysergicDreams has quit [Ping timeout: 265 seconds]
<tilpner> I guess you could make an argument that it's nice to keep everything together
tilpner has quit [Remote host closed the connection]
<_pash> i see, and what the config uses when i do import <nixpkgs>... is the directory that's defined in the NIX_PATH?
tilpner has joined #nixos
<mojjo> is there a way to allow `nix-build` to connect to the network?
mexisme has joined #nixos
<avn> _pash: set NIX_PATH=nixpkgs=${path_to_your_local_checkout}
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> mojjo: only if you declare upfront what the hash of $out will be
<_pash> tilpner: and is there a downside to using the master branch for the latest packages over nixos-unstable?
<_pash> avn: thank you
<tilpner> _pash: Yes, things will break
LysergicDreams has joined #nixos
<mojjo> mh, mhh.. I like the concept of 'import from derivation'... just realizing that it only works if there's no network traffic.
<tilpner> _pash: And there will be less cached outputs
<avn> _pash: downside -- if you start rebuild right after staging merge, rebuild will take few days (browsers, libreoffice, etc)
<mojjo> trying to tame those xyzToNix maintainance
<_pash> gotcha - thank you
<mojjo> isn't the local file system equally unpredictable?
<clever> mojjo: when you do src = ./foo, nix will copy ./foo to /nix/store/hash-foo, and hash it as it copies
<LnL> that's why builds don't have access to that either
<clever> mojjo: then use that hash to compute the outputs of things that depended on foo
<clever> mojjo: fixed-output derivations just define the hash upfront, and then download later, and nix enforces it matching that hash
ng0 has joined #nixos
<avn> _pash: but if urgent update from libc/ssl/etc security fix come -- it usually hit master fast, and you rebuild almost everything
zupo has joined #nixos
<avn> I personally rebuild each (second) weekend.
<mojjo> @clever ok, I makes sense.
mexisme has quit [Ping timeout: 276 seconds]
philr has quit [Ping timeout: 240 seconds]
<srk> sondr3, _pash: I'm running master - pulling from time to time when there's window of no urgent work, hitting issues quite rarely, not recommended (by this channel) tho :)
<mojjo> a different but related question: If everything from `./.` is copied to the store, that's not so nice if I only need 2 files from the folder. I guess `./fileA` and then `./fileB`does just copy those two files. Is there an utility function that gives me the initial filenames back from sth like `nix/strore/9869...4223-fileA`?
<clever> mojjo: you can also use builtins.filterSource to copy ./. and filter what it copies
<clever> mojjo: i also do `cp ${./foo} foo` a lot
zupo has quit [Client Quit]
mexisme has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #73928 → Fix mariadb drivers → https://git.io/JeisU
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JeirI
ng0 has quit [Quit: Alexa, when is the end of world?]
ng0 has joined #nixos
<das_j> is there an alternative to mapAttrs' that allows me to specify a list of nameValuePairs?
<das_j> I mean that allows me to return a list of nameValuePair
mexisme has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @risicle opened pull request #73970 → tightvnc: add patches for CVE-2019-8287, CVE-2019-15678, CVE-2019-15679 & CVE-2019-15680 → https://git.io/Jeirn
<clever> das_j: i sometimes use mapAttrs + attrValues
reactormonk has quit [Ping timeout: 245 seconds]
<clever> das_j: there is also mapAttrsFlatten
<das_j> clever: Where is that defined?
randomuser232 has joined #nixos
<das_j> oh, deprecated.nix
<{^_^}> [nixpkgs] @filalex77 opened pull request #73971 → nixos/drone-server: init → https://git.io/JeirE
<randomuser232> Hello everyone. I have a quick noob question since I'm switching to NixOS. How can I enable a systemd service from configuration.nix file? I am trying to enable the "syncthing@username" service.
Thra11 has joined #nixos
mexisme has joined #nixos
<mojjo> @clever true.. the filterSource.. baseName thing is a bit long
drakonis_ has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #68155 → carp: unstable-2018-09-15 -> 0.3.0 → https://git.io/fjj3h
drakonis_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @fjallarefur to master « carp: unstable-2018-09-15 -> 0.3.0 »: https://git.io/Jeirr
<evils> randomuser232: services are enabled by adding lines like these to configuration.nix https://nixos.org/nixos/options.html#syncthing.enable
drakonis_ has joined #nixos
LysergicDreams has quit [Ping timeout: 276 seconds]
mexisme has quit [Ping timeout: 252 seconds]
drakonis has quit [Ping timeout: 240 seconds]
testy has joined #nixos
testy has quit [Max SendQ exceeded]
LysergicDreams has joined #nixos
<randomuser232> evils: This is what I am using right now but I cannot gain write access to my home directory that way. I need to enable the syncthing@username service specifically. See the last message of this issue for what I am trying to achieve: https://github.com/NixOS/nixpkgs/issues/53932
<{^_^}> #53932 (by Sathish-n, 44 weeks ago, closed): syncthing permission error
mexisme has joined #nixos
smatting_ has joined #nixos
<mojjo> is there a way to pass `buildInputs` to writeShellScriptBin? If I want to avoid the `${pkg.foo}/bin/foo` inside there...
<evils> randomuser232: i'm not that familiar with systemd, but would services.syncthing.user be relevant?
<{^_^}> [nixpkgs] @c0bw3b pushed to master « carp: fix eval »: https://git.io/JeirD
<randomuser232> evils: No idea to be honest. This is how it's done in Ubuntu and Arch. Ideally I would just enable syncthing.service but I can't get it to write files in my home directory this way.
<clever> mojjo: lib.makeBinPath
<clever> > lib.makeBinPath [ hello ]
<{^_^}> "/nix/store/yhzvzdq82lzk0kvrp3i79yhjnhps6qpk-hello-2.10/bin"
mexisme has quit [Ping timeout: 276 seconds]
<clever> mojjo: it will get the .bin or .out of each thing in the list, then shove a /bin on the end, and : seperate things
<{^_^}> [nixpkgs] @pstn opened pull request #73972 → mudlet: 4.1.2 -> 4.3 → https://git.io/JeirS
mexisme has joined #nixos
<das_j> ah damn it I already posted it as a screenshot, time to learn how to use my IRC client
testy has joined #nixos
testy has quit [Max SendQ exceeded]
randomuser232 has quit [Remote host closed the connection]
<philipp[m]> https://github.com/NixOS/nixpkgs/pull/70281#event-2682133248 Could sbd look into merging that before it bitrots away?
<mojjo> @clever .. and then I'd use it like `PATH=$PATH:${lib.makeBinPath [hello]}` in the beginning?
mexisme has quit [Ping timeout: 252 seconds]
shabius has quit [Quit: Leaving]
theduke has joined #nixos
<clever> mojjo: yep, i would put $PATH at the end though
<clever> mojjo: so your things have priority over what the user had
<theduke> Hey there. I've booted up nix os in kvm and want to prepare switching my system from Arch. Does anyone have a good, easily digestible resource (blog post etc) that explains how to declaratively set up a complete desktop system?
LouisDK has joined #nixos
<theduke> including creating package wrappers that include configuration
shabius has joined #nixos
<Thra11> worldofpeace: What's the story with the jack2 arm build fix revert?
wildtrees has joined #nixos
fendor has joined #nixos
<{^_^}> [nixpkgs] @nh2 opened pull request #73973 → qtpass: 1.3.2 cherry-pick to 19.09 → https://git.io/Jeio3
palo1 has joined #nixos
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
LysergicDreams has quit [Ping timeout: 240 seconds]
xkapastel has joined #nixos
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @filalex77 opened pull request #73974 → sourcetrail: 2019.3.46 -> 2019.4.1 → https://git.io/JeioF
Chiliparrot has joined #nixos
acarrico has quit [Ping timeout: 276 seconds]
<nh2> I can't figure out how to make lightdm show my user icon (avatar). I've written the png file to `~/.face`. Should that work?
smatting has joined #nixos
smatting_ has quit [Ping timeout: 276 seconds]
LysergicDreams has quit [Ping timeout: 250 seconds]
LouisDK has quit [Remote host closed the connection]
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @B4dM4n opened pull request #73977 → wlroots: fix build → https://git.io/JeiK8
<OmnipotentEntity> how do I prevent a package from creating a temporary file in /run/user/$uid ?
<OmnipotentEntity> or rather, relocate that file to a pure location
Neo-- has joined #nixos
<clever> OmnipotentEntity: thats usually $TMP doing it, check `env | grep --color user`
<clever> XDG_RUNTIME_DIR=/run/user/1000
<clever> ah, not $TMP
ilikeheaps has joined #nixos
Cale has quit [Ping timeout: 245 seconds]
<OmnipotentEntity> Thanks!
<{^_^}> [nixpkgs] @ckauhaus opened pull request #73978 → [19.09] lua-5.3: add patch for CVE-2019-6706 → https://git.io/JeiKV
<OmnipotentEntity> for this package it seems to be: TMP TMPDIR TEMPDIR TEMP and NIX_BUILD_TOP
<{^_^}> [nixpkgs] @vbgl opened pull request #73979 → ocamlPackages.cpuid: 0.1.0 → 0.1.2 → https://git.io/JeiKr
nschoe has joined #nixos
LysergicDreams has quit [Ping timeout: 240 seconds]
silver has quit [Quit: rakede]
LysergicDreams has joined #nixos
<OmnipotentEntity> clever, I'm sorry for bothering you directly, I have a question about something specific. Currently the python Theano package is broken because it attempts to compile something when you import it, and it does so in /run/user/$uid. I can change that location to the current directory, which will fix the purity part, but it might have other implications (such as perhaps being vulnerable to a hypothetical attack, which is why
<OmnipotentEntity> this stuff was moved from tmp in the first place.) Is there a standard nixos place to put temporary files in a pure way?
drakonis has joined #nixos
<{^_^}> [mobile-nixos] @samueldr merged pull request #47 → Add support for xiaomi-tissot → https://git.io/JeiKF
<{^_^}> [mobile-nixos] @samueldr pushed 7 commits to master: https://git.io/JeiKb
<clever> OmnipotentEntity: is it possible to pre-compile that code when nix is building the python library?
<OmnipotentEntity> good question, I'll try to find out.
Cale has joined #nixos
drakonis_ has quit [Ping timeout: 246 seconds]
<OmnipotentEntity> wtf. >:( now it's not erroring anymore once I changed the path to the temp directory, even after a refresh cycle.
<OmnipotentEntity> exiting and reentering a pure nix-shell that is
<clever> OmnipotentEntity: strace it and see what files its touching?
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73946 → lua wrapper: Fix bash error → https://git.io/Jeils
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to master: https://git.io/JeiKp
LysergicDreams has quit [Ping timeout: 245 seconds]
<adisbladis> srk: ^
<adisbladis> Ericson2314 fixed it \o/
<adisbladis> Ericson2314++
<{^_^}> Ericson2314's karma got increased to 1
<srk> cool \o/
jgeerds has joined #nixos
LysergicDreams has joined #nixos
_pash has quit [Quit: leaving]
<OmnipotentEntity> ok it looks like it modified stuff in the nix store
<OmnipotentEntity> so it should be AOK to just attempt an import within the build to finish it up?
<clever> OmnipotentEntity: run `nix-store --verify --check-contents` ?
waleee-cl has joined #nixos
mjsir911 has quit [Quit: Goodbye, World!]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #73980 → rocksdb: Build with MinGW for 19.09 → https://git.io/Jei6L
<Ericson2314> adisbladis: :) and thanks for getting me the emacs one too
<clever> Ericson2314: ah, i was just wondering why plex is broken on master, i thought somebody had fixed the qt stuff, now i see lua is broken, and you just fixed it
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever> Ericson2314: i need to test the vc4 stuff today
<pistache> is config.system.stateVersion a good way to determine the current NixOS release ?
<clever> pistache: not really
<pistache> it's the one used in nixos-generators
<clever> [root@amd-nixos:~]# nix repl '<nixpkgs/nixos>'
<samueldr> ,stateVersion
<{^_^}> Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
<clever> nix-repl> config.system.nixos.release
<clever> "20.03"
<pistache> ah yes, nixos.release, nice
<clever> pistache: this one always has the release for the nixpkgs building nixos
<clever> :q
<pistache> I'll submit a PR to nixos-generators, then
<clever> pistache: stateVersion should be set to release, when nixos-generate-config first makes the config, and then left at that value
<pistache> yes, this is what I had understood, and that's why it was weird to see it used by nixos-generators
<pie_> is there a tutorial for deploying nixos on hetzner
<pie_> pistache: looks reasonable thaks
<pie_> its been a bit since i tried to look at this
<pie_> pistache: oh i mean hetzner cloud
<OmnipotentEntity> ah motherfucker. It put it in ~/.theano
<pistache> >
nschoe has quit [Ping timeout: 240 seconds]
<pistache> nixos-in-place is known to work on Ubuntu, Debian, CentOS, Fedora, Arch, and Slackware, including x86 and x86_64 variants, with and without LVM, including systems on Digital Ocean droplets and Hetzner Cloud!
<tilpner> pie_: I recommend the kexec method for Hetzner Cloud
<clever> kexec lets you ditch whatever partition layout you started with
<{^_^}> nixops#855 (by nh2, 1 year ago, open): Hetzner Cloud support
<pie_> apparently there shouldbe a rescue iso
<OmnipotentEntity> clever, I was wrong, it didn't modify nix-store, it compiled and plopped the pycs into ~/.theano
<tilpner> pie_: Ping me if you have problems with it
codygman_____ has joined #nixos
<clever> OmnipotentEntity: id say that should be fixed to just pyc them when nix builds
<pistache> ah they've added a NixOS rescue iso, nice
<OmnipotentEntity> yeah, it'd also need to know to look to the store during runtime
<infinisil> OmnipotentEntity: No swearing here please <3
<OmnipotentEntity> is this an already solved problem.
<OmnipotentEntity> infinisil, understood
hyper_ch has quit [Ping timeout: 265 seconds]
<OmnipotentEntity> two lines ago should have has a ? mark
<pie_> tilpner: ok thanks, ill look around
<clever> pistache: then phase1 of https://github.com/NixOS/nixops/issues/1189 is already supported upstream by Hetzner Cloud
<{^_^}> nixops#1189 (by cleverca22, 14 weeks ago, open): plan for supporting custom partition layouts and custom FS's on any backend
ixxie has joined #nixos
<clever> pistache: my general plan with the above, is to be able to support custom fs layout, on all cloud providers, with a single api to control it
<{^_^}> [nixpkgs] @primeos merged pull request #73977 → wlroots: fix build → https://git.io/JeiK8
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/Jei6u
mjsir911 has joined #nixos
Chiliparrot has joined #nixos
<pistache> clever: as well as on bare-metal, I suppose
<pistache> ?
<clever> pistache: yeah, the idea is that it should work on pretty much anything, cloud providers, baremetal providers, and even baremetal you have physical access to
<pistache> mmh bare-metal was not really the right word, but I see what you mean
<clever> pistache: you just need a way to give nixops root ssh to a nixos running from ram (or an iso), and it will do the install for you and deploy
<pistache> do you plan on using nixpart for this ?
<clever> pistache: and then certain backend plugins, like hetzner would just tell hetzner to boot the iso, to meet that requirement
<clever> not sure what will be used for partitioning yet, but thats one option
<jtojnar> > "${hookName:-}"
<{^_^}> "hookName:-"
<nh2> pistache: for dedicated, I have https://gist.github.com/nh2/ebc27311731f53ee623ae781ca25103f which also works
<jtojnar> why is this not a syntax error?
<nh2> ,locate pavumeter
<{^_^}> Couldn't find in any packages
<clever> > hookName:-
<{^_^}> "hookName:-"
<nh2> how do I get pavumeter and paman for pulseaudio?
<clever> jtojnar: because it parses as a url
<clever> which turns it into a string
<clever> and then its just a string inside ${...}
hyper_ch has joined #nixos
<jtojnar> 🤦‍♀️️
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
mexisme has joined #nixos
cosimone has joined #nixos
cosimone has quit [Client Quit]
cosimone has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @B4dM4n opened pull request #73982 → cage: fix build → https://git.io/JeiiJ
growpotkin has joined #nixos
<asymmetric> why does /run/current-system exist? isn't it the same as /nix/var/nix/profiles/system ?
jgeerds has quit [Ping timeout: 240 seconds]
<pistache> nh2: nice and clean, I'll keep a copy of that
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/JeiiI
<nh2> pistache: for Hetzner cloud, we should switch to the new Python API I mention on the ticket, and use clever's approach to get NixOS onto the machine
<samueldr> asymmetric: sounds like "public API vs. private API" to me, though I don't have any prior knowledge stating so
gagbo has quit [Ping timeout: 265 seconds]
<samueldr> and... something that needs to be validated, wouldn't running `nixos rebuild test` *not* update the system symlink?
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #73983 → neovim: 0.4.2 -> 0.4.3 → https://git.io/Jeiim
<Ericson2314> clever: :- amazing! :O
dema has joined #nixos
<Ericson2314> adisbladis: I am afraid I am an ignorant mere user of emacs who has know idea about this simple.el bussinness
LysergicDreams has quit [Ping timeout: 240 seconds]
<Ericson2314> comparing the NIX_DEBUG logs before and after didn't help much either
<Ericson2314> but I asked @matthewbauer who should know
LysergicDreams has joined #nixos
<clever> asymmetric: if you nixos-rebuild test, the profile isnt updated
<clever> asymmetric: also, if you pick an older profile at grub, current-system points to what you picked, but profile/system doesnt
<asymmetric> seems like /run/current-system also isn't updated with nixos-rebuild test
<clever> asymmetric: current-system is updated any time you activate a new nixos
<theduke> is there a way to configure grub so existing menu entries are not removed so I don't lose my existing Arch entries?
<clever> theduke: boot.loader.grub.extraEntries can be used to add extra things to it
<asymmetric> clever: i'm testing this out by changing my configuration.nix and running nixos-rebuild test, and then doing readlink /run/current-system
<asymmetric> and i don't see any change
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73980 → rocksdb: Build with MinGW for 19.09 → https://git.io/Jei6L
<{^_^}> [nixpkgs] @Ericson2314 pushed 7 commits to release-19.09: https://git.io/Jeii4
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #73316 → rocksdb: Build with MinGW → https://git.io/JewpZ
<{^_^}> [nixpkgs] @Ericson2314 pushed 9 commits to master: https://git.io/JeiiB
<clever> asymmetric: what did nixos-rebuild test print?
gm152 has joined #nixos
<asymmetric> clever: http://ix.io/22F4/shell
<clever> asymmetric: and what does current-system point to? just ls -lh it?
Okinan has quit [Quit: Konversation terminated!]
<asymmetric> clever: sorry, i'm dumb. i was only looking at the git commit sha at the end of the directory name, rather than the sha at the beginning
<clever> asymmetric: ah
<OmnipotentEntity> This is a simple question, but I can't find the answer anywhere. How do I get the path of the store within a build? I need to set an environment variable to it in a shell hook.
<tilpner> > builtins.storeDir
<{^_^}> "/nix/store"
Okinan has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #73982 → cage: fix build → https://git.io/JeiiJ
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/JeiiK
<tilpner> You can interpolate that into a string, or provide it in the environment
jgeerds has joined #nixos
Izorkin has quit [Ping timeout: 245 seconds]
<OmnipotentEntity> sorry, I meant the package's store.
<OmnipotentEntity> with the hash
<tilpner> That's just $out?
<OmnipotentEntity> oh gosh really?
<clever> yeah
<tilpner> (Correction to earlier, there is a NIX_STORE environment variable)
<avn> if you have outputDirs = [ "out" "foo" "bar" ], then you have $out $foo $bar for subpackages
<clever> and those outputs can be files, directories, or symlinks
<tilpner> I think avn means outputs = [...];, not outputDirs
<clever> yeah, outputs=[...];
<{^_^}> [nixpkgs] @bendlas pushed to master « emacs package setup hook: Fix Fix »: https://git.io/Jeiii
gyroninja_ has joined #nixos
gyroninja has quit [Ping timeout: 276 seconds]
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
__Myst__ has quit [Ping timeout: 276 seconds]
Izorkin has joined #nixos
theduke has quit [Quit: Leaving]
<kaliumxyz> spotted in the gists stream
<kaliumxyz> c:
cyris212 has joined #nixos
__Myst__ has joined #nixos
shibboleth has joined #nixos
<srid> What is the semantics of `imports` list? I see that config, pkg, etc. are passed to the imported modules. Can I pass custom values (mainly, utility functions to share among modules) in this set?
<clever> srid: any attributes you add to _module.args are visible to all nixos modules
<clever> so you can just _module.args.something = ...; in any module, and then { something, config, pkgs, ... }: in others
<srid> Doesn't look like it works, when working with home-manager ...
<clever> srid: it should, what error did it give?
<srid> error: attribute 'fetchGH' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:163:28
<srid> I added this to configuration.nix: _module.args.fetchGH = fq: rev: builtins.fetchTarball ("https://github.com/" + fq + "/archive/" + rev + ".tar.gz");
<clever> srid: home-manager modules are seperate from nixos modules
<clever> so you may need to add it to a home-manager module
<srid> .. which file imports a nix file that uses home-manager, cf. https://github.com/srid/mynixos/blob/master/nix/srid-home.nix
<clever> srid: also, fetchFromGitHub does the same thing
<srid> clever: yea, but fetchFromGithub requires a sha256, no?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever> yeah
<clever> srid: home.nix needs to be the one setting _module.args
<srid> Yup, that worked!
Chiliparrot has joined #nixos
Makaveli7 has joined #nixos
reactormonk has joined #nixos
<{^_^}> [nixpkgs] @edef1c merged pull request #73948 → git-series: use nixpkgs libssh2 → https://git.io/Jei8R
<{^_^}> [nixpkgs] @edef1c pushed 3 commits to master: https://git.io/JeiP3
wildtrees has quit [Ping timeout: 265 seconds]
LysergicDreams has quit [Ping timeout: 245 seconds]
reactormonk has quit [Ping timeout: 240 seconds]
LysergicDreams has joined #nixos
Makaveli7 has quit [Changing host]
Makaveli7 has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.6]
<{^_^}> [nixpkgs] @MtP76 closed pull request #73042 → spotifyd: 0.2.19 -> 0.2.20 (mpris enabled) → https://git.io/JeVYP
<elvishjerricco> How can I edit `/etc/zed.d/zed.rc` on NixOS? Trying to set it with the `environment.etc."zfs/zed.d/zed.rc"` option gives me `mismatched duplicate entry <-> /nix/store/dy9ryp6jycrx9b1jmvh4jny14pchxnn1-etc-zed.rc`
<clever> elvishjerricco: youll need to set a var that is being inserted into that string, or modify the module to allow editing what you want changed
<elvishjerricco> clever: Yea, somewhere in nixos `environment.etc."zfs/zed.d".source` is being set to ZFS's default `zed.d`, so it can't be changed without a change to the ZFS module.
<tilpner> elvishjerricco: Least painful way might be to override the zfs attribute
<tilpner> Though a PR to nixpkgs would be more proper
<elvishjerricco> Not sure how to modify the module properly. I don't want to have to set `environment.etc` for each file included in ZFS, since that list might change.
<clever> elvishjerricco: only thing i can think of, is to buildEnv the zfs files with an override derivation
<clever> and then put the buildEnv into source
<elvishjerricco> clever: Yea I might just do that
<clever> there is a buildEnv flag to allow collisions, so you just need the order right
<clever> though it wont be the normal environment.etc api anymore
<{^_^}> [nixpkgs] @dredozubov opened pull request #73984 → apple_sdk: broken link update → https://git.io/JeiPW
<elvishjerricco> clever: Can buildEnv be told to only allow specific collisions?
<clever> not really
<clever> but you could just have a runCommand that will cp ${zfs}/etc/zed.d/* $out/ and then use normal bash to replace/edit certain files
<infinisil> elvishjerricco: Have you tried mkForcing the environment.etc assignment?
<elvishjerricco> infinisil: See the issue I linked above. The directory above the file that I want to change is what has been set by the module, so it's children can't be set no matter what
<OmnipotentEntity> theano is a mess. I'm getting an issue where it's not finding a header file now. It has something to do with the build environment, but I have no idea what. The include is a quote include, so I can't just set CPATH and make it good. Any ideas?
<infinisil> elvishjerricco: Ah I see
<infinisil> There was a PR for allowing zed changes I think
<infinisil> But the author didn't want to address my review so.. https://github.com/NixOS/nixpkgs/pull/64306
<{^_^}> #64306 (by sjau, 20 weeks ago, closed): ZFS: Adding ZED configuration options
<elvishjerricco> Ah sweet. Might just merge that locally for now then
<clever> can always fork the fork and then finish it
<infinisil> Oh and there's a new one https://github.com/NixOS/nixpkgs/pull/72734
<{^_^}> #72734 (by nyanloutre, 2 weeks ago, open): nixos/zfs: ZED config module
<infinisil> I'll review it
<elvishjerricco> Oh that's what I thought you linked first :P
shibboleth has quit [Quit: shibboleth]
xkapastel has quit [Quit: Connection closed for inactivity]
dema has quit [Ping timeout: 252 seconds]
<elvishjerricco> infinisil: is `builtins.readDir zedDFiles` allowed considering `zedDFiles` is a string with derivation context?
<elvishjerricco> That PR does that
<infinisil> elvishjerricco: Yeah I just wrote a comment on that
<infinisil> Not sure if it's allowed in NixOS actually
<{^_^}> [nixpkgs] @killercup opened pull request #73985 → zola: fix build on macOS → https://git.io/JeiPw
<infinisil> Because it's only a problem for hydra's pkgs evaluation I believe
<clever> infinisil: probably wont be, it would force building zfs before you can instantiate
<infinisil> And what's the problem with that?
<clever> elvishjerricco: you would need to read the dir listing in a runCommand, and handle things within that
<clever> infinisil: then you cant just nix-instantiate from the wrong arch, it would have to build at eval time, and cant build in parallel
<elvishjerricco> clever: They use it for eval purposes; to determine what `environment.etc` paths to set
<elvishjerricco> infinisil: yea I think any eval that requires building is unacceptable for nixpkgs
<clever> elvishjerricco: you would have to make a single environment.etc for all of zed.d, and then decide what goes within it using runCommand
<edef> aside from the import-from-drv, i have a bunch of feelings about the way we do zfs right now
johnnyfive has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #73983 → neovim: 0.4.2 -> 0.4.3 → https://git.io/Jeiim
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JeiP6
<edef> because our official story rn is that we use mountpoint=legacy
<edef> i don't, i wrote https://github.com/edef1c/systemd-zfs-generator to use instead
<infinisil> clever: elvishjerricco: Alright I'll mention it in the review
<edef> iirc upstream started shipping a systemd generator
<infinisil> edef: Oh nice, would be great to use that by default
<infinisil> Well I guess we'll have to wait for a new zfs release
<{^_^}> zfsonlinux/zfs#7329 (by aerusso, 1 year ago, merged): systemd.mount integration
<elvishjerricco> edef: Yea I'd love to use a mount generator instead of mountpoint=legacy
<infinisil> That was merged April 2018!
<elvishjerricco> But it'd be tricky with nixos-generate-config
<{^_^}> [nixpkgs] @killercup opened pull request #73986 → mdbook: 0.3.1 -> 0.3.5 → https://git.io/JeiP1
<infinisil> `man zfs-mount-generator`
<clever> elvishjerricco: i think we need to use mountpoint=legacy for / and /nix/store, but then everything else can be left up to systemd and stage-2
<elvishjerricco> clever: Not without manually editing hardware-configuration.nix to exclude your regularly mounted zfs datasets
<adisbladis> Whoa! The future is now
<clever> (and anything else with neededForBoot = true)
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever> elvishjerricco: yeah, nixos-generate-config would need to only configure things that are using legacy
<elvishjerricco> But I'd also like it for anything needed for boot too
Makaveli7 has joined #nixos
<edef> clever: i don't use mountpoint=legacy at all
<clever> edef: how does stage-1 mount the rootfs?
<edef> clever: i just have the mount options set to include zfsutil
<adisbladis> edef: And you use zfs for / ?
<edef> adisbladis: i do
<edef> i haven't used a non-ZFS filesystem since … 2013?
<edef> maybe 2012
<adisbladis> edef: systemd-zfs-generator looks really nice :) I want it in nixpkgs
<edef> the upstream one is more Official i figure
<clever> [root@nas:~]# cat /etc/fstab
<clever> naspool/deluge /var/lib/deluge zfs defaults 0 0
<clever> i think the zfs generator is already active
<clever> i didnt make this entry
<edef> no
<clever> but i did make a zfs fs, and set the mountpoint
<edef> fstab isn't generated by generators
<clever> nas.nix: "/var/lib/deluge" = { device = "naspool/deluge"; fsType = "zfs"; };
<Dandellion[m]> is there a way of doing something like nix-shell someurl -A someattribute but like -p does?
<Dandellion[m]> i.e build the attribute and include it in the shell
<clever> nvm
<edef> fstab only influences anything by going through a generator itself
<clever> i just forgot about things
<edef> there's a systemd generator that turns fstab into mount units
<edef> but fstab itself is pretty much just legacy at this point
<edef> we could simply be generating mount units directly
<edef> then there's the other part, integrating this lot with zed or whatever
<edef> so that creating a new fs makes the mount unit happen or sth
<edef> because right now it just picks up on that on the next systemctl daemon-reload
<edef> there's also the general question of what to do with two different "declarative" systems vying for control
pointfourone has quit [Ping timeout: 276 seconds]
<edef> oh, and another neat hack i have: actually creating ZFS filesystems for homedirs
<edef> which is the classic thing to do for homedirs but we don't really have an in-tree approach for doing that
<edef> and my own is a little rough and could use smoothing out
mexisme has joined #nixos
<{^_^}> [nixpkgs] @adisbladis opened pull request #73987 → mesa: 19.2.4 -> 19.2.6 → https://git.io/JeiPH
mexisme has quit [Ping timeout: 276 seconds]
justanotheruser has joined #nixos
iqubic`` has quit [Ping timeout: 246 seconds]
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 252 seconds]
zupo has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/JeiXT
smatting has quit [Ping timeout: 276 seconds]
<maurer> j/go 17
gwen has joined #nixos
acarrico has joined #nixos
<Dandellion[m]> Dandellion nix run -f someurl someattribute does it
iqubic has joined #nixos
justanotheruser has joined #nixos
gwen has quit [Ping timeout: 265 seconds]
Makaveli7 has quit [Quit: WeeChat 2.6]
<o1lo01ol1o> I'm trying to override lens with lens = haskellPackagesNew.callHackage "lens" "4.18.1" {}; with ghc881 but I get an infinite recursion error, anyone know how to handle that?
leotaku has quit [Quit: ZNC 1.7.4 - https://znc.in]
leotaku has joined #nixos
gwen has joined #nixos
<bdju> if my mouse freezes and the clock falls behind but my visible htop doesn't show high cpu or memory usage, what is it that could be going on?
<bdju> temps are fine too
<gwen> evils: ...turns out white margins in tor-browser 9 is actually a feature :) so tor-browser-bundle-bin is good.
<ivan> bdju: bad clock on your motherboard, get a new one? :/
<samueldr> bdju: dmesg output around freezes?
<ivan> hmm, have you tested to see if the clock falls behind on other operating systems
<samueldr> kernel version?
<bdju> ivan: no, what I mean is my panel updates every second but during these moments of lag it falls behind and then catches up quickly because it couldn't update the clock each second during the lag
<bdju> samueldr: I don't see any new dmesg stuff
<ivan> ah it sounds like the freezing is the primary issue then
<samueldr> I might have been experiencing something similar on 5.3
<ivan> are you writing to disk when this happens?
<samueldr> bdju: what kernel version?
<bdju> 5.3.11
<samueldr> intel gpu?
<bdju> yes
<bdju> ivan: possible
<ivan> bdju: XFS?
<bdju> ext4
<samueldr> a friend of mine, too, has been having similar issue with intel gpu on 5.3, but on archlinux
<bdju> interesting
<samueldr> not sure if intel gpu is exactly related, or a red herring though
<samueldr> bdju: du you know if you're on the intel or modesetting X driver?
<samueldr> that's my next thing to try,
<bdju> I have vaapiIntel installed
<bdju> not sure if that answers
<samueldr> not sure either :)
<samueldr> journalctl -b0 --unit display-manager | grep LoadModule # might help
<samueldr> though, not sure either
Neo-- has quit [Ping timeout: 252 seconds]
<bdju> no output from that
<samueldr> hmm, you'd need to track down the X11 logs
<bdju> I'm not using a display manager
<bdju> and I'm using sway on wayland
<samueldr> that explains why :)
<samueldr> ah
<samueldr> so... not X11 related
<samueldr> (if it's the same issue)
<bdju> yeah probably not then
<bdju> I do run xwayland but this freezing seems to happen with more than just xwayland stuff
<samueldr> I guess if the mouse freezes, it shouldn't happen because of xwayland
<samueldr> I had to go back to 4.19 because of how irritating the issue was, while not having the time to investigate
iqubic has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<bdju> I changed from a ThinkPad X220T to a ThinkPad T440p recently (and also from Guix System to NixOS) and have been having much worse performanc and a lot of issues. I really hope I can solve it eventually
<bdju> on paper this is a much more powerful computer but frankly it's running like crap
zeta_0 has joined #nixos
lnadav has joined #nixos
<bdju> I don't know if it's nixos, hardware, sway, intel gpu, drivers...
lnadav has quit [Client Quit]
<samueldr> do you know on the X220T which kernel was running?
lnadav has joined #nixos
<samueldr> if it's an older LTS, try it on your newer machine, to check
<bdju> 5.something but not sure exactly
<samueldr> hm
<bdju> and also running sway
<samueldr> 5.something is not likely an LTS
<samueldr> though if it's older than 5.3 it may help guesttimating a moment the issue started
<samueldr> oh, and it will be annoying to bisect considering it's not exactly reproducible at will
<bdju> the other day I was doing tests. the two gens older laptop with i5 instead of i7 was playing back video in mpv much much better. I keep having desycn or frame drop issues on this one
<{^_^}> [nixpkgs] @OmnipotentEntity opened pull request #73988 → arviz: init at 0.5.1 → https://git.io/JeiXX
<bdju> althought considering the mouse freezing I would bet the mpv issues are just a symptom of a greater problem
<bdju> s/ght/gh
<samueldr> bdju: try 4.19, see if it also helps with video rendering and such
<bdju> hm okay
<samueldr> I'm wondering how seemingly no one is having such issues :/ (if it even is the same issue)
<zeta_0> i just finished setting up configuration.nix in my raspberry pi 4, now do i need to run: `nixos-install` or `nixos-rebuild switch` ?
<lnadav> would you reccomend guix or nixos for a somebody who is reletivly condident in linux?
<lnadav> arch is anoying me
<samueldr> well... you're going to get biased answers of "nixos"
<samueldr> and, are you relatively condiment (ketchup, mustard) or confident? :)
<OmnipotentEntity> zeta_0, nixos-rebuild switch, but you have to install raspbian first, because RPi4s have actual real firmware that need to be updated, iirc.
<bdju> guix is understaffed which leads to them being behind on packaging. I have personally added probably 50+ things to the wishlist but it's slow to get packaged
<bdju> but aside from that it's pretty pleasant to use
<samueldr> OmnipotentEntity: our image does boot on a non-updated rpi4
<samueldr> OmnipotentEntity: our rpi4 image, that is
<OmnipotentEntity> oh good
<lnadav> how often do you have issues woth nixos?
fusion809 has joined #nixos
<samueldr> though, it might be a good thing to, at some point, getting the firmware updates story fiured out
<bdju> samueldr: should the kernel line look like this? boot.kernelPackages = pkgs.linuxPackages_4_19;
<bdju> I had it set to _latest
<samueldr> bdju: yeah
<bdju> alright
hagelslag[m] has joined #nixos
<OmnipotentEntity> lnadav, having an issue with it right now ;) it's certainly not issue free. It's a bit rough around the edges. And sometimes the software you want simply isn't packaged. However, packaging software is so much easier than on Debian, so I actually want to do it.
<zeta_0> OmnipotentEntity: are you serious, i already burned nixos to my sd card and setup configuration.nix, i don't want to have to burn rasbian too ?
<OmnipotentEntity> But while I say it's a bit rough around the edges, it's one of those technologies where... once you use it and learn it exists, you never ever want to be without it, and you don't understand how you've managed to live without in for so long in the past.
<lnadav> OmnipotentEntity, so does nixos have a version of the aur?
<OmnipotentEntity> zeta_0, no, samueldr corrected me.
<sondr3> lnadav: I guess NUR comes kinda close but for the most part everything is just stuffed into nixpkgs
<samueldr> lnadav: not really, there is the NUR project which is a bit in the spirit of
<samueldr> lnadav: yeah, or people have their own overlay with stuff as nixpkgs is built with composability in mind
<lnadav> i see
<zeta_0> i'm confused so i don't need to burn rasbian then, right ?
<lnadav> so nixos whole idea is that any program will run the same no matter what
<samueldr> most of the issues I've had when using nixos are issues with the upstream software, lnadav
<OmnipotentEntity> you do not zeta_0, unless you want updated firmware, which you probably do eventually
<lnadav> and so how excactly does that work?
<OmnipotentEntity> but you don't need immediately
<lnadav> samueldr, what do you mean?
<samueldr> lnadav: software X has bug Y, then nixpkgs will have bug Y in software X :)
<lnadav> oh
<samueldr> it's been rare in my experience that nixos has issues specific to nixos
<zeta_0> OmnipotentEntity: so i can't update the firmware of my pi with nixos ?
<samueldr> but there *are* issues specific to system integrations, sometimes
<lnadav> how updated are the packages in the main repo?
<lnadav> also isnt guix just nixos but free and with an installer?
<elvishjerricco> lnadav: In what way is nixos not free?
<OmnipotentEntity> zeta_0, not right now, maybe later down the line.
<samueldr> the way nix works, there are no "repos", but channels, but in the end potato/tomato...
<lnadav> can you expand on that?
<samueldr> lnadav: there is nixos-unstable, which is rolling-release like, and then there are stable channels cut every 6 months or so
LysergicDreams has quit [Ping timeout: 240 seconds]
<lnadav> samueldr, i see
<samueldr> lnadav: those stable channels are more ubuntu~ish in that everything is kept at the version it was
<samueldr> so you can have your cake and eat it too...
<samueldr> ... especially considering you can somewhat mix and match if required
<zeta_0> should i first update the firmware in my pi, or am i good without it ?
<samueldr> e.g. alacritty has an upstream bug with the version in 19.09, I've been using the 19.03 version for the time being, while still runnning 19.09 for everything else
<samueldr> zeta_0: should be good without updating the firwmare
<samueldr> AFAIK the only firmware that is relevant once the system is booted is the usb controller, and it's mostly thermal stuff
LysergicDreams has joined #nixos
<lnadav> and what the advantage of unprivildged package managment?
<sondr3> aren't there very big thermal gains from the firmware updates though? Feels like its all I see on /r/raspberrypi
<elvishjerricco> lnadav: Also guix has waaay less development than nixos, so it's got a lot fewer packages among other things.
<zeta_0> samueldr: so i shouldn't have any security issues or anything like that ?
<samueldr> not that I know of
<lnadav> espaily when to use a package you need to run nixos-update
<samueldr> sondr3: yeah, mostly thermal, AFAIK
<samueldr> sondr3: there is also network booting, but that doesn't matter here
<elvishjerricco> lnadav: You don't need sudo just to try out some software. It can't affect other users, so it doesn't require root privileges
<sondr3> which I guess indirectly causes better performance because you get less throttling, I had to buy a proper case for my 3B+
<lnadav> elvishjerricco, does that mean that I can try out some software temp and then it will disapear after i reboot?
<samueldr> sondr3: possible :) though not strictly required
<sondr3> nix run nixpkgs.blah -c blah is one of favorite things about Nix(OS)
<sondr3> heck, with nix run you can trial it without it ever being installed
<bdju> well the video desync in mpv was the easiest thing to test and it still happens on kernel 4.19.
<zeta_0> samueldr: will i eventually be able to upgrade/update the firmware on my pi using nixos ?
<samueldr> I think so
<kyren> lnadav: you can do more than just try out some software and then let it be cleaned up on garbage collection, you can do that with whole dev environments, custom per project, it's kind of like python virtual environments but for everything all at once
<samueldr> at the very worst you sould be able to boot *another* sd card with an os that does if it's never figured out
<lnadav> damn that sounds pretty cool
<kyren> lnadav: you can write scripts using nix-shell that use arbitrary numbers of packages that just install them as needed (independently of everything else mind you)
<lnadav> but lets say i download 3 irc programs but i only like on of them how do i tell nixos to keep that one?
<OmnipotentEntity> oh hey kyren
<samueldr> using the word "install" is even a bit misleading :) it procures the software, puts them in the store, and the shell (and project) knows how to use it
<OmnipotentEntity> *wave*
<lnadav> oh yeah so i do i need to learn nix (the langauge)
<kyren> lnadav: nix has a concept of "garbage collection" and "garbage collector roots", generally you just set garbage collection to run daily, weekly, whatever, and you can just invoke arbitrary packages at any time, generally that doesn't create a new root
<samueldr> it will help to get yourself familiar with it, lnadavn
<kyren> oh hey OmnipotentEntity :D
<samueldr> as the system is configured using it
<lnadav> oh thats pretty cool
<samueldr> strictly speaking, it should be possible to install and use without getting acquainted with the nix language
<lnadav> and how well does it work bedrock linux?
<samueldr> not sure at all
<OmnipotentEntity> kyren, may I ask for a pair of eyes on a problem that's been vexing me?
<samueldr> I haven't been keeping up to date with bedrock since a couple years ago
<kyren> OmnipotentEntity yes you may! pm?
<samueldr> but it's possible that some assumptions fail, mostly FHS stuff
<kyren> I can't promise I can help though
alexherbo2 has quit [Ping timeout: 240 seconds]
<lnadav> hmm
<lnadav> i really want to get debian for stable and important stuff and nixos/guix/arch with bedrock linbux
<gchristensen> why not just nixos?
<samueldr> you can use nixpkgs outside of nixos, if you're not intending to _run_ nixos
<samueldr> a good chunk of what you'd end up using is nix and nixpkgs features, in such a setup
<lnadav> how up to date is the minecraft package?
<lnadav> also with nixos will i still have issues with java and stuff?
<sondr3> Minecraft, like Steam, lives in its own bubble where it updates freely so you're always up to date with it
<sondr3> I've used Java extensively with NixOS and no troubles, honestly I'd almost say I've had less issues than my friends... but I also have more experience making IntelliJ cooperate
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 240 seconds]
isidore has joined #nixos
isidore has quit [Client Quit]
<zeta_0> how hard is it to configure nixos to do firmware upgrades/updates for raspberry pi ?'
isidore has joined #nixos
gwen has quit [Quit: Leaving]
ckauhaus has quit [Quit: WeeChat 2.6]
Chiliparrot has joined #nixos
<infinisil> zeta_0: How would you do these upgrades without nixos?
justanotheruser has quit [Ping timeout: 246 seconds]
<zeta_0> infinisil: if i understand correctly, i can only get firmware upgrades/updates on my pi with raspbian, but you currently can't do this with nixos ?
jco has quit [Quit: WeeChat 2.6]
<srid> I've finalized my Nix recipes for Haskellers article (target audience: Haskellers not yet familiar with nix, but wants to try it). If you have any feedback, please let me know! https://www.srid.ca/haskell-nix.html
lnadav2 has joined #nixos
<zeta_0> srid: that sounds great, i am currently learning how to use nix to handle haskell projects in this link: https://github.com/Gabriel439/haskell-nix
<zeta_0> srid: it still confuses me, but i am gradually getting the hang of it
<lnadav2> that sounds good
philr has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lnadav has quit [Ping timeout: 265 seconds]
justanotheruser has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
dckc has quit [Ping timeout: 245 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
mananamenos_ has quit [Ping timeout: 265 seconds]
lovesegfault has joined #nixos
<Thra11> zeta_O: When you say firmware, are we talking about the blobs that usually live in /lib/firmware? Or some other sort of firmware?
LysergicDreams has quit [Ping timeout: 252 seconds]
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @kwohlfahrt opened pull request #73989 → [WIP] Allow Kerberized NFS → https://git.io/Jei1X
<{^_^}> [nixpkgs] @flokli opened pull request #73990 → nixosTests.systemd-nspawn: convert test to python → https://git.io/Jei11
<OmnipotentEntity> Thra11, the rpi4 has actual firmware that's installed to the device itself.
<Thra11> Sounds... fun
<samueldr> among others, firmware for the usb chip, firmware for the booty bits
zupo has joined #nixos
dckc has joined #nixos
mexisme has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bdju> samueldr: the lts kernel might have fixed the freezing/mouse lag. I haven't gotten it to happen so far anyway. mpv playback is still not great, though. so maybe two separate problems.
<samueldr> bdju: you got it backwards :) the LTS kernel doesn't have the freezing bug yet
<samueldr> bdju: yeah, likely two separate problems
<bdju> well' yeah. "the change to the lts kernel fixed..." then
<{^_^}> [nixpkgs] @flokli opened pull request #73991 → nixosTests.neo4j: port test to python → https://git.io/Jei17
<samueldr> though, it's nice having confirmation that I'm not going crazy :)
<samueldr> bdju: I'm just being pedantic for no good :)
mexisme has quit [Ping timeout: 246 seconds]
<betawaffle> has anyone tried managing configurations for ubiquiti switches with nix?
<samueldr> I should check if I can repro the issue on my test computer, and 5.3, and bisect the issue... but not having a clear reproduction is going to cause headaches
<{^_^}> [nixpkgs] @c0bw3b merged pull request #68113 → mkdocs: update meta-information, set myself as maintainer → https://git.io/fjh5d
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @rkoe to master « mkdocs: update meta-information (#68113) »: https://git.io/Jei1h
<{^_^}> [nixpkgs] @adisbladis merged pull request #73987 → mesa: 19.2.4 -> 19.2.6 → https://git.io/JeiPH
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to staging: https://git.io/JeiMe
<{^_^}> [nixpkgs] @adisbladis merged pull request #73978 → [19.09] lua-5.3: add patch for CVE-2019-6706 → https://git.io/JeiKV
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to staging-19.09: https://git.io/JeiMJ
ozychhi has quit [Ping timeout: 240 seconds]
ozychhi has joined #nixos
smatting has joined #nixos
isidore has quit [Quit: WeeChat 2.6]
<samueldr> hmm, I don't know how to check exactly, but is it problematic to cross-compile using the Nixpkgs rust infra currently?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> (well, how to check quickly)
knupfer has joined #nixos
zeta_0 has joined #nixos
<zeta_0> when doing a rebuild to try and install nixos on my pi, i got the error: xf86-video-vmware not supported on aarch64-linux
sheenobu has joined #nixos
<zeta_0> how do i fix this ?
ambro718 has quit [Ping timeout: 246 seconds]
<sondr3> have you included that in your packages or as a videodriver? You can't use x86-packages on non-x86 architectures
smatting has quit [Ping timeout: 250 seconds]
bob6 has joined #nixos
<zeta_0> sondr3: i don't know which packages are those ?
<zeta_0> sondr3: in configuration.nix ?
cosimone has quit [Read error: Connection reset by peer]
cosimone has joined #nixos
<zeta_0> am i going to need to use alternative packages ?
cosimone has quit [Client Quit]
<dolanbatar> hi! i'm unable to setup gtk-3 themes, does it work for somebody?
cosimone has joined #nixos
<sondr3> have you specified the `xf86-video-vmware` package yourself in your configuration.nix? VMware is a virtual machine application and I doubt using their drivers outside of the application itself is any good
<samueldr> the defaults for videoDrivers include some non-universal drivers
cosimone_ has joined #nixos
cosimone has quit [Read error: Connection reset by peer]
<samueldr> services.xserver.videoDrivers = [ "modesetting" ];
<samueldr> zeta_0: ^
<sondr3> samueldr: yeah, I looked, but it says the defaults are `[ "radeon" "cirrus" "vesa" "vmware" "modesetting" ]`
<samueldr> exactly
<sondr3> oh wait nevermind lmao
<samueldr> :D
<sondr3> completely glossed over that one
<sondr3> whoop
<sondr3> s
<samueldr> even then, versa, cirrus, not sure those are universal
<samueldr> radeon might be
<{^_^}> [nixpkgs] @flokli opened pull request #73992 → nixosTests.mysql*: port to python → https://git.io/JeiMr
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<bob6> im trying to do nixos-install on a uefi install but it says /boot is not a FAT EFI file system
<bob6> i made it the way that was said in the manual
<{^_^}> [mobile-nixos] @samueldr opened pull request #54 → make_ext4fs: Fix issue with read-only filesystems → https://git.io/JeiMK
<dolanbatar> bob6 show me your manual
<bob6> i follwed that one
halfbit has joined #nixos
<dolanbatar> bob6: # parted /dev/sda -- mkpart ESP fat32 1MiB 512MiB
<dolanbatar> this is crucial
<bob6> i did that
<dolanbatar> ok ill show you mine
<dolanbatar> i have zfs root but it doesnt matter
<sondr3> bob6: is it a laptop? Might have to do some changes to the BIOS, I had to change some stuff on my Dell to be able to install
<bob6> its virtualbox
<bob6> im just practicing for a real install
<dolanbatar> sgdisk -n3:1M:+512M -t3:EF00 $DISK
<sondr3> oh, I doubt you're supposed to setup a UEFI install in a virtual machine
<dolanbatar> ah :D sorry then
lovesegfault has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @flokli opened pull request #73993 → nixosTests.wordpress: port to python → https://git.io/JeiM1
<dolanbatar> btw if you need uefi setup you have to boot in uefi mode
<bob6> hmm i see
<dolanbatar> and, i couldnt get installer to setup uefi boot records in nvram
<dolanbatar> i ended up using efibootmgr and did it myself
<dolanbatar> does anyone know how to change gtk3 theme, please?
<dolanbatar> i have to look at adwaita :(((
<dolanbatar> id like to have clearlooks-phenix
lux3 has quit [Ping timeout: 265 seconds]
bob6 has quit [Remote host closed the connection]
pie__ has joined #nixos
ng0 has quit [Remote host closed the connection]
ng0 has joined #nixos
pie_ has quit [Ping timeout: 276 seconds]
<{^_^}> [mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JeiMx
<{^_^}> [mobile-nixos] @samueldr merged pull request #54 → make_ext4fs: Fix issue with read-only filesystems → https://git.io/JeiMK
<zeta_0> samueldr: thanks, but now the rebuild threw the error: broken revdeps on set ?
<samueldr> no idea what that is, sorry
<samueldr> (haven't actually used the rpi4 other than for testing the initial contribution of that image)
<samueldr> (I'm still waiting on mainline Linux fixes)
<zeta_0> samueldr: i can't get it to install, should i just move back to raspbian ?
<samueldr> I don't know, that's your raspberry pi, your call
<wucke13> Is there a way to specify the features to build for rustPlatform.buildRustPackage ?
<dolanbatar> overloadAttrs?
<samueldr> currently the raspberry pi 4 is not among the supported platforms for NixOS, so if you don't have the capacity (and time) to debug stuff, it may not be the best choice for now
<dolanbatar> just guessing
<samueldr> depending on what you intend to do with the raspberry pi 4
<{^_^}> [nixpkgs] @flokli opened pull request #73994 → Nixos test port nix ssh serve → https://git.io/JeiDJ
<notgne2> I seem to have broken my NixOS (in runtime at least)
<notgne2> my auto upgrade service ran but then started saying things like `Failed to restart polkit.service: Unit -.mount is masked.`
<{^_^}> [nixpkgs] @fare opened pull request #73995 → gerbil-unstable: 2019-08-11 -> 2019-11-10 → https://git.io/JeiDI
lovesegfault has joined #nixos
<zeta_0> samueldr: when i tried to rebuild again, i got another error: build failed, jackdbus
<zeta_0> samueldr: and the other error is gone ?
<samueldr> yeah, jack2 on the most recent channel updates is broken on ARM, a fix is already in staging
<zeta_0> samueldr: i am not using ARM, i am using aarch64
<{^_^}> [nixpkgs] @virusdave opened pull request #73996 → dotty: 0.14.0-RC1 -> 0.20.0-RC1 → https://git.io/JeiDY
<samueldr> aarch64 is 64 bit ARM
<zeta_0> oh
cosimone_ has quit [Quit: Quit.]
<zeta_0> samueldr: well i guess i will go back to raspbian for now, and in a couple weeks i'll try to install nixos again
<zeta_0> samueldr: i'll be able to update the firmware as well, so that's good
knupfer has quit [Ping timeout: 250 seconds]
CptCaptain has joined #nixos
<adisbladis> Is anyone successfully playing csgo on nixos?
<adisbladis> I have super strange behaviour trying to use it :/
fenedor has joined #nixos
<adisbladis> I'm not sure what to attribute that to
<sondr3> I play it here and there, but haven't for a few weeks if that is anything to go by
fenedor has quit [Read error: Connection reset by peer]
<sondr3> Dota2 and Rocket League work great though
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<adisbladis> sondr3: Hmm.. Lemme shoot a video to explain my issue..
wildtrees has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @risicle opened pull request #73999 → [r19.09] aspell: add patch for CVE-2019-17544 → https://git.io/JeiDu
<adisbladis> The menus are completely bonkers
<notgne2> can't reproduce on my hardware at least, just tried it right now
<sondr3> huh, let me boot mine up and take a look
<notgne2> it looks like it might just be a scaling issue though, is it set to windowed and decided to be a very big window or something just for fun?
<adisbladis> notgne2: Fullscreen.. I might try a lower resolution
<adisbladis> I've had plenty of bugs with source engine things
<sondr3> works fine here, no issues
LysergicDreams has quit [Ping timeout: 240 seconds]
<sondr3> you could try to verify the integrity of the game?
halfbit has quit [Ping timeout: 276 seconds]
<adisbladis> Indeed resolution related
<notgne2> I've tried a few different combinations of fullscreen/windows both inside and outside the game (using i3)
<adisbladis> Setting the resolution to a lower one works
<adisbladis> Looks like crap, but at least the menus are not off
<adisbladis> :/
<{^_^}> [nixpkgs] @c0bw3b merged pull request #71242 → aspell: 0.60.6.1 -> 0.60.8 → https://git.io/Je4C0
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @lsix to staging « aspell: 0.60.6.1 -> 0.60.8 »: https://git.io/JeiDo
<maralorn> Are you people all on the same side of the X wayland migration?
<sondr3> weird, what's the resolution?
<maralorn> Or doesnt that matter for steam?
<adisbladis> maralorn: I'm on X
<adisbladis> sondr3: 5120x1440
<sondr3> adisbladis: oh my, that's a wide screen
<adisbladis> Which is a strange resolution, but works fine for most things
<sondr3> I'm on 2560x1440 and it looks fine
<adisbladis> sondr3: Yeah I tried setting it to that and it works, though stretches it and looks like ****
noudle has quit []
<adisbladis> Should probably just run it windowed :/
<sondr3> yeah, probably, I can't imagine playing a shooter on such a wide screen lol
<adisbladis> sondr3: It's awesome
<sondr3> what screen is it? I'm looking to upgrade from my dual 1440p monitors
<adisbladis> sondr3: Dell U4919DW
<adisbladis> There's also a Samsung called CRG9 that has the same resolution but is 120hz
<sondr3> holy moly, it's nearly thrice the price of my two screens combined
<wrl> maralorn: i'm full-wayland on my new nixos box
<wrl> Xwayland running too but
<wrl> so i guess not truly "full wayland"
<wrl> but i don't have an X config to switch back to
Rusty1 has quit [Remote host closed the connection]
<maralorn> wrl: I was trying to contribute to the gaming debugging.
<maralorn> But good to hear anyways. I think I‘ll make the switch soon.
<adisbladis> Seems that source engine is pretty much useless on ultrawide
<notgne2> I just bought new 144p 144hz monitors
<notgne2> wasn't going to spend that much money on monitors this soon but my old ones broke
<notgne2> $279.99 for each
<sondr3> which ones did you get?
<notgne2> "Samsung 49-Inch CRG90 Curved Gaming Monitor (LC49RG90SSNXZA)" on Amazon
<notgne2> wait no lol
<notgne2> that was the linked earlier one I copy pasted the title of by accident
smatting has joined #nixos
<notgne2> "Samsung 27-Inch CJG56 144Hz Curved Gaming Monitor (LC27JG56QQNXZA)"
<adisbladis> notgne2: I mentioned CRG9, not CRG90
<adisbladis> CRG9 is 1440p, CRG90 is 1080p
<notgne2> ah, well I was trying to find it at least
<notgne2> I'm surprised double-width monitors cost so much extra, I expected them to be cheaper given they get the "lock-in" of you buying more than just 1x monitor
<notgne2> but I guess most people buy 2 anyway
<qyliss> economies of scale, i reckon
<{^_^}> [nixpkgs] @7c6f434c merged pull request #73995 → gerbil-unstable: 2019-08-11 -> 2019-11-10 → https://git.io/JeiDI
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/Jeiyf
<adisbladis> notgne2: I guess making a panel the size of a towel is not easy
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @ambrop72 to master « houdini: Add the GPU driver to LD_LIBRARY_PATH (#67958) »: https://git.io/JeiyT
<{^_^}> [nixpkgs] @c0bw3b merged pull request #67958 → houdini: Add the GPU driver to LD_LIBRARY_PATH. → https://git.io/fjpMJ
<sondr3> unrelated, what IRC client do people use? Currently trying out weechat... which I like but the notifications I get in KDE are meh
LysergicDreams has joined #nixos
<Ashy> i'd kinda forgotten people run irc clients locally
<adisbladis> sondr3: Sadly weechat.. But I wanna go back to ERC (if I can figure out a decent user experience on mobile)
<Ashy> i run weechat on a vps so i can use mosh and screen to resume the session on my phone/laptop/desktop etc
<sondr3> yeah, IRC and mobile kinda suck, I've been meaning to try out a Matrix -> IRC bridge
<{^_^}> [nixpkgs] @c0bw3b closed pull request #67955 → dqlite: 0.2.6 -> 1.0.0 → https://git.io/fjpX4