<testuser>
I have both nixos-20.09 and nixpkgs-unstable installed. Does nix use order precedence to find packages from channels or does it find the latest available in all channels? Or is there a way to specify the channel I want to pull the package from?
<evanjs>
testuser: try nixos-unstable
<evanjs>
it looks like nixos-unstable is a bit ahead, and I think that's what the "unstable" on the options site is
<evanjs>
I was going to link that page but I was reading through and wasn't sure if it was descriptive/explicit enough :P
<evanjs>
and yeah, that's me every day. like "how do I survive" lol
<testuser>
It's great if you already know where it is. :)
<evanjs>
yeah, I need to just err on the side of "share if maybe helpful", vs "careful I'm not too verbose" :P
<testuser>
ha, looks like that worked. Thought I was going crazy.
<testuser>
Thanks evanjs. Been wondering what's been wrong for a few days now.
testuser has quit [Remote host closed the connection]
ericsagnes has quit [Ping timeout: 244 seconds]
<ugubok>
What is best way to make IDE (e.g. PyCharm) working in nix-shell? My thoughts is to create .desktop file which should do the thing
testuser has joined #nixos
ericsagnes has joined #nixos
<ugubok>
I need that because I can't commit in IDE with pre-commit hooks enabled, pre-commit doesn't work outside the shell
<__red__>
,locate pdflatex
<{^_^}>
Found in packages: tetex, texlive.combined.scheme-full, texlive.combined.scheme-basic, texlive.combined.scheme-small, texlive.combined.scheme-medium, texlive.combined.scheme-minimal
<duairc>
When using systemd.mounts, is there any way to specify the absolute path to the mount executable (i.e., "${pkgs.cifs-utils}/sbin/mount.cifs")
<duairc>
Or at least to tell systemd what PATH to look in to find the executable?
h0m2 has joined #nixos
drakonis has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
davidv7 has joined #nixos
<ugubok>
evanjs: but then you should keep your terminal open, it's not convenient
<ugubok>
I just copied pycharm.desktop to ~/.local/share/applications/ and modified "Path" and "Exec" keys so now it run under nix-shell, and it works!
h0m1 has quit [Ping timeout: 246 seconds]
<cole-h>
You don't have to keep it open.
<cole-h>
Just add `& disown` to the end of the command invocation
<cole-h>
It'll keep running in the background, even after closing the terminal
<la-jesystani>
howdy, im trying to use home-manager with flakes, using the snippet from the home-manager git page, whenever i try to import my home.nix (as shown in the snippet), the build fails with `format = pkgs.formats.toml {};` `attribute 'formats' missing` and im unsure how to continue, anyone come across this issue?
m0rphism has quit [Ping timeout: 264 seconds]
kenran has quit [Ping timeout: 246 seconds]
* cole-h
is in favor of deleting the editorconfig test, tbqh
<evanjs>
If nixpkgs-fmt handled it I'd probably care much less tbh
orivej has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixos-homepage] @samueldr pushed 3 commits to redesign-governance: https://git.io/JTBog
<ugubok>
Still doesn't understand the approach. I have rofi and there is package "rofi-emoji" which is plugin for rofi (it installs /lib/rofi/emoji.so). So how to make rofi see that plugin?
<ugubok>
nix-shell is useless in that case because rofi still doesn't see it
<ugubok>
So I want somehow to put two packages in same store
<ugubok>
Should I play around rofi configuration instead to get it know all installed plugin paths?
<evanjs>
I still often find the hm manual more helpful 😝
orivej has joined #nixos
nek0 has quit [Remote host closed the connection]
<evanjs>
Anyway, what that does is make sure that home-manager knows to link in those programs so they're in rofis closure and it can reference them properly
<evanjs>
(Somebody please correct me if I'm using the wrong terms here... 🤪)
sigmundv has quit [Ping timeout: 256 seconds]
lnlsn has joined #nixos
nek0 has joined #nixos
lnlsn has quit [Remote host closed the connection]
kreyren_ has quit [Ping timeout: 240 seconds]
ericsagnes has quit [Ping timeout: 260 seconds]
CcxWrk has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
<la-jesystani>
im having trouble building my config on 20.09, with the error "urwid-2.1.1 not supported for interpreter python2.7", am i able to specify a python version in order to resolve that?
<ugubok>
evanjs: Using home manager really helps, thanks a lot! Well, +1 manual to read
ericsagnes has joined #nixos
<evanjs>
ugubok: and then there's the hacky stuff on my systems lol
<evanjs>
e.g. `echo "rofi.theme: $(nix eval --raw nixpkgs.rofi)/share/rofi/themes/${1-Monokai}.rasi" > ~/.config/rofi/config`
<hodapp>
just to try it, can someone get into a nix-shell with package 'supercollider', run 'sclang', and at the prompt, run: Server.remote(\foo, NetAddr("192.168.0.1", 12345));
thelounge8168 has joined #nixos
thelounge81 has quit [Ping timeout: 272 seconds]
thelounge8168 is now known as thelounge81
xd1le has quit [Read error: Connection reset by peer]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
xd1le has joined #nixos
spacefrogg has joined #nixos
acarrico has quit [Ping timeout: 260 seconds]
testuser has quit [Remote host closed the connection]
la-jesystani has quit [Remote host closed the connection]
milessanctimicha has joined #nixos
<__red__>
So, random question. I was listening to domenkozar[m]'s talk and he mentioned the deprecation of channels.
<__red__>
then I see this: "Channels are a way of distributing Nix software, but they are being phased out. Even though they are still used by default, it is recommended to avoid channels and <nixpkgs> by always setting NIX_PATH= to be empty"
<__red__>
I guess my question is
<__red__>
in the absense of channels - how does anything work?
<__red__>
(I mean - I guess I could git clone nixpkgs - but that doesn't seem like an end-user solutino
<__red__>
what am I missing?)
<elvishjerricco>
`rm: cannot remove '/var/lib/containers/test/var/empty': Operation not permitted`
<elvishjerricco>
Uh oh
<elvishjerricco>
What do?
<samueldr>
__red__: it's part of naming things being hard, and things being overloaded
<samueldr>
<nixpkgs> is not a channel, it's the path syntax that resolves through NIX_PATH
<samueldr>
though, more often than not, this ends up resolving to channels setup via nix-channel
<samueldr>
the message is too condensed here
<samueldr>
ugh, I see it's on nixos.org... that's not great
<samueldr>
anyway, the intent of the message is that evaluations should be "hermetic", in which they do not rely on the environment
<samueldr>
but channels, another definition, which is a tested set of packages, will continue to exist
kenran has joined #nixos
<samueldr>
elvishjerricco: chattr -i
<samueldr>
so yeah, the messaging here is out of phase with the work currently being done I think
<elvishjerricco>
samueldr: what does `-i` do?
<samueldr>
elvishjerricco: removes the immutable bit (i)
<samueldr>
it should rather promote the idea of prefering to declaratively (heh) declare dependencies, rather than rely on the environment
<samueldr>
is it about "nix-channel" (~.nix-defexpr/channels), is it about the "<nixpkgs>" syntax often being called (wrongly) channels? is it about the mechanism by which a revision is being marked as "good and latest"?
<samueldr>
so yeah, another note is that article is more about "using nix" and not "using NixOS"
<samueldr>
like using nix for a project
<__red__>
fair - I have a tendency to conflate the two I guess
<__red__>
which I shouldn't
<samueldr>
heh, no worries, nix is full of subtleties and nuances :)
<elvishjerricco>
So, all the `/nix` mounts in a nixos container are mounted ro. Why then can I still do nix builds in the container?
<samueldr>
and the important part of the messaging here is "don't use <nixpkgs>; prefer referencing a specific commit"
<__red__>
yup
thelounge81 has joined #nixos
<samueldr>
"otherwise things are going to not be what you think they should be"
<samueldr>
elvishjerricco: /nix is mounted ro on your system too
<__red__>
of course *I* do on all mine... but I'm not supporting a production system with it...
<samueldr>
elvishjerricco: the daemon does magic for you container or no container
<elvishjerricco>
samueldr: Ah, derp
<__red__>
But then again, whenever I do NixOS demos for groups of people I log into my production system and switch it between NixOS channel
<samueldr>
__red__: yeah, and now that you _know_ about it, even if you still use <nixpkgs>, you're aware of that one issue
<samueldr>
hah
<__red__>
when you tell people that that's equivalent of being able to atomically upgrade and downgrade over other distro's major version revs (like RedHat 6->7) etc - their mind is blown
<samueldr>
yeah
growpotkin has joined #nixos
<samueldr>
[assuming that no stateful data gets migrated in a format that the previous version of $anything can't use]
<__red__>
and I make a big song and dance about not having backups etc...
<__red__>
right
growpotkin has quit [Client Quit]
<__red__>
and I tell them - it may *fail* - but if it fails - it won't update a single thing - it's all or nothing
endformationage has quit [Quit: WeeChat 2.9]
<__red__>
you never end up with a state which is halfway between one version and another
<__red__>
which you can't go backewards or forwards from because of circular or colliding deps
<__red__>
which was 95% of major rev upgrades from all the rpm distros for the longest time
<la-jesystani>
howdy, i rebuilt my config and now my wireless card has just completely dissapeared from `ip link`, i have no idea how to get it back, any ideas?
<__red__>
what change did you make in your config?
<la-jesystani>
a lot of changes, basically redid it from scratch, but i changed from wicd to wireless because wicd wasnt building
la-jesystani has quit [Read error: Connection reset by peer]
xelxebar has quit [Read error: Connection reset by peer]
xelxebar has joined #nixos
<{^_^}>
[nixpkgs] @jonringer merged pull request #101099 → nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers from DHCP → https://git.io/JTBlC
<{^_^}>
[nixpkgs] @jonringer pushed commit from @rissson to master « nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers from DHCP »: https://git.io/JTB9W
<{^_^}>
[nixpkgs] @jonringer pushed commit from @unode to master « pythonPackages.pysam: add libdeflate and enable tests »: https://git.io/JTBQo
palo has quit [Ping timeout: 258 seconds]
palo1 is now known as palo
<la-jesystani>
i reran nixos-generate-config and nothing in there was really different to what i already had, minus some filesystem stuff, afaik i havent disable it in bios or anything, the wireless was working this morning before i rebuilt my config
supersandro2000 has quit [Read error: Connection reset by peer]
<la-jesystani>
i have, minus the network configuration (i just used wpa_passphrase into /etc/wpa_supplicant.conf). even after restarting the service, my wireless still isnt showing up in ip link
Sanchayan has quit [Quit: leaving]
Maxdamantus has quit [Ping timeout: 260 seconds]
Maxdamantus has joined #nixos
medvid_ has joined #nixos
<samueldr>
la-jesystani: a wild guess, but maybe the kernel version?
<samueldr>
do you know what kind of hardware it's supposed to be?
<samueldr>
maybe dmesg | grep for it?
<la-jesystani>
im on 5.4.70, and i dont, but its a Thinkpad T420 if that helps? sorry ive always just had it work with NixOS up until now
<samueldr>
hm, t420 isn't something new, so I wouldn have expected that to be an issue
Sanchayan has joined #nixos
<la-jesystani>
i am getting a "direct firmware load for iwlwifi failed with error -2" which may be something? just checking dmesg
<growpotkin>
Can I limit nix-daemon to a certain number of cores?
<growpotkin>
I have `system.autoUpgrade` enabled and at midnight my box just gets totally swamped
<Ke>
did you enable the firmware?
<Ke>
note that some people see those on nixos even when wifi works, so it might be an artefact on when the modules are being loaded and when the fw will be made available
<Ke>
does wifi work for you?
<la-jesystani>
wifi does not work for me currently
<la-jesystani>
i tried modprode iwlwifi but no change, still nothing other than lo and my wired connection in `ip link`
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mlatus_ has joined #nixos
<{^_^}>
[nixpkgs] @bcc32 opened pull request #101124 → Add a bunch of Jane Street OCaml packages at 0.13 → https://git.io/JTRez
<mlatus_>
So I'm reading the README of https://github.com/tweag/nickel , and this satement really confused me: It could be used instead of the Nix language. What's does it imply? What's the relationship between nix and nickel?
<{^_^}>
[nixpkgs] @siraben opened pull request #101125 → apk-tools: fix build on darwin → https://git.io/JTReD
<{^_^}>
#89028 (by aanderse, 20 weeks ago, merged): libav_all: use callPackages instead of callPackage
<dminuoso>
musteresel-nolog: Regarding curl, that's normal. Curl does not follow redirects unless explicitly instructed to.
<dminuoso>
HTTP is a very sad disarray since it's a semantic protocol, and so many clients and servers do not respect that.
cfricke has joined #nixos
<musteresel-nolog>
Hm, any ideas what this could be?
<dminuoso>
None. If in doubt, file a bug report.
<{^_^}>
[nixpkgs] @vcunat pushed 2 commits to release-20.03: https://git.io/JTRJ9
<musteresel-nolog>
I'm looking now if I can update using a git checkout of the repo (I'm currently at work and this is on a production system) ... and will file a bug later then
<dminuoso>
musteresel-nolog: Oh I have a theory
<musteresel-nolog>
? :)
<dminuoso>
Or some rather
<dminuoso>
How much memory do you have?
<musteresel-nolog>
disk or ram?
<musteresel-nolog>
disk is free, ram about 4GB (1 GB in use, rest free)
<musteresel-nolog>
(disk more than 100 GB free)
<dminuoso>
Do you have swap?
<musteresel-nolog>
ok ... this is getting interessting
<musteresel-nolog>
Cannot checkout the repo
<dminuoso>
Do you have an IPv6 address?
<musteresel-nolog>
(swap: yes, file and zram IIRC)
srhm has joined #nixos
<musteresel-nolog>
ipv6 disabled, so I think not?
<musteresel-nolog>
git clone https://github.com/NixOS/nixpkgs.gitCloning into 'nixpkgs'...fatal: protocol error: unexpected 'dd16dcbba4a69b85b64ac043cebe?sd(�??�?.?t�1�s/pull/14253/head'
<musteresel-nolog>
Wtf ..
<dminuoso>
Check with `ip addr` to be sure
<dminuoso>
Mmm
<dminuoso>
Do you have some nasty corporate firewall in between?
<musteresel-nolog>
Yes ... there's some firewall ... wait a second, I'm going out of the cooperate network
<dminuoso>
This is communication over https, so there cant be damage while in transport
<dminuoso>
Then I put the blame on your corporate firewall
<dminuoso>
It probably does some crazy MITM stuff, and breaks data
lsix has quit [Client Quit]
<dminuoso>
(I dont know nix-channel very well, its possible it breaks unpacking another xz archive it grabbed from another URI that your firewall hated)
lsix has joined #nixos
thelounge81 has quit [Ping timeout: 260 seconds]
musteresel-nolog has quit [Ping timeout: 245 seconds]
musteresel-nolog has joined #nixos
<musteresel-nolog>
Back, now in own network; sadly still the same issues :(
<dminuoso>
musteresel-nolog: Can you nuke the repository first (delete it entirely) and try the `git clone` again
<dminuoso>
Just want to ensure you dont have some partially corrupted cache flying around
<musteresel-nolog>
git clone https://github.com/NixOS/nixpkgs.gitCloning into 'nixpkgs'...remote: Enumerating objects: 50, done.remote: Counting objects: 100% (50/50), done.remote: Compressing objects: 100% (49/49), done.error: inflate: data stream error (invalid distance too far back)fatal: pack has bad object at offset 799901: inflate returned -3fatal: index-pack
<musteresel-nolog>
failed
<musteresel-nolog>
Hm ... checking date
<musteresel-nolog>
Time seems to be in sync
<musteresel-nolog>
Don't even get a repository directory
<musteresel-nolog>
(Tried a clean clone)
<dminuoso>
musteresel-nolog: I'd hop into #git, check with the folks there to tell you how to figure out whether git can be coerced into telling you what things it talks to precisely
<dminuoso>
In particular, Id be curious about the exact URI that git fetches the data from
<dminuoso>
Or, alternatively, hope someone here can tell you the same about nix-channel
<dminuoso>
musteresel-nolog: Do you have some kind of VPN still active maybe?
mlatus_ has quit [Remote host closed the connection]
<dminuoso>
Also, do you have non-system certificates added to your trust store?
<musteresel-nolog>
No, nothing changed with regard to certificates
<dminuoso>
"nothing changed" with respect to what?
<dminuoso>
Do you have any certificates installed that dont come with nixos?
<dminuoso>
My idea is just, I want to ensure you dont have any certificates installed that would, technically, allow a third party to manipulate the data in flight
<musteresel-nolog>
No, no certificates installed (except what comes with nixos i guess)
<dminuoso>
Okay, then next theory
<dminuoso>
What does `dmesg` say?
<dminuoso>
and `journalctl`
<dminuoso>
Perhaps you have a corrupted filesystem
<musteresel-nolog>
Hm ...
<musteresel-nolog>
I have a theory which comes from the dmesg output and also might explain this:
<dminuoso>
Even if, at worst a wrong time would invalidate HTTPS certificates
<dminuoso>
But it's suspicious
<dminuoso>
What about `journalctl -xe`?
zupo has joined #nixos
<dminuoso>
Also, be sure to check your filesystems (e2fsck if you have ext2/3/4)
kenran has joined #nixos
<musteresel-nolog>
(git is guessing data corruption in ram / memory .. )
<musteresel-nolog>
`journalctl -xe` doesn't show anythin which seems out of order?
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
<siraben>
For GNU packages, is there an automated way to identify out of date packages?
<siraben>
Or any package for that matter, by comparing the latest tag with the one in the derivation.
<dminuoso>
musteresel-nolog: memory corruption is certainly a realistic theory
<musteresel-nolog>
rebooting the virtual machine now ..
<musteresel-nolog>
Perhaps its something with the VirtualBox Guest Additions ... I have a "dev snapshot" of them running ...
<dminuoso>
musteresel-nolog: These vm tools usually have balloning drivers
<dminuoso>
If there's the slightest bug, things can go haywire pretty badly
<musteresel-nolog>
Same issues even after reboot
kenran has quit [Ping timeout: 240 seconds]
<dminuoso>
musteresel-nolog: What happens if you go back a few generations in grub?
<dminuoso>
can you perhaps pinpoint it to a particular generation that introduced a regression
<musteresel-nolog>
Hm, I don't have old generations; this system is in this sate since about a month and was working perfectly fine; I just today tried to do a channel update because a package got out of date (i think)
<musteresel-nolog>
state
<musteresel-nolog>
I'm usually using nix-shell -p somepackage to get what I need and leave the base system as it is
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<musteresel-nolog>
Hm ... rebooting the host now, too. This is really strange ... but certainly doesn't have anything to do with nixos.
<musteresel-nolog>
I'll try to use a nixpkgs clone (acquired using the working host) via a shared folder to do an update and remove the guest additions
<dminuoso>
musteresel-nolog: Have you done a filesystem check?
<dminuoso>
If this is a hypervisor bug, then that's a pretty serious one.
<dminuoso>
musteresel-nolog: The issue doesn't state anything about filesystem corruption
<colemickens>
,locate bin pygmentize
<dminuoso>
Do you see that particular line in your kernel ring buffer?
<{^_^}>
Found in packages: python27Packages.pygments, python37Packages.pygments, python38Packages.pygments
<dminuoso>
Oct 08 07:31:52 nixos kernel: Fixing recursive fault but reboot is needed!
<musteresel-nolog>
No, but its the same system (I'm the author of that issue)
<musteresel-nolog>
So yes I saw that same error messages :)
la-jesystani has joined #nixos
<musteresel-nolog>
Kernel issues might also lead to filesystem corruption I guess? But no idea how to start even debugging this
<dminuoso>
Im starting to think either your VM or your hypervisor is very bugged.
<dminuoso>
Perhaps, yes.
<dminuoso>
If the kernel is corrupted, then that's not good.
la-jesystani has quit [Client Quit]
<dminuoso>
It's hard to say, the issue there does not feel like a file system corruption
<dminuoso>
(Unless the file system corruption lead to a corrupt kernel)
<dminuoso>
Are you using secure boot?
<dminuoso>
(with kernel signing)
<dminuoso>
10:15:59 dminuoso | Im starting to think either your VM or your hypervisor is very bugged.
<musteresel-nolog>
No, no secure boot
<musteresel-nolog>
Hypervisor is VirtualBox 6.1.14 r140239 (Qt5.6.2) running on a Windows 10 host
<dminuoso>
From a pure linux point of view I'd say
<dminuoso>
"Well its tainted, tough luck!"
<dminuoso>
musteresel-nolog: My feeling says, you have some memory corruption going on (perhaps induced by the hypervisor)
<dminuoso>
Inside the kernel
<dminuoso>
Things to try:
<dminuoso>
Update your hypervisor software if possible
jabster28 has joined #nixos
<dminuoso>
Update to a newer linux kernel
<dminuoso>
Build a new VM, maybe the vmware disk images are broken
<dminuoso>
*virtualbox
<musteresel-nolog>
Hypervisor is up to date already. The Guest Additions (kernel module loaded inside the vm) are a dev snapshot, so possibly there's an issue
<dminuoso>
Get rid of the guest additoins
<musteresel-nolog>
Will also run a check of the hardware later
cosimone has joined #nixos
<dminuoso>
Im almost confident its not a hardware issue
<dminuoso>
Otherwise it wouldnt so persistently happen with this VM, even after a reboo
<musteresel-nolog>
Yes .. the host is running fine; would be strange if a hardware issue only affets the guest, right?
cfinch_ has joined #nixos
<dminuoso>
You also rebooted the host right?
<dminuoso>
Then its very unlikely a hardware issue, as the memory mappings have all changed. You'd experience issues on the hos as well.
<musteresel-nolog>
No, wanted to but didn't yet; I'm sitting in front of that host to write here and all
<dminuoso>
Fair enough. Id give that a try
pn has joined #nixos
thc202 has joined #nixos
musteresel-nolog has quit [Ping timeout: 245 seconds]
musteresel-nolog has joined #nixos
<musteresel-nolog>
dminuoso Doing a system rescue of the VM now and try to get it up without guest additions
cosimone has quit [Quit: cosimone]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasBora>
Hello, stupid question, but how can I declaratively declare the priority of a package in home-manager to avoid conflicting priority? I tried in home.packages = [(pkgs.hiPrio pkgs.k2pdfopt)] but it does nothing
thelounge81 has quit [Ping timeout: 246 seconds]
cfinch_ has joined #nixos
jbox has joined #nixos
jbox is now known as Guest62129
cfinch has quit [Ping timeout: 265 seconds]
<pn>
johanot: that's because the file that you evaluate returns function, I have no idea how to call anonymous function with `nix eval` tho :(
cfinch__ has quit [Ping timeout: 260 seconds]
Ox4A6F has joined #nixos
Ericson2314 has joined #nixos
DamienCassou has joined #nixos
HumanJohn[m] has joined #nixos
l-as has joined #nixos
MilkManzJourDadd has joined #nixos
Hirmes[m] has joined #nixos
NobbZ[m] has joined #nixos
Minijackson[m] has joined #nixos
neothefox has joined #nixos
TheSirC[m] has joined #nixos
alexarice[m] has joined #nixos
alexfmpe has joined #nixos
abbec has joined #nixos
abstract300 has joined #nixos
alienpirate5 has joined #nixos
aquarial has joined #nixos
amanjeev[m] has joined #nixos
Anonymous[m] has joined #nixos
yoctocell[m] has joined #nixos
aterius has joined #nixos
bbigras has joined #nixos
bennofs[m] has joined #nixos
barn0 has joined #nixos
betrion[m] has joined #nixos
bk1603[m] has joined #nixos
mcaju has joined #nixos
bohan[m] has joined #nixos
chreekat[m] has joined #nixos
colemickens has joined #nixos
crazazy[m] has joined #nixos
crazymind-102[m] has joined #nixos
daemon1024 has joined #nixos
darkharmony9999[ has joined #nixos
danielrf[m] has joined #nixos
davidak[m] has joined #nixos
domenkozar[m] has joined #nixos
dominicusin[m] has joined #nixos
drozdziak1 has joined #nixos
dxu[m] has joined #nixos
eadwu[m] has joined #nixos
dtz has joined #nixos
eddyb has joined #nixos
emily has joined #nixos
fgaz has joined #nixos
fzakaria1 has joined #nixos
GuillaumeChrel[m has joined #nixos
hiroshi[m] has joined #nixos
hsiktas[m] has joined #nixos
hpfr has joined #nixos
humancalico[m] has joined #nixos
ilya-fedin has joined #nixos
Hayden[m] has joined #nixos
JankLoogi has joined #nixos
inquisitiv3 has joined #nixos
codyopel has joined #nixos
jgart[m] has joined #nixos
jonte[m] has joined #nixos
jschievink has joined #nixos
jtojnar has joined #nixos
kevincox[m] has joined #nixos
M0-[m] has joined #nixos
ks2048[m] has joined #nixos
kraem has joined #nixos
TomaszKsiak[m] has joined #nixos
Jake[m] has joined #nixos
aloiscochard[m] has joined #nixos
SplitFire[m] has joined #nixos
l_inus[m] has joined #nixos
lndn[m] has joined #nixos
matthewkenigsber has joined #nixos
tilcreator has joined #nixos
mindtree[m] has joined #nixos
a4wc6n[m] has joined #nixos
Avoozl[m] has joined #nixos
nh2[m] has joined #nixos
doomer[m] has joined #nixos
nikola[m] has joined #nixos
nilsirl[m] has joined #nixos
nikivi[m] has joined #nixos
mkg20001 has joined #nixos
omasanori[m] has joined #nixos
octowan[m] has joined #nixos
ongy[m] has joined #nixos
paalped[m] has joined #nixos
mica[m] has joined #nixos
cab404[m] has joined #nixos
back25[m] has joined #nixos
clefru_mm has joined #nixos
colmeka has joined #nixos
callahad[m] has joined #nixos
cchalc[m] has joined #nixos
chinmayxd[m] has joined #nixos
pinage404[m] has joined #nixos
c0d3x[m] has joined #nixos
regnat has joined #nixos
rednaZ[m] has joined #nixos
roberth has joined #nixos
ryantm has joined #nixos
yurb has joined #nixos
das-g[m] has joined #nixos
shu9 has joined #nixos
Amit[m] has joined #nixos
siraben has joined #nixos
srid has joined #nixos
slabity has joined #nixos
sjn[m] has joined #nixos
DanP[m] has joined #nixos
ecou[m] has joined #nixos
fatjedi[m] has joined #nixos
felschr[m] has joined #nixos
demoulin[m] has joined #nixos
srasu[m] has joined #nixos
ThaEwat has joined #nixos
the_rajsun[m] has joined #nixos
bjtitus[m] has joined #nixos
duktus[m] has joined #nixos
thefloweringash has joined #nixos
theduke has joined #nixos
timokau[m] has joined #nixos
habbasi[m] has joined #nixos
flip[m] has joined #nixos
kc[m] has joined #nixos
unclechu has joined #nixos
unrooted[m] has joined #nixos
ArtemVorotnikov[ has joined #nixos
MrShatteredMirro has joined #nixos
worldofpeace has joined #nixos
wak-work has joined #nixos
grahamc[m] has joined #nixos
Yakulu[m] has joined #nixos
hr[m] has joined #nixos
helithumper[m] has joined #nixos
hjulle has joined #nixos
ghasshee[m] has joined #nixos
DavHau[m] has joined #nixos
jfaassen[m] has joined #nixos
ialhamad[m] has joined #nixos
bourbon has joined #nixos
aanderse has joined #nixos
jlv has joined #nixos
yusdacra[m] has joined #nixos
georgyo[m] has joined #nixos
inlaw[m] has joined #nixos
zolk3ri[m] has joined #nixos
jumper149[m] has joined #nixos
kaiha[m] has joined #nixos
JaakkoLuttinen[m has joined #nixos
rycee has joined #nixos
CRTified[m] has joined #nixos
jbal[m] has joined #nixos
mt[m] has joined #nixos
steve[m] has joined #nixos
treed[m] has joined #nixos
lurpahi has joined #nixos
manu12[m] has joined #nixos
annemarie[m]2 has joined #nixos
srxl has joined #nixos
georg[m] has joined #nixos
juan[m] has joined #nixos
Valodim[m] has joined #nixos
rschulman has joined #nixos
ndarilek has joined #nixos
killercup[m] has joined #nixos
leonardp has joined #nixos
fjodor[m] has joined #nixos
li_matrix has joined #nixos
sum1[m] has joined #nixos
Ke has joined #nixos
cyberwolf[m] has joined #nixos
balsoft has joined #nixos
mudrii[m] has joined #nixos
mzumquadrat[m] has joined #nixos
neonfuz2 has joined #nixos
mnm[m] has joined #nixos
MElemental[m] has joined #nixos
Notkea[m] has joined #nixos
lukebfox[m] has joined #nixos
Jezhehim[m] has joined #nixos
q3k[m] has joined #nixos
ZerataX has joined #nixos
lahmilahsi[m] has joined #nixos
ntnkwmkmnw[m] has joined #nixos
jehova[m] has joined #nixos
Dandellion has joined #nixos
mullein[m] has joined #nixos
puzzlewolf has joined #nixos
Alex[m] has joined #nixos
fadenb[m] has joined #nixos
maxfieldl[m] has joined #nixos
yangm has joined #nixos
scaroo[m] has joined #nixos
tnias[m] has joined #nixos
phirsch has joined #nixos
qrilka[m] has joined #nixos
maralorn has joined #nixos
qbit[m] has joined #nixos
abcrawf has joined #nixos
ma27[m] has joined #nixos
njha[m] has joined #nixos
axx has joined #nixos
timclassic has joined #nixos
pheoxy has joined #nixos
ptotter[m] has joined #nixos
tristan[m] has joined #nixos
grin[m] has joined #nixos
michaelpj has joined #nixos
jonathan[m]3 has joined #nixos
leons has joined #nixos
sshow[m] has joined #nixos
billsun has joined #nixos
test128383[m] has joined #nixos
superchonk[m] has joined #nixos
nurelin has joined #nixos
stu_[m] has joined #nixos
SpaghettiCthulhu has joined #nixos
JJJollyjim has joined #nixos
hazel[m] has joined #nixos
sstreet[m] has joined #nixos
onny[m] has joined #nixos
musicmatze has joined #nixos
l33[m] has joined #nixos
philipp[m] has joined #nixos
theglenn888[m] has joined #nixos
timotheel-f[m] has joined #nixos
us3r[m] has joined #nixos
reyman[m] has joined #nixos
user_account[m] has joined #nixos
rnhmjoj has joined #nixos
anthony[m] has joined #nixos
ejpcmac has joined #nixos
nicolas[m] has joined #nixos
quidome[m] has joined #nixos
yeongsheng_tan[m has joined #nixos
ugubok[m] has joined #nixos
toto[m] has joined #nixos
verum_alpha[m] has joined #nixos
tyrion-mx has joined #nixos
AntonioYang[m] has joined #nixos
dxb[m] has joined #nixos
stuebinm[m] has joined #nixos
menelaos[m] has joined #nixos
daddy_james[m] has joined #nixos
zrsk[m] has joined #nixos
zie[m] has joined #nixos
boogiewoogie[m] has joined #nixos
risson[m] has joined #nixos
AmitLevy[m] has joined #nixos
jojosch|Johannes has joined #nixos
IslandUsurper[m] has joined #nixos
milessanctimicha has joined #nixos
spudly[m] has joined #nixos
ipv6[m] has joined #nixos
matute_[m] has joined #nixos
kueckieben[m] has joined #nixos
Preisschild has joined #nixos
vpfeiffer[m] has joined #nixos
Rian[m] has joined #nixos
govanify has joined #nixos
pachumicchu has joined #nixos
bloodyfish[m] has joined #nixos
schmittlauch[m] has joined #nixos
Dennis[m]2 has joined #nixos
esclear_m has joined #nixos
evils[m] has joined #nixos
faya01[m] has joined #nixos
nyu[m] has joined #nixos
<lb5tr>
yikes
<johanot>
pn: it should be possible for nix eval to call toplevel functions in files implicitly with --arg and --argstr
<tobiasBora>
Oh, I just realized I got an error due to another install with nix-env. But I'm still curious to know if it's possible to declare the priority of a package in my home.nix file directly
<johanot>
in fact, "nix eval --argstr name johanot -f test.nix name --json" works just fine, as long as I ask for the "name" attr and not the entire attrset. Thanks srhb .. Still puzzled though :D
<mgdm>
Hello. I'm using home-manager on macOS. I'm wondering if I can add a single binary from a package to my path, without the remainder of them appearing? I want to have `shuf` from coreutils available, without replacing macOS's own `ls` etc
<{^_^}>
[nixos-homepage] @samueldr pushed 2 commits to master: https://git.io/JTR0E
<{^_^}>
[nixos-homepage] @samueldr pushed 0 commits to fix/623-ec2-launch: https://git.io/JTR0u
<ryantm>
The Final Comment Period for RFC 0072 has started and, barring any blocking issues, will be merged after 2020-10-30. Your opinions, comments, and approvals are welcome!
<tobiasBora>
Hum, steam-run is not just a buildFHSEnv + some packages? Because openCL (via clinfo) works inside a buildFHSEnv but not inside steam-run, and I can't explain why
kirc has quit [Quit: kirc]
pn-mobile has quit [Remote host closed the connection]
<tobiasBora>
Is it possible to load all libraries from xorg at once? I lose quite a lot of time to add one by one all dependencies of xorg, like libICE, libSM...
domogled1 has joined #nixos
fendor has quit [Ping timeout: 258 seconds]
domogled has quit [Ping timeout: 260 seconds]
domogled has joined #nixos
domogled1 has quit [Ping timeout: 260 seconds]
tsruser has joined #nixos
meh` has joined #nixos
cristi_ has joined #nixos
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #101173 → vkquake: fix the build → https://git.io/JTRrh
cfinch__ has quit [Ping timeout: 258 seconds]
fendor has joined #nixos
<tobiasBora>
I'm running in a buildFHSUserEnv a program that uses Qt, but when it runs it gives error like xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb, Qt: Failed to create XKB context!
<tobiasBora>
Use QT_XKB_CONFIG_ROOT environmental variable to provide an additional search path, add ':' as separator to provide several search paths and/or make sure that XKB configuration data directory contains recent enough contents, to update please see http://cgit.freedesktop.org/xkeyboard-config/ .
costrouc has joined #nixos
<tobiasBora>
I guess I need something like wrapQtAppsHook, but not sure how to do for a prebuilt binary in a FHSUserEnv
tsruser has quit [Ping timeout: 256 seconds]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
meh` has quit [Ping timeout: 264 seconds]
<evanjs>
Wondering if anybody had thoughts on the source build I got working for #101048
<pickfire>
I mean as in there are some issue with alt key with kakoune, people asked me to test with other VTE based terminals.
<{^_^}>
[nixpkgs] @roberth merged pull request #101123 → [20.09] spooles: fix build on darwin → https://git.io/JTBAX
<{^_^}>
[nixpkgs] @roberth pushed 2 commits to release-20.09: https://git.io/JTRQx
sigmundv has quit [Ping timeout: 240 seconds]
<pickfire>
Termite is there but terminfo is incorrect.
<pickfire>
So still broken, cannot even open editor.
<samueldr>
pickfire: just tested sakura, I have the same output in the console, but sakura works
<pickfire>
samueldr: It does not work on my machine.
<samueldr>
what I want to say here is that the issue is probably more subtle, and not related to the VTE-WARNING
<pickfire>
samueldr: Try running `nix shell nixpkgs#sakura` than `sakura`?
<pickfire>
Ah but it does not start at all and no output, maybe I need to check the logs. T_T
<pickfire>
Okay, confirmed vte bug. Terminator have the same issue as lxterminal alt thing.
<samueldr>
same results with `nix shell` and the flakes syntax
<samueldr>
which is not surprising
Philonous has joined #nixos
vldn has joined #nixos
<pickfire>
Same results?
<pickfire>
It crashed too?
<samueldr>
works just as under nix-shell
<pickfire>
Huh? How come?
<pickfire>
So weird.
<samueldr>
because nix-shell and nix shell are not isolation tools
* dutchie
feels so dirty for solving a binary issue by `sudo mkdir /lib64 && sudo cp /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib64/ld-linux-x86-64.so.2 /lib64` and not patchelf
<samueldr>
it could be multiple things
<pickfire>
I thought nixos does not have the issue "it works on my machine".
<pickfire>
How to do isolation with nix shell?
<pickfire>
I didn't saw --pure for nix shell.
<samueldr>
--pure only clears the environment for `nix-shell`
<pickfire>
I bet nix build does not have isolation too.
<vldn>
someone knows if it`s possible to build a declarative lutris nixfile (eg installs declared installers from lutris.net on first Start and checks if already exists)
<samueldr>
impurities all around can still exist, e.g. your configuration files, using X11 vs. wayland, etc
<samueldr>
dutchie: as you should
<samueldr>
:)
philr has quit [Ping timeout: 240 seconds]
<pickfire>
samueldr: I thought --pure solves the issue of having impurities?
<samueldr>
If this flag is specified, the environment is almost entirely cleared before the interactive shell is started, so you get an environment that more closely corresponds to the “real” Nix build. A few variables, in particular HOME, USER and DISPLAY, are retained. Note that ~/.bashrc and (depending on your Bash installation) /etc/bashrc are still sourced, so any variables set there will affect the interactive shell.
<samueldr>
from `man nix-shell`
<samueldr>
it does help a lot
<samueldr>
but it's not isolating the process from your filesystem
ddellacosta has joined #nixos
sigmundv has joined #nixos
<abathur>
samueldr: this may just be an obvious thing everyone else knows, but is there a clear way to do something incrementally helpful like add failing tests in a case like this?
<samueldr>
abathur: "cases like this" what kind?
<samueldr>
I guess it all depends on what kind of cases "like this"
<abathur>
sorry; this sakura vte discussion
<samueldr>
I guess the first thing to do would be to know what the issue is
<samueldr>
so to have a reproducer
<abathur>
or maybe I'm misreading and yours was working fine?
<samueldr>
it was working fine here
<samueldr>
(AFAICT)
<pickfire>
Not working fine here.
<samueldr>
I had a terminal window
<pickfire>
sakura, guake, termite broken
<pickfire>
I bet if I try another 5 terminals 3 of them could be broken.
<abathur>
oh ok, sorry; I mis-read
<abathur>
my question still exists, but "cases like this" would be: things that build but don't run
<samueldr>
checkPhase is the existing "canonical" way to handle this
<samueldr>
assuming the software can be "checked" :)
<pickfire>
Wow, tilda works. I am surprised the terminal looks cool.
<pickfire>
Or maybe I just happened to choose the few broken ones.
<samueldr>
there was an effort, not sure what came of it, to try and make GUI software tests during nix-build
<{^_^}>
[nixpkgs] @erictapen opened pull request #101180 → opensc: patch for CVE-2020-26570, CVE-2020-26572 → https://git.io/JTRdu
<samueldr>
another option is more nixos tests that are available through the packages passthru.tests attribute
<samueldr>
but those are hard to actively test
<samueldr>
"those", being GUI software
<pickfire>
I wonder how does people even test terminals.
<samueldr>
good question
<samueldr>
ideally we'd re-use whatever setup upstream has for testing
<abathur>
nod, I guessed checkPhase would be the answer, but I guess there's a risk of stomping on any test suite that is getting run automatically by the builder; I know nixos tests also exist but have never looked closely and have no grok :)
<pickfire>
Screenshot, open up a terminal, screenshot, send ctrl-d, check exit code, compare screenshot?
<samueldr>
abathur: running custom tests in postCheck would help
<pickfire>
Is X server even running on the test server?
<samueldr>
it... depends...
<samueldr>
nix builds _are_ isolated
<samueldr>
(comparatively to nix-shell not being)
<clever>
the nixos tests take a configuration.nix
<clever>
so you can just enable the xserver
<samueldr>
yeah, if you use a _nixos_ test
<samueldr>
since that runs a VM
<pickfire>
Then I can't do that on a pi.
<abathur>
I guess there are probably test suites for like VT* and XTerm compliance?
ManiacOfMadness has joined #nixos
<pickfire>
But yeah, I though the default nix commands are sandboxed.
<samueldr>
oh, that wasn't on x86_64 that it failed?
<pickfire>
No
<pickfire>
x86_64 VM
<samueldr>
ah, I see
<samueldr>
abathur: yeah, there is IIRC
<pickfire>
But if I got nixos working in 8GB, up and running. I could try that out on pi next time.
fresheyeball has joined #nixos
<pickfire>
Right now it is working on the VM, and I am packaging lxde.
<pickfire>
Just some stuff looks out of shape, I don't know why lxpanel is halfed.
<{^_^}>
[nixpkgs] @thoughtpolice pushed 2 commits to master: https://git.io/JTRFo
ewfkl4t has joined #nixos
ewfkl4t has left #nixos [#nixos]
<pickfire>
Oh no
<pickfire>
Home manager does not work with nix profile
<pickfire>
Need to check.
alp has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @zakame opened pull request #101182 → perlPackages.LinuxInotify2: add description/license to meta → https://git.io/JTRbL
<simonpe^^>
what is the preferred way of getting the directory of the file used to start a nix-shell? i.e. I want to export an env var that points to the root of the project where the shell.nix is
<simonpe^^>
in the shellHook
<samueldr>
simonpe^^: DIR="${toString ./.}" # assuming this is in shellHook
<samueldr>
./[...] in a nix expression is always relative to where the expression resides
<simonpe^^>
samueldr: wouldn't that put it in the /nix/store ?
<samueldr>
not with the toString
<simonpe^^>
ah ok, thx
<samueldr>
otherwise, yes, you can test it and you'll see that ./. has been put in the store :)
<samueldr>
(I actually checked before answering because I wasn't totally sure)
<pickfire>
How do we install nix-env and nixUnstable at the same time?
<simonpe^^>
yep, it worked beautifully
<pickfire>
Oh wait, I guess I can just remove profile.
alp has joined #nixos
<pickfire>
Oh no, after I removed the profile my editor is gone.
<pickfire>
T_T
vldn has quit [Ping timeout: 272 seconds]
leotaku has joined #nixos
<pickfire>
clever: I accidentally deleted /nix/var/nix/profiles/per-user/pickfire/profile, how do I revert that?
<pickfire>
I believe I removed the link.
leotaku_ has quit [Ping timeout: 260 seconds]
Henson has joined #nixos
<Henson>
if I'm in a nix-shell, is there an easy way to find the path for the shell's closure so I can copy it over to another system?
<{^_^}>
Henson: 5 days, 9 hours ago <clever> sure!
<pickfire>
Henson: closure?
* Henson
looks at {^_^}
<pickfire>
which $TERM
<__red__>
Ah Henson!
<Henson>
pickfire: like the derivation for the environment that gets built
<__red__>
I really enjoyed your talk - thank you for doing it.
<__red__>
my team and I talked about it for hours
<Henson>
__red__: I'm glad you enjoyed it!
<__red__>
admittedly, some of them branched into conversations about the sport itself
<__red__>
... - but they were receptive
<Henson>
__red__: oh really? Let me know if you'd like to pick my brain about anything or know more details.
kirc1 has joined #nixos
<Henson>
__red__: it's interesting how pervasive baseball terminology and idioms are in every day life, at least in North American culture.
<clever>
pickfire: its a symlink to the latest profile-???-link in the same dir
<clever>
Henson: you asked about the kexec stuff, and DC'd, so i had {^_^} pass along the msg
Chiliparrot has joined #nixos
<clever>
Henson: but you never spoke infront of {^_^}, so it didnt know you had returned!
<pickfire>
clever: Oh
<pickfire>
I just found it.
<Henson>
clever: oh, I didn't know {^_^} could do that!
sigmundv_ has joined #nixos
<pickfire>
Luckily it is a symbolic link.
<clever>
,tell Henson like this
<{^_^}>
clever: I'll pass that on to Henson
* Henson
pats {^_^}
<{^_^}>
Henson: 10 seconds ago <clever> like this
<Henson>
{^_^}: thank you!
<pickfire>
clever++
<{^_^}>
clever's karma got increased to 524
<pickfire>
Even though I found it out while you give the comment.
<pickfire>
But I wonder if I can stick home-manager to use nix but system to use nixUnstable?
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #101185 → gitAndTools.lab: wrap xdg-open to fix `lab mr browse` → https://git.io/JTRAx
<clever>
pickfire: probably
<supersandro2000>
pickfire: it is nix. ofc you can. does not mean you should
<{^_^}>
[nixpkgs] @erictapen pushed to master « opensc: patch for CVE-2020-26570, CVE-2020-26572 »: https://git.io/JTRp7
<{^_^}>
[nixpkgs] @erictapen pushed to release-20.09 « opensc: patch for CVE-2020-26570, CVE-2020-26572 »: https://git.io/JTRhT
kreyren_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @erictapen pushed to release-20.03 « opensc: patch for CVE-2020-26570, CVE-2020-26572 »: https://git.io/JTRh3
domogled has quit [Ping timeout: 260 seconds]
<pumpy>
after i run `nix-channel --add ... \n nix-channel --update` i try to run `nix-shell '<home-manager>' -A install` i but it errors error: file 'home-manager' was not found in the Nix search path. `nix-channel --list' shows a home-manager channel. my $NIX_PATH is
<pumpy>
/home/pumpy/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels. i tried to source `$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh` like manual says but file not found what's wrong?
<pickfire>
pumpy: Maybe you didn't get to install it?
cfinch__ has joined #nixos
<pickfire>
pumpy: Are you following the correct instruction?
<pickfire>
The default instruction is for unstable I think.
domogled has joined #nixos
thelounge81 has joined #nixos
erasmas has joined #nixos
ManiacOfMadness has quit [Ping timeout: 265 seconds]
srhm has quit [Read error: Connection reset by peer]
kirc has quit [Quit: kirc]
<{^_^}>
[nixpkgs] @jonringer merged pull request #101103 → [20.09] nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers from DHCP → https://git.io/JTB8w
<{^_^}>
[nixpkgs] @jonringer pushed commit from @rissson to release-20.09 « nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers from DHCP »: https://git.io/JT0ep
ericsagnes has quit [Ping timeout: 272 seconds]
kirc has joined #nixos
octowan[m] has quit [Quit: Idle for 30+ days]
dominicusin[m] has quit [Quit: Idle for 30+ days]
kirc has quit [Client Quit]
<__red__>
I have the strangest bug. If I switch my displayManager and desktopManager, nixos-rebuild switch and then pkill X to terminate my session... I get the new GDM and Desktop
<__red__>
but when I reboot - it goes back to my old one
<__red__>
any suggestions as to how I can debug what appears to be nixos-rebuild switch not actually switching?
kirc has joined #nixos
<__red__>
switching post-reboot that is
dadada_ has quit [Ping timeout: 256 seconds]
<clever>
__red__: is /boot correctly mounted?
lndn[m] has quit [Quit: Idle for 30+ days]
kirc has quit [Client Quit]
<__red__>
yes
jehova[m] has quit [Quit: Idle for 30+ days]
<__red__>
I guess I should look at the timestamp on those files
kirc has joined #nixos
<clever>
__red__: what does `mount` say about /boot/ ?
<__red__>
/dev/sda1 on /boot type ext2 (rw,relatime,errors=continue,user_xattr,acl)
<__red__>
and yes, grub.cfg wasn't updated
<clever>
__red__: what fs type is / ?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<clever>
and was sda1 mounted to /mnt/boot when you did nixos-install?
dadada_ has joined #nixos
<__red__>
so - I moved this from a physical computer to a virtual machine
<clever>
did you just copy the entire disk?
<__red__>
so I had to remount and re-run nixos-install to build a new hardware-.nix etc
<{^_^}>
[nixpkgs] @jonringer pushed commit from @JohnTitor to master « rust-bindgen: 0.54.1 -> 0.55.1 »: https://git.io/JT0fa
ericsagnes has joined #nixos
<__red__>
is there a way to force it?
<clever>
__red__: --install-bootloader, ^
<__red__>
thx
<__red__>
testing
kirc has joined #nixos
<__red__>
oh - that's good
<__red__>
now I have a warning
fendor has quit [Remote host closed the connection]
<__red__>
"Warning: do not know how to make this configuration bootable; please enable a boot loader"
<clever>
__red__: then you forgot to do boot.loader.grub.enable = true;
<clever>
__red__: you likely also want boot.loader.grub.device = "/dev/sda";
cole-h has joined #nixos
kirc has quit [Client Quit]
<__red__>
You're right - it's false.
<{^_^}>
[nixpkgs] @jonringer opened pull request #101188 → python3Packages.tensorflow: break if gast not correct → https://git.io/JT0fx
<__red__>
I have no idea how thhat happened
<__red__>
but thank you
kirc has joined #nixos
sigmundv_ has quit [Ping timeout: 258 seconds]
fresheyeball has quit [Quit: WeeChat 2.7.1]
kirc has quit [Client Quit]
<jasom>
Whats the advantage of fetchFrom{GitHub,GitLab,Gitiles,RepoOrCz} over just fetchgit?
<simpson>
jasom: There's a subsystem in nixpkgs which manages mirrors for source code. While I don't think it's *currently* used for GH or other large git hosts, it could be in the future.
<{^_^}>
[nixpkgs] @AmineChikhaoui opened pull request #101189 → gcc9: add patches required for target musl → https://git.io/JT0J7
hmpffff has quit [Ping timeout: 272 seconds]
xacktm has joined #nixos
<DigitalKiwi>
isn't there a problem with fetchgit on github for submodules that the github specific one solves?
hmpffff has joined #nixos
<jasom>
git submodules seem to always be *not quite* the answer to problems that I have
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<{^_^}>
[nix] @mkenigs opened pull request #4168 → Make bash non-interactive for nix develop --phase → https://git.io/JT0Lo
kirc has quit [Quit: kirc]
<evanjs>
more broad question -- what would be the best way to package something like v8eval -- which contains bindings for multiple languages, and is thus available as a gem, pypi module, etc
<infinisil>
cole-h: I just didn't feel motivated to open it again, yet :)
pinpox has quit [Client Quit]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JT0ZF
<cole-h>
Well, if you do reopen it sometime around the end of the year/beginning of next year, I might be able to offer my assistance :D
ris has joined #nixos
pinpox has joined #nixos
pinpox has quit [Client Quit]
<samueldr>
infinisil: as I think I stated previously, that UX RFC is important to me, if I can help in any way, I'll try
pinpox has joined #nixos
pinpox has quit [Client Quit]
eoli3n__ has joined #nixos
eoli3n_ has quit [Ping timeout: 264 seconds]
<jasom>
I spent *hours* last night trying to get a piece of software I maintain working on nixos, only to discover that zeromq is hopelessly broken when built with cmake, which is how nixos does it. Submitted bug upstream.
<jasom>
or whatever its called when you have autogen.sh/Makefile.am/configure.ac; the various build tools that start with "auto" sometimes confuse me with their naming scheme
<simpson>
autoconf and automake, collectively called the autotools. The nomenclature comes from when a vendor would ship both a Makefile and also a ./configure script; the autotools generate both.
thelounge81 has joined #nixos
vldn has quit [Ping timeout: 246 seconds]
<jasom>
It looks to my eye like they started with autotools, added cmake to support more platforms, and made some mistakes when porting some tests to cmake, and never noticed because the linux devs probably still use autotools
<simpson>
Happens.
<jasom>
yup
thc202 has quit [Ping timeout: 240 seconds]
<__red__>
I get confused by pkg-info and pkginfo all the time
srhm has joined #nixos
<{^_^}>
[rfcs] @dasJ opened pull request #79 → [RFC 0079] No more direct pushes to master and release branches → https://git.io/JT0c3
thelounge81 has quit [Ping timeout: 265 seconds]
<{^_^}>
[nixpkgs] @samueldr opened pull request #101204 → rsync: Work around upstream cross-compilation issue → https://git.io/JT0cn
mjsir911 has quit [Quit: Goodbye, World!]
kirc has joined #nixos
ninjin has quit [Remote host closed the connection]
mjsir911 has joined #nixos
ninjin has joined #nixos
kirc has quit [Quit: kirc]
kirc has joined #nixos
kirc has quit [Client Quit]
alp has joined #nixos
rupicap has joined #nixos
thelounge81 has joined #nixos
wallacer3 has joined #nixos
wallacer3 has quit [Max SendQ exceeded]
wallacer3 has joined #nixos
jdnixx has joined #nixos
<jdnixx>
anyone use monero-gui?
<jdnixx>
I'm getting `execvp: No such file or directory`
<jdnixx>
yesterday it was showing "could not find the application monero-gui-wallet`
<rupicap>
hi, I want to drop into a shell with GHCJS. I used `nix-shell -p haskell.compiler.ghcjs` for this. It works fine, but it takes a lot of time. I thought that everything in nixpkgs (I use the nightly channel) is cached?
noudle has joined #nixos
<jdnixx>
i'm on unstable so I assumed some bugs were being worked out but I didn't see any issues on nixpkgs
<rupicap>
s/nightly/unstable
<jdnixx>
rupicap: everything's cached on the cache website, but it needs to download the binaries
<duairc>
I'm trying to set a value in systemd.network.networks.40-eth0, but it's simply having no effect.
wallacer3 has quit [Read error: Connection reset by peer]
<duairc>
In an attempt to debug this further, in the same file (in which other settings do take effect), I set: `systemd.network = mkOverride 0 (throw "foo");`
<duairc>
That still doesn't do anything
<duairc>
What am I missing here, why is systemd.network seemingly being ignored?
<rupicap>
jdnixx: I see lots of compilation of haskell code, like `[153 of 492] Compiling Coercion ( compiler/types/Coercion.hs, dist/build/Coercion.o )`
<{^_^}>
[nixpkgs] @andir pushed 4 commits to release-20.03: https://git.io/JT0Wc
<duairc>
Ah FFS I figured it out — it's because I was combining with another bit of config with // instead of lib.recursiveUpdate, and the other bit of config had set systemd stuff
<clever>
duairc: lib.mkMerge is better for nixos config
<clever>
duairc: recursiveUpdate wont properly deal with merging list type things
<{^_^}>
[nixpkgs] @stigtsp merged pull request #101182 → perlPackages.LinuxInotify2: add description/license to meta → https://git.io/JTRbL
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
MmeQuignon has quit [Ping timeout: 246 seconds]
MmeQuignon has joined #nixos
jabster28 has quit [Read error: Connection reset by peer]
shibboleth has joined #nixos
shibboleth has quit [Remote host closed the connection]
<pumpy>
anyone use ansible to work with nixos? im trying to run `home-manager switch` as a user (using become: yes and become_user: targetuser) and on the ansible task i specify environment: NIX_PATH: '~/.nix-defexpr/channels:$NIX_PATH' but it errors that home-manager command not found
raboof has joined #nixos
<lordcirth>
pumpy, why would you want to use ansible?
shibboleth has joined #nixos
<cole-h>
Did you install home-manager on that user?
<pumpy>
targetuser has home-manager installed ya
<pumpy>
lordcirth 'because'
<{^_^}>
[nixpkgs] @rtburns-jpl opened pull request #101208 → yamale: init at 3.0.4 → https://git.io/JT00f
<gchristensen>
I haven't done anything with cuda since then :x
<pinpox>
dminuoso: hehe, I tried to use it, nixos-rebuild told me what to do: warning: The option `docker-containers' defined in `/etc/nixos/configuration.nix' has been changed to `virtualisation.oci-containers' that has a different type. Please read `virtualisation.oci-containers' documentation and update your configuration accordingly.
<infinisil>
Idea: What if nixpkgs had a binary -> package mapping
<infinisil>
infinisil: What for?
<infinisil>
Good question, I'm not sure myself
zupo has quit [Ping timeout: 256 seconds]
{`-`}_ is now known as {`-`}
civodul has joined #nixos
zupo has joined #nixos
justanotheruser has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @lostnet opened pull request #101214 → ghc:8.10.2Binary bootstrap for 8.8 on aarch64 (NixOS#97407) → https://git.io/JT0wH
gxt has quit [Remote host closed the connection]
gxt has joined #nixos
justanotheruser has joined #nixos
<{^_^}>
[nixpkgs] @TredwellGit opened pull request #101215 → ghostscript: 9.52 -> 9.53.3 and jbig2dec: 0.18 -> 0.19 → https://git.io/JT0rG
codygman has quit [Ping timeout: 260 seconds]
<cole-h>
infinisil: Would that supercede nix-index + nix-locate?
codygman has joined #nixos
<infinisil>
cole-h: Not really, because that would only be for binaries. Also it would probably be manual
<infinisil>
It would allow using this info during eval time. So e.g. you could say `pkgs.binaryPath "bash"` which would turn to `${pkgs.bash}/bin/bash`
<infinisil>
But I'm not sure how useful that is
<cole-h>
What about `pkgs.bashInteractive`?
codygman has quit [Read error: Connection reset by peer]
<gchristensen>
eeeeek
codygman has joined #nixos
<gchristensen>
I don't like that, but being able to say ${pkgs.bash,bin/bash} -> I'd like that
<gchristensen>
and have the nix builder error if bin/bash didn't exist in pkgs.bash at build time
kirc has joined #nixos
<{^_^}>
[nixpkgs] @i077 opened pull request #101216 → todoist-electron: 1.23.0 -> 1.24.0, update license, use desktop icon → https://git.io/JT0r6
<infinisil>
gchristensen: Hm neat
<gchristensen>
right now I implement this check manually a lot of places, and it is really expensive and annoying :(
<infinisil>
And this could be combined with multiple outputs
<{^_^}>
[nixpkgs] @hardselius opened pull request #101217 → nodePackages.fauna-shell: init at 0.11.5 → https://git.io/JT0rx
<infinisil>
So e.g. we could define an output mapping somewhere, saying that bin/* gets put into the "bin" output. Then when you do ${pkgs.bash,bin/bash} it would automatically use ${pkgs.bash.bin}/bin/bash
__monty__ has quit [Quit: leaving]
codygman has quit [Ping timeout: 258 seconds]
<infinisil>
No more guessing which output to use
<infinisil>
And no more lib.getBin & co.
codygman has joined #nixos
<gchristensen>
nice
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidv7 has quit [Ping timeout: 272 seconds]
<infinisil>
Not sure about the ${pkg,file} syntax though
<gchristensen>
pkg!file
<gchristensen>
pkgs.foo/file
<infinisil>
`pkg + "/bin/bash"`? Or too much magic?
<gchristensen>
nope pkgs.foo/file doesn't work
justanotheruser has quit [Ping timeout: 260 seconds]
evade has quit [Ping timeout: 260 seconds]
<infinisil>
`pkgs.bash + "/bin/bash"` could be a special "+" operator that does what we want
<infinisil>
Similar to how + already works specially on paths
mananamenos has quit [Ping timeout: 240 seconds]
<infinisil>
Though this would probably be pretty weird, because "${pkgs.bash}/bin/bash" wouldn't be the same as `pkgs.bash + "/bin/bash"` anymore
<gchristensen>
we could go old-school and bring back ~
<infinisil>
> ~
<gchristensen>
infinisil: see nix's f958bcdf1f9f66759a2512e4b7c0b0ba5647960a
<{^_^}>
error: syntax error, unexpected $undefined, at (string):345:1
<infinisil>
> ~/
<{^_^}>
error: syntax error, unexpected $undefined, at (string):345:1
<infinisil>
> ~/.
<{^_^}>
/var/lib/nixbot/.
* infinisil
checks commit
<infinisil>
:o
<gchristensen>
:)
<gchristensen>
but I don't think it ever hit the .drv format, which this would require
<{^_^}>
value is a string while a float was expected, at (string):345:1
<cole-h>
floating point strings :o
<infinisil>
I'd imagine it would have to be a string ^
<infinisil>
But I can see the problem
<infinisil>
Though I still don't think it's too bad
rupicap has quit [Remote host closed the connection]
<gchristensen>
pkgs.bash§/bin/sh
<cole-h>
pkgs.bash | bin/sh
<cole-h>
pkgs.bash -> "bin/sh"
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
<infinisil>
Hmmm
<infinisil>
I mean, ideally the package attributes themselves would have this information
<infinisil>
So what if
<infinisil>
pkgs.bash.file "bin/bash"
<infinisil>
file being a function that does the whole shebang
srhm has quit [Read error: Connection reset by peer]
<gustavderdrache>
pkgs.bash 🚲🏘 "bin/sh" (U+1F6B2 BICYCLE U+1F3D8 HOUSE BUILDINGS) - about the closest approximation i can get to representing "bike shed" with emoji
<gchristensen>
as long as it gets in to the derivation itself, sure
<gchristensen>
hah
<infinisil>
gustavderdrache: Lol
<gustavderdrache>
too literal? :D
<cole-h>
Hehehe
genevino has joined #nixos
<cole-h>
gustavderdrache++
<{^_^}>
gustavderdrache's karma now has 2 digits!
<cole-h>
:O
<gustavderdrache>
lol
<gustavderdrache>
i promise not to spend them both in one place
* infinisil
doesn't think what we're doing is bikeshedding at all btw
<viric>
infinisil: how is your thing with thunks and the memory leak and faster evaluation going?
<infinisil>
viric: It won't address memory leaks, but it's going pretty well, as you can see from the last comment ^ :)
cantstanya has joined #nixos
<cole-h>
Maybe `pkgs.bash.findFile "bin/bash"`
<gustavderdrache>
i was just about to suggest calling it find
<gustavderdrache>
that seems like the most illustrative of intent
<viric>
ahh
<cole-h>
pkgs.findFile "bin/bash" pkgs.bash
<infinisil>
It's not a search though
<gchristensen>
in that case, we'd (just) need a builtin to extend a string's context to include more detail
Akira[m] has joined #nixos
<gchristensen>
and it isn't find, really
<viric>
infinisil: I don't understand why I would need anything of what your PR says "we will be able to do this"
<gchristensen>
it can't find
<gustavderdrache>
what about something like pathFor?
<gustavderdrache>
pkgs.bash.pathFor "bin/sh"
<infinisil>
viric: Not sure what you mean
__Sander__ has quit [Quit: Konversation terminated!]
kirc has quit [Quit: kirc]
<viric>
infinisil: "allowing things like..." and there comes an expression I can't find an application for
<infinisil>
Oh yeah path > file
<gchristensen>
but again, this isn't finding or a trivial nix-only operation, this is a change to the nix derivation
<Akira[m]>
what am I supposed to use for `networking.interfaces.eth0.ipv4.addresses.*.prefixLength'. after anything I set, network is unreachable. just using DHCP works though.
<infinisil>
viric: Ah, see https://github.com/NixOS/nix/issues/4090, that includes some things this would allow. But in general it won't be a change that's super visible to users.
<viric>
if a file exists it doesn't mean it is what you expect to be, though
<gchristensen>
sure
<infinisil>
Oh yeah, doesn't this require such a change to the .drv file?
<infinisil>
Because in the end, the builders will have to check these files exist
<infinisil>
And you can only tell them about this through .drv's
<viric>
exist and are executable, or nolink, or directory, or a script, or. ..
<gchristensen>
infinisil: that is in the original proposal message and mentioned a handful of times over the past 35 minutes :)
<gchristensen>
orr maybe not quti eso literally, but I Have mentioned that
<infinisil>
Ah I see, I originally interpreted it as "either change the .drv or track more string context"
<infinisil>
But I think it's an s/or/and
<gchristensen>
exactly
<gchristensen>
it is both, string context and additional data in the drv
Darkmatter66_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
<infinisil>
Yeah
<viric>
gchristensen: do you have an example of such checks? What does your builder do with the outcome of the checks?
shibboleth has joined #nixos
<gchristensen>
it exits
<viric>
and wouldn't it do the same without any check?
Darkmatter66 has joined #nixos
<{^_^}>
[nixpkgs] @NeQuissimus opened pull request #101219 → beats: Include dashboards → https://git.io/JT0iT
<gchristensen>
no, it would continue with the build, allowing the dangling reference
<viric>
do you mean like emitting a shebang for a script?
<gchristensen>
sure
<infinisil>
Currently, you can do e.g. `#!${pkgs.bash}/bin/notbash` and it wouldn't notice the mistake until you run the script
caef^ has quit []
<viric>
Maybe the check for runtime references could be more clever
<infinisil>
The idea with this is that by using `#!${pkgs.bash.path "bin/notbash"}` (or so) it would notice this during building already
<gchristensen>
or ${pkgs.neovim}/bin/vim
<gchristensen>
viric: yeah but I'd really rather just abort the build early, than, say, build chromium and realize 30 minutes in that I typo'd on a lib
<viric>
well, if you say chromium for me it could be 24h
<gchristensen>
even worse :
<viric>
I understand - allow checking runtime references at build time.
<viric>
runtime references not triggered at build time, of course.
<viric>
I don't understand why the nixpkgs flake is more hermetic than nixpkgs
cr4y1 has quit [Max SendQ exceeded]
<cole-h>
because flakes were designed to be hermetic
cr4y1 has joined #nixos
<cole-h>
Nixpkgs wasn't
<viric>
what makes nixpkgs#hello more hermetic than hello in nixpkgs?
<viric>
nix build nixpkgs#hello vs nix build -A hello <nixpkgs>
<clever>
viric: `nix build -A hello <nixpkgs>` will impurely read config.txt from $HOME, along with overlays
cr4y1 has quit [Max SendQ exceeded]
<viric>
nixpkgs#hello doesn't have config or overlays?
cr4y1 has joined #nixos
<clever>
viric: i think the flake will ignore them
<viric>
and how is that different than nixpkgs without config or overlays?
<clever>
it should behave the same if the config and overlays are blank
<viric>
But I mean... we want config and overlays
<viric>
We could just remove them for nixpkgs and call it done
<viric>
My guess is that flakes solve differently the config/overlays, but I don't know how
<cole-h>
If you want config and overlays, you have to import nixpkgs yourself.
<{^_^}>
[nixpkgs] @andir merged pull request #49403 → qemu_test: disable features that are not needed for tests (closure 641 -> 335.3M) → https://git.io/fx7CZ