<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAvXg
gmarmstrong has joined #nixos
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 272 seconds]
Acou_Bass has quit [Ping timeout: 272 seconds]
lassulus_ is now known as lassulus
lsyoyom has joined #nixos
hlolli_ has quit [Remote host closed the connection]
<timclassic>
Can someone recommend the right way to remove the `capabilities` attribute from `security.wrappers.ping` from an import referenced in configuration.nix? The existing kernel check conditional in network-interfaces.nix doesn't work in my situation.
abueide has joined #nixos
<emily>
timclassic: I also want to know the answer to this question and now wonder how similar our environments are.
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
carlosdagos has joined #nixos
mayhewluke has joined #nixos
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
Acou_Bass has joined #nixos
gmarmstrong has quit [Quit: Quit]
<timclassic>
emily: I'm running NixOS on SmartOS using the lx-brand ABI emulation, so I have a bunch of little adjustments to make. I have the following in my configuration.nix, and it works:
<timclassic>
But when I move that to an imported file, it loses its effect.
<timclassic>
(the effect being the removal of the `capabilities` attribute)
<emily>
timclassic: cool, SmartOS is awesome!
Acou_Bass has quit [Ping timeout: 276 seconds]
<timclassic>
I agree :)
<emily>
My environment is as esoteric but dissimilar; I'm running NixOS in lxd in crosvm in CrOS
<emily>
it's in a user namespace and stuff... you can't set the caps needed for ping, though it works if you sudo in the container
<timclassic>
emily: Ah neat, I haven't used LXD before. I did some LXC stuff waaay back, but I've forgotten it all by now.
<timclassic>
Yeah, it sounds like we're facing similar challenges.
aarvar has quit [Ping timeout: 244 seconds]
<emily>
yeah, you have to use the LXD stuff since you don't get to choose your own VM image for the Linux containers support, it just ships with lxd ^6;
<emily>
* ^^;
judson has joined #nixos
<judson>
Remind me what I should do about libGL.1.so not being found for a steam game?
abueide has quit [Ping timeout: 272 seconds]
<judson>
Reinstall Steam via Nix?
<techieAgnostic>
trying to get steam working seems scary
<techieAgnostic>
ive been putting off trying to get gog stuff running
<judson>
Fresh installs build just fine, and the "steam-run" environment is often more convenient than trying to elfpatch everything in.
<judson>
But the actual problem here, I think, has to do with incompatible libGL stuff.
joebobjoe has quit [Ping timeout: 276 seconds]
<gchristensen>
oh then yea probably just hav eto reinstall it
<judson>
I sometimes muse on the feasibility of a "just patch it" tool.
<judson>
"I got this binary from somewhere; patch its ELF with Nix specific paths, plz"
<judson>
Conversely, I wonder about an ld.so built for Nix with a lookup table.
ericsagnes has joined #nixos
abueide has joined #nixos
<timclassic>
emily: Did you have to "infect" NixOS into the container?
<emily>
timclassic: no, I used the containerTarball with a few custom tweaks
<emily>
I did have to slip it into place of the default container though
katrin has joined #nixos
abueide has quit [Ping timeout: 240 seconds]
<timclassic>
Ah. I have an infect-style script to create a NixOS image within Joyent's public cloud, since they require you start with one of their pre-made lx-brand images. I'm trying to clean it up, which is how I ended up with this current mystery.
<katrin>
i notice how 31.3 container networking specifies nat.externalInterface, is there any way to set up NAT from a container's IP to an external IP (on a system with more than one IP), without touching iptables or something similar?
<katrin>
mmmm, what about defining more than one external ip for mapping?
<srk>
was fighting with it few hours ago - had to do iptables -F -t nat due to libvirt rules it seems
silver has quit [Read error: Connection reset by peer]
<srk>
not sure about multiple externalIP
<katrin>
mmm...
b has quit [Ping timeout: 276 seconds]
Supersonic has quit [Ping timeout: 265 seconds]
b has joined #nixos
Supersonic has joined #nixos
aszlig has quit [Quit: Kerneling down for reboot NOW.]
aszlig has joined #nixos
<judson>
Hm. No, that's not enough to fix it... `./EXAPUNKS.bin.x86_64: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory`
<timclassic>
emily: This causes a rebuild of several packages, but I was rebuilding them anyway due to some other patches.
Yourwaterloos has joined #nixos
<Yourwaterloos>
Is it possible to use Nix without channels at all?
<Yourwaterloos>
It would be interesting to just reference everything by package source hash
<emily>
timclassic: if you figure out how to get stuff set setuid instead of setcapped that would be nice.
<emily>
having to use "sudo" for ping is a bit silly.
andreabedini has joined #nixos
rodgort has joined #nixos
<timclassic>
My first thought is that we need a global don't-use-capabilities option that modules can interpret, and perhaps the kernel version check would set an initial value for that option but it can be overridden.
<timclassic>
(agreed about the silliness)
<timclassic>
In the case of SmartOS, you can just use Solaris ping binary in /native/usr/sbin/ping :)
<adamantium>
Hey, i'm trying to add a a services.udev.extraRules . It nixos-rebuild errs on the line RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \ ...
<adamantium>
Checking that all programs called by absolute paths in udev rules exist... FAIL
<adamantium>
/bin/chgrp is called in udev rules but not installed by udev
<c15ade4>
Yourwaterloos: another approach is to use a program called direnv to setup IX_PATH when you change into your project
<c15ade4>
and use a git submodule
<c15ade4>
for the nixpkgs version
<judson>
Huzzah! Found that the game had a wrapper that undid the LD_PRELOAD stuff that steam-run does so that it can open PDFs.
<nikivi>
every time i try to install any nix package I get: nix-env:1: maximum nested function level reached
<nikivi>
searching online, I am not sure what a fix for this is
joebobjoe has joined #nixos
<Yourwaterloos>
hm
mayhewluke has joined #nixos
<nikivi>
I don't suppose restarting would help
za1b1tsu has joined #nixos
johnw has joined #nixos
Fare has quit [Ping timeout: 244 seconds]
fragamus has joined #nixos
<nikivi>
it seems its a zsh caused issue. but how does it relate to nix?
<nikivi>
I tried to run `nix-env -iA google-cloud-sdk`
za1b1tsu has quit [Quit: WeeChat 2.1]
fragamus has quit [Client Quit]
<infinisil>
,locate chgrp
<{^_^}>
Found in packages: inferno, busybox, coreutils, bashCompletion
<infinisil>
adamantium: ^^
<infinisil>
,locate bin chgrp
<{^_^}>
Found in packages: busybox, coreutils
<nikivi>
anyone know what might cause this issue?
<infinisil>
Or rather that if you want to find binaries
<nikivi>
should I reinstall nix perhaps?
<c15ade4>
nikivi: nixos.google-cloud-sdk ?
<nikivi>
c15ade4 I am on macOS so for me its nixpkgs.google-cloud-sdk
<nikivi>
but I get this error on any package I want to install now
<nikivi>
i.e. 'nix-env -iA tree' gives same error
<nikivi>
I thought maybe there was a limit to how many packages you could install with nix but I dont have that many
Yourwaterloos has quit [Quit: Leaving]
joebobjoe has quit [Ping timeout: 276 seconds]
worldofpeace has quit [Remote host closed the connection]
<colemickens>
so, I rebased on nixos-unstable, and now libvirtd fails: Aug 19 22:00:15 xeep libvirtd[1301]: 2018-08-20 05:00:15.214+0000: 1301: error : virJSONJanssonOnceInit:66 : this function is not supported by the connection driver: libjansson.so.4 JSON library not available: libjansson.so.4: cannot open shared object file: No such file or directory
<colemickens>
but I get zero hits for this on nixpkgs repo?
Guanin has quit [Ping timeout: 272 seconds]
Guanin has joined #nixos
aarvar has quit [Ping timeout: 256 seconds]
<nikivi>
restarted and still getting same `nix-env:1: maximum nested function level reached` error on each package install
<jepityr>
Hey guys, anyone know how to build polybar with pulseaudio support? I have nixpkgs.config.pulseaudio = true in my configuration.nix, but I still get 'Unknown module: internal/pulseaudio' when I try to run it with a pulseaudio module...
<srhb>
jepityr: polybar takes an argument pulseSupport which defaults to false, and libpulseaudio which defaults to null
<srhb>
jepityr: So something like polybar.override { inherit (pkgs) libpulseaudio; pulseSupport = true; }
<srhb>
Actually I guess setting pulseSupport = true; will suffice :)
<jepityr>
Hm, when I try to rebuild with `(polybar.override { pulseSupport = true; })` I get an error saying "error: anonymous function at /nix/store/3py39bvbqhswbqm8khgy0nv908makqdf-nixos-18.03/nixos/pkgs/applications/misc/polybar/default.nix:1:1 called with unexpected argument 'pulseSupport', at /nix/store/3py39bvbqhswbqm8khgy0nv908makqdf-nixos-18.03/nixos/lib/customisation.nix:74:12"
<srhb>
thor: You could use overrideAttrs to make a version of that package that has those lines appended.
<srhb>
thor: It could be as simple as postInstall = ''cat youradditions >> $out/etc/reqiest-key.conf''
arjen-jonathan has joined #nixos
<srhb>
Correcting for any typos I made. :-P
<thor>
hehe
<thor>
and that won
<thor>
won
<thor>
(grrr. 4 months using a different keyboard)
<thor>
and that won't cause any issues when doing a rebuild I take it?
<{^_^}>
[nixpkgs] @vcunat pushed 0 commits to openjdk-cross: https://git.io/fAvAU
<srhb>
I mean, you'll get your version of the file rather than the original. So if that causes no problems -- and that's your desire -- you should be fine
<thor>
great, thanks, first time I endeavour into altering a package like this :)
<srhb>
Oh and using that method you'll be rebuilding the package as well. If you want to avoid that, you should probably make a version that wraps it instead.
<srhb>
thor: Cool, it's a good learning experience. :)
troydm has quit [Ping timeout: 240 seconds]
CodeKiwi has quit [Ping timeout: 260 seconds]
<thor>
yeah, I love nixos for my work machine, nice to just do upgrades and rest easy that should it blow up, worst case, I can just pull down the nix files from my git and rebuild it in no time
<srhb>
Or rollback! Never underestimate :-)
<adisbladis>
Rollbacks <3
<srhb>
(Depending on the severity of the explosion...)
<thor>
yeah, I
<thor>
I'm talking epic explosion :P
<manveru>
as long as you still have a working git ;)
<thor>
if github goes down, then I got bigger worries
<Yaniel>
if github goes down you still have a copy of the repo on your workstation, right?
<Yaniel>
...right?
<thor>
I do
<thor>
I mirror all my repos to a private gitlab
<Yaniel>
(ofc nixpkgs will be down then as well)
<thor>
that's more what I was aiming at :P
trevthedev has quit [Ping timeout: 240 seconds]
DigitalKiwi has joined #nixos
layus has quit [Ping timeout: 276 seconds]
<manveru>
i meant more the git binary :)
<manveru>
or the filesystem
<manveru>
but yeah
<Yaniel>
I think you can mirror that too, though
<Yaniel>
and run hydra somewhere
<srhb>
*paranoia intensifies*
<srhb>
:-)
<thor>
a bit above my level of nixos fu yet :P
<thor>
besides, a lot that uses fetchGithub in nixpkgs
<srhb>
thor: Most of that will not matter much as long as the cache is still alive. :)
<alech>
hi, I'm new to Nix(OS) and am trying to build a python application package. The package needs pandoc at runtime, but I didn't manage to specify that (tried buildInputs and propagatedBuildInputs) - any hints?
<srhb>
alech: At a guess, your application expects pandoc to be on $PATH, which is not something that propagatedBuildInputs will do for you. Perhaps take a look at wrapProgram and friends to make a small wrapper around the executable that takes care of this for you.
<srhb>
Alternatively, patch every reference to pandoc to the full path rather than relying on $PATH
DigitalKiwi has quit [Ping timeout: 256 seconds]
<techieAgnostic>
,locate getopts
<{^_^}>
Found in packages: zsh
<techieAgnostic>
is there a thing built into nix to do that?
<techieAgnostic>
,locate awk
<{^_^}>
Found in packages: gawk, cheat, quilt, inferno, busybox, plan9port, vimPlugins.ale, and 1 more
<srhb>
techieAgnostic: No, but the tool around it is in nix-index (nix-locate)
<srhb>
,locate nix-locate
<techieAgnostic>
oh thanks
<{^_^}>
Found in packages: nix-index
<techieAgnostic>
im trying to learn to do a derivation. its for something real simple but once ive figured it out would it be cool to post it here to see if i did it right?
<srhb>
Sure, feel free. :)
<thor>
srhb: thanks, did a rebuild now and the lines got added
<srhb>
thor: Great :)
<thor>
alas, no luck on mounting DFS namespace though :(
<alech>
srhb: ah, didn't realise that, still getting to grips with those things.
<alech>
srhb: as for patching to the full path - wouldn't that path change based on the version of the pandoc package I am using? Doesn't look very sustainable to me
<alech>
srhb: and since the application is also supposed to be used under non-Nix environments, I guess wrapProgram is the way to go - thanks for the pointer :)
periklis has joined #nixos
civodul has joined #nixos
ramses_ has joined #nixos
<ramses_>
Hi guys, does anyone know about any script/derivation/whatever for nixos to schedule automatic reboots after the kernel has been upgraded by the auto update service of nixos?
<srhb>
alech: It would change regardless. We depend on exact versions of packages, so if pandoc changes, your application changes with it.
<srhb>
alech: Which is working as intended, but we DO rebuild a lot more than others because they only depend on the interface. :)
<bkchr[m]>
Hi, did someone has seen problems with CMake `target_link_libraries` and libraries declared as `Private`?
<srhb>
ramses_: This could be achieved by comparing the versions in /run/current-system with the version in /run/booted-system in eg. a systemd job
<adisbladis>
Wouldn't activationScripts be more appropriate
<alech>
srhb: true, good point. I guess I'll go for the wrapProgram version for now but conceptually I like the "version pinning", so might look into it later
<srhb>
adisbladis: Maybe. I dislike fiddling with those if a systemd job can get it done :)
<srhb>
alech: Both solutions will pin the version just fine. :)
<srhb>
alech: the wrapProgram route will cause the wrapper script to contain something like PATH=/nix/store/xxxx...-pandoc-someversion/bin... yourApplication
troydm has joined #nixos
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
worldofpeace has joined #nixos
alexteves has joined #nixos
<techieAgnostic>
why would $out in installPhase be giving me a different folder in the nix store than what nix-build tells me its building?
<srhb>
techieAgnostic: Multiple outputs perhaps?
<techieAgnostic>
if i want to test out building, whats the correct way without needing to add it to nixpkgs?
<techieAgnostic>
i have a default.nix that imports nixpkgs and then runs callPackage on another nix file with the mkDerivtion in it
__Sander__ has quit [Ping timeout: 240 seconds]
__Sander__ has joined #nixos
<srhb>
techieAgnostic: That's a good way.
<techieAgnostic>
ok think I'm getting there
<srhb>
I often wish for nix-build --callPackage for that exact reason
<srhb>
I suggest having one .nix file that does that but takes a path argument to the package to callPackage
<srhb>
Then you can have a nice shell alias for it.
<techieAgnostic>
Am I fine to put the script straight into $out, or should it be $out/bin/ or something?
DigitalKiwi has joined #nixos
<srhb>
techieAgnostic: $out/bin/ is the path that will be joined into the bin folder in profiles, so that's usually preferably.
<srhb>
preferable*
joebobjoe has joined #nixos
<techieAgnostic>
ok thanks :)
trevthedev has joined #nixos
<adisbladis>
techieAgnostic: And in case of a multi-output derivation that has a "bin" output it's $bin/bin
<techieAgnostic>
ok so this is a really simple one, but mind looking over it to see if i messed anything up?
<srhb>
Christ, were systemd timers designed by Rube Goldberg or something...
periklis has quit [Ping timeout: 276 seconds]
<techieAgnostic>
ok so more newbie questions sorry
<srhb>
No reason to be sorry :)
<adisbladis>
We love newbies here :)
<techieAgnostic>
im following the nix manual for adding custom packages, and im trying to add (import /path/to/file.nix) to my environment.systemPackages
<techieAgnostic>
and its saying its not of the type package
<techieAgnostic>
oh wait think its workin now
patrl has joined #nixos
<techieAgnostic>
had the { stdenv, fetchurl }: line still in
<ongy>
hm, I must have done something wrong then. I tried that earlier.
<ongy>
oh, is it in the serviceConfig, or in the service name?
<srhb>
As above, no serviceConfig.
<ongy>
ahh, then I did indeed do something wrong
patrl has quit [Ping timeout: 260 seconds]
ericsagnes has quit [Ping timeout: 276 seconds]
<ongy>
hm, the path is set in the Environment stuff, but I don't think systemd is able to find it starting the service. Can I get the path to the bin directory of a service in the store to insert it into the string?
<srhb>
ongy: Of a "service" in the store?
<srhb>
The path to a binary in a package is usually "${pkg}/bin/binary"
<ongy>
well, it's a normal application (pkgs.xpra) and I want the absolute path to the xpra binary
periklis has joined #nixos
<ongy>
ah, so I can just have it: ${pkgs.xpra}/bin/xpra in the string for StartExec?
<srhb>
Yes.
<ongy>
cool thx :) now to figure out how to get xpra to behave^^
jasongrossman has joined #nixos
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos
vidbina has quit [Ping timeout: 276 seconds]
alex`` has joined #nixos
<Mic92>
How can I get the sha256 of a src attribute in a nix repl?
orivej has quit [Ping timeout: 276 seconds]
<adisbladis>
Mic92: hello.src.outputHash
<Mic92>
adisbladis: thnaks
<Mic92>
*thanks
revtintin has quit [Quit: WeeChat 1.9.1]
<techieAgnostic>
what does the rec in the first argument of mkDerivation mean?
<techieAgnostic>
at the moment its one of those "it breaks if its not there" things for me
<srhb>
techieAgnostic: It's not an argument, but a modifier to the attrset
<techieAgnostic>
oh does it mean record?
<srhb>
techieAgnostic: It allows attributes to refer to each other (RECursively)
<techieAgnostic>
Ahhh
<techieAgnostic>
thanks
jasongrossman has quit [Remote host closed the connection]
<infinisil>
> rec { qux = 1; flop = qux; }
<{^_^}>
{ flop = 1; qux = 1; }
<infinisil>
> { qux = 1; flop = qux; }
<{^_^}>
{ flop = <CODE>; qux = 1; }
<Taneb>
> let foo = 1; {foo = 2; bar = foo;}
<{^_^}>
error: syntax error, unexpected '{', at (string):171:14
<Taneb>
> let foo = 1; in {foo = 2; bar = foo;}
<{^_^}>
{ bar = 1; foo = 2; }
<Taneb>
> let foo = 1; in rec {foo = 2; bar = foo;}
<{^_^}>
{ bar = <CODE>; foo = 2; }
<Taneb>
Huh, not quite what I expected
<infinisil>
Damn you laziness
<infinisil>
> { qux = 1; flop = qux; }.flop
<{^_^}>
undefined variable 'qux' at (string):171:19
<bkchr[m]>
Is cmka on Nixos configured to strip out RPATHs while building?
<srhb>
And finally...
<srhb>
> let foo = { bar = 1; baz = foo.bar; }; in foo
<{^_^}>
{ bar = 1; baz = <CODE>; }
* srhb
shrugs
<srhb>
Who needs rec!
<Taneb>
CODE: Germany with all the arrows reversed?
<srhb>
Taneb: I guess it means "thunk" more or less.
<Taneb>
That certainly makes more sense in context but I think I prefer my definition in general ;P
<srhb>
Obviously. :-P
<srhb>
Morally, CO-DE has not been forced, last I looked.
silver has joined #nixos
`slikts has joined #nixos
mayhewluke has quit [Ping timeout: 272 seconds]
init_6 has joined #nixos
johanot has quit [Ping timeout: 240 seconds]
johanot has joined #nixos
adisbladis has quit [Remote host closed the connection]
<{^_^}>
[cabal2nix] @peti pushed to master « travis-ci: try building with GHC 8.6.1 »: https://git.io/fAfkd
ericsagnes has joined #nixos
gspia has quit [Ping timeout: 256 seconds]
<Aleksejs>
Hello, I'm trying to install nixos on a PC with UEFI enabled. I'm getting an error "file system /boot is not on a gpt partition table"
<fgaz>
Why nixpkgs reviews/merges are so slow lately? The backlog is quite big
<fgaz>
Is it because of the upcoming release?
<srhb>
fgaz: I hadn't noticed that it has been slower than usual. Do we have any actual data on that? That said, when Ryans upgrade bot throws a ton of PRs at us, it takes a while to get through them :-)
<srhb>
Oh and you're probably right, historically the merge queue grows when a release cut is impending. :P
<fgaz>
No actual data, just my impression, so I may just as well be wrong :)
jD91mZM2 has joined #nixos
<srhb>
Nah, you're probably right. I just remembered the graphs from last year's nixcon
joebobjoe has quit [Ping timeout: 240 seconds]
periklis has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @arch1tect0r opened pull request #45378 → mmc-utils: update to upstream → https://git.io/fAfZL
<c15ade4>
anyone understand sway/wayland ? I installed the driver amdgpu-pro and did programs.sway.enable = true; but it seems like sway isn't trying to load the right driver
<c15ade4>
it tries to enumerate some drivers under /run/opengl/lib/dri , but never tries the correct one, which i guess is amdgpu_dri.so
<{^_^}>
[nixpkgs] @Mic92 pushed to master « Literate: mark as broken »: https://git.io/fAfW8
<{^_^}>
[nixpkgs] @aanderse opened pull request #45380 → perlPackages.NetSFTPForeign: init at 1.89 → https://git.io/fAfWp
Drakonis has joined #nixos
wucke13 has quit [Ping timeout: 260 seconds]
wucke13 has joined #nixos
joebobjoe has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
bricewge_ has joined #nixos
wucke13 has quit [Ping timeout: 260 seconds]
<bricewge_>
I'm trying to replace (not append) /etc/pulse/client.conf with environment.etc."pulse/client.conf".source = lib.mkForce ./client.conf; but I get the error: duplicate entry pulse/client.conf. How can I fix it or replace the file?
<philippD>
Is there a way to have vim built with +xterm_clipboard?
<philippD>
in particular I want to pass `--with-x` to the configure script
Fare has quit [Ping timeout: 260 seconds]
tim_nixos has joined #nixos
MoziM has quit [Ping timeout: 240 seconds]
<tim_nixos>
Hello people, it seems like I have butchered my $NIX_PATH by running some commands from the official manual. Is there a way to reset it? When I try to run 'nixos-rebuild switch' I get this: error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13. Any help apreciated!
<infinisil>
tim_nixos: just restart your terminal
<tim_nixos>
oh.. okay :D now it is populated but I still get the same error when I try to rebuild my config
<tim_nixos>
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs' does not exist, ignoring
<alech>
srhb: do you have an example for wrapProgram for me? I tried "wrapProgram $out/bin/pandoc", (in postBuild) but that fails since it is not in that location. Alternatively, I tried "wrapProgram ${pandoc}/bin/pandoc", but that fails since it wants to write .pandoc-wrapped in the pandoc nix store path and that fails with permission denied ...!?
mayhewluke has joined #nixos
juhe has joined #nixos
sir_guy_carleton has joined #nixos
<symphorien>
makeWrapper is the same as wrapProgram but not in place
<symphorien>
So it can work aroud permissions
<alech>
symphorien: thanks, looks good. I made something along the lines of "mkdir -p $out/bin\n makeWrapper ${pandoc}/bin/pandoc $out/bin/pandoc" now in installPhase as in the nixpkgs manual and that seems to work \o/
<d1rewolf>
anyone using password-store on nix with zsh? Autocompletions don't seem to work for me...even though /nix/store/yc6xid3qkirhjkn47f8nnr4kl4d6jld3-password-store-1.7.2/share/zsh/site-functions/_pass exists
<gchristensen>
that is executing a test suite against a single OS with a single installation method, https://gist.github.com/grahamc/a626910c93f9858615ca1dd14d93ccdf I have 27 distros and 3 install methods at the moment. you can easily imagine creating install images with brokenness like nearly full disks, etc.
nschoe has quit [Read error: Connection reset by peer]
<gchristensen>
I spent too long trying to make it work inside of a pure nix-build, but the tests need to talk to the cache and nixos.org and mocking those was just frustrating the process and maybe someone else will figure that out ;)
slabity has joined #nixos
<gchristensen>
not to mention it took 15 minutes to find 30 maintained distro images with a common API, that is a whole project in itself
<shlevy>
Yeah, trying to get this to work in a nix build seems way too big a project
<alech>
d1rewolf: works for me including autocompletion
<d1rewolf>
alech: are you using oh-my-zsh?
<alech>
d1rewolf: nope, plain vanilla zsh
<d1rewolf>
alech: did you do anything special to enable autocompletion?
<alech>
d1rewolf: not that i remember and the machine and my usage of nixos is pretty new
<d1rewolf>
alech: ok, weird. thx
<alech>
d1rewolf: you're welcome. hope you'll figure it out.
<alech>
symphorien: hmmm, celebrated to early, that still doesn't help. so basically I am doing this in installPhase or postInstall or preInstall (no differences), I do nix-build; nix-env -i result/ but I still don't have a pandoc on my path ... ideas? :-/
dmj`_ has joined #nixos
<jD91mZM2>
Did nixos.git change recently? I think it's causing me "The option value environment.systemPackages[definition 2-entry 55] in <file> is not of type package"
<gchristensen>
sounds like maybe you did environment.systemPackages = [ mypkg.override { ... }] maybe?
__Sander__ has quit [Quit: Konversation terminated!]
vmandela has joined #nixos
<d1rewolf>
alech: weird. I completely recreated my zshrc, but still no autocomplete from pass :-/
<Taneb>
d1rewolf: does the _pass need to be in some scope?
<infinisil>
d1rewolf: Taneb: I'm using home-manager, and I have pass completion working by setting `programs.zsh.plugins = [{ name = "pass"; src = "${pkgs.oh-my-zsh}/share/oh-my-zsh/plugins/pass"; }];`
<d1rewolf>
infinisil: hm...I'm not using home-manager. do you know what config setting that ultimately affects?
<infinisil>
It just adds that to fpath I think
<netcho>
hey all, i have OCaml project i want to build with nix
<netcho>
i am having issues understanding opam2nix
<netcho>
since we have Makefile i am trying to make hack my wya into it wuth builder script
<{^_^}>
[nixpkgs] @Ericson2314 pushed 0 commits to makeScope-dry: https://git.io/fAfFA
logzet has joined #nixos
init_6 has quit [Ping timeout: 276 seconds]
<hyper_ch>
so no more nixos mailing list? Discord is just such a pain IMHO
joebobjoe has quit [Ping timeout: 268 seconds]
<tilpner>
You mean Discourse, right?
<tilpner>
You scared me for a second
vidbina has quit [Ping timeout: 255 seconds]
Drakonis has joined #nixos
<hyper_ch>
oh.... did I confused those two?
<hyper_ch>
sorry
booglewoogle has quit [Quit: Leaving]
<hyper_ch>
tilpner: btw, on a older build or rather current one from nixos unstable small, there is an issue with libvirtd... it's not present in git master anymore. Should I report it?
<tilpner>
How do you determine that it's not present?
<hyper_ch>
I run current git master now
<hyper_ch>
and with current I mena like from yesterday and nixos unstable small was last updated 3 days ago
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
logzet has quit [Ping timeout: 265 seconds]
logzet has joined #nixos
logzet_ has joined #nixos
logzet has quit [Ping timeout: 276 seconds]
vidbina has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #45396 → audit-tmpdir: fix processing of files with spaces, quote variables → https://git.io/fAfAx
<{^_^}>
[nixpkgs] @dtzWill opened pull request #45400 → NIX_PATH: don't prepend $HOME-based value in session variable, set later → https://git.io/fAJeX
zpiro has joined #nixos
joebobjoe has quit [Ping timeout: 272 seconds]
trebuh has quit [Remote host closed the connection]
kreisys has quit [Read error: Connection reset by peer]
mayhewluke has quit [Ping timeout: 256 seconds]
tylerjl has quit [Ping timeout: 256 seconds]
Ashy has quit [Ping timeout: 256 seconds]
hiroshi has quit [Ping timeout: 256 seconds]
leothrix has joined #nixos
Ashy has joined #nixos
lor|d has joined #nixos
lor|d is now known as lord|
kgz has joined #nixos
kgz has quit [Client Quit]
joebobjoe has quit [Ping timeout: 276 seconds]
ArahaelPi has joined #nixos
kragniz has joined #nixos
hiroshi has joined #nixos
logzet_ has quit [Ping timeout: 260 seconds]
leotaku has joined #nixos
gratin has joined #nixos
bitonic_ has joined #nixos
abueide has quit [Ping timeout: 272 seconds]
countingsort has joined #nixos
etrepum_ has joined #nixos
logzet has joined #nixos
kalbasit[m] has quit [Ping timeout: 256 seconds]
ThatDocsLady has quit [Ping timeout: 256 seconds]
bitonic has quit [Ping timeout: 256 seconds]
etrepum has quit [Ping timeout: 256 seconds]
nocoolna- has quit [Ping timeout: 256 seconds]
infinisil has quit [Ping timeout: 256 seconds]
bitonic_ is now known as bitonic
etrepum_ is now known as etrepum
grumble has quit [Read error: Connection reset by peer]
gurmble has joined #nixos
gurmble is now known as grumble
infinisil has joined #nixos
nocoolnametom has joined #nixos
lawlesseel has joined #nixos
Thra11 has joined #nixos
kyren_ has joined #nixos
pikajude has quit [Remote host closed the connection]
kyren has quit [Ping timeout: 260 seconds]
pikajude has joined #nixos
countingsort has left #nixos [#nixos]
<bigvalen>
Anyone setup prometheus with Nixos ? I've a home server, and would love some sort of dashboards on things like disk IO load, errors, CPU and network usage. Just wondered if someone had hints on such things.
<gchristensen>
any troubles, or just need direction?
<{^_^}>
[nixpkgs] @joachifm merged pull request #44631 → nixos/terraria: Wait for daemon to stop → https://git.io/fNDbi
<bigvalen>
Never played with Prometheus before, so just wondered about it - is it still a 'roll it yourself', or is it good for home users.
<bigvalen>
joepie91, That's for monitoring systemd and something on 9090 ?
<cransom>
bigvalen: netdata is pretty useful for home.
<joepie91>
bigvalen: 9090 is prometheus' own metrics; aside from that the node status (resource usage) on port 9100, and systemd services (through 'systemd' collector) on port 9333
<joepie91>
(ie. which services use what amount of memory, CPU, etc.)
<joepie91>
(the docker disable is there because cadvisor will by default enable dockerd, as it's designed to track that; but it works for systemd services without Docker as well)
<bigvalen>
I'd a disk failure, and the resilvering of the remaining 3 disks in the RAID Z2 are currently crippling the box. A 'nixos-rebuild switch' that usually takes 20 seconds has been running for about ten minutes :(
astrofog has joined #nixos
<bigvalen>
I've plex running in Docker, it'd be nice to see what it uses too
<gchristensen>
bigvalen: you're still rolling things yourself because prom has no inherent system monitoring going on by default, but you can install their default node monitor and have some good data
<gchristensen>
it isn't a load of work but you can't just say yep enable prom and be done
<srk>
Mesh implements a gossip protocol that provide membership, unicast, and broadcast functionality with eventually-consistent semantics. In CAP terms, it is AP: highly-available and partition-tolerant.
<srk>
I wonder if I should just go for ZRE protocol I've implemented for this reasons
<{^_^}>
[nixpkgs] @basvandijk opened pull request #45406 → haskell: disable library profiling for static executables → https://git.io/fAJOa
smolboye has quit [Ping timeout: 248 seconds]
bennofs has joined #nixos
pikajude has quit [Remote host closed the connection]
pikajude has joined #nixos
<adamantium>
hi, do you guys think services.dbus.socketActivated = true; is good to have for desktops, or is dbus already going to be used / available for apps?
simukis has quit [Quit: simukis]
<adamantium>
I'm not sure, uhm, what this setting actually does, I suppose.
Ariakenom has quit [Read error: Connection reset by peer]
Drakonis has joined #nixos
<elvishjerricco>
Why does the nix daemon have to be run as root? Couldn't it in principle be run as its own user?
<gchristensen>
it needs to spawn processes as arbitrary users
<elvishjerricco>
gchristensen: Only as the nixbld users, right? Is there not a way to privilege one user to run things as another? Sudoers maybe?
Anton-Latukha has joined #nixos
<gchristensen>
not sure
<gchristensen>
well also manipulating process and network namespaces
<gchristensen>
and remounting paths on disk as read-write... nix-daemon des a _lot_ of highly privileged stuff to setup and maintain isolation
<gchristensen>
it could do _less_ as root, but I think it would be hard to make it not use root at all
logzet has quit [Ping timeout: 276 seconds]
ryanartecona has joined #nixos
joebobjoe has joined #nixos
<elvishjerricco>
Hm true. Yea I guess it's a pretty root thing :P
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @VShell opened pull request #45409 → libvirt: add upstream patch to revert jansson → https://git.io/fAJna
emacsoma` has quit [Ping timeout: 268 seconds]
growpotkin has joined #nixos
<growpotkin>
Hey this might be a silly question, but is there a way to batch create options?
<growpotkin>
module options *
<growpotkin>
for instance, I want to 30 options that have the same defaults and types, can I just dump a list of their names into a function to generate all the options?
<manveru>
usually a good text editor can do that :)
<growpotkin>
haha yeah thats what i figured
<srk>
options is just a record so you can probably use listToAttrs and co. to generate its contents
<growpotkin>
ive just been copy pasting it but I figured there was a "clever" way to do it
<manveru>
yeah, generating in nix itself is an option too
<growpotkin>
OOoh ty srk I will give that a shot
Drakonis has quit [Remote host closed the connection]
mayhewluke has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<elvishjerricco>
Wasn't Nix 2.0 supposed to support the old 1.x names for things in nix.conf? That doesn't seem to work quite right sometimes
selfsymmetric-pa has quit [Ping timeout: 276 seconds]
<elvishjerricco>
infinisil: The release notes suggest that an attempt was made to support ALL the old names. sphalerite: I think I may have been mistaken... I'm trying to deal with all the failure reports we get about reflex-platform's scripts for adding binary caches to the system automatically, and I thought this was the problem for some reason, though now I'm not sure why I thought that.
<sphalerite>
ah ok
<sphalerite>
might also be problematic having *both* the old and the new names?
<infinisil>
It should really just have a version number
<elvishjerricco>
infinisil: Are ALL the old names unsupported?
<sphalerite>
elvishjerricco: no
<sphalerite>
binary-caches should work, gc-keep-outputs should work…
<ifur>
can someone confirm that 5-eyes UK:IBM dropped 10% in value today?
<ifur>
im asking because its likely im seeing fake information
aarvar has quit [Remote host closed the connection]
<ifur>
is of no personal relevance, but im given the impression of a consequent i doubt.
<gchristensen>
ifur: seems sort of off-topic
<elvishjerricco>
sphalerite, infinisil: It seems `binary-caches` is supported, but `binary-cache-public-keys` is not.
<ifur>
gchristensen: assume it's real information, but -10% for ibm in london isn't extremely off topic for anything open source.
<ifur>
gchristensen: i'd point it's off-topic to state off-topic when it is broadly speaking not off-topic.
aanderse has joined #nixos
<ifur>
i'd listen to an elaboration and provide an appology, but this is silly.
<ifur>
gchristensen: would like to talk about how IBM is not relevant for nixos? :(
<ifur>
but yeah, finance is off topic to me as well; sorry for bothering everyone and myself.
<ifur>
not loggin, was that intentional or did i trigger with a few words i shouldnt use...
<ifur>
wouldnt recommend the uk btw, offer permanent contract at the bottom of the food chain with no co-workers to work with and ignore conflicts with barely enough to leave the country, i left zero advantage anyone -- it's enough to wave fists angrily at the world, especially when revenge is served cold by false information to your home country.
<gchristensen>
ifur: please stop, this is off topic.
<{^_^}>
[nixpkgs] @alyssais opened pull request #45410 → Mark broken kernel modules on Linux 4.18 → https://git.io/fAJlA
<ifur>
like how i talked to the guy back in the day on freenode that initially wrote nixos and said it was a great idea and not to worry about costly symlinks after meeting him in #gentoo-amd64? Yeah, i'll stop -- sorry!
<nikki93>
trying `(rtags.overrideAttrs (oldAttrs: { version = "2.19"; }))` but it still ends up installing the version in nixpkgs
<mpickering>
You need to override `src`
<nikki93>
do i also need to override the `name`, `src` attrs etc.? -- those seem to be based on the `version` attr, is there a way to get it to recompute all this based on my overriden `version`
<nikki93>
yeah
<mpickering>
Because you need to specify what the new `sha` shoudl be
<nikki93>
mpickering: do i just use the commit hash for that version in the git repo?
<nikki93>
the `rev =` is already specified -- a git tag name based on the `version`
<mpickering>
this does seem quite awkward but I think you have to override the whole src attribute
<mpickering>
which basically means copying what is there already
<nikki93>
yeah i'm doing that atm
<mpickering>
someone else might have a better suggestion
<nikki93>
how do i compute the sha256 that i should be using
alex`` has quit [Ping timeout: 272 seconds]
<aanderse>
globin: i assume passing groups makes those groups exclusively chosen in the gemfile?
<aanderse>
i passed groups = [ "default" "ldap" "openid" "rmagick" "markdown" ];
<globin>
aanderse: yes
<aanderse>
but still have the same issue of "these dependencies in your gemfile changed" then lists the deps under the groups not selected
alex`` has joined #nixos
<mpickering>
change what the `rev` is, then modify the old `sha` by changing one character
<mpickering>
then nix will complain that the shas don't match
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
gratin has quit [Remote host closed the connection]
gratin has joined #nixos
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
<growpotkin>
is there a way to test how some library functions act using nix repl? I'm trying to play with some little helper functions without trying to build my entire config
<growpotkin>
but without needing to provide an entire config as input
seanparsons has quit [Ping timeout: 240 seconds]
seanparsons has joined #nixos
<mpickering>
What goes wrong?
<growpotkin>
it produces a function which is expected, but I need dummy arguments to feed it which get really tedious to generate
abueide has joined #nixos
trevthedev has quit [Ping timeout: 260 seconds]
gratin has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @costrouc opened pull request #45412 → minecraft-server: 1.12.2 -> 1.13.0 + service refactor → https://git.io/fAJ0m
<clever>
growpotkin: its producing a module, that has to be ran by the module framework
<clever>
growpotkin: you can either `nix repl '<nixpkgs/nixos>' and add it to your imports, or use `-I nixos-config=./fake-configuration.nix` and add it to that files imports
<clever>
or write your own nix file that uses the module framework
<growpotkin>
Thank you that's a perfect solution :D