<dgpratt>
Seems to be going fine and making sense, but I'm wondering if there is a particularly good way to know what sort of machinations are necessary to perform in e.g. the installPhase script.
<dgpratt>
I mean, how did the author of that script discover that Kafka uses GNU grep and that it has to be wrapped in that manner? Trial and error?
ddellacosta has quit [Ping timeout: 246 seconds]
ddellaco_ has joined #nixos
h0m1 has quit [Quit: WeeChat 3.1]
h0m1 has joined #nixos
<Gaelan>
Is there a way to generate TOML from a nix expression?
<Gaelan>
I've found builtins.fromTOML, but grepping the Nix and Nixpkgs manual doesn't find an inverse
<tmciver>
Hello. Are there any good tutorials on setting a static IP in Nix? I've tried setting it up using info here: https://nixos.org/manual/nixos/stable/index.html#sec-ipv4 and setting useDHCP to false, but it does not seem to work.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates ยซ hackage-packages.nix: automatic Haskell package set update ยป: https://git.io/JYchO
<hexa->
you probably also want 'systemd.network.enable = true;`
<hexa->
anyway, I'm off for the night
<hexa->
\o
<tmciver>
Thanks again!
<tmciver>
gchristensen: what's nixos-generate-config? Does it generate an /initial/ config or generates config based on my config?
<dgpratt>
still trying to make sense of what this install script is doing: what is the point of wrapping a shell script to e.g. set JAVA_HOME when that would presumably be set in the environment already?
<gchristensen>
oh sorry I meant that for nobody in particualr
<gchristensen>
but itcreates a initial nixos config
<tmciver>
gchristensen: :) OK, thanks.
tejing has joined #nixos
ryantrinkle has joined #nixos
<tmciver>
The reason I'm trying to set a static IP is because I'm getting unexpected nameservers in /etc/resolv.conf but if someone knows a way I can get rid of them while using DHCP, I'd love to hear it.
<ryantrinkle>
whenever i update my system, opengl stuff stops working until i reboot (or maybe just restart X?); I suspect this is due to the loaded version of the nvidia driver and/or some part of X disagreeing with the one that the client apps are using
<ryantrinkle>
is there a way to pin that so that it doesn't change until later?
Negher has quit [Remote host closed the connection]
<ryantrinkle>
the output is: X connection to :0 broken (explicit kill or server shutdown).
Jd007 has quit [Quit: Jd007]
ris has quit [Ping timeout: 246 seconds]
CMCDragonkai has joined #nixos
acarrico has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
<ryantrinkle>
it looks like /run/opengl-driver should be involved in some way?
<tomberek>
who is good at understanding the new content-addressable system?
Guest55480 has quit [Ping timeout: 265 seconds]
<Gaelan>
tmciver: to expand on what gchristensen, it sort of does both - if you run it again, it will regenerate hardware-configuration.nix (based on your hardware and currently mounted filesystems), but won't touch your main configuration.nix. So if you're careful about not editing hardware-confguration.nix, you can use it to handle hardware changes
<Gaelan>
dgpratt: Not familiar with the Java infra in particular, but in general Nixpkgs avoids global configuration (like setting JAVA_HOME in your environment, or installing libraries to /usr/lib) in favor of hard coding specific store paths, which makes it possible to have software that depends on multiple versions of Java (and, conversely, means things can't break if your global JAVA_HOME breaks)
<tmciver>
Gaelan: ๐
haritz has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
Jd007 has joined #nixos
<dgpratt>
Thanks Gaelan. I tend to forget that in Nix land, if I have installed package A, which depends on package B, it is not necessarily the case that package B is also installed and configured in the environment.
haritz has joined #nixos
haritz has quit [Changing host]
haritz has joined #nixos
h0m2 has joined #nixos
<Gaelan>
dgpratt: yep, that takes a bit of getting used to
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
ryantrinkle has quit [Ping timeout: 246 seconds]
h0m1 has quit [Ping timeout: 240 seconds]
npec has joined #nixos
npec has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed to SuperSandro2000-patch-1 ยซ nixos/containers: update example path to match defaults ยป: https://git.io/JYCLB
Wizek has quit [Quit: Connection closed for inactivity]
<fuzzypixelz>
while building a cargo project with flakes/naersk, I get at the end "error: creating symlink from '/mnt/data/Projects/nix/eww/result.tmp-26163-1475353796' to '/nix/store/rgrfwyy8az7ah4k5xy6w5fpb37dnmgcg-eww-0.1.0': Function not implemented"
<cwnovusordoseclo>
I'm having some issues getting nixos to boot the installer on an xps-15. I get the installer menu then it fails on stage 1 in both legacy and uefi.
<cwnovusordoseclo>
I found this issue (and the drive isn't labeled as `NIXOS_ISO`), but I can't update the drive label due to `Bad magic number in super-block while trying to open /dev/sda1` https://github.com/NixOS/nixpkgs/issues/6265
<{^_^}>
#6265 (by lethalman, 6 years ago, closed): Cannot boot live cd
<cwnovusordoseclo>
the SD card was burned with dd to /dev/sda
ddellaco_ has quit [Remote host closed the connection]
ddellacosta has joined #nixos
ddellacosta has quit [Remote host closed the connection]
rubm has quit [Ping timeout: 260 seconds]
<samueldr>
try with a usb drive instead of an SD card
<samueldr>
it could be that the driver for the xps 15's SD card reader is missing from the iso image build
<kini>
Are there any plans to make `nixos-rebuild` call `nix build` instead of `nix-build`? I think the compact progress display shown by `nix build` would be nice to have for system rebuilds.
<samueldr>
6 years ago is a looong time here, and the label for the iso shouldn't be an issue
<samueldr>
kini: the `nix` cli tools would need to get stable first :)
orivej has quit [Ping timeout: 240 seconds]
<samueldr>
and yes, iirc
wentasah has quit [Quit: Bye]
sangoma has joined #nixos
<samueldr>
though those search terms don't really lend themselves to good results
<cwnovusordoseclo>
<samueldr "it could be that the driver for "> Booting with copytoram fails also. Bummer, I guess I gotta order a flash drive
palo has quit [Ping timeout: 240 seconds]
palo1 is now known as palo
<samueldr>
copytoram would need to read from the same storage the stage-1 (initrd, initramfs) doesn't know how to read from (if my assumption is good)
<cwnovusordoseclo>
I figured that might be the case, but I'm having trouble separating bios and installer in my mind. it obviously reads it enough to load the boot selector
<samueldr>
the odds are probably 50/50 that my assumptions are good, considering until recently it never had been tested with an sd card
<samueldr>
and it required drivers to be added to the stage-1
<cwnovusordoseclo>
FWIW I couldn't boot from an SD that I built on another nixos machine
<cwnovusordoseclo>
* FWIW I couldn't boot from an SD that I built on another nixos machine. Not sure what that means
<cwnovusordoseclo>
That makes no sense. I did a nixos-rebuild from another machine with most hradware supported and tried moving the sd card. that also failed
jmeredith has quit [Quit: Connection closed for inactivity]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
supersandro2000 has quit [Client Quit]
supersandro2000 has joined #nixos
<Aleksejs>
Hi, after I switched to 20.09, none of my scanners work with my system. scanimage -L shows nothing, also with sudo. My user is in the scanner group. I have hardware.sane and services.saned enabled and also added these backends: pkgs.sane-airscan pkgs.hplipWithPlugin pkgs.saneBackends
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main ยซ Automated team sync results. ยป: https://git.io/JYW3R
orivej has joined #nixos
<typetetris>
I am trying to do a fixed output derivation (the build needs to download something) and I keep getting "path <...> is not valid" at the end. (Otherwise the build succeeds.) What am I doing wrong? What can I do to make that work?
<contrun>
lukegb: It's quite OK. I am asking a more general problem of how to get unstable modules into a stable channel system. I think people may also want that.
<lukegb>
In general, you should just be able to add the specific module to your imports
<contrun>
I this specific case, there are some files I need to import, the nixos module and the pomerium derivation. I wonder if there is any easier way to do this. I mean just import the nixpkgs branch, and write my configuration.nix.
<phalrax>
I have grafana running on port 3000 but can't access it from other systems in my network because firewalld is blocking it,ย networking.firewall.allowedTCPPorts = [ 3000 ]; doesn't work though, any idea why?
<supersandro2000>
phalrax: it should be 0.0.0.0:3000
<supersandro2000>
otherwise it only listens on localhost
<supersandro2000>
the second is peer address port and I have no idea what it is doing
<phalrax>
ohh alright
<phalrax>
I thought the foreign address decides what it's listening to
ddellacosta has joined #nixos
FRidh has joined #nixos
zebrag has joined #nixos
<phalrax>
setting grafana to 0.0.0.0 worked, thanks
dev_mohe has joined #nixos
dev_mohe has quit [Client Quit]
ddellacosta has quit [Ping timeout: 268 seconds]
S0rin has quit [Ping timeout: 252 seconds]
S0rin has joined #nixos
griff__ has quit [Quit: griff__]
<gthm>
w/in 5
<dgpratt>
I'm using a command like this to enter a build environment for this package I'm trying to create: nix-shell $NIXPKGS --pure -A myPackage
<dgpratt>
how can I make the "which" command available in that environment without adding it to the package definition?
<dgpratt>
I tried to add "-p which" to the above, but it seems to change the context to the configured nixpkgs location instead of the repository referenced by $NIXPKGS
<aaabbbbbbbbbb>
But I get this error: Linking CXX static library ../../libgtestd.a Error running link command: No such file or directory
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
<Raito_Bezarius>
does anyone tried to install texlive-combined-full on nixos-unstable?
<Raito_Bezarius>
it seems like I have collision between `/nix/store/rvyz7k8xcqb4m4nm2jrz59aabvm1z5sk-texlive-combined-full-2020.20210109/bin/afm2pl' and `/nix/store/jfnkfrrjgvmmhsypg38s0w5ll17729da-texlive-combined-2020/bin/afm2pl'
<Raito_Bezarius>
well it seems like home-manager-related
<Raito_Bezarius>
on a system wide install, it just works
<_virkony_>
Raito_Bezarius: I would expect that texlive-combined-full supressed textlive-combined. I.e. in your profile you should build symlinks only from one of them, but not both
<Raito_Bezarius>
_virkony_: I only have one instance of texlive.combined.scheme-full
stree has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
jmeredith has joined #nixos
<s1341_>
how od i rebase a PR from master to staging cleanly?
<_virkony_>
I suspect that either nix-env -q --installed or home-manager packages list texlive-combined. Attempt to install texlive-combined-full on top of that results in conflict either because it is listed alongside with texlive-combined package in home-manager or when you use nix-env -i
<s1341_>
nm. owrked it out: git rebase --onto $(git merge-base origin/master origin/staging) master
jimmie_ has joined #nixos
ddellaco_ has joined #nixos
lordcirth__ has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
jimmiehansson has quit [Ping timeout: 240 seconds]
lordcirth_ has quit [Ping timeout: 245 seconds]
_virkony_ has quit [Ping timeout: 246 seconds]
ddellaco_ has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
xourt has joined #nixos
gustavderdrache has joined #nixos
alexherbo28 has joined #nixos
orivej has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo28 is now known as alexherbo2
futile has joined #nixos
<supersandro2000>
dgpratt: the shell should not have sandbox and you can just use the absolute path
ddellaco_ has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
Qwerky has joined #nixos
<dgpratt>
thanks supersandro2000 but I'm afraid I'm not sure I follow you; are you suggesting to omit "--pure" from the shell command and then "which" is available from the external environment?
<viric>
the asterisk module is meant to hold the user passwords in the store?
_virkony_ has joined #nixos
graf_blutwurst has quit [Remote host closed the connection]
<sterni>
viric: uhhh holding user passwords in store is not a good idea since it's world readable
<viric>
that's why I wonder maybe I don't understand something of asterisk
<ToxicFrog>
Asterisk the PBX server?
<viric>
yes
<ToxicFrog>
services.asterisk.confFiles has an example with passwords in it, but that's stored in your nixos configuration, not in the store
<ToxicFrog>
(i.e. /etc/nixos, which only needs to be readable by root unless you're doing something weird like me)
<viric>
Whatever is in nixos configuration ends up in the store, no?
<ToxicFrog>
And while I haven't dug into the asterix module, I suspect the config files derived from that configuration are written to ~asterix or similar.
<viric>
All strings in configuration.nix will end up in the store or not used at all
<viric>
how would a string go from configuration.nix to somewhere else without going through the store?
<supersandro2000>
dgpratt: --pure is about the shell. It does not enable sandboxing IIRC
jnbrains has joined #nixos
<futile>
I have a shell.nix with some buildInputs, and then build multiple C/C++-projects in this nix-shell. One of these projects I want to link statically (which it supports), but when I add `glibc.static` as a buildInput, the other projects also try to link against a static version of, e.g., libc.a, which they should not. Is there a way to make both
<futile>
requirements work?
jnbrains has left #nixos [#nixos]
S0rin has quit [Ping timeout: 246 seconds]
waleee-cl has joined #nixos
<supersandro2000>
I think you need to split the derivations for static and non static
<exarkun>
is there some other similar tool that works?
<supersandro2000>
don't think so but python2 is not well maintained
saschagrunert has quit [Remote host closed the connection]
ddellaco_ has quit [Remote host closed the connection]
rj has joined #nixos
saschagrunert has joined #nixos
ddellaco_ has joined #nixos
slack1256 has joined #nixos
k0t0n has joined #nixos
Jd007 has joined #nixos
phalrax has quit [Quit: Connection closed]
<futile>
@supersandro2000 thanks! Is there a way that allows me to only require one shell.nix/derivation? The build process that runs is a bit more involved, and requiring different environments/shell.nix's for different steps of the build would be quite impractical
S0rin has joined #nixos
saschagrunert has quit [Remote host closed the connection]
saschagrunert has joined #nixos
griff__ has quit [Quit: griff__]
<supersandro2000>
futile: maybe you can pass the configure scripts/make/whatever which libraries to use
<dgpratt>
supersandro2000: oh, I think I understand what you're saying now, use the absolute path to "which" (e.g. "which which") in the external environment; seems kinda obvious now that you suggest it :)
<supersandro2000>
dgpratt: yeah. The sandbox strips that easy escape away.
saschagrunert has quit [Remote host closed the connection]
saschagrunert has joined #nixos
<futile>
supersandro2000 mhhm yeah something like that might be an idea, thanks! I'll see if that is feasible, cause I don't really want to change the build process too much, but I'll explore it.
futile has quit [Quit: Connection closed]
ddellaco_ has quit [Remote host closed the connection]
domogled has quit [Quit: domogled]
<slack1256>
Hi, I am building a private repo on nixos with `stack install`. In the process it has to checkout some other privated repos, but it does so inside the nix-build environment, which doesn't have access to my ssh-keys. What can I do?
<supersandro2000>
cond could be isPy39 or (pythonOlder "3.9")
<supersandro2000>
[ x ] ++ lib.optionals [ y ]
^x3ro[m] has left #nixos ["User left"]
<zn13>
I'm trying either `nix-build` or `nix-env -if .` and `default.nix` uses `import <nixpkgs> {}` to access nixpkgs. I had no channels listed by `nix-channel --list`, and somewhere (I've forgotten) suggested this was 20.09 (which is what my base nixos install used). I've just run `nix-channel --add https://nixos.org/channels/nixpkgs-unstable ;
<zn13>
nix-channel --update`. But now when I run any of `nix-build`, `nix-env -if .`, or `nix-env --upgrade` my local derivation doesn't seem to rebuild with any of the new dependencies. How does `import <nixpkgs> {}` resolve and why isn't it using my channel?
FranckRasolo[m] has quit [Quit: Idle for 30+ days]
Keash[m] has quit [Quit: Idle for 30+ days]
<Unode>
supersandro2000, clever thanks. lib.optionals did the trick. I had one conditional per package which was making things unnecessarily complicated.
codygman__ has joined #nixos
ximun has quit [Quit: WeeChat 2.3]
ahmedelgabri has quit [Ping timeout: 252 seconds]
iwvt[m] has left #nixos ["User left"]
<supersandro2000>
zn13: <...> means it is a channel
<supersandro2000>
nixos is using the nixos channel, too
<Unode>
is the state of python 3.9 better in nixos 21.03 ? I'm on 20.09 and seems like a lot of packages fail to build.
<supersandro2000>
on my nixos container I only have the nixos channel so I think you need that
cole-h has joined #nixos
<Unode>
(also any interest in fixing 20.09 or things will just move to the next release?)
<supersandro2000>
Unode: it will probably be the default for python3
<Unode>
in 21.03 ?
<supersandro2000>
yeah
<supersandro2000>
and 20.09 receives little updates shortly before the 21.05
<Unode>
ah so will be 21.05 this year?
<Unode>
I missed that news
<zn13>
supersandro2000: It seems that `nix-channel` shows `nixpkgs` is bound to the unstable url. Yet `import <nixpkgs> {}` is importing the `nixos` channel? So does this imply `nix-env` and `nix-build` don't use my user `nix-channel` bindings for channel names? (This seems like a confusing possibility to me.)
S0rin has quit [Ping timeout: 260 seconds]
<zn13>
Is there a way I can query `nix-build` for what path or url binding it evaluates `<nixpkgs>` to?
<zn13>
Thanks! Huh... it says `/nix/var/nix/profiles/per-user/root/channels/nixos`.
<zn13>
Why does it say `root` instead of my user name?
<rmcgibbo[m]>
That's the same as how my channels are configured.
<zn13>
Ok, but what's the purpose of `nix-channel` or user-specific channel management if `nix-env` doesn't use that? I'm quite confused.
<rmcgibbo[m]>
e.g. `nix-channel --list` (as user), i have home-manager and nixpkgs-unstable, and then for root (sudo nix-channel --list) i have nixos
<rmcgibbo[m]>
what's your NIX_PATH?
<zn13>
ah, it is `nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels`
codygman__ has quit [Ping timeout: 240 seconds]
<zn13>
Ok, that clarifies that mystery. (I am not sourcing the standard bash rc at login.)
<rmcgibbo[m]>
I don't entirely understand the reason for that level of indirection between "nixpkgs" and "nixos" in the NIX_PATH and channel names, but yeah. `<xyz>` in nix-the-language just resolves to whatever xyz is "=" to in NIX_PATH, iiuc.
S0rin has joined #nixos
<zn13>
Right. Without understanding what lead to this design, it feels like there's one extra layer of indirection that seems confusing.
simba1 has joined #nixos
<supersandro2000>
so why does my nixos container contain export NIX_PATH="$HOME/.nix-defexpr/channels${NIX_PATH:+:$NIX_PATH}" and my nix daemon on debian
<zn13>
Ok, I see how `/etc/profile` eventually has `if [ -e "$HOME/.nix-defexpr/channels" ]` then prepend that to `NIX_PATH`.
andreas31 has quit [Ping timeout: 240 seconds]
<zn13>
So the bash startup checks if the path exists, then updates `NIX_PATH`. Since I created the channel path _after_ logging in, the env var wasn't updated. (But also my funky bash doesn't source the system config.)
<zn13>
This happens in a derivation called `set-environment` btw if you're looking for the innards here.
andreas31 has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
S0rin has quit [Ping timeout: 240 seconds]
dbmikus has joined #nixos
<zn13>
Thanks for helping sort this out rmcgibbo[m] and supersandro2000.
saschagrunert has quit [Remote host closed the connection]
bdju has quit [Read error: Connection reset by peer]
bdju has quit [Read error: Connection reset by peer]
bdju has joined #nixos
ddellaco_ has joined #nixos
zn13 has quit [Ping timeout: 240 seconds]
ddellaco_ has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
ahmedelgabri has quit [Ping timeout: 245 seconds]
__monty__ has joined #nixos
codygman__ has quit [Remote host closed the connection]
codygman__ has joined #nixos
griff__ has joined #nixos
domogled has quit [Ping timeout: 246 seconds]
domogled has joined #nixos
nDuff has joined #nixos
ahmedelgabri has joined #nixos
dongcarl has joined #nixos
ahmedelgabri has quit [Ping timeout: 245 seconds]
est31 has quit [Remote host closed the connection]
est31 has joined #nixos
mallox has joined #nixos
domogled1 has joined #nixos
evanjs has quit [Ping timeout: 260 seconds]
domogled has quit [Ping timeout: 268 seconds]
domogled1 is now known as domogled
codygman__ has quit [Remote host closed the connection]
codygman__ has joined #nixos
maxdevjs has joined #nixos
domogled has quit [Ping timeout: 252 seconds]
griff__ has quit [Quit: griff__]
<slack1256>
Were haskell LTS packages inside nixpkgs at some point in time? I seem to remember they were.
<sterni>
slack1256: haskellPackages used to be a specific stackage-lts version, but nowadays it always points to a stackage-nightly version
dev_mohe has joined #nixos
dev_mohe has quit [Client Quit]
<slack1256>
but where old versions of the LTS on haskell.packages too?
S0rin has quit [Ping timeout: 246 seconds]
<sterni>
nope
<sterni>
but you used to be able to pin nixpkgs to an older version to get a specific lts version
<sterni>
you may be able to use something like haskell.nix for such things? not certain though
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<veleiro>
has anyone built nixUnstable on non-nixos machines
<marin[m]>
@veleiro mind elaborating? I've been using unstable on popos and macos
nuncanada has joined #nixos
<veleiro>
yeah did you compile it from source?
<veleiro>
I'd just like to know what flags to pass ./configure
<veleiro>
docs are vague
<marin[m]>
could be my noobishness, but what are you exactly trying to compile?
<marin[m]>
a nixos distro, a program, something else?
<veleiro>
github.com/nixos/nix
ris has joined #nixos
<marin[m]>
gotcha, nix itself. sorry I've misunderstood your question - I've used nix with unstable channels, not the nix itself from trunk
ddellaco_ has quit [Remote host closed the connection]
<veleiro>
yeah this is for flakes support on non-nixos systems
S0rin has joined #nixos
dave` has joined #nixos
dandart has joined #nixos
dandart has quit [Client Quit]
stree has quit [Ping timeout: 260 seconds]
ddellaco_ has joined #nixos
S0rin has quit [Ping timeout: 246 seconds]
dave` is now known as test123`
test123` is now known as davidh383940
davidh383940 is now known as davidh38
xourt has quit [Quit: Connection closed]
orivej has joined #nixos
vidbina has quit [Ping timeout: 268 seconds]
davidh38 has quit [Remote host closed the connection]
jarkad has quit [Ping timeout: 240 seconds]
meh` has quit [Ping timeout: 240 seconds]
stree has joined #nixos
jarkad has joined #nixos
<ashkitten>
is native-only steam worth keeping in nixpkgs?
<ashkitten>
seems like more hassle than it's worth
<ToxicFrog>
What do you mean by "native-only" here?
<ashkitten>
steam with the nativeOnly argument, which does not use the steam runtime
<Yaniel>
is that even working on nixos
<ashkitten>
it's still *there* at least
<ToxicFrog>
Aah
<ToxicFrog>
That doesn't even work reliably on SUSE, I'd be amazed if it works at all on nixos
<ashkitten>
i really think we should just remove it
rajivr has quit [Quit: Connection closed for inactivity]
<Yaniel>
yea I don't really think anything of value would be lost there
<Yaniel>
nothign that wasn't lost years ago anyway
<ashkitten>
our steam runtime is probably one of the most reliable and best packaged of any distro
<ashkitten>
since we actually do basically what pressure-vessel was meant to achieve
<ashkitten>
(iirc)
<slack1256>
sterni: thanks for the clarification! I was mis-remembering.
<veleiro>
can someone explan to me what steam nativeOnly does? I thought it uses local nix libraries instead of a chroot-type normal FHS
<Yaniel>
as I understand it, it uses the "system" versions of all the libraries rather than the ones that steam ships
<ashkitten>
i think it still uses a fhsenv because that's what steam expects
<veleiro>
yeah what's on your system that's what i understand too, but steam in nixpkgs is chroot
<ashkitten>
anyway at this point (this did not used to be the case) the steam runtime is well maintained and should support every game, with some games possibly needing extra libs which we can provide, if they're badly packaged
<ashkitten>
games built for steamrt 2 (soldier) should not need any extra libs, since they can't load extra libs on any distro regardless
Qwerky_ has quit [Remote host closed the connection]
respawn_ has joined #nixos
stree has quit [Quit: Caught exception]
stree has joined #nixos
bn_work has joined #nixos
ahmedelgabri has joined #nixos
<Miyu-saki>
Uhhh, I think steam + nvidia + vulkan broke.
<Miyu-saki>
Specifically because of Proton 5.13 mitigation
<Miyu-saki>
I had to add this to make my Vulkan games work. VK_ICD_FILENAMES="/run/opengl-driver/share/vulkan/icd.d/nvidia_icd.json" %command%
slack1256 has quit [Remote host closed the connection]
<Yaniel>
hmm, I thought that came up in the discussion about proton 5.13 / steamrt2 already=
Elmar has joined #nixos
lemmie[m] has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
astralbijection has joined #nixos
<astralbijection>
Hello, I've just installed NixOS, with a /home directory from a previous install. How do I source the packages in ~/.nix-profile? The wiki says to source ~/.nix-profile/etc/nix.sh but the ~/.nix-profile/etc/ folder is missing.
<astralbijection>
I've tried removing ~/.nix-profile and executing `nix-env -i <package>` and sourcing from /etc/profile
ddellacosta has joined #nixos
<astralbijection>
Manually adding `~/.nix-profile/bin` to my PATH works, but I don't know if that's the "correct" way to do it
fuzzypixelz has joined #nixos
<maralorn>
I get the weirdest errormessage when trying to build my system: error: opening file '/nix/store/i15xcm6ahmdyji4gjrl5fidhv1l9gfp7-texlive-cyrillic-bin-2019.drv': No such file or directory
vidbina has joined #nixos
hiro98 has quit [Remote host closed the connection]
kalipso has joined #nixos
astralbijection has quit [Quit: Ping timeout (120 seconds)]
Vadrigar_ has joined #nixos
sorki has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
srk has quit [Ping timeout: 240 seconds]
astralbijection has joined #nixos
ddellacosta has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
Vadrigar_ has quit [Ping timeout: 240 seconds]
ddellaco_ has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
sorki is now known as srk
<ashkitten>
Miyu-saki: are you on latest unstable? what game?
Elmar has left #nixos [#nixos]
ManiacOfMadness` has joined #nixos
vidbina has quit [Ping timeout: 246 seconds]
<cransom>
astralbijection: the majority of the nix dot files in your directory are symlinks to the nix store. nix-env won't really be able to help you there if the nix store is missing. you'd have to take another approach to managing installed apps.
<astralbijection>
Is the nix store the one located in /nix? Because that exists, the symlinks exist, the issue is just that there's no script for adding the symlinks to PATH
<astralbijection>
Other than just manually adding it to path myself in the .zshrc
<jumper[m]>
ungoogled-chromium from nixpkgs-unstable segfaults for me. Is it possible that this is nix-related?
<cransom>
.nix-profile is a link to /nix/var/nix/profiles/per-user/$USER/profile . does that directory exist on your current nix store?
cfricke has quit [Quit: WeeChat 3.1]
<astralbijection>
Yes
Dotz0cat has quit [Ping timeout: 246 seconds]
<cransom>
but does that path have a bin/ in it?
<astralbijection>
Yes, there's a bin/ but no etc/
cornfeedhobo has joined #nixos
<astralbijection>
Strangely, it seems to work on bash but not zsh
mallox has quit [Quit: WeeChat 3.1]
<astralbijection>
Never mind, ignore that
fuiltilt has joined #nixos
cornfeedhobo has left #nixos ["when i leave, come together like butt cheeks"]
Lord_of_Life_ has joined #nixos
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
respawn_ has quit [Quit: Leaving]
astralbijection has quit [Quit: Connection closed]
hiro98 has joined #nixos
hiro98 has joined #nixos
astralbijection has joined #nixos
dotdotok has quit [Quit: Leaving]
BenjiProd has quit [Remote host closed the connection]
hiro98 has quit [Ping timeout: 260 seconds]
palo has quit [Ping timeout: 268 seconds]
palo1 has joined #nixos
palo1 is now known as palo
superherointj has joined #nixos
lsix1 has joined #nixos
lsix has quit [Ping timeout: 245 seconds]
<ddellaco_>
hi folks, I'm using nix on macOS, and with just a basic shell.nix I'm seeing that clang is swapped out for a much older version installed by nix when I get into a nix shell. Is there a way to tell nix to use the system clang in certain contexts? In particular, this is a rails app and I'm having trouble building extensions when the nix clang is used
sangoma has quit [Quit: WeeChat 3.1]
<ambroisie>
Hello people
<ambroisie>
I'm experimenting with using `naersk` on a Rust project using flakes
<ambroisie>
And I've found a problem that I do not know how to solve
<ambroisie>
But `nix run` gives me an error, it seems that it is building `lohr` and `nix run` was expecting the binary to be named `lohr-0.1.0`
simba1 has joined #nixos
lordcirth__ is now known as lordcirth
<ambroisie>
cab404[m]: I used your template as a basis for this, so if you happen to know more about this issue I'd love to know
<sterni>
ddellaco_: you need to use a clang from nix, but you can override your current derivation to use a newer clang, I'm not sure if it works as well on macOS, but you *should* be able to use llvmPackages_latest.stdenv instead of the normal stdenv for example which would currently have clang 11
<ddellaco_>
sterni: thanks a lot! Will give that a shot.
astralbijection has quit [Ping timeout: 240 seconds]
nuncanada has quit [Read error: Connection reset by peer]
<spacetato>
ambroisie: I get around the `nix run` naming by doing `nix shell . -c lohr`
codygman` has joined #nixos
<spacetato>
I haven't found a way to tell `nix run` what the name of the binary is
<spacetato>
it seems to always expect `pname-version`
<ambroisie>
That's somewhat annoying
<spacetato>
it's weird that `nix run nixpkgs#vim` works though, for example
<spacetato>
looking into it..
hiro98 has joined #nixos
codygman__ has quit [Ping timeout: 260 seconds]
hiro98 has quit [Remote host closed the connection]
<marin[m]>
has anyone successfully built Fractal (matrix client) on nixos? it's marked as broken. I've gone down the rabbit hole of building master, defining my own libadwaita, it built successfully but can't run it on sway. breaks with some implicit library deps. This was with a development shell.nix based aproach and invoking meson && ninja manually. Trying another approach now - defining default.nix and using nix-build. The
<marin[m]>
problem I'm facing now: olm-sys rust dep defines cmake as a dependency (that's like 2 layers deep). Repo uses ninja & meson, has no CMakeLists files. If I define cmake as a nativeBuildInput, build fails because it tries to find CmakeLists files. Otherwise, olm-sys fails within cargo build, because it doesn't see cmake. Think I'm stalemated
<_virkony_>
are there any good way to cherry-pick package from unstable into specific nixos release? I tried overlay with import <nixpkgs-unstable> { pkgs = self; }, but I still see unstable input in derivations
jkachmar has joined #nixos
<pinpox>
Can someone help me with the syntax?
kenran has quit [Quit: leaving]
<marin[m]>
pinpox: ./
<pinpox>
marin[m]: what do you mean?
<_virkony_>
pinpox: I think you miss "in" in let-in construction
<rmcgibbo[m]>
@_vi
lsix1 has quit [Quit: WeeChat 3.1]
<pinpox>
_virkony_: oh right
<jkachmar>
is it possible to get distributed builds working with non-root users?
<pinpox>
_virkony_: can I test it somehow in a repl?
<jkachmar>
I keep running into "Host key verification failed." errors for the machine I'm trying to use as a builder
<jkachmar>
ah wait damn, this is a nix-daemon thing isn't it...
<rmcgibbo[m]>
_virkony_: I think you want an overlay like `import <nixpkgs> {overlays = [(self: super: {mypackage = unstable.mypackage; })]; }`
dbmikus has quit [Ping timeout: 240 seconds]
gustavderdrache has quit [Quit: Leaving.]
<_virkony_>
rmcgibbo[m]: I have overlay (self: super: let unstable = import <unstable> { pkgs = self; }; in { mypackage = unstable.mypackage; }) with expectation that I'll be able to cherry-pick package without pulling in all deps
<_virkony_>
but I still see mypackage pulling in nativeBuildInputs from <unstable>
<rmcgibbo[m]>
oh no, it's definitely going to pull in all the deps.
zhaofeng_ircclou is now known as zhaofeng_alt
<rmcgibbo[m]>
that's not going to work nicely as a "cherry-pick", because the graph for unstable.mypackage is the real mypackage from unstable.
<_virkony_>
rmcgibbo[m]: that's something I don't understand. If every package parametrized with pkgs, and I guess pkgs.callPackage will pass in that pkgs, then passing in pkgs into <unstable> should propagate it further
<rmcgibbo[m]>
was there a major refactor of the package between your version of nixpkgs and unstable, by chance?
dbmikus has joined #nixos
<_virkony_>
rmcgibbo[m]: zig 0.6.0 vs 0.7.1 . zls 0.1.0 doesn't like 0.6.0
<rmcgibbo[m]>
a different route, which is more cherry-pick-like is to do
<rmcgibbo[m]>
that will override the src but not override anything else about the build graph, so it won't pull in anything from unstable
Lord_of_Life has quit [Ping timeout: 246 seconds]
<_virkony_>
rmcgibbo[m]: yeah, I thought about that, but ideally I need to pull other stuff like version and dependencies (if they changed). I thought there is a nice way
<jkachmar>
answering my own question: it was a `nix-daemon` issue; in order for remote builders to work they have to be in the root user's `known_hosts` on the client machine initiating the remote build
<_virkony_>
pinpox: you should be able to test it in REPL, but you'll have to pass all those arguments to that lambda
<pinpox>
_virkony_: I'm wondering if this would not be enough: { imports = map (n: "${./.}/${n}") (builtins.attrNames (builtins.readDir ./.)); }
fendor_ has joined #nixos
<rmcgibbo[m]>
i guess i don't understand exactly what you want to do, _virkony_ . either you only override the `src` attribute and you make a small change, or you override and pull the entire derivation from unstable, in which case you're going to get the exact closure that unstable had. if you want something in between presumably you need to tell nix exactly which attrs to override.
<_virkony_>
pinpox: you might need to convert those strings to paths
<pinpox>
it seems to work, but returns { imports = [ ... ]; }, what I want is an attrset like { module1 = { ..}; module2 = {...}; ... }
fendor has quit [Ping timeout: 240 seconds]
<rmcgibbo[m]>
i suppose a third option is to `git checkout nixos-20.09 && git cherry-pick <commit> && nix build -f . zig` :P
<_virkony_>
rmcgibbo[m]: from my short exp with nix, I can see that packages represented by something like mypackage = ({pkgs, ...}: mkDerivation { inputs = [ pkgs.mydep ]; }). I.e. it should be movable between channels
stree has quit [Quit: Caught exception]
stree has joined #nixos
zupo has joined #nixos
<_virkony_>
if I have mypackage = unstable.mypackage { pkgs = self; }, it should pull self.mydep in my understanding
<philipp[m]2>
Setting `C_INCLUDE_PATH` manually seems to be the answer for me
<rmcgibbo[m]>
_virkony_: i don't think that's precisely right, but i have to run. when you get pkgs.mypackage, it's the _result_ of that function call, not the function call itself.
<rmcgibbo[m]>
i'd play around with callPackage in the nix repl.
<_virkony_>
true, but result of that attr set is actually channel function call with pkgs parameter
<_virkony_>
good idea
philr has joined #nixos
fendor_ has quit [Remote host closed the connection]
Qwerky has joined #nixos
* _virkony_
apparently misunderstood channels as having open wiring. Apparently import <unstable> doesn't accept any attr to wire it back...
codezero has quit [Quit: Ping timeout (120 seconds)]
codezero has joined #nixos
S0rin has quit [Quit: WeeChat 2.3]
jbox has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
haritz has joined #nixos
haritz has quit [Changing host]
haritz has joined #nixos
nDuff has joined #nixos
nDuff has quit [Client Quit]
ddellaco_ has quit [Ping timeout: 240 seconds]
asbachb has joined #nixos
<asbachb>
Anyone running podman on nixos? I started some containers, but the ports seems not to be forwarded.
<qbit>
welp, got past the nginx block bit..
<qbit>
but now: Mar 29 16:15:44 box nginx[28762]: 2021/03/29 16:15:44 [error] 28762#28762: *12 lua entry thread aborted: runtime error: content_by_lua(ggx4j9lmwyn175c64fv2w3wzikpyxim6-nginx.conf::2: module 'resty.http' not found:
<_virkony_>
now I just need to cherry-pick llvm 11.x ...
fuzzypixelz has quit [Quit: Connection closed]
meh` has quit [Ping timeout: 240 seconds]
<Andoriyu>
more of a linux question, can I do a _thing_ when a file created with a specific name, but in unknown folder within a known folder as a systemd service?
aaabbbbbbbbbb has quit [Ping timeout: 246 seconds]
jimmie_ has quit [Ping timeout: 268 seconds]
erasmas has quit [Quit: leaving]
ddellaco_ has joined #nixos
ddellaco_ has quit [Ping timeout: 246 seconds]
mbrgm_ has joined #nixos
endvra has joined #nixos
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ is now known as mbrgm
<exarkun>
is something more required to add an attribute to `pkgs` than to add a binding in pkgs/top-level/all-packages.nix? That's what I tried but my package doesn't show up.
<exarkun>
wait no I just can't read very well
managarmr1 has joined #nixos
dingenskirchen has quit [Quit: ZNC 1.8.1 - https://znc.in]
dingenskirchen has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
ddellaco_ has joined #nixos
Vadrigar_ has joined #nixos
ddellaco_ has quit [Ping timeout: 260 seconds]
Vadrigar_ has quit [Ping timeout: 268 seconds]
codygman` has quit [Ping timeout: 246 seconds]
<hexa->
gchristensen: {^_^} went silent a while ago