<xwza91>
clever thx for your help will try it after reboot if all works :)
xwza91 has quit [Remote host closed the connection]
<hpfr[m]>
I have a list of strings, and a string value. I want to build an attrset that has the string list items as keys, with each key having the string value as its value. i.e. [ "asdf" "jkl" ] and "val" produce { asdf = "val"; jkl = "val" }. is there a good way to do this with builtins and lib?
m0rphism has quit [Quit: WeeChat 2.7.1]
lord| has joined #nixos
<clever>
> builtins.listToAttrs (map (key: { name = key; value = "val"; }) [ "a" "b" ])
<{^_^}>
{ a = "val"; b = "val"; }
<clever>
hpfr[m]: ^^
<hpfr[m]>
oh, I was looking at lta but didn't think of mapping a simple function like that, thanks
Doraemon has quit [Ping timeout: 260 seconds]
cr4y1 has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 260 seconds]
orivej_ has joined #nixos
<aveltras>
is there any package i could take as an example which would be composed from other packages ? for example, i've successfully built the frontend part and the api part of https://github.com/adtac/commento but i now need to bring it all together into another package to get it on nixpkgs
pamplemousse has quit [Ping timeout: 256 seconds]
proofofkeags has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @mweinelt opened pull request #89136 → mini-graph-card: init at v0.9.3; mini-media-player: init at v1.8.1 → https://git.io/JfoSy
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfoSd
<euank>
It effectively has `let mariadb = { client = client; server = server; }; client = mkDerivation .......; in mariadb`
<euank>
That's just having multiple derivations in one package and evaliating it to an attribute set of em
<euank>
If you want an example of a package that builds other derivations into the final output, the docker derivation builds several things into it (i.e. docker-runc, docker-tini) but only has a single output
<aveltras>
euank: my goal is to have a unique output
<xwz91>
Hey, I've still issues with getting some unstable package installed - I've added nixos-unstable channel and replaced a module with import and disable it. Now I need to reference unstabl packages ins systemPackages as well as in module.package
<xwz91>
I tried to import let pkgsUnstable = import <nixos-unstable> {}; without the in part from wiki
<xwz91>
is there any way to make this let availible in the whole config not only in the "in part"?
<clever>
xwz91: put `let key=value; in` before the { that was on line 10 last time i saw the cfg
<xwz91>
need it in environment.systemPackages and services.fprintd.package which are different blocks - can I put it at top level line 4-5 with lib; { ?
<clever>
xwz91: yeah
<xwz91>
will try this - after with lib; I guess?
<clever>
xwz91: either works
<xwz91>
seems to work clever thanks for your support :)
<clever>
yep
proofofkeags has joined #nixos
<adit[m]>
hey also got another question, how would i build a configuration.nix file using nix-build?
<clever>
adit[m]: nix-build '<nixpkgs/nixos>' -I nixos-config=configuration.nix -A system, oops, missed that bit
<hpfr[m]>
@colemickens:matrix.org: yeah I spent hours trying to figure that polkit one out, worldofpeace helped me. In retrospect it makes sense because it’s a system level thing but that was super annoying, glad it’s benefiting someone
pamplemousse has joined #nixos
proofofkeags has quit [Ping timeout: 256 seconds]
<adit[m]>
clever: will that also work with overlays and stuff for nixpkgs defined within configuration.nix, or will the nixpkgs/nixos imported there override those?
tsrt^ has quit []
<clever>
adit[m]: it will still obey the overlays in configuration.nix
tff^ has joined #nixos
<{^_^}>
[nixpkgs] @bhipple opened pull request #89137 → colormake: use fetchFromGitHub → https://git.io/Jfo9Q
<xwz91>
clever have pkgsUnstable.fprintd in systemPackages as well as in services.fprintd.package but getting old version - I accidently not checked the output after rebuild switch but now its just as if noting changed if I comment it out - how to debug tihs?
<clever>
xwz91: how did you check the version?
<xwz91>
clever which fprintd-enroll ~/run/current-system/sw/bin/fprintd-enroll ls -al /run/current-system/sw/binfprintd-enroll
<clever>
xwz91: do you have fprintd in systemPackages multiple times?
markus1199 has quit [Ping timeout: 256 seconds]
<xwz91>
clever no I first do the import of "nixos-unstable/nixos/modules/services/security/fprintd.nix" then disable the old one, afterwards requireing in systemPackages and service.fprintd.package the pkgsUnstable.fprintd
<xwz91>
At the beginning I do with lib;let pkgsUnstable = import <nixos-unstable> {};in{
<clever>
xwz91: can you pastebin the whole configuration.nix file?
<clever>
xwz91: i would expect that to all work, what does `nixos-rebuild switch` output?
orivej has quit [Quit: No Ping reply in 180 seconds.]
<xwz91>
https://pastebin.com/p7XNdXa8 there was something longer before but I never got this again even if I removed the unstable part, rebuild, added it again - remembering about sth "conflict" but wasn't highligted/broke up so I guessed its ok
<{^_^}>
[nixpkgs] @bhipple opened pull request #89138 → go-bindata: use fetchFromGitHub → https://git.io/JfoHW
<clever>
xwz91: that says fprintf, it should be fprintd
proofofkeags has joined #nixos
<clever>
xwz91: i had a typo in my example!
<xwz91>
You are right, to late for me :/ thx
<xwz91>
agan
<xwz91>
* again
q3ax[m] has joined #nixos
<xwz91>
now something happen as expected will see :)
<xwz91>
Now it's up2date - does it make sens to make a issue on github for services.fprintd and that it needs an overwirte?
<xwz91>
* overwrite
<clever>
yeah, its a bug that its mising cfg.package and pkgs.fprintd
<clever>
it ignores .package in several spots
<xwz91>
Will open an issue to address it also for others searching for a solution like me - but will be unable to provide pr ... Thank your very much will take some sleep for now ^
xwz91 has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 256 seconds]
rogue_koder has quit [Remote host closed the connection]
<raghavsood>
Anyone running a variety of machines on hetzner? I have a total of six machines, 3 under nixops, and 3 set up manually. Of these, a handful of them just refuse to boot after installation. I've tried BIOS installs, UEFI installs, changing legacy/uefi/both modes in BIOS, installing to HDDs, SSDs, gpt table, msdos table, everything. It always gets
<raghavsood>
stuck after boot on a screen that just says "GRUB _" (not a prompt, just the word with an underscore)
<clever>
raghavsood: what is boot.loader.grub.devices set to?
<raghavsood>
When using uefi, nodev, when using bios, it is set to one or more of the block devices
<raghavsood>
The actual installation succeeds
<raghavsood>
And the exact same nixops config works on 2 other machinse
<raghavsood>
And the exact same nixops config works on 2 other machines
<clever>
raghavsood: which block devices did you set it to?
jluttine has quit [Ping timeout: 265 seconds]
<raghavsood>
The machine in question has four devices: /dev/sd[a|b], /dev/nvme[0|1]n1. I've tried setting it to just sda, sda and sdb, just nvme0n1, and both the nvme drives
<clever>
raghavsood: nvme will rarely be able to boot via BIOS means
<clever>
and the /boot cant be on nvme either in that case
<raghavsood>
On the working machines, it is set to `[ "/dev/sda" "/dev/sdb" ];`
<clever>
raghavsood: can you run this on one of the working machines?
<clever>
and pastebin the results
<raghavsood>
One of the working machines has just nvme drives, boots fine there - I didn't enable the efi params for boot.* on that machine either, so should be the default options for `boot.loader.grub.enable`.
<clever>
raghavsood: sda is configured to find an fs with a given uuid (or default to sda1) and then read /grub from that, sdb is configured to just blindly read sda sector 1, which does the previous
<clever>
raghavsood: so sdb isnt giving you very much redundancy
<raghavsood>
Yeah, I just realized that too, hmm
<clever>
about all it does, is make the boot order in the bios not matter
<clever>
as for the nvme machine, you have 2 nvme devices, each with an ext4 boot and a zfs vdev, and the bootinfo script doesnt think legacy would work, so its not looking for it
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<clever>
raghavsood: what does the script report, after you install nixos onto one of the failing machines?
aw has joined #nixos
spacefrogg has joined #nixos
<raghavsood>
The nixops install is successful, as far as nixops knows - it reports that grub was installed on one or more block devices (depending on which config I used), then reboots the machine. The machine never comes up, when I go in via KVM I can see it's just stuck on a screen saying "GRUB _"
<clever>
raghavsood: are you able to boot it into a rescue console?
<raghavsood>
I can boot into a live debian image, but not the grub rescue (although I might be able to get into it via the debian rescue)
nwspk has quit [Quit: nwspk]
<clever>
raghavsood: try running the bootinfo script, from the debian liveimage
nwspk has joined #nixos
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 260 seconds]
<raghavsood>
sda and sdb were GPT (they're 8 TB, don't fit in msdos), but the most recent config dropped the partition tables there entirely and gave the full device to ZFS. Boot device in the current config is nvme0n1p1
<clever>
raghavsood: you may need to zero the MBR of sda/sdb, to remove grub from it
<clever>
raghavsood: so the nvme grub takes over
<raghavsood>
Hmmmm. I thought I did that, let me do it again
<iqubic>
Thank you clever
vanillaicecream has joined #nixos
<raghavsood>
I'll just zero out all four disks and reinstall the current config
<clever>
raghavsood: a faster way to do that is the blkdiscard cmd
<vanillaicecream>
Hello! Could someone help me out: I'm running texlive on MacOs via nix-shell, and am not ending up with pdflatex or anything similar in the path.
<clever>
raghavsood: that basically tells the disk controller to assume all blocks are wiped
<vanillaicecream>
I use nix-shell with:
<raghavsood>
Is it materially any different from `dd if=/dev/zero of=blockdev`?
<clever>
raghavsood: for an SSD, blkdiscard will also give a boost to write performance, until youve written the whole disk once
<iqubic>
So, I should just modify pulseaudio.cfg.extraConfig?
<ldlework>
energizer: doh, it doesn't re-evaluate or reimport or something
<energizer>
yeah i think there's another command for taht
<raghavsood>
clever: I tried that a number of times (using the boot menu to manually pick the disks), but I suspect that might be a hetzner limitation - when you boot, it always goes through PXE boot in case the rescue system was activated, and the PXE handoff to local drives doesn't seem to fully respect an individual boot device selection
<ldlework>
energizer: :r?
<ldlework>
no way to combine them
cybrian has joined #nixos
<ldlework>
gotta hit C-p C-p enter C-p C-p enter each time lol damn it
davidak_ has quit [Remote host closed the connection]
<kalbasit>
I'm trying to add a custom attribute to mkOption
<ldlework>
kalbasit: wouldn't you have to do something like overrideAttrs?
<ldlework>
i'm not sure you can actually overlay over lib, but i dunno
<{^_^}>
[nixpkgs] @wchresta opened pull request #89142 → legendary-gl: init at 0.0.14 → https://git.io/Jfo5J
<kalbasit>
ldlework: I thought that's mostly for derivations not simple lib functions
<kalbasit>
am I wrong?
<ldlework>
kalbasit: i have no idea
<kalbasit>
clever: do you know what's going on here? ^^
o1lo01ol1o has joined #nixos
<clever>
kalbasit: that overlay replaced ALL of pkgs.lib, with just { mkOption = ...; }
<kalbasit>
oh!
<clever>
kalbasit: lib.mkOption = is identical to lib = { mkOption = ...; };
<clever>
which replaces the entire lib
<kalbasit>
so I should be doing lib.extend then?
<notgne2>
bit of a weird question, but through some unknown means my NixOS install supports emojis, but in half the places they show up, they are huge, is there some fontconfig option I can enable to fix this?
<clever>
kalbasit: you would need to do `lib = super.lib // { mkOption = ..; };`
<ldlework>
Is there anyway to use nix repl as a shebang?
<aveltras>
could anyone review https://github.com/aveltras/commento-nix ? first time im packaging something, i'd like to know what i could improve here, especially regarding building the package in default.nix
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<ldlework>
Too bad nix repl doesn't give a traceback
growpotkin has joined #nixos
<clever>
ldlework: `nix repl --show-trace` and it will
<ldlework>
ah didn't show it in --help
lsyoyom has quit [Quit: WeeChat 2.8]
proofofkeags has quit [Ping timeout: 240 seconds]
growpotkin has quit [Ping timeout: 246 seconds]
KindTwo has joined #nixos
Maxdamantus has joined #nixos
<{^_^}>
[nixpkgs] @eadwu opened pull request #89143 → swtpm: init at 0.3.1 → https://git.io/Jfods
<agschaid>
hi. I am trying to get a binary (to be specific: an embedded postgres in a java/maven build) to run with `steam-run`. It however complains about not being able to find `libpam.so.0`. I all ready tried to install some "suspects" (`openpam`, `pam_pgsql`, `libcap_pam`, `linux-pam` and `google-authenticator`) as `systemPackages` with no effect. So . .
<agschaid>
. I am not sure whether I tried the right package or whether that is the wrong approach completely. Could/should I provide the packages as `extraPkgs` as you do with `steam`? Or do I provide it to steam and than that gets passed to `steam-run`? Could anybody here point me in the right direction?
<agschaid>
srhb Thank you. Just to be clear: you are talking about something like `(steam.override { extraPkgs = pkgs: [whatEverPackage]}).run`? I just wasn't sure about that since I installed `steam-run` as a separate systemPackage
<srhb>
agschaid: Yes, something like that. steam-run should depend on steam, so if you install it after adding an overlay to steam like that, it'll be changed as well
<srhb>
agschaid: But you can verify that by looking at steam-run's runtime dependencies afterwards.
<agschaid>
ok thank you. I wasn't aware that systemPackages could be interdepended so of course that solution was a bit counter-intuitive to me . . .
<srhb>
agschaid: That said, I think it already has libpam.so in there, so you might be out of luck with this method. Maybe t should be in extraLibraries instead.
<srhb>
agschaid: Generally with overlays, you're changing all of pkgs in one swoop, so a changed dependency propagates all the way.
<srhb>
agschaid: If you're just adding (steam.override ...) directly in systemPackages, it will indeed not propagate
<srhb>
So if that's what you intuited, you're correct. :)
<agschaid>
ok. One step at a time ;) Concerning whether libpam is already in there: I ran `steam-run bash` and then checked `/bin/` for libpam. It isn't there. So that should be that, right?
bbarker has joined #nixos
<srhb>
agschaid: What I did was: nix-store -qR $(which steam-run) | grep pam
<srhb>
agschaid: I concluded that linux-pam is indeed in the closure from that.
<srhb>
agschaid: But that doesn't necessarily mean that it's available in LD_PATH or whatever is necessary for your build to succeed, I guess
<srhb>
That may be what extraLibraries is for (compared to extraPkgs)
<agschaid>
@srhb there are some executables (`pam_tally`,`pam_timestamp_check`,...) that appear to be provided by linux-pam. But it looks like the library isn't in there
<srhb>
ls -l $(nix-build '<nixpkgs>' -A linux-pam --no-out-link)/lib/libpam.so -- seems to be there
<srhb>
I'm an idiot, I was testing with a steam overlay I had disabled. One moment. :)
<agschaid>
srhb; in my `steam-run bash` environment there is also `/run/current-system/sw/lib/libpam.so.0` present. So the problem is probably not to install it but to symlink it somewhere where my postgres can find it
<srhb>
agschaid: That's from your systemPackages (where you should probably not have it)
user_0x58 has quit [Quit: Leaving]
<srhb>
agschaid: Adding it to extraPkgs puts it in /lib in the fhs env just fine
agsdheidjd has joined #nixos
<iqubic>
Should I have my main user in the audio group or not?
<srhb>
(confirmed with steam-run ls /lib/libpam.so)
oida has quit [Remote host closed the connection]
oida has joined #nixos
<agschaid>
@srhb wow! thank you. Also thank for pointing out "override vs overlay". I am still rather new to nix(os) and it might have taken me time to figure that distinction out
<srhb>
iqubic: I suppose that depends on your setup. If you're getting sound through something that needs direct read/write to /dev/snd/* and friends, you need to be in audio.
<srhb>
agschaid: No problem at all. Sorry about the confusion there. :)
<iqubic>
I see. Well, I've had my user in audio for the past few years. No need to change it now.
<srhb>
agschaid: The terminology is a bit overloaded, but yeah, overlays are generally the go-to method for nixpkgs-wide changes (with propagating deps)
<agschaid>
the confusion was just on your side. You made things much clearer for ME ;)
<srhb>
Ah, good :)
<iqubic>
Why is Pulse Audio such a beast to understand?
<srhb>
iqubic: I think it's just a pretty powerful system.
<iqubic>
I'm currently trying to figure out the difference between a loopback and a null-sink.
<iqubic>
Specifically this line from the PulseAudio documention: "Provides a simple null sink. All data written to this sink is silently dropped. This sink is clocked using the system time. All sinks have a corresponding "monitor" source which makes the null sink a practical way to plumb output to input."
<iqubic>
How can you use it for plumbing audio if it's a null-sink?
alp has joined #nixos
<iqubic>
Anyways, this is offtopic, I think.
<{^_^}>
[nixpkgs] @mjlbach opened pull request #89150 → Enable python-language-server on darwin → https://git.io/JfoNc
<srk>
monitors allows you to sniff on the audio, so probably even null-sink :)
<iqubic>
Weird. That's so bizarre.
<srk>
I like jack model with patchbay a little more intuitive for complex stuff
<srk>
maybe pipewire has something similar
<iqubic>
I might switch to JACK. How hard is it to switch?
<srk>
not hard, you still want to run it with pulse I think
<iqubic>
Interesting.
<iqubic>
Does JACK support bluetooth audio?
<srk>
so apps can just use pulse, and you can route pulse input/output via jack
<srk>
not sure
<iqubic>
Well, supporting bluetooth audio is requirement for my system.
<srk>
also startup is (was) a bit tricky for me, as you need to start jack first and pulseaudio just connects to it
<srk>
it might not be worth it if you don't need realtime audio or jack for specific audio apps
<iqubic>
I don't need either of those.
<iqubic>
I just want to do some complex audio wiring.
<srk>
yeah, try jack for that, it's fun :)
<srk>
would be nice if it could do more soundcards out-of-box tho
<srk>
(more than one)
<iqubic>
Will jack work for my soundcard?
<srk>
most probably
<srk>
I think it's just alsa in the end like with pulse
<cole-h>
You might need to adjust your period to reduce xruns
<iqubic>
Or should I use this pipewire thing you told me about?
* srk
haven't tried pipewire yet
<srk>
I was running jack for a long time with musnix and patched rt kernel
<srk>
and pulse on top of it
<srk>
#-chat ? :)
<iqubic>
Sure.
<cole-h>
srk: Do you have your jack config posted anywhere?
<quinn>
jack + pulse is pretty annoying imo. and you can do decent audio routing with pulse and pulseEffects. personally i like to do pure pulse or pure jack depending on whether i'm doing music stuff or not.
vanillaicecream has quit [Remote host closed the connection]
<quinn>
i'm also on wayland which seems to mess with a lot of the dbus glue that normally would hold pulse and jack together
<cole-h>
It definitely is annoying lol.
<cole-h>
Especially without an RT kernel... Xruns out the wazoo
<quinn>
alaso the default jack buffer settings are super high by default, if you get hella xruns on default you will not be able to do software monitoring with jack on that computer probably
<quinn>
i think 1/4th of a second or something? which is absolutely painful for live monitoring. obviously fine for mixing though
<cole-h>
I just want jack because it lowers the volume a crap ton :P
<cole-h>
Otherwise, I'm at like 15% with pulse
<cole-h>
Whereas with jack I can comfortably be between 50 and 75%
<quinn>
try pulseeffects! you can add a bunch of effects including parametric eq and even lower volume
<cole-h>
Is there a module for it, or is it just a package?
<quinn>
it's just a package. you can start it with X though too and have it automagically load a preset.
* cole-h
uses Wayland.
<cole-h>
Alright, I'll check it, thanks :)
<quinn>
ohhhh. well it actually was kind of buggy on wayland last time i tried :(
* quinn
uses wayland too
<quinn>
i also can't get too excited about it cause if i need accurate monitoring i'm in pure jack anyways so it don't matter
<cole-h>
Buggy in what way?
<srk>
quinn: is that ladsp based as well?
<adisbladis>
srk: Iirc yes
<quinn>
i actually don't think so
gxt has quit [Quit: WeeChat 2.8]
<quinn>
cole-h: it was breaking pulse on restart after using jack? i think pulse gets killed or slept or something when i start jack with qjackctl, and it messed up pulse when i stopped jack and restarted pulse
<{^_^}>
[nixpkgs] @vbgl pushed to master « ocamlPackages.core_kernel: remove at 112.24.00 »: https://git.io/JfoAL
<quinn>
(then again if you just use pulse cause your volume issue gets taken care i guess it doesnt matter)
<adisbladis>
I was using another eq for a while, some cli one that was much better
<adisbladis>
But I never bothered to put it in nixpkgs
<quinn>
adisbladis: sir! could i trouble you for a link?
<adisbladis>
quinn: I'm trying to find it again
<cole-h>
My main problem with jack is that it's tbh a huge pain to get working. I needed to change the default.pa for my user (system-wide would break it) to autoload the jack module (and other stuff that cadence had in the file)
<quinn>
adisbladis: i could really use this. i gotta stop being lazy and get actual EQ on these sennheisers or i will be stuck in treble prison until the end of my days
lzmartinico has quit [Ping timeout: 256 seconds]
<iqubic>
Is switching to jack even worth it?
<quinn>
cole-h: honestly i would just recommend going pure jack. if you don't bother with making the two dance together it takes like 5 minutes to set up
lzmartinico has joined #nixos
<cole-h>
How would I go about doing that?
<cole-h>
Just disable pulse and enable jackd?
<adisbladis>
Gah, I can't find it for the life of me...
<quinn>
iqubic: if you want to make music, yeah. you can only get so far with VSTs and with jack i can just start standalone programs and pipe them correctly without the DAW
<adisbladis>
quinn: Which senns do you have? :)
gxt has joined #nixos
<quinn>
adisbladis: just HD 599s. i was going to call them peasant sennheisers but 200 is still a dumb amount for headphones for a sane person
<adisbladis>
Pulseaudio's default BT support is really abysmal
<iqubic>
I wish there was a program like qjackctl for pulseaudio.
<quinn>
adisbladis: :') i mean i'm 20, i make minimum wage haha. (guess i'm wrong about the BT. i still imagine live swapping bluetooth won't play well with the way jack reserves outputs) anyways it's a lot if you don't listen or make a bunch of music
<iqubic>
Really? I'm not sure paprefs works the best on my computer.
<agschaid>
@srhb just to bring that to a closure: thx. Worked perfectly fine with the overlay (after some confusion about how to actually define an overlay ;) )
<adisbladis>
This is the EQ I was using for a while
<srhb>
agschaid: Great! Good job :-)
<quinn>
adisbladis: i didn't, but i did forget to thank you. do you use with just pulse or also JACK?
<adisbladis>
I'm not using jack
<quinn>
iqubic: i've only used it once or twice. pavucontrol has worked well for me for a lot of time though
<adisbladis>
I don't do audio production, and frankly as a user I prefer the less-frills of PA
<quinn>
adisbladis: oh i see. have you used the AutoEq database?
<DigitalKiwi>
quinn: a job? in this economy?
<agschaid>
@srhb just out of interest. I guess I could have also overriden the steam dependency of steam-run and in that override override the extraPkgs of steam . . . . know what I am sayin'? :D
magnetophon has quit [Read error: Connection reset by peer]
<quinn>
adisbladis: yeh if you don't do complicated routing or low latency stuff it's not a big deal. DigitalKiwi: a TA, now a student researcher. so the school gives me a fraction of my parents money back every semester and calls it a job. it's more like a rebate :^)
<iqubic>
yeah, but pavucontrol doesn't let me do the fancy stuff jack does.
<srhb>
agschaid: Yes, though steam-run is not set up to be easy to override. But absolutely, you could have it "detached" from pkgs :)
<quinn>
iqubic: it's like ronnie coleman says: everybody wanna be a bodybuilder, nobody want to lift some heavy a** weights. if you want those features you're gonna have to implement a jack client for firefox or stop using it
<quinn>
and i mean for whatever its worth i use jack and i don't feel the need to have those routing features when i'm just web browsing honestly
<DigitalKiwi>
https://github.com/NixOS/nixpkgs/pull/88882 anyone want to have a looksee at this? thanks (still need to test on aarch64 finally got a raspberry pi working...and i have a macos kvm but haven't gotten to putting nix on it yet...)
<{^_^}>
#88882 (by Kiwi, 3 days ago, open): mlv-app: init at 1.11
<agschaid>
@srhb thank you. everyday something new . . .
<iqubic>
Does firefox have a jack client?
<srhb>
agschaid: Brave new world :-)
switchy has quit [Quit: Bye!]
<quinn>
iqubic: there is a patch, but i only saw some mailing list mention of it so i assume it's not working *great* yet
<quinn>
maybe patch is in upstream? i don't remember. either way i wouldn't count on it
<{^_^}>
[nixpkgs] @vbgl opened pull request #89151 → ocamlPackages.custom_printf: remove at 112.24.00 → https://git.io/JfoAn
switchy has joined #nixos
<agschaid>
@srhb and just to put that into context: you saved my workday. So have a nice day. You deserve it. Bye.
<srhb>
o/
agschaid has quit [Remote host closed the connection]
<srhb>
We've all been there, that point where you tableflip and reach for FHSEnv :P
<quinn>
srhb: gaming - it's a tough job but somebody's gotta do it
<quinn>
srk*
<srhb>
Dammit. :P
<srk>
;))
<craftyguy>
how can I find out what 'requires' or pulled in some package to my system? e.g. 'alacritty' is installed for some reason by something, and I would rather not have it installed
<quinn>
DigitalKiwi: i have a weak little aarch64 VM i will try to run that on but it might take forever. if it works before i hit the hay i will let you know
aveltras has quit [Quit: Connection closed for inactivity]
<quinn>
adisbladis: oh very nice. in honor of this i will try to get autoeq working for jack too
<quinn>
thank you very much!
<adisbladis>
But as it turns out I prefer my sound sig completely as it is on both of my primary headphones
<iqubic>
I'm doing some recording with Audacity. I want to be able to record both my voice from my microphone, and some audio from Firefox too. Except that I also what to send the audio from Firefox to my headphones too.
<adisbladis>
But I really liked this one, also because it's not a gui so it's possible to declaratively define your own preset
<energizer>
how do i copy from ix.io without the line numbers?
magnetophon has joined #nixos
<quinn>
iqubic: yeah, that's interesting. guess you can't do that with pulse without extra hacks. if you're trying to record audio over a youtube video you should just youtube-dl it i guess
<iqubic>
How would that help me?
<quinn>
energizer: you can take off the /nix from the URL
<quinn>
iqubic: cause you can put the downloaded track in a DAW and play it back in a daw
<iqubic>
I see.
<energizer>
quinn: thanks
<iqubic>
But I'd like the ability to be able to set up my own networks much like it looks like I could do with qjackctl
<quinn>
yeah, so download the track and use a daw that works with jack (which is all of them that run on linux as far as i know)
<srk>
Ardour!
<quinn>
pipewire also has a "session manager"/connection graph (which is probably what you mean by patch bay, that's actually something different
<iqubic>
My main issue here is that I want to use jack, but I also want to have buetoothctl.
<iqubic>
quinn: How does pipewire work?
maddo has joined #nixos
<quinn>
bluetoothctl will probably work fine with jack but you can't live swap your output in jack. it grabs one input device and one output device and if bluetoothctl works how i think it works it makes different ones available depending on connection status
<iqubic>
Running pipewire in a terminal doesn't seem to do anything.
<quinn>
i don't know how pipewire works just that it recently got a session manager, you will have to DIY it.
hmpffff has joined #nixos
<iqubic>
Grr..
KeiraT has joined #nixos
NeoCron has joined #nixos
leungbk has quit [Remote host closed the connection]
<quinn>
adisbladis: so have you ever tried presets from the autoeq database? and what headphones do you have?
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from @edolstra to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JfoAF
<{^_^}>
[nixpkgs] @stigok closed pull request #83540 → unbound: don't implicitly enable local resolver in resolvconf → https://git.io/JvHAk
<emilien>
Hello folks, I'm discovering NixOS and will have a few newbie questions. Hope I'm in the right place for that?
<quinn>
yes
<iqubic>
Yeah
<iqubic>
,,ask
<{^_^}>
iqubic: Did you mean ask?
<{^_^}>
Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<quinn>
(along with the wiki and manual)
o1lo01ol1o has quit [Ping timeout: 260 seconds]
<emilien>
First one is: in a NixOps derivation, how can I set parameters for an import? `imports = [ ./log-server.nix ];`
<emilien>
Given that in log-server.nix, I have that: `{ elasticSearchJavaOptions ? [ "-Xms8g" "-Xmx8g" ], config, pkgs, lib, ... }:`
<emilien>
So I'd like to be able to change `elasticSearchJavaOptions` when importing it
<adisbladis>
emilien: `imports` is not NixOps specific, and it expects a NixOS module
<adisbladis>
quinn: Yeah, I did.
<adisbladis>
I have the HD800S as my main daily drivers. I also use the HD600 at times.
<LnL>
modules are global so every module can access or override options from another
<adisbladis>
My in ears are Sony XJE-MH2
<adisbladis>
emilien: What LnL said :)
<DigitalKiwi>
only 1700 on amazon
<quinn>
DigitalKiwi: what a bargain!
<adisbladis>
I paid far less than that ;)
lsix has joined #nixos
<emilien>
Ok, I don't know how to access/override options nixos module then :-)
<LnL>
emilien: while it's possible do add arguments like pkgs/lib, it's generally not really done
<quinn>
adisbladis: how much did you pay? and why do you use the hd600s ever?
lord| has quit [Ping timeout: 272 seconds]
<adisbladis>
emilien: You can just set services.elasticsearch.extraJavaOptions anywhere
<emilien>
aha!
<quinn>
also bless autoeq for using harman, flat eq makes me very cranky
<LnL>
emilien: alternatively you can also define your own more generic option and set that
alp has quit [Ping timeout: 272 seconds]
<adisbladis>
emilien: And then in ./log-server.nix you'll probably want to set services.elasticsearch.extraJavaOptions with a different priority
<adisbladis>
Because presumably you have a line like `services.elasticsearch.extraJavaOptions` and you don't want the default merge semantics
<emilien>
How do you deal with priorities?
<adisbladis>
So I _think_ you want `services.elasticsearch.extraJavaOptions = lib.mkDefault [ "-Xms8g" "-Xmx8g" ];`
<adisbladis>
Then setting `services.elasticsearch.extraJavaOptions` in any other file will override the list completely
<quinn>
adisbladis: why is that? DigitalKiwi: also, why?
<DigitalKiwi>
for one of my friends who records music
<DigitalKiwi>
they had a speaker and an amp they bought a long time ago so i built a box
magnetophon has quit [Read error: Connection reset by peer]
<DigitalKiwi>
this is totally on topic right
<adisbladis>
quinn: I don't really know...
<emilien>
LnL: thanks, will read that. Sometime it's just hard to know the name of the concepts we're looking for :-)
<adisbladis>
For one I don't like to make noise
<adisbladis>
I just prefer the immersion of headphones I think?
<quinn>
alright, fair enough. i have noise issues in dorm, but considering my right ear is deaf something galls me about paying for cans i can't use half of lol
<adisbladis>
And knowing myself I'd go full overboard
<quinn>
adisbladis: ahh. so it's really fear holding you back :)
<adisbladis>
Let go of the fear
<DigitalKiwi>
(it was my birthday the other day and i didn't get enough attention. plz like and retweet)
<quinn>
no twitter sorry bruh. can't let the nsa steal my pepsi
<adisbladis>
Wat
<adisbladis>
Haha
<DigitalKiwi>
quinn: it seemed like a good idea
<DigitalKiwi>
quinn: and i mean did you see it? it's awesome
<quinn>
DigitalKiwi: yes it is sick. it just seems like a lot of trouble for someone who knows nothing about pixies such as myself
mallox has joined #nixos
<gilligan>
adisbladis: i have the Naim Ovator S-400.. and i <3t them ;--D
<gilligan>
adisbladis: good speakers are such a game changer
magnetophon has joined #nixos
<gilligan>
adisbladis: then again it's more feasible to get a good listening experience with headphones than with speakers for sure
<DigitalKiwi>
quinn: yeah i wanted to know more about electronics so learning was a lot of the process. that and finding a bug in kicad that resulted in evils spending hundreds of hours on it
<srk>
DigitalKiwi: ooh, link? :D
<DigitalKiwi>
link for the bug or?
<srk>
yup
<srk>
or just describe it in few words :)
lopsided98 has quit [Quit: No Ping reply in 180 seconds.]
<adisbladis>
gilligan: Tbf I'm spending similar amounts on headphones..
<angerman>
I'm seeing `[ 8490.914289] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43456-sdio.bin failed with error -2`; can someone point me towards some background reading on this?
magnetophon has joined #nixos
cfricke has joined #nixos
FRidh has joined #nixos
dermetfan has joined #nixos
rprospero has joined #nixos
__monty__ has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @soareschen opened pull request #89156 → haskell: Fix with-packages-wrapper MacOS linker hack for GHC 8.8 → https://git.io/JfKeY
o1lo01ol_ has joined #nixos
<kraem[m]>
i'm having a problem with virt-manager freezing my system (the host) when opening it. usually just happens after my system has been booted for a while and has been suspended (i think). starting virt-manager when i have just booted my system works fine. journalctl -b -1 shows nothing when booting after a crash occurs. is there anything else than journalctl i can check?
<magnetophon>
I'm working on ardour6, which needs to have ffmpeg in it's path, but renamed or linked to ffmpeg_harvid. I know how to wrap a program, but how do I rename/link? Should I make a separate package for ffmpeg_harvid and put that in ardour's path?
knupfer has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<MichaelRaskin>
magnetophon: that hsould be cheap, and is likely to work
<MichaelRaskin>
But maybe it expects ffmpeg_harvid to be compiled with some other options/features
o1lo01ol_ has quit [Remote host closed the connection]
knupfer has quit [Read error: Connection reset by peer]
pjt_014 has quit [Ping timeout: 260 seconds]
o1lo01ol1o has joined #nixos
knupfer has joined #nixos
<emilien>
what's the difference between `import` and `imports`?
o1lo01ol1o has quit [Remote host closed the connection]
<magnetophon>
MichaelRaskin: Thanks. Will do! No special compile should be needed.
<quinn>
emilien: import is a function that takes a path and returns a nix value (like an attrset or string) and imports is a standardized attr that belongs in a module. if you add a path to the imports list it will get evaluated as a module
<evils>
it's definitely a kicad bug, but we have no idea why it's only occuring on nixos
<quinn>
magnetophon: ardour 6 looks really exciting, thanks for doing that
<emilien>
quinn: Ok, so in other words, `imports` would include the module sources, where `import` would "evaluate" the content? (I guess it's wrong in Nix implementation, just to get the idea)
<quinn>
emilien: kind of the opposite actually. `imports` evaluates the modules (and might add config.foo to config, or change other configs) and `import` will evaluate to the contents of the .nix file
<quinn>
note .nix files don't have to be modules. they can be plain attrsets, functions, strings, lists, whatever
<quinn>
magnetophon: that is big diff. looks a little bit cleaner than the previous derivation code-wise too. hope it gets merged soon so i can play with it
<ArdaXi>
Hello, has anyone seen issues with hydraUnstable building on nixpkgs master? it seems like a new version of nixFlakes is causing compilation issues, but I've not seen anyone else report it
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @Luflosi to release-20.03 « youtube-dl: 2020.05.08 -> 2020.05.29 »: https://git.io/JfKf8
kvda has joined #nixos
kvda has quit [Client Quit]
<teto>
nevermind, with --debug it works, weird it doesn't display requests as a default
schmittlauch[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
shizonic has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
snupples[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
deepchange[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
fendor has joined #nixos
<dminuoso>
Okay.. since my nixos update, slack is not giving me any audio anymore. Under pavucontrol, slack does not even appear under playback programs.
<dminuoso>
Other programs can produce sounds just fine.
knupfer has quit [Quit: knupfer]
arcnmx has quit [Quit: Idle for 30+ days]
jgeerds_ has joined #nixos
Amit[m] has quit [Quit: Idle for 30+ days]
rihardsk[m] has quit [Quit: Idle for 30+ days]
fsmnarmosta[m] has quit [Quit: Idle for 30+ days]
chloekek_ has joined #nixos
devkabiir[m] has quit [Quit: Idle for 30+ days]
Albakham[m] has quit [Quit: Idle for 30+ days]
<dminuoso>
Slack is not even listed under `pacmd list-sink-souces`
FRidh has quit [Ping timeout: 240 seconds]
rendeko[m] has quit [Quit: Idle for 30+ days]
FRidh has joined #nixos
mindtree[m] has quit [Quit: Idle for 30+ days]
gsals[m] has quit [Quit: Idle for 30+ days]
leonardp has quit [Quit: Idle for 30+ days]
xavierm02 has quit [Quit: Idle for 30+ days]
jamiemagee has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
i_run_out_of_use has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
simbergm has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
ecou[m] has quit [Quit: Idle for 30+ days]
JameySharp[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
awatanabe[m] has quit [Quit: Idle for 30+ days]
aborsu[m] has quit [Quit: Idle for 30+ days]
mlatus[m] has quit [Quit: Idle for 30+ days]
sonercirit[m] has quit [Quit: Idle for 30+ days]
askatasun[m] has quit [Quit: Idle for 30+ days]
MohamedSarhan[m] has quit [Quit: Idle for 30+ days]
ixxie[m] has quit [Quit: Idle for 30+ days]
pamplemousse[m] has quit [Quit: Idle for 30+ days]
likivik[m] has quit [Quit: Idle for 30+ days]
emmanuelrosa[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
brococoli[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
Arcterus[m] has quit [Quit: Idle for 30+ days]
RexHackbro[m] has quit [Quit: Idle for 30+ days]
kcin[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
edomfjp[m] has quit [Quit: Idle for 30+ days]
ZuS[m] has quit [Quit: Idle for 30+ days]
infinisil-m has quit [Quit: Idle for 30+ days]
ub[m] has quit [Quit: Idle for 30+ days]
tuxisgr8[m] has quit [Quit: Idle for 30+ days]
mrtorgo[m] has quit [Quit: Idle for 30+ days]
alexherbo2 has quit [Ping timeout: 256 seconds]
sigmundv has joined #nixos
<{^_^}>
[nixpkgs] @datafoo opened pull request #89159 → nixos/networking: check interface state files exist before acting on them → https://git.io/JfKJc
iqubic has quit [Ping timeout: 260 seconds]
thequux[m] has quit [Quit: Idle for 30+ days]
jaray[m] has quit [Quit: Idle for 30+ days]
laval[m]1 has quit [Quit: Idle for 30+ days]
plato[m] has quit [Quit: Idle for 30+ days]
maxdeviant has quit [Quit: Idle for 30+ days]
notapache[m] has quit [Quit: Idle for 30+ days]
jak_wolf[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
zrsk[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
meh` has joined #nixos
Keith[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
iyzsong has joined #nixos
dittofan[m] has quit [Quit: Idle for 30+ days]
tbenst[m] has quit [Quit: Idle for 30+ days]
faya[m] has quit [Quit: Idle for 30+ days]
PkmX[m] has quit [Quit: Idle for 30+ days]
f0i[m] has quit [Quit: Idle for 30+ days]
morr[m] has quit [Quit: Idle for 30+ days]
Criena has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
rfglinux[m] has quit [Quit: Idle for 30+ days]
aparkerdavid has quit [Quit: Idle for 30+ days]
kvda has joined #nixos
kvda has quit [Client Quit]
jgeerds_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @gnidorah opened pull request #89163 → cdetheme: init at 1.3 → https://git.io/JfKTP
chaoflow has joined #nixos
<hyperfekt>
is there any reason i should be getting a dmsg about the filesystem at /nix/store being remounted when i start a build?
<hyperfekt>
files in the store turn up empty and i'm trying to figure out if it's nix or the filesystem that's causing it
emilien has quit [Remote host closed the connection]
<chaoflow>
I'd like emacs to see during runtime libvterm, cmake, make; I don't mind whether they are in my profile or not. What options do I have, ideally without recompiling emacs?
<dminuoso>
It's far from ideal because it forces you out of the "keep one global emacs running" mindmodel, but it's the only one I found to be remotely compatible with nix.
<dminuoso>
So each time I switch projects, I quit emacs, start a nix shell from the new project, and then I start emacs.
<chaoflow>
dminuoso: So far I'm holding on to one emacs running as daemon and nix-shell sounds great for that - thanks!
<dminuoso>
chaoflow: Im not sure whether that will actually work to satisfaction. Depending on what you want from emacs that might not work.
<chaoflow>
dminuoso: Could the things you need the different nix-shells for be dumped into an .env file?
<dminuoso>
I think things like running commands will happen from the context of the daemon then.
<betawaffle>
anyone know why i might be getting `$GOPATH/go.mod exists but should not` when trying to use buildGoModule using a local `src`?
<simukis_>
does `genericBuild` in a nix-shell no longer work? I tried something like `nix-shell '<nixpkgs>' -A llvm --run 'genericBuild'` and nothing happens.
<wadkar>
hi there - new to nix and excited! Is there a quick configuration where I can tell nixpkg to stick with binary packages?
<dminuoso>
chaoflow: Not the CWD, but the PATH.
<dminuoso>
That's the crux.
<dminuoso>
Or libraries
orivej has joined #nixos
<dminuoso>
Think about how nix works. Each nix environment contains a synthesized PATH (via whatever means), LD_LIBRARY_PATH, etc.. which is how isolated environments come into existence.
<dminuoso>
If your emacs doesn't run in that same environment, then the commands it invokes wont either.
alp has quit [Remote host closed the connection]
alp has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru>
dminuoso: there's a direnv-mode that you can combine with nix-shell
<manveru>
that'll do per-project environments quite nicely :)
<dminuoso>
manveru: I've had much headache with that a while ago, though I cant recall why that was.
<dminuoso>
Starting from emacs is a guaranteed-to-work workaround. :P
<dminuoso>
*starting emacs from nix-shell
<manveru>
i guess, it's been working for me for years :)
<manveru>
not sure what your problem is with it
<dminuoso>
manveru: How's the performance with it?
<dminuoso>
(Latency in particular)
jakob_rs has joined #nixos
<manveru>
very good, i use lorri as well
<jakob_rs>
Is it okay to ignore parts of the issue template when creating an issue?
<dminuoso>
jakob_rs: hard to say without context.
<jakob_rs>
I'm fairly sure I already know why something is failing, and many of the points (like "Expected Behaviour" and "Metadata") are irrelevant.
LevelChart8 has joined #nixos
<jakob_rs>
I'd really just like to open the issue, and then maybe come back to it later, so I'd like to just describe what the problem is.
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @jethrokuan to release-20.03 « mkdocs: default to Python 3 »: https://git.io/JfKII
<MichaelRaskin>
dminuoso: wrappers around upstream code are a typical risk zone! And Nixpkgs is literally almost exclusively that.
<chaoflow>
dminuoso: At least term and run-python will execute in the directory of the current buffer. I'm aiming to use that together with shims that look for .env and .venv/bin in parent dirs
<dminuoso>
MichaelRaskin: It's mostly just that so much nix code is so ad-hoc. I think much of it could be better if nix had a first class module system with explicit export/import mechanics.
<chaoflow>
simpson: thanks a lot!
<dminuoso>
It's very hard to figure out how nixpkgs is structured.
<jakob_rs>
rpcgen is located in darwin.developer_cmds on macos it seems
<simpson>
dminuoso: Most of nixpkgs is structured as one of two ad-hoc module systems. While it would be nice if the expression language had modules, it's not strictly necessary to make progress. (And speaking as a language designer, sometimes it's really nice when "modules" are just plain expressions with predictable behavior.)
o1lo01ol1o has joined #nixos
<betawaffle>
huh, ok... i figured out my problem. how do i change the name of the directory my `src` is unpacked as?
<infinisil>
betawaffle: How do you currently specify it?
maddo2 has joined #nixos
maddo has quit [Ping timeout: 260 seconds]
<jakob_rs>
Hm, libvirt fails to build with either netbsd.rpcgen or darwin.developer_cmds despite the fact that it works with /usr/bin/rpcgen
<betawaffle>
i think that's exactly what i need, thanks!
<jakob_rs>
Also, clang is telling me to "PLEASE submit a bug report", although where to submit it to is not included
o1lo01ol1o has quit [Ping timeout: 264 seconds]
<dminuoso>
simpson: The problem is that it promotes implicit dependencies, that coupled with lack of a type system makes it very hard to reverse engineer how some part is to be used.
<dminuoso>
And then there's all these minefields like qt, where you have thick abstraction layers of functions you need to invoke to use any parts of it.
<MichaelRaskin>
dminuoso: well, «hard to trace value provenance» sounds like an argument to restrict with a bit
<simpson>
dminuoso: Type systems aren't a panacea. Qt would be tough to understand regardless of what lens is placed on top of it.
<MichaelRaskin>
dminuoso: re: Qt — this thick layer comes because Qt is a thick layer of assumptions
<betawaffle>
infinisil++
<{^_^}>
infinisil's karma got increased to 305
jakob_rs is now known as jakobrs
<MichaelRaskin>
this is an inherent problem, not an incidental one
gustavderdrache has joined #nixos
<simpson>
freeman42x[m]1: Ignoring the rudeness of altering somebody's /etc, I think that the sed error is because you've got unescaped [ characters. Not sure, though.
<freeman42x[m]1>
simpson: `Ignoring the rudeness of altering somebody's /etc` You are assuming there would be no warning about this, there will be ofc.
m0rphism has joined #nixos
gxt has quit [Remote host closed the connection]
<freeman42x[m]1>
Also intend to rewrite the script to a Turtle script and use HNIX to parse the AST to make safer modifications to it.
gxt has joined #nixos
<simpson>
freeman42x[m]1: I'm tackling your second question more directly. I suggest that you should *not* modify Nix files this way, at all, period. A large part of the Nix philosophy is that one shouldn't have to alter their core system configuration in this way in order to install packages. It's not reasonable to force people to use Cachix.
<srk>
freeman42x[m]1: hnix and dhall or both options
jakobrs has quit [Quit: WeeChat 2.8]
<srk>
also what simpson says and cachix can install caches with single command or you can provide snippets to import which configure the cache you need
o1lo01ol1o has joined #nixos
<dminuoso>
simpson: Im not suggesting to add a type system to nix, I understand type theory well enough to know that adding a type system after the fact is almost guaranteed a hopeless excercise if you want to adhere to any real type theory benefits.
<dminuoso>
But it would definitely reduce development bugs and potentially compensate for the great lack of documentation. When you see some variable binding, it's almost always impossible to have any clue what is being assigned without looking yourself.
iyzsong has quit [Ping timeout: 240 seconds]
<dminuoso>
By the way, when you said language designer, do you mean you're (amongst others) behind nix?
iyzsong has joined #nixos
<simpson>
No, I work on Monte. I am not a contributor to Nix.
<freeman42x[m]1>
srk: dhall an option for scripting? how come?
<srk>
freeman42x[m]1: for interfacing with nix via dhall2nix
<freeman42x[m]1>
simpson: `It's not reasonable to force people to use Cachix.` Again, you are misunderstanding, no-one is forcine no-one. A lot of these things will be optional with sensible defaults.
<freeman42x[m]1>
srk: why would I want to complicate thing so much when I can just write Haskell code?
<srk>
freeman42x[m]1: I don't know what the goal is :)
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @avdv to master « bazel: 3.1.0 -> 3.2.0 »: https://git.io/JfKLm
<freeman42x[m]1>
simpson: a full build of the project without a cache takes 40 minutes up to a few hours on old PCs. With cachix it takes 1 to 3 minutes
<dminuoso>
srk: Indeed, but from a type theoretic perspective you have no type safety (in the sense of progress and preservation) in such a setting.
<dminuoso>
So it's really lack luster.
<freeman42x[m]1>
so I think that using cachix is a good sensible default
is_null has quit [Ping timeout: 265 seconds]
is_null has joined #nixos
<dminuoso>
If a type checker proves the absence from certain behaviors, it cannot do that if we admit backdoors to allow for "partial typing" - most of these usually boil down to "There some sort of any type that unifies with anything". In such a setting the fact that a type checker is satisfied sadly proves no properties about your program.
<srk>
dminuoso: exactly!
<srk>
maybe as a stepping stone considering the millions of lines of nix in nixpkgs :)
<dminuoso>
Has there ever been a successful attempt at bolting a meaningful type system onto a language?
noudle has joined #nixos
LevelChart8 has joined #nixos
<wadkar>
hi there - new to nix and excited! Is there a quick configuration where I can tell nixpkg to stick with binary packages?
<wadkar>
I am on macOS and I really don't want to build firefox from source
<dminuoso>
wadkar: Generally nix will use precompiled binaries from caches.
is_null has quit [Ping timeout: 265 seconds]
<wadkar>
dminuoso: is there a flag to tell nix to stop if it can't find binaries from caches?
<infinisil>
dminuoso: There's http://mypy-lang.org/ at least, don't know much about it though
is_null has joined #nixos
<bqv>
srk: these… "attempts"
<bqv>
Where are they?
<simpson>
wadkar: ^C will work on nix-build and friends. I don't see a flag for this behavior. FWIW, while many folks have your stance at first, there's simply too many useful small configuration files that Nix can build; if you want to use something like nix-darwin then you'll have to be okay with building stuff that isn't in any cache.
<bqv>
Last I saw was in 2015 I think?
<bqv>
And no code
<srk>
bqv: regnat/tix haskell-nix/hnix
<bqv>
Hm
<wadkar>
dminuoso: I am slowly migrating things from brew to nixpkg, and I don't want to end up compiling gcc/libc first so that i can compile something else
<immae>
is hnix types nix? It seemed to me like parsing nix code to haskell no?
bahamas has joined #nixos
<dminuoso>
wadkar: I cant tell you. Redirect your question to the channel.
<LnL>
what does that have to do with types?
<dminuoso>
wadkar: But usually it should be rare that you need to compile something yourelf.
<wadkar>
dminuoso: got it
<bqv>
immae: this was my understanding too
<immae>
(and regnat abandonned bof tix and its successor ptyx, at least that’s what he said)
<immae>
both*
<wadkar>
simpson: I see, thanks for the tip. I understand that in the long run I will have to compile my own stuff. I wish there was a way I could contribute my binaries back to community,
<LnL>
immae: it's a nix parser and evaluator, nothing to do with types
<srk>
immae: ptyx, right!
is_null has quit [Ping timeout: 246 seconds]
<immae>
LnL: that’s what I understood yes but srk pointed it as an attempt to typed nix so I asked :)
<bahamas>
hello. if I want to create a custom and stripped down image of nixos, how can I go about it? I imagine there's an entry point that specifies top-level files, directories and packages present in the file image. I did find release-small.nix in the nixos dir. is that the file I want to edit?
<wadkar>
thanks, this is my first time with nix - I was wondering if there are any beginner friendly docs/tutorials on how to get things started?
<simpson>
wadkar: The trust model of Nix doesn't allow for easy sharing of binaries. You are pre-configured to trust (read: "be vulnerable to") hydra.nixos.org. There's no easy answer for large monoliths like Firefox; their size makes them problematic.
<immae>
srk: as far as I understood hnix parses standard nix and creates (typed indeed) haskell code from it, but you cannot go anywhere back to nix from there can you?
<simpson>
There's no such thing as a before-the-fact type system. The languages always come first, and then the type systems are established in order to reject undesired expressions.
randoDev has joined #nixos
<bqv>
I think you're being intentionally obtuse here
<bqv>
I'm not gonna play ball
knupfer1 is now known as knupfer
<LnL>
not necessarily, thinks like mypy or dialyzer are pretty successful but it's a hard thing to pull off
<{^_^}>
[nixpkgs] @magnetophon opened pull request #89171 → uhhyou.lv2: init at unstable-2020-05-27 → https://git.io/JfKLy
<wadkar>
simpson: I understand. There's a tradeoff between comfort and trust.
<dminuoso>
simpson: That's not true.
<dminuoso>
simpson: You can design them together at the same time.
<dminuoso>
Or do a ping-pong where, if your type checker cant reject undesired programs, you modify your language to be type checkable.
lord| has joined #nixos
<{^_^}>
[nixpkgs] @magnetophon closed pull request #88950 → ardour: add ardour 6 and make it the default → https://git.io/JfwPK
<simpson>
dminuoso: Minor tweaks to syntax don't change that the syntactic forms precede type-driven attempts to limit their possible interpretations. We first have each syntactic family (Algol, Forth, Lisp, Smalltalk) and then we have attempts to add type systems. This dance has gone on since the lambda calculus, where the untyped flavor preceded the simply-typed.
<dminuoso>
Non-sequitur on your comparison to "untyped lambda calculus preceeding simply-typed calculus"...
growpotkin has joined #nixos
<simpson>
I'm merely saying that, when you asked earlier whether type systems have successfully been bolted on, I'd suggest that *every* type system has been bolted on, and so you're just asking about whether any type systems have ever succeeded, period.
KeiraT has quit [Remote host closed the connection]
Pidgeotto has quit [Quit: ZNC: the superior metal to CBLT]
<bahamas>
still, there's a difference between languages designed with the idea that they will have a type checker and languages that weren't designed with that idea in mind. I think this is what the others are refering to
<bahamas>
there's a difference between languages where the semantics and the type checker evolved side-by-side and languages that had a type-checker added 20 years after they were created
<betawaffle>
infinisil: hey, so sort of back to questions about our development environment... another one of the reasons we were using a container is our stuff is very messy, and makes a lot of assumptions
<betawaffle>
is there something like nix shell, but ... even more isolated?
Neo-- has joined #nixos
<balsoft>
betawaffle: nix-shell --pure ?
<betawaffle>
that doesn't prevent things in the shell from f*cking up the host
<balsoft>
Only a full VM can prevent things from messing up the host, and even it doesn't provide a 100% guarantee
<betawaffle>
well, a container was _enough_ for us
<betawaffle>
it's like we want the isolation of a container, without any of the normal docker building/images/etc
<lucus16>
You can generate docker images using Nix
<lucus16>
see dockerTools
Pidgeotto has joined #nixos
<bahamas>
betawaffle: look at chroot
ckauhaus has quit [Quit: WeeChat 2.7.1]
cosimone has joined #nixos
<betawaffle>
i feel like using a chroot might be good enough. that requires root, correct?
asymptotically has joined #nixos
<betawaffle>
is there a nixpkgs thing to help build a chroot?
<betawaffle>
niso: we can only use plain nix. we're not ready to dictate the host linux distro
Doraemon has quit [Quit: Leaving]
<niso>
betawaffle: in this case: systemd-nspawn?
NeoCron has joined #nixos
<betawaffle>
i think all our host OSes have systemd
<betawaffle>
but i'm mainly asking about "building" the correct directory structure for the chroot, such that it'll allow us to have a bunch of things bind-mounted in
<asbachb>
Hi. Is someone using ssh-agent? Do I need to add the key manually?
asymptotically has quit [Remote host closed the connection]
proofofkeags has joined #nixos
tno has quit [Quit: tno]
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « gpsd: clarify license »: https://git.io/JfKqv
agschaid has joined #nixos
<agschaid>
hi huys. Sorry to pest you twice a day ;)
<agschaid>
return too early
virus_dave_ has joined #nixos
virus_dave has quit [Ping timeout: 272 seconds]
virus_dave_ is now known as virus_dave
<agschaid>
I need vim with python3 support. Actually no problem by its own. But I do use home-manager. And as soon as I have some vim configuration there for my user it obviously uses the default package without python3 again . . . I had my vim+python3 setup with a simple override. Now I resolved to an overlay believing that this should fix it systemwide. But
<agschaid>
still I have a different vim as soon as I start configuring it in homemanager. Is this a bug or am I "holding it wrong"?
LevelChart8 has quit [Quit: LevelChart8]
asymptotically has joined #nixos
<c00w>
marsam: I'll tag you on GitHub when I expand more, but if a dependency gets a new version, the output will change if it wasn't specified.
cfricke has quit [Quit: WeeChat 2.8]
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
fendor_ has joined #nixos
hmpffff has joined #nixos
LevelChart8 has joined #nixos
<{^_^}>
[nixpkgs] @magnetophon opened pull request #89175 → ardour: add ardour 6 and make it the default → https://git.io/JfKqX
fendor has quit [Ping timeout: 256 seconds]
i077 has joined #nixos
proofofkeags has quit [Ping timeout: 258 seconds]
cinimod``` has joined #nixos
pamplemousse has joined #nixos
is_null has quit [Ping timeout: 246 seconds]
cinimod``` has quit [Client Quit]
<{^_^}>
[nixpkgs] @SuperBo opened pull request #89176 → ibus-bamboo: init at 0.6.5 → https://git.io/JfKqd
<i077>
how can i spawn a nix shell with an unfree package if im using nixFlakes?
cinimod has joined #nixos
LevelChart8 has quit [Client Quit]
noudle has quit []
bukkitgerman8608 has quit [Ping timeout: 260 seconds]
<cinimod>
But when I try nix-shell, I can't see the environment variables such as $CUDA_PATH or the packages I have listed as buildInputs
<cinimod>
I am guessing my shell.nix is embarassingly wrong
waleee-cl has joined #nixos
<i077>
don't you just want a mkShell call in your shell.nix, and put the derivation in buildInputs?
<typetetris>
Can I use the `nix-shell -E 'expr'` in a "nix-shell" skript? (Ones with `#! /usr/bin/env nix-shell`)?
<i077>
cinimod: mkShell should expose the environment variables
hmpffff has quit [Quit: nchrrrr…]
<typetetris>
seems like it didn't like the `'` changing that to `"` did it ...
lucus16 has quit [Quit: lucus16]
Neo-- has quit [Ping timeout: 246 seconds]
<i077>
okay, looks like passing `--option pure-eval false` to nix shell worked, but i still need to get rid of the cached failure
bukkitgerman8608 has joined #nixos
OmnipotentEntity has joined #nixos
ddellacosta has joined #nixos
magnetophon has quit [Ping timeout: 256 seconds]
<OmnipotentEntity>
How do I turn a nix array into a bash list within the context of nixpkgs? (For instance, when doing variable replacement in a shell hook.) Googling is turning up multiline snippets of code, and I'm thinking that there's probably an easier way, because I can't be the first person who wants to do this.
<wadkar>
Hey - just a feedback as a n00b to nix; the nix pills articles are great intro and people should start from there instead of /nix/manual
selfsymmetric-mu has joined #nixos
i077 has quit [Quit: WeeChat 2.8]
tno has joined #nixos
DanP[m] has joined #nixos
i077 has joined #nixos
magnetophon has joined #nixos
<clever>
omnipotententity: if the string wont contain spaces, you can just do `export FOO=${toString foo}`
<i077>
rebooting to get rid of the cached failure didnt work lol
<selfsymmetric-mu>
Linux LTS sure does update point releases fairly often. Which means that NixOS rebuilds my kernel fairly often. Which means that every few days/weeks (I have no idea because it's impossible to find a point-release history), NixOS rebuilds the world which takes half an hour or so.
agschaid has quit [Ping timeout: 245 seconds]
<selfsymmetric-mu>
Maybe I should try 4.14…
<asbachb>
Is there an libreoffice version which does not require to build from source...
<OmnipotentEntity>
clever, in my particular use case the list is a list of strings, the individual strings don't have spaces, but will the toString output have spaces?
<clever>
> "${toString [ "1" "2" "3" ]}"
<{^_^}>
"1 2 3"
<clever>
omnipotententity: it will use spaces to seperate each element
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
<{^_^}>
[nixpkgs] @foxit64 opened pull request #89177 → gopacked - init at 0.4.1 → https://git.io/JfKm5
<cinimod>
i077: what's the syntax for this? `nixpkgs.mkShell { buildInputs = [ nixpkgs.callPackage ./default.nix { pkgs = nixpkgs; } ];`?
<clever>
cinimod: use () around the callPackage
<clever>
cinimod: that is a list with 3 elements, a function, path, and set
<OmnipotentEntity>
clever, so in that case I can do `export FOO=(${toString foo})` and it will work as expected?
<clever>
omnipotententity: probably
<OmnipotentEntity>
excellent thanks!
<OmnipotentEntity>
clever++
<{^_^}>
clever's karma got increased to 450
selfsymmetric-mu has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh pushed 80 commits to staging-next: https://git.io/JfKmp
knupfer1 is now known as knupfer
<cinimod>
Hmmm I still can't see the environment variables being set
<i077>
cinimod: try doing `nix dev-shell` on the derivation?
<bqv>
clever: oh ffs i've been using lib.concatStringsSep
<i077>
actually nvm, that probably wont do it
<clever>
cinimod: and what do you then want to do with that path?
ArdaXi has quit [Quit: WeeChat 2.4]
<clever>
bqv: also, you dont even need toString in some cases
orivej has quit [Ping timeout: 246 seconds]
<i077>
cinimod: so you want to be able to see variables you set in the installPhase, it looks like
<clever>
bqv: stdenv.mkDerivation { foo = [ "1" "2" "3" ]; } will toString for you
<bqv>
hm
LevelChart8 has joined #nixos
<cinimod>
clever: i077: I want to have a shell in which I can run Julia and the packages listed are available
<cinimod>
I can run /nix/store/8kmk7k7p6chcbf41z6lpjy2g70nfm4rh-julia-env/bin/julia
<clever>
cinimod: that should also be in $PATH, so you can just `julia`
<cinimod>
But I hoped nix-shell would create a shell in which julia mapped to this
<i077>
try `echo $PATH` to see what's in your path
orivej has joined #nixos
<i077>
you wont be able to query $CUDA_PATH directly because you're not exposing it in the shell, it's only in the derivation's installPhase and the wrapper you made
<i077>
but the julia wrapper should have it
<cinimod>
You are right the wrapper does have it
<i077>
and the /bin that the wrapper is in should have made it to your $PATH
lsix has quit [Ping timeout: 246 seconds]
<cinimod>
Hmm all seems to be working now in the sense that I can see e.g. julia> ENV["CUDA_PATH"]
<DanP[m]>
hello, I'd like to figure out how to add a certificate to my jdk keystore, just for one project
<i077>
cinimod: are you talking about Julia packages?
<DanP[m]>
looking through the package definition, I see that there is a JAVAX_NET_SSL_TRUSTSTORE environment variable that I can set to point to my truststore
<DanP[m]>
hold on, I'm going to try copying the whole store to my project directory
<Mic92>
jtojnar: it's per-user profiles defined by nixos.
<Mic92>
so you can use configuration.nix to install programs for a particular user.
blibberblob has quit [Quit: WeeChat 2.8]
<Mic92>
adisbladis: You could re-write it so it can spoon-feed our new buildGoModule stuff. All we need are symlinks from the nix store to ./vendor in the source directory.
plutes has joined #nixos
<Mic92>
Something on those lines was my plan. But I am not sure, when I get to it.
plutes has quit [Max SendQ exceeded]
plutes has joined #nixos
user_0x58 has quit [Remote host closed the connection]
user_0x58 has joined #nixos
<jtojnar>
oh, Mic92++
<{^_^}>
Mic92's karma got increased to 0b11001
agsdheidjd has quit [Ping timeout: 246 seconds]
cinimod has quit [Ping timeout: 260 seconds]
icey_ has joined #nixos
icey__ has joined #nixos
iceypoi has quit [Ping timeout: 260 seconds]
icey_ has quit [Ping timeout: 256 seconds]
agsdheidjd has joined #nixos
<aswanson>
I have a bash script with a dependency that I would like to use as a quasi-application from my nix store. Is there a builder pattern for mkDerivation that essentially just copies a bash script into the nix store from an arbitrary location?
<gchristensen>
no need: yourProgram = ./your.script.sh
noudle has joined #nixos
linkrage has joined #nixos
<aswanson>
neat, I'll give that a shot
gustavderdrache has quit [Quit: Leaving.]
<dsx>
>If subPackages is not specified, all child packages will be built.
<dsx>
Mic92: so go build should generally just work?
<dsx>
Without subPackages, will buildGoModule allow for go to download stuff from internet or I still have to specify all dependencies?
<Mic92>
dsx: it will allow downloading in both cases. That's what the additional checksum is for.
<dsx>
modSha256?
<dsx>
Ah, ok, now subPackages make sense
<aswanson>
gchristensen: I guess I need to ask the followup - where in my nixos configuration does that go? should I be adding that as an override to pkgs or am I overthinking this?
<Mic92>
dsx: in 20.03 it's modSha256. We switched to a new checksum in master called vendorSha256, which stores modules differently. modSha256 will be removed after the next release.
<Mic92>
For the time being both are valid in nixpkgs master, but we throw a warning
<pbb>
Okay nice, you have a multi-user installation then
<pbb>
In this case the full answer is: Each user has an own profile (collection of packages that is exposed in the users PATH), and you can specify the profile you want to add a package to when running "nix-env"
<tarzeau>
i can manage parallel versions of software installed, all built from source
<tarzeau>
i want to nix install packages for our users, the users just run the software i install
magnetophon has quit [Ping timeout: 258 seconds]
<tarzeau>
gobolinux also has something like that, with a bit a different file structure, but nix catched my attention
<tarzeau>
(spack is also similar maybe)
<tarzeau>
i'm familiar with freebsd ports also
Neo-- has quit [Ping timeout: 256 seconds]
<pbb>
Okay, I'm using NixOS and some things are quite different over here compared to Debian+Nix, but I think you want to set up a new profile with all the software that should be installed for all users. This profile can then be added to all users' profiles.
<tarzeau>
i used to create some tools to make multiple packaging things from one, like debian2rpm debian2solarispkg debian2macbrew... maybe something like debian2nix is possible?
<tarzeau>
coreboot-utils is outdated in nixpkgs-unstable, ahhh i saw it on github somewhere, i'll find
<pbb>
tarzeau: I can update it, I'm actually the maintainer of coreboot-utils
<tarzeau>
looks not too hard, similar to brew/freebsd ports
<tarzeau>
pbb: you also do flashrom by any chance?
<pbb>
is that outdated as well?
Neo-- has joined #nixos
<tarzeau>
i didn't search, but i'm also interested in typography, packaging a few fonts built from source for debian (fontmake, fontforge, birdfont, etc)
<tarzeau>
no that's up to date, but there's a problem if you use meson to build it
alp has quit [Ping timeout: 272 seconds]
<tarzeau>
and i let myself inspire from other packagers (i mainly use repology.org for that) of other distributions
<adisbladis>
> builtins.map (m: m.github or m.name) flashrom.meta.maintainers
<cole-h>
> :p builtins.map (m: m.github or m.name) flashrom.meta.maintainers # indeed it can
<{^_^}>
[ "Edward O'Callaghan" "fpletz" ]
<pbb>
nice
<pbb>
tarzeau: we do use meson to build flashrom, what's the problem?
<pbb>
::q
<pbb>
whoops
<tarzeau>
what i don't get is if you use gcc or clang, for gnustep there's that newer obj-c 2 runtime that needs be built with clang, but also required libdispatch which i couldn't find
<tarzeau>
pbb: i already know how to fix it, but just didn't do so yet, because well if a package has one maintainer you just do it, if it's maintained by a team, you don't want to waste resources and need to talk to others first
magnetophon has joined #nixos
<pbb>
hmm I would just look if there's already an open PR or issue assigned to someone
<tarzeau>
(it'd be a double build, meson for libflashrom, and make for flashrom, wasting some little cpu but can also wait for upstream to get it fixed)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « all-cabal-hashes: update to Hackage at 2020-05-28T23:38:21Z »: https://git.io/JfKcj
KindTwo has joined #nixos
KindOne has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixos-weekly] @Flakebi opened pull request #121 → Correct now-dead link → https://git.io/JfKCk
<{^_^}>
[nixpkgs] @FRidh pushed to staging « python.pkgs.cython: use pkg-config instead of python.pkgs.pkgconfig »: https://git.io/JfKCI
cantstanya has quit [Ping timeout: 240 seconds]
cantstanya has joined #nixos
KindTwo is now known as KindOne
<LevelChart8>
I am getting a computer with Windows installed that I will partition to create a NixOS installation. Later, I will add a second harddrive. How would I associate that second HD with NixOS?
<MichaelRaskin>
You want migration of store, or just ad-hoc use for various large files?
<LevelChart8>
I dont understand the distinction
<LevelChart8>
I will use NixOS as my primary OS
sheeldotme has joined #nixos
<LevelChart8>
so i dont want the additional HD space to go to Windows
iqubic` has joined #nixos
<MichaelRaskin>
Well, all OSes will see the HDD
<LevelChart8>
ok so it’s a non-issue
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-hackage2nix.yaml: update list of broken builds »: https://git.io/JfKCR
<MichaelRaskin>
If you format it from NixOS, it might be that Windows will be unable to read the partitions there
iqubic has quit [Ping timeout: 260 seconds]
<LevelChart8>
Ok, that’s fine
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfKC0
iqubic` has quit [Remote host closed the connection]
<MichaelRaskin>
Windows doesn't have ext4 or ZFS drivers out of the box
<MichaelRaskin>
If you format it as FAT32, both OS will have full access
<sheeldotme>
I just installed a fresh copy of nixos tracking unstable, and created a new user. I was able to install home manager, and lorri seemingly successfully. When I went to start the lorri service I noticed "systemctl --user status" gives me Failed to connect to bus: Permission denied
<LevelChart8>
On another note, do people have issues programming in JavaScript on NixOS?
<LevelChart8>
I am reading a lot of weird troubleshooting posts about npm workarounds
<euank>
;q
<euank>
Oops, wrong terminal
<sheeldotme>
Does anyone know why this may be? It seems like the correct env variables haven't been set.
<MichaelRaskin>
LevelChart8: yes, some widespread assumptions do not hold anymore. So some workflows are different
<LevelChart8>
ok
<LevelChart8>
perhaps I am better off doing JS development on the windows partition
<MichaelRaskin>
Well, you can very easily have a completely standard Debian or Ubuntu in a chroot.
<LevelChart8>
What does that mean
<MichaelRaskin>
Hmm, how much GNU/Linux experience do you have?
iqubic has joined #nixos
<LevelChart8>
Not much other than when I manage Ubuntu ec2s from the CLI in AWS
<sheeldotme>
Hmm, it seems nix-shell -p nix-info --run "nix-info -m" also gives me Permission denied
justanotheruser has quit [Quit: WeeChat 2.7.1]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « git-annex: update sha256 hash for the new 8.20200522 version »: https://git.io/JfKCy
<MichaelRaskin>
LevelChart8: You might have a hard time with NixOS, because a lot of NixOS material presupposes familiarity with the «normal» way to do various things in other distributions (and Ubuntu or Debian learning material is typically not applicable as-is because of NixOS doing some things differently)
<sheeldotme>
Is it normal that in a multiuser setup I see multi-user?: `yes` if run by root otherwise, `no`?
<LevelChart8>
I have used NixOS previously, but never with a dual-boot and never while doing Javascript work
<MichaelRaskin>
sheeldotme: I don't think so (it would make some sense the other way round, I guess, but not like that)
dermetfan has quit [Ping timeout: 260 seconds]
<LevelChart8>
I feel reasonably comfortable with NixOS itself
dermetfan has joined #nixos
<MichaelRaskin>
LevelChart8: it also depends on the kind of JS work you plan. A lot of things are basically «read node2nix README… spend five or fifteen minutes making sure you have correct options… nix-shell and work normally»
<sheeldotme>
Hmm, I'm wondering if I botched some config somewhere then. It all feels fairly straight forward though.
<LevelChart8>
I see
<LevelChart8>
Mostly React Native I expect
<MichaelRaskin>
But some things are more complicated
<LevelChart8>
But I can do that work on the Windows partition if it seems complicated
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « git-annex: don't update to version 8.20200522 yet to avoid test suite failures »: https://git.io/JfKWa
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfKWr
<{^_^}>
[nixpkgs] @FRidh pushed 116 commits to staging-next: https://git.io/JfKW6
<euank>
I want to double check my understanding of something. I've got a flake.nix in a git repo, but I want to have `nix build` etc ignore that and treat it just as a path type flake.
<euank>
I guess my question is: is there any way for a flake to define or override its own input, or does the `nix` tool figure out if it's a path or not on its own and the `flake.nix` itself can't change anything there
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « idris: drop obsolete overrides for the new 1.3.3 version »: https://git.io/JfKlk
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/JfKlL
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JfK8s
esclear has quit [Quit: WeeChat 2.1]
agschaid has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « configuration-hackage2nix.yaml: update list of broken builds »: https://git.io/JfK8i
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfK8N
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage2nix.yaml: update list of broken builds »: https://git.io/JfK4e
T0pH4t has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfK4f
quinn has joined #nixos
<cole-h>
How would I overlay a package to be built with `nix-build`, directly from the commandline? e.g. I want something like `--arg overlays "pkg = pkgs.override..."` or similar.
<T0pH4t>
hi all, could somebody maybe enlighten me as to why aws-lambda-cpp is not a valid package in my small test nix file https://pastebin.com/dqgF6q4M
<T0pH4t>
keep getting error cannot coerce a set to a string
<T0pH4t>
while evaluating the attribute 'aws-lambda-cpp' of the derivation 'validator-1'
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
__monty__ has quit [Ping timeout: 240 seconds]
__monty__ has joined #nixos
<T0pH4t>
ah, nvm got it working 1 too many layers of functions. Kind of curious as to how that evaluates tho. Eg what mechanics are used to eval function mkDerivation.
alp has quit [Read error: Connection reset by peer]
alp has joined #nixos
gilligan has quit [Quit: WeeChat 2.7.1]
lopsided98 has quit [Remote host closed the connection]
lopsided98 has joined #nixos
<clever>
cole-h: --arg needs a valid expr, in this case, a list of 2 layers of functions returning a set
<bqv>
ldlework: I'm keeping an eye from afar, fyi. Good work :)
<ldlework>
bqv: thanks. i hope we can find an excellent api
lukegb is now known as nijzat
<cole-h>
clever: Oh, that would work? Great.
<euank>
cole-h: nix-build -E 'with import <nixpkgs> { overlays = ........; }; callPackage ./package {}' might work for that? Untested
<clever>
euank: yeah, that would also work
<euank>
arg seems cleaner though, clever++
<{^_^}>
clever's karma got decreased to 449
symphorien has quit [Quit: WeeChat 2.8]
<{^_^}>
Wait no, it got *increased* to 451
mudtose has joined #nixos
symphorien has joined #nixos
<mudtose>
I was going to post this on reddit but submissions were restricted:
<mudtose>
I have a Windows 10 Fedora dual boot. Want to switch Fedora to NixOS without losing Windows boot files. My boot partition is ext4 and Nix requires Fat32 so I can’t copy the files over even if I knew which files specifically to keep. I haven’t seen anywhere online how to deal with this. I was using GParted and deleted my fedora install.
fendor has quit [Read error: Connection reset by peer]
<iqubic>
Setting up JACK with pulseaudio, on NIXOS is confusing me. I'm looking at the wiki and getting lost.
<iqubic>
I would use this set of steps, but I don't know which set of steps to follow: https://nixos.wiki/wiki/JACK
zupo has joined #nixos
<iqubic>
Do I use the JACK module, or do I start by loading the sequencer modules and stuff?
orivej has quit [Ping timeout: 246 seconds]
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
sphalerite has quit [Quit: WeeChat 2.6]
MmeQuignon has quit [Ping timeout: 246 seconds]
proofofkeags has quit [Ping timeout: 246 seconds]
<samueldr>
jtojnar: it is, the ESP should be FAT according to the spec, but some UEFI implementations have more than one FS they can recognize and some of that subset may honour a non-FAT ESP like I believe HFS on mac hardware (unverified)
<iqubic>
Well, my question was more like: "Don't pavucontrol and pa_applet" do the same things.
<iqubic>
??
<ldlework>
pavucontrol is like a standalone application
<ldlework>
pa_applet is an applet
knupfer has quit [Ping timeout: 260 seconds]
<iqubic>
I'm not sure I see the difference.
<ldlework>
between a standalone application and an applet?
<iqubic>
Also, sorry for my abysmal use of punctuation.
<iqubic>
ldlework: Yeah.
<ldlework>
...
<ldlework>
ok
<abathur>
ldlework: your setup looks plausible enough that I might be willing to risk a miserable evening to try it
maddo2 has quit [Quit: See ya]
<abathur>
ldlework: is it like a DE applet?
<ldlework>
yeah
<ldlework>
in my main window manager bar
<iqubic>
Oh, so it just sits in your system-tray.
<abathur>
iqubic: so, probably just a little desktop utility for configuring it; hopefully not essential to making it work
stevenxl has quit [Quit: Connection closed for inactivity]
<iqubic>
abathur: Doesn't seem like it's essential
<simpson>
Makes me feel guilty for not sharing my JACK setup. It's working and on NixOS but not separable from other stuff. The wiki looks like it's roughly on the right track for low-latency configuration; the security numbers are silly but they've been silly for decades.
<ldlework>
lol it is just a volume control :P
orivej has joined #nixos
<iqubic>
The wiki also claims that it's out of date.
<abathur>
simpson: this is one of those things; I'm still traumatized from trying to get my audio config working
<simpson>
*A* volume control is essential. pavucontrol's nice because it makes hotplugging easy. I wish that there were a better declarative way to prewire PA diagrams somehow. (Not like PA even has the concept of wiring diagrams internalized~)
<ldlework>
I mostly followed the wiki
<ldlework>
With some help in here
<abathur>
I tried to fix my front-audio ports not working one time like a year ago and got so frustrated I just went back to plain alsa and gave up on bells and whistles like all of my ports working :D
<ldlework>
pavucontrol is a whole window, but yes i include it because it does things that a applet volume control doesn't
<ldlework>
such a bizarre conversation
<ldlework>
With the setup above a jack sink for pulseaudio is created
<iqubic>
simpson: The reason I'm switching to Jack is to have some nice wiring/patchbay stuff.
<ldlework>
so all pa apps that don't know jack (lol), just end up working
<ldlework>
For everything that talks alsa or jack, you can use jackctrl
<ldlework>
it's based off the wiki, but not the realtime stuff
<simpson>
iqubic: I don't have my patchbay declared. If I boot things up in the wrong order, then I have to go pavucontrol and fix things around.
<iqubic>
What does that mean?
<iqubic>
Can't you use qjackctl as a patchbay?
<simpson>
Like, I have an external hardware module that connects over USB. Whether it is on or not will affect what PA decides to wire up.
<iqubic>
Weird. That's so freaking bizarre.
<simpson>
Well, in this channel, let's say that declarative configuration is in Nix expressions.
<iqubic>
Alright.
proofofkeags has joined #nixos
asbachb has quit [Remote host closed the connection]
<simpson>
Nah, that's life. That's how basically all peripherals work. Most configuration changes don't commute. How is PA supposed to know that I'm recording 4 channels or 2 channels? I have to tell it.
orivej has quit [Ping timeout: 264 seconds]
<iqubic>
And how do you do that?
proofofkeags has quit [Remote host closed the connection]
<simpson>
Clicking around a bunch in pavucontrol every time I want to record stuff.
proofofkeags has joined #nixos
<abathur>
iqubic do you have a sense of how to adapt what ldlework shared into your own .nix config??
<ldlework>
"copy paste lines 8 - 43 into configuration.nix or equivalent"
<iqubic>
Yes. I can do that real easily.
<iqubic>
ldlework: I was going to something a bit more complex, but yeah that basically.