<jasom>
Anyone here use the epson driver? I installed it but when I try to print I get: /nix/store/hwvmss14pw4p2lp2a8l5fybz6r787ran-cups-progs/lib/cups/filter/epson-escpr-wrapper "No such file or directory"
<jasom>
That file is present in /nix/store/iyqn9yqxfqlw4624y28pmjx7f7if666j-epson-escpr-1.6.16 though
<jasom>
ohh, it looks like I have to install it via services.printing.drivers
<samueldr>
trick question: should I use the short description that upstream uses for their font?
phreedom has quit [Remote host closed the connection]
kolb has left #nixos [#nixos]
phreedom has joined #nixos
goibhniu has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @samueldr opened pull request #45164 → vegur: init at 0.701 → https://git.io/fNhPg
<samueldr>
(the answer is: probably not since upstream's description is in japanese)
endformationage has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNhPA
<ashkitten>
i have a zfs pool created by an arch install. the arch install was running the git version of zfs, so i overrode the zfs version to be the one from nixpkgs-unstable (updated 3 days ago). however, it still complains about missing the feature "com.delphix:spacemap_v2". what's up with that?
<ashkitten>
also i fucked up and shit all over my arch install because i mistakenly thought parted would resize the filesystem properly
worldofpeace has quit [Remote host closed the connection]
erickomoto has joined #nixos
<ldlework>
infinisil: sure, i know what you meant - the actual work is easy so i bet you'll be able to express it as nix without difficulty
<ldlework>
the thing I'm struggling with right now is with the fact that sometimes it is hard to decide whether some software should be organized as a nixos module or as a home-manager module
worldofpeace has joined #nixos
<ldlework>
should git be nixos? you probably want git handing no matter what you're doing. on the other hand, git has a config file, so you want it mentioned in home-manager. ideally you'd like to keep the config management and the installation of the related software together.
<ldlework>
very hard to know how to organize things correctly
<ldlework>
to throw a wrench into it, you might say, well if it has a config, then let home-manager control it
<emily>
I just do everything in the system configuration, currently
<ldlework>
but then you realize that means none of your nixops machines can use that module
<emily>
it's not clear to me what the benefit of separation is for single-user machines like desktops/laptops
<ldlework>
emily: how do you handle dotfiles?
<emily>
ldlework: well, most dotfiles have /etc equivalents
<ldlework>
not all
<emily>
I agree that this feels kind of weird for some config files though.
<ldlework>
and sure, you might say well put it in the system config so that your nixops machines can use it
<ldlework>
but then!
<ldlework>
what if you want reusability across non-nixos linux distros?
<ldlework>
a lot of the same config can be used right on ubuntu or arch
<ldlework>
even OSX sometimes!
<emily>
yeah, I've had this dilemma too.
<ldlework>
you're really really torn between the too
<sb0>
I have a python package (built with python3Packages.buildPythonPackage) with setuptools entry points. when I do "nix-shell package.nix", the entry points are not installed. when I do "nix-env -if package.nix" they are. what is going on?
<rauno>
when creating a new package and making a PR for it, then if everything is ok it will be included in next release ? Or is there a way to get it into 18.03 also ?
<ashkitten>
wait why is it missing override tilpner
<tilpner>
ashkitten - Do try boot.kernelPackages = nixpkgs-unstable.kernelPackages; but remember that nixpkgs-unstable may do whatever it want wrt. breaking your system
<tilpner>
That should give you a matching kernel+zfs combinations
<ekleog>
rather use nixos-unstable :)
<tilpner>
It's not new enough for their usecase
<ekleog>
tilpner: oh? the “heyyyy uhhhhh […]” mentioned nixos-unstable, so I assumed it was that :)
<ashkitten>
nixos-unstable might be enough but i'm not sure. but if i can get the system to build with nixos-unstable zfs it'll be simple to switch to nixpkgs-unstable if needed
<tilpner>
Even if nixos-unstable only has 2018-05-22?
<ekleog>
one possibility would be to rebuild both zfs-tools and the zfs module against nixos-18.03
<tilpner>
That's what I tried, but it errors
* tilpner
coerces null to a string somewhere
<ekleog>
but tbh, at this point I'd personally just switch the whole system to nixos-unstable and switch to nixos-18.09 at branch-off, esp. coming from arch, nixos-unstable is still more stable than arch in my experience :)
<ashkitten>
hmm yeah fair
<ekleog>
(if the version you want is actually in nixos-unstable, though, it's lagging ~6 days behind nixpkgs-unstable currently, but I can make no statement about the stability of nixpkgs-unstable for not having used it)
<ekleog>
oh no it's 3 days, looks like I didn't notice last bump :)
<p_l>
,nixGL
<{^_^}>
nixGL is a bunch of wrappers for getting OpenGL programs to work for your graphics card, https://github.com/guibou/nixGL
<ashkitten>
yeah i'll do unstable for realsies i guess
<ashkitten>
lol
<tilpner>
Wait
<ashkitten>
meow?
<tilpner>
nixos-18.03 and nios-unstable have the same zfsUnstable version
<ashkitten>
oh lol
<ashkitten>
welp
<tilpner>
But do try what I said
<ashkitten>
which is?
<tilpner>
(As long as you think that mounting your drive with that will not eat your data, I wouldn't know)
<tilpner>
"tilpner | ashkitten - Do try boot.kernelPackages = nixpkgs-unstable.kernelPackages; but remember that nixpkgs-unstable may do whatever it want wrt. breaking your system"
<ashkitten>
ah
vidbina has quit [Ping timeout: 244 seconds]
<ashkitten>
uhh
<ashkitten>
so when i do that
<ashkitten>
(first of all, i have to use nixpkgs-unstable.linuxPackages)
<ashkitten>
even though i have the allowUnfree option enabled
<tilpner>
I asked twice for a paste of your config. If I had one, I could be sure that this happens because you are doing import <nixpkgs-unstable> {}, but now I'm just guessing
<clever>
without that, it will obey /root/.config/nixpkgs/config.nix
<tilpner>
clever - ashkitten is having problems using zfs with some spacemap_v2 feature. Do you know if they can use that without going to nixpkgs-unstable for kernelPackages?
<clever>
ive not looked into that feature
<tilpner>
Ah, well, was worth asking :)
<ashkitten>
okay, now i'm getting an error that it can't find splUnstable in <nixos>
<clever>
oh, and spl was merged into zfs
<clever>
but your nixos modules are not aware of that change
<ashkitten>
can i trick it into not requiring it?
<tilpner>
Seems like you do have to switch your base channel to at least unstable after all
<clever>
so it would be a lot simpler to just use nixos-unstable for everything
<kenshinCH>
Hi guys. Writing from NixOS on ZFS with i3wm on an iMac. I feel alternative :P I'm trying to install the jqr R package, and I get "sh: ./configure: /bin/bash: bad interpreter: No such file or directory". I think I would knnow how to fix this in a normal nix expression, but not sure what to to for R packages. Can anyone help? :)
<clever>
kenshinCH: sounds like you need to run patchshebangs over things
sir_guy_carleton has joined #nixos
<clever>
patchShebangs .
<adamantium>
clever, anyway i can cram networkmanager into your rescue initramfs ^_^ i'm just really lazy and i really dislike / always forget how to use wpa_sup ...
<adamantium>
I mean I'm wondering, if you know how?
<clever>
adamantium: there is a chunk of nixos config in rescue_boot, just add normal nixos options to it
<clever>
it already has a flag set there to support zfs
<adamantium>
i tried, i put what i believed would do the trick below the zfs support section, it complained about a confliect with netboot
<adamantium>
conflict*
<clever>
what was the exact error?
<adamantium>
uh, let me get it..
<kenshinCH>
clever: yep, but I think that's already included in the usual R package function that is used also for jqr
johanot has joined #nixos
<adamantium>
clever: The option `networking.wireless.enable' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/profiles/installation-device.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/networking/networkmanager.nix'.
<adamantium>
(sorry, i did not realize it was that long)
<{^_^}>
#41472 (by teto, 10 weeks ago, open): [wip] nixops: make overrides build instead of failing with 'nixops-_version_-py2-none-any.whl is not a valid wheel filename'
<nschoe>
No tricky / cumbersome questions today :) (at least not now). Just here to read the chan and try to learn =)
<srhb>
:)
<srhb>
sir_guy_carleton: So either the detection of wide-character support is broken for your application build or it's using a different ncurses?
<sir_guy_carleton>
srhb: it's seems to be broken
<sir_guy_carleton>
it show ~T~@ all over the place
<srhb>
That sounds fun...
kenshinCH has quit [Ping timeout: 252 seconds]
<sphalerite>
sir_guy_carleton: are you sure this is because wide-character support isn't working right and not for another reason?
<sphalerite>
Like a bad $TERM or a bad application?
mayhewluke has quit [Ping timeout: 260 seconds]
<sphalerite>
you could try pasting emoji in some other thing that uses ncurses, if that works fine and the application uses the same ncurses (compare using nix-store -qR) then it's not ncurses that's to blame
nschoe has quit [Ping timeout: 272 seconds]
<mpickering>
If a project is looking for foo.hpp but the file exists in bar/foo.hpp, is there a flag I can pass to cmake to get it to look in bar?
<{^_^}>
[nixpkgs] @Profpatsch merged pull request #44079 → bazel: patch runfiles.bash to include defaultShellPath in PATH → https://git.io/fNRtk
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @kalbasit to master « bazel: patch //tools/bash/runfiles/runfiles.bash to include defaultShellPath in PATH »: https://git.io/fNjft
<{^_^}>
[nixpkgs] @andir pushed 2 commits to release-18.03: https://git.io/fNjJC
andreabedini has joined #nixos
<sir_guy_carleton>
sphalerite: it could be the application. although it downloaded a ncurses when i installed it, so i doubt any other program depends on that exact version of ncurses
<{^_^}>
[nixpkgs] @vcunat pushed 9 commits to staging-18.03: https://git.io/fNjUC
<sphalerite>
sir_guy_carleton: you could try checking if the downloaded ncurses contains a lib/ncursesw.so
<sphalerite>
lib/libncursesw.so
<sphalerite>
or somehting
<sphalerite>
also, telling us what the application is and which terminal you're using might be helpful too :)
<srhb>
globin: It seems we're using an unreleased version of altermime since Aug 1 2017 (a434da450bc) -- do you remember the reasoning for this? The upstream source is gone.
Fare has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 244 seconds]
Izorkin has quit [Ping timeout: 260 seconds]
Izorkin has joined #nixos
inquisitiv3 has joined #nixos
<inquisitiv3>
Is there an easy way to keep derivates installed for an nix shell environment even if I run `nix-collect-garbage`? I'm thinking of a situation there the internet connection is bad and I run the command without thinking of all the consequences.
<clever>
inquisitiv3: if the nix-shell is still open, it wont delete those things
<inquisitiv3>
clever: But for the situations the nix-shell isn't open?
<clever>
garbage collect less often, and avoid GC'ing when your about to loose internet
<sir_guy_carleton>
sphalerite: looked at the directory and it's there. so i'm guessing it is. the application is kakoune (on the unstable channel) and i'm using termite as my terminal
<inquisitiv3>
clever: Shot from the hip and hope for the best? :P
<sir_guy_carleton>
sphalerite: tried it with xterm (and konsole, btw). same problem.
<inquisitiv3>
One of the problems I'd yesterday got me wondering. Why is an symbolic linked named "result" created that links to the /nix/store?
<clever>
inquisitiv3: thats what nix-build does by default
<inquisitiv3>
I think it was created when I ran `appimage-run` from unstable in a nix-shell environment.
<sphalerite>
sir_guy_carleton: you wouldn't happen to be setting TERM across all of them?
<tilpner>
inquisitiv3 - readlink it, check where it points to
<inquisitiv3>
tilpner: In this case it linked to glibc.
<tilpner>
Then I don't see how appimage-run could have caused that
<clever>
inquisitiv3: it could just be that you did a nix-build command and forgot about it
<{^_^}>
[nixpkgs] @Ekleog opened pull request #45225 → webassemblyjs tool suite: init at 1.7.5 → https://git.io/fNjkK
<ongy>
srhb: ahh, the container is actually created with the systemd-nspawn stuff. Now if only I knew whether I like that
<srhb>
ongy: Flip a coin!
TweyIV has joined #nixos
<inquisitiv3>
clever: Hmm, that's very possible. I got some instructions running patchelf before finding out about appimage-run. Thanks for the reminder and explaination!
<sir_guy_carleton>
sphalerite: TERM is set differently accross the different terminals
<sphalerite>
ok then I don't know :(
<sphalerite>
sir_guy_carleton: actually I have the same with kakoune in tmux
<sir_guy_carleton>
the same problem?
<sphalerite>
yeah if I run kakoune from unstable
<sphalerite>
kakoune from 18.03 is fine though
<inquisitiv3>
Ooh, some more Kakoune users here! :D
<sir_guy_carleton>
i found that version from the stable branch has a weird bug that crashes the program when a the command prompt and enter '%'
<{^_^}>
[nixpkgs] @johanot opened pull request #45226 → cfssl: Add patch for stripping authkey whitespaces → https://git.io/fNjIG
<sphalerite>
I think you may *have* to reboot to get it to work depending on kernel version stuff
<sphalerite>
because virtualbox relies on some kernel modules
<inquisitiv3>
Why doesn't most applications include an desktop entry? The only applications I can start from Plasma's dashboard is Firefox and the included applications with Plasma (e.g. Konsole and Dolphin).
<rauno>
oh right..
<srhb>
inquisitiv3: _most_ applications aren't even graphical.
<srhb>
inquisitiv3: But I suspect you meant something else :)
<sphalerite>
inquisitiv3: which applications do you have installed and expect to show up there?
<rauno>
ok, got it rebuilding, lets see if it now runs without reboot
<rauno>
removed it from configuration.nix, did garbage collect and re-added it to configuration :)
Anton-Latukha has joined #nixos
<srhb>
rauno: If that does work, I'd argue it's a bug. :)
<rauno>
seems like it's still broken
<rauno>
srhb, :)
<rauno>
at least i can now besure it's built right :)
<sphalerite>
what error are you getting exactly?
<rauno>
ok, it's still broken, damn vbox
<rauno>
sys-subsystem-net-devices-vboxnet0.device: Job sys-subsystem-net-devices-vboxnet0.device/start failed with result 'timeout'
<rauno>
never liked the vbox, but this one code piece i'm checking out has only examples with vagrant/vbox
<{^_^}>
[nixpkgs] @vcunat pushed 2 commits to staging-18.03: https://git.io/fNjL3
<{^_^}>
[nixpkgs] @vcunat pushed 365 commits to staging-next: https://git.io/fNjGr
rauno has quit [Ping timeout: 265 seconds]
<kolb>
I am somewhat confused by nix-shell, so in a directory with a default.nix file I run nix-shell and from looking at the manual expected to be able to run commands like preBuild and buildPhase. How is that supposed to work though? These are just environment variables?
<sphalerite>
kolb: using the runHook function is the correct way I think
<gchristensen>
how do I interpret this error? [5191054.775165] traps: lt-QuickTest[19712] trap invalid opcode ip:7ffff748d796 sp:7fffffffd310 error:0 in libgf2x.so.1.0.2[7ffff748b000+26000]
<Dezgeg>
unit test program killed by SIGILL
<clever>
gchristensen: something at instruction pointer 7ffff748d796 ran an invalid opcode
<clever>
gchristensen: if possible, run it under gdb and then disassemble that area
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @kalbasit to release-18.03 « flash: 30.0.0.134 -> 30.0.0.154 »: https://git.io/fNjW5
<clever>
gchristensen: what sse flags does 'grep sse --color /proc/cpuinfo' show?
<Dezgeg>
I guess that is impure: AC_CACHE_CHECK([whether $CC can compile pclmulqdq and if it is supported by the hardware], [gf2x_cv_cc_supports_pclmul],
<clever>
with the name you gave in the build inputs config
<clever>
ocharles: can you link your hydra's UI?
<ocharles>
I'm afraid not
<ocharles>
clever: it doesn't add -I for inputs that are of type "nix"
<clever>
ah
<clever>
and i think the type nix is just a bare nix expresion
<clever>
so that wouldnt really fit into -I anyways
<ocharles>
It is, and import <src/nix/pkgs> {} is a nix expression
<ocharles>
right
trcc has quit []
<clever>
that also returns a set, not a path
<clever>
just use the local-path type
<clever>
and give it the full path
<ocharles>
Basically what I'm trying to do is have a declarative project, where my jobset config has a "nixpkgs" input for each PR, but the value of that should come from the latest commit in each pull request
<clever>
what i try to do, is to not supply nixpkgs with -I at all
<clever>
and to have a json file within the project, that can fetch its own nixpkgs
<ocharles>
I think when I build my jobsets, I'm going to have to do "fetchTarball" on the commit the GitHub API gives me, and then import the "nix/pkgs" expr from that commit
<ocharles>
We already do that
<{^_^}>
[nixpkgs] @aanderse opened pull request #45260 → New makePerl5Lib function → https://git.io/fNjBw
<ocharles>
but I want to use nixops/eval-machine-info on hydra, and that imports <nixpkgs>
<clever>
then you shouldnt need any <nixpkgs> at all in your codebase
<LnL>
Xyliton: we generally use the same conventions, just namespaced per package instead of a global and shared /usr/local
hyper_ch2 has quit [Quit: Page closed]
<Xyliton>
ah, I see
<{^_^}>
[nixpkgs] @flokli opened pull request #45270 → jameica: get rid of launcher script, only use makeWrapper → https://git.io/fNjaE
erasmas has joined #nixos
<Taneb>
If my test suite wants to download sample data from the internet, will nix block that?
<elvishjerricco>
Taneb: If sandboxing is on and this isn't a fixed-output derivation, yea
<elvishjerricco>
But sandboxing isn't on be default (though maybe it should be)
<Taneb>
What's the best way to work around that? Turning sandboxing on isn't really an option for me here
graphene has quit [Remote host closed the connection]
<Xyliton>
do I have anything special for clang to allow me to include something from the include path of another project?
<Xyliton>
*package
<makefu>
if the data does not change you can use fetchurl with the sha256
<makefu>
and provide the the result as an input for the derivation
graphene has joined #nixos
Fare has joined #nixos
<{^_^}>
[nixpkgs] @flokli opened pull request #45271 → docs: properly document what jdk really, points to, explain home passthru → https://git.io/fNjV4
<Taneb>
Frustratingly, this is a library part of whose function is to download datasets (and whose test suite tests the downloading datasets part as well as the processing part)
<Taneb>
So while the datasets are pretty static, downloading with fetchUrl doesn't help
<elvishjerricco>
Taneb: You could write a second derivation that just runs the test. It can be fixed output and just output the hash of the source or something
<gchristensen>
unfortunately that just can't be done with Nix, typically those tests are disabled during the build
<Denommus>
tilpner: does that work with services.nginx.virtualHosts.<name>.enableACME?
<tilpner>
Denommus - I think so
<Xyliton>
sphalerite: you're probably right. If I replace clang with gcc in my buildinputs it tries to compile my code but I'm still hitting the headers it refuses to include
<{^_^}>
nix#2358 (by graham-at-target, 17 minutes ago, open): fetchGit: use a better caching scheme
Xyliton has quit [Remote host closed the connection]
init_6 has quit [Ping timeout: 268 seconds]
<infinisil>
Since my implementation uses just a list, this technically requires O(n^2) to do (uniqueness), but actually it's just O(1), because IRC message length is limited :P
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
Izorkin has quit [Ping timeout: 272 seconds]
<aminechikhaoui>
gchristensen: hm nice, I see fetchMercurial is doing the same logic, didn't notice fetchGit is using the same directory
<Denommus>
tilpner: it didn't :-/
fendor has joined #nixos
adamt has quit [Ping timeout: 272 seconds]
ryanartecona has quit [Quit: ryanartecona]
arjen-jonathan has quit [Ping timeout: 240 seconds]
S1tiSchu has quit [Quit: Leaving]
<Denommus>
well, this is secondary, I can figure that out later
<Denommus>
what's getting painful for me is the fact that I cannot clone over HTTPS in my gitlab
<Denommus>
I get error 500, but nothing shows up in my journalctl -xe
<Taneb>
How can I make a package appear when I run "nix-shell ." but not make it a requirement for nix-build?
omarty has quit [Quit: WeeChat 1.9.1]
<aminechikhaoui>
Taneb: in stdenv.mkDerivation you could have buildInputs = [ <nix-build pkgs> ] ++ (lib.optionals lib.inNixShell [ <extra-pkgs> ]);
omarty has joined #nixos
erickomoto has joined #nixos
<gchristensen>
aminechikhaoui: indeed
joepie91_to_go_ has joined #nixos
<joepie91_to_go_>
,locate avr-gcc
<{^_^}>
Found in packages: avrgcc, arduino, arduino_core
<joepie91_to_go_>
,locate inttypes.h
<{^_^}>
Found in packages: zig, root, z88dk, swift, rakudo, uclibc, coin3d, and 26 more
<joepie91_to_go_>
... not that helpful :P
bongsun has quit [Quit: Connection closed for inactivity]
<joepie91_to_go_>
,locate stdint.h
<{^_^}>
Found in packages: zig, isl, sdcc, root, z88dk, swift, rakudo, and 33 more
<{^_^}>
[nixpkgs] @rehno-lindeque opened pull request #45274 → aravis: init at 0.5.13 → https://git.io/fNj1W
jmeredith has quit [Quit: Connection closed for inactivity]
<pikajude>
wouldn't it be more hygienic to specify allow-newer/older for specific dependencies in the haskell builder, rather than jailbreaking the entire project?
joepie91_to_go_ has quit [Ping timeout: 260 seconds]
<mpickering>
I don't think that's how it works?
<TweyIV>
TIL nix copy will ignore all but the last --to argument
<TweyIV>
To my surprise
<woffs>
and get the .drv from a non-existing $out path? I use nix show-derivation "$out" | perl -ne 'if(/"(.*\.drv)"/){print$1;exit}' but I wonder if there is something more elegant
haitlah has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed to master « multi-ghc-travis: update to latest git version »: https://git.io/fNjyb
<d1rewolf>
is widevine (required for netflix) known to work on nixos? I get : Package ‘chromium-68.0.3440.75’ in /nix/store/g9skbx906pnmr8jdvqawrzh8j0vgxr1l-nixos-18.09pre147696.7c585235ff6/nixos/pkgs/applications/networking/browsers/chromium/browser.nix:48 is marked as broken, refusing to evaluate
<gchristensen>
I use google-chrome-stable for it, and I think firefox works too now?
jtojnar has joined #nixos
<{^_^}>
[nixpkgs] @mbbx6spp opened pull request #45275 → rubygems: 2.7.6 -> 2.7.7 and update src URL to official HTTPS location → https://git.io/fNjS3
<d1rewolf>
gchristensen: ah, k. thank you
fenedor has joined #nixos
aarvar has joined #nixos
endformationage has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @Twey opened pull request #45276 → ninja-git: init at 2018-04-10 → https://git.io/fNj9P
<johanot>
d1rewolf: just stuggled with the same issue. can't get widevine to work for chromium. Firefox plays netflix fine, but I'd like to combine that with chromecast :)
<clever>
johanot: ive found that the android netflix app can remotely control the netflix app on a ps3 (and likely the chromecast), and skip the entire streaming layer
Mateon1 has joined #nixos
<johanot>
clever: yes, ended up just using the netflix app on my android phone, which can (as you say) invoke the chromecast. Still, I'd like it if the widevine plugin is revived at some point. i'd also like having it for playing spotify on the laptop.
<clever>
johanot: yeah, ive had to play netflix inside virtualbox, with windows 10, lol
<BlessJah>
viric: I've just noticed that it's upgraded in other channel, sorry for noise.
<johanot>
clever: my condolences. hehe
<clever>
johanot: due to that, ive just given up on netflix in the laptop or desktop :P
<clever>
johanot: i just use the tablet
drakonis_ has quit [Remote host closed the connection]
<clever>
johanot: oh, and the tablet on my main wifi, has ipv6, which is a tunnel, so it exits in the wrong country
<clever>
netflix thinks i'm trying to get around region lockout, so it refuses to play anything!
<clever>
so i have a 2nd wifi that lacks ipv6, just for netflix use, lol
<johanot>
clever: ipv6 is clearly a hack. lol
<Thra11>
If a build succeeds without a sandbox, but fails inside a sandbox because it can't find 'g++', does that mean it has some (probably generated) files that refer to g++ when ideally they should have been substituted to refer to something like /nix/store/some..hash-gcc-7.3.0/bin/g++?
<clever>
johanot: in the past, i was successfully able to get the american lineup, using ipv6
<clever>
Thra11: is this on nixos or another distro?
<Thra11>
clever: foreign linux distro
<clever>
Thra11: it might simply be /usr/bin/g++
<clever>
or export PATH=/usr/bin/
<clever>
and then its just 100% ignoring nix!
<johanot>
clever: netflix solution: just ban all ipv6. hah.. fun. no wonder the global transition is difficult
<clever>
johanot: if my ISP offered v6, then the geolocation would say canada, and everything would be fine
<clever>
johanot: the fact that i'm using an ipv6 tunnel is what breaks netflix
<clever>
its essentially a proxy
<Thra11>
clever: Yes, I suppose so. nix build leaves things like /usr/bin in the $PATH?
<clever>
Thra11: nix will make the PATH pure, but only the sandbox stops scripts from "fixing" $PATH
<johanot>
clever: right.. I had a tiny aws node in n. virginia a couple of years ago for the same purpose :)
<Thra11>
clever: I see
<Thra11>
clever: So ideally I would need to work out which script is "fixing" the $PATH and patch it in some way?
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<clever>
Thra11: yeah, and you need the sandbox on to ensure it fails loudly
sir_guy_carleton has joined #nixos
<BlessJah>
can I override and build nixos-unstable package against nixos-18.03 libraries?
<clever>
the variable parts will depend on what you have named things
<BlessJah>
it's pkgs and unstable for 18.03 and nixos-unstable respectively
<BlessJah>
thanks, will try
simukis has joined #nixos
simukis has quit [Read error: Connection reset by peer]
simukis has joined #nixos
jeaye has quit [Quit: WeeChat 1.9.1]
jeaye has joined #nixos
<disasm>
this ones an odd one... I did a nixos-rebuild switch, rebooted and it just hung on 18.09 screen. I enabled debug-shell in systemd, poked around and journalctl said system had started up successfully. I ran `systemctl isolate graphical.target` in debug-shell and gui started fine.
<Denommus>
how can I override the user of a systemd unit (say, docker-registry)?
<disasm>
systemctl get-default says graphical.target as well
<disasm>
Denommus: you can't on that one, you'd have to duplicate and force your unit to take precedence. Typically, most units have a config parameter for user/group.
jeaye has quit [Quit: WeeChat 2.0]
<disasm>
for example, one unit I wrote, `gitea.user` overrides the user of the gitea service.
<Lisanna>
eh, I guess float -> int is a bit subjective anyways.... since there's multiple ways you might want to deal with the floating point rounding errors and stuff
<emily>
it's certainly a well defined operation, i guess there's just no truncate or round or anything in the builtins?
<Lisanna>
I'm not seeing any... I would need a rounding function at minimum in order to do this I think
<Lisanna>
*writes a bash script and does import-from-derivation*
<emily>
oh dear...
<Lisanna>
:)
<disasm>
gchristensen: you doing well?
<emily>
Lisanna: you could convert to a string, chop off everything after the ., and eval
<gchristensen>
disasm: super :)
<emily>
(and hope it never uses scientific notation)
<{^_^}>
[nixpkgs] @vcunat pushed to staging « firefox: finish adding default for execdir »: https://git.io/fNjF5
<emily>
disclaimer: i am not a lawyer, your mileage may vary
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « dar: 2.5.15 -> 2.5.16 (#45245) »: https://git.io/fNjN1
<joebobjo1>
/nix/var/nix/profiles/default.lock doesn't exist on my machine. the nix command must be creating it, or maybe "opening" means *trying to create*?
<jD91mZM2>
gchristensen: Thing is I don't have that lock file on my system
<jD91mZM2>
Thought it was created or something, and now it's failing because it's already there
<joebobjo1>
oh you know what
<joebobjo1>
I need sudo
<joebobjo1>
since I installed nix as root
<joebobjo1>
er, as multi-user
<joebobjo1>
worked!
<gchristensen>
joebobjo1: is your nix broken right now?
<joebobjo1>
gchristensen: not after doing sudo nix upgrade-nix
<gchristensen>
nice
<joebobjo1>
works like a charm and everything seems updated to 2,0,4 now
<gchristensen>
can you do me a few favors to help me verify a few things, joebobjo1? because I don't think it is done :)
<joebobjo1>
would be nice if nix warned about rights
<joebobjo1>
gchristensen: sure
<gchristensen>
(1) what does `nix --version` print? (2) what does `which nix` print? (3) what does `ls -la /Library/LaunchDaemons/org.nixos.nix-daemon.plist` print? (4) `cat cat /Library/LaunchDaemons/org.nixos.nix-daemon.plist` --- and gist all this
<gchristensen>
macos is really picky about updating services, maybe for the best, so we just had to tell it to reload what it thought the service should be
<joebobjo1>
gchristensen: so whenever we pkilled the process, macos would start it back up?
<joebobjo1>
it just didn't reread the new nix-daemon.plist file?
witchof0x20 has quit [Client Quit]
<gchristensen>
yeah, and I guess it cached the symlink of what nix-daemon was pointing to
<joebobjo1>
gchristensen: oh you think that is actually what happened?
<joebobjo1>
gchristensen: do you think nix-daemon would have updated once I restarted my computer?
<gchristensen>
also no idea :D
<joebobjo1>
I bet launchctl just does caching by default like systemd
<joebobjo1>
and you have to explicitly reload a launch file to update anything about a service
<gchristensen>
quite possibly
<joebobjo1>
maybe the nix tool views it as not its job to reload launch services?
<grp>
I'm trying to package a shell script but once it's installed, it can't run any of the binaries defined in the buildInputs list. I was hoping the script's environment had them available. I would prefer to have it running without replacing every call with the ${pkgs.app} path.
<gchristensen>
joebobjo1: I think, ideally, it would restart the service but it is hard to make it a really really nice experience with the developer hours available... but that we're working on making it better every day
<gchristensen>
I don't think there is a principled choice to not make it restart the service
<joebobjo1>
gchristensen: maybe nix upgrade-nix just doesn't account for multi-user yet?
<gchristensen>
yeah maybe not! :)
<joebobjo1>
gchristensen: can I file an issue?
<joebobjo1>
or try implementing it myself and testing it?
<joebobjo1>
LnL: what are you talking about? I'm confused
<joebobjo1>
was my user profile not supposed to contain nix?
<joebobjo1>
was I an idiot?
<LnL>
gchristensen: joebobjo1: it turns the profile that nix is installed in into a profile outside of /nix/var/nix/profiles which means it won't be a gcroot anymore so garbage collecting deletes the newly upgraded nix
<gchristensen>
yes that is very ugly, I've seen that before
<LnL>
joebobjo1: I gave you the wrong command, depends on the install
<joebobjo1>
ok now I'm confused
<joebobjo1>
did I install something worng?
<joebobjo1>
are you saying I have a root nix install, but using nix commands installed into my user pfoile?
<LnL>
sudo readlink /var/root/.nix-profile
<pie_>
ok i just needed to use a newer version of nixpkgs, now i have an appimage-run package
<gchristensen>
LnL: I think the best route from here, fore joebobjo1,is not worrying about the specific details of what is wrong, and moving in to how to make it right
<joebobjo1>
LnL: file does not exist though
<LnL>
hmm, it does not?
lawlesseel has joined #nixos
<joebobjo1>
now I'm gonna cry. I just started using nix and already I messed something up
<joebobjo1>
this is probably all because I tried to go for a multi user install
<LnL>
ls -la $(command -v nix-store)
<gchristensen>
joebobjo1: nothing is really broken, but we should fix up an issue before you move on
<LnL>
yeah it's fine if we fix it now :)
<joebobjo1>
is it a user error issue?
<gchristensen>
no
<joebobjo1>
is it a mac issue
<gchristensen>
not mac-specific
<LnL>
upgrade-nix has a bug, it's a problem everywhere AFAIK
<joebobjo1>
so it is because nix tool is experimental
<joebobjo1>
I should have just used nix-env like the docs say??
<joebobjo1>
can nix-env upgrade nix
jD91mZM2 has quit [Quit: WeeChat 2.0]
<LnL>
yeah, but upgrade-nix is smarter and figures out what profile nix is installed in for you
<gchristensen>
joebobjo1: you're fine, it isn't a big deal, LnL will help you fix the (minor) issue.
<LnL>
so with nix-env you have to do that part yourself
<gchristensen>
(right, LnL? if not, I can)
graphene has quit [Remote host closed the connection]
<LnL>
yeah, I'm a bit confused about the no root profile tho
<joebobjo1>
I don't think I've ever installed anything as root on my machine
<joebobjo1>
after installed nix in multi-user mode
<joebobjo1>
I remember following a long script to install nix
<gchristensen>
LnL: maybe the bug was fixed?
<joebobjo1>
it created a bunch of fake nix builder users
<LnL>
gchristensen: I think it might just not have triggered because of sudo weirdness on macos?
<gchristensen>
maybe so :/
<LnL>
pretty sure it's still a problem for single-user installs
<gchristensen>
at any rate, you're probably fine joebobjo1. if something breaks come ask for help and we can get you sorted :)
<joebobjo1>
how do you upgrade all packages, including packages related to nix itself and all the post-instal stuff that needs to be done using nix-env instead of nix
orivej has quit [Ping timeout: 240 seconds]
fendoer has joined #nixos
<LnL>
joebobjo1: you can run this as a sanity check, (might take a while) nix-store -q --roots $(command -v nix-store)
<LnL>
it should list at least one default-<number>-link
joebobjo1 has quit [Ping timeout: 268 seconds]
endformationage has joined #nixos
fendor has quit [Ping timeout: 268 seconds]
<LnL>
as for upgrading I think this works, sudo nix-env -p /nix/var/nix/profiles/default -u
<LnL>
the launchd part is the same
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #44767 → {cc,bintools}-wrapper, ghc, libgcc: Define wrapper env vars as full paths → https://git.io/fN9ZY
<{^_^}>
[nixpkgs] @Ericson2314 pushed 5 commits to staging: https://git.io/fNjjv
<LnL>
elvishjerricco: depends, if you use things like zfs which doesn't work with all kernel versions this would be a bad idea
<symphorien>
something like emacs.override { withGTK3 = false; }
cruxeter is now known as cruxeternus
<elvishjerricco>
LnL: What if I also got ZFS from unstable? :P
<symphorien>
this is the goal of kernelPackages iirc: all packages in this scope are built against the right version of the kernel
<adamantium>
symphorien: won't just saying dont use gtk still no be specific enough, what if i just get terminal only emacs? how can i also say use athena Xaw3d
<symphorien>
no idea
<adamantium>
k
<adamantium>
the manual doesn't say either
<symphorien>
you can use overrideAttrs to change the configureFlags
<adamantium>
ahhh i dont know nix yet, i'll ask in #emacs maybe i will get lucky
johanot has quit [Quit: leaving]
<symphorien>
but this becomes moderately involved, it may or may not be worth spending the time
<gchristensen>
elvishjerricco: what are you looking for in unstable?
<adamantium>
this should be trivial
<elvishjerricco>
gchristensen: I'm having some issues with ZFS, so I wanna play around with updating just the kernel and ZFS in a virtual machine for a bit. But I can just use nixos-unstable straight up
<Denommus>
where are the logs for nginx? Only in journalctl?
<gchristensen>
looks pretty much the same to me, adamantium, except M-x snake renders properly
<adamantium>
ldlework: you can kill your window manager. like pkill xmonad , or whatever. xorg will close, and you will drop back to console tty or your login manager. during this time, emacsclient if not built with gtk, will stay running, and you will not lose your work.
<ldlework>
adamantium: very cool
<adamantium>
gchristensen: yes, the alternative toolkit does a pretty good job imitating the gtk, especially if you disbale the toolkits and scrollbars, which most people do.
<ldlework>
adamantium: so just replacing emacs with that override worked?
* gchristensen
sticks to the gtk version
<adamantium>
well, i mean to restart emacs and try now, but im in this conversation
<adamantium>
brb
<ldlework>
lol
<ldlework>
gchristensen: why so
<ldlework>
just curious
<gchristensen>
I haven't seen a compelling reason to not use it
* ldlework
nods.
<gchristensen>
and it is pre-compiled :)
<ldlework>
I was playing around with peg.el last night
<ldlework>
Trying to see if I could make a basic lisp-like AST which I got working
<ldlework>
I wonder how much harder it would be to create a PEG with just enough to properly indent nix files :)
<ldlework>
Sometimes I really wish my CS background was stronger
<ldlework>
gchristensen: do you edit Nix with emacs? I'm sure you've been annoyed by nix-mode.
<gchristensen>
you're right
drakonis_ has quit [Quit: Leaving]
<ldlework>
gchristensen: my idea is, use peg to parse the nix document into AST, where each node lists its "extents" in the buffer. Then search for the deepest node that contains the (point). Then find the line that the parent expression starts on and indent to that.
drakonis_ has joined #nixos
joebobjoe has joined #nixos
<gchristensen>
whoa
<ldlework>
i have never done anything like that before and am not sure it even makes sense as a plan
<ldlework>
like i probably don't need to define a full peg for Nix, just describe its larger structures...
<gchristensen>
I've never done anything with automatic indentation in an editor mode, but would likeit to work better
magnetophon has joined #nixos
* ldlework
nods
<ldlework>
yeah it is starting to drive me nuts tbh
<ldlework>
the most painful thing is that functions don't have endings
<ldlework>
its just "args: body"
kyren has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ldlework>
which is extremely open ended
<ldlework>
compared to like
fresheyeball has joined #nixos
<fresheyeball>
hey out there
<ldlework>
NAME = EXPR;
<ldlework>
hi
<adamantium>
ok i have a interesting predicament, i built the emacs with (emacs.override {withGTK3=false; withGTK2=false; withX=true;}) , but in my configuration.nix I have in my session startup ${pkgs.emacs}/bin/emacs , which is loading another gtk version !
<fresheyeball>
so I am deploying a systemd service with nixops
<fresheyeball>
and I need to do a migration
<ldlework>
adamantium: assign that override to a name, and use the name in your session startup
<fresheyeball>
is there a place in the module spec where I can do that cleanly?
<fresheyeball>
preStart apparently does not run when the service is restarted by nixops
joebobjoe has quit [Ping timeout: 272 seconds]
<ldlework>
adamantium: instead of "pkgs.emacs"
<adamantium>
ldlework: i assumed that was the problem, how to assign it a name
<ldlework>
just in a let
<cransom>
nixops wouldn't be skipping preStart. is it doing a reload instead of a restart?
<ldlework>
let myemacs = (emacs.override ...); in { session.startup = "${myemacs}/bin/emacs"
<adamantium>
ldlework: did you just write two lines of code on one line of irc chat?
<adamantium>
or does the let and in both go on the same line?
<ldlework>
adamantium: Nix is an expression based languages
<gchristensen>
ldlework: a bit harsh given actual people have put actual time in to it :)
<ldlework>
lines don't have any meaning
<ldlework>
gchristensen: i hear that, totally but it really will make you stunned if you look
<adamantium>
im referring more the placement than line breaks
<ldlework>
i had no idea people would even attempt indentation systems so adhoc like this
<ldlework>
it has a strange way to just regex searching around, with counters to track... whatever it is tracking
<gchristensen>
ldlework: I know, and yet it is what we have, so I think its sort of a help fix or don't, but don't be rude to the people who are trying to help.
<ldlework>
expression depth I suppose
<ldlework>
i don't mean to ridiculue the people or their effort
<LnL>
I broke it a bit recently, but the vim-nix indentation also uses regexes and works for most expressions
<ldlework>
but a silly algorithm is a silly algorithm
Denommus has quit [Remote host closed the connection]
<gchristensen>
ldlework: please accept my previous messages as a _warning_. if you want to make it better, please do. Do not, however, be rude to the people who are trying to help.
<ldlework>
that makes me not want to help at all
<gchristensen>
go make something new if that is how you want to do it
<gchristensen>
ldlework: Do not, however, be rude to the people who are trying to help.
<ldlework>
i've just lost all interest
<adamantium>
ldlework: lines 52 and 122 can you help me? i cant get it http://termbin.com/scxq
<adamantium>
tilpner has joined #nixos
<ldlework>
gchristensen: "a joke" might have been too harsh but you just accomplished what you intended to avoid. it was a offhanded remark not deserving of a ban warning. absurd imo.
<ldlework>
adamantium: let me copy this into gist so I can see line numbers :)
* adamantium
TODO , install a gist program
<ldlework>
hehe
<ldlework>
adamantium: you have to put the let way up at the top
<ldlework>
it prefixes the attrset
<adamantium>
i dont understand
<ldlework>
line 3
<ldlework>
{ turns into let myemacs = ... in {
barrucadu has quit [Quit: I think I've just successfully written a systemd unit to start irssi, let me see...]
<ldlework>
adamantium: technically you could just keep the call where it is
<ldlework>
and remove the let myemacs =
<ldlework>
since you're evaluating the expression inside of environment.systemPackage iiuc
<gchristensen>
ldlework: I don't joke about being grateful for people who are putting time and effort in to the Nix ecosystem.
<adamantium>
ok it's on line 3, awkwardly placed, but cool
<ldlework>
gchristensen: I expressed my unfettered gratefulness that nix-mode existed at all the other day
<adamantium>
now how do i properly reference that variable in line 122?
<ldlework>
Wherein I wrote a snippet to do format on auto save and shared it with everyon here
<ldlework>
Principle is one thing, but moderating your own application of it might be wisdom you can use yourself.
erasmas has quit [Quit: leaving]
MrCoffee has joined #nixos
Lisanna has joined #nixos
<ldlework>
adamantium: you just add "myemacs" to environment.systemPackages
<ldlework>
adamantium: it is just a variable representing the expression you assigned to it
<ldlework>
that's why I said you could ignore the variable "myemacs" all together and put the expression right in the environment.systemPackages
<ldlework>
style choice
<cransom>
there's also a ${pkgs.myemacs} reference down in displayManager.sessionCommands. that would change to just ${myemacs} if you use the top let
orivej has joined #nixos
<ldlework>
Ah yes, if you are using it in multiple places you'll want it in the let
<adamantium>
undefined variable 'emacs' at /etc/nixos/configuration.nix:3:16
<ldlework>
did you find a gist tool
<ldlework>
:)
<cransom>
`pkgs.emacs.override`
<adamantium>
no
<ldlework>
adamantium: no need, cransom divined the answer :)
<cransom>
because you aren't under the scope of `with pkgs;` any more, so you need to be specific.
<ldlework>
mmm
<ldlework>
smart
<adamantium>
ahhh
<adamantium>
i "get it"
<ldlework>
heh story of my life
<adamantium>
this is teaching me , how to nixos ... the hard way. i'm about to jump in and begin learning nix from some tutorials and guides
<adamantium>
thanks for your time guys. lets restart this and see now if it does what i need.
<ldlework>
good luck
<adamantium>
GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
<adamantium>
thanks
<ldlework>
to the authors of Nix-mode, if they're in here, sorry I was a little too critical of your implementation. I was just trying to illustrate that I thought it was a surprising approach not to hurt anyone's feelings. Sorry! Really.
<ldlework>
adamantium: awesome
<ldlework>
adamantium: shoot us a screenshot :)
<adamantium>
ldlework: dude yeah, this rocks. hah okay
<adamantium>
guess i need scrot first.
<ldlework>
try imgur-screenshot
grp has quit [Quit: box shutting down...]
<ldlework>
it uses scrot
<ldlework>
but automatically uploads to imgur
graphene has quit [Remote host closed the connection]
<clever>
LnL: all-packages.nix is also indented wrong, there is a comment near the start saying so
<LnL>
huh
<infinisil>
clever: Can't confirm
fenedor has quit [Ping timeout: 240 seconds]
sm0rux has joined #nixos
<clever>
i think that set was moved into a let block or funtion of some kind, and that would have required adding 2 spaces to every single line
<clever>
which would have caused merge conflicts for every single open pr
<LnL>
don't see any comment or something I'd consider wrong indentation
<clever>
*looks*
<infinisil>
johnw: I guess that's a bit of a problem with hnix in general: People don't really know what it does! A nice readme with some examples would help a lot
<LnL>
(don't quote me on that, I did not read the entire file :p)
<clever>
LnL: yeah...., there is line 150 lines missing from the start....
<countingsort>
i probably just read over it 20 times in a row, but how would i tell nix to install packages for my user in $HOME/.config/nixpkg/config.nix?
graphene has quit [Remote host closed the connection]
<clever>
found it, all the way back in 16.03!
<clever>
somebody fixed it and made me into a lier! :P
<infinisil>
countingsort: You can't
<infinisil>
countingsort: That's not what config.nix is for
<countingsort>
infinisil: so its imperative configuration for users only?
<infinisil>
,home-manager countingsort
<{^_^}>
countingsort: home-manager allows you to manage your per-user configuration similarly to NixOS' configuration.nix: https://nixos.wiki/wiki/Home_Manager
<infinisil>
,nix-env-r countingsort
<{^_^}>
countingsort: A simple way to install all your packages declaratively is to use `nix-env -ir default.nix` with the file of the form `with import <nixpkgs> {}; { inherit hello; }` to install hello. Note that with the -r switch this removes all your previously installed packages
<clever>
countingsort: you can use config.nix to define a custom package, that contains many other packages, then nix-env it, possible with -r
graphene has joined #nixos
<ldlework>
gchristensen: johnw so is the answer to just shell the file out to hnix then?
fendoer has quit [Read error: Connection reset by peer]
<gchristensen>
probably not -- we don't want to just start reformatting every file in nixpkgs
<countingsort>
infinisil, clever: thanks a bunch
<LnL>
gchristensen: hmm is nixfmt actually maintained, or am I looking at the wrong one?
<gchristensen>
LnL: I don't think it is :)
<ldlework>
gchristensen: well it can be setup in the editor however one wishes, based on TAB, save, M-x, etc
bennofs has quit [Read error: Connection reset by peer]
<gchristensen>
oh then sure! just don't want to start sending big PRs with reformats
<ldlework>
error: attribute 'hnix' in selection path 'nixos.hnix' not found
<ldlework>
doh
<cransom>
(haskellPackages.hnix?)
<ldlework>
that worked
<ldlework>
nice
<nek0>
hi folks, I'm having a problem with nix-shell. I get errors, that curl can't resolve tarballs.nixos.org and other vital hosts, which are obviously still online. Can anybody help me?
__monty__ has quit [Quit: leaving]
<clever>
nek0: can you ping those hosts from the same machine?
<nek0>
yes
<clever>
nek0: what is the contents of /etc/resolv.conf ?
<cransom>
nek0: pastebin the relevant bits of your shell.nix?
<clever>
nek0: should work, does it fail on the same url every time?
<nek0>
clever: it fails on the same urls, yes.
mayhewluke has joined #nixos
<ldlework>
johnw: some strange behavior with hnix, i only get half the file printed -- its almost like my shell is evaluating the output of the pretty print or something
<monad_cat>
I have unfree enabled, just installed enpass by adding it to packages in `configuration.nix`
<monad_cat>
weird
<gchristensen>
not weird
<gchristensen>
"You won't be able to install or search for an unfree package as a user, unless you explicitly enable it in ~/.config/nixpkgs/config.nix (the file and folder may need to be created): "
<gchristensen>
later, "Note that this alone will not allow you to search for or install packages with nix-env. See the previous section. "
<monad_cat>
ah, thanks gchristensen, that helped indeed :)
<gchristensen>
ah that is a very new package. are you on nixos 18.03?
jluttine has joined #nixos
init_6 has joined #nixos
<sorbet>
So I've got a python2 entry at the beginning of my PATH that overrides the python2 in my profile, any tips on determining what aspect of my configuration is resulting in that?
<sorbet>
Looking through my declarative configs, I don't have anything about python2, so it might be a dependency of something else... Or would an explicit path to the nix store entry indicate it was from nix-env run imperatively (and not NixOS)?