<infinisil>
Then I don't know what you meant by your last message there (at time 49:51)
<ldlework>
infinisil: let's say I have a lot of other initExtra, which I currently have in a file, so I don't want to set initExtra to a nix expression string literal, I want to use readFile to get the initExtra string data. But as you know now, I need to source the ranger-cd snippet from that runCommand package. So how can I put the zsh sourcing line in my initExtras text-file, read it with readFile, and have the
<ldlework>
sourcing line use the ${} interpolation syntax to get at the runCommand package file?
<infinisil>
You can't really use non-nix files to evaluate nix
<infinisil>
Why not just do initExtra = ". ${pkgs.runCommand ...} \n ${builtins.readFile ./other/file.sh}"?
<acowley>
How can I pass a path to nix to do something like "nixos-rebuild -I. build"?
sbdchd has joined #nixos
<acowley>
My guess is that there's a "nix-build", but I don't know what attribute to build.
<gchristensen>
ghasshee_: and I noted it is under kernelPackages, which means you probably want to take care to install the one for your _current_ kernel, and not just _a_ kernel
<gchristensen>
and I know your current kernel's packages are available at config.boot.kernelPackages
<ghasshee_>
Ah, you seem using nix-shell.
<gchristensen>
I didn't use nix-shell, no
<ghasshee_>
In my zsh, it does not tell if I put command perf and return enter..
<gchristensen>
oh ok let me give you an alternative
<ldlework>
like, how do I get rid of the non-home-manager package?
<ldlework>
I did nix-env -e nixos.ranger
fragamus has joined #nixos
<ldlework>
oh it is because of that runCommand thing earlier where I refer to ${pkgs.ranger}/bin/ranger
<ldlework>
which causes ranger package to be installed I guess?
<ldlework>
and so I can't mention that I want ranger installed in my home-manager settings because the two will conflict?
<ldlework>
confusing.
<worldofpeace>
ldlework: infinisil shared this nice thing for nix-env btw 'nix-env -q | fzf | xargs -I{} nix-env -e {}'
jperras has joined #nixos
<ldlework>
worldofpeace: what's that for
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<worldofpeace>
ldlework: makes removing programs installed with nix-env quick
sam___ has joined #nixos
sam___ is now known as samtoday
<ldlework>
worldofpeace: i think it is a conflict between the ranger that get's installed because I refer to ${pkgs.ranger} in a runCommand, and home.packages = [ pkgs.ranger ];
<ldlework>
which is annoying
<infinisil>
Just uninstall ranger
<infinisil>
You still have one installed
<ldlework>
huh?
<infinisil>
Can you see ranger with nix-env -q?
<ldlework>
oh I guess so
<ldlework>
my bad
<samtoday>
Does anybody do rust develpment on nixos?
<samtoday>
whever I run "cargo build" I get an error about impure paths
jperras has quit [Ping timeout: 265 seconds]
hyper_ch has quit [Read error: Connection reset by peer]
<samtoday>
err, it fails when you use nix-shell to get cargo
<samtoday>
it runs fine when you use "nix run nixpkgs.cargo"
<samtoday>
that seems so weird
hyper_ch has joined #nixos
jperras has joined #nixos
<worldofpeace>
I followed the "just do it" advice. That meson.build was not great for nix.
andymandias has quit [Ping timeout: 240 seconds]
<hyper_ch>
dotlambda: online?
silver_ has quit [Read error: Connection reset by peer]
sir_guy_carleton has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #43133 → gsignond: init at 1.0.7 → https://git.io/fNvUO
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<samueldr>
worldofpeace: why does documentation building not work?
<waynr>
i'm having trouble building a dependency for a package i want to install, it appears that tests are failing for libuv but nothing in the stdout indicates why they are passing. i was somehow under the impression that if i am in the libuv nixpkgs directory that i should be able to run `nix-shell` and enter a build environment for libuv where i can take a closer look at why the test cases are failing, but i keep
<waynr>
getting 'error: cannot auto-call a function that has an argument without a default value ('stdenv')'
<waynr>
s/are passing/aren't passing/
andymandias has joined #nixos
<worldofpeace>
samueldr: It tries to fetch a file from sourceforge? and do something i have no idea
<samueldr>
aww
<worldofpeace>
samueldr: i was really confused by those flags
<samueldr>
worldofpeace: you have nothing yet depending on gsignond, right?
<worldofpeace>
samueldr: nothing in tree. locally about 4 applications
<samueldr>
gsignond isn't bothered by sysconfdir being not absolute?
<samueldr>
or uh, not being absolute
<waynr>
i seem to be stuck in a state where i can't use nix to build the package i want from source
<worldofpeace>
it seems to just make gsignond.conf get installed into $out/etc instead of trying /etc
<worldofpeace>
which of obviously won't work :D
Tobba_ has quit [Ping timeout: 245 seconds]
<waynr>
the unstable channel is borked because it relies on a transient github PR commit that was blown away yesterday by a rebase and libuv mysteriously won't build from github master
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<samueldr>
waynr: you have a nixpkgs checkout? `nix-shell -I "nixpkgs=$PWD" -A libuv` will get you inside the libuv environment
<samueldr>
worldofpeace: hm, the .so does have a string "etc/"
<samueldr>
also, I'm not sure how it should be handled, with e.g. nixos config... but that's another issue :)
<samueldr>
waynr: what I said will work at the root of the repo
<worldofpeace>
samueldr: i'll have to look at that in the future.
<worldofpeace>
samueldr: I might look at ubuntu packaging for it maybe
<samueldr>
though, they will use /etc that's for sure :)
<worldofpeace>
I saw those lines but i'm trained to just change variables on the fly :)
stigmergik[m] has joined #nixos
<waynr>
i wonder why NIX_PATHS isn't working
<samueldr>
typo only on IRC or in your terminal too?
<samueldr>
it should be NIX_PATH
<waynr>
er yeah, that's what i meant
<samueldr>
what do you mean NIX_PATH isn't working?
<waynr>
maybe i just have an incorrect NIX_PATH
<waynr>
it was set by a janky /etc/profile.d/ script i grabbed from the ubuntu1604 deb package
<worldofpeace>
samueldr: I'm not breaking anything by doing that am i?
<waynr>
i'm pretty sure that package could not possibly result in a working multi user nix installation
<samueldr>
worldofpeace: depends on what gsignond does, but it may be possible that with `sysconf_dir` as `etc/` that it won't load the conf from anywhere
<samueldr>
while the conf is installed inside the nix store
<hyper_ch>
what's the command again to build a local .nix package?
<samueldr>
though, it may work properly without any config file, worldofpeace
<samueldr>
but making sure the binary can load one from /etc may be necessary in the future if options are important for it
<samueldr>
,callPackage hyper_ch?
<{^_^}>
hyper_ch?: If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
freeman42x]NixOS has joined #nixos
disasm has quit [Ping timeout: 240 seconds]
<hyper_ch>
samueldr: doesn't work :(
<samueldr>
that's for a package that's using mkDerivation?
<samueldr>
and what does "doesn't work" mean in that instance?
drakonis has joined #nixos
<hyper_ch>
samueldr: I changed nix/store/4ilsbnx26msrm3rcmsb0s3znjinfz7cg-nixos/pkgs/applications/networking/flexget/default.nix and need to rebuild it
<worldofpeace>
samueldr: so it seems that elementary will need some way to manage that configuration file for secrets storage. I'll pick that up when I write the nixos module :P . Thanks
<samueldr>
hyper_ch: while cd-ed into the flexget directory, this seems to start the build: nix-build -E '(import <nixpkgs> {}).callPackage ./. {}'
disasm has joined #nixos
<samueldr>
though, note that `<nixpkgs>` will be the one from NIX_PATH, which may mismatch from the one expected
<hyper_ch>
samueldr: I remembered now the better way :) cloning nixpkgs... set checkout to my state and then edit it and use nixos-rebuild -I something
<samueldr>
you may want to instead go to the root of your checkout, and nix-build -A flexget
<hyper_ch>
no idea what you mean by the root of my checkout
<samueldr>
nixpkgs clone, fork
<samueldr>
though, you shouldn't really change anything in /nix/store
<hyper_ch>
no idea what that is
<samueldr>
> cloning nixpkgs
<{^_^}>
undefined variable 'cloning' at (string):153:1
<samueldr>
(ugh, didn't mean to evaluate that)
<waynr>
samueldr: is there any documentation for what to do next after `nix-shell -I "nixpkgs=$PWD" -A libuv`? there seems to be nothing obvious to do after that and there is no $setup environment variable as described by https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html
lassulus_ has joined #nixos
<waynr>
i just end up in a bash shell with the nixpkgs git repo as the working directory
<waynr>
my understanding of nix-shell is that it needs to be run in the same working directory as the `default.nix` file for the project you want to develop
<kalbasit>
on my hybrid system now, I'm having issues related for fonts and terminfos. Question about terminfo, so I have termite installed with `nix-env` and my TERM set to `xterm-termite` but it does not seem to find it. I tried installing the Arch package `termite-terminfo` but it did not help. How is termite supposed to find the terminfo under NixOS usage?
<kalbasit>
maybe I'm missing some env var or some symlink that will help termite find the info it needs
cell has quit [Quit: Lost terminal]
<hyper_ch>
isn't that a bit wrong? 2 python2.7-guessit-3.0.0 (nixos.python27Packages.guessit_2_0) --> it says guessit-3.0.0. but actually uses guessit_2_0 ?
<{^_^}>
[nixpkgs] @andrew-d opened pull request #43134 → nixos/sd-image: make partition ID/UUID configurable → https://git.io/fNvkY
ghasshee has quit [Remote host closed the connection]
<rotaerk>
lol, oh; didn't realize nixpkgs wrapped the various compilation tools
<rotaerk>
like if I do: vim $(which ld)
<rotaerk>
it's a bash script...
<rotaerk>
I wonder if this is causing linker options to get ignored
drakonis has quit [Read error: Connection reset by peer]
Lisanna has joined #nixos
muzzy has joined #nixos
<muzzy>
does anyone have trouble with sound in kde plasma?
<rotaerk>
I've had problems with alsamixer being muted every time I reboot
<rotaerk>
don't use kde plasma though
<muzzy>
damn, I've unmuted all the output devices from alsamixer but still no sound
<rotaerk>
just to make sure, did you also turn up the volume
<rotaerk>
mine's muted AND with 0 volume
<rotaerk>
so I unmute and turn it up
<muzzy>
I installed kmix, it wasnt installed by default for some reason. Still no sound. I'm going to reboot real quick
endformationage has quit [Quit: WeeChat 1.9.1]
Guanin has quit [Ping timeout: 245 seconds]
<worldofpeace>
Where would an extension/plugin to library go in nixpkgs?
<worldofpeace>
* to a library
Guanin has joined #nixos
blankhart has quit [Ping timeout: 268 seconds]
robstr has joined #nixos
<muzzy>
tried every audio device on my computer: HDMI, motherboard line out, computer case headphone jack, headphone jack in the monitor... nothing. :(
<joepie91>
muzzy: assuming you're using pulseaudio, open up pavucontrol and verify that it's set to the right profile
<muzzy>
joepie91: I just installed pulseaudio and got audio to work! Is there any reason alsamixer or gstreamer shouldn't work out of box?
rodgort has quit [Quit: Leaving]
<johnw>
shlevy: hi
rodgort has joined #nixos
muzzy has quit [Ping timeout: 240 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crmlt has joined #nixos
muzzy has joined #nixos
hakujin has joined #nixos
leotaku83 has quit [Remote host closed the connection]
Xiro` has quit [Remote host closed the connection]
hakujin has quit [Ping timeout: 245 seconds]
leotaku83 has joined #nixos
leotaku83 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @worldofpeace to master « gtkspell3: add valaSupport »: https://git.io/fNv3U
worldofpeace has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<ghasshee_>
Hi, there seems lots of problems using Dropbox. Is there anyway to use it well?
obadz has joined #nixos
tsm has joined #nixos
alex`` has joined #nixos
<srhb>
ghasshee_: No problem here.
<tsm>
having trouble upgrading from 17.09 to 18.03. I run `sudo nixos-rebuild switch --upgrade` and it works fine, but after rebooting I can't get past the boot screen steps around `Reached target Sound Card`. everything is green, it just freezes
<ghasshee_>
@srhb how did you install ?
lnikkila has quit [Ping timeout: 240 seconds]
myshoe has joined #nixos
phdoerfler1 has joined #nixos
worldofpeace has joined #nixos
lnikkila has joined #nixos
phdoerfler1 has quit [Client Quit]
phdoerfler1 has joined #nixos
<worldofpeace>
jtojnar: I think i've made all the changes correctly.
<jtojnar>
worldofpeace: looks good
<jtojnar>
now how do you intend to support the plug-ins?
phdoerfler has quit [Ping timeout: 276 seconds]
__monty__ has joined #nixos
<worldofpeace>
jtojnar: no idea :)
<srhb>
ghasshee_: nix-env -iA nixpkgs.dropbox
<worldofpeace>
there's also a libgsignon-glib that's not working for me. Should be ready for a review in a bit.
<worldofpeace>
jtojnar: I've only ever wrote a few nixos modules so this'll be interesting :)
<worldofpeace>
jtojnar: this is in the session wide message bus
<worldofpeace>
jtojnar: Your prior comments are still true right?
<jtojnar>
worldofpeace: I think it is in the system bus, the service file is located in share/dbus-1/services, not the user directory used for session bus
<jtojnar>
worldofpeace: which one?
<worldofpeace>
jtojnar: at *:45:22
<srhb>
ghasshee_: Probably nixos.dropbox on your system. Also wooaaah, 17.03 is ancient, upgrade! :)
<jtojnar>
weird, let's keep it a system one for now, if I try to run it manually, I get quite a few errors https://paste.gnome.org/puip4jgot
am0425 has joined #nixos
<jtojnar>
worldofpeace: session bus will not have access to /var/db by default anyway
<worldofpeace>
jtojnar: I should set it to ""
rprije has quit [Ping timeout: 268 seconds]
<jtojnar>
worldofpeace: what should you set to ""?
<worldofpeace>
jtojnar: 'storage_dir' is default to '/var/db'
<jtojnar>
worldofpeace: I do not think changing it would help
<worldofpeace>
jtojnar: ^ i see now :D
b has joined #nixos
mariatsji has joined #nixos
stepcut has quit [Remote host closed the connection]
andymandias has quit [Ping timeout: 248 seconds]
<worldofpeace>
jtojnar: Just saw your review. Maybe static?
<worldofpeace>
Also didn't see your erros at 35:30 :D
<jgt>
towards the end of a NixOps deploy, it'll say something like: 'copying 14 missing paths (89.92 MiB) to ‘root@x.x.x.x'. Is there a way to show exactly what those paths are and how large each one is?
mariatsji has quit [Remote host closed the connection]
<jgt>
sometimes it'll copy over 2GB to the server, and most likely I'm just doing something wrong and telling it that the server needs more stuff than it really does
<clever>
jgt: you cant easily see what its copying, but you can look at the closure for the entire deployment, one min
phdoerfler has quit [Quit: Leaving.]
<clever>
jgt: a command like this will give a storepath on the local machine that includes every machine: nixops dump-nix-paths -d mainnet
<worldofpeace>
didn't you say something about a multiple output derivation?
<jtojnar>
worldofpeace: yep, ideally, we would use py instead of out
MinceR has joined #nixos
<jtojnar>
though I am not sure if the gi overrides even work in `out`
<worldofpeace>
so just out and py?
<jtojnar>
for libraries a dev output is also a good idea
<jtojnar>
and devdoc, othervise the documentation is trashed
<worldofpeace>
lib too?
<jtojnar>
worldofpeace: if the package is just a library, out is usually used for it
phdoerfler1 has joined #nixos
<jtojnar>
worldofpeace: gsignond is both a daemon and a library so we split it
<worldofpeace>
jtojnar: all clear now. :)
<worldofpeace>
jtojnar: those two are done, I think I might ignore the plugins for now
phdoerfler has quit [Ping timeout: 276 seconds]
Jason_Grossman has quit [Remote host closed the connection]
<jtojnar>
on the other hand, if the package is primarily a library but also offers some utility programs, we would use `out` for the library and `bin` for the programs
<jtojnar>
okay
Jason_Grossman has joined #nixos
alex`` has joined #nixos
<worldofpeace>
I'm going to have to document this discussion :P
phdoerfler1 has quit [Quit: Leaving.]
am0425 has quit [Remote host closed the connection]
phdoerfler has joined #nixos
<jtojnar>
worldofpeace: I would just continue adding other pantheon components into the PR, until we can actually test that the gsignon thingy works
ambro718 has quit [Quit: Konversation terminated!]
phdoerfler has quit [Client Quit]
<Taneb>
So, I'm trying to reinstall NixOS on my laptop (don't ask me why), and it's failing at pretty much the first hurdle
<Taneb>
In the boot sequence for the USB installer, "squashfs: SQUASHFS error: unable to read inode lookup table"
<gchristensen>
what is it, and what is the first hurdle? :)
Jason_Gr` has joined #nixos
<gchristensen>
hmmm that is a new one
<worldofpeace>
jtojnar: some programs are using it but It's unclear how. The online account settings plug needs it but the whole settings is going to be hell :P
blankhart has joined #nixos
Jason_Gr` has quit [Remote host closed the connection]
coot has joined #nixos
<worldofpeace>
* whole settings app
phdoerfler has joined #nixos
<jtojnar>
is it possible to disable all modules initially and add them incrementally?
Jason_Grossman has quit [Ping timeout: 276 seconds]
<jtojnar>
clever: that is cool, although this time I was talking about pantheon settings app panes
blonkhart has joined #nixos
hakujin has joined #nixos
<worldofpeace>
jtojnar: I didn't know that was directed to me :)
<worldofpeace>
jtojnar: Absolutely. The wingpanel and the settings apps(switchboard) plugs are modular
<worldofpeace>
jtojnar: I'm also not going to refer to the package set as 'pantheon' as it's packaged in other places as 'elementary' and apps are prefixed with that name.
<{^_^}>
[nixpkgs] @phi-gamma opened pull request #43141 → Lua: define packages for 5.3.x; update lpeg module → https://git.io/fNvcF
<gchristensen>
Taneb: on the computer you used to make the USB disk, can you run sha256sum ./the-iso-you-downloaded?
<worldofpeace>
jtojnar: It seems gsignond is only used for some plugins/integrations in certain apps and the online accounts settings. All are useless without the gsignon plugins :(
jtojnar has quit [Remote host closed the connection]
<jgt>
clever: this might have been the source of the problem. It appears to be building on nix-docker now.
<clever>
jgt: because you used --option system, it assumed that localhost can build faster then nix-docker, so it just did that
lnikkila has joined #nixos
jtojnar has joined #nixos
<clever>
without that, it knows localhost cant build, and has no choice
<jgt>
clever: adding the --option was a recent thing I tried after upgrading to Nix 2, based on the GH Issues thread. Just removing it didn't work; I also had to s/nixpkgs.system/nixpkgs.localSystem.system/
<gchristensen>
but when I nix-instantiate release.nix, I get error: Package ‘hyperkit-6f6edf’ in /home/grahamc/projects/linuxkit-builder/hyperkit/default.nix:36 is not supported on ‘x86_64-unknown-linux-gnu’, refusing to evaluate.
foldingcookie has quit [Ping timeout: 276 seconds]
<clever>
gchristensen: i think for nixpkgs itself, you just use system = "x86_64-darwin";, i'm not sure why nixos wants to call it something different
<clever>
gchristensen: oh, and line 2 re-imports a 2nd nixpkgs, and doesnt set system
<gchristensen>
at any rate, that doesn't work either :P
<gchristensen>
OH
<clever>
so your better off with { pkgs ? <nixpkgs> }:
mahagad has joined #nixos
<mahagad>
How can I install xmonad with the "enableContribAndExtras" option, on Nix? On Nixos, it's a setting on configuration.nix, but how about on Nix?
<samueldr>
having an annoying issue here, where gcc is a split package, dynamic libraries (.so) and .la control files are in "lib", but somehow, static libraries (.a) are in "out"...
<samueldr>
... which causes an issue with something I'm building which wants to link statically using libtoo, libtool sees the .la for libsupc++, uses the path in the .la, but the path isn't right for static libs (lib folder in "lib")
<jgt>
gchristensen: seems to be working out so far. I've left comments for other people having the same problem in a couple places.
alex`` has joined #nixos
<jgt>
gchristensen: right now just compiling GHC and all my dependencies again; hopefully I can make this painful step go away with Cachix.
<samueldr>
I see nothing obvious in the derivation to place the .a files in the "lib" output either
<__monty__>
clever: Can I use toxvpn to access http servers running in the lan of the host I connect to?
Guest25198 has quit [Ping timeout: 240 seconds]
<clever>
__monty__: currently, you would need to run something like squid on the remote toxvpn machine, then use its tox ip to connect to the squid proxy
<{^_^}>
[nixpkgs] @Anton-Latukha opened pull request #43145 → del mesa-darwin: fossil (2012 version) → https://git.io/fNvBv
<clever>
__monty__: i have plans to get routing working over toxvpn, but havent gotten around to testing them
<clever>
__monty__: the other option is to run toxvpn on the http server
<__monty__>
clever: What extra intelligence exactly? Do you mean subdomains could redirect to different servers? But I can't address the toxvpn host with a domain name, or can I?
<gem>
When trying to run xonotic, I get the following error: Unable to load GL driver "(null)": Failed loading libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
<gem>
Is there anything I can do to fix it
foldingcookie has joined #nixos
<worldofpeace>
jtojnar: looking at your changes now :)
alex`` has quit [Ping timeout: 260 seconds]
<worldofpeace>
jtojnar: do you mean systemd.user.services?
alex`` has joined #nixos
<jtojnar>
worldofpeace: no, systemd.packages should make the package's units available to the system
<worldofpeace>
jtojnar: I just got that a second ago :)
<jtojnar>
systemd.user.services is for creating new services
<jtojnar>
or maybe modifying existing ones
<worldofpeace>
The current one looks fine.
blankhart has joined #nixos
agander has quit [Ping timeout: 265 seconds]
gem has quit [Quit: leaving]
<worldofpeace>
jtojnar: yeah I don't get it. That only makes sense.
igo95862 has quit [Read error: Connection reset by peer]
<infinisil>
Oh gem is gone already hah
notme has joined #nixos
notme is now known as Guest83109
igo95862 has joined #nixos
<Guest83109>
Hello
<Guest83109>
Does anyone know how to fix this error - warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring
<samueldr>
it's only a warning; your user doesn't have any channel defined
<Guest83109>
samueldr: So is there anything I can do about it?
worldofpeace has quit [Quit: worldofpeace]
<samueldr>
I was searching a bit to verify something
raynold has quit [Quit: Connection closed for inactivity]
<fasdfadsfadasd>
Hey
<fasdfadsfadasd>
When trying to run xonotic, I get the following error: Unable to load GL driver "(null)": Failed loading libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory Quake Error: Video modes failed
igo95862 has quit [Quit: igo95862]
<fasdfadsfadasd>
I tried to seperatly install opengl, but it didnt do anything to help fix it
blym has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @Ma27 opened pull request #43147 → nixos/nixos-option: don't abort in case of evaluation errors → https://git.io/fNvum
takeda has joined #nixos
<infinisil>
fasdfadsfadasd: try nixGL maybe
<infinisil>
,nixGL
<{^_^}>
nixGL is a bunch of wrappers for getting OpenGL programs to work for your graphics card, https://github.com/guibou/nixGL
tadni has quit [Remote host closed the connection]
<infinisil>
For some reason these opengl errors have been popping up more often here recently
<infinisil>
NixOS by default should handle opengl though, via drivers in /run/opengl-drivers
<worldofpeace>
Where's the source to wrapGAppsHook?
<fasdfadsfadasd>
infinisil: Thanks for the suggestion, but I have amd cards :(
<infinisil>
fasdfadsfadasd: first sentence in nixGL's readme: "Works with Nvidia cards (with bumblebee) and most of the card supported by mesa (such as Intel, AMD and nouveau using the free driver)"
myshoe has quit [Quit: Lost terminal]
<fasdfadsfadasd>
I saw that, and I tried using the mesa solution, it didnt work. I checked the readme and under limitations it said Does not work now for AMD drivers because I dont' have the hardware.
<fasdfadsfadasd>
Did I do something wrong? I'm still new to nix
<infinisil>
Are you using some amd driver then? Are you on nixos?
<fasdfadsfadasd>
infinisil: Im on nixos and using a ati driver
<infinisil>
,locate libGL.so.1
<{^_^}>
Found in packages: libglvnd, primusLib, libGLU_combined, xorg_sys_opengl
* infinisil
wonders why {^_^}'s nix-locate cache doesn't list libGL
<fasdfadsfadasd>
it works now!
<fasdfadsfadasd>
Thanks so much
<infinisil>
:D
<infinisil>
Actually
<infinisil>
The problem is in the package
lnikkila has quit [Ping timeout: 264 seconds]
juhe has joined #nixos
<infinisil>
fasdfadsfadasd: Can you test a patch that should fix it without the configuration.nix change?
<fasdfadsfadasd>
Sure, why not?
xy3_ has quit [Ping timeout: 248 seconds]
<infinisil>
fasdfadsfadasd: I'll mention you when it's ready (gonna try something new out)
<fasdfadsfadasd>
infinisil: Sure, I just took a look at the package and can you do something with patchchef to add the libGL binary?
<juhe>
Hi, I'm trying to get systemd-networkd handle the network configuration, I see systemd-networkd executable is running, though networkctl says it is not and all interfaces are unmanaged. Is systemd-networkd actually supported in NixOS?
xy3_ has joined #nixos
<infinisil>
fasdfadsfadasd: Indeed
<infinisil>
Wanted to try out cachix to cache the build, but the xonotic binary takes so long to even download..
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended).
phdoerfler has quit [Quit: Leaving.]
<__monty__>
Ah, >.<
<__monty__>
,locate unique
<{^_^}>
Found in packages: john, beluga, libunique, libunique3, factor-lang
<fasdfadsfadasd>
infinisil: Ok, it finished installing. I should get rid of the line in the configuration.nix right?
juhe has quit [Remote host closed the connection]
<infinisil>
Yeah
<fasdfadsfadasd>
infinisil: and... it didnt work for sdl
<infinisil>
sdl?
<fasdfadsfadasd>
same with glx
<infinisil>
Ah
<fasdfadsfadasd>
infinisil: Should I put in the line and see if it works?
<infinisil>
You applied the patch to a nixpkgs checkout, built the result, it downloaded this huge source, built it, and you ran it?
<__monty__>
Anyone know how to show only matching patterns with ripgrep and then filter out duplicates? I've got the first step but ripgrep is trying to be smart when it comes to piping : /
<fasdfadsfadasd>
infinisil: I took the default.nix file from github, applied the patch, built it with nix-build, installed it with nix-env and then it did not install a huge source
<infinisil>
__monty__: -v and then pipe through sort -u
<fasdfadsfadasd>
I mean build a huge source
<fasdfadsfadasd>
Sorry
<fasdfadsfadasd>
It downloaded it, and installed it
<fasdfadsfadasd>
but did not build anything
<infinisil>
Yeah then it didn't work, hold on
<__monty__>
infinisil: -v inverts matches, that's not what I want.
<infinisil>
Oh, -o
netixx has joined #nixos
<__monty__>
infinisil: rg '.*< (t.*)>.*' -i -N -r '$1' This gets me the matches I want but when piped to sort -u rg prefixes everything with the path and shows the matching line entirely.
<__monty__>
-o shows too much.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
igo95862 has joined #nixos
fasdfadsfadasd has quit [Quit: Page closed]
<infinisil>
__monty__: Ah, --no-filename
<__monty__>
infinisil: Ah, thanks. That's exactly what I wanted searching the manpage for "path" wasn't helping.
<illegalprime[m]>
Hi, I'm trying to build libphonenumber (uses plain ol' cmake + make), I get all the way to the install phase but then nix complains it cannot create /var/empty/local/include/phonenumbers. How should I write a derivation for a shared library?
igo95862 has quit [Quit: igo95862]
<clever>
illegalprime[m]: it needs to install everything to $out
<clever>
illegalprime[m]: headers would be in $out/include/
<illegalprime[m]>
should I set the installphase to `make install prefix=$out`? Shouldn't the default builder do this already?
<clever>
illegalprime[m]: you can also set installFlags = [ "prefix=$out" ];
* samueldr
is confused
<illegalprime[m]>
clever: thank you! its building...
<{^_^}>
[nix] @volth opened pull request #2282 → fix build without `--enable-gc' → https://git.io/fNvgL
<andi->
jgt: git-crypt or git-secret and then import the file in your nixops expression. That will solve the isuse in the repository but not within the nix store.
MarcWeber has quit [Remote host closed the connection]
<jgt>
andi-: yeah, that sounds like it could work. I've used git-crypt a fair bit before. Can Nix import just a single string?
<worldofpeace>
,locate bin scour
<{^_^}>
Couldn't find any packages
<andi->
jgt: yes, if you make it a valid string (echo '"fooo"' > /tmp/myfile; nix repl ... import /tmp/myfile)
hhes has quit [Ping timeout: 265 seconds]
elasticdog has quit [Quit: WeeChat 2.0.1]
<jgt>
Ok, that's a good idea. It's then very easy to store all secret key/value pairs in a set, and import all in one go.
<jgt>
andi-: Thanks!
<infinisil>
jgt: Personally I'm just using a private git repository for all private things
<infinisil>
I guess it's still not encrypted on my local disk, but at least it's not in my public repo
<worldofpeace>
^
<jgt>
infinisil: That's what I'm doing too, but it's becoming more frequent that I'll share repos with others
<jgt>
I've been storing secrets in the clear, but in private repos for a couple of years
hhes has joined #nixos
<jgt>
I thought it'd be a good time to finally stop doing that :P
robstr has quit [Quit: WeeChat 1.9.1]
Goblin_ has joined #nixos
<Goblin_>
I'm trying to add my ssh public key to `configuration.nix`, how do I paste it to one line instead of multiple lines?
<samueldr>
think I figured it out, using nativeBuildInput when it probably should have been buildInput :/
neeasade has joined #nixos
<infinisil>
Goblin_: That really all depends on your editor and OS, just remove the newlines or so
<__monty__>
Goblin_: Or use a multiline string?
<Goblin_>
infinisil: ok so there is a way to do it, do you by chance use nano?
<samueldr>
infinisil: possibly the terminal used
<samueldr>
Goblin_: you copied to the X clipboard or using the editor?
<samueldr>
and then pasted through the terminal?
<__monty__>
Goblin_: cat pubkey | paste -sd '' should do it.
<LnL>
multiline ssh *public* key?
<Goblin_>
I used cat, and copied the public key from the terminal
ambro718 has quit [Quit: Konversation terminated!]
mkaito has quit [Remote host closed the connection]
<LnL>
it might be long depending on the bits, but only the private key has multiple lines
<worldofpeace>
where do python applications usually go in tree?
mkaito has joined #nixos
mkaito has quit [Changing host]
mkaito has joined #nixos
<__monty__>
cat pubkey | paste -sd '' | xclip -s c -i will copy it to your clipboard without any coincidental newlines from printing to the terminal.
<__monty__>
LnL: Public keys are longer than private keys though so how does that make sense?
<__monty__>
Ah, because it's just a fingerprint?
<infinisil>
worldofpeace: I think wherever it makes sense, without regards to it being python
<worldofpeace>
infinisil: ahh right
viric has joined #nixos
<Goblin_>
figured it out
<Goblin_>
I still can't ssh however, its denying me access
<Goblin_>
even with `ssh -i id_rsa`
<{^_^}>
[nixpkgs] @tadfisher opened pull request #43149 → zoom-us: set qt plugin paths in wrapper → https://git.io/fNvat
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
justanotheruser has quit [Quit: WeeChat 2.0]
<Goblin_>
got it finally
Goblin_ has quit [Quit: Page closed]
<LnL>
__monty__: not sure what you mean, why would a public key be longer?
drewr has joined #nixos
<clever>
illegalprime[m]: that would go under cmakeConfigureFlags i believe
<illegalprime[m]>
sweet, didn't know about that
<clever>
illegalprime[m]: adding cmake to the buildInputs will automatically change the default configurePhase, and the new one obeys that var
<clever>
you can grep nixpkgs for examples, and how it works
joepie91_to_go has quit [Ping timeout: 260 seconds]
raynold has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<__monty__>
LnL: Well the public key is modules + exponent and the private is just an exponent (at least for rsa).
<__monty__>
LnL: Looking into the pem files though it seems there's just way more information included in the private key so CRT can be applied, which is very vulnerable to side-channel attacks afaik though. Not saying that matters all the time, just that it matters.
drakonis has quit [Read error: Connection reset by peer]
<rotaerk>
though, I'm not seeing anything that explains the specific problem I'm getting...
<rotaerk>
oh dammit, my testing criteria were a little wrong
<rotaerk>
basically, what went wrong was before upgrading, my program ran fine. after upgrading, my program threw a libGL symbol lookup error
<rotaerk>
after some digging I noticed that this is because before the upgrade, the RUNPATH ELF dtag was used, and after the upgrade the RPATH ELF dtag was used
<rotaerk>
during my testing, I simply looked for the symbol lookup error, didn't check the dtag
<rotaerk>
but in this "last good revision", what I'm seeing is one where RPATH is used *but* no symbol lookup error
<rotaerk>
but I think the *real* cause of my problem is the switch from RUNPATH to RPATH
rcshm has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]