<zybell_>
in iwujokorit the last line of the error
<zybell_>
did tell you to use --show-trace
<zybell_>
to get a better report
<zybell_>
did you try?
<{^_^}>
[nixpkgs] @shlevy pushed to release-18.03 « buildSetupcfg: Include unzip for zip sources. »: https://git.io/vpewK
<{^_^}>
[nixpkgs] @shlevy pushed to master « buildSetupcfg: Include unzip for zip sources. »: https://git.io/vpewi
mkoenig has joined #nixos
<{^_^}>
[nixpkgs] @shlevy pushed to release-18.03 « Revert "buildSetupcfg: Include unzip for zip sources." »: https://git.io/vpewS
<{^_^}>
[nixpkgs] @shlevy pushed to master « Revert "buildSetupcfg: Include unzip for zip sources." »: https://git.io/vpewH
hakujin has quit [Ping timeout: 260 seconds]
psychic1 has joined #nixos
psychic1 has quit [Client Quit]
acarrico has joined #nixos
<cheshircat>
is there an equivalent to python.withPackages for lua?
mkoenig_ has quit [Ping timeout: 268 seconds]
Arcaelyx has quit [Read error: Connection reset by peer]
Arcaelyx has joined #nixos
hakujin has joined #nixos
xeji has quit [Quit: WeeChat 2.0]
xy2_ has quit [Ping timeout: 268 seconds]
<justanotheruser>
zybell_: what is iwujokorit?
<justanotheruser>
the traceback ends with undefined variable ‘nixos-1803’ at /etc/nixos/configuration.nix:183:5
<zybell_>
the filename you posted here
<justanotheruser>
oh wait
<justanotheruser>
sorry, ththe end of the traceback is file ‘nixos-1803’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:4:23
<zybell_>
on my browser tere is a line after that (in parentheses)
Ariakenom has quit [Read error: Connection reset by peer]
<zybell_>
(but nobody reads what is in parentheses)
hakujin has quit [Ping timeout: 264 seconds]
justanotheruser is now known as justan0theruser
justan0theruser is now known as justanotheruser
day|flip has quit [Remote host closed the connection]
endformationage has quit [Ping timeout: 260 seconds]
endformationage has joined #nixos
endformationage has quit [Client Quit]
hakujin has quit [Ping timeout: 240 seconds]
hakujin has joined #nixos
nuncanada has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 268 seconds]
markus1189 has joined #nixos
hakujin has joined #nixos
markus1199 has quit [Ping timeout: 240 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm has joined #nixos
hakujin has quit [Ping timeout: 260 seconds]
aarvar has joined #nixos
hakujin has joined #nixos
aither has quit [Ping timeout: 240 seconds]
snajpa has quit [Ping timeout: 256 seconds]
day|flip has joined #nixos
snajpa has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
hakujin has joined #nixos
mkoenig_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
aither has joined #nixos
mkoenig has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « maloader: linux only »: https://git.io/vpe6g
ckauhaus has joined #nixos
ckauhaus has quit [Ping timeout: 256 seconds]
mkoenig has joined #nixos
<monokrome>
??
mkoenig_ has quit [Ping timeout: 260 seconds]
hakujin has quit [Ping timeout: 265 seconds]
aarvar has quit [Ping timeout: 264 seconds]
hakujin has joined #nixos
eldad has joined #nixos
aarvar has joined #nixos
<eldad>
hi there, I have installed nixos and configured it to start with gnome. I have 2 major problems and I wonder if someone can help:1- wpa_supplicant fails to start (service) i tried to stop and start again and it just fails
<eldad>
2: when i log into gnome, all I get is a terminal in upper left corner, nothing else
jperras has quit [Ping timeout: 256 seconds]
<clever>
eldad: for that 2nd one, services.xserver.desktopManager.xterm.enable = false;
<eldad>
I created a wpa_supplicant config file and when I run wpa_supplicant -B -i interface -c <(wpa_passphrase MYSSID passphrase) it says successful but i have no network
rail_ has joined #nixos
<eldad>
thank you clever, is this in the configuration file of cli?
<clever>
in configuration.nix
<eldad>
cheers, will try it
<clever>
also, id run `wpa_passphrase MYSSID passphrase > /etc/wpa_supplicant.conf` and then `systemctl start wpa_passphrase` to fix the 1st issue
hakujin has quit [Ping timeout: 264 seconds]
rail_ has quit [Quit: Page closed]
hakujin has joined #nixos
fusion809 has joined #nixos
<eldad>
will give it a go :) thank you
ihar has joined #nixos
aither has quit [Ping timeout: 265 seconds]
snajpa has quit [Ping timeout: 276 seconds]
snajpa has joined #nixos
ericsagnes has quit [Ping timeout: 256 seconds]
<fusion809>
Hi folks, does Nix use a locale that is independent of the host system? I ask because I installed Vim using Nix and in NERDTree it shows strange characters that I think are locale-related. Here's a screenshot if you want a peakaboo: https://imgur.com/Ts9CMic.png (see the weird V and diamond characters next to the folder names?)
<eldad>
@fusion809 have you resolved your gnome issue?
<fusion809>
Na not yet, I'm using deepin atm, later I'll get onto NixOS
<ihar>
quit
ihar has quit [Quit: WeeChat 2.0]
<fusion809>
Btw how do I build Vim with a GTK+2 GUI? Like atm the way I'm building and installing Vim from the nixpkgs source repo (which I'm using as I'm building a newer release of it) and the way I am is in the top-level dir I'm running `nix-env -f . -iA vim`. I've tried to set the gui arg to gtk2 with: `nix-env -f . -iA vim --arg gui gtk2` but Nix doesn't seem to like these options together as it gives the error `error: undefined
<fusion809>
variable 'gtk3' at (string):1:1`
<fusion809>
Oops I mean `error: undefined variable 'gtk2' at (string):1:1` I tried gtk3 later
jperras has joined #nixos
ihar has joined #nixos
jperras has quit [Ping timeout: 264 seconds]
hakujin has quit [Ping timeout: 260 seconds]
<ihar>
hi all. I am trying to configure kerberos authentication with firefox (or any browser for that matter). I have gssSupport = true in nixpkgs.config.firefox. I built firefox-wrapper. I got my ticket (I can see it in klist). Despite that, I still get asked for the password. I've found an old bug report about missing link to libgssapi_krb5 here: https://github.com/NixOS/nixpkgs/issues/15159 I tried the workaround
<ihar>
(setting network.negotiate-auth.gsslib in about:config) but it doesn't work anyway. (btw the 'Web' browser shipped with Gnome shows the same behavior though maybe it uses the same backend, not sure.)
serentty[m] has joined #nixos
<ihar>
has anyone been more successful in making firefox aware of kerberos?
hakujin has joined #nixos
<serentty[m]>
Hi. I'm having trouble getting Vulkan to work. The application that I'm trying to write complains that it can't find libvulkan.so.1.
<serentty[m]>
I have vulkan-loader installed (as root).
schoppenhauer has quit [Ping timeout: 276 seconds]
<psychic1>
can anyone help me figure out why the bash in nix-shell is acting weird while "nix run"'s shell works fine?
<psychic1>
For example with `nix-shell` when I backspace the cursor continues to the right instead of going back to the left
rosa has joined #nixos
<clever>
psychic1: nix-shell changes $SHELL to a simpler bash that lacks readline support, but it still runs the previous bash, so it only beocmes an issue when you nest shells
<clever>
nix run doesnt change bash
hakujin has quit [Ping timeout: 240 seconds]
<psychic1>
hmm
eldad has quit [Ping timeout: 264 seconds]
<psychic1>
clever, I understand your statement but I am not nesting nix-shells I only have one
<psychic1>
I am calling nix-shell from a regular bash
<psychic1>
Did you mean nesting shells in general? Or a nested nix-shell within another nix-shell?
<clever>
it typically only happens when you run nix-shell inside nix-shell
<clever>
and can sometimes be fixed by adding bashInteractive to the shell inputs
<psychic1>
shellinputs as in build inputs?
<psychic1>
I am running an environment for a haskell project.
<psychic1>
Where would one add that bashInteractive in that case?
<clever>
yeah, you will need to add it to the librarySystemDepends i think
<psychic1>
I have a package override with my project
<psychic1>
How does one go about finding where callPackage is defined?
<psychic1>
I don't want to be told where it is, I want to understand how to go about `nixPkgs` and finding definition of things I'm interested in.
rosa has joined #nixos
<psychic1>
I searched the codebase but there are too many usages of this function. I also tried searching for "callPackage =" But I don't know which, if any, is the usual callPackage
jperras has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
hakujin has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
Guanin_ has quit [Ping timeout: 265 seconds]
blankhart has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
<psychic1>
Even nix-repl's command prompt does not back space accordingly. I assume it also depends on that minimal bash.
<psychic1>
am I supposed to override my bash package in order to make sure nix-shell and nix-repl have usable shells?
<psychic1>
If so, how does one go about defining that? I'd like to do something as standard as possible that other people use and endorse.
Guanin_ has joined #nixos
mahalel_ has quit [Ping timeout: 264 seconds]
hamishmack has quit [Quit: hamishmack]
<clever>
psychic1: that sounds more like $TERM is set wrong, so all readline based apps are broken
<psychic1>
$ echo $TERM
<psychic1>
rxvt-unicode-256color
<psychic1>
`ghci` works fine for me and it is also readline based, no?
<clever>
psychic1: also try doing things under a different terminal emulator
<psychic1>
`ghci` from within a nix-shell works fine (backspace moves cursor left)
<psychic1>
OK will try
<psychic1>
clever, you're right, under xterm it works
<psychic1>
Thanks, that narrows my search path
<clever>
try disabling the 256 color changes you may have done to rxvt?
hamishmack has joined #nixos
<psychic1>
Would that affect the cursor? Hmm I can disable the solarized colorscheme
ihar has quit [Quit: WeeChat 2.0]
hakujin has joined #nixos
psychic1 has quit [Quit: WeeChat 1.6]
rosa_ has joined #nixos
rosa has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 240 seconds]
psychic1 has joined #nixos
<psychic1>
clever, I fixed the problem by using rxvt-unicode from nixpkgs instead of rxvt-unicode from debian
<day|flip>
is there a way to inport package from luarocks?
<day|flip>
so that way the package is seen as a system wide?
rosa has joined #nixos
rosa_ has quit [Read error: Connection reset by peer]
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nixos
eldados has joined #nixos
Seichi has joined #nixos
<eldados>
hi, managed to run gnome and wifi (thank you clever!)
Seichi has quit [Client Quit]
<eldados>
silly question, what's the best way to upgrade to gnome 3.28? the one installed is 3.0 and I did a system upgrade and enabled the unstable channel
<{^_^}>
→ ee8495c4 by @aneeshusa: salt: fix msgpack dependency
<{^_^}>
→ e797e009 by @aneeshusa: salt: 2017.7.2 -> 2017.7.4
<{^_^}>
→ d7271088 by @dotlambda: Merge pull request #35891 from aneeshusa/fix-salt-msgpack-dependency
<clever>
jgt: yeah, i havent looked into how to fix that properly yet
<jgt>
clever: extend seems to work. Otherwise, I think overlays are the way to do things now, but I haven't tried.
<clever>
overlays only work at the nixpkgs level i believe
<clever>
so they cant compose haskell overrides
pie_ has quit [Ping timeout: 265 seconds]
rosa_ has quit [Quit: rosa]
<jgt>
ah, ok. That'll stop me going down another rabbit hole.
<clever>
similar to when you set config, you can also set import <nixpkgs> { overlays = [ ]; }, and give it a list of self: super: functions that act on the top-level pkgs set
<jgt>
I can remove the version numbers in persistent's cabal file, but then it doesn't build because it does actually need the lower bounds it has on its dependencies
<clever>
oddly, i cant find nomad in that cabal file
<jgt>
monad, not nomad
<clever>
*doh*
<clever>
yeah, you will probably want to run cabal2nix on those too, to force the version
<clever>
and add them to the overrides
<jgt>
but do I add them to the overrides in my shell.nix? Or do I add the overrides in the fork's persistent.nix?
<jgt>
(not actually sure if I can do the latter)
<clever>
you would add it to the haskellPackages overrides
<clever>
so the entire package set is affected
<jgt>
ok, thanks. I'll give that a try.
rosa_ has quit [Remote host closed the connection]
<jgt>
clever: is there a simpler way to do the override than cloning the project locally, running cabal2nix, etc?
rosa has joined #nixos
<clever>
you can give cabal2nix a git url and a git revision
<clever>
it might also support just a bare package name+version and hackage lookups, never tried it though
<jgt>
ok
<jgt>
I was thinking of something just in the shell.nix, like fetchFromGithub and callCabal2nix
<{^_^}>
[nixpkgs] @7c6f434c pushed to master « libreoffice: wrapper: apparently session bus for DBus is enough, and adding a local system bus when a session bus is pre… »: https://git.io/vpeDW
<drakonis>
worth noting that it is good to have tools to bootstrap other distros
rosa_ has joined #nixos
ckauhaus_ has quit [Ping timeout: 268 seconds]
hakujin has joined #nixos
<ij>
clever, It seems like toPath doesn't actually convert the types, just makes the path canonical. :(
jperras has joined #nixos
<clever>
yeah
<clever>
ij: it also adds the path as context on the string
<clever>
ij: have you seen what context is within nix?
<ij>
Nope.
ma27 has joined #nixos
rosa_ has quit [Quit: rosa]
<clever>
ij: all strings in nix have an array of context, that tracks what storepaths and derivations the string depends on
<clever>
ij: and when those strings are passed to builtins.derivation, it uses the context to figure out what the build-time deps of the new derivation are
<MarcWeber>
For the code I wrote - eg ruby - it could be as simple as pypi2nix_patches = { "libxml2" = { "-E" : "libxml"}, "Automat" = { "drop-autoo-deps-if-cycle": ["Twisted"] /* resolve cyclic dependencies */}
jgt has quit [Ping timeout: 276 seconds]
eldados has quit [Ping timeout: 264 seconds]
eldados has joined #nixos
chisui_ has joined #nixos
coot has quit [Quit: coot]
jacob_ has joined #nixos
rosa has joined #nixos
jgt has joined #nixos
bkchr has quit [Ping timeout: 260 seconds]
<aristid>
while switching to the lates nixos-unstable-small configuration, my X11 crashed
<aristid>
and atty also didn't work anymore
<aristid>
anyone else seen that?
LysergicDreams has joined #nixos
<{^_^}>
[nixpkgs] @siers opened pull request #38959 → ruby-modules: Import gemset if it's a path OR a string. → https://git.io/vpeQi
rosa has quit [Quit: rosa]
<ij>
me ^
<ij>
\o/
bkchr has joined #nixos
silver has quit [Read error: Connection reset by peer]
<ij>
aristid, I was talking about the {^_^} nick's notice about my pull request.
eldados has quit [Ping timeout: 260 seconds]
<ij>
I'm not on unstable, so I wouldn't know.
<aristid>
ij: "me ^" was an ambiguous statement :P
<{^_^}>
[nixpkgs] @zimbatm merged pull request #38959 → ruby-modules: Import gemset if it's a path OR a string. → https://git.io/vpeQi
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @siers to master « ruby-modules: Import gemset if it's a path OR a string. (#38959) »: https://git.io/vpe5k
maingo has quit [Quit: Connection closed for inactivity]
<sondr3>
hello, I'm in the process of trying to create my own little package, however I need to both download and build it and then create a systemd service for it, is this possible to do in one file? All the examples online or in the nixpkgs repo are either just installing the package or having the package installation in one file and then configuring the service in another
<infinisil>
sondr3: Indeed, Nix doesn't really care what lives in what file, it's very flexible
<infinisil>
sondr3: By systemd service you mean one you can use with nixos?
<sondr3>
That's not the hard part though, I've created it and such, I just need to also download and build the package I want but I haven't found any examples I can rely on where both happen in the same file :)
<sondr3>
I've created the configuration settings and the systemd service settings, now I just need to fetch the package
zduch4c has joined #nixos
<zduch4c>
hello
<zduch4c>
how can NixOS clean up the /var directory? I have some leftover ipfs stuff i dont want there, and nix-collect-garbage -d didnt seem to clean it up
<sphalerite>
zduch4c: nix/nixos doesn't touch /var since it's stateful stuff like databases, which people typically don't want deleted automatically. Just delete it manually
<zduch4c>
ok thanks
<xCuri0>
might have important stuff you don't want deleted
<zduch4c>
if i remove all of /var, will NixOS fix it up?
<zduch4c>
*/var/lib
rosa has joined #nixos
<sphalerite>
zduch4c: no, don't do that
<sphalerite>
only remove stuff you know you don't need from there
pkill9 has joined #nixos
<jgt>
can I have multiple versions of a haskell package in my nixpkgs?
<zduch4c>
okay thanks
zduch4c has quit [Quit: Page closed]
<jgt>
I have a haskell project, and I used packageOverrides to grab a new version of a package
<jgt>
that package needs newer versions of monad-logger and resourcet; no problem, I clone those and override
<jgt>
but other packages depend on *older* version of resourcet
<jgt>
so really, I think I need both versions available. Can I do that? If so, how?
<sphalerite>
jgt: try using an overlay specifically for your project
<infinisil>
sondr3: Can you show what you got now?
<jgt>
sphalerite: will using an overlay bring a meaningful difference to using packageOverrides?
<sphalerite>
jgt: yes. It's composable, so it can coexist with other overlays
<sphalerite>
jgt: and if you only apply it within your project the version changes shouldn't affect anything other than your project
<sondr3>
infinisil: now I want to download vgaswitcheroo from Github and install it, but that's where I'm left a bit stumped
<jgt>
sphalerite: so what I'm trying to do doesn't actually work with packageOverrides?
<sphalerite>
jgt: it might work, but I'm not sure
<sphalerite>
jgt: what's wrong with using an overlay?
<sphalerite>
Overlays are there to replace packageOverrides
<jgt>
sphalerite: not being sarcastic or passive aggressive, I'm just trying to understand why so I can stop flailing :)
<jgt>
sphalerite: afaik, nothing wrong with overlays
<jgt>
if that's the right way to do things, then I'll do it that way
<jgt>
but it's a new approach for me, and finding working examples is hard enough as it is
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<sphalerite>
it's not hard to change a packageOverrides function into an overlay
<infinisil>
sondr3: I left a comment in the gist with a draft of how you can get started
seanparsons has joined #nixos
<sondr3>
infinisil: awesome! Thanks a lot, I'll give it a go
<jgt>
sphalerite: ok, I'll see if I can find some examples. Here's what I have so far. It fails to build because it's missing some versions of monad-logger and resourcet: http://ix.io/17Ow
<jgt>
sphalerite: I tried overriding those packages, but like I said, other packages depend on older versions of resourcet.
<sphalerite>
jgt: oh you mean other packages *within* the project?
<sphalerite>
yeah then it won't help
orivej has joined #nixos
<sphalerite>
maybe using cabal2nix instead will work
bennofs has joined #nixos
<jgt>
sphalerite: using cabal2nix on what? I've used it on my own project, and I've used in on the package I'm overriding.
<jgt>
cabal2nix doesn't output version numbers or anything
<sphalerite>
oh hm
<sphalerite>
in that case you may need to jailbreak or if that doesn't work upgrade those dependent packages too.
<infinisil>
jgt: stack2nix works really well
<infinisil>
If you don't mind building all dependencies yourself once
<infinisil>
that's really what makes it work so well though
<sphalerite>
sondr3: you shouldn't need an extra package for it really, since vgaswitcheroo is just exposed via a sysfs entry which you can write into
<jgt>
sphalerite: I tried upgrading those dependent packages, but then other packages fail to build because they depend on older versions
<jgt>
hmm… maybe I can jailbreak the packages the depend on the older versions…
<sphalerite>
jgt: yeah so you'd need to upgrade those too, that's what I mean
<sphalerite>
jgt: or you could try stack2nix as infinisil suggests, it's probably a lot easier
<jgt>
infinisil: I've used stack2nix, but I'm not sure what the differentiatior is here
<jgt>
oh… maybe I should create a stack.yaml in my main project, list the new version of persistent in the extra-deps, and then run stack2nix
<infinisil>
jgt: stack2nix uses stackage's package set, which is a regular set of packages known to work well with each other, so you won't get build errors when you stick to the included ones (a couple thousand)
<jgt>
I'll try that
<sondr3>
sphalerite: I couldn't find anything when I searched around, thanks, I'll look into that as well
<jgt>
infinisil: I'm familiar with stackage. The problem is I want to use a bleeding edge version of persistent.
<jgt>
or ideally, my own fork.
<sondr3>
sphalerite: I'm trying to download the GitHub repo that I used in Arch Linux via AUR and use that but that package might be easier
<Unode>
hi all, after updating to 18.03 ntpd seems to always hang at shutdown. systemd always waits 90s for it. Any way to prevent this from happening?
<infinisil>
jgt: Is stack nightly not enough?
<sphalerite>
sondr3: where is this repo? I suspect it does pretty much the same thing
ckauhaus has joined #nixos
<jgt>
infinisil: I don't know. Wouldn't that mean my fork needs to be on Stackage?
<sondr3>
sphalerite: oh, right, forgot about that, well, I might just open an issue regardless since it's something I want and need, I'll tinker around and see what I end up with
<nek0>
hi folks. how can I install godot-3.0.2 in nixos? even after switching to nixos-unstable channel I still get 2.1.4.
ckauhaus has quit [Remote host closed the connection]
<sphalerite>
sondr3: if you're willing to maintain it, feel free to open a PR adding it back
Narigo has joined #nixos
<sphalerite>
sondr3: or maybe pink k0001
<sondr3>
sphalerite: alright, thanks for all the help, I'll followup on the pull request itself since the name is a bit misleading since it works for Nvidia as well
Narigo has left #nixos ["Leaving"]
Narigo has joined #nixos
acarrico has joined #nixos
Alling has joined #nixos
<Alling>
.gnome-shell-wr[1001]: Device activation failed: The VPN service 'org.freedesktop.NetworkManager.pptp' was not installed.
bennofs has quit [Ping timeout: 256 seconds]
<Alling>
Trying to connect to my router using PPTP in Gnome. The GUI show no error but journalctl does.
thblt has quit [Remote host closed the connection]
<Alling>
What can I do to make PPTP VPN work?
<Alling>
If I try pptp on the command line btw:
<Alling>
Error: either "to" is duplicate, or "uid" is a garbage.
<Narigo>
Hi there, total newbie here... is it possible to add configuration options to the /etc/nixos/configuration.nix file programmatically / through a script or command line instead of editing it directly? I can only find "edit the configuration file", but I'd like to script my setup steps right from the start, if possible
<Narigo>
sphalerite: So my only hope is sed or similar then? :( Is there something "in progress" so I can follow its development?
<Narigo>
Ah, thanks :)
ckauhaus has joined #nixos
<jtojnar>
Narigo: what are you trying to achieve? configuration.nix is already like a script
<jtojnar>
but declarative, therefore better
rosa has quit [Quit: rosa]
<ben>
lol
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
<ben>
like a script, but better because it's not a script
hakujin has quit [Ping timeout: 256 seconds]
<Narigo>
jtojnar, I want to set up my raspberry pi with nix os - haven't used nixos before, so this is a lot to learn. I want to make all steps reproducable, so I can easily recreate setting it up
fendor has joined #nixos
<jtojnar>
ben: well, usually you use a script to record a work so you can replicate it later
<ben>
Narigo: once you've written the configuration.nix by hand, what is not reproducible about that?
<LnL>
put your configuration.nix in git and clone it
<Narigo>
I thought I could write a script that does all the necessary steps and on the Pi just do a `sh <(curl my-ip/init.sh)` and set it up
<LnL>
reproducable + history :D
<ben>
Narigo: do you need to customize it for each specific installation?
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<Narigo>
ben: I just see that when I filled the SD card, there already is something in configuration.nix - namely "imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix> ];"
<ben>
i guess that's defaults for bootable sd cards?
<ben>
you can add more imports in there, and some of them could be machine-generated if that helps
<ben>
or you could write logic in nix to load a json file and use values from it for specific options, or things like that
<ben>
still haven't wrapped my head around your ideal workflow, sorry :)
jgt has quit [Ping timeout: 268 seconds]
<Narigo>
If I'd use a different installation medium (for example put it on another machine with a different architecture), I would like to be able to use the same steps more or less...
<ben>
right
<ben>
you could put most of your config into a file like generic.nix and then just change that configuration.nix to say "imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix> ./generic.nix ];"
<ben>
would that get you closer to what you want?
<Narigo>
Yeah, that would be close - but I'd still need to change the imports = ... by hand, right?
<ben>
well, at that point it's probably easy to emit it as a script
<ben>
or you can use write nix logic inside your configuration.nix to check what system you're on and dynamically import different boilerplate
<clever>
ben: the value of imports cant depend on the value of pkgs, which heavily limits what you can do
<ben>
clever: can you import <nixpkgs> {} instead of taking pkgs? i guess thatd be extremely rude
<clever>
ben: you could
<ben>
(that breaks cross-builds i guess?)
<Narigo>
I guess getting "$platform_specific_import" is still something I'd need to find out before being able to automate this...
<clever>
it would default to the arch that the nix building it was built for
orivej has quit [Ping timeout: 265 seconds]
jgt has joined #nixos
rosa has joined #nixos
iyzsong has joined #nixos
<Narigo>
ben: I could also sed the configuration.nix file, look for imports = [ ... ]; and edit the line / add my custom.nix there. The problem would be if the list is not written in a single row in the configuration.nix file...
<ben>
Narigo: maybe that's my "mutability is bad!" aesthetics improperly extending to editing config files, but I don't like the idea of sed'ing an existing file
<ben>
Narigo: I'd rather generate a new file and import that/read from that from a static config file, or generate the top-level config file from scratch
<ben>
Narigo: (all the .nix files named in imports = [ ... ]; are equivalent to/equivalently powerful as the toplevel file, you don't need to contort yourself to get things into the toplevel file)
<ben>
someone should write a blog posts about various patterns for structuring configuration.nix's
<ben>
:P
fendor has quit [Ping timeout: 265 seconds]
zybell_ has joined #nixos
<Narigo>
ben: but that's essentially the same, isn't it? I mean, "adding another import to the list" - I just want to do that through a script instead of having to open an editor and writing it down manually
orivej has joined #nixos
<ben>
Narigo: oh yeah im suggesting you just leave a placeholder import (maybe it imports an empty file) from the start, so your script doesn't have to touch the file, it can just write a new file without worrying about the precise structure of the main file
goibhniu has quit [Ping timeout: 256 seconds]
<ben>
maybe im still having trouble visualizing the exact use case
<ben>
i think nix is flexible enough that you won't design yourself into a wall if you put off worrying about this until later though :)
<{^_^}>
[nixpkgs] @jtojnar pushed to master « terminator: clean up »: https://git.io/vpeFK
m0rphism1 has quit [Quit: WeeChat 2.0]
FareTower has quit [Ping timeout: 264 seconds]
sondr3 has quit [Ping timeout: 260 seconds]
<Narigo>
ben: yes, a different file where the "real" configuration is stored is a lot better than putting everything in the configuration.nix file. The only problem was that the configuration.nix already has something depending on the installation medium / architecture, so that might change for me
m0rphism has joined #nixos
<ben>
Narigo: (maybe a simple kludge: init.sh just does mv configuration.nix orig.nix; echo >configuration.nix '{ imports = [ ./orig.nix ./real-config.nix ]; }' )
sondr3 has joined #nixos
<Narigo>
ben: ohhhh, that would be the best probably! Thanks a lot :)
<ben>
where did the original config come from btw? im not familiar with the raspberry pi setup
<Narigo>
When you dd the image on the SD card, it's already there
<ben>
(set -e; and then mv --no-clobber maybe)
<ben>
Narigo: is the workflow that you dd the image to the SD card, then mutate the system on the SD card and boot from it forever, or is the SD card just an installation medium?
woffs has quit [Quit: Gateway shutdown]
<Narigo>
ben: The SD card is the bootable medium for the RaspberryPi, so I guess I need to mutate it - but I'm like 1% from the first steps to a final system. I just want to be able to reproduce every single step I take and therefore try to put everything into a script right from the beginning
iyzsong has quit [Ping timeout: 240 seconds]
Michael___ has joined #nixos
<jgt>
avn: infinisil Ok, after trying all that… nix-shell failed with error: attribute ‘applicative-quoters’ missing, at /nix/store/30g7yca1mmqm9x7w5psrljwdbb4mpvd7-nixpkgs-18.03pre121255.45a85eaceb/nixpkgs/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix:42:37
<Dezgeg>
Narigo: if you copy paste / imitate the sd-image-aarch64.nix file from nixpkgs you can build it reproducibly as documented in the file
<jgt>
I wonder if I should try changing compilers
<Dezgeg>
or I guess it's enough to put it in imports, actually
jperras has joined #nixos
<Dezgeg>
but that includes the installation-device.nix stuff which you may not want, so copy-paste is probably better
<ben>
well if it's not an installation device but the actual long-term boot medium/system, maybe that's correct after all?
<Michael___>
Hi! I'm pretty new to nixos. I've made a config in nixos 17.09. When using the same config in 18.03 I get "warning: unknown setting 'log-servers'" when running nix commands such as "nixos-rebuild" or "nix-env". I have no idea why and I don't know where that setting comes from. It's not explicily given in my configuration.nix. How would I trace this to tell why I'm getting it?
<zybell_>
Narigo:try `cd /etc/nixos;git init` Great way to track edits:-)
<ben>
(btw is there a writeup on how to easily create and maintain images for bootable nixos usb sticks that aren't meant as an installation medium, just as a portable nixos?)
<ben>
zybell_: do you include nixpkgs as a git submodule then so you can sync across incompatible upgrades?
<ben>
(does that even work? idk)
<Dezgeg>
well, for general usage it's quite inconvenient to build an 2 GB image each time and re-nuke your card, but sometimes that makes sense as well
<ben>
Dezgeg: oh i figured we're talking about rebuilding the system on the sd card in-place
tertle||eltret has quit [Quit: Connection closed for inactivity]
jperras has quit [Ping timeout: 264 seconds]
<Dezgeg>
I wasn't sure, but if the "normal" style installation is wanted then just replace /etc/nixos/configuration.nix with the config from https://nixos.wiki/wiki/NixOS_on_ARM and use nixos-rebuild as usual
<ben>
either way i think it's reasonable to do things manually for a while to gain familiarity and intuition before trying to 100% automate it
<zybell_>
ben:if pulled from a channel,why not? If edited myself git add suffices.
<Dezgeg>
certainly
<ben>
can a configuration.nix override the path to nixpkgs/the nixos modules in nixpkgs? or can you only do that as the caller of eg. nixos-rebuild?
<arianvp2>
I have no nix-channel overrides for the local user, just the sudo user
<LnL>
nix eval is strict
<{^_^}>
[nixpkgs] @lheckemann opened pull request #38963 → requireFile: exit with non-zero error message → https://git.io/vpeNt
<arianvp2>
so it evaluates somehting that should not be evaluated or something
<arianvp2>
because it forces everything?
<LnL>
you get the same thing with this
<LnL>
nix-instantiate --eval --strict channel:nixos-18.03 -A vim
rosa has joined #nixos
<arianvp2>
i see
<arianvp2>
thanks
rosa has quit [Client Quit]
<arianvp2>
many of the software shipped with gnome just segfault (like gnome-software etc):D
<arianvp2>
but gnome-software is a bit of a weird one anyway I guess. as it doesnt work with the nix package manager (But probably with flatpak or something?)
knupfer has quit [Ping timeout: 265 seconds]
rosa has joined #nixos
<LnL>
don't know anything about gnome
schoppenhauer has quit [Ping timeout: 265 seconds]
sondr3 has quit [Ping timeout: 260 seconds]
raynold has quit [Quit: Connection closed for inactivity]
ndrei has quit [Remote host closed the connection]
<arianvp2>
it has an output "devdoc" and "man" . If I put those outputs in my nix-shell how do I view the docs with the manpager viewer?
<arianvp2>
The docs are in /nix/store/ncggxzj5842bqk030h9iz769vwza8q4j-curl-7.59.0-devdoc/share/man/ but `man` command does not find them
spear2 has quit [Ping timeout: 260 seconds]
<arianvp2>
ah I can set MANPATH when setting up my shell. answered my own question :)
spear2 has joined #nixos
<tilpner>
But why do you have to do that yourself?
<tilpner>
It's not working, but nix-shell -p curl.all man --pure --run manpath should include the curl path
blankhart has joined #nixos
Narigo has joined #nixos
knupfer has quit [Ping timeout: 255 seconds]
Ariakenom has joined #nixos
<arianvp2>
should it automatically do so tilpner ?
<arianvp2>
:O
woffs has joined #nixos
<tilpner>
It does with other packages
<tilpner>
nix-shell --pure -p rofi man --run manpath includes the rofi manpages path
<arianvp2>
oh weird then it's probably a bug in the curl package
Rusty1_ has joined #nixos
<LnL>
I think it only adds the default output
rosa has quit [Quit: rosa]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin has joined #nixos
rosa has joined #nixos
xcmw has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
rosa has quit [Client Quit]
knupfer has joined #nixos
arianvp2 has quit [Quit: Page closed]
xy2_ has quit [Quit: WeeChat 1.9.1]
xy2_ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin has quit [Ping timeout: 256 seconds]
rosa has joined #nixos
ckauhaus has quit [Ping timeout: 260 seconds]
leat has joined #nixos
hakujin has joined #nixos
Michael___ has quit [Ping timeout: 260 seconds]
rosa has quit [Remote host closed the connection]
thblt has quit [Remote host closed the connection]
rosa has joined #nixos
ericsagnes has joined #nixos
xcmw has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
Otis is now known as gm152
hakujin has joined #nixos
rosa has quit [Quit: rosa]
thblt has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
rosa has joined #nixos
hakujin has joined #nixos
vidbina has joined #nixos
<jgt>
I'm trying to install the latest version of stack2nix. I cloned the repo and built it with `nix-build`, but the result is not on my path. How do I run it?
<symphorien>
nix-build only creates a symlink `result`
<symphorien>
so try ./result/bin/stack2nix I guess
knupfer has quit [Ping timeout: 276 seconds]
hakujin has quit [Ping timeout: 240 seconds]
ckauhaus has joined #nixos
swaaws has quit [Remote host closed the connection]
<jgt>
symphorien: oh yeah, that's it. Thanks.
swaaws has joined #nixos
hakujin has joined #nixos
ckauhaus has quit [Ping timeout: 276 seconds]
jperras has joined #nixos
hakujin has quit [Ping timeout: 255 seconds]
rosa has quit [Quit: rosa]
iyzsong has quit [Ping timeout: 264 seconds]
jperras has quit [Ping timeout: 240 seconds]
nuncanada has joined #nixos
Narigo has quit [Quit: This computer has gone to sleep]
rosa has joined #nixos
lesnuages has joined #nixos
srdqty1 has quit [Ping timeout: 256 seconds]
srdqty1 has joined #nixos
<jgt>
stack2nix . > shell.nix && nix-shell
<jgt>
error: Package ‘Win32-2.5.4.1’ in /Users/jgt/projects/riskbook/shell.nix:1931 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<{^_^}>
→ 3bea518b by @jtojnar: gnome2.gtkglext: fix build with glibc ≥ 2.27
<{^_^}>
→ d4f97d5f by @jtojnar: gnome2.gtkglext: patch deprecated symbols
<{^_^}>
→ cfee336c by @jtojnar: k3d: clean up
rosa has joined #nixos
xcmw has joined #nixos
ryanartecona has joined #nixos
jtojnar has quit [Remote host closed the connection]
<ij>
vaibhavsagar, Hey! Is vlc 3.0 working at all? Is the packaging somewhat functional or is it not working at all? I want to make a commit for vlc so I want to run it. :P
<jgt>
I heard he's called Semivaibhav now.
<ij>
The humor's lost on me. :)
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
zpi has joined #nixos
avira has joined #nixos
<clever>
jgt: stack2nix generates a default.nix that returns a set containing many packages
ryanartecona has joined #nixos
Turion has joined #nixos
<Turion>
Any Neo2 users here?
<{^_^}>
[nixpkgs] @bdarnell opened pull request #38968 → cockroachdb: refactor and 1.1.5->2.0.0 → https://git.io/vpveu
<Turion>
I want to narrow down whether this is due to neo or some other weirdness
<logzet>
Turion: Arrow keys didn't work at all for me
<Turion>
Aha
<Turion>
Not even in other programs or just not in Konsole?
<logzet>
And still don't do (bone has the same upper layers as neo)
<logzet>
Gimme a second, ill switch xmodmap of
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Turion>
Are you using the physical arrow keys or the ones from that one layer?
vidbina has quit [Ping timeout: 240 seconds]
<logzet>
Turion: Physical work as expected, layer 4 arrows dont work in konsole, atom, xterm and intellij (obviously)
xcmw has joined #nixos
kisik21 has joined #nixos
<kisik21>
Hello. Saw some neat pictures in /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/data/misc/nixos-artwork/wallpapers.nix - what should I put into configuration.nix to install these? Tried to find them via nix-env and failed miserably (but found some icons).
<gchristensen>
how do you want to use them?
<kisik21>
I want them to appear in the system like any other package, these seem to be derivations I could install, but I can't find how to do it
ryanartecona has joined #nixos
<tilpner>
But they are normal packages! nixos-artwork.wallpapers.stripes
<tilpner>
(With a weird path "/share/artwork/gnome/*.png")
<gchristensen>
why do you want to install them? like ... what is your goal?
<kisik21>
nixos-artwork.wallpapers - that's it!
jperras has joined #nixos
<kisik21>
gchristensen: I want to use them as wallpapers, obviously.
<jgt>
clever: I can't think what that'd be good for
<jgt>
clever: although it did successfully drop me in a shell
<jgt>
clever: but I don't have ghci in it, so I'm not sure if my project works yet
<kisik21>
yes, nixos-artwork.wallpapers.stripes works, seems like I'm understanding this system... it's not unlike python modules. default.nix is equivalent to __init__.py that puts packages into namespace.
<kisik21>
tilpner: yay, it works, thank you!
<{^_^}>
[nixpkgs] @vbgl opened pull request #38969 → coq: fix installation of OCaml libraries → https://git.io/vpvft
<jgt>
clever: am I right in thinking that I use stack2nix to replace nixpkgs.haskellPackages?
<logzet>
Turion: Just activating the xmodmap from the neo homepage after login is my current work around.
<logzet>
I hacked the X11 packages a while back to make them work but that causes a lot of rebuilds and is rather ugly AND it does not work everywhere while xmodmap nearly does
jperras has quit [Ping timeout: 268 seconds]
<ajs124>
Is there a nice way to get the alsa configuration from the pulseaudio module without enabling the whole thing? I don' really want to copy&paste it.
hakujin has joined #nixos
<logzet>
Turion: But looking at your issue: Shift+letter is working for me in xterm
<logzet>
And the dedicated arrow keys do, too
<{^_^}>
[nixpkgs] @thorstenweber83 opened pull request #38970 → fstl: init at 0.9.3 → https://git.io/vpvfn
<logzet>
But I'm not using XMonad, maybe that's a difference?
<Turion>
logzet, ok, that's weird...
<Turion>
Yes I guess it must have to do with that
<Turion>
I didn't manage to install kde yet, and since xmonad sort of worked, I stayed with it
hakujin has quit [Ping timeout: 240 seconds]
<Turion>
I'll try the xmodmap workaround
<Turion>
Do you have your configuration.nix online by any chance? Maybe I have some obvious errors?
hakujin has joined #nixos
rosa has quit [Quit: rosa]
<logzet>
I don't, but I can look if it contains anything personal and create a gist otherwise
<logzet>
Just switching from qwertz to bone using scroll lock
pkill9 has quit [Read error: Connection reset by peer]
<logzet>
(with the scroll led as an indicator)
pkill9 has joined #nixos
<gchristensen>
is it possible to virtually unplug a USB device?
<pkill9>
just delete the /dev/sdX device i think
<pkill9>
lol
<Dezgeg>
doesn't help
<Dezgeg>
but you can use hubctrl
kisik21 has quit [Read error: Connection reset by peer]
<Dezgeg>
what's the specific use case?
<Dezgeg>
also qemu's monitor commands can add or remove aemulated devices
<gchristensen>
I have a usb to serial adapter which gets in to a bad state and is also hard to access, and is fixed by unplugging
florian has joined #nixos
<Dezgeg>
virtual unplug might not power cycle it though, unless you have a suitable external hub
<Dezgeg>
but google for hubctrl
<gchristensen>
cool, thanks Dezgeg
<clever>
jgt: yeah, i believe thats the best use of it
<clever>
jgt: and you need to add .env if you are using nix-shell
<mpickering>
does the generic builder automatically set rpaths appropriately for executables?
<clever>
mpickering: the gcc wrapper does that
<mpickering>
The program I am trying to package runs an executable it builds during "buildPhase" but the rpath is set incorrectly
<mpickering>
so I am wondering whether the correct thing to do is a small patch to stop it running it or setting DYLD_LIBRARY_PATH during buildPhase?
<clever>
mpickering: was that executable built within nix, or packaged and pre-compiled?
<mpickering>
yes it's built within nix.
<jgt>
clever: Ok, here's my shell.nix now. The haskell-packages.nix I import is the output of stack2nix. Does this look right to you? http://ix.io/17Q4
<mpickering>
It seems to want to run it to test it built correctly.
<Turion>
logzet, thanks, I guess when comparing I have set it up correctly as well
<clever>
jgt: the derivation for riskbook should also be in the stack2nix output
<jgt>
clever: ah ok, so it doesn't need to be in the shell.nix?
<jgt>
clever: it is indeed in the stack2nix output, and consequently in the haskell-packages.nix file
mitchty has joined #nixos
<mpickering>
clever: Could you suggest how it is idiomatic to proceed or are you not sure?
<mitchty>
question on java/jar packaging, specifically trying to work with https://github.com/mopemope/meghanada-server should I bother trying to build that or just sue the jar directly?
Ariakenom has joined #nixos
<mitchty>
sue/use, i can't type today
<clever>
mpickering: is this on darwin or linux?
<mpickering>
darwin
ajs124 has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
not sure about the specifics of darwin, maybe gchristensen or #nix-darwin know more?
kisik21 has joined #nixos
hakujin has joined #nixos
<LnL>
mpickering: we don't use rpaths on darwin
<mitchty>
i'm just going to follow what tools/cfr does for now, doesn't seem like all of the java derivations do a build, seems reasonable to not rebuild the jar
<LnL>
are you sure the install_name of whatever library that binary tries to use is correct?
apostolis has joined #nixos
<LnL>
that often causes problems like that
Leo` has quit [Ping timeout: 268 seconds]
hakujin has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
apostolis has quit [Client Quit]
<mpickering>
the install_name is @rpath/liblas.3.dylib
<mpickering>
(I think?)
rosa has joined #nixos
<mpickering>
So you are suggested fixing that to the correct thing instead? How does the install_name get chosen?
<zybell_>
on darwin --flatnamespace(?) is needed for some libs
iqubic has quit [Remote host closed the connection]
<florian>
Got someone spacemacs in a nix-shell working? I'am drying to develop haskell in a nix-shell and spacemacs isn't aware of ghc.
lo_mlatu has joined #nixos
<mpickering>
are you starting spacemacs in the shell?
<florian>
yes
<LnL>
mpickering: yeah, that should be an absolute path
<mpickering>
ok that makes sense. Now where do I modify so that it is one? I can't use install_name_tool as it is being run during buildPhase
endformationage has quit [Ping timeout: 276 seconds]
<LnL>
is liblas a dependency or the current build?
Turion has left #nixos [#nixos]
Turion has joined #nixos
<mpickering>
LnL: Yes, it is in buildInputs and I pass the "--with-liblas=${libLAS}/bin/liblas-config" configure flag
<LnL>
it should be fixed there then
apostolis has joined #nixos
<mpickering>
Is there any tracing I can turn on to see what is going wrong?
<zybell_>
NIX_DEBUG=7
<LnL>
I usually grep for install_name in the source the see if it can be handled by the build system
<LnL>
otherwise use fixDarwinDylibNames or call install_name yourself
endformationage has joined #nixos
<infinisil>
ben: Yeah you can't do that on the nix level
<apostolis>
I want to receive the store path of a nixpkgs pkg and insert it into a program that constructs a derivation , not written in Nix. How can I do that?
<infinisil>
Oh sorry I wasn't scrolled down
<mitchty>
gah, is there a jdk derivation I'm missing?
<clever>
mitchty: there are both openjdk and oraclejdk derivations
<LnL>
^ we have 2
<zybell_>
apostolis:is it the program that is not written in nix or the derivation?
<infinisil>
There's also a third: zulu
<LnL>
oh right
<mitchty>
should i use openjdk-darwin on osx?
<clever>
oraclejdk also doesnt work on darwin, since it just patchelf's the linux binaries
<apostolis>
The program will return a string that I will then execute with Nix, so the program is not written in Nix. The output will be a derivation set.
<clever>
apostolis: import from derivation could be used for that, if the program is pure
<clever>
apostolis: just write a derivation that generates nix and stores it in $out (either as a file, or a directory containing files)
<clever>
and then import "${that_derivation}/foo.nix"
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #38971 → Fix clblas and libgpuarray on darwin → https://git.io/vpvTO
<apostolis>
clever : I do not understand. For example , I want to know the location of 'bash' so as to construct the derivation. First I need the location, then the program is executed. Then the string is passed to nix to create the derivation and build the package.
logzet has quit [Ping timeout: 245 seconds]
logzet has joined #nixos
<clever>
apostolis: "${pkgs.bash}/bin/bash" is the path to bash, but there is also "${stdenv.shell}" to just get a shell
<mpickering>
LnL: So the build system should call "cc" with -install_name pointing directly to "liblas.dylib" in the correct place?
<LnL>
yeah something like -Wl,-install_name,$out/lib/liblas.3.dylib
<apostolis>
Mostly, I do not know if Nix has IO, so that I can get the location and pass it into my program from the command line. Isn't what you write a nix expression?
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 276 seconds]
Mateon3 is now known as Mateon1
<sphalerite>
why is nix-copy-closure with drvs so slow?
endformationage has joined #nixos
<apostolis>
Ok, looking at your example, I think I get it now.
jluttine has quit [Remote host closed the connection]
rosa has joined #nixos
odi has joined #nixos
<monokrome>
Has anyone else come across the issue where copying w control+c crashes chromium abs?
<monokrome>
tabs*
kisik21 has quit [Quit: Leaving.]
<foldingcookie>
monokrome: I've heard copy/paste issues in Chromium mentioned here before
jgt has quit [Read error: Connection reset by peer]
hakujin has joined #nixos
<monokrome>
It's super weird because CTRL+X still works
<monokrome>
but CTRL+C crashes the tab w/out copying
jluttine has joined #nixos
<monokrome>
on every site, and only on my NixOS machines
<ij>
monokrome, There's an issue about that and no one knows why it's there and it's fixed on 18.03.
rosa has quit [Client Quit]
jgt has joined #nixos
rosa has joined #nixos
okami has joined #nixos
<ambro718>
Speaking of chromium, is anyone else having this issue where it regularly causes many brief system-wide hangs, as observed for example by lagging audio playback and lagging mouse? Only happens with chromium not firefox (but chromium causes audio lags in firefox)...
<ambro718>
might be related to nvidia driver
hakujin has quit [Ping timeout: 264 seconds]
<ambro718>
I have to use firefox only because of that (though it's actually quite good these times) :)
freeman42x]NixOS has joined #nixos
FareTower has joined #nixos
<monokrome>
abrxs: I think that's just a Chromium thing, sadly
<monokrome>
Oh, could be nVidia as well - all my devices are nVidia so that'd explain why they all have it (even the Windows one0
<ambro718>
monokrome: doesn't seem to happen on another computer that has radeon graphics
<monokrome>
oops, ambro718 ^ - sorry abrxs
<monokrome>
ambro718: Very interesting. All my machines use the propriteary nVidia driver. Are yours as well?
<ambro718>
monokrome: yes the one that has that problem, one has radeon where I have not seen it and both have recent nixos 18.03
<monokrome>
Yeah, you're def onto something
<monokrome>
I wonder if nouveau fixes it
<ambro718>
I'm having more and more issues with the nvidia driver. KDE Plasma is also regularly misbehaving on the nvidia machine, not on the other one
<monokrome>
:(
DwarfMaster has quit [Ping timeout: 260 seconds]
<ambro718>
monokrome: do you also need that manual config to get nvidia to work with optimus?
<ambro718>
or any other manual config changes you did to the driver?
endformationage has quit [Ping timeout: 256 seconds]
<{^_^}>
→ 1935782c by @LnL7: vim-plugins: add bats.vim
<{^_^}>
→ a3e66250 by @Mic92: Merge pull request #38973 from LnL7/vim-plugins-bats
jgt has quit [Read error: Connection reset by peer]
jgt has joined #nixos
<Guillaum>
How can I create a nix file which fetch a git repository and then call the default.nix contained inside it? I'm a bit suspicious about calling "nix-build" inside a "buildPhase" of a nix derivation.
<{^_^}>
→ 02dfbab3 by @Mic92: nixos/pulseaudio: pulseaudio.enable should imply sound.enable
<{^_^}>
→ 70cd5d81 by @Mic92: Merge pull request #38945 from Mic92/pulseaudio
rauno has quit [Ping timeout: 260 seconds]
endformationage has quit [Ping timeout: 264 seconds]
<infinisil>
Guillaum: Yeah you can't call nix-build within a nix-build (recursive nix), but what you can do is import-from-derivation (IFD) like `import "${fetchurl { ... }}/path/to/file.nix"`
<infinisil>
Guillaum: Or just `import "${fetchurl { ... }}"` if you want the default.nix in the root
<ajs124>
Mic92: yeah, seems like two interfaces on a bond are waiting for link local addresses, which is kinda weird, but I disabled that via extraConfig = "LinkLocalAddressing=no"; and now it works
hakujin has quit [Ping timeout: 256 seconds]
FareTower has quit [Ping timeout: 240 seconds]
<bkchr[m]>
Does someone also observe poor wifi performance with intel wifi?
hakujin has joined #nixos
<bkchr[m]>
(with 4.16 kernel)
rct has joined #nixos
ertes has quit [Ping timeout: 240 seconds]
okami has quit [Quit: okami]
knupfer has joined #nixos
<dmj`>
is digital ocean nixops backend good?
<dmj`>
AWS is getting too complicated requiring people to spawn smaller instances into a VPC
endformationage has quit [Ping timeout: 256 seconds]
matthias_wahl has quit [Quit: WeeChat 2.1]
rosa has quit [Quit: rosa]
mg- has quit [Ping timeout: 255 seconds]
lo_mlatu has quit [Quit: Connection closed for inactivity]
<Aleksejs>
Hello! I've deployed nixos via nixops onto digital ocean droplet. There is the other guy who also works with this droplet. What is the correct way to "give" this deployment to him so we both can work on it?
endformationage has joined #nixos
<dmj`>
Aleksejs: thanks!
<Aleksejs>
have no idea for what but you're welcome :)
<zybell_>
mpickering:gdal seems to be missing from the nix (build) env but is found installed in mac env,but a dependency of gdal-mac is not found in mac env and not searched in nix.
jtojnar has joined #nixos
<{^_^}>
[nixpkgs] @obadz pushed commit from @florianjacob to release-18.03 « matomo: 3.3.0 -> 3.4.0 »: https://git.io/vpv3O
<infinisil>
dmj`: The DO backend is really really basic
<infinisil>
At least last time i checked
<dmj`>
infinisil: basic is all I need, that sounds great
michiel_l has quit [Remote host closed the connection]
<mpickering>
zybell_: I know the problem precisely but am trying to work out how to fix it. The problem is that the system liblas is used rather than the nix version. It was suggested that the install_name was wrong for liblas but I need specific advice about how to patch the build system so the install_name is set correctly.
<dmj`>
infinisil: did you create it?
<infinisil>
dmj`: Nah I'm not using it, I've created the machine in the web interface and am using it like a normal machine to deploy to
<dmj`>
infinisil: how do you do your deploys?
<dmj`>
sudo nixos-rebuild switch —remote ?
endformationage has quit [Ping timeout: 240 seconds]
<infinisil>
sudo nixops deploy
<infinisil>
I just set deployment.targetHost = "X.X.X.X"
<{^_^}>
[nixpkgs] @svanderburg merged pull request #38947 → node2nix: add nix as dependency (fix for #38946) → https://git.io/vpe0h
<{^_^}>
→ 5bb75e17 by @srghma: node2nix: add nix as dependency (fix for #38946)
<{^_^}>
→ fc7c95b0 by @svanderburg: Merge pull request #38947 from srghma/node2nix-fix
<dmj`>
infinisil: nice ok, going to try that now, I have a haskell web app on my nixos machine at home and a public facing IP from my ISP, but want to put it on the cloud since that is web scale.
boxscape has joined #nixos
<infinisil>
I'm just using nixops for my personal machines though, nothing enterprise like
<infinisil>
web scale haha
<dmj`>
infinisil: ah yea, you need to buy nixops enterprise edition
<infinisil>
dmj`: Are you also behind a nat at home?
endformationage has joined #nixos
acarrico has quit [Ping timeout: 260 seconds]
<dmj`>
infinisil: I have an apple airport router, and I don’t use comcast, so I don’t have a comcast modem that doubles as a router and turns into a double NAT situation that is a huge pita
<dmj`>
infinisil: my ISP makes it real easy
Laboon3k has joined #nixos
<infinisil>
Ah but no public ip at home
<infinisil>
I also don't, but I've written some nixos modules such that my behind-the-nat machines automatically set up a reverse ssh tunnel and a webserver proxy
<LnL>
mpickering: not really, if I update meta of gdal_1_11 it builds and the result looks fine
<mpickering>
LnL: What are you building in particular?
<zybell_>
The used DYLD_LIBRARY_PATH shows no evidence of trying to access liblas. You seem to have installed the headers, but not the runtime of liblas into your nix env
<LnL>
mpickering: or does that not come from nixpkgs and is it a vendored build
<mpickering>
It comes from nixpkgs but I have added the --with-liblas option.
<mpickering>
The link command doesn't mention "install_name" at all. I'm just a total noob when it comes to how C is compiled so the answer could be very basic.
<mpickering>
zybell_: DYLD_LIBRARY_PATH is irrelevant here I think as I am trying to set the correct install_name for liblas directly without relying on it.
<mpickering>
and I don't understand the precise mechanic the linker uses in order to set it unfortunately.
<boxscape>
so, I've had it a couple times that I wanted a program available with nix-shell, but not for building the package with nix-build. The way I've handled this is by adding the executable path to that program to PATH in the shellHook of the derivation. Is there a better way to do this?
vil has quit [Quit: :qa!]
<LnL>
nix-shell -p hello
<boxscape>
right, but that doesn't work if I also want to load a .nix file into the shell, does it?
<LnL>
or the new nix run nixpkgs.hello
<infinisil>
boxscape: I think you want to write a shell.nix file that adds some stuff to the default.nix
<infinisil>
nix-shell prefers shell.nix over default.nix
hakujin has quit [Quit: WeeChat 2.1]
<boxscape>
as in, add a buildInput or something?
<infinisil>
yeah
<boxscape>
okay, that sounds reasonable, I'll see if I can figure that out
<LnL>
simplest is probably a shell.nix with something like this
<mpickering>
ah so the install_name of a library is set when the library is compiled.. I see
<LnL>
mpickering: yeah, should have explained that a little better
<mpickering>
So looking at the install_name for "libLAS" it is "@rpath/liblas.3.dylib" so I have to fix that and then it should work
jasonmj has joined #nixos
<LnL>
but what about the /usr/local/opt thing?
<mpickering>
That's because the /System/Framework/ version of liblas is chosen
alex`` has quit [Ping timeout: 260 seconds]
* mpickering
wishes that I could stop these impurities
<mpickering>
the /usr/local/opt path is the homebrew one iirc?
<jasonmj>
Hi there, I'm looking for a little help. I think I might have hosed my nixos install. After rebooting, I found the state of my machine to be several hours in the past. Trying to run nixos rebuild fails, complaining that systemd-boot-builder could not "remove_old_entries" due to `/boot/loader/entries/` being a read-only file system.
<mpickering>
anyway I manually patched the rpath using install_name_tool to point directly to the right liblas and it fixed it
<mpickering>
I understand your comment now about "fixDarwinDylibNames"
<LnL>
mpickering: yeah, /opt doesn't have anything to do with the system library
tertle||eltret has joined #nixos
<mpickering>
I'm unsure of the exact mechanics but I know the installer for QGIS comes bundled with all this stuff I am packaging and dumps it all in the Frameworks folder which is causing some of these conflicts
<mpickering>
ok I fixed the install_name now. Will try building grass again. Thanks for helping (and zybell_)
<LnL>
mpickering: when you link a library with -lfoo -L./foo/lib the linker will resolve that to something like ./foo/lib/libfoo.dylib
<LnL>
mpickering: but that's not the final path that will be used, since the library might not be in the installation prefix yet
<LnL>
mpickering: so it looks for the install_name header in the dylib and uses that
kmicklas has joined #nixos
<mpickering>
How come fixDarwinDylibNames isn't run by default?
Cale has quit [Read error: Connection reset by peer]
jasonmj has quit [Quit: Page closed]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ertes has quit [Ping timeout: 268 seconds]
Cale has joined #nixos
Narigo has joined #nixos
ertes has joined #nixos
Cale has quit [Ping timeout: 276 seconds]
Turion has quit [Remote host closed the connection]
peuv has joined #nixos
jtojnar has quit [Quit: jtojnar]
<peuv>
I'd like my derivation to have optional dependencies that are only included if the derivation consumer sets `doCheck` to true. What's the best way to access the value of `doCheck`? Just trying to use it directly gives an undefined variable error because it's not in lexical scope
<srhb>
peuv: Lexical scope is the least of your problems. You can easily rec the attrset, but that won't do what you spect if you think the user can override it with overrideAttrs.
<LnL>
you can use rec
<srhb>
peuv: expect*
<LnL>
but yeah overriding won't work
ditadi has joined #nixos
<srhb>
peuv: The only realistic way to do what you want is to make an argument that does The Thing.
<peuv>
Ah, okay. So I basically just have my own `doCheck` and ask people to configure that rather than using the "universal" `doCheck`?
<{^_^}>
→ db1ac62e by @djgoku: update erlangR20 from 20.3.1 to 20.3.2
<{^_^}>
→ 2bdda287 by @srhb: Merge pull request #38646 from djgoku/update-erlang-r20
hiratara has joined #nixos
<{^_^}>
[nixpkgs] @srhb pushed commit from @djgoku to release-18.03 « update erlangR20 from 20.3.1 to 20.3.2 »: https://git.io/vpvZ8
johnw has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
jasonmj has quit [Quit: Page closed]
<{^_^}>
[nixpkgs] @Moredread opened pull request #38977 → borgbackup: Add blake2 library to build inputs → https://git.io/vpvZ2
Cale has quit [Read error: Connection reset by peer]
<srhb>
sphalerite: Hmm, I'm looking at #38963 and I don't feel super confident about it. Maybe you have a reviewer in mind? I always thought it behaved sanely.
Cale has joined #nixos
<sphalerite>
srhb: IMHO builds should fail with a non-zero exit code if anything is wrong rather than just not producing the output path
rosa has joined #nixos
<sphalerite>
the linked issue describes a case where it's caused a problem, but only in combination with how `nix build` behaves
<sphalerite>
this is only one of two possible ways to fix the problem, the other being to make nix build output the log tail even if the builder exited with 0 and didn't produce all the outputs
<sphalerite>
but in cases where this is the result of a packaging bug, I don't think that will be helpful most of the itme
<srhb>
OK, sounds reasonable to me.
phreedom has quit [Remote host closed the connection]
<dmj`>
infinisil: webserver> creating droplet ...error: No token provided. Please use a valid token
<WilliButz>
foldingcookie: you could do something like this: `nix show-derivation -f '<nixpkgs>' acpi | jq '.[].env.out'` This gives you the outpath, but does not tell you if it is actually present in the nix store
<dmj`>
infinisil: have you seen error: a ‘x86_64-linux’ is required to build ‘/nix/store/qb74bda39jmqrd7v1sg4zw1i1rpn1wrg-append-initrd-secrets.drv’, but I am a ‘x86_64-darwin’a
<dmj`>
infinisil: when trying to deploy from my osx machine
<foldingcookie>
hmm, ok
nadley has quit [Ping timeout: 240 seconds]
nadley has joined #nixos
<foldingcookie>
WilliButz: what role is "acpi" playing there? that line works as expected but for other packages I see errors like error: attribute 'xf86-input-synaptics' in selection path 'xf86-input-synaptics' not found
vil has joined #nixos
<foldingcookie>
(both acpi-1.7 and xf86-input-synaptics-1.9.0 are present in the output of `nix-env -q`)
<WilliButz>
foldingcookie: it's the attribute name, the one in pkgs/top-level/all-packages.nix
<foldingcookie>
ah
<nur0n0>
hey guys, I'm trying to port another package to nix but I'm getting a weird error. I ran a 'nix-prefetch-git' to get the rev and sha256 for a package, but when I plug those values into 'fetchFromGitHub' the directory does not seem to be mirrored correctly. I'm getting errors about missing files that I can see are present on github. Does anyone know
<nur0n0>
if there is an easy fix? maybe some flags I'm not aware of?
<foldingcookie>
so I'd want xorg.xf86inputsynaptics for example
<srhb>
nur0n0: eg. it fetches github.com/owner/repo/archive/rev.tar.gz
<srhb>
Or something like that :)
<LnL>
dmj`: hashing on osx can sometimes be different because of the way casing works
<dmj`>
LnL: was the in reference to my paste or the x86_darwin error
<SitiSchu>
Someone here that has experience with Hyper-V + NixOS ? I tried the hyper-daemons package from nixos.linuxPackages but it seems like it didnt create any systemd services since systemctl and find both cant find them
<LnL>
dmj`: yes
<dmj`>
LnL: which?
<srhb>
SitiSchu: Can you elaborate on what it means that you "tried" the hyper-daemons package?
<LnL>
dmj`: the paste, as for deploying from osx you need some way to build linux things (eg. distributed-builds)
<dmj`>
LnL: I thought nixops, if it detects a different arch. that you’re deploying to will attempt to build on the target server, as opposed to the server from which you are deploying
<SitiSchu>
@srhb, I tried installing it manually with nix-env and putting it in my config but it still dindt create the services it should (looking at the source to know the name of the services)
<srhb>
justanotheruser: It would appear that nixos-18.03 is not a channel that root knows of. Did you add it as your own user?
<srhb>
SitiSchu: Packages in general create no systemd services. Only modules do.
<SitiSchu>
so it was just me using it wrong ?
<srhb>
SitiSchu: I don't think there's any module that does what you want, but your expectations probably were misguided. :)
<LnL>
dmj`: no it builds locally and copies the closure over, you don't want to start compiling stuff on a production server :)
<nur0n0>
srhb: thanks. the actual issue was that the github project used git submodules
<srhb>
nur0n0: Boo! :-)
<dmj`>
LnL: yea true, guess I assumed the former. And yes :) in a production scenario for sure. But this is like a basic thing
<srhb>
SitiSchu: Oh, hm...
<SitiSchu>
I'm a total noob when it comes to nix expressions but it looks like it copies (or tries to) some service files
zybell_ has quit [Ping timeout: 256 seconds]
<nur0n0>
so does anyone know how to pass the '--recursive' flag to 'fetchFromGitHub'? i could always do it manually and then point nix to a tarball, but I wonder if there is a solution already implemented?
<srhb>
nur0n0: Does it takes fetchSubmodules = true ?
<LnL>
dmj`: yeah, it should be nice if there was an option for it, but AFAIK currently you'd need to the machine as a remote builder
<{^_^}>
[nixpkgs] @xeji opened pull request #38979 → nixos/test/systemd: fix broken test → https://git.io/vpvcC
<srhb>
SitiSchu: Yes, it does. They're in the .lib output of that derivation. However, that does not integrate them with the OS in any way.
<SitiSchu>
so the "installPhase" part at line 69 doesnt move them ?
<srhb>
SitiSchu: Yep, it does. into /nix/store/rzwkasifcr4mqyd989wna3cbcnwaw292-hyperv-daemons-4.14.34-lib/lib/systemd/system/h
<srhb>
SitiSchu: The thing to realize is that the whole NixOS systemd setup does not refer to a bunch of static files, but a symlink farm that is generated for each generation based on the active modules.
<srhb>
SitiSchu: And packages being "installed" has no influence on this at all, generally.
<foldingcookie>
WilliButz: do you know why the package hash shown by `nix show-derivation` isn't the same as installed when running `nix-env -u` or `nix-env -i`?
<srhb>
I don't know of a good way of reusing those unit files aside from duplicating their contents...
<foldingcookie>
I'm assuming some weirdness between "old" nix-env and "new" nix 2.0 but I don't really understand how this stuff fits together yet
<SitiSchu>
@srhb, hm I see (I have still a lot to learn) so what would be the best way to get them to function ? just copy them manually ? or is there a better way ?
<srhb>
SitiSchu: You can't copy them into systemd's libraries directly (those paths are read only, part of the immutability promise of NixOS) -- but maybe you could duplicate what they contain with the NixOS options in systemd.services
<LnL>
foldingcookie: using 1.11 and 2.0 will result in 2 different drv files that build the same output path, that's normal
<srhb>
SitiSchu: A better solution would be to write a real module that generates these units, but that may or may not be a little daunting at first.
<LnL>
foldingcookie: same happens with eg. fixed output drvs with the same output hash but different urls
<nur0n0>
srhb: weird, 'fetchSumbmodules = true;' didn't work. any idea why? running 'git clone --recursive' manually does pull the required files
<foldingcookie>
LnL: afaict these are output paths, not drvs
<srhb>
nur0n0: Honestly I've only ever used fetchGit (not fetchFromGitHub) for that, and I've never had a good time with it.
<SitiSchu>
@srhb, Alright I'll look into it thanks alot :) (now find also finds the .service files for some reason) I might write such a package when I have time and more experience, right now I'm mainly using hyper-v to get a solid config and then install it on my real pc...thanks a lot for you help, I appreciate it
logzet has quit [Remote host closed the connection]
<LnL>
foldingcookie: drv files are also store paths, but if you're seeing a different output path then I'm not sure why
<srhb>
SitiSchu: Cool, and feel free to ask further questions if we can help. It shouldn't be too hard to duplicate this as a module (not package) but it may take a bit of guidance :)
zybell_ has joined #nixos
<nur0n0>
srhb: ok, thanks for the heads up. I'll just do that part manually, no biggie! I also appreciate the help
<foldingcookie>
LnL: I would assume different package revisions?
<WilliButz>
foldingcookie: does the version in your nix-env match the one in '<nixpkgs>'?
bkchr has quit [Ping timeout: 265 seconds]
<WilliButz>
the nixpkgs version that is ^^
<foldingcookie>
eep. how do I tell
<LnL>
foldingcookie: oh wait -u only looks at package versions, try nix-env -u --leq
<dmj`>
LnL: can I ask you a question about my nixops deploy script
<srhb>
nur0n0: Alternatively you could fetch each submodule manually and just copy them into the builders workspace.
<justanotheruser>
ugh, ignore the first paste, the second is what I meant to send
<dmj`>
LnL: letsencrypt certs shouldn’t care if I point my domain name to a new ip right
<ajs124>
Hm, so I'm trying to add python support to claws-mail, but the conftest fails to dlopen("libpython2.7.so", RTLD_NOW | RTLD_GLOBAL), any idea why that might be?
<zybell_>
could it help to import <./nixos-1803> instead of <nixos-1803>?
Fare has joined #nixos
<zybell_>
justanotheruser:^
<justanotheruser>
file ‘./nixos-1803’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:3:23
<gchristensen>
justanotheruser: as root, nix-channel --list
<Fare>
oh no, stumpwm doesn't build on nixos 18.03
drakonis has quit [Remote host closed the connection]
<gchristensen>
and does /nix/var/nix/profiles/per-user/root/channels contain nixos-1803
<dmj`>
LnL: can I see your droplet configuration ?
<drakonis>
so i'm getting tripped by channel collisions again
<justanotheruser>
gchristensen: no, it contains binary-caches manifest.nix nixos
<Fare>
reassuringly, stumpwm is just as broken in nixpkgs, which I suppose makes it easier to fix
<dmj`>
LnL: your digital ocean nixops script, want to see how to make a free floating ip
<drakonis>
i'm not sure what causes it to occur
<gchristensen>
justanotheruser: try running `sudo nix-channel --update` again
<Fare>
what is the backport policy for 18.03 ?
<justanotheruser>
also worth mentioning that sudo echo $NIX_PATH is different from what I just gave you which the result of the command under su
<drakonis>
does the global repository have to be different from the local?
<gchristensen>
`sudo echo $NIX_PATH` resolves $NIX_PATH as your user, you'd have to do `sudo -i`, _then_ echo $NIX_PATH
<justanotheruser>
gchristensen: did it again. didn't fix it
<justanotheruser>
yeah, so what I gave you is the same result as sudo -i echo $NIX_PATH
<gchristensen>
`sudo -i echo $NIX_PATH` is still not correct
<Fare>
gchristensen, if I fix stumpwm which is broken in 18.03, will/should the fix be backported to 18.03 ?
<gchristensen>
Fare: yes
<Fare>
what if the "fix" is to essentially drop stumpw and replace it will lispPackages.stumpwm ?
<gchristensen>
dunno
<Fare>
s/will/with ; s/stumpw /stumpwm /
<justanotheruser>
gchristensen: not sure what you mean
<zybell_>
justanotheruser: could you try to insert the absolute path to nixos-1803?
<justanotheruser>
sudo -i <command> is the same as sudo -i (then run command)
<Fare>
(which already exists, but isn't used by the wm config)
<justanotheruser>
zybell_: how do I determine that?
<gchristensen>
justanotheruser: not when using variables. sudo -i echo $NIX_PATH is resolving NIX_PATH _before_ sudo is called
<justanotheruser>
gchristensen: ok, well here's the result of running sudo -i, then running echo $NIX_PATH nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<justanotheruser>
which at least for my machine is the same
<zybell_>
is that file a download?
<gchristensen>
zybell_: please stop, their channel is obviously not downloading so there is no absolute path.
<zybell_>
that is downloaded as part of nixos-rebuild ,not before