<amanjeev>
it is perhaps already reported but a nix related blog post by shopify is at the top of the orange website
h0m1 has joined #nixos
orivej_ has quit [Ping timeout: 272 seconds]
orivej has joined #nixos
<evanjs>
play so -- adding vmware-image to virtualisation
<evanjs>
wanting to add a compat6 option but
<evanjs>
how would I do an optional flag? Like the kind that is toggled simply by it's presence in the arguments
jumper149 has joined #nixos
superbaloo has quit [Quit: WeeChat 2.3]
<evanjs>
err wait.. maybe it's not like that :D
superbaloo has joined #nixos
<hpfr[m]>
trying to define a systemd service with the nixos module, and they're failing to start due to `modprobe: command not found`. so I add `path = [ pkgs.kmod ];` and rebuild, but I get the same error?
<evanjs>
false alarm. am dumb
<evanjs>
qemu-img: Parameter 'compat6' expects 'on' or 'off'
gxt_ has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
<evanjs>
different question, then, is it best if I make the value a string enum with on and off? or should it be a bool that is converted to on/off?
orivej has joined #nixos
<evanjs>
hrm looks like some modules sorta have their own boolToStr that does just that (e.g. tmux)
<clever>
hpfr[m]: boot.kernelModules = [ "mod1" ]; is the recomended way to load a module
<hpfr[m]>
so I'm writing units that are wanted by suspend.target and post-resume.target that run that script
<clever>
hpfr[m]: ah, path = [ pkgs.kmod ]; should just work
<clever>
hpfr[m]: can you pastebin your code?
<srid>
Does anyone use netdata? The nixos service is rather confusing; there is no `netdata-claim` command
<jonreeve[m]>
Anyone have any ideas about how to fix an error like `rm: cannot remove '/nix/store/h8dsam2gq8g8bd98yhar3y490wkldvcq-ghc-8.6.5-binary-with-packages/lib/ghc-8.6.5-binary/package.conf.d/package.cache.lock': No such file or directory`?
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JfggJ
<pjt_014>
not with the '.' in front, no. But without the dot yes. I'm in ~/Downloads/alpine.
<superbaloo>
well, chroot works by changing the root of the process it start
<superbaloo>
basically what 'chroot .' does is: 'chroot . /run/current-system/sw/bin/bash' (which i believe is an expansion of 'chroot . $SHELL')
<superbaloo>
if the /run/current-system/sw/bin/bash relative to '.' does not exists, well that does not work
<pjt_014>
oh. it HAS to be relative to .?
<superbaloo>
because /run/current-system/sw/bin/bash is nixos specific, and you're trying to run alpine, well the shell is not located in the same spot and you need to provide it with the location
morgrimm has joined #nixos
<superbaloo>
chroot stands for "change root" as in "change /"
<superbaloo>
the "." becomes the new /
<superbaloo>
if you'd like
<pjt_014>
okay, so why might it not work if I'm provinding a full path? like:
<clever>
CMCDragonkai: you could run haskell.lib.dontCheck over it
<CMCDragonkai>
I wonder if there was a significant change in how tests are running between 16 vs 17
<CMCDragonkai>
oh i remember the existing bloodhound had tests disablled
<deifactor>
i'm trying to work on qutebrowser, which is packaged via nixpkgs. what's the easiest way for me to get into a 'make change, build, run' loop?
<simpson>
deifactor: Try to make your build step a nix-build incantation. If you need to nix-shell for your build tools, consider direnv.
<CMCDragonkai>
clever: where do i get access to `haskell.lib.dontCheck`? I'm inside a `haskell-packages.nix` with only `self, super, pkgs`.
<clever>
CMCDragonkai: pkgs.haskell.lib
<deifactor>
simpson: there's already a full-blown package that does all the necessary nix-specific stuff. the thing i'm running into is, i'm not sure if there's an easy way to say 'run the nixpkgs derivation, but use the code in this directory'
mac10688 has quit [Quit: WeeChat 2.7.1]
<deifactor>
if i just `nix-shell` in the package's directory, qutebrowser doesn't start with the error " Could not find the Qt platform plugin "xcb" in """, so i assume there's some *other* step that doesn't get run
<CMCDragonkai>
clever: if i use callCabal2nix, is the name the pname or is it the name-version?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
logand` has quit [Remote host closed the connection]
<etu>
cole-h: It's 4 pieces of software as the same user. One of them use some unfree things. And the other three is dotnet/mono
<etu>
cole-h: So I guess I have some trust issues ;)
<cole-h>
Hehe, fair enough.
<cole-h>
etu: While I've got you here: did you ever run into the problem where your nginx proxyPass stuff for sonarr would only display "Sonarr ver." on an unstyled page?
asymptotically has joined #nixos
<deifactor>
simpson: right, just not sure how to get the effect of `wrapQtAppsHook` in my own shell
sarcasticadmin has quit [Ping timeout: 272 seconds]
<deifactor>
... actually it looks like since this is a python program, that won't solve my problems anyway. hmm.
<clever>
CMCDragonkai: the name in the cabal file
<CMCDragonkai>
so without the version then?
<clever>
yes
xcmw has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
agsdheidjd has quit [Ping timeout: 244 seconds]
agsdheidjd has joined #nixos
CMCDragonkai1 has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
deifactor has quit [Remote host closed the connection]
deifactor has joined #nixos
<deifactor>
okay, i figured it out. i just create the venv, then do `wrapProgram .venv/bin/python "${gappsWrapperArgs[@]}" "${qtWrapperArgs[@]}"`
palo1 has joined #nixos
mac10688 has joined #nixos
jluttine[m] has joined #nixos
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
<jluttine[m]>
How can I open a nix shell environment that contains all the dependencies needed to build and test a package in nixpkgs? I tried `nix-shell '<nixpkgs>' -A pythonPackages.ipython` but I didn't get the `nosetests` in `PATH`..
<jluttine[m]>
I'm developing ipython locally, so I just wanted to get a development environment
fabianhjr has quit [Ping timeout: 246 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hpfr[m]>
simple question: I'm trying to conditionally include a package in a list. I tried if else with the else value as null, but nix complains that it's not a package. what's the proper approach for this?
<cole-h>
A list as in `buildInputs` or something?
<hpfr[m]>
just a list of packages
simba1 has joined #nixos
<cole-h>
The most common way to do this is `buildInputs = [ ... ] ++ lib.optionals conditional [ package1 two three ];`
<hpfr[m]>
so `[ (if condition then pkgs.package else null) pkgs.otherpackage ]`
<cole-h>
Alternatively, `++ lib.optional conditional package1` for a single package.
<hpfr[m]>
damn do I just need to read all of nixpkgs/lib to learn these
<cole-h>
:^)
<hpfr[m]>
thanks :D
<cole-h>
I learned these by reading various packages in nixpkgs
<cole-h>
(btw your original idea might have worked if you did `else ""`)
<hpfr[m]>
yeah I've definitely seen lib functions that do conditional things before, I just forget their names and where to find them
<{^_^}>
anonymous function at /var/lib/nixbot/nixpkgs/master/repo/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'hash', at /var/lib/nixbot/nixpkgs/master/repo/pkgs/development/inter...
<{^_^}>
anonymous function at /var/lib/nixbot/nixpkgs/master/repo/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'hash', at /var/lib/nixbot/nixpkgs/master/repo/pkgs/development/inter...
<colemickens>
I've been dragging my feet on building out a new machine because I don't want to audit the zfs nixos wiki article for correctness and up-to-dateness for options
<hpfr[m]>
are you trying to show a difference between null and "" here? the bot doesn't seem to register the error with the null case
<hpfr[m]>
cole-h
<cole-h>
Yeah
<hpfr[m]>
so it didn't work but that's what you meant
<cole-h>
Yeah, it had some other error going on in both cases x)
<hpfr[m]>
ok thanks, lib.optional does look better
<hpfr[m]>
colemickens: are you one of those that uses zfs on your boot drive? would recommend?
<hadrian[m]>
<hpfr[m] "are you trying to show a differe"> No, what I really would like to do is install the latest accepted committed version of a package for a specified branch - or master if the specified branch does not exist ersion
<cole-h>
colemickens: I looked at the wiki exactly once. The rest I gleaned from a few blog posts (lemme try and find)
<hadrian[m]>
ersion came from the ether.dunno why.
<hpfr[m]>
ok is hadrian some kind of bot?
<hadrian[m]>
There's an angy Russian mucking with my keyboard
<hadrian[m]>
huh?
<hadrian[m]>
no. im a dude.
<hpfr[m]>
I swear I've seen you reply multiple times with something that's a total non sequitur but maybe I misunderstand
<quinn>
so i'm `import`ing a function inside a module's config attrset, and it doesn't seem like that modules config is getting passed into the function.
<cole-h>
<3 lovesegfault
<{^_^}>
lovesegfault's karma got increased to 31
<hpfr[m]>
cole-h: would you recommend zfs for the root partition? I see a lot of nixos users doing that, I get that you wouldn't get vdev raidz type stuff but the benefit is snapshots and other zfs features, but doesn't zfs consume a decent amount of RAM?
<cole-h>
hpfr[m]: No idea. I've been using ZFS on root for *checks calendar* just about 4 days.
<quinn>
hadrian[m]: pardon me for asking, but why are you on freenode while you're getting griefed? don't you have fires to put out?
<lovesegfault>
cole-h: there's some annoying new lint
<lovesegfault>
complaining that I have a newline at the end of my file
<lovesegfault>
this is bs
<cole-h>
lovesegfault: lmao
<lovesegfault>
there's 0 value brought by blocking PR's on whether or not they have an ending newline
<cole-h>
lovesegfault: The lint that kills me is the cognitive complexity lint that takes into account macros *post-expansion*
<hpfr[m]>
cole-h: ah, ok. I've been looking into it but I can't find much discussion online about performance of zfs on SSD root partition vs ext4, I mostly just get results about zfs in more standard data hoarder use cases
alp has joined #nixos
<lovesegfault>
cole-h: I meant in nixpkgs!
<cole-h>
lovesegfault: Oh, the editiorconfig action lol :D
<colemickens>
I think there are many of us with zfs on /
<lovesegfault>
Yeah it's an outrage
<colemickens>
"many"!
<cole-h>
Yeah, I wasn't really a fan of it when I saw the PR, but I had other things to do (namely: set up NixOS)
<hpfr[m]>
colemickens: yeah I know, I'm looking for your thoughts on it
<lovesegfault>
cole-h: it complains that there's a newline at the end of my autogen'd file!
<hpfr[m]>
also does zfs mess with systemd-boot since you can boot snapshots? how does that play with nix's generations
* lovesegfault
becomes hulk
<cole-h>
lovesegfault: kek
<colemickens>
cole-h: it doesn't really contain an exhaustive list of options though, there are others listed in the wiki. at least, that's why I wanted to loop ack
<cole-h>
colemickens: Makes sense.
<cole-h>
lovesegfault: tbh I would add a commit that removes that part of the lint or file a PR that does that
<lovesegfault>
I got a wife and coffee roaster to tend to
<cole-h>
lol
<lovesegfault>
aint nobody got time fo dat
<cole-h>
I feel like this should have been an RFC than something merged in just 20 hours... Maybe that's just me
* lovesegfault
nods
<bdju>
I don't want to jinx it but firefox hasn't crashed for me in a while now and I'm very happy about that
<hpfr[m]>
firefox never crashes on my desktop but it crashes constantly on my laptop. "gah! your tab crashed" is enraging to see after the first 10 times
<srhb>
eyJhb: That does not sound like what you want.
<hadrian[m]>
srhb: Your session identiiers give you away my friend(s)
<eyJhb>
Yes. the old legacy.
<eyJhb>
But I am unsure about my disk tbh. need to check that
<srhb>
hadrian[m]: And your messages are starting to drift into slightly accusatory territory, while still being meaningless. Why are you in this channel?
<colemickens>
I'm so unsure of all my non-uefi knowledge.
<srhb>
eyJhb: You seem to have half an EFI setup implied (boot as vfat) and then grub setup to do MBR booting
<srhb>
eyJhb: I would advice you to go full efi.
<hadrian[m]>
> hadrian: And your messages are starting to drift into slightly accusatory territory, while still being meaningless. Why are you in this channel?
<hadrian[m]>
We'll let NixOs security folks address that.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):312:84
<simpson>
hadrian[m]: What security issues do you have?
<eyJhb>
It is GPT
<eyJhb>
Well, need a reboot then srhb
<srhb>
eyJhb: Yeah, all you need to do is probably to switch boot.grub.device to nodev and boot the installer in efi mode, then reinstall
<eyJhb>
Or.. I can just change it on the next boot. Right?
<eyJhb>
Nvm then :p
<srhb>
eyJhb: It must be booted in efi mode to alter the efi setup
<eyJhb>
Rebooting
<srhb>
eyJhb: Check efibootmgr
<srhb>
eyJhb: I think if it can read the efi entries, you're OK.
<eyJhb>
Aaaand I need to remake the USB
<srhb>
eyJhb: What? why? :P
<eyJhb>
Won't show in the boot menu when I say UEFI only :p
<srhb>
Huh.
<srhb>
Are you using some custom image?
<eyJhb>
Official nixos-minimal....iso, with a dd if=nixos.iso of=/dev/sdc
<srhb>
That should work.
<srhb>
Secureboot shenanigans? I can't recall how that works.
<eyJhb>
Wait, I hate this thing
<eyJhb>
NOW it will play along
slack1256 has quit [Remote host closed the connection]
<eyJhb>
Stupid thing
cyphase has joined #nixos
<eyJhb>
In EFI now, monting my zpool and trying again
<srhb>
eyJhb: Remember to change that grub setting.
<eyJhb>
Trying to change the device to nodev
<eyJhb>
Lets see
<srhb>
eyJhb: And add efi support. Where'd your config go...
jkarni_ has joined #nixos
<srhb>
eyJhb: Ah yes, the efiSupport one
<eyJhb>
Running install srhb :)
<colemickens>
hm, it would be nice the nixos-install could warn if, say /, /nix and /boot are not mounted matching according the config. (not sure if that would be hard to infer)
<eyJhb>
"cannot copy /nix/store/j5xyrp3psk37qrgisv37m58db7nyyda0-grub-2.04/share/grub/unicode.pf2 to /boot"
<eyJhb>
Boot is full
<colemickens>
uh oh
<srhb>
eyJhb: How small did you make that thing?
<eyJhb>
It is too small I guess
agam has quit [Ping timeout: 258 seconds]
<srhb>
eyJhb: I use at least 1G for NixOS.
<eyJhb>
Points to et|us guide `parted $DISK
<eyJhb>
mkpart ESP fat32 1MiB 512MiB`
jakobrs has left #nixos [#nixos]
<eyJhb>
1 MiB I guess
<srhb>
eyJhb: Not 512?
<eyJhb>
Wait , it should be
<srhb>
df does say 1M
<eyJhb>
Maybe I should nuke all the partitions again
<srhb>
Yes.
<srhb>
Go for 1G or something :P
o1lo01ol1o has joined #nixos
<eyJhb>
But do I need boot partiotin + EFI partition?
<eyJhb>
srhb: unsure if I should run `sgdisk -a1 -n2:34:2047 -t2:EF02 $DISK` for the /boot?
<eyJhb>
nvm
<eyJhb>
Didn't read
<srhb>
eyJhb: I don't use sgdisk, I don't know its commands
<srhb>
eyJhb: I just fdisk like we did in the olden days before sliced bread.
<srhb>
All those parameters look scary.
<srhb>
Use fdisk :P
orcus has joined #nixos
<eyJhb>
I feel the same way, but I have never gotten around to learn fdisk besides copy paste :p
<srhb>
eyJhb: It's easy. point it at the dev you want. d to delete all current partitions. n for new. accept starting sector (it'll suggest the right one.) +1G. etc.
<srhb>
(d repeatedly until p is empty)
magnetophon has joined #nixos
<eyJhb>
srhb: should I put /boot first or last, any good practices?
<srhb>
First is the usual.
<eyJhb>
So last sector => +1G
<srhb>
Yeah
<srhb>
It'll be start 2048 end 2099199 or something
<eyJhb>
I can make everything a lot more difficult than it should be :p
<hadrian[m]>
but I guess I actually do have to travel tomorrow now - on top of rebuilding a few phones, two routers, two laptops, a server and recover countless accounts (before tackling my friends and family).
AmandaC_ has quit [Ping timeout: 256 seconds]
<hadrian[m]>
I'm calling it a night. Trash this server all you'd care to - it was a burner phone anyhow :-/
<srhb>
hadrian[m]: I will remove you from this channel if you don't stop accusing the channel of random malicious attacks on you. If you have a real problem, I can refer you to people to talk to.
<simpson>
hadrian[m]: Relax already. Don't ask for support on security issues if you don't actually have security issues. This channel cannot help you with your interpersonal problems.
<hadrian[m]>
> hadrian: Relax already. Don't ask for support on security issues if you don't actually have security issues. This channel cannot help you with your interpersonal problems.
<{^_^}>
error: syntax error, unexpected IF, expecting ')', at (string):312:66
<hadrian[m]>
Hardly an interpersonal problem if i have no idea who you people are.
<hadrian[m]>
... but I do appreciate the efforts of all those involved. Genuinely.
<hadrian[m]>
I hope to repay the kindness someday.
reanimus has quit [Remote host closed the connection]
<simpson>
Nothing's happened, though. You post strange messages that have nothing to do with Nix or NixOS, as far as anybody can tell, and don't answer direct questions. I'm not sure that you've got the right channel.
reanimus has joined #nixos
<eyJhb>
srhb: /dev/sda1 vfat, right?
<srhb>
eyJhb: Yeah, I just mkfs.vfat /dev/sda1
<srhb>
eyJhb: There are knobs you can twiddle, but that'll do.
<hadrian[m]>
um ... that looks like the host system.
<hadrian[m]>
have fun with that.
<eyJhb>
Lets see now srhb :p
thc202 has joined #nixos
<srhb>
eyJhb: All done? :)
<eyJhb>
Should be, fetching files now :p
<eyJhb>
Luckily I have the 100 Mbit/s to myself
<eyJhb>
At least from the looks of it
<srhb>
eyJhb: Did you remember to set the two grub options? ^^
<eyJhb>
EFI etc.?
<srhb>
efiSupport and device
<eyJhb>
boot.loader.grub.device = "nodev"; # or "nodev" for efi only
<eyJhb>
boot.loader.grub.efiSupport = true;
<srhb>
Goodie.
<eyJhb>
Should be all good!
* eyJhb
praying
<eyJhb>
installing the GRUB 2 EFI boot loader into /boot...
<eyJhb>
Installing for x86_64-efi platform.
<eyJhb>
Installation finished. No error reported.
jkarni_ has quit [Ping timeout: 256 seconds]
<eyJhb>
Looks good!
<srhb>
Indeed!
<colemickens>
woot!
misasaki has joined #nixos
<eyJhb>
I have doubts that it works now, as it is trying PXE on boot, which is not the first option..
<eyJhb>
No dice
jkarni_ has joined #nixos
<srhb>
eyJhb: Go into the firmware and look for the boot entry for nixos
<eyJhb>
srhb: Bios thingy?
<srhb>
eyJhb: Yes, though we don't actually uses that anymore :-P
<eyJhb>
Sending you what I see, so you can see the issue
<srhb>
eyJhb: canTouch means: Actually install a boot entry directly into the nvram
<srhb>
eyJhb: removable means: But the grub efi blob in a special location in the efisys partitions that most(/almost all) firmwares will look for _despite_ there being no specific efi entry for this loader.
<srhb>
s/But/Put
<srhb>
eyJhb: fwiw I use canTouch. removable may be useful if you want the disk to be bootable on another system.
<eyJhb>
So which should be go for?
<eyJhb>
Hmm... Is there any pros/cons?
<srhb>
Aside from what I said above.. Probably. :-) But none I can think of right now.
<srhb>
canTouch is more specific.
<eyJhb>
Lets go with canTouch. Never tried that
<srhb>
eyJhb: Consider it a pointer from the system firmware nvram directly to your bootloader.
<eyJhb>
boot.loader.efi.canTouchEfiVariables
<simpson>
hadrian[m]: I don't do PMs. Knock it off.
<srhb>
eyJhb: And this time we can check with efibootmgr that it's actually written before you boot
<eyJhb>
I can see NixOS-boot at the end
<eyJhb>
ARe we good to go then?
<srhb>
eyJhb: Yes, I think so (really this time)
<eyJhb>
And we have boot!
<srhb>
good :)
<eyJhb>
And tempfs works as well, nice! Now I can play a little with it
<eyJhb>
Thanks srhb for your patience ;)
<srhb>
No problem.
<hadrian[m]>
ciao.
o1lo01ol1o has joined #nixos
<hadrian[m]>
oh wait. no boot :(
fendor has joined #nixos
<{^_^}>
[nixpkgs] @flokli opened pull request #88492 → tree-wide: use systemctl of running system → https://git.io/JfgPU
o1lo01ol1o has quit [Ping timeout: 265 seconds]
waleee-cl has joined #nixos
hke has quit [Read error: Connection reset by peer]
<eyJhb>
Now I can move onward in my journey, and make $HOME tmpfs as well!
<eyJhb>
>:)
hke has joined #nixos
<Valodim>
#neverpersist
knupfer has joined #nixos
knupfer1 has joined #nixos
<adisbladis>
eyJhb: Did you see the persistence module me/etu/talyz are using ?
rauno has quit [Remote host closed the connection]
<srhb>
pauldufresne: The source of that file is nixpkgs/nixos/doc/manual/configuration/abstractions.xml -- if you want to make the adjustment yourself and PR it :)
<pauldufresne>
hum... never got the source yet... just re-installed NixOS after about one year away... but I could try.
<srhb>
pauldufresne: A great way to get started if you have the interest at least. :) Should be relatively simple.
<srhb>
ChocolateBoy: Just for the basic questions.
gxt_ has joined #nixos
<ChocolateBoy>
srHB YOU ARE A TRAP HOLE, BUT THAN K YOU FOR THE FALL
<bqv>
What?
<ChocolateBoy>
OK, no use hiding
ChocolateBoy is now known as SagarAliasSriniv
<SagarAliasSriniv>
My name is Mohanlal, I'm not new here.
crocobower has joined #nixos
<SagarAliasSriniv>
You are all subject to my questioning, because about this OS, I don't believe a word anyone says.
puck has quit [Quit: nya]
<jtojnar>
than what is the point of asking if you do not believe answers?
<crocobower>
Oh that's nice that this chan doesn't require registration. Question: is there a way to verify that nixpkgs that I use(iirc) came from the devs? such as PGP signatures maybe? if I wanted to be sure they didn't get modified due to DNS spoofing or BGP routing attacks
puck has joined #nixos
<srhb>
crocobower: The source is not signed, but the cache artifacts are. There's no way currently to verify that a cache artifact came from the source though.
<srhb>
crocobower: (Aside from building it yourself, hoping it's reproducible bit for bit, and comparing, that is)
orivej has joined #nixos
orivej_ has quit [Ping timeout: 256 seconds]
<crocobower>
dang it, I was hoping I could switch from using gentoo to using nixos. I meean, I do plan on building everything myself, but how do I know that the scripts(is it?) that I run to build which I presumably fetched from github(nixpkgs is it?) weren't modified in transit(let's say)
SagarAliasSriniv is now known as Mohanlal
<srhb>
crocobower: In transit? Wouldn't SSH/TLS basically take care of that for you?
Mohanlal is now known as Lallettan
Lallettan is now known as LalJose
<crocobower>
ok I mispoke then, assume either DNS spoofing or BGP routing attacks
<srhb>
crocobower: (And scripts is not quite right, but for the purpose of this question I guess it doesn't matter)
teto has joined #nixos
<crocobower>
yeah, I don't remember how it all works, but presumably nixpkgs is the thing that I'd need to ensure came from the devs
<srhb>
crocobower: Yes.
<crocobower>
so, if that ever happens, I'd happily switch to NixOS
stevenxl has quit [Quit: Connection closed for inactivity]
<srhb>
crocobower: The discussion applies to any git source. Our commits are not generally signed, so you're currently out of luck.
<crocobower>
agreed
<crocobower>
well, thanks for the info
<srhb>
crocobower: Sure thing. :)
crocobower has quit [Quit: Leaving]
rauno has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iron_houzi has joined #nixos
<iron_houzi>
Trying to understand node edges here. Do they represent dependencies, so if A -> B, A depends on B?
<iron_houzi>
In terms of the nix-store ..
<srhb>
iron_houzi: Like, the dot output?
<iron_houzi>
srhb: If I do: `nix-store --query --references /nix/store/ajlnfsb30n0bbiqsapjla9idar8a68f2-nix-2.3.4/`, do I see all the nodes that *-nix-2.3.4 depends on?
<iron_houzi>
.. or is it the other way around?
vidbina has quit [Ping timeout: 256 seconds]
<srhb>
iron_houzi: That's all the paths that nix immediately depends upon.
<iron_houzi>
srhb: Thanks!
kahiru has joined #nixos
kvda has joined #nixos
RRedcroft has joined #nixos
iyzsong has joined #nixos
<RRedcroft>
Trying to run a precompiled binary inside an fhsuserenv, but it cant find the QT Platform Plugin, tried wrapping it with WrapQTAppsHook but that hasnt helped
AberDerBart[m] has joined #nixos
<srxl>
I've got a rust program (deno) that pulls a crate (rusty_v8) as a dependency. As part of rusty_v8's build process, it needs to download a copy of V8 and build it. How can this be handled in nix?
simba1 has quit [Ping timeout: 272 seconds]
<symphorien>
ask upstream to provide a way to use an already downloaded source as an environment variable.
<symphorien>
I think you can't even patch the build system yourself because cargo checks integrity of sources
<symphorien>
or: use crate2nix which does not use cargo and lets you patch sources of dependencies.
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
Shibby has joined #nixos
<Shibby>
jesus christ was a retarded who knows this ?
pauldufresne has quit [Remote host closed the connection]
<turion>
How can I override callCabal2Nix "mypkgs" ./mypkg {...} in such a way that I give it additional buildInputs (I think)? In my example, I want to make sure I can link against libGL and other external libraries
meh` has joined #nixos
jkarni_ has quit [Ping timeout: 256 seconds]
<turion>
I'm trying callCabal2Nix "mypkgs" ./mypkg { buildInputs = with pkgs; [libGL]; }, but it's complaining that buildInputs is unexpected
orivej has quit [Quit: No Ping reply in 180 seconds.]
jkarni_ has joined #nixos
<betaboon>
when crosscompiling wih binfmt/qemu is it possible to provider more cores ?
<turion>
As far as I can see, callCabal2Nix forwards these args to callPackage, so I think I'm doing the right thing..?
<iron_houzi>
Does anyone have experience with using nix as a package manager for internal company software on Linux laptops, mostly Ubuntu. Also, does nix do a good job with packaging python?
RRedcroft has quit [Ping timeout: 272 seconds]
<srhb>
iron_houzi: Yes to the first. Sort of yes to the second.
<obadz>
Very much yes to the second. Don't know a saner way to package Python software than Nix…
<sphalerite>
betaboon: should be the same as with native builds, except that everything takes longer.
<srhb>
obadz: Oh, me neither. I didn't mean to imply otherwise. :)
<betaboon>
sphalerite: my nix.conf states max-jobs=8, cores=0, but the build seems to only use 2 cores oO
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has quit [Quit: No Ping reply in 180 seconds.]
<iron_houzi>
In terms of introducing nix for internal company packages, what's the user experience for a common developer without a lot of linux experience if they want to install, uninstall and update packages?
smatting has joined #nixos
<srhb>
iron_houzi: imho the best to sneak it in is to provide development shells that Just Work, packaging things for them initially, and providing a binary cache setup.
orivej has joined #nixos
<iron_houzi>
Yes, I'll be doing all the packaging, and precompiled binary cache sounds good, but it would be nice if they could do the rest themselves, like `apt update`, `apt install foo`, `apt autoremove foo` .. but for nix of course.. is that plausible?
<iron_houzi>
s/update/update && upgrade/
<iron_houzi>
..not sure about `apt autoremove` either, but you get the point..
<cab404[m]>
iron_houzi: `nix-shell -p 'python3.withPackages(p: [ p.pandas p.tensorflow ])'` will drop you to a shell with pandas and tf. (imo jawdropping in itself)
<betaboon>
sphalerite: ah i might be mistaken: my build is currently compiling perl which disables parallel-building when cross-compiling.
<cab404[m]>
* iron_houzi: `nix-shell -p 'python3.withPackages(p: [ p.pandas p.tensorflow ])'` will drop you to a shell python with pandas and tf installed. (imo jawdropping in itself)
m0rphism has joined #nixos
<iron_houzi>
cab404[m]: How is that anything different than conda?
<cab404[m]>
<iron_houzi "cab404: How is that anything dif"> you don't have .env or anything in your directory. oh, and also you can do `nix-shell -p '(python3.withPackages(p: [ p.pandas p.tensorflow ])') cudatoolkit clblas` and add some system libraries
<iron_houzi>
adisbladis: how do you solve package versioning from git tags/commits with poetry?
<cab404[m]>
What is the best way of getting path to ldlinux in nix-shell?
<cab404[m]>
Preferrably I need to one-liner patchelf --set-interpreter to patch it inside vscode.
<cab404[m]>
since #nix is silent, gonna request some help here: I am currently patching rust-analyzer VSCode plugin to work on NixOS — they switched from musl to gcc, and now dynamic linker is required.
<cab404[m]>
What is the best way of getting path to ldlinux in nix-shell?
<cab404[m]>
* since #nix is silent, gonna request some help here: I am currently patching rust-analyzer VSCode plugin to work on NixOS — they switched from musl to gcc, and now dynamic linker is required.
<cab404[m]>
Preferrably I need to one-liner `patchelf --set-interpreter` to patch it inside vscode.
<adisbladis>
iron_houzi: Currently you don't.
<iron_houzi>
..and you don't want that?
<adisbladis>
No.
<adisbladis>
When building from a git checkout inside the Nix sandbox we don't have .git
<adisbladis>
For example
waleee-cl has quit [Quit: Connection closed for inactivity]
<adisbladis>
It offers very little convenience for much impracticality imo
zebrag has joined #nixos
inkbottle has quit [Ping timeout: 256 seconds]
<cab404[m]>
there is an option to leave .git source though. sometimes stuff really wants its repo around it
<iron_houzi>
adisbladis: I'm strugling to understand your point though. I'm assuming we all appreciate merkle trees/graphs .. and git is used to govern the state of software development, then I would assume that mapping this merkle tree to the merkle tree of nix would be the best thing ever.. what am I missing here? ..must admit I have 3 minutes of nix experience though :D
<adisbladis>
iron_houzi: .git is not reproducible and not required in like 99.9999% of all builds
<adisbladis>
So when fetching sources from git we throw away .git by default
<adisbladis>
Since tt's an impurity
<adisbladis>
it's*
<adisbladis>
So at build time you don't have access to .git
<iron_houzi>
ok, but the commit/tag should be referenced in the nix derive/node, right?
<sphalerite>
betaboon: but qemu-user isn't cross
<cab404[m]>
actually that might be a fun idea — creating a new entry for each release in versions.nix with pinned stuff. pretty sure flakes have something like this in mind
alp has quit [Ping timeout: 246 seconds]
<adisbladis>
iron_houzi: Well yes, from the perspective of the nix graph we have the version metadata and such, but setuptools_scm has no way of figuring out what a correct dependency is at build time
agam has joined #nixos
<adisbladis>
This is mostly a non-issue since a pypi tarball contains this metadata
<betaboon>
iron_houzi: on the setuptools_scm problem that you are facing because .git isnt available during build-tine: you can use SETUPTOOLS_SCM_PRETEND_VERSION
<iron_houzi>
adisbladis: I thought the sole purpose of setuptools_svm is to automatically generate a sane version that can be mapped to a specific commit/tag in the git tree .. which is super useful, no?
<iron_houzi>
betaboon: I'll look into that, thanks!
<betaboon>
iron_houzi: i had the same problem a while back. just use the version from your nix-derivation, you fetch the source in the nix-derivation anyway, and then set PRETEND_VERSION to that version.
jakobrs has joined #nixos
<iron_houzi>
I hope I don't come accross as trying to instigate, I'm geniuenly curious and completely open to being wrong here..
<adisbladis>
It's all good :)
<betaboon>
iron_houzi: you can simply export that var during preBiuld
<adisbladis>
You're asking good questions
<jakobrs>
Why are the letters e, o, u, and t *specifically* banned from Nix store hashes?
<iron_houzi>
Really appreciate the discorse here. Thank you *so* much for your input!
<iron_houzi>
*discourse
<jakobrs>
The thesis says it's "to reduce the possibility that the hash representations contain character sequences that are potentially offensive to some users",
<jakobrs>
and cites US patent 7,302,343 B2
<srhb>
jakobrs: It even has a reference to the paper that makes that plausible, doesn't it?
<srhb>
Ah, patent, okay.
<srhb>
jakobrs: What are you asking then?
<jakobrs>
But the patent removes the vowels specifically
<srhb>
jakobrs: Seems like you found the answer in great depth and detail :)
agam has quit [Ping timeout: 240 seconds]
<jakobrs>
and last time I checked t was not a vowel
<jakobrs>
It's the fact that 'u' is banned that's confusing me, perhaps I'm just missing the name of some common profanity
<jakobrs>
... oh I just realised which word it is
agsdheidjd has joined #nixos
<betawaffle>
ok, here's a weird problem. curious if anyone has ideas. in firefox, as soon as i try to scroll with my mouse's scroll wheel, everything gets laggy. if i stop, it takes ~10 sec to get back to normal. i can scroll just fine with my keyboard, no lag (except during those 10 seconds)
<betawaffle>
i'm on sway, have a beefy amd graphics card
teto has joined #nixos
<betawaffle>
and it seems like it *may* not be every site
<betawaffle>
any theories?
<betaboon>
betawaffle: any website that you can share that shows that problem ? I'm on sway as well.
<angerman>
how do I create a nixops configuration for an existing machine? I'd ideally like to carry over as much as possible from that machine rather than reconfiguring it completely different.
o1lo01ol1o has quit [Remote host closed the connection]
xd1le has quit [Read error: Connection reset by peer]
mallox has quit [Quit: WeeChat 2.8]
gxt has joined #nixos
<jakobrs>
you *sued* it?
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #88516 → obs-studio: show the actual version instead of 0.0.1 → https://git.io/JfgH5
chloekek has quit [Ping timeout: 246 seconds]
teto has quit [Ping timeout: 272 seconds]
<gchristensen>
jakobrs: try a charitible interpretation :)
<angerman>
jakobrs: absolutely!
kahiru has joined #nixos
<{^_^}>
[nixpkgs] @bjornfor pushed to release-20.03 « gnomeExtensions: add 'uuid' attr to all extensions »: https://git.io/JfgHF
mallox has joined #nixos
acowley has quit [Ping timeout: 265 seconds]
<betaboon>
can anyone point me in the right direction on how to build a rootfs-tarball for armv7 (that i want to use for nfsroot) ?
<angerman>
jakobrs: if things don't work, sue them! ... eh... wait! But it worked... 😕
acowley has joined #nixos
turion has joined #nixos
agsdheidjd has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed to command-not-found « command-not-found: drop perl dependency »: https://git.io/JfgQe
gustavderdrache has joined #nixos
<jakobrs>
I assume it's better to use <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix> than <.../sd-image-aarch64.nix>?
<{^_^}>
[nixpkgs] @Mic92 pushed 0 commits to command-not-found: https://git.io/JfgQI
__monty__ has quit [Quit: leaving]
lorimer has quit [Read error: Connection reset by peer]
lorimer has joined #nixos
orivej_ has quit [Read error: Connection reset by peer]
orivej has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
morgrimm has joined #nixos
xd1le has joined #nixos
turion has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @Mic92 opened pull request #88517 → command-not-found: rewrite in Rust → https://git.io/JfgQz
<bqv>
ooh
o1lo01ol1o has joined #nixos
<bqv>
i appreciate there being a rewrite cause it needs to be rewritten to handle nixFlakes anyway
jkarni__ has joined #nixos
<manveru>
Mic92++
<{^_^}>
Mic92's karma got increased to 24
<jakobrs>
The program that generates the command-not-found database,
<adisbladis>
"Eventually we could remove perl completely from the default nixos closure." - one can dream
<zimbatm>
jakobrs: actually it's better to use `"#{modulesPath}/installer/cd-dvd/sd-image-raspberrypi4.nix"`
jkarni_ has quit [Ping timeout: 265 seconds]
<Mic92>
adisbladis: not over the dead body of git and autotools
<jakobrs>
could it theoretically generate a database that lists _all_ files, not just those in /bin/?
<zimbatm>
where modulesPath comes from the arguments
<Mic92>
but yeah maybe the default closure
<adisbladis>
Mic92: At least the minimal install
<jakobrs>
So you'd be able to do nix-locate without having to generate a database using nix-index
kahiru has quit [Ping timeout: 240 seconds]
<Mic92>
jakobrs: I guess so.
<jakobrs>
zimbatm: I think that's what I said? I don't recognise the modulesPath thing though.
<jakobrs>
I'd really like a site that would simply list packages and their metadata and contents
<manveru>
Mic92: btw, do you know `substituteAll`? it does your replacement based on env vars :)
<Mic92>
manveru: probably I could even do it with some rust magic?
<Mic92>
through RUSTFLAGS
<jakobrs>
So you'd be able to search for, say, "pkgs.vim" and it'd tell you the current version of vim, and what files are in it
<manveru>
Mic92: yeah, also not sure the dbPath has to be backed in through nix at all, if it's a default anyway just also provide an env var to change it?
<gchristensen>
abathur: do you have something of this flavor: mkResholvedScript { name = "my.script"; inputs = [ ... ]; } ''find . | rev''
<AmandaC>
,locate libSDL2.so
<{^_^}>
Found in packages: SDL2
<AmandaC>
,locate libSDL2main.so
agam has quit [Ping timeout: 256 seconds]
<{^_^}>
Couldn't find in any packages
<AmandaC>
Hrm.
jumper149 has joined #nixos
opticnerve has joined #nixos
<evanjs>
zimbatm++ for prompt PR review/merges 😃
<{^_^}>
zimbatm's karma got increased!
<sphalerite>
AmandaC: libSDL2main is only needed on Windows generally, I think
<sphalerite>
AmandaC: it's also generally a static library
<sphalerite>
,locate libSDL2main.a
<{^_^}>
Couldn't find in any packages
<sphalerite>
,locate libSDL2main
<{^_^}>
Found in packages: SDL2
<AmandaC>
Hrm. I'm trying tobuild an expression for https://github.com/asiekierka/zeta to toy around with, but it's complaining that libSDL2main is missing
<AmandaC>
There's a .la file for libSDL2main in that, but no .a or .so
<hyper_ch>
sphalerite: could you commit a pr of mine?
orivej has quit [Quit: No Ping reply in 180 seconds.]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sarcasticadmin has joined #nixos
orivej has joined #nixos
<abathur>
gchristensen: I haven't played around with writing anything from scratch yet, no
fabianhjr has joined #nixos
sarcasticadmin has quit [Ping timeout: 258 seconds]
jkarni_ has joined #nixos
sarcasticadmin has joined #nixos
<gchristensen>
cool, no worries, I've got something a bit tortured but working :D
reallymemorable has joined #nixos
jkarni__ has quit [Ping timeout: 256 seconds]
<abathur>
it's probably good to have; just wasn't in my use case and hadn't occurred to me as a need
sarcasticadmin has quit [Ping timeout: 264 seconds]
gxt has quit [Ping timeout: 240 seconds]
gxt has joined #nixos
opticnerve has quit [Quit: bye]
growpotkin has joined #nixos
sarcasticadmin has joined #nixos
fusion809 has quit [Remote host closed the connection]
sarcasticadmin has quit [Ping timeout: 256 seconds]
<freeman42x[m]1>
I have migrated a NixOS fresh install from VMWare to Virtual Box and it loads correctly until it gets to the X11 start and then I get a black screen. I tried almost all possible VM display settings and it does not change anything. Any suggestion on how to fix this without a reinstall? just for the fun :)
sigmundv has quit [Read error: Connection reset by peer]
teto has quit [Ping timeout: 240 seconds]
chreekat[m] has left #nixos ["User left"]
<sshow>
How can I depend on sources from private Git repositories? I.e. how do I configure ssh/https authentication?
chreekat[m] has joined #nixos
sigmundv has joined #nixos
<gchristensen>
abathur: you have made my day lol
<infinisil>
sshow: Use fetchGit, the builtin one, documented in the nix manual
<abathur>
:]
<sshow>
infinisil++ thanks a lot.
<{^_^}>
infinisil's karma got decreased to 294
<{^_^}>
Wait no, it got *increased* to 296
<infinisil>
Phew!
<sshow>
Yeah. Almost got robbed there.
Soo_Slow has joined #nixos
<evanjs>
Argh. Sorta spacing out. Windows 2004 messed up grub, what's the process for fixing that? I recall certain nixos-rebuild things don't work in chroot?
<evanjs>
ping clever lol
<clever>
evanjs: ?
<evanjs>
My grub died and I can't remember if chroot+nixos-rebuild is enough to get it working again
<clever>
evanjs: ah, just nixos-install --install-bootloader boot, under nixos-enter
<evanjs>
Okay that's where my second issue came up. Does nixos-enter _need_ the nix stuff directly under /mnt?
<clever>
evanjs: nixos-enter --root /elsewhere
<evanjs>
--root, gah. -h,--help and man weren't working so I was confused :D
rasmusm has joined #nixos
<freeman42x[m]1>
how can I change driver or go safe mode before X11 is started? I am geting black screen on X11 start
<freeman42x[m]1>
clever: "I have migrated a NixOS fresh install from VMWare to Virtual Box and it loads correctly until it gets to the X11 start and then I get a black screen. I tried almost all possible VM display settings and it does not change anything. Any suggestion on how to fix this without a reinstall? just for the fun :)" a rollback would not be meaningful I think
<bdju>
new major aerc update out, in case someone feels like updating the package
magnetophon has joined #nixos
<evanjs>
clever: mmkay looks like _no-bootloader_ is an option so I figure bootloader is implicit. Now I just need internet... I thought resolv.conf was enough for that :P
<balsoft>
crocobower: both are mitigated with TLS if you trust Github
<evanjs>
"It installs the GRUB boot loader on the device specified in the option boot.loader.grub.device (unless --no-bootloader is specified), and generates a GRUB configuration file that boots into the NixOS configuration just installed."
<evanjs>
Mmyup
<Izorkin>
did not update zfs to 0.8.4 ?
jco has joined #nixos
<evanjs>
Oh. It _is_ enough. I must've copied it into /etc instead of /mnt/nix...
<evanjs>
yep. omg
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
jkarni_ has quit [Remote host closed the connection]
jkarni_ has joined #nixos
<evanjs>
clever: getting "error: writing to file: Operation not permitted" when trying to nixos-install (note that I'm using "--root /")
<clever>
evanjs: nixos-install wont work with a root of /
<clever>
evanjs: you want nixos-rebuild boot, with --install-bootloader
<clever>
evanjs: nixos-install is just a wrapper to combine chroot and nixos-rebuild
<{^_^}>
[nixpkgs] @globin pushed 0 commits to revert-88474-vmware-image: https://git.io/Jfgpt
agam has quit [Ping timeout: 246 seconds]
drakonis has quit [Ping timeout: 272 seconds]
<evanjs>
clever: so uhhh what should I try when nixos-rebuild boot wont work? :D maybe I should try this from a livecd rather than Gentoo lol
xcmw has joined #nixos
darr has joined #nixos
<darr>
hey, i'm having a few issues with LnL7's nix-darwin, specifically the error `error: file 'darwin' wad not found in the nix-search path (add it using $NIX_PATH or -I)` command run was `darwin-rebuild switch`
jkarni_ has quit [Ping timeout: 258 seconds]
<darr>
I have no idea what the file 'darwin' is, so i'm a bit lost
<clever>
evanjs: how does it "not work" ?
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
drakonis has joined #nixos
drakonis1 has joined #nixos
justanotheruser has quit [Ping timeout: 260 seconds]
ddellacosta has joined #nixos
drakonis_ has quit [Ping timeout: 252 seconds]
lukash_ is now known as lukash_|away
dansho has quit [Ping timeout: 240 seconds]
<bqv>
axx[m]: last time i tried to build on my rpi2 i had like 3 caches all with zero hits
<bqv>
i'd give up on that front
<bqv>
but then again, i also haven't built my rpi properly for ages
<cole-h>
And what happens if you try to run the command from the manual install (again) -- `$(nix-build '<darwin>' -A system --no-out-link)/sw/bin/darwin-rebuild switch`
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cole-h>
darr: So, reading the README, it says that the default NIX_PATH will look for nix-darwin at ~/.nix-defexpr/darwin -- can you confirm that folder exists?
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
agam has quit [Read error: Connection reset by peer]
agam has joined #nixos
<darr>
cole-h: gotcha! :)
<darr>
looks like I ignored the OR
<darr>
`# Or use a local git repositorygit clone git@github.com:LnL7/nix-darwin.git ~/.nix-defexpr/darwinexport NIX_PATH=darwin=$HOME/.nix-defexpr/darwin:darwin-config=$HOME/.nixpkgs/darwin-configuration.nix:$NIX_PATH`
chloekek has quit [Quit: WeeChat 2.6]
<cole-h>
Hope it ends up working for you :P If not, you really will have to ask for some help in the darwin channel...
user_0x58 has joined #nixos
shibboleth has quit [Quit: shibboleth]
<darr>
cole-h: ok, thanks for your time
<cole-h>
Hope you get it solved.
<evanjs>
clever: lol I just needed to re-add the boot entry from my BIOS
<jlv>
If anyone uses Seafile and wants to use their SeaDrive client on NixOS, I have a working (last I checked) package in this pull request: https://github.com/NixOS/nixpkgs/pull/66540 . I just closed the pull request, because I don't use Seafile anymore, but feel free to open a new pull request or add your own overlay, if you're interested.
<{^_^}>
#66540 (by JustinLovinger, 40 weeks ago, closed): seadrive-gui: init at 1.0.7, seadrive-daemon: init at 1.0.7
zebrag has joined #nixos
felixfoertsch has joined #nixos
dermetfan has joined #nixos
reallymemorable has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<dsal>
Trying to install nix in some slightly weird debian system. It's failing to mount /proc from nix-env -- does anyone know what it's trying to do?
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
<sphalerite>
dsal: set up the sandbox probably
<sphalerite>
dsal: you can disable the sandbox, which will affect the purity of your builds negatively, but might make it work
<dsal>
How do I do that? I'm just trying to get nix installed at all.
<sphalerite>
oh, hm, that could be a bit trickier
<sphalerite>
Try putting `sandbox = false` in ~/.config/nix/nix.conf
Brandon__ has joined #nixos
gxt has quit [Ping timeout: 240 seconds]
gxt_ has joined #nixos
bebarker has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @mjlbach opened pull request #88526 → Xpra: 3.0.9 -> 4.0.1, fix patches, fix on KDE → https://git.io/Jf2v8
<{^_^}>
[nix-mode] @matthewbauer pushed 2 commits to master: https://git.io/Jf2fO
ris has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
xcmw has joined #nixos
Soo_Slow has quit [Quit: Soo_Slow]
dansho has joined #nixos
o1lo01ol1o has joined #nixos
phnom has quit [Quit: Konversation terminated!]
<meh`>
I'm having trouble with openssh.hostKeys, it seems to be putting the key in the store with 0444 instead of 0400 permissions, which ends up making openssh fail to start, any hints?
phnom has joined #nixos
<meh`>
the source path of the key has the right permissions
<bqv>
it's just occured to me, when nix is using remote builders, it pulls stuff from cache.nixos.org and then pushes to the builders, right?
<bqv>
so that could actually result in builds being way slower with remote builders, not faster
<bqv>
i say that as i watch data trickle up to my server
alp has quit [Ping timeout: 258 seconds]
<phnom>
Hey, do anyone here have a working nix-shell setup for gradle and kotlin multiplatform? I can't for the lif eof me figure it out... It says I'm missing libraries when I try to build with gradle. Wrote a forum post about it here: https://discourse.nixos.org/t/problem-with-gradle-building-kotlin-native/7272
noudle has quit []
<bqv>
oh my god
<bqv>
for the first time in months my system activated without systemd-network-wait-for-online timeing out
charukiewicz has joined #nixos
<charukiewicz>
Does anyone know why the NixOps manual is no longer on nixos.org? Now there's only a link to the nixops GitHub repo
<johnw>
how do I force a rebuild with nix-build? I've learned and forgotten this option at least ten times now :)
jhillyerd has joined #nixos
<LnL>
--check
<johnw>
that didn't recompile it
<johnw>
it just said "checking outputs" and then printed the existing store path
<johnw>
a full rebuild should take about 10 minutes for this project
<johnw>
I'll try deleting it from the store and disabling substituters
andreas303 has quit [Remote host closed the connection]
<quinn>
(that is what i would have assumed as well)
<cole-h>
And I think `mkIf` is supposed to be outside of your lists/attrs. So line 25 should probably be `datasources = mkIf config.my.pbx.cdr_db.enable [ { type = ....... } ];`
<cole-h>
Instead of `datasources = [ (mkIf .....) ];`
<quinn>
cole-h: the list is only a single item right now because i'm not done writing the module. there are gonna be 3-4 different entries, each depending on a different module being enabled
<quinn>
cole-h: yeah. it might also be worth mentioning that i import all of these with a imports = (../../modules); in my configuration.nix
<quinn>
where modules/default.nix is a list of paths to modules
KindOne has quit [Ping timeout: 272 seconds]
jhillyerd has quit [Quit: WeeChat 2.7.1]
KindTwo is now known as KindOne
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<axx[m]>
> builder for '/nix/store/wycb6xkcn279cnsfd22g2gn9n1p2l155-gcc-7.4.0.drv' failed with exit code 2
<axx[m]>
>_cannot build derivation '/nix/store/xskv5p0mlf6pf10ljl3sk1f47vk0i2p9-bootstrap-stage4-gcc-wrapper-7.4.0.drv': 1 dependencies couldn't be built
<{^_^}>
error: syntax error, unexpected $undefined, expecting ')', at (string):312:13
<axx[m]>
no other solution that i know bqv
<axx[m]>
and this one is out, apparently :)
cosimone has joined #nixos
<bqv>
oh, yeah i should have mentioned that
troydm has joined #nixos
<bqv>
MANY derivations fail to build on armv7
<bqv>
so i had to literally switch between building natively and cross-compiling remotely on a derivation by derivation basis
phnom has quit [Quit: Konversation terminated!]
<infinisil>
quinn: The error certainly won't be `undefined variable 'my'` with config.my
<bqv>
i genuinely think the easiest option is to have a while loop with your build in it that toggles between local builds and remote builds
<bqv>
as awful as that sounds
<bqv>
(and then come back in a week and it might be done)
proofofkeags has joined #nixos
KindTwo is now known as KindOne
<axx[m]>
i was just doing this to learn more about NixOS, so i'm going to stop there and install it on something else, this is not going to be a good use of my time :)
<axx[m]>
thanks for helping clarify that, however!
<quinn>
infinisil: oh jesus, you're right. PEBKAC as usual, sorry to bother you
<cole-h>
x)
vidbina has joined #nixos
<quinn>
(i had the SAME ERROR in a different file and i wasn't reading the file names in the error message)
<infinisil>
:P
<bqv>
honestly if the state of nixpkgs on armv7 is still that bad i might just give up on using nix on there too
rauno has quit [Remote host closed the connection]
<bqv>
but that means using a non nixos distro :(
<infinisil>
I'd say that's an opportunity to improve it. I don't think there's many people with such devices that could even help out with that
<infinisil>
(I certainly can't)
<bqv>
infinisil: it is, yeah, but the number of packages that are broken make it a huge endeavour and i don't think i have the freedom
agsdheidjd has quit [Ping timeout: 256 seconds]
syd52 has quit [Quit: Connection closed]
<mica[m]>
Does anyone do consulting for packaging? Can I pay someone to just get DisplayCal working?
<quinn>
bqv: is there a good way to VM builds? if the workflow is good i could try to work on it a bit, i would like to get an arm device at some point.
<{^_^}>
[nixos-homepage] @garbas pushed to landing-page « move css into css/nixos-site.css file »: https://git.io/Jf2TJ
<bqv>
quinn: that wouldn't work, because the emulation changes the architecture in subtle ways that make some builds start working and some start failing
<bqv>
(hence my solution above)
<simpson>
mica[m]: What doesn't work?
<mica[m]>
simpson: when I plug in my calibration device and click calibrate, it can't fine the wx package
<mica[m]>
simpson: also the package is pretty out of date
<bqv>
maybe i'll just sell my two RPi2s and buy one RPi4. that'd be quite funny because I once sold two RPi1s and bought an RPi2
<quinn>
how would that help?
<bqv>
because RPi4s use aarch64
<bqv>
which is built on hydra
<bqv>
and much better supported
Philipp[m]1 has joined #nixos
<Valodim[m]>
Sounds like an approach that scales logarithmically
<bqv>
(3 and 4, actually)
<bqv>
Valodim[m]: exactly!
andreas303 has joined #nixos
<quinn>
bqv: that does sound much better
<keithy[m]>
Hi, im struggling to get wireguard running.... modprobe: FATAL: Module wireguard not found in directory /run/booted-system/kernel-modules/lib/modules/5.4.41
<bqv>
reboot
<simpson>
mica[m]: MarcWeber is listed as maintainer. This patch seems to fix the build for me; this is one janky package https://bpa.st/KM5A
<keithy[m]>
ah, I thought switch rebooted if it needed to
<keithy[m]>
thx
<bqv>
im eternally grateful that it doesn't :p
<eyJhb>
So I have changed services.xserver layout to us and xkbVariant to dvorak, and when I type in the terminal it works, but all my shortcuts in i3 (default) work in qwerty, and not dvorak
<eyJhb>
I have no clue why and how it can use two layouts at once like this.. Any ideas?
andreas303 has quit [Remote host closed the connection]
<quinn>
eyJhb: i have only looked at the sway configuration in home-manager, but if it's anything like that it has the option to bind with keycodes rather the normal way, the default configuration may do that
<quinn>
bqv: all that just for partial application?
<LnL>
there's still basically just one good eval
<gchristensen>
LnL: disabled because the cross-built VM pushed the initrd too big
<LnL>
aww :(
o1lo01ol1o has quit [Remote host closed the connection]
<bqv>
quinn: well that in combination with the `$` operator can take something that would be tens of lines and compress it into one
<gchristensen>
LnL: when I can, I'll change it to fetch the VM after boot like the macs do
<bqv>
sure you might need a PhD to decompress it but for little things it's a nice convenience
<infinisil>
I'd be happy with just a $
o1lo01ol1o has joined #nixos
<bqv>
i can live without `$`, `.` seems more immediately useful to me
<quinn>
bqv: do you need haskell for the point system? couldn't you just write that into nix?
<simpson>
bqv: Do you have good examples within nixpkgs where this might happen? I don't know of any situations where tens of lines would become one line.
<jared-w>
dot notation is really just a combination of user defined operators (with user defined association and precedence), and partial application. Nothing particularly special about it in of itself.
<bqv>
quinn: no, that's why i was saying i wish it was a thing. the haskell part would just be a shortcut to that end
<LnL>
gchristensen: cool, quite likely to become relevant for me in the not too distant future :D
<jared-w>
(I do vaguely remember that GHC itself has a few special cased hacks for . and $ for typechecking due to their ubiquity, though...)
<infinisil>
(I don't think this has anything to do with haskell embedding)
<gchristensen>
LnL: oh really? :)
<bqv>
simpson: not off head, i'm working on local code
<quinn>
jared-w: i could see how that would be hard for typechecking. bqv: oh, i get it now.
vidbina has quit [Ping timeout: 256 seconds]
<jared-w>
simpson: I think 10s to 1 is a bit of an exaggeration, myself. a(b(c(d(e(f(g)))))) is not magically more verbose than a . b . c . d . e . f $ g
civodul has joined #nixos
<infinisil>
Could even do `a $ b $ c $ d $ e $ f g` with just $ though
<jared-w>
that said, "pipeline notation"s are definitely easier to read over multiple lines
<simpson>
jared-w: Sure. But it's always worth double-checking such claims.
<jared-w>
infinisil: right.
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<jared-w>
simpson: of course, can't have people on the internet being wrong, eh? Or worse, hyperbolic... :p
<bqv>
i mean the gains aren't all single argument elision like that. i'm only thinking back to times where dot notation made haskell code that would have looked ridiculous otherwise very terse
<manveru>
infinisil: isn't that what `lib.pipe` does?
<bqv>
simpson: the passive-aggressiveness is palpable
<infinisil>
manveru: Pretty much yeah, though pipe is a bit backwards in that regard
<mica[m]>
simpson: When I try and build displaycal with that patch, I get: error: can't copy '/tmp/nix-build-displaycal-3.8.9.3.drv-0/DisplayCAL-3.8.9.3/DisplayCAL/../dist/copyright': doesn't exist or not a regular file
<jared-w>
oh of course. I really like a lot of the notational tricks that emerge naturally from haskell's various design choices. Quite honestly, I think more of the terseness and cleanliness comes from typeclasses and ubiquitous operators than it does from $ and . specifically. I've got no idea how we could "operator"ify most of the idioms in nixpkgs (or nix in general), though
teto has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}>
[nix] @edolstra pushed to flakes « Fix GitHub test »: https://git.io/Jf2IL
<bqv>
yeah fair point
orivej has joined #nixos
<manveru>
how's dhall-nix these days?
jhillyerd has joined #nixos
<bqv>
last i checked, it wasn't interchangeable because of the semantics of callPackage
<jared-w>
and, tbh, I'm not sure some of the nixpkgs idioms and design choices are worth codifying in operators or other syntactic sugar. Very few of them have a basis in anything other than convention. Not that convention is wrong, but operators that represent convention never seem to work as well as operators that represent consistent "lawful" abstractions.
<maralorn>
I have a problem with applying overlays.
<azazel>
gchristensen, dmj`: yes, that's great, but I must say that I found the explanation of the "simple mental model" of nix with graph and edges a bit convoluted as a first approach for neophites
<gchristensen>
sure :)
<gchristensen>
that is okay, the post doesn't have to be all thinsg for all people. we need more writing, period
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<{^_^}>
[nixos-homepage] @monoidal opened pull request #429 → Add Tweag to the list of companies providing support → https://git.io/Jf2IR
<eyJhb>
Fast way to start a temp ssh server in nixos?
<infinisil>
jared-w: There is rfcs#3 which wanted to introduce new operators
<maralorn>
I am playing around with overlays and I am trying to have the unstable package set via self: super: unstable = import <unstable> {};, now since I have this at nixpkgs-overlays, that recurses indefinitely. Any suggestion how I can break that recursion?
<maralorn>
Obviously I don‘t need pkgs.unstable.unstable.
<{^_^}>
[nixpkgs] @Pablo1107 opened pull request #88544 → ledger2beancount: init at 2.1 → https://git.io/Jf2Lr
cantstanya has quit [Remote host closed the connection]
drakonis1 has quit [Ping timeout: 272 seconds]
cantstanya has joined #nixos
<maralorn>
Is there an attribute of self by which I can tell if the packageset is unstable?
<maralorn>
Like a version flag?
drakonis1 has joined #nixos
<emily>
if disallowedReferences includes python2.interpreter, will a reference to (python2.withPackages f).interpreter fail? (I'm hoping yes)
<emily>
in fact what does it even mean to include a python2.withPackages f in a nativeBuildInputs? does that just automatically resolve to .interpreter?
<kahiru>
hi, is it possible to have nix store on nfs if I don't plan sharing it between multiple machines?
<srhb>
kahiru: As long as you're not on NixOS, yes, and you could even share it (with some huge caveats wrt. gc roots)
<kahiru>
srhb: why not on nixos?
<srhb>
Uh, I barely remember. Because I didn't get it to boot. :-P
<kahiru>
ah :)
<srhb>
So I guess I should say "maybe, but I failed at it" :)
<kahiru>
fair enough
<srhb>
kahiru: It's a bit tricky when you need the store to be available ultra ultra early in the boot process. But right now I can't think of a fundamental reason why it wouldn't work.
<kahiru>
srhb: I want to try putting nixos on an odroid c2 and i was hoping to offload the storage to another machine with better i/o capabilities
<alj[m]>
Hi! I have a dns(masq) server setup on one of my servers and another server is connected via a tinc vpn to the dns server but also the regular internet via my router. How do I force the second server to prioritize my dns server before anything else and use my router as fallback?
<MichaelRaskin>
kahiru: 9p?
<MichaelRaskin>
NixOS tests run on VMs with 9p store (via virtfs but that should not matter) and it is known to work
<{^_^}>
[nixos-homepage] @garbas pushed to landing-page « improve docker example »: https://git.io/Jf2Lh
<kahiru>
that could be an option
<emily>
wonder how nix-store-on-cephfs is
<{^_^}>
[nixpkgs] @jacereda opened pull request #88545 → copper: init at 4.4 → https://git.io/Jf2tU
<emily>
you could have a cluster-wide nix store that way
numkem has quit [Remote host closed the connection]
<colemickens>
we should s/9p/virtio-fs/g
<colemickens>
well, actually maybe not, idk how old of kernels we support
jhillyerd has quit [Quit: WeeChat 2.7.1]
jhillyerd has joined #nixos
hmpffff has quit [Quit: Bye…]
<{^_^}>
[nixpkgs] @cole-h opened pull request #88546 → nixos/doas: let wheel keepEnv by default → https://git.io/Jf2tk
<das_j>
currently testing the flakes branch. does anyone know how I can force it to use my dirty worktree? `nix eval --impure` does not work for some reason
sigmundv has quit [Read error: Connection reset by peer]
<balsoft>
das_j: what do you mean by "use" exactly? nix build .#foo will work on a dirty tree (just throw a warning)
<das_j>
balsoft: That's what I'd expect as well. However, it returns with `error: source tree referenced by 'git+file://blah' does not contain a '/flake.nix' file`. strace shows that it checks for the file at a store path where it does not exist
<das_j>
`[pid 8197] lstat("/nix/store/v54q0d65wh15h9jzb6ja19vpfa74hcr0-source/flake.nix", 0x7ffe5af1bbd0) = -1 ENOENT (No such file or directory)` is what it tries
fendor has quit [Read error: Connection reset by peer]
<bqv>
das_j: if you use files not tracked by git, it simply will not work
o1lo01ol1o has quit [Remote host closed the connection]
<bqv>
you can fudge it so that you can build a "slightly" dirty tree, like most people here seem to, but for the most part you're meant to commit to build
<das_j>
Oof
<das_j>
That makes development a bit more annoying :/ thanks
o1lo01ol1o has joined #nixos
<balsoft>
das_j: I can't see how it makes development annoying, you just do git add --all and that's it
<balsoft>
You can later git reset if you want to commit things separately
<das_j>
It breaks everything about git status. It will always show as clean which means I'll have to use git log, git diff and friends
<colemickens>
hm, I'm trying to think through the nix-channel --update process, do folks have estimated usage breakdowns for channels?
<balsoft>
das_j: well, the build tool interacts with git to ensure that if two persons check out the same reference, they get the same derivations. I agree that in the case of a dirty tree the behavior should be different and it should just warn you that it will take the tree instead of the index. However, I have no idea if the people making the decisions agree with that.
justanotheruser has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 256 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos
Stuck_ has joined #nixos
<Stuck_>
Hi, I've updated my nixos to 20.03, this week and my syncplay (version 1.6.4) doesn't open, I don't anything online about this. does anyone has the same problem?
gustavderdrache has joined #nixos
rasmusm has quit [Quit: Leaving]
mr_sm11th has quit [Remote host closed the connection]
cosimone has quit [Ping timeout: 260 seconds]
dermetfan has quit [Ping timeout: 265 seconds]
fusion809 has joined #nixos
justanotheruser has joined #nixos
lord| has quit [Remote host closed the connection]
lord| has joined #nixos
<{^_^}>
[nix] @mkenigs opened pull request #3607 → Handle circular flake dependencies in list-inputs → https://git.io/Jf2mx
proofofkeags has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 256 seconds]
proofofkeags has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @r-ryantm to release-20.03 « graylog: 3.2.4 -> 3.2.5 »: https://git.io/Jf2mj
syd has quit [Quit: Connection closed]
reallymemorable has quit [Quit: reallymemorable]
Laboon3k has joined #nixos
smatting has quit [Ping timeout: 264 seconds]
adyatlov has joined #nixos
<adyatlov>
Can someone tell me what the nixpkgs equivalent packages for "# apt install python3-gi gobject-introspection gir1.2-gtk-3.0" are?
<colemickens>
adyatlov: that depends on what your real end goal is
<colemickens>
adyatlov: are you trying to make them available to build some project against?
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
mbrgm_ has joined #nixos
<ajs124>
I'm trying to enable dmeventd on my system, but the .socket unit file that upstream provides doesn't start on bootup. It does start later though... How would I go about debugging this? The journal doesn't seem to contain anything about the socket file.
proofofkeags has quit [Remote host closed the connection]
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
<cole-h>
ajs124: Probably take a look at the socket's WantedBy.
<ajs124>
cole-h: WantedBy=sockets.target
<cole-h>
Wait, the socket *itself* doesn't start on bootup?
<ajs124>
the socket unit is "inactive (dead)" and the sockets don't get created, yes
<ajs124>
but if I run systemctl restart dm-event.socket after bootup, it works just fine
<cole-h>
That is... terribly weird. Sorry, I read "service" for a second.
<ajs124>
while looking at other socket units on my system I noticed that nix-daemon.socket has an empty override unit. anyone got any ideas why that is? does that actually do anything?