<contrapumpkin>
(other parts of mirage would be awesome too :P)
<clever>
neeasade: and for extra fun, --list gives them in the other order
eacameron has joined #nixos
<contrapumpkin>
maurer: odd coincidence :) when I was git pull'ing, it warned me that there was a conflict on rresult
<contrapumpkin>
and it turned out he had literally packaged it just as I was trying to
<neeasade>
hmmm -- after adding that and trying to build crashes before starts building on 'cannot coerce a list to a string' in strings.nix
lezed1 has joined #nixos
<lezed1>
I have a quick question about getting video to work. Whenever I try to run a program with a GUI, I get something along the lines of "libGL error: unable to load driver: i965_dri.so". To me that looks like I'm missing the Intel video driver, but I can't seem to load it. How can I install the missing driver?
rui1 has quit [(Ping timeout: 256 seconds)]
dhess2 has joined #nixos
hexagoxel has quit [(Ping timeout: 256 seconds)]
hexagoxel has joined #nixos
dhess2 has quit [(Ping timeout: 260 seconds)]
Rizy has joined #nixos
takle has quit [(Remote host closed the connection)]
Rizy has quit [(Client Quit)]
<NixOS_GitHub>
[nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vySCa
k2s has quit [(Remote host closed the connection)]
_deepfire has quit [(Ping timeout: 264 seconds)]
pdobrogost has joined #nixos
takle has joined #nixos
obadz has quit [(Ping timeout: 268 seconds)]
obadz has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
endformationage has quit [(Quit: WeeChat 1.6)]
ericsagnes has joined #nixos
hexagoxel has quit [(Ping timeout: 260 seconds)]
MercurialAlchemi has quit [(Remote host closed the connection)]
MercurialAlchemi has joined #nixos
hexagoxel has joined #nixos
Rizy has quit [(Quit: Rizy)]
eacameron has joined #nixos
ravloony has joined #nixos
ivan has quit [(Quit: lp0 on fire)]
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vySga
<NixOS_GitHub>
nixpkgs/master 49c18cc Vincent Laporte: ocamlPackages.bos: init at 0.1.4...
i_rony|nb has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
ambro718 has joined #nixos
dhess2 has joined #nixos
takle has joined #nixos
takle has quit [(Ping timeout: 264 seconds)]
dhess2 has quit [(Ping timeout: 256 seconds)]
thc202 has joined #nixos
i_rony|nb has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
derjohn_mob has joined #nixos
i_rony has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
i_rony has quit [(Client Quit)]
odi has joined #nixos
takle has joined #nixos
<pallav>
Does anyone know if there's a nix function that returns the output of a shell command?
<pallav>
Like "builtins.readFile ./abc" returns content of file abc, is there a command like `getShellOutput "ls"` that would get me the output of "ls" command?
<LnL>
no, you can't execute commands without a drv
<pallav>
any specific reason (if it is a design choice)?
takle has quit [(Ping timeout: 240 seconds)]
<LnL>
you can do something like runCommand "foo" {} ''echo foo > $out''
<pallav>
LnL: how do I import runCommand?
<clever>
pallav: there is also a builtin to read a directory listing
<hyper_ch>
pallav: what do you want to do? provider like passwords and stuff from an own file seperate from the configuration nix?
<pallav>
I don't have a specific task in mind. This is more of a curiosity of how flexible the language is
<hyper_ch>
ah
<hyper_ch>
well, I do that with passwords ;)
<pallav>
hyper_ch: I still didn't get how you accomplish it. help appreciated :P
<pallav>
I am still curious about my original question, if running a shell command and getting its output as a string is possible
<pallav>
and based on what LnL said, I am still wondering what runCommand is
<clever>
pallav: should be able to call readFile on the result of runCommand
<MarcWeber>
Anybody using qgis? I've problems using georeferencing -> the generated tif doesn't get drawn and on the georeferencer view the image sometimes disappears, too.
<clever>
hyper_ch: exactly the same value your setting it to
<LnL>
pallav: evaluating that runCommand will return a "package", building the resulting package will run the commands and give you a file with the contents foo in your /nix/store
<pallav>
Oh cool , I guess that'd serve the purpose
<pallav>
(If I ever need it)
filterfish has joined #nixos
<hyper_ch>
clever: I see... I could omit line 42 then....
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
<hyper_ch>
and a few others
<clever>
yep
<Havvy>
I'm trying to use a newer emscripten than what's in the unstable channel.
<hyper_ch>
clever: you also have a fix for virtualbox interface? :)
<clever>
hyper_ch: also, i prefer setting initialPasswordHash in configuration.nix
<clever>
hyper_ch: otherwise, anybody that can read /nix/store can find your password
<Havvy>
I tried doing `emscripten = let nixpkgs2 = import /home/havvy/workspace/nixpkgs {}; in nixpkgs2.emscripten;` but I get Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS when I do that.
<hyper_ch>
if people can read /nix/store I have an issue anyway
<Havvy>
Is that the correct way to do what I'm trying to do, and thus should increase the GC, or am I doing it wrong?
<clever>
hyper_ch: becomes an issue when you have a multi-user system
<hyper_ch>
nobody touches my notebook!!!
takle has joined #nixos
<clever>
hyper_ch: ive mainly used vbox with the user nat mode, so it didnt need any special config
<hyper_ch>
it comes with shotgun security
<hyper_ch>
clever: the vbox user interface refuses to start
filterfish_ has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
filterfish_ has quit [(Read error: Connection reset by peer)]
<clever>
hyper_ch: 22914 is a result of upgrading nixos and the location of sudo changing
<clever>
hyper_ch: so $PATH is wrong and cant find the right sudo
<clever>
hyper_ch: and the comment you linked first, appears to be a lack of a setuid root wrapper on a vbox program
<clever>
which may or may not be related
ixxie has joined #nixos
<clever>
a reboot would be needed to confirm
<hyper_ch>
I've rebooted like 30 times since I posted my comment
filterfish_ has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
<clever>
hyper_ch: then either the wrapper is missing, or somebody hard-coded the path for it
<hyper_ch>
I did add security.wrappers."virtualbox".source = "${pkgs.virtualbox}/bin/VirtualBox"; but no luck
<hyper_ch>
I can run the vms with VBoxManage startvm "xxx"
<hyper_ch>
but the interface is good for creating/exporting/etc new vms
<hyper_ch>
:(
<hyper_ch>
gotta read up on initialPasswordHash
ivan has joined #nixos
mkoenig has quit [(Remote host closed the connection)]
<hyper_ch>
using initialHashedPsasword seems to be easy :)
mkoenig has joined #nixos
takle has joined #nixos
eacameron has joined #nixos
<hyper_ch>
first, I need to install mkpasswd
filterfish_ has quit [(Ping timeout: 240 seconds)]
<clever>
hyper_ch: i just steal the hash out of /etc/shadow
<clever>
hyper_ch: it also lets me make users on remote boxes that already have my pass
<clever>
just the minor cost of loosing the benefits of shadow
takle has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
zraexy has quit [(Ping timeout: 240 seconds)]
filterfish_ has joined #nixos
jlle has quit [(Quit: Page closed)]
i_rony|nb has joined #nixos
takle has joined #nixos
<hyper_ch>
clever: if I run the command in the cli and compare it with shadow, they are different
<clever>
hyper_ch: thats the salt, it prevents brute forcing
<clever>
hyper_ch: every time you hash a given password, it will come up differently
<hyper_ch>
ah... so the returning string also contains salt?
<clever>
yeah
takle has quit [(Ping timeout: 240 seconds)]
filterfish_ has quit [(Ping timeout: 260 seconds)]
<hyper_ch>
so, last problem I currently have is how to fix vbox user interface
ixxie has quit [(Ping timeout: 258 seconds)]
dhess2 has joined #nixos
dhess2 has quit [(Ping timeout: 258 seconds)]
takle has joined #nixos
i_rony|nb has quit [(Ping timeout: 258 seconds)]
nschoe has joined #nixos
civodul has joined #nixos
thetet has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle_ has joined #nixos
jensens has joined #nixos
goibhniu has joined #nixos
takle_ has quit [(Ping timeout: 246 seconds)]
takle has joined #nixos
freusque has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
Kendos-Kenlen has joined #nixos
Rizy has joined #nixos
takle has joined #nixos
derjohn_mob has quit [(Ping timeout: 260 seconds)]
pdobrogost has quit [(Quit: Connection closed for inactivity)]
takle has quit [(Ping timeout: 268 seconds)]
odi has quit [(Remote host closed the connection)]
takle has joined #nixos
eacameron has joined #nixos
i_rony|nb has joined #nixos
georges-duperon has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
tsmeets has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
timor has quit [(Ping timeout: 258 seconds)]
<tsmeets>
Hello, how do I create a systemd service that has access to the xserver display?
takle has joined #nixos
<tsmeets>
I try to run xmodmap inside a service, but it fails with "can't open display :0"
ivan has quit [(Quit: lp0 on fire)]
mkoenig has quit [(Ping timeout: 260 seconds)]
andymandias has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
dhess2 has joined #nixos
teknico has joined #nixos
<Unode>
tsmeets: systemd is a bit annoying in that regard. As far as I know you need to export your user environment for this to work.
<Unode>
You also need to depend on the X user target
<Unode>
I think the best example I found lived in the archlinux wikis.
<tsmeets>
Unode: thanks, Iill take a look
dhess2 has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
<steveeJ>
Mic92: you know, busybox uses pkgconfig and I forgot to install that in my nix-shell :-D
<steveeJ>
tsmeets: for testing purposes it might be enough to export DISPLAY=:0
derjohn_mob has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
odi has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
tsmeets has quit [(Quit: leaving)]
<rycee[m]>
tsmeets: If you don't want to hardcode the DISPLAY variable in the service file then you can import the variable: systemctl --user import-environment DISPLAY
<rycee[m]>
You may need XAUTHORITY as well...
tomsmeets has joined #nixos
ravloony has quit [(Remote host closed the connection)]
ravloony has joined #nixos
Rizy has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
tomsmeets has quit [(Client Quit)]
takle has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to master: https://git.io/vySMP
<justanotheruser>
How do I define the package that I want to call the new derivation? https://hastebin.com/raw/topifariji The option `mystlink' defined in `/etc/nixos/overrides.nix' does not exist.
mkoenig has joined #nixos
siel has quit [(Ping timeout: 246 seconds)]
bfrog has joined #nixos
siel has joined #nixos
siel has quit [(Remote host closed the connection)]
siel has joined #nixos
dhess2 has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-16.09: https://git.io/vySj0
siel has quit [(Remote host closed the connection)]
siel has joined #nixos
mogria has quit [(Ping timeout: 256 seconds)]
siel has quit [(Ping timeout: 246 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
derjohn_mob has quit [(Ping timeout: 240 seconds)]
siel has joined #nixos
freusque has quit [(Ping timeout: 246 seconds)]
adfaure has quit [(Ping timeout: 258 seconds)]
mogria has joined #nixos
dannyg has joined #nixos
afics has quit [(Ping timeout: 268 seconds)]
siel has quit [(Ping timeout: 246 seconds)]
<contrapumpkin>
niksnut: any chance you want to merge my option change to nix :)
<contrapumpkin>
niksnut: I have a few other nice little changes/improvements to Nix but the amount of uncertainty about merges/feedback makes me hesitate to invest much time in them
freusque has joined #nixos
<contrapumpkin>
also, who runs the swag link in the topic? it has the old logo in it
siel has joined #nixos
derjohn_mob has joined #nixos
siel has quit [(Remote host closed the connection)]
siel has joined #nixos
periklis has joined #nixos
<samae>
contrapumpkin: what's the new one?
<contrapumpkin>
it's on nixos.org
<contrapumpkin>
the new logo?
<samae>
Oh, OK. It's the same but reworked, isn't it?
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vy9JN
<sphalerite>
same concept but with sharper edges, straighter lines and different colours.
siel has quit [(Ping timeout: 258 seconds)]
<samae>
Now that I really paid attention to it, I see the differences better : )
<LnL>
I really like the new one
ravloony has quit [(Ping timeout: 260 seconds)]
bennofs has joined #nixos
siel_ has quit [(Ping timeout: 246 seconds)]
<icetan>
I'm getting some different results when running a build on Hydra then running it locally. I've recreated the Hydra build error locally by unsetting LANG
siel has joined #nixos
siel has quit [(Changing host)]
siel has joined #nixos
<icetan>
Anyone know how to set locale in a build correctly
<LnL>
add LANG = "foo"; to the mkDerivation attrs
<bennofs>
icetan: how did you run the build locally?
<bennofs>
icetan: because I don't think your LANG should leak into the build if you use nix-build
<icetan>
nix-build release.nix -A build
i_rony|nb has quit [(Ping timeout: 240 seconds)]
civodul has joined #nixos
<icetan>
I have set it in the derivation
<icetan>
And it works locally
<hyper_ch>
hey, question: why is nixos unstable still using chromium v56 when v57 is declared stable=
<icetan>
But not on Hydra
<icetan>
And removing the LANG locally creates the same error locally as on Hydra
<timor>
I am trying out the overlay feature. I have set the NIX_PATH component nixpkgs-overlays to a directory with a subdir named "local", which contains a default.nix. It seems that this is not evaluated or added to the package set correctly. Is there a way to debug that?
<icetan>
bennofs: is there some way to configure locale in a sandbox or how does that work?
<pierron>
zimbatm[m]: Are you using the rust-overlay?
<pierron>
zimbatm[m]: or just documenting it after the reddit question?
i_rony|nb has joined #nixos
<zimbatm[m]>
pierron: it came up during our last hackday so I documented it
<zimbatm[m]>
this time we had more than 5 people :)
<zimbatm[m]>
doubled it :p
<pierron>
Nice :)
marsam has joined #nixos
<pallav>
Is the rust (programming language) package broken?
<pallav>
nix-shell -p rust gives me error
<pallav>
` cannot coerce a set to a string`
jsgrant- has quit [(Ping timeout: 246 seconds)]
<bennofs>
pallav: try -p rust.rustc
<pierron>
pallav: rust is a set of packages, which contains rustc, and cargo if I recall correctly.
mkoenig has quit [(Ping timeout: 240 seconds)]
mogria has quit [(Ping timeout: 260 seconds)]
<Baughn>
It would be nice if nix-shell was smarter about that, at least in interactive mode.
<Baughn>
It's a set? Let's show a menu.
ThatDocsLady is now known as ThatDocsLady_afk
<pallav>
oh. This is the first time I've encountered this. For the next time, how do I get the hint that something like this is the case?
<Baughn>
The "cannot coerce" error is your hint.
<pierron>
Baughn: nixos-option does that, but nixos-option is a big pile of sed hacks I made.
<gchristensen>
"a set"
<pallav>
I mean, how do I get the correct names of packages?
<pallav>
nevermind. I see it in all-packages.nix
<pallav>
thanks :)
<pierron>
pallav: nix-instantiate --eval '<nixpkgs>' -A rust ?
mkoenig has joined #nixos
<Baughn>
nix-repl '<nixpkgs>'
<Baughn>
Then use tab completion. :)
marsam has quit [(Remote host closed the connection)]
<pallav>
Baughn: thanks! that's a much better method
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to release-17.03: https://git.io/vy9Gp
<NixOS_GitHub>
nixpkgs/release-17.03 b86fd7d Joachim Fasting: travis: send emails iff commit caused the build to start failing...
peterhoeg has joined #nixos
marsam has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 1 new commit to master: https://git.io/vy9Zi
<NixOS_GitHub>
nixpkgs/master 504b596 Dan Peebles: pythonPackages.pathspec_0_5: init...
jensens has quit [(Quit: Leaving)]
<contrapumpkin>
niksnut: I was thinking of factoring out the "sandboxing" logic into a separate file (build.cc is getting enormous), where it can do different things on Darwin and Linux and expose a few common options between the platforms. Make sense?
<icetan>
bennofs: woho! fixed it by just explicitly setting the encoding in getBytes()
spacekitteh has quit [(Ping timeout: 264 seconds)]
<steveeJ>
pierron: thanks, I'll have a look. on first sight it's using wrapCC which is possibly (?) not the same as wrapGCC
<steveeJ>
I'm extremely confused by localSystey, system, platform, targetPlatform
<bennofs>
What is the reasoning for super.callPackage to take deps from self in the all-packages fixpoint?
sellout- has joined #nixos
<gchristensen>
bennofs: bear with me if this is wrong, but I think it is so you can override packages in the callPackage call
<bennofs>
gchristensen: well, wouldn't it better if you just used self.callPackage ?
<bennofs>
seems more logical to me
* gchristensen
is out of his league
mckeankylej has joined #nixos
spacekitteh has joined #nixos
<mckeankylej>
I switched from NixOS to macos and now when I try to build my packages I sometimes get ssl cert errors like this one: http://lpaste.net/3304130315181621248 does anyone know how to fix this?
tommyangelo_ has quit [(Ping timeout: 240 seconds)]
odi has quit [(Read error: Connection reset by peer)]
<mckeankylej>
nixy: i dont see a way to fix my stuff in that issue. The problem is when I use fetch-git not when I run git pull on the command line
peterhoeg has quit [(Remote host closed the connection)]
systemfault has joined #nixos
deepfire` has joined #nixos
Acou_Bass has quit [(Ping timeout: 240 seconds)]
Acou_Bass has joined #nixos
willingc has joined #nixos
<deepfire`>
has anyone ever successfully used 'sar' on NixOS?
deepfire` is now known as _deepfire
<periklis>
django_guardian.nix breaks currently nipkgs master eval
proteusguy has quit [(Ping timeout: 258 seconds)]
<nixy>
mckeankylej: I believe that issue also applies to curl using the wrong SSL certificates, which seems to be the issue you are running into
freusque has quit [(Read error: Connection reset by peer)]
jsgrant- has joined #nixos
i_rony|nb has quit [(Ping timeout: 258 seconds)]
tommyangelo_ has joined #nixos
<wrl>
is there any documentation about recommended partitioning setup for nixos?
<wrl>
installation guide basically punts on that entire section
<icetan>
now some other build in hydra is getting aborted constantly
<goibhniu>
hi wrl, I don't think there's anything special about NixOS in that regard
<gchristensen>
wrl: EFI? /boot, and a /. not EFI? /
<icetan>
ghc-7.4.2-binary
<goibhniu>
wrl: if you want to have a separate /boot then you probably want it larger than normal
<mckeankylej>
nixy: the problem actually turned out to be emacs not sourcing the my ~/.profile
* goibhniu
doesn't see the point in having it in a separate partition, personally
<gchristensen>
goibhniu: I think EFI requires it be?
<icetan>
Status is "Aborted: no source" then "Aborted: protocol error processing standard error" and so on
<goibhniu>
oh! that's a great reason :D
* goibhniu
hasn't used EFI
<gchristensen>
yeah, I think it has to be FAT16 or something
<gchristensen>
so unless you want / to be FAT
<goibhniu>
lol
<wrl>
i'll do EFI with luks
freusque has joined #nixos
<wrl>
should be ok
takle has joined #nixos
<goibhniu>
ah, wrl ... I thought I recognised your nick ... we met at the linux audio conf a few years back ... hi!
freusque has quit [(Quit: WeeChat 1.7)]
griff_ has joined #nixos
mckeankylej has quit [(Quit: Page closed)]
uralbash has quit [(Ping timeout: 240 seconds)]
<wrl>
goibhniu: ah yeah we did!
<wrl>
i'm finally getting around to playing with nix :)
<wrl>
been an arch guy forever
<goibhniu>
awesome \o/
<periklis>
welcome
<wrl>
thanks
mogria has quit [(Remote host closed the connection)]
<wrl>
ok after i mount the nixos root to /mnt do i need to mkdir /mnt/boot && mount /dev/the/boot/device/node /mnt/boot ?
<wrl>
or no
freusque has joined #nixos
systemfault has quit [(Quit: Bye!)]
<goibhniu>
that's right
<goibhniu>
(you do need to mount /mnt/boot)
<wrl>
ok
journal has joined #nixos
<wrl>
"You must set the option boot.loader.grub.device to specify on which disk the GRUB boot loader is to be installed. Without it, NixOS cannot boot."
Kendos-Kenlen has quit [(Quit: Konversation terminated!)]
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
exarkun has quit [(Read error: Connection reset by peer)]
<maurer>
Out of curiosity, what's the mechanism by which things make it from nixpkgs master into unstable?
<MoreTea>
@maurer, I guess that all the packages build, and that the nixos tests pass ;)?
<maurer>
Sure, but I mean like, is it "once a week, take latest version of nixpkgs that passes tests"? or is it a rolling thing where as soon as a new revision passes it updates, or?
<goibhniu>
maurer: it's automatic/rolling
systemfault has quit [(Quit: Bye!)]
<wrl>
LnL: haha, that doesn't work
<contrapumpkin>
maurer: hydra builds, and if a certain set of jobs passes, it updates the channel
<wrl>
"the option value [...] is not a package"
willingc has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
i_rony|nb has joined #nixos
exarkun has joined #nixos
<contrapumpkin>
niksnut: you have a moment to discuss nix shell vs nix use or whatever the new UI is going to call the two?
marsam has joined #nixos
<FRidh>
looks like its nix run and so far it seems to do exactly the same as nix-shell
batdog has quit [(Ping timeout: 240 seconds)]
<copumpkin>
yeah I just think there will need to be some changes in nixpkgs to support the one that's not like nix-shell
<FRidh>
need agreement on what is expected in each case and what not. E.g., you don't want to have SOURCE_DATA_EPOCH=1 with `nix run`
marsam has quit [(Remote host closed the connection)]
marsam has joined #nixos
<copumpkin>
yeah, this ties into my questions about PYTHONPATH and JAVA_HOME if you saw those on the tracker
<copumpkin>
some hooks are useful for everyone, whereas others are useful only for build environments
<copumpkin>
and we should have a discipline for separating them out
<bennofs>
should we perhaps call the not-like-nix-shell one differently?
ryanartecona has quit [(Quit: ryanartecona)]
<bennofs>
or will there be a nix shell that is exactly-like-nix-shell ?
<copumpkin>
yeah I think there will be one that behaves like today
<copumpkin>
which is mostly for debugging nix builds
<copumpkin>
that one will presumably also adopt the same sandboxing machinery as a proper nix build
<bennofs>
copumpkin: what do you think about just adding a .env attribute to every derivation that does stuff in the shell hook to setup a dev environment?
<copumpkin>
then another one that's more user-oriented
<bennofs>
like Haskell pkgs currently have
<copumpkin>
which allows you to use zsh and other crap
<bennofs>
copumpkin: or perhaps we could just add another attribute to derivations, like dev-hook or something, that would be sourced by nix run to setup PYTHONPATH, GHC packages, JAVA_HOME etc
<bennofs>
copumpkin: kinda like setup-hook just for interactive use
adfaure has joined #nixos
<copumpkin>
yeah, perhaps
<copumpkin>
just want some sort of standard
<copumpkin>
so that nix-shell can use it, but so can systemd services
<copumpkin>
I've been bitten a fair bit by setting systemd.services.foo.path = [ package ]
<bennofs>
copumpkin: oh you want it for systemd services as well? hmm
<FRidh>
Indeed, the PYTHONPATH hook should only be used for nix-shell and not nix use. That means you cannot use `nix use -p python python.pkgs.numpy` but only `nix-use -p 'python.withPackages(ps: [ps.numpy'])'`
<copumpkin>
only to find that package doesn't work sensibly if it can't run its hook
dhess2 has joined #nixos
<copumpkin>
like a lot of java programs care about the JAVA_HOME
<copumpkin>
but it won't get set if you just do systemd.services.foo.path = [ openjdk ];
<bennofs>
copumpkin: those packages should be wrapped IMO
<copumpkin>
that isn't enough
<bennofs>
copumpkin: because the hook isn't run when you nix-env it either
<copumpkin>
oh true, I never use nix-env :P
<FRidh>
:)
<copumpkin>
so I largely pretend it doesn't exist
<bennofs>
copumpkin: the right solution in that case is to wrap the executables in scripts that set JAVA_HOME or PYTHONPATH (although that has a few other problems)
<copumpkin>
sure, but in some cases it's just someone running java inside the service script
<bennofs>
copumpkin: hmm, but since running `java` itself does not require you to set JAVA_HOME (does it?) then I don't see why we should set JAVA_HOME automatically?
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
digitus has joined #nixos
<bennofs>
copumpkin: I think it's not properly defined where we should end here. Should we also set PKG_CONFIG_DIRS ?
lsix has quit [(Quit: Konversation terminated!)]
simendsjo has joined #nixos
dhess2 has quit [(Ping timeout: 264 seconds)]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vy9P0
<wrl>
hey, I'm trying to set `users.mutableUsers` to false and nixos-rebuild switch is saying "Neither the root account nor any wheel users has a password or SSH authorized key"
<wrl>
but, in fact, both root and the one user in wheel have passwords set
phaebz has joined #nixos
<bennofs>
wrl: did you set the passwords in configuration.nix?
<wrl>
bennofs: I set them with passwd
<wrl>
how do I move those into configuration.nix?
<wrl>
if that's what I need to do
<bennofs>
wrl: I think with mutableUsers = false, you cannot use passwd
<bennofs>
wrl: see users.<name>.hashedPassword option
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-16.09: https://git.io/vy9Mq
<NixOS_GitHub>
nixpkgs/release-16.09 fcec887 Daniel Brockman: jshon: fix null termination in read_stream....
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vy9Ms
<NixOS_GitHub>
nixpkgs/release-17.03 112e07c Daniel Brockman: jshon: fix null termination in read_stream....
revtintin has quit [(Ping timeout: 268 seconds)]
ambro718 has joined #nixos
<wrl>
hey is there a quick way to delete old generations? i've done "nix-collect-garbage -d" but the old generations are still showing up in the bootloader
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vy9Dp
<FRidh>
copumpkin: well, occasionally things go there so they're build by a Hydra, and if all goes well it goes into master :)
<copumpkin>
oh I thought it was the python3-by-default branch :)
mudri has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.03: https://git.io/vy9Sh
<NixOS_GitHub>
nixpkgs/release-17.03 3879491 Will Dietz: timewarrior: patch to install all themes; use default install target....
MoreTea has quit [(Quit: Leaving)]
<FRidh>
copumpkin: ahh no, I'm not working on that anymore.
<sphalerite>
Anyone know anything about getting printing working? I've tried just enabling services.printing and plugging in my USB printer, but lpstat/lpinfo don't seem to list the printer.
<eacameron>
Has anyone tried using VS code with Haskero on NixosL
<eacameron>
?
<fpletz>
sphalerite: you can configure cups for example using its web interface at http://localhost:631/
<sphalerite>
oh never mind there it is
<sphalerite>
oh, sweet. Thanks fpletz
ThatDocsLady_afk is now known as ThatDocsLady
periklis has quit [(Ping timeout: 264 seconds)]
<wrl>
what's the preferred way to install rust on nixos?
<wrl>
I'm not seeing a package for rustup, but the rustc package is very old
<symphorien>
I have heard about a dedicated overlay
FRidh has quit [(Ping timeout: 260 seconds)]
griff_ has joined #nixos
<LnL>
or you can import the one from nixpkgs-unstable
ambro718 has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
phaebz has quit [(Remote host closed the connection)]
dhess2 has joined #nixos
justbeingglad has joined #nixos
ndowens08 has joined #nixos
sivteck has joined #nixos
scealiontach has joined #nixos
k2s has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
_deepfire has quit [(Ping timeout: 256 seconds)]
dhess2 has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
nschoe has quit [(Quit: Program. Terminated.)]
adfaure has quit [(Remote host closed the connection)]
danharaj has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
DutchWolfie has joined #nixos
DutchWolfie has quit [(Changing host)]
DutchWolfie has joined #nixos
<scealiontach>
Hi, anyone have any experience with setting up channels? google has not been particularly helpful.
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vy9dR
<NixOS_GitHub>
nixpkgs/master f28fe4c Antoine Eiche: pythonPackages.pycassa: init at 1.11.2...
georges-duperon has quit [(Ping timeout: 240 seconds)]
<scealiontach>
what i mean is not using the existing channels, but setting up new ones.
willingc has joined #nixos
jophish has quit [(Quit: Lost terminal)]
jophish has joined #nixos
pie__ has joined #nixos
goibhniu has quit [(Ping timeout: 246 seconds)]
k2s has quit [(Ping timeout: 240 seconds)]
<scealiontach>
is it just all the activities covered in nixos/lib/make-channel.nix or is there more?
marsam has quit [(Remote host closed the connection)]
<tjg1>
I've been having issues with random freezes on a desktop system during heavy I/O on a dm-crypt partition. Disabling rngd seems to have remedied the problem. Not sure if I should open an issue, how to reliably test this or what information would help reproduce this.
mudri has joined #nixos
cpennington has quit [(Remote host closed the connection)]
griff_ has quit [(Quit: griff_)]
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
odi_ has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
griff_ has joined #nixos
<dhess>
Has anyone ever put together an out-of-repo "haskell-packages-lts-N" package that tracks Stackage LTS releases other than N == latest?
<dhess>
Or even some tooling that will automatically generate such a set?
takle has quit [(Remote host closed the connection)]
<dhess>
bennofs: Oh that looks very interesting
<dhess>
probably even better than an LTS-tracking repo
<bennofs>
dhess: i haven't tested it for older LTS versions, but for a relatively recent one, I was able to get 100% of the packages working on local hydra with only configuration-nix overrides
<bennofs>
dhess: currently, there is no support in nixpkgs for overriding the package set to use (i.e. the "hackage-packages.nix" file)
dhess2 has joined #nixos
<bennofs>
dhess: so you'll probably have to write a file like the default.nix file in haskell-modules yourself to use it
willingc has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<dhess>
bennofs: primarily I would want to use this to build packages that I'm maintainig myself anyway, out of the nixpkgs tree; i.e., I have a project with a .cabal file and want to test the project against various LTS builds.
<dhess>
bennofs: so this looks like it would fit the bill for that, no?
<dhess>
Basically, it builds a default.nix for me, right?
ndowens08 has quit [(Ping timeout: 264 seconds)]
marsam has joined #nixos
<bennofs>
dhess: it builds the equavilent of hackage-packages.nix
periklis has joined #nixos
<bennofs>
dhess: you still need to do some wiring up to construct the fixpoint. Let me check if I can find the sample I used for my tests
<dhess>
bennofs: hmm, I will build this and try it on one of my projects
<dhess>
it's disappointing that automagic LTS tracking was removed from Nixpkgs and nothing has risen up to replace it. On the other hand, I guess that shows that the automagic LTS tracking wasn't that vaulable to people to begin with.
<dhess>
and/or was frighteningly difficult to maintain
<bennofs>
dhess: some stuff there is unnecessary, I only had to do it to avoid having packages for unsupported platforms in the output (passthruUnsupported and dependencies)
<bennofs>
dhess: stackage2nix will generate configuration-set.nix and what is called lts-7.16.nix in that example
JagaJaga has joined #nixos
<dhess>
bennofs: I see. So then you pass this expression to ghcWithPackages in your config.nix when instantiating an environment?
proteusguy has joined #nixos
<bennofs>
dhess: oh, I might have omited ghcWithPackages from that one
<bennofs>
i really just used it as a hydra jobset
<bennofs>
dhess: btw, do you want the behaviour as currently in nixpkgs, where for packages that are not part of stackage it uses the latest version on hackage?
willingc has joined #nixos
<dhess>
bennofs: Ideally it would use the version bounds in the cabal file, if present. If not, then sure, latest would be fine.
<bennofs>
dhess: then it might be easier to just use the script that generates the set in nixpkgs, as is already based on stackage
<dhess>
bennofs: I'm not entirely sure how I would use this yet, but I'll give it a try later.
<dhess>
bennofs: where is that script?
<bennofs>
dhess: it's in standard cabal2nix, basically, you run update-stackage.sh from the cabal2nix repo and then hackage2nix i think
<dhess>
bennofs: sure but it only uses latest LTS, right?
<bennofs>
dhess: you can easily change that to another lts verson though
ugjka is now known as Lahey
katyucha is now known as Guest42574
katyucha_ is now known as katyucha
Lahey is now known as ugjka
<dhess>
bennofs: Hmm. This is not meant to be snarky, though it may sound like it, but if it's so easy to change it to support different LTS versions, any idea why that hasn't already been done? :)
<bennofs>
dhess: perhaps it has been done but because it's so easy there is just no "offical" support for it?
mudri has quit [(Ping timeout: 240 seconds)]
<bennofs>
dhess: a problem could be that some overrides in nixpkgs may be wrong for older lts versions. also you might need to change the ghc version. etc
<bennofs>
just lots of little things probably
<dhess>
bennofs: yeah that's true
marsam has quit [(Remote host closed the connection)]
<bennofs>
dhess: it would probably need some polish to make it official, right now it's more like "run this then this and edit this file and add this override"
<dhess>
bennofs: basically what I'm looking for is a way to take a Haskell project, with a single .cabal file, and create a default.nix for it that will pin the Haskell package versions, automatically.
<dhess>
bennofs: it *used* to be official ;)
<bennofs>
dhess: if that's the case, you could just pin the nixpkgs version
<dhess>
bennofs: No, not if nixpkgs never contained the entire set of dependencies I wanted
<bennofs>
ah, so you want to pin a specific version
<dhess>
yes.
<dhess>
I want to say, here are the versions of each dependency that I *know* work, and do not ever change them.
<dhess>
(until I change them myself)
<bennofs>
dhess: yeah, so I think the most reliable way would be to check out a nixpkgs that is closest to your wanted version, and then regenerate the "hackage-packages.nix" file
<bennofs>
(with hackage2nix and update-stackage.sh)
<dhess>
bennofs: right, hence the "ugh" factor.
georges-duperon has joined #nixos
<bennofs>
dhess: do you have a stack.yaml in your project?
<dhess>
bennofs: Most of them do. And when they do, often several, for each LTS set I support.
<dhess>
generally whatever is the latest for a particular GHC version (say, 8.0.1, 8.0.2, 7.10.3, 7.8,4, and maybe 7.6.3)
<bennofs>
dhess: and you want to generate nix expressions for usage with hydra I suppose? (just gathering some infos here for future use cases of some tools)
<dhess>
bennofs: I could use Stack of course, but I prefer to use Nix. In the past, when Nix supported LTS package sets, Nix could get me close enough (i.e., "yes, this builds successfully") to the point that I was comfortable commiting the changes in git. Then Travis-CI would take over and do the actual Stack builds as a final vetting step.
<dhess>
bennofs: Eventually, yes. I haven't set up a Hydra yet but it's not too far out now.
<bennofs>
dhess: so why you're using Nix in this case? (not to say that you shouldn't!)
<dhess>
bennofs: because it's easier to use one environment than two.
<dhess>
bennofs: see above. I *do* use Stack, just not on my local machine, if I can help it.
<dhess>
only for the integration tests.
<bennofs>
dhess: yeah. why would using Stack on your local machine be two environments? Sorry if I'm missing the point here
<bennofs>
dhess: for example, could use stack on your local machine if stack had a "nix backend", basically creating nix expressions for the package version choice that it decided upon?
<bennofs>
because there's also been some talk about such a tool
<dhess>
bennofs: my workflow is, "nix shell" in the project directory, make changes, build, test, etc. Generally speaking I'm on nixpkgs unstable for that development because I want the latest/greatest.
<dhess>
bennofs: once that's working, I want to test older LTSes for compilers I still support but don't use personally.
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vyHJo
<NixOS_GitHub>
nixpkgs/master b13f408 Vincent Laporte: pythonPackages.pycassa: fix evaluation
<dhess>
I don't want to use nix for the GHC 8.0.2 development and then switch to Stack for the older GHCs.
<bennofs>
dhess: ah the alternative would be to use stack for everything, and don't use nix-shell at all
<dhess>
bennofs: yes, and I don't want to do that, since I use Nix for literally everything else on my system.
marsam has joined #nixos
<bennofs>
ah, that's what I was missing, thanks :)
<dhess>
I only support Stack at all because so many others use it. Personally, I don't (and don't want to because Nix is much better.)
<chris|>
is there any way I can define a systemd task that is not started by default but also not masked?
<dhess>
bennofs: ok good :)
<bennofs>
chris|: don't have it be dependend upon by anything?
mudri has joined #nixos
<dhess>
bennofs: If Stack were *just* a better Cabal and could be taught to use the packages I've already built in my /nix/store, then I would probably switch. But until it can be taught to use those packages, I don't plan to use it for my own work.
<bennofs>
dhess: so it's just about caching?
<bennofs>
dhess: that could be solved with a nix backend for stack
<dhess>
bennofs: No, also about dependencies on non-Haskell bits.
<dhess>
bennofs: in fact that is the primary reason; caching is secondary.
<bennofs>
dhess: yeah, that would be included in the idea. the advantage of using stack as the "frontend" for building haskell packages with nix is that some of the tooling that works with stack should "just work"
<dhess>
bennofs: basically, the "100% reproducible builds" bit.
<bennofs>
dhess: basically, I'm imagining a tool that just encodes whatever stack would do (stack generates a build plan where it decides to install package foo-1.0 etc) as nix expressions and then uses nix to perform the build. since the nix-expression generation can work with cabal2nix, it'll take all native deps from nixpkgs as well
<dhess>
bennofs: If Stack could rely on Nix for the non-Haskell bits, I would be more inclined to use it.
<dhess>
bennofs: yes, I would use that I think.
<dhess>
bennofs: that would be lovely. I don't get the impression that FPC is at all interested in that, though.
<bennofs>
the only problem with that is it won't help people who want to use hydra or nixpkgs
<bennofs>
s/nixpkgs/nixops I meant
<dhess>
bennofs: well I also use NixOps... but when I'm doing that, I don't care about supporting all the other GHC versions, or even different package sets. In those cases, as long as it builds and works properly, the Nixpkgs haskellPackages is fine.
<dhess>
these are completely different workflows for me. One is basically my role as Haskell package maintainer, and the other is my role as user of that package for my own machines.
<bennofs>
dhess: it's a problem with hydra though
<bennofs>
it could work with recursive nix perhaps, running stack with nix backend as part of a nix build
<dhess>
bennofs: I'm not using Hydra yet so I haven't encountered that. I guess my point is that I could use this imaginary Stack-based tool for interactive development, and standard Nix+Hydra-compatible tools for NixOps deployment.
<dhess>
I don't particularly care if the NixOps deployment has to re-build everything
<dhess>
bennofs: regardless, a Stack that produces Nix expressions with the proper versions wired-in would be fantastic.
scealiontach2 has joined #nixos
<bennofs>
dhess: i don't think it would actually produce a nix expression visibly, just use some in the background with that approach. For example, I would let stack deal with checking out git dependencies etc and then just use local path deps to the checked out path
<bennofs>
dhess: at least that would be much easier to integrate into stack
MP2E has joined #nixos
odi_ has quit [(Ping timeout: 260 seconds)]
scealiontach has quit [(Ping timeout: 246 seconds)]
<dhess>
bennofs: Are you a Stack developer/contributor?
scealiontach2 is now known as scealiontach
mudri has quit [(Ping timeout: 256 seconds)]
<bennofs>
dhess: not yet :) I have looked at the code a bit to see how it operates. I think I got stuck trying to figure out how it deals with the hfsevents/inotify issue on mac vs linux
<chris|>
bennofs: I guess that'll work, thanks
<chris|>
btw. is there a way to declare requirements to services as types instead of strings?
cmsky has joined #nixos
<bennofs>
chris|: i don't think there is
<cmsky>
hello, any people set up an android development environment with nix?
<cmsky>
i'm wondering how to "accept the license"
willingc has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<chris|>
bennofs: shame, so much for getting rid of typos ;)
ivan has joined #nixos
<steveeJ>
I seem to be missing something in the nix-env manpage: if default.nix has an attribute A which is a derivation, how can I install it using $PWD/default.nix ?
<steveeJ>
note that default.nix does not evaluate to a nixpkgs set if imported
<bennofs>
steveeJ: nix-env -f default.nix -A 'A' ?
<dtzWill>
steveeJ: nix-env -f $PWD/default.nix -A A ?
<ndowens08>
just love how oh-my-zsh says I dont have zsh installed
<samae>
: )
<samae>
how did you install it?
<LnL>
lol
<ndowens08>
i tried through repo, but doesnt seem to make any difference; install script from the site gives that error; and if you are referring to zsh itself, it was done though configuration.nix
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
dhess2 has joined #nixos
dhess2 has quit [(Ping timeout: 246 seconds)]
periklis has quit [(Ping timeout: 256 seconds)]
Tsutsukakushi has left #nixos ["WeeChat 1.6"]
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #23963: irker: init at 2017-02-12 (master...feature/irkerd) https://git.io/vyHln
<dtzWill>
weeee
hiratara has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub>
[nixpkgs] benley opened pull request #23964: nixos: nix snowflake logo for the nixos manual launcher (master...nixos-manual-launcher) https://git.io/vyH8A
hiratara has joined #nixos
<Yaniel>
aww, the talos principle won't run with the vulkan renderer on nixos :(
justbeingglad has left #nixos []
<benley>
really? I think it works for me
* benley
checks
<Yaniel>
it fails to find any ICD here, presumably because the chroot doesn't contain vulkan-loader
* benley
curses the slow-ass hard drive containing his steam library for its slowness
<benley>
you're right, it fails. Turns out I had it in opengl mode before.
<benley>
definitely appreciate it offering to start in Safe Mode after that failure
<andymandias>
is there anyone around that's got cups working properly?
<andymandias>
I'm unable to see any printer I've set up, browsing true, listenAddresses set, and defaultShared true
<andymandias>
looking at journalctl gives this message: cupsd[9389]: DNS-SD registration of "Dymo LabelWriter Twin Turbo @ kouan9ka" failed: Not permitted
<andymandias>
which only leads me, so far, to someone with the same problem with no apparent solution
<clever>
steveeJ: the runcommand you linked, will run the commands in "", which will fail to produce $out, its designed for use with nix-shell, which doesnt actualy run them
<clever>
steveeJ: that allows routing a complex set of buildInputs into nix-shell
proteusguy has quit [(Ping timeout: 258 seconds)]
systemfault has joined #nixos
systemfault has quit [(Client Quit)]
<steveeJ>
clever: thanks! I did understand it a while later when looking more into runcommand
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vyHz6
<ndowens08>
bennofs: that will be nice, when i am packaging sometimes i can figure it out but not always
digitus has quit [(Quit: digitus)]
<bennofs>
ndowens08: it's becoming ready, just missing some documentation and some output niceties now
mizu_no_oto has joined #nixos
<NixOS_GitHub>
[nixpkgs] ndowens opened pull request #23967: umockdev: init at 0.8.13 (master...umockdev) https://git.io/vyH2M
danielrf has quit [(Ping timeout: 260 seconds)]
<Yaniel>
ndowens08: mind taking another look at my renderdoc PR?
<ndowens08>
Yaniel: yeah will in a lil
Havvy has quit [(Read error: Connection reset by peer)]
<Yaniel>
awshum
gridaphobe has quit [(Ping timeout: 252 seconds)]
gridaphobe has joined #nixos
dbmikus has quit [(Ping timeout: 260 seconds)]
systemfault has joined #nixos
<ndowens08>
Yaniel: added a few comments, though I can't actually approve it though
<Yaniel>
hmm urls don't need to be quoted like strings?
<ndowens08>
Yaniel: yeah i didn't know that before either, but reviewer pointed that out to me once before
<ndowens08>
on one of my pkgs
<ndowens08>
which it makes it a little easier to highlight and go to the homepage when I am going through the repo updating packages :)
<Yaniel>
okay, that's a quick fix anyway
marsam has quit [(Remote host closed the connection)]
<ndowens08>
yep. Mostly I look at things that can be cosmetic improvements, and maybe other things if there is a better way, in which I am still fairly new to this myself
dhess2 has joined #nixos
willingc is now known as willingc_away
AllanEspinosa has joined #nixos
<ndowens08>
compiled and ran fine as far as I can tell atleast :)
<Yaniel>
if you can launch some modern gl or vulkan app and capture a frame then that's basically all it is supposed to do
erasmas has quit [(Quit: leaving)]
<Yaniel>
(okay and inspecting said capture)
rui1 has quit [(Quit: WeeChat 1.5)]
<Yaniel>
I used sasha willems's vulkan examples and some of my gl projects for testing