contrapumpkin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ertes has quit [Ping timeout: 248 seconds]
contrapumpkin has joined #nixos
acarrico has joined #nixos
freeman42x]NixOS has joined #nixos
TonyTheLion has quit [Ping timeout: 260 seconds]
jmeredith has joined #nixos
jsgrant_ has joined #nixos
oida has quit [Ping timeout: 265 seconds]
kelleyNif has quit [Quit: Leaving.]
<jsgrant_>
Okay, determined to get NixOS on one of my Rpi3s now that I'm pretty happy with my secondary-laptop config; Will I likely have to compile most of everything or is there a bunch of prebuilt aarch64 stuff I'm missing?
<jsgrant_>
Considering waiting another whole day-or-three until this heatsink fan comes.
kelleyNif has joined #nixos
<jsgrant_>
Oh! Sorry, just found "Thanks to @grahamc and Packet the official NixOS Hydra builds a full set of binaries (available on https://cache.nixos.org) for the AArch64 architecture on the nixpkgs-unstable channel. "
<jsgrant_>
So I'm guessing, yeah. :^)
ertes has joined #nixos
<samueldr>
jsgrant_: questions about rpi3 + aarch64, I may be able to answer or at least guide you
<samueldr>
and yeah, a good part of nixpkgs is building successfully for aarch64
<ivanivan>
clever: thanks! it looks like there haven't been any upgrades. Just a single log entry saying "Logs begin at ... 2018-01-15"
<ivanivan>
maybe the channel hasn't had any upgrades recently
<clever>
ivanivan: what settings did you set on the service?
<samueldr>
jsgrant_: for graphical use, the option to add to boot.txt would be avoid_warnings=1 so the raspberry pi doesn't cause issues for the KMS drivers
kelleyNif has quit [Client Quit]
<samueldr>
(I added a note about that in the troubleshooting section of the raspberry pi page)
<Profpatsch>
Wrote test, tested test in PR, merged PR, went over to other PR changing tested code, tested PR with new test, merged.
andersk has quit [Remote host closed the connection]
andersk has joined #nixos
<Profpatsch>
I like that workflow!
<adisbladis>
Profpatsch: Almost like TDD :3
<Profpatsch>
As long as I don’t have to manually test stuff on my machine, I’m happy to write test code. :P
Rusty1_ has quit [Quit: Konversation terminated!]
<Profpatsch>
Sweet taste of automation.
<adisbladis>
Profpatsch: My darwin fixes are usually like that. I let ofborg actually build things on darwin machines :)
<adisbladis>
Ofborg <3
mrkgnao has joined #nixos
notdaniel has joined #nixos
<Profpatsch>
Ofborg <3
slack1256 has joined #nixos
Ralith_ has quit [Ping timeout: 256 seconds]
pie__ has joined #nixos
slack1256 has quit [Remote host closed the connection]
Guanin has quit [Ping timeout: 248 seconds]
nflores has joined #nixos
notdaniel has quit [Quit: Leaving]
<nflores>
how do I append to the NIX_PATH in a nix file?
<adisbladis>
nflores: You mean you want to do it in your system configuration?
<nflores>
yeah
<adisbladis>
nix.nixPath = [ "nixos-config=/etc/nixos/configuration.nix" ] for example
<nflores>
I think that clears my existing NIX_PATH and sets it to the the value in between [ ]?
Guanin has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jonafato opened pull request #34953: gnomeExtensions.appindicator: init at v22 (master...gnome-shell-extension-appindicator-v22) https://git.io/vAsWJ
NixOS_GitHub has left #nixos [#nixos]
iyzsong has joined #nixos
<sphalerite_>
nflores: you can confirm by putting that and then running nixos-option nix.nixPath
Myrl-sak1 has joined #nixos
<sphalerite_>
nflores: if you add "options" to your list of params at the top of your file I think you can do something like nix.nixPath = options.nix.nixPath.default ++ ["foo"];
<nflores>
I've defined an sshConfigFile = [ (let sshkey= ...; sshConfigFIle= pkgs.writeText "ssh_config" ''...'';) in "ssh-config-file=${sshConfigFile}" ]; so I need to append ssh-config-file="..." to my NIX_PATH, currently my NIX_PATH ends up containing just ssh-config-file=...
kwork has quit [Changing host]
kwork has joined #nixos
pie__ has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] thoughtpolice pushed 3 new commits to master: https://git.io/vAsWX
<srhb>
Hm, if you're not using it I'm not sure why you're experiencing a problem. Perhaps you can share your overlays.
<dhess>
pikajude: I do this routinely and I always use haskellPackages.extend
<pikajude>
oh
<pikajude>
okay
<pikajude>
i was using override
<pikajude>
didn't know extend was a thing
<pikajude>
that seems like the better option
MercurialAlchemi has joined #nixos
<srhb>
Except any override will nuke _all_ the extends currently.
<srhb>
It's a messy situation.
<srhb>
See elvishjerricco's suggestion in the bottom of that issue.
<pikajude>
right
<pikajude>
well i'm not going to use override then
<srhb>
That's also a sort of solution :-)
vdemeester_ has quit [Remote host closed the connection]
<pikajude>
wow
<pikajude>
how easier
<pikajude>
that is
<pikajude>
how lovely
<srhb>
It is...
orivej has quit [Ping timeout: 255 seconds]
<elvishjerricco>
Really gotta fix the incompatibility with override though :/
<dhess>
elvishjerricco: does that mean that if I import any overlay that happens to use override, it will break all of my overlays that use extend?
<srhb>
Yes.
<elvishjerricco>
Well,
<elvishjerricco>
Depending on the order the overlays occur in
<elvishjerricco>
But yea that's a likely possibility
<dhess>
yikes, I did not know about that.
<elvishjerricco>
Anyone using override for haskellPackages needs to make sure to account for the old value
<elvishjerricco>
Not hard, just often overlooked
<srhb>
It would be grand to have a fix before the next release.. Not sure anyone has agreed on what to do though
<srhb>
Replacing callPackage seems painful.
<fragamus>
hey what's the preferred way to spin up nixos on ec2 hvm
<elvishjerricco>
I think we should probably just conjure a special thing for haskellPackages
<elvishjerricco>
It's gross but I've already tried to come up with "proper" solutions a couple of times, and no one seems happy with any solution
<srhb>
Yeah, I saw..
nflores has quit [Ping timeout: 260 seconds]
<dhess>
elvishjerricco: so for now you would recommend using that little hack at the end of that issue in our haskellPackage overlays, rather than extend?
<elvishjerricco>
dhess: It's tricky. Even that little hack won't work on a haskellPackages that was previously `extend`ed, since `extend` will remove the override function.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nlewo pushed 2 new commits to master: https://git.io/vAsBp
<NixOS_GitHub>
nixpkgs/master c385a1b lewo: Merge pull request #33430 from vdemeester/init-gopkgs...
<NixOS_GitHub>
nixpkgs/master 8cf5684 Vincent Demeester: gopkgs: init at 2017-12-29...
NixOS_GitHub has left #nixos [#nixos]
<dhess>
elvishjerricco: ok, thanks. extend is working for me now so I'll just keep using it
<Orbstheorem[m]>
Hello, I'm thinking about storinga a one time pad of my encryption keys under my rootfs luks in the unused GPT partition table space. The first two bits should be set to 1 [partitioning tools, please don't touch this partition, EFI firmware please skip this entry]. This pad would use the first bits under my luks root partition to get the key for the swap luks partition (plain mode). Do you think this is a good/bad idea?
<spacefrogg>
Orbstheorem[m]: You want to store a key in clear text on your hard drive?
<Orbstheorem[m]>
A one time pad, yes
<Orbstheorem[m]>
I still need to unlock my root Luks to get the actual key
<spacefrogg>
And you can use the one-time pad key for unlocking?
alex`` has joined #nixos
<Orbstheorem[m]>
Ie. I'd have to unlock my root Luks, read the first 512 bits, xor them with 512 bits stored in the partition table and use the result as Luks plain key
<spacefrogg>
What is the gain in doing that?
Tucky has joined #nixos
<spacefrogg>
Just use the 512 bits from the inside and be done with it.
<ij>
Do bug fixes ever get picked from master onto, say, 17.09?
<spacefrogg>
What do you try to gain by doing this?
<srhb>
ij: Yes, all the time.
<Orbstheorem[m]>
I can't because my swap encryption key changes after every boot
<srhb>
ij: That's more or less the only way that it updates.
<spacefrogg>
Orbstheorem[m]: Just make a new swap partition on every boot.
<spacefrogg>
Orbstheorem[m]: Or do you care for its content?
<Orbstheorem[m]>
And I can't control the first bits in the Luks container, they belong to my file system
fractal- has joined #nixos
<Orbstheorem[m]>
spacefrogg: yes, I'd like to be able to hibernate and resume
<Orbstheorem[m]>
And I really don't want to use lvm
<spacefrogg>
Orbstheorem[m]: When does the new swap partiition key get generated
<spacefrogg>
?
steshaw has joined #nixos
TheAppleMan has quit [Quit: No Ping reply in 120 seconds.]
<Orbstheorem[m]>
Right now, at boot time, I cryptsetup plain from /dev/urandom 512 bits
<ij>
Could I use overlays to have something from the unstable channel?
vdemeester_ has joined #nixos
<Orbstheorem[m]>
spacefrogg But if I use the abode proposed scheme, I could write during system shutdown random data if I do not wish to resume afterwards
<ij>
I'd have to have unstable available system-wide, so I just add it to the system profile?
<spacefrogg>
Orbstheorem[m]: Just store the full key inside root's luks volume.
<spacefrogg>
Orbstheorem[m]: If you want to destroy swap on shutdown, just make a new key for swap's luks partition and throw away the old one.
<fragamus>
hey what's the preferred way to spin up nixos on ec2 hvm
<ij>
fragamus, nixos.org has the nixos ami ids posted, I believe.
<Orbstheorem[m]>
spacefrogg: well the problem is that I use Btrfs under my root partition, so I don't have a way to explicitly write arbitrary bytes inside luks
Ubercow has quit [Quit: Ubercow]
blahdodo has quit [Quit: Bye bye]
<fragamus>
yeah but I want to know the right way to configure like userdata so that it loads the set of packages for haskell stack
<spacefrogg>
Orbstheorem[m]: Why are you so fixed on solving this outside normal tools. Make a file on btrfs and store the key in it. Let your system grab it on the next boot after unlocking root.
zzamboni has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<schoppenhauer>
hi. I am trying to configure tinc on nixos. my configuration *should* be correct now (looking at the configuration files generated), but I get the error messages "Possible intruder ... (... port 655): wrong keylength" "Error while processing METAKEY". I have checked the keys already. I wonder what part of my configuration could be erroneous. Does anyone know? (Already asked on #tinc, too)
blahdodo has joined #nixos
<fragamus>
ij thanks man
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nixos
vaninwagen has joined #nixos
<Orbstheorem[m]>
spacefrogg: I don't think I can mount the Btrfs volume before resuming, it's already mounted in the system I'm about to resume
<spacefrogg>
Orbstheorem[m]: You should be able to mount the root filesystem read-only and just switch over (thus, "forgetting" the mount). But I am not entirely sure about how the resume mechanics work.
<spacefrogg>
Orbstheorem[m]: Does a resume just place you inside an initramfs that has to do the heavy lifting?
<Orbstheorem[m]>
to resume, you have to write de device major,minor into a file under proc of a block device containing a valid hibernation image
<Orbstheorem[m]>
(On initramfs)
asuryawanshi has joined #nixos
<ij>
srhb, I wrote a tiny (already merged) commit surrounding terraform that should make it onto 17.09, I believe. 4e63119c540e@master How could I arrange its merger?
adisbladis has quit [Ping timeout: 256 seconds]
<spacefrogg>
Orbstheorem[m]: Okay then, boot into initrfamfs, decrypt root, mount root, decrypt swap, unmount root, (bonus: lock root again), and fire up resume from the unlocked swap.
asuryawanshi has quit [Ping timeout: 256 seconds]
hotfuzz has joined #nixos
vidbina has quit [Ping timeout: 255 seconds]
vaninwagen has quit [Ping timeout: 265 seconds]
aarvar has quit [Ping timeout: 265 seconds]
nuncanada has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vAsuw
<NixOS_GitHub>
nixpkgs/master 78c71e8 Peter Hoeg: xca: 1.3.2 -> 1.4.0
NixOS_GitHub has left #nixos [#nixos]
nschoe has joined #nixos
test has joined #nixos
test is now known as Guest74911
dan_b has joined #nixos
thc202 has joined #nixos
hamishmack has joined #nixos
lonokhov has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fearlessKim[m]>
where can I find /var/log/messages ?
zzamboni has quit [Ping timeout: 276 seconds]
<adisbladis[m]>
fearlessKim: Use journalctl
<Ke>
or /proc/kmsg, if it needs to be a file
<Ke>
notably it will contain only messages for this boot
<Ke>
there is also dmesg command
zzamboni has joined #nixos
fragamus has joined #nixos
rauno has joined #nixos
<fearlessKim[m]>
Ke: /proc/kmsg is visible only by root while I can access it via journalctl -b, isn't it strange ? My goal is to retrieve the kernel log from my VMs
<Ke>
there is a kernel config option to make /proc/kmsg readable to all
<Ke>
also journalctl does have acl scheme
<Ke>
on many distros users can see their own logs, but not system logs
zzamboni has quit [Remote host closed the connection]
<Ke>
which is kind of missleading, as you might not realize that you are not actually seeing all log entries, just the user entries, which often are not what you want to see
xnaveira[m] has joined #nixos
<Ke>
Hint: You are currently not seeing messages from other users and the system.
<Ke>
Users in groups 'adm', 'systemd-journal' can see all messages.
<Ke>
Pass -q to turn off this notice.
<Ke>
I get that on debian actually
<xnaveira[m]>
hi everyone, very excited to try out nixos in my lenovo x240
<Ke>
stretch
<xnaveira[m]>
first problem though, dropbox is not syncing
<xnaveira[m]>
i'm not getting any messages in journalctl but it did complain that the version is too old
zzamboni has joined #nixos
<fearlessKim[m]>
Ke thanks actually I am root on (test) local nixops VMs so not much of a problem
orbekk has quit [Quit: WeeChat 1.9.1]
<xnaveira[m]>
any word of advice? dropbox is a dealbreaker for me, i have my vi, i3 and other configs in there....
<goibhniu>
hi xnaveira[m]: you could try dropbox from the unstable channel ... I don't know if it's newer though
<xnaveira[m]>
how can i make sure i'm running an up to date version?
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vAs6U
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master dabcccc Peter Hoeg: Merge pull request #34726 from adisbladis/plasma-5_12_0...
Unode has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vAs6n
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 6ec8fe0 Jörg Thalheim: z3: also needs setuptools
zzamboni has quit [Remote host closed the connection]
Unode has quit [Ping timeout: 255 seconds]
<xnaveira[m]>
goibhniu: I'm getting the allowUnfree error even though it worked wen i was installing from stable and i have the nixpkgs.config.allowUnfree = true; in my config ???
<goibhniu>
oh!
<goibhniu>
I guess you need to have unstable.config.allowUnfree = true
<xnaveira[m]>
i created an unstable.nix fie with the example in the faq and imported it in my configuration.nix
<xnaveira[m]>
ahhhh
<xnaveira[m]>
ok
<xnaveira[m]>
mmm, scopes
<xnaveira[m]>
sorry, still wrapping my head around it
<mmercier>
Hi all! I have a question: I'd like to keep my nix-shell in the store even if they are not running, but they are garbage collected. I'd like to put them manualy in the the gcroot to avoid that but I can't find the root derivation. Any idea?
zzamboni has joined #nixos
<symphorien>
I think you have to replace `import <unstable> {}` by `import <unstable> { config = { allowUnfree = true; }; }`
Unode has joined #nixos
pie__ has quit [Ping timeout: 248 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vdemeest_ has joined #nixos
vdemeest_ has quit [Changing host]
vdemeest_ has joined #nixos
<goibhniu>
lemme know if that works xnaveira[m], I'll add it to the wiki
<xnaveira[m]>
sure, just trying different combinations
vdemeest_ has quit [Remote host closed the connection]
vdemeest_ has joined #nixos
<xnaveira[m]>
ok, it swallowed as you say
<xnaveira[m]>
now it is installing a bunch of crap from unstable, including yet anoher firefox it seems :P
<goibhniu>
hrm
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teto opened pull request #34958: [RDY] allow override of Kernel printk (master...kernel_printk) https://git.io/vAsPt
NixOS_GitHub has left #nixos [#nixos]
vdemeest_ has quit [Ping timeout: 256 seconds]
iyzsong has joined #nixos
zzamboni has quit [Ping timeout: 256 seconds]
<xnaveira[m]>
and it works now goibhniu thanks!
akar_ has joined #nixos
<goibhniu>
yay! what worked?
zzamboni has joined #nixos
<xnaveira[m]>
yes, it seems it installs a few extra packages, i guess its because of dependencies
<xnaveira[m]>
but it works now
<goibhniu>
ah
<goibhniu>
symphorien's line, right?
<xnaveira[m]>
yes, thx symphorien btw
<goibhniu>
nice!
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nixos
steshaw has quit [Quit: Connection closed for inactivity]
srcCoon has quit [Quit: leaving]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
mmercier has quit [Ping timeout: 252 seconds]
zzamboni has quit [Ping timeout: 240 seconds]
ma271 has quit [Quit: WeeChat 2.0]
zzamboni has joined #nixos
<genesis>
how to find where come from a function as substituteAllFiles in nix-repl ?
<symphorien>
your best bet is to grep nixpkgs
mmercier has joined #nixos
<genesis>
i did, don't find it definition, you know it's very use...
<LnL>
packages have location metadata, but functions can't
<genesis>
thanks, i think i'll learn from source :)
zzamboni has quit [Remote host closed the connection]
<genesis>
i did with substituteInPlace that is harder to find , interesting.
ottidmes has joined #nixos
bennofs has joined #nixos
zzamboni has joined #nixos
akar_ has quit [Quit: leaving]
zzamboni has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
silver has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] leenaars opened pull request #34960: Update several broken links to package homepages (master...updatelinks) https://git.io/vAsST
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Ping timeout: 240 seconds]
adfaure has joined #nixos
zzamboni has joined #nixos
iyzsong has quit [Ping timeout: 260 seconds]
<sphalerite_>
genesis: substituteInPlace is a shell function which is part of stdenv. Should be in pkgs/stdenv somewhere. A suitable grep pattern here would be substituteInPlace() (assuming old-style regex or fixed-string grep)
amir has quit [Read error: Connection reset by peer]
rauno has joined #nixos
amir has joined #nixos
Guest74911 has quit [Quit: Page closed]
<ij>
How can I create a haskell nix-shell with additional executables avilable. I tried making a derivation with buildInputs = [ … deps … (haskellPackages.callPackage … {}).env ]; but that failed even with no deps present.
vidbina has joined #nixos
vdemeest_ has joined #nixos
vdemeest_ has quit [Client Quit]
Neo-- has quit [Ping timeout: 240 seconds]
freeman42x]NixOS has quit [Ping timeout: 276 seconds]
<gchristensen>
Profpatsch: the log viewer is a few parts, 1) the builder sends each line of output to a rabbitmq Exchange, 2) a program call the log collector listens to every log message and writes it to disk for medium-term storage. 3) the web viewer also looks for log messages coming in live, and fills in the historic lines it missed by loading the log-collector's output, vie
<gchristensen>
the viewer uses STOMP.js and RabbitMQ can talk STOMP too
hyper_ch2 has quit [Quit: Page closed]
civodul has joined #nixos
mmercier has quit [Quit: mmercier]
dan_b has joined #nixos
mmercier has joined #nixos
rauno has joined #nixos
chreekat has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tertleeltret has joined #nixos
roberth has quit [Ping timeout: 248 seconds]
<avn>
gchristensen: btw if volume of logs grows, you can use kafka instead rmq
xcmw has joined #nixos
<gchristensen>
yeah that could work
hyper_ch2 has joined #nixos
<gchristensen>
I hope ofborg grows enough to need that :)
xcmw has quit [Client Quit]
<aminechikhaoui>
Hi, I'm trying to boot from a custom Google Cloud image but not very different from the nixpkgs one, and recently got this after generating an image https://pastebin.com/C8iJFenU
xcmw has joined #nixos
<aminechikhaoui>
I didn't do any big change in my config so I suspect something from nixpkgs is causing this ?
<aminechikhaoui>
also I have no idea what to conclude from that stacktrace :D
<aminechikhaoui>
the diff of nixpkgs between the working revision and this issue shows some gcc7/retpoline patches
<aminechikhaoui>
anyone could decipher what's going on there ?
freeman42x]NixOS has quit [Remote host closed the connection]
freeman42x]NixOS has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
zzamboni has quit [Quit: Leaving.]
<aminechikhaoui>
Dezgeg: hm seems similar yeah but I don't see an update of the kernel pkg in the diff I have so I'm pretty sure I successfully booted with it before
<aminechikhaoui>
like yesterday
asuryawanshi has joined #nixos
<gchristensen>
avn: right now I'm collecting about 2797600 log lines each week, which comes down to about 5 per second hehe
freeman42x]NixOS has quit [Remote host closed the connection]
<Dezgeg>
maybe something changed on the gcp side then?
freeman42x]NixOS has joined #nixos
<gchristensen>
once I hit start heading towards 1500/s, it might make sense to use a different tool
<aminechikhaoui>
Dezgeg: hm could be, I still have the old image, let me quickly test that
<Dezgeg>
I definitely can't see it not being the same issue as that one
<avn>
gchristensen: well, then you have plenty of room ;)
<gchristensen>
:P
<gchristensen>
tbh I thought for sure my calculations of 2.7m/week was wrong, because it felt too high, haha
lebel has quit [Ping timeout: 240 seconds]
roberth has joined #nixos
rauno has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
<aminechikhaoui>
Dezgeg: ok interesting, reproduced with the old image
<aminechikhaoui>
so probably something from Google, I guess a more recent kernel should work, I'll try with latest
<Dezgeg>
wew, I just threw a guess :P
acarrico has quit [Ping timeout: 240 seconds]
acarrico has joined #nixos
rauno has joined #nixos
ssmike has joined #nixos
freeman42x]NixOS has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
coot has quit [Quit: coot]
ThatDocsLady has quit [Ping timeout: 256 seconds]
jmc has joined #nixos
ditadi has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
jmc has quit [Client Quit]
<aminechikhaoui>
Dezgeg: another fun fact, with the same image and a 2 CPU vm, I'm able to boot
<aminechikhaoui>
this was in the comments of the issue you linked
<aminechikhaoui>
btw thanks for that, my google searching skills are bad :p
<Dezgeg>
name of the error + name of the function works for kernel stuff commonly (i.e. divide error init_intel_microcode)
coot has joined #nixos
<ertes-w>
when is the unnamed path in NIX_PATH used?
<aminechikhaoui>
Dezgeg: thanks for the trick :)
<ertes-w>
NIX_PATH=x1=y1:x2=y2:y3 # when is y3 used?
<aminechikhaoui>
ertes-w: afaik if you have <foo> in your expression and y3 has a foo subfolder y3/foo
<ertes-w>
ah, i see
<ertes-w>
thanks
plakband has joined #nixos
rauno has quit [Ping timeout: 256 seconds]
coot has quit [Ping timeout: 240 seconds]
peacememories has joined #nixos
lord| has quit [Quit: WeeChat 2.0.1]
xcmw has quit [Ping timeout: 276 seconds]
<plakband>
I'm having a weird issue on one machine where sometimes my keystrokes will be buffered; like delayed for a second or until the next keystroke. I'm not sure what triggers it, or if it's a urxvt or X11 thing, but it's only on one machine and only sometimes. Does anyone have any ideas?
<samueldr>
I maybe had something similar happen when enabling powertop; usb devices would power down rapidly
ssmike has quit [Ping timeout: 256 seconds]
coot has joined #nixos
<plakband>
samueldr: Thanks for the suggestion, I'll try turning off autosuspend
<{^_^}>
Don't ask if anyone uses software xyz, just ask your specific question. This helps solve your problem quicker, and allows people who haven't used xyz but may still be able to help you to do so.
<sphalerite_>
gchristensen: ^ ;)
<gchristensen>
gosh durnit sphalerite_!
<sphalerite_>
gchristensen: not particularly. I wrote an android app once, many years ago, and I occasionalyl use adb
mmercier has quit [Quit: mmercier]
fragamus has joined #nixos
aarvar has joined #nixos
hlt has joined #nixos
aw has quit [Ping timeout: 265 seconds]
fragamus has quit [Ping timeout: 252 seconds]
aw has joined #nixos
nwspk has quit [Ping timeout: 256 seconds]
ambro718 has joined #nixos
the_real_plumps has quit [Ping timeout: 256 seconds]
nwspk has joined #nixos
the_real_plumps has joined #nixos
hlt is now known as m712
dan_b has quit [Ping timeout: 260 seconds]
Tucky has quit [Quit: WeeChat 2.0.1]
pSub has quit [Quit: No Ping reply in 180 seconds.]
<dtz>
No idea LnL, haha especially if you don't know! :)
<LnL>
well, I don’t see any aborted jobs
roberth has quit [Ping timeout: 240 seconds]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nschoe has quit [Quit: Program. Terminated.]
lonokhov has quit [Quit: Lost terminal]
Sonarpulse has joined #nixos
asuryawanshi has joined #nixos
peacememories has joined #nixos
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #nixos
coot has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
xcmw has joined #nixos
<gchristensen>
looks like merging dtz's musl branch added 4s to the eval, which is a neat thing I can know now
max3raza has joined #nixos
<dtz>
That's curious. Wonder what caused that...
<gchristensen>
just more smarts probably
simendsjo has joined #nixos
Itkovian has quit [Ping timeout: 265 seconds]
<LnL>
that's for all platforms right?
<nhill>
How are you guys dealing with spectre and meltdown?
cfricke has quit [Quit: WeeChat 2.0]
<dtz>
hmm looks like they were restarted or something, LnL, I don't see them anymore either. Or maybe I was looking at the wrong eval, but don't think so.
ryanartecona has joined #nixos
<gchristensen>
nhill: by applying all the patches r
ssmike has joined #nixos
arjen-jonathan has quit [Ping timeout: 240 seconds]
sigmundv has quit [Ping timeout: 268 seconds]
<nhill>
gchristensen: So if I install 17.09, it's fully patched?
<gchristensen>
should bee
<nhill>
cool
<gchristensen>
there is some confusion around microcode updates from intel, but afaik we're completel up to date on the recommended patches
<nhill>
I've known about Nix for about a year now, hopefully getting to finally play around with it in the next week
<gchristensen>
(intel has released and rescinded microcode patches at least once)
<LnL>
dtz: ah, somebody probably restarted them then
<nhill>
I'm hoping it's one of those things that I kick myself for not doing earlier, you guys seem to be doing things right imo
<gchristensen>
=)
<nhill>
btw, why can't I manage userspace packages declaratively?
hakujin has joined #nixos
<nhill>
Or can I pass a declarative config file to nix-env?
<aminechikhaoui>
what's userspace pkgs ?
<nhill>
non-global
<catern>
you can, there are a number of ways, check "Declarative Package Management" in the nixpkgs manual
<nhill>
ok, just curious because skimming the main manual it said I couldn't
<catern>
also see the --remove-all argument to nix-env which is one way you could do it with just base Nix
<nhill>
And in my mind, I'd prefer to limit the packages installed globally
<nhill>
But, it really doesn't matter on my personal laptop I suppose
castordamon[m] is now known as castordamon
<gchristensen>
I don't use nix-env, I either put packages in to systemPackages or use shell.nix files for projects
<nhill>
Also, final major question... I'm mainly doing JS development these days. I see there are tools for Nixifying npm packages that I would want to install globally...
<nhill>
But, would I run into any problems just using the standard node tools inside my project directories?
<nhill>
gchristensen: I'll look into shell.nix
alex`` has quit [Quit: WeeChat 2.0.1]
<nhill>
Any reasons why using npm inside my ~/projects directory would cause problems?
<gchristensen>
I don't know
<samueldr>
afaik, no issues, but obviously npm -g is discouraged
<samueldr>
(if it even can work)
<nhill>
yeah, clearly I would avoid --global and --user
<nhill>
I can Nixify and global/user packages I want if they don't already exist
<samueldr>
for stuff usually used as -g, ./node_modules/.bin/[that_binary] works great, e.g.: react-create-app or however it's called
<nhill>
samueldr: Haven't things like create-react-app or es-lint for example been nixified?
<nhill>
Or is there not a large JS userbase on Nix?
<samueldr>
oh, it probably can ben, but I was lazy :)
<samueldr>
can be*
<simpson>
nhill: You underestimate the effort required to tame Node crap, I suspect.
<samueldr>
and all those I used are one-time use generators and such, so instead of having to THEN update a package, I can rm -rf the temp dir with the tool :)
tv has quit [Ping timeout: 260 seconds]
<gchristensen>
simpson: please don't antagonize the newbie :)
<symphorien>
there are various npm2nix, node2nix etc. tools
<samueldr>
I personally only have used yarn2nix (and then, I was helped a bit)
<simpson>
gchristensen: Sorry.
<nhill>
simpson: Likely
<simpson>
nhill: Taming things is hard, regardless of language. There can be lots of JS users on Nix *and* many tools might remain unpackaged.
<samueldr>
but it looks like it's mostly for deployment uses, dunno how it would be used inside nixpkgs to manage a package
Tobba_ has quit [Read error: Connection reset by peer]
<nhill>
Well, I almost exclusively use node stuff local to my projects
<samueldr>
yeah, using yarn inside nix-shell works well enough that it's not *needed* to make it all live inside nix
<nhill>
So, it's well sandboxed in a way
<samueldr>
I don't know whether it's good or bad though
<nhill>
I have not yet used any binary dependencies, but I'll deal with that hell when I need to
<nhill>
Probably writing some C++ node modules this summer :/
<nhill>
atleast nixpkgs has the latest nodejs version
<nhill>
good sign
Tobba has joined #nixos
coot has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy opened pull request #1872: monitor-fds: Fix on macOS. (master...macOS-poll-fix) https://git.io/vAG6k
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Twey opened pull request #34971: Update and introduce Godot and godot_headers (master...master) https://git.io/vAG6G
NixOS_GitHub has left #nixos [#nixos]
xcmw has quit [Ping timeout: 248 seconds]
jrolfs has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Remote host closed the connection]
ryanartecona has quit [Quit: ryanartecona]
asuryawanshi has joined #nixos
xcmw has joined #nixos
klntsky has joined #nixos
<nh2[m]>
domenkozar: aszlig what's the right way to allow some nixops generations to be GCd? Delete the symlinks directly from `/nix/var/nix/profiles/per-user/user/nixops`? Or will that upset nixops if it can't find them?
ryanartecona has joined #nixos
<nhill>
Wish the nixpkgs website search didn't hide non-free packages
<catern>
blah
<catern>
question about software deployment, maybe not even specific to Nix, say I have component A pushing out new versions to a host, and component B (possibly an actual user running an application) using the latest version. how should I detect when B is no longer running old versions so I can delete them? maybe I shouldn't even be doing push deployment like this?
<gchristensen>
Nix's GC will do that automatically
<catern>
yeah, but I'm not super enthusiastic about that runtime roots stuff
<catern>
also, in its current incarnation, the runtime roots detection requires that the nix-daemon run as root - which I think is maybe a clear indication that it's not good?
<nh2[m]>
gchristensen: hmm, I just did `nix-collect-garbage --delete-older-than 60d` but in `/nix/var/nix/profiles/per-user/user/nixops` there are still symlinks from April 2017
<gchristensen>
well it is sort of the only way to definitely know it isn't running
<gchristensen>
sorry nh2[m], I was talking to catern
<nh2[m]>
ah sorry
<catern>
gchristensen: well, I'm willing to consider that maybe being in this situation at all (push deployment, maybe old versions being used) is a sign of doing something wrong
<nhill>
Cool namespacing putting bitcoin in altcoin.*
<nhill>
:/ ?
Ulrar has quit [Quit: WeeChat 2.1-dev]
<gchristensen>
nhill: just pretend the `l` is a `t`. catern: ok
<nhill>
why not a more generic 'crypto' or something
raynold has joined #nixos
<simpson>
That'd be too generic.
<nhill>
'coins'
reinzelmann has joined #nixos
<catern>
yes probably "cryptocurrency" would be a better namespace
<nhill>
i don't want to start a flamewar, and I dont care, it just seems silly and funny to install bitcoin-core using 'altcoins.bitcoin'
<catern>
or "ecash"
<catern>
assuming no-one has called their cryptocurrency "ecash" yet
<simpson>
nhill: Don't worry about it. Installing bitcoin-core under *any* name seems silly to me~
<catern>
(also assuming no-one has called their ecash system "cryptocurrency"...)
<Dezgeg>
well honestly this 'altcoin.' prefix should be dropped as no other packages have such namespacing/categorizing
coot has quit [Quit: coot]
<nhill>
Dezgeg: sounds good to me
<LnL>
ugh, the rust bootstrap build for 1.23 also runs into the jobserver bug
<nhill>
simpson: Good luck retiring ;)
<simpson>
nhill: Thanks, but not retiring yet, just between jobs.
jrolfs has joined #nixos
coot has joined #nixos
<nhill>
simpson: what will you do when they will only pay you in btc?
<gchristensen>
let's take this to #nixos-discusses-currency
<nhill>
gchristensen: waiting for users to join haha
<nhill>
I take it simpson is the resident troll
<simpson>
nhill: It was a joke; gchristensen is asking us to drop the discussion.
<simpson>
I'm not a troll. I genuinely am deeply disappointed by most facets of society.
<nhill>
nice bait
<nhill>
I'm going to go install nixos instead
davidak has quit [Quit: Leaving]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
fragamus has joined #nixos
xcmw has quit [Read error: Connection reset by peer]
xcmw has joined #nixos
<nh2[m]>
for my question above, there's actually `nixops delete-generation`, I hadn't spotted it
tv has joined #nixos
<gchristensen>
ah nice
alex`` has joined #nixos
<gchristensen>
I'm not sure I've ever actually used nixops with generations
Synthetica has quit [Quit: Connection closed for inactivity]
coot has quit [Read error: Connection reset by peer]
alex`` is now known as alexherbo2
xcmw has quit [Ping timeout: 240 seconds]
alexherbo2 is now known as alex``
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
garbas has joined #nixos
<troydm>
back to my broadcom wireless problem, I would like to debug broadcom_sta module, to do that I need to see it's source code, how can I check it's source code
<troydm>
it's kernel module
<troydm>
also it's proprietary module so it might not even be part of kernel package
<srhb>
Yatekii: It probably contains a lot of unnecessary steps, a minimal guide would probably help..
[0x4A6F] has joined #nixos
peacememories has joined #nixos
mizu_no__ has joined #nixos
<Yatekii>
srhb: that's my fear, becuase I already had a look at the wiki
guillaum1 has joined #nixos
<guillaum1>
is there a way to setup "src" with the content of the local git repository ?
<srhb>
Yatekii: Perhaps it's easier to think of conceptually. first, leave boot out of zfs. Then you just need to create the zpool, create a dataset with legacy mountpoint and mount it. The rest is the usual install.
<Yatekii>
srhb: yeah
<srhb>
guillaum1: You can point src at any directory.
<Yatekii>
will be more difficult when I want luks I guess ^^
<srhb>
Yatekii: There's also native zfs encryption, but with the upcoming format change that might be annoying.
<gchristensen>
guillaum1: you can also use use fetchgit to fetch a local repo
<guillaum1>
gchristensen: and will it take into account the "currently modified but not commited" files ?
j0xaf has joined #nixos
<gchristensen>
well I don't know if you can point it to a checkout, I was assuming a bare repo
mizu_no__ has quit [Quit: Computer has gone to sleep.]
j0xaf has quit [Remote host closed the connection]
hakujin1 has joined #nixos
<guillaum1>
gchristensen: perhaps I have an AB problem here. My workflow, I want to use nix-build to build the current status of my working directory. However it may be full of crapy (i.e.: leftover from manual build), so "src = ./." is not reliable and slow.
<symphorien>
You can use filtersource
j0xaf has joined #nixos
j0xaf has quit [Client Quit]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
jrolfs has quit [Ping timeout: 260 seconds]
hakujin has quit [Ping timeout: 276 seconds]
jrolfs has joined #nixos
ma27 has quit [Ping timeout: 265 seconds]
reinzelmann has quit [Quit: Leaving]
rauno has joined #nixos
jrolfs has quit [Ping timeout: 256 seconds]
<guillaum1>
symphorien: (yes, but that's painful, I need to whitelist or blacklist all files)
rauno has quit [Remote host closed the connection]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryanartecona has quit [Quit: ryanartecona]
ssmike has quit [Ping timeout: 256 seconds]
<troydm>
how can i get the list of currently installed packages for system profile?
<troydm>
the ones installed using config.nix
<gchristensen>
you mean configuration.nix?
<troydm>
yeah
mrkgnao has quit [Quit: WeeChat 2.0]
ryanartecona has joined #nixos
<gchristensen>
nixos-option environment.systemPackages will sort of tell you that
guillaum1 has quit [Ping timeout: 256 seconds]
<troydm>
gchristensen: empty output
<ottidmes>
What ways are there to extend lib, the one passed to modules? Could I just extend pkgs.lib and would that also extend the lib passed to modules? The obvious way is to just modify my local nixpkgs checkout, but I prefer keeping my additions separate if they are specific to my needs. Right now I have my own lib file, which I import instead of using the supplied lib, but I prefer to just use the passed lib
<ottidmes>
attribute if possible
<troydm>
so essentially what I'm interested in is what specific package version I have installed currently for kernel module
<ottidmes>
troydm: If it is about some binary, I often use e.g.: readlink $(which firefox)
Neo-- has quit [Ping timeout: 255 seconds]
fragamus has joined #nixos
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pallavagarwal07 opened pull request #34973: zathura: make compatible with darwin (master...zathura) https://git.io/vAGdC
<troydm>
gchristensen: yeah but this doesn't have anything to do with my case
<troydm>
it's wireless issues
<infinisil>
gchristensen: :O
<infinisil>
options hid_apple fnmode=2
<troydm>
yeah I have that enabled :)
hamishmack has joined #nixos
ssmike has joined #nixos
<troydm>
I'm not sure, I've disabled WMM on router and now it works fine
asuryawanshi has quit [Ping timeout: 265 seconds]
ryanartecona has quit [Quit: ryanartecona]
CrazedProgrammer has joined #nixos
knupfer has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] leenaars opened pull request #34975: stubby: init at 0.2.1 (master...stubby) https://git.io/vAZeo
NixOS_GitHub has left #nixos [#nixos]
Lisanna has joined #nixos
MP2E has joined #nixos
simendsjo has quit [Ping timeout: 264 seconds]
<Lisanna>
so it's been about a month since I've run nix-collect-garbage... I've run out of space on my 2TB drive though, I leave it running for hours and it doesn't finish though. Although my disk usage does drop while it's removing stale links (by 100GB over ~5 hours). what on earth has happened here?
ssmike has quit [Ping timeout: 256 seconds]
dotlambda has joined #nixos
<gchristensen>
Lisanna: anything in dmesg?
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
<Lisanna>
gchristensen I don't see anything interesting...
<Lisanna>
I *do* have a service which runs lots of nix-prefetch-git's in a loop / on timers, but the inputs to it don't change very often. I use it to scan remote sources for changes.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lisanna>
does nix-prefetch-git leave some garbage in my /nix/store even if the result of it already exists?
fragamus has joined #nixos
fragamus has quit [Client Quit]
<Lisanna>
I assumed that running it on the same thing over and over was more or less consequence-free
fragamus has joined #nixos
<gchristensen>
it should be
<Lisanna>
I'm worried that my disk is full of a 2TB worth of symlinks x_x lol
<Lisanna>
I'll do some testing once I get all the garbage cleared out
JosW has quit [Quit: Konversation terminated!]
<Lisanna>
also, funny thing: if you run nix-collect-garbage and nixos-rebuild at the same time, the garbage collector can snatch resources out from underneath nixos-rebuild while it's waiting on the big GC lock
cement has quit [Remote host closed the connection]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lisanna>
in that example, I killed the GC process since it was taking *forever* and I was worried that it was stuck, so that's how the lock got released
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos
<Baughn>
I discovered a way to eliminate screen tearing on nvidia cards. Finally. After years of searching, it's just a disabled driver option away. ...
<Baughn>
Anyone want to test it for me before I start thinking about PRs?
ssmike has quit [Read error: Connection reset by peer]
tmaekawa has quit [Client Quit]
pie_ has quit [Ping timeout: 248 seconds]
tmaekawa has joined #nixos
<sphalerite_>
Is there any way I can get a path that's 1.3GiB in size from one machine to another? Everything I've tried so far complains about "out of memory" after reading in 960MiB of the exported archive
yann-kaelig has quit []
tmaekawa has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl opened pull request #34981: utop: automatically populate the CAML_LD_LIBRARY_PATH env. variable (master...utop-stublibs) https://git.io/vAZkQ
NixOS_GitHub has left #nixos [#nixos]
<Lisanna>
sphalerite_ are you using nixUnstable's "nix copy"?
<sphalerite_>
Lisanna: tried that, tried manually using --export and --import, any other suggestions welcome
yann-kaelig has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] tadfisher opened pull request #34982: pinentry: add option to enable pinentry-emacs (master...pinentry-emacs) https://git.io/vAZIJ
<NixOS_GitHub>
nixpkgs/master 7713889 Jan Tojnar: nixos/gjs: add test
<NixOS_GitHub>
nixpkgs/master 9857545 Jan Tojnar: Merge pull request #34979 from jtojnar/gjs-1.50.4...
<NixOS_GitHub>
nixpkgs/master b2238b7 Jan Tojnar: gnome3.gjs: 1.50.2 → 1.50.4
<NixOS_GitHub>
[nixpkgs] jtojnar pushed 3 new commits to master: https://git.io/vAZLI
NixOS_GitHub has left #nixos [#nixos]
<Baughn>
Lisanna: On the subject of garbage, I find I need to run `sudo nix-store --gc --print-roots |grep result|awk '{print $1}' | sudo xargs rm` occasionally.
<Baughn>
Possibly the awk should go before the grep.
<sphalerite_>
Lisanna: or could I use nix-store --dump and nix-store --restore?
<Lisanna>
sphalerite_ I don't think so, from what I've read in the documentation for that
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] thoughtpolice pushed 1 new commit to master: https://git.io/vAZL3
<Lisanna>
Baughn it's actually making progress, even though it's not printing anything... when running nix-collect-garbage I'm reclaiming about 10K of disk space per second... but, it's a 2TB disk, so it'll take awhile...
<Baughn>
Ouch...
detran has joined #nixos
<Baughn>
What's strace say it's doing?
orivej has quit [Ping timeout: 260 seconds]
<Lisanna>
Baughn calling "unlink" and "rmdir" a LOT
<gchristensen>
then its still working :)
<Lisanna>
I think I filled my disk with 2TB of symlinks...
<Baughn>
Might be 'working as intended', then.
<Baughn>
What filesystem is that?
<Lisanna>
ext4
<Baughn>
Do you have optimise-store set?
<Lisanna>
yeah
<Baughn>
Hmm. Ext4 isn't the worst for this, but it's not the best either. Doing it on a rotary disk won't be helping.
<gchristensen>
oh I don't use that, that might be part of why it takes so long
Sonarpulse has quit [Ping timeout: 248 seconds]
<Baughn>
I *think* you could save a lot of time by switching to ZFS; it works better with HDDs in general.
<Baughn>
(And also works better for huge directories in particular.)
<Lisanna>
I mean... it's freed about 100GB over the course of being left running for 5 hours
<Lisanna>
I'm less concerned with nix-collect-garbage taking a long time and more concerned with how on earth all those links got there in the first place...
<Baughn>
Alternately, since that's probably too much data to put it all on an SSD, you could use bcache. But bcache on NixOS is still WIP. Poke me if you want to beta-test my code. :P
<Baughn>
Alternately run nix-collect-garbage more often.
<Baughn>
Lisanna: And optimise-store creates very very many links...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 0x4A6F opened pull request #34984: Adding @0x4A6F to maintainers.nix (master...0x4A6F) https://git.io/vAZLH
NixOS_GitHub has left #nixos [#nixos]
<Lisanna>
Baughn this isn't a regular use-case for me ;p I think I need to run nix-collect-garbage more often and also find out what runaway process on my machine is dumping on my /nix/store
<Lisanna>
I highly suspect it's nix-prefetch-git / nix-prefetch-url, but I won't point any fingers until I've done more testing
<gchristensen>
Lisanna: maybe turn on auto-gc
<Lisanna>
yeah, I have
<gchristensen>
cool
<Lisanna>
thankfully my nix project has a pinning option now, so I can pin things I'm working on and care about
<Lisanna>
so they won't be GC'd
<Baughn>
If I have a .drv file in /nix/store, but no corresponding output, can I get the output?
<Baughn>
For my use-case, the 'once' happened far too often. :)
<Baughn>
All in order to read the size of a file. If I try that again, I'll patch nix-build or something.
<Lisanna>
well it's my favorite feature of nix now, since I'll be able to leverage it to implement all of my test result processing / regression analysis in Nix
hiratara has joined #nixos
<Baughn>
If it works, it works. It *is* useful.
<Baughn>
If it wasn't, I wouldn't be upset that it's slow. :P
simukis has quit [Ping timeout: 248 seconds]
Jbrt has joined #nixos
<sphalerite_>
Baughn: patching might not be necessary anymore since shlevy has implemented plugin support for nix
<sphalerite_>
Not sure what exactly that entails though
Jbrt has quit [Quit: TLS Script 5.6: Testado e aprovado]
<Baughn>
Ooh~ ...I think.
<shlevy>
Yeah, you can add a primop
<Baughn>
Though I feel like this *should* be a primop. :P
<shlevy>
Well, patches welcome :) But with plugins you can iterate and validate and share and prove usefulness first, if any of those are concerns
<Baughn>
It's not a problem I have right now, but I'll keep it in mind. :)
<ottidmes>
Is there any downside to using imports to define config, so instead of config = { ... }; doing imports = [ { ... } ]? Because I really like that by using imports in this way you can define the same attribute in a module multiple times
<infinisil>
Baughn: Regarding your command to delete result roots, there's a better way: find /nix/var/nix/gcroots/auto -printf '%l ' | xargs rm -v
jensens has quit [Ping timeout: 256 seconds]
<Baughn>
I disagree that it's better. :P
<Baughn>
Mainly because your command depends on implementation details. `nix-store --gc --print-roots` should be more stable.
Sirio has quit [Quit: Page closed]
<infinisil>
Baughn: that's an argument
<infinisil>
mine finds a bit more though, not only the ones named result
LysergicDreams has quit [Remote host closed the connection]
<infinisil>
more robust, less magic
* sphalerite_
eats popcorn
<Baughn>
Limiting it to the 'result' symlinks was deliberate. :)
c0ffee152 has joined #nixos
<Baughn>
Yours will erase packages from underneath nix-shell. A GC root named 'result' is usually generated by nix-build, and typically not deliberate.
ambro718 has quit [Ping timeout: 268 seconds]
<infinisil>
Baughn: true..
<infinisil>
alright need to sleep, cya!
knupfer has quit [Ping timeout: 276 seconds]
[0x4A6F] has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl opened pull request #34986: eprover: fix build in non-GCC environments (master...eprover-no-gcc) https://git.io/vAZmF
NixOS_GitHub has left #nixos [#nixos]
kebolio has joined #nixos
okami has joined #nixos
tertleeltret has quit [Quit: Connection closed for inactivity]
<genesis>
i've some issue to do same as in nix-shell in my derivation : substituteInPlace ./Makefile --replace "\${prefix}\$" "\${DESTDIR}${prefix}\$"
lord| has joined #nixos
<genesis>
it try to expand the variable, i don't want to, perhaps put that in another phase to avoid shell behavior ...
<sphalerite_>
use single quotes rather than double quotes
<sphalerite_>
and remove the backslashes, probably
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
<genesis>
it's in the original file, so i need it to target the right line
<sphalerite_>
ah right
<genesis>
i wonder if it's really important to give a default working cfg of the package since user have to modify it anyway
<genesis>
but i think it's proper.
freeman42x]NixOS has joined #nixos
<sudoreboot[m]>
Is there any documentation for the different nix functions? Say I want to find out what `pkgs.haskell.lib.buildStackProject` does, do I just poke around in the nixpkgs repo and figure it out from there?
jtojnar has quit [Ping timeout: 260 seconds]
<sphalerite_>
sudoreboot[m]: check the nixpkgs manual first, typically
<sphalerite_>
if there's nothing there, grep nixpkgs
<sphalerite_>
If that doesn't provide enlightement, ask on IRC :D
<sudoreboot[m]>
sphalerite_: Thank you 🙂
<sudoreboot[m]>
Would be awesome to have proper docs for functions at some point
<sphalerite_>
yeah, there was a push for that at nixcon
<mmlb>
hey all, I'm trying to use elvish as my log in shell, but I'm getting error: /nix/store/5k6vnk99y3xml0dc7njyl8dqwql3p3v4-elvish-0.10-bin is not a shell package, I compared zsh,bash and elvish nix files and elvish is missing passThru.shellPath, is that the cause of the error?
<dhess>
Is there a way to refer to a Perl package from a particular Perl version, like you can with GHC versions and Haskell packages?