<clever>
gchristensen: it seems simple enough to try changing things and see if it builds, somebody just needs to invest some cpu hours to try building it
<dhess`>
I'm using the Debian bindist so what I've done won't work for Darwin.
<gchristensen>
clever: if you send me a .patch, I'll run the tests
<NixOS_GitHub>
[nixpkgs] eqyiel opened pull request #25844: sift: fix build for darwin (master...master) https://git.io/v9AWD
NixOS_GitHub has left #nixos []
Ross has quit [(Read error: Connection reset by peer)]
nallar is now known as Ross
mbrgm has quit [(Ping timeout: 240 seconds)]
darlan has quit [(Ping timeout: 240 seconds)]
mkoenig has quit [(Read error: Connection reset by peer)]
mbrgm has joined #nixos
vaibhavsagar has quit [(Remote host closed the connection)]
derjohn_mob has quit [(Ping timeout: 272 seconds)]
vaibhavsagar has joined #nixos
mkoenig has joined #nixos
eacameron has joined #nixos
nslqqq has quit [(Ping timeout: 240 seconds)]
zeus_ has quit [(Ping timeout: 272 seconds)]
johnramsden has joined #nixos
derjohn_mob has joined #nixos
acarrico has quit [(Quit: Leaving.)]
matthewbauer has joined #nixos
mizu_no_oto has joined #nixos
johnsonav has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
<johnramsden>
With the function map, as it's described in the manual, it shows map taking in a list and outputting another list with each list element transformed by whichever function was mapped over it. Is there an equivalent function which takes in a list and creates a set from each element? I want to 'map' a function over a list but I don't want my result to end up in a list. I'm not sure if this makes any sense the way I'm describing it.
<johnramsden>
Basically I want to do this (pseudocode):
<johnramsden>
There's probably a way to do this I'm not thinking of, I basically want to replicate a for loop...
<ToxicFrog>
johnramsden: Nix sets are collections that map keys to values; what are the values in your proposed output?
johnw_ has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
Or, if the transformed elements are the values -- what are the keys?
<ToxicFrog>
(I don't know why they're called sets in nix; they aren't sets, they're maps)
johnw__ has joined #nixos
<gchristensen>
johnramsden: like you want { element1 = {}; element2 = {} }; out the other end?
filterfish has quit [(Ping timeout: 246 seconds)]
<johnramsden>
I want to input a list of ZFS mount points, eg [ "/" "/var" ] and output filesystems = { device = ${dataset}${mountpoint}"; fsType = "zfs"; }; but do this for each list element.
<gchristensen>
what is dataset and mountpoint, when you only have "/var" ?
<clever>
johnramsden: i believe the fileSystems attr in nix supports a list
Raimondii has joined #nixos
<johnramsden>
gchristensen: Sorry?
<gchristensen>
filesystems = { device = ${dataset}${mountpoint}"; fsType = "zfs"; }; <- 1. this isn't valid nix, 2. can you describe where dataset and mountpoint come from?
takle has quit [(Remote host closed the connection)]
<johnramsden>
Whoops, meant filesystems = { "${listElement} = { device = ${dataset}${mountpoint}"; fsType = "zfs"; } }; where listElement is from the list I'm maping over. Dataset and mount Point are just variables i'm using.
<johnramsden>
clever: Ill take a look
<clever>
johnramsden: pushed a change, i think it does what you want now
<clever>
johnramsden: the type is set to loaOf, list of attribute something something
matthewbauer has quit [(Ping timeout: 260 seconds)]
justanotheruser has quit [(Ping timeout: 268 seconds)]
<clever>
johnramsden: and line 28, it will call coreFileSystemOpts and pass it the key "/" and config {device="/dev/sda1; fsType="ext4";} for each filesystem
matthewbauer has joined #nixos
<clever>
johnramsden: and line 62 sets the default mountPoint to the key, "/"
<clever>
but if you pass it a list, it has no key, so you need to set mountPoint directly
nh2 has quit [(Quit: Leaving.)]
<clever>
on second thought, i think the nixos option framework will silently invent keys, fileSystems.unnamed-1.1.fsTtype
<clever>
so the list items just silently turn into attributes, unnamed-1, and so on
<clever>
and since unnamed-1 isnt a valid mountPoint, a new one has to be set
justanotheruser has joined #nixos
<johnramsden>
I see
lambdamu_ has joined #nixos
<clever>
johnramsden: oh, line 63 is neat
<clever>
if the fsType is one of the special ones, device defaults to fsType
<clever>
so if you give it { mountPoint="/proc"; fsType="proc"; }
<clever>
it will add a device="proc"; for you
<johnramsden>
Interesting
<Ralith>
Is there a way to get a version of a multi-output package that isn't split up?
lambdamu has quit [(Ping timeout: 240 seconds)]
<gchristensen>
like, un-split it?
<clever>
johnramsden: oh, line 119, if you try to set autoResize=true on an entry, it just adds "x-nixos.autoresize" to the options list instead
<Ralith>
gchristensen: right
<Ralith>
I can explicitly use buildEnv of course but that feels silly
<clever>
Ralith: you could maybe make an override that sets outputs=["out"];
<Ralith>
what kind of override
<Ralith>
there are so many
takle has joined #nixos
<clever>
overrideAttrs
<clever>
johnramsden: something else that i see a lot of people overlook is like 215
<clever>
johnramsden: boot.supportedFilesystems will default to every fsType listed in fileSystems
<johnramsden>
K, so I can get rid of it?
takle has quit [(Ping timeout: 260 seconds)]
<clever>
yeah
<clever>
about the only time i need supportedFilesystems is when i want to add nfs support
<clever>
but even then, systemd doesnt like it when i manualy mount nfs
<clever>
it shuts the network off before trying to umount, and then its literaly imposible to shut off properly
<clever>
so you need to add nfs to the nixos config, and then supportedFilesystems isnt required again
sellout- has joined #nixos
simukis_ has joined #nixos
takle has joined #nixos
hexagoxel has quit [(Ping timeout: 246 seconds)]
takle has quit [(Ping timeout: 246 seconds)]
ryantrinkle has quit [(Ping timeout: 260 seconds)]
hexagoxel has joined #nixos
georges-duperon has quit [(Ping timeout: 246 seconds)]
Piece_Maker has joined #nixos
Acou_Bass has quit [(Ping timeout: 272 seconds)]
Piece_Maker is now known as Acou_Bass
<johnramsden>
clever: What would you do about the fact that once you've already defined any file system somewhere else you cannot add anymore due to "error: attribute ‘fileSystems."/"’ at /etc/nixos/system/boot/filesystems.nix:26:3 already defined at ..."
inflames has joined #nixos
<clever>
johnramsden: need to either use 2 files and imports, or switch them all over to a list
<johnramsden>
clever: Right, I see now. I didn't realize it was an actual option in file systems. So in fileSystems.<name?> does the name not actually matter? And if you don't have a mount point it just defaults to whatever name you have put there? For example the default that is made by the hardware setup gives you fileSystems."/" = { device = "vault/sys/atom/ROOT/17.03";
<johnramsden>
fsType = "zfs"; };
<clever>
johnramsden: you can pass it a list, instead of an attribute set
<clever>
and it will internally treat it like you did fileSystems.unnamed-1 = ....
<clever>
and in either case, you can just set the mountPoint option
<johnramsden>
That makes things easier.
<johnramsden>
Thanks for your help gotta run.
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orbekk opened pull request #25846: lua packages: propagate libs with a setupHook (master...master) https://git.io/v9A0N
NixOS_GitHub has left #nixos []
schoppenhauer has quit [(Ping timeout: 240 seconds)]
schoppenhauer has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
justanotheruser has quit [(Ping timeout: 272 seconds)]
justanotheruser has joined #nixos
matthewbauer has quit [(Ping timeout: 260 seconds)]
cpennington has quit [(Remote host closed the connection)]
<Rotaerk>
boostrap... is that like a jockstrap for ghosts?
acertain has quit [(Max SendQ exceeded)]
<mdash>
Yes exactly like it
acertain has joined #nixos
derjohn_mob has quit [(Ping timeout: 240 seconds)]
acertain has quit [(Ping timeout: 268 seconds)]
radvendii has joined #nixos
<radvendii>
So I have been using haskellPackages.ghcWithHoogle with all the packages I need (in my environment.systemPackages), and that's worked fine so far. Now I need to use matrices though, and for some reason the nix package automatically installs the 'matrices' package, which conflicts with the 'matrix' package that I need. Is it possible to tell nix to not install 'matrices'?
<clever>
Rotaerk: ghc 8.0.2 needs ghc 7.8+ to build
<clever>
Rotaerk: and ghc 7.8.4 needs ghc ghc 7.4.2 to build
<radvendii>
Or is it finally time I learn how to write a god damn shell.nix for my haskell projects
<Rotaerk>
did you mean to address radvendii
<clever>
Rotaerk: and 7.4.2 is currently coming from a tarball on on the haskell site
<Rotaerk>
or are you talking about bootstrapping
<clever>
Rotaerk: yeah
<Rotaerk>
k
<clever>
radvendii: you should be able to write a file like this in shell.nix
<clever>
LnL: you reminded me that stage-1 and some other nearby scripts use something like this
aanderse has quit [(Ping timeout: 246 seconds)]
<clever>
if you already have the bulk of the text in a file (and src could be a writeText, but a bare file is probably simpler)
<clever>
then you can call substituteAll on it
nslqqq has joined #nixos
ChongLi has quit [(Ping timeout: 260 seconds)]
justelex_ has joined #nixos
<rcschm>
clever: second way is way nicer.
<clever>
substituteAll will replace @out@ with the value of $out, and so on
<LnL>
yes the activation scripts are just a nix string with @out@ and then that's used to replace it
<clever>
and everything you put into the attribute set becomes an env variable
takle has joined #nixos
<clever>
simpler then trying to escape everything for an echo
<LnL>
substituteInPlace $out/activate --subst-var out
<rcschm>
works nicely! tks again.
<clever>
LnL: there is also a helper function in nix (not bash), called substituteAll, which just calls the bash version for you
ryantrinkle has joined #nixos
<LnL>
oh yes, forgot about that one
dmi3y has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
rcschm has quit [(Remote host closed the connection)]
aanderse has joined #nixos
ChongLi has joined #nixos
derjohn_mob has quit [(Ping timeout: 260 seconds)]
dhess has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jluttine opened pull request #25849: nikola: init at 7.8.4 (master...add-nikola) https://git.io/v9Aoq
NixOS_GitHub has left #nixos []
radvendi1 has quit [(Ping timeout: 240 seconds)]
johnramsden has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
jensens has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
acertain has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jluttine opened pull request #25850: pythonPackages.cram: mark i686 broken (master...cram-broken-on-i686) https://git.io/v9AoS
NixOS_GitHub has left #nixos []
takle has quit [(Ping timeout: 260 seconds)]
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
ericsagnes has joined #nixos
dmi3y has quit [(Quit: dmi3y)]
vandenoever has quit [(Client Quit)]
vandenoever has joined #nixos
dmi3y has joined #nixos
dmi3y has quit [(Client Quit)]
takle has joined #nixos
freusque has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jluttine opened pull request #25851: nbstripout: fix build on darwin (master...fix-nbstripout-on-darwin) https://git.io/v9A6R
NixOS_GitHub has left #nixos []
derjohn_mob has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
indi_ has quit [()]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
acertain has quit [(Ping timeout: 246 seconds)]
bennofs has joined #nixos
takle has joined #nixos
derjohn_mob has quit [(Ping timeout: 246 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 246 seconds)]
takle has joined #nixos
<jluttine>
i'm a bit confused about lib and stdenv. when i'm writing a package in nixpkgs, when should i use lib vs stdenv.lib and also when stdenv vs lib.stdenv?
nschoe has joined #nixos
_deepfire has joined #nixos
bkchr has joined #nixos
zraexy has quit [(Ping timeout: 240 seconds)]
takle has quit [(Ping timeout: 255 seconds)]
ericsagnes has quit [(Ping timeout: 240 seconds)]
ixxie has joined #nixos
jensens has joined #nixos
bjpbakker has joined #nixos
civodul has joined #nixos
boegel is now known as boegel|afk
jgeerds has joined #nixos
Mateon1 has joined #nixos
<danbst>
jluttine: those should be identical. AFAIK there's no lib.stdenv
takle has joined #nixos
<danbst>
I mean, lib, stdenv.lib and import <nixpkgs/lib> should be same
<jluttine>
danbst: thanks! yep, i meant pkgs.stdenv vs stdenv
<danbst>
jluttine: are you writing some package?
<jluttine>
and then lib vs stdenv.lib vs pkgs.stdenv.lib
<bjpbakker>
Hi, since Firefox is on GTK+ I'm having an issue with the file dialog. I'm not running Gnome, instead I use xmonad with the slim desktop manager. Whenever firefox opens a file dialog, it complains about "Using the 'memory' GSettings backend" and shows a blank screen. Any hints in what I can try to resolve this?
<jluttine>
LnL: yep, thanks, me too
<LnL>
jluttine: the issue there is probably that the tests are using te /bin/sh echo native instead of the binary
oida has joined #nixos
<danbst>
bjpbakker: nixpkgs version?
<LnL>
jluttine: those tests should probably be using printf since that's more stable
acertain has joined #nixos
<LnL>
but ${coreutils}/bin/echo should also work
<jluttine>
LnL: ah, ok! thanks
oida_ has quit [(Ping timeout: 246 seconds)]
<bjpbakker>
danbst: I'm on nixos 17.09pre107265.0afb6d789c
<danbst>
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
<bjpbakker>
danbst: oh so it might be unrelated to why my file dialog is not working
<danbst>
bjpbakker: looks like that. My file dialog is working. perhaps drivers thing?
Wizek has joined #nixos
<bjpbakker>
danbst: I'm running inside VMware fusion, so there's not really any obscure hardware involved afaict
acertain has quit [(Ping timeout: 272 seconds)]
justelex_ has quit [(Read error: Connection reset by peer)]
justelex_ has joined #nixos
<bjpbakker>
danbst: I noticed this issue right after firefox started using gtk3 instead of gtk2 so it might be related to that; I don't have any specific gtk3 packages or configuration, not sure if I need that
<danbst>
bjpbakker: as a blind guess, try switch to awesome WM and see if it works
<bjpbakker>
ok I'll try that a bit later when I got some work done :) will report back. Thanks a lot for helping me
filterfish has quit [(Ping timeout: 260 seconds)]
nadley_ has quit [(Remote host closed the connection)]
leat has quit [(Ping timeout: 255 seconds)]
acertain has joined #nixos
leat has joined #nixos
acertain has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v9A9E
<NixOS_GitHub>
nixpkgs/master 24d4f1a Peter Hoeg: syncthing: 0.14.27 -> 0.14.28
reinzelmann has quit [(Ping timeout: 246 seconds)]
goibhniu1 is now known as goibhniu
pie_ has quit [(Changing host)]
pie_ has joined #nixos
noam__ has joined #nixos
noam_ has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
mudri has joined #nixos
justelex_ has quit [(Read error: Connection reset by peer)]
ixxie has quit [(Ping timeout: 240 seconds)]
filterfish has quit [(Ping timeout: 272 seconds)]
therp has joined #nixos
<therp>
the nixos-unstable channel isn't updated for awhile. I am sure this is known, but I couldn't find the issue tracking this. Does anyone have a link, so I can subscribe there?
MarcWeber has quit [(Ping timeout: 240 seconds)]
justelex_ has joined #nixos
MarcWeber has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
<sphalerite>
therp: presumably just a change that broke some tests. See https://howoldis.herokuapp.com/ for an explanation of how the channel updates
Tucky has quit [(Remote host closed the connection)]
takle has quit [(Ping timeout: 258 seconds)]
ericsagnes has joined #nixos
alx741_ has joined #nixos
alx741 has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
sigmundv has quit [(Disconnected by services)]
sigmundv has joined #nixos
sigmundv has quit [(Disconnected by services)]
vaibhavsagar has quit [(Ping timeout: 246 seconds)]
sigmundv_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] midchildan opened pull request #25852: mikutter: new package (master...mikutter) https://git.io/v9AjZ
NixOS_GitHub has left #nixos []
mkoenig has quit [(Read error: Connection reset by peer)]
ericsagnes has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
<therp>
sphalerite: Presumably yes. I was hoping to find the issue/PR that tracks fixing those tests
filterfish has joined #nixos
Wizek_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/v9xed
<NixOS_GitHub>
nix/master e46090e Eelco Dolstra: builtins.match: Improve error message for bad regular expression...
<NixOS_GitHub>
nix/master f134fc4 Eelco Dolstra: Document that builtins.match takes a POSIX extended RE
NixOS_GitHub has left #nixos []
orivej has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
Wizek has quit [(Ping timeout: 260 seconds)]
leat has quit [(Ping timeout: 246 seconds)]
Tucky has joined #nixos
leat has joined #nixos
Wizek__ has joined #nixos
<jophish>
ls
<jophish>
Does anyone else run ls for no reason from time to time? "switch to terminal, better get my bearings..."
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v9xfb
<NixOS_GitHub>
nixpkgs/master 4a9acbb Jaakko Luttinen: nbstripout: fix build on darwin
<NixOS_GitHub>
nixpkgs/master 4d9ebd3 Frederik Rietdijk: Merge pull request #25851 from jluttine/fix-nbstripout-on-darwin...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/v9xfh
<NixOS_GitHub>
nixpkgs/master e95cb5d Jaakko Luttinen: pythonPackages.cram: mark i686 broken
<NixOS_GitHub>
nixpkgs/master fc2caec Frederik Rietdijk: Merge pull request #25850 from jluttine/cram-broken-on-i686...
NixOS_GitHub has left #nixos []
trikl has joined #nixos
<trikl>
"If you want to allow additional arguments, you can use an ellipsis. This works on any set that contains at least the three named attributes." Why three?
proteusguy has quit [(Remote host closed the connection)]
Infinisil has joined #nixos
<gchristensen>
clever: dang :(
mudri has quit [(Ping timeout: 272 seconds)]
cpennington has joined #nixos
<sphalerite>
jophish: I think the availability of nice autocompletion has reduced my use of ls significantly :D
<danbst>
sphalerite: fish?
Infinisil has quit [(Ping timeout: 260 seconds)]
<sphalerite>
no, zsh. I don't like zsh in general (it's like taking bash and adding even more obscure features) but I didn't know about fish when I made the switch and haven't summoned up the courage to make another switch yet
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] clefru opened pull request #25855: Set virtualisation.libvirtd.qemuOvmf to false as the OVMF closure-siz… (master...qemu-OVMF-on-channels) https://git.io/v9xI0
NixOS_GitHub has left #nixos []
<gchristensen>
LnL: I wonder how much traffic that thing gets :P
<LnL>
yeah same, you didn't setup a request counter or something?
<gchristensen>
nope
<gchristensen>
I'm not sure I even have access logs on the web server
<sphalerite>
It's a shame nobody else seems to care about the open_search.xml bug and I don't have the go wizardry to fix it myself
<gchristensen>
same
<LnL>
yeah I think you'd have to proxy it through nginx or something
mudri has joined #nixos
<gchristensen>
sphalerite: did you report a bug on their issue tracker?
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/v9xGx
<NixOS_GitHub>
nixpkgs/master 8037c5e Tim Steinbach: ammonite: 0.8.4 -> 0.8.5
<NixOS_GitHub>
nixpkgs/master 9379045 Tim Steinbach: Merge pull request #25842 from NeQuissimus/ammonite_0_8_5...
NixOS_GitHub has left #nixos []
<LnL>
that looks a little better, but it that fails with a sandboxing error
jgeerds has quit [(Ping timeout: 240 seconds)]
mattyu has joined #nixos
<qknight_>
i've made a commit to a git repo which is used by my hydra but hydra won't update the git repo. i've tried quite a few things as to restart the queue-runner, admin->clear VCS cache and disabled, reenabled the build target
<qknight_>
anyone ideas?
<LnL>
does starting a manual eval work or is that what you're doing
acertain has quit [(Ping timeout: 268 seconds)]
heichblatt is now known as hke
<LnL>
and for this you want to look at the hydra-evaluator
<qknight_>
LnL: manual eval won't update the git repo either
<qknight_>
LnL: i've now cloned the job-set and in the clone it updated the git repo
<qknight_>
LnL: and then built the software! but why only in the clone?
darlan has joined #nixos
<LnL>
do you see something in the evaluation errors tab?
acertain has joined #nixos
acertain has quit [(Max SendQ exceeded)]
jgeerds has joined #nixos
mudri has joined #nixos
<gchristensen>
this is awkward ... if you delete something out from under nixops it can't handle it
<hke>
Hi folks. I have virt-manager in my environment.systemPackages in /etc/nixos/configuration.nix. When I nixos-rebuild switch, I get "undefined variable _virt-manager_ at /etc/nixos/configuration.nix:45:5". I can find virt-manager with nix-env -qa.. Any ideas?
<gchristensen>
seems I might just abandon this nixops deployment, it is pretty mucked up
<nixy>
Lol I think github's search is borked
<kloix>
garbas_: pypi2nix crashes when installed from nixpkgs-unstable (works when installed from master)
<gchristensen>
nixy: github's search is _usually_ borked, lol. what did you try and search for? do you know about search.nix.gsc.io?
acertain has joined #nixos
<gchristensen>
(I say, when I'm in the middle of potentially breaking search.nix.gsc.io)
<nixy>
gchristensen: I didn't know about that actually. But I meant github's search across everything in all repos
<gchristensen>
ah, yeah
<gchristensen>
it is a hard problem they're trying to solve, no doubt
<gchristensen>
they completely ignore all-packages.nix
<nixy>
I mean nixpkgs is a pretty extraordinary repo to be fair ;)
<gchristensen>
in many ways!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] apeschar opened pull request #25857: elasticsearch: add 5.x package, service (master...es5) https://git.io/v9xCG
NixOS_GitHub has left #nixos []
acertain has quit [(Ping timeout: 260 seconds)]
georges-duperon has joined #nixos
<sphalerite>
kloix: Anything wrong with the 17.03 version? Have you checked nixpkgs's/pypi2nix's issues for it?
<LnL>
hke: the attribute name is virtmanager
<hke>
LnL: That's good to know, how would I have found that out in the first place?
<LnL>
hke: nix-env -qaP will include the attribute names in the output
<ocharles>
Is there a way to run a test and actually have a window open so I can see what it's doing?
<sphalerite>
nox is also nice
<ocharles>
this is a test in the context of <nixpkgs/nixos/lib/testing.nix>
<hke>
Thanks agan, LnL. :)
<gchristensen>
where is that nixos users wiki again?
<LnL>
qknight_: not sure then, maybe there's something useful in the hydra-evaluator logs
darlan has quit [(Remote host closed the connection)]
<kloix>
sphalerite: it fails when I install it by the pypi2nix attribute, it works when I install it by name
Infinisil has joined #nixos
<sphalerite>
kloix: you might be getting different pypi2nix tools in that case
<kloix>
yes
<sphalerite>
Tools unrelated beyond their names
<sphalerite>
See 9.11.2.4 in nixpkgs manual
jluttine has quit [(Ping timeout: 268 seconds)]
darlan has joined #nixos
<sphalerite>
If that's the case, it's no surprise that an issue existing in one does not exist in the other :)
<kloix>
sphalerite: The one I want is in nixpkgs.pypi2nix, the other in nixos.pypi2nix. I pkgs = import <nixpkgs> {}; in an expression, shouldn't pkgs.pypi2nix refer to the one I want?
<sphalerite>
kloix: no. That's one of the bigger UX issues with nix: nix-env uses ~/.nix-defexpr while almost everything else uses NIX_PATH
<sphalerite>
nix-instantiate --eval -E '<nixpkgs>' will show you what <nixpkgs> actually refers to
ilyaigpetrov has joined #nixos
<sphalerite>
I believe this is fixed (no more .nix-defexpr) in nix 1.12 but it'll be another while before that becomes the default for nixos
Infinisil has quit [(Quit: leaving)]
<kloix>
.nix-defexpr has both my user's and root's channels
<LnL>
yeah nix-env -f '<nixpkgs>' -iA should be the default
<kloix>
NIX_PATH only has root's though
<sphalerite>
So, either set the appropriate path to nixpkgs using -I nixpkgs=/path/to/nixpkgs on nix-{env,build,shell} to make sure to use that version of nixpkgs
<sphalerite>
or refer to the full path directly in the expressions, depending on whether you'll be sharing them with anyone else
<kloix>
What would the full path here be?
<sphalerite>
Wherever the nixpkgs is on your filesystem
<sphalerite>
or even on the internet, you can pass URLs too (useful for pinning nixpkgs, but that's another story)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 2 new commits to master: https://git.io/v9x86
<NixOS_GitHub>
[nixpkgs] ehmry pushed 1 new commit to master: https://git.io/v9x24
<NixOS_GitHub>
nixpkgs/master 6ba53a7 Clemens Fruhwirth: monero: 0.10.2.1 -> 0.10.3.1
NixOS_GitHub has left #nixos []
<steveeJ>
pierron_: I'm still confused because rustc prints all kinds of cross targets on my system
<steveeJ>
arm, mips, aarch64, etc.
uralbash has joined #nixos
ryantrinkle has joined #nixos
tsmeets has joined #nixos
<danbst>
pierron_: hi. NixOS module system and description logics are so different, but my intuition says the have much in common. Have you researched into using modules system for knowledge representation/knowledge sharing?
<tsmeets>
Hello, I want to use the 'f2fs' filesystem on a raspberry pi 3. Has anyone done this before?
<tsmeets>
My first attemt modifying 'sd-image-aarch64-linux' wont go past starting the kernel.
<swflint>
Hey! I've got an issue updating an installation, I'm unable to run nixos-rebuild succesfully, as I have a lack if free disk space.
<disasm>
swflint: did you run garbage collection yet?
<swflint>
I have tried. Not enough free space. But I'll try again.
<danbst>
swflint: if you don't want to save old generations, then run sudo nix-collect-garbage -d
<swflint>
Okay.
<gchristensen>
you can also delete just a few old generations
<gchristensen>
or delete generations older than, say, 30 days
<swflint>
And that helped a lot.
freusque has quit [(Quit: WeeChat 1.7)]
<disasm>
tsmeets: do you have nixos working on the rpi without f2fs filesystem?
<tsmeets>
disasm: yes
<swflint>
Thanks. For some reason, running nix-collect-garbage --delete didn't do anything the first time.
<disasm>
tsmeets: can you share your nix-build command and the configuration file your building to generate the image?
jgeerds has quit [(Ping timeout: 240 seconds)]
gaqzi has joined #nixos
<bjpbakker>
danbst: Hi, managed to fix the gtk choose file dialog issue; turned out that the WM_SIZE_HINTS were rediculously huge and the wm was just centering it on the screen. The "blank" screen was a small part of the white background of the dialog.. Glad to have found that. Thanks a lot for helping me out earlier
phreedom has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] amiloradovsky opened pull request #25858: mawled: init at 20170517 (master...mawled) https://git.io/v9xov
NixOS_GitHub has left #nixos []
mizu_no_oto has joined #nixos
justelex_ has quit [(Ping timeout: 260 seconds)]
<gaqzi>
hi, I recently installed NixOS on a Xiaomi Mi Notebook Air and was using it successfully (everything working fine). I'm running unstable and Saturday I did a switch --upgrade and since then I haven't been able to use my trackpad. I can see the device when listing libinput devices, but no log messages when I click or track on it. =/ The trackpad works in BIOS
<gaqzi>
but when X has started and there is a pointer I can't do anything. Any suggestions for what I can try? :)
<gaqzi>
I haven't used Linux on the desktop for a long time so I'm very lost when it comes to debugging this stuff at the moment :x
<tsmeets>
disasm: I modified nixos/lib/make-ext4-fs.nix to ''
<tsmeets>
# Add the closures of the top-level store objects.
<gaqzi>
goibhniu: I haven't done anything intentionally (I'm also very new to nix)
<gaqzi>
I was using libinput, I have tried with both libinput and synaptics after this
<tsmeets>
Dezgeg: Probably needs something extra to support f2fs.
<gaqzi>
another fun thing is that after the trackpad stops working, if I just do reboot and go into BIOS the trackpad doesn't work. I need to power cycle and then it works in BIOS
johnsonav has joined #nixos
<goibhniu>
gaqzi: it's handy that you have an older working system generation to compare
<gaqzi>
oh, another thing i just tried is booting from the live cd and running X from there. and the trackpad isn't working there either
<gaqzi>
it was the first time I installed though
<gaqzi>
(just because I wanted to go back to something I knew was absolutely working, I tried going back to older revisions but it didn't work either) =/
<tsmeets>
Dezgeg: Is 'nixos-install' going to reformat the filesystem, if i just change type.
<tsmeets>
*fsType to f2fs?
<goibhniu>
gaqzi: but if you power cycle and select an older system generation from the grub boot menu, it works ... right?
<gaqzi>
no =/
<goibhniu>
huh?
<goibhniu>
interesting notebook, I hadn't heard of them
<gaqzi>
it's surprisingly good build quality for a low price. I live in Singapore so it's fairly easy to get a hold of them :)
Mercuria1Alchemi has quit [(Ping timeout: 240 seconds)]
<goibhniu>
I presume the trackpad also doesn't work on the login screen, right?
drewr has quit [(Remote host closed the connection)]
<gaqzi>
correct =/
<goibhniu>
gaqzi: did you check already if people on other distros have this problem?
<goibhniu>
e.g. maybe some kernel option will help
<gaqzi>
I haven't found anything while googling, I haven't gone further than that yet
<gaqzi>
I could download ubuntu and see if that would work
<goibhniu>
yeah, it would be good to test
* goibhniu
doesn't understand how the older generations stopped working though
tommyangelo_ has quit [(Ping timeout: 246 seconds)]
ertes-w has quit [(Ping timeout: 260 seconds)]
<gaqzi>
even weirder is that even the livecd isn't working. hmm, maybe I should get hold of windows and see if the thing is borked there as well
jensens has quit [(Ping timeout: 246 seconds)]
<gaqzi>
goibhniu: thanks for the help! the download for ubuntu is going to take a while so I'll have to continue this tomorrow :)
<Dezgeg>
tsmeets: no
<goibhniu>
gaqzi: my pleasure ... good luck!
<Dezgeg>
it works like nixos-install works on normal pcs as well
<disasm>
tsmeets: nixos-install just applies a nix configuration to a different root (defaults to /mnt) There's also an option to not prompt for root pw when installing as well.
Itkovian has joined #nixos
<tsmeets>
Dezgeg: So.. I mount another sdcard (using a microsd to usb connector), and then do the partitioning and nixos-install?
<Dezgeg>
yes
<Dezgeg>
and also copy the raspberry pi bootloader files from /boot to the new card
<tsmeets>
Dezgeg: ok, I'll try. Thanks for the help.
s33se has quit [(Ping timeout: 246 seconds)]
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
phinxy has joined #nixos
bjpbakker has quit [(Ping timeout: 240 seconds)]
justelex_ has joined #nixos
FRidh has quit [(Ping timeout: 255 seconds)]
darlan has quit [(Remote host closed the connection)]
Itkovian has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/v9xSk
<NixOS_GitHub>
nixpkgs/master 296753f John Ericson: lib: Consolidate tests into one meta job
<NixOS_GitHub>
nixpkgs/master f3c989b John Ericson: Merge pull request #25196 from Ericson2314/recursive-platform-tests...
NixOS_GitHub has left #nixos []
s33se has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #25859: lib platform parsing: Fix windows support to conform to LLVM, take 2 (master...platform-normalize) https://git.io/v9x9I
NixOS_GitHub has left #nixos []
jluttine has joined #nixos
jmeredith has joined #nixos
boegel|afk is now known as boegel
johnsonav has quit [(Ping timeout: 272 seconds)]
jgeerds has joined #nixos
mattyu has quit [(Ping timeout: 260 seconds)]
sitwon has joined #nixos
kykim has joined #nixos
darlan has joined #nixos
bkchr has quit [(Ping timeout: 260 seconds)]
derjohn_mob has joined #nixos
zraexy has joined #nixos
bjpbakker has joined #nixos
bjpbakker has quit [(Remote host closed the connection)]
bjpbakker has joined #nixos
ixxie has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
takle_ has joined #nixos
justbeingglad has joined #nixos
orivej has joined #nixos
hiberno has quit [(Ping timeout: 268 seconds)]
Sonarpulse has quit [(Ping timeout: 240 seconds)]
johnsonav has joined #nixos
<clever>
gchristensen: i think it would help a lot, if nixpkgs could make its own bootstraps, like it does with gcc
<clever>
gchristensen: then we can stop relying on somebody to put out a bootstrap thats 3 generations old
takle_ has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
derjohn_mob has quit [(Ping timeout: 272 seconds)]
goibhniu has quit [(Ping timeout: 246 seconds)]
justbeingglad has left #nixos []
<gchristensen>
clever: how can we do that?
derjohn_mob has joined #nixos
<gchristensen>
like just take an arbitrary build and tar it up for future use?
<clever>
gchristensen: i'm guessing you just need to tar up a ghc build from nixpkgs, then patchelf it at a later point
<gchristensen>
or just tar up the whole closure
<clever>
gcc's bootstrap puts the entire closure into a single tar
Sonarpulse has joined #nixos
<clever>
and includes a script that can patchelf patchelf without needing a patched patchelf
<clever>
gchristensen: this file starts out on line 108, to create a dummy stdenv that has no usable tools
<clever>
then it uses that 1st dummy stdenv as a base, applying a few overrides (lines 128-146) to make a dummy stdenv that just uses the bootstrap tools
<clever>
then at 150, it uses that as a normal stdenv to build a binutils/perl, and anything else the next stage asks nixpkgs for
darlan has quit [(Remote host closed the connection)]
<clever>
and with each step, it applies less overrides, until it has built everything with the defaults in nixpkgs
<c0c0n3>
hi there, does anyone know if there's a way to specify in your machine config that you want to install a package just for one user?
<gchristensen>
there is not, c0c0n3, unfortunately
<c0c0n3>
okie then :-)
<clever>
there is a pr for that
<c0c0n3>
suppose i can still have an activation script to do that
<c0c0n3>
using nix-env, was hoping there'd be a cleaner way
<shlevy>
There's probably a "better" way to do this but in your shoes I'd just change src to be a derivation that unpacks those binaries into $out so it's a proper directory
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Guest71761 is now known as mythmon_
freusque has joined #nixos
<betaboon>
i got a question regarding nspawn based containers: is there support for systemd resource-control, in order to limit io/memory/cpu for containers ? i didn't find any hint on that.
mattyu has joined #nixos
<LnL>
I think so
hotfuzz_ has quit [(Quit: WeeChat 1.7.1)]
<LnL>
pretty sure I've used that on one of my machines
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #25862: linux cross stdenv: Fix eval errors (master...linux-stdenv-cross) https://git.io/v9pky
NixOS_GitHub has left #nixos []
<betaboon>
as to my understanding it can be either set via systemctl set-property (but i don't know if that can be run from outside the container ??) or via --property of systemd-nspawn, but i found nothing in the code
endformationage has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
cpennington has quit [(Remote host closed the connection)]
darlan has joined #nixos
Orix has quit [(Quit: Konversation terminated!)]
Infinisil has joined #nixos
zraexy has quit [(Quit: Leaving.)]
<hke>
Hi folks. I want to install unrar from nixpkgs, but I get an error about it being unfree. I tried to add "nixpkgs.config.allowUnfree = true;" to various places in /etc/nixos/configuration.nix but I still get the same error. What am I doing wrong?
<clever>
hke: nix-env will read the other config.nix, the error should give you the path
<hke>
Am I missing a command afterwards to "apply" the changes?
leat has quit [(Ping timeout: 268 seconds)]
<hke>
clever: Thank you. I misread the error apparently.
freusque has quit [(Quit: WeeChat 1.7)]
leat has joined #nixos
<hke>
BTW that was my second noob question today that got answered politely within 2 minutes. You guys seem to have an amazing community from what I can tell so far.
<clever>
:)
<aspiwack[m]>
Is there an access to gnome configuration options from the `configuration.nix`? (I'm looking, in particular, for keyboard tweaks/trackpad configuration, as well as visual stuff like gnome-shell theme and extensions). zimbatm surely you at least know whom to ask?
xadi has quit [(Ping timeout: 255 seconds)]
xadi has joined #nixos
takle has joined #nixos
bjpbakker has joined #nixos
takle has quit [(Ping timeout: 268 seconds)]
darlan has quit [(Remote host closed the connection)]
takle has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
vandenoever has quit [(Ping timeout: 260 seconds)]
<edofic>
Using cabal2nix, is there any way to achieve `cabal sandbox add-source`-like functionality? In other words I don't want to have to restart nix-shell everytime I change my library
justelex_ has quit [(Ping timeout: 246 seconds)]
<aspiwack[m]>
edofic: I don't know a way but Fuuzetsu might. (ninja hl)
sitwon has joined #nixos
ixxie has quit [(Ping timeout: 260 seconds)]
ixxie has joined #nixos
mudri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/v9psw
<NixOS_GitHub>
nixpkgs/master 23f6332 Robert Helgesson: perl-PPI: 1.220 -> 1.224
NixOS_GitHub has left #nixos []
taeradan has quit [(Quit: No Ping reply in 180 seconds.)]
vandenoever has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #25865: rdesktop: enable IPv6 support (master...rdesktop-ipv6) https://git.io/v9pnO
NixOS_GitHub has left #nixos []
<Infinisil>
Can system.stateVersion be considered immutable?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 closed pull request #25844: sift: fix build for darwin (master...master) https://git.io/v9AWD
NixOS_GitHub has left #nixos []
<steveeJ>
pierron_: it turned out that the target I was trying to use was removed from rust alltogether, so it's not related to the nixpkgs overlay
<philipp[m]>
s there a way to specify the i686 in a nix statement? I'd like to do something like "export LD_PRELOAD=${pkgs.mumble_overlay}/lib/libmumble.so.1" but I need the i686 package.
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever>
philipp[m]: if you load the file with callPackage_i686, everything it gets will be 32bit
orivej has quit [(Quit: No Ping reply in 180 seconds.)]
<philipp[m]>
clever: Unfortunately I don't think that it's an option here. I'm trying to get the mumble overlay working with steam games and the only place I think I can edit the environment globally isn't called like this.
reinzelmann has quit [(Quit: Leaving)]
<clever>
philipp[m]: there is also pkgsi686Linux
<clever>
philipp[m]: which has 32bit versions of everything in nixpkgs
<clever>
nix-repl> pkgsi686Linux.mumble_overlay
<philipp[m]>
clever Yes, I think that's what I need. Steam is a linux only package anyway. Thanks.
simukis_ has quit [(Ping timeout: 246 seconds)]
Wizek__ has joined #nixos
oever is now known as vandenoever
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
marsel has quit [(Ping timeout: 268 seconds)]
<tsmeets>
Hmm, When I run 'nixos-install' i get: "error: changing modification time of '/nix/store/dwv0wf3szv3ipgyyyrf1zxh4iqlckiip-inputrc': Read-only file system"
kiloreux has joined #nixos
<tsmeets>
The destination partition uses f2fs
metaphysician has quit [(Quit: Bye.)]
<nh2>
taktoa: I had some recent discussions here with clever on doing compilations per object file, don't know if you saw it or if it may be useful for you
Filystyn has quit [(Ping timeout: 240 seconds)]
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
dridus has joined #nixos
<taktoa>
nh2: I talk to clever on VoIP quite often; he probably mentioned it because of what I'm going to be working on
<dtz>
nh2: that sounds very interesting--are you saying this discussion was on this channel so I can find it on backlog?
<taktoa>
dtz: for context, nh2 brought it up because I mentioned this on #ghc: "<taktoa> nh2: it's part of some work I'm going to be doing this summer at awake networks in splitting haskell nix derivations into one derivation per object file"
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #25866: linuxHeadersCross: Remove and just use `linuxHeaders` (master...linux-headers-cross) https://git.io/v9p8k
NixOS_GitHub has left #nixos []
<dtzWill>
taktoa: ah, thanks. Neat! :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/v9p83
<NixOS_GitHub>
nixpkgs/master f0e1907 John Ericson: linuxHeadersCross: Remove and just use `linuxHeaders`
<NixOS_GitHub>
nixpkgs/master f2e2463 John Ericson: Merge pull request #25866 from obsidiansystems/linux-headers-cross...
<kiloreux>
So I can use both ways on our production system. Or just one?
Itkovian has joined #nixos
<LnL>
you can use both, it doesn't make a difference
<kiloreux>
Thank you.
<LnL>
the only downside of using an url is that nix will redownload it sometimes since it doesn't know if the hash might have changed
timjrd has joined #nixos
<kiloreux>
Ohh I see :( I can see you mentioned "sometimes". Does that mean it doesn't occur always and sometimes it will use the one already installed?
<Infinisil>
Is there a way to specify a specific branch of the local git clone? I don't think there is, but I feel this could be useful
<LnL>
yes, it's cached for an hour or so
timjrd has quit [(Client Quit)]
timjrd has joined #nixos
kiloreux has quit [(Ping timeout: 240 seconds)]
Wizek__ has quit [(Ping timeout: 268 seconds)]
<matthewbauer>
LnL: does Nix try to keep track of anything like etags/expires in these cases?
<kloix>
Is there something I can use to fetch a particular revision of a CVS repo?
<LnL>
don't think so, just a TTL
<kugelblitz>
clever, makefu thx :) worked out perfectly
<makefu>
np
katyucha has quit [(Killed (hitchcock.freenode.net (Nickname regained by services)))]
Guest85797 is now known as katyucha
katyucha_ has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
timjrd has quit [(Read error: Connection reset by peer)]
matthewbauer has joined #nixos
m` has joined #nixos
m` is now known as mojjo
timjrd has joined #nixos
tabaqui has left #nixos ["WeeChat 1.7.1"]
kiloreux has joined #nixos
AndreasO has joined #nixos
<LnL>
matthewbauer: you can get similar behaviour to nix-channel with this
<htr>
after creating a PR (and all the checks pass) am I supposed to ping someone ?
<clever>
AndreasO: it has to be written to sdb, not sdb1
<timjrd>
Hi :) I'm trying to run the sway wayland compositor on a fresh nixos install, but when I run $sway on my tty I get "failed to load driver i965 [...] kms_swrast [...] swrast", any idea ?
<AndreasO>
clever: oh, i'll try that then. ;_)
darlan has quit [(Remote host closed the connection)]
orivej has quit [(Read error: Connection reset by peer)]
matthewbauer has quit [(Remote host closed the connection)]
AndreasO has quit [(Ping timeout: 260 seconds)]
matthewbauer has joined #nixos
AndreasO has joined #nixos
darlan has joined #nixos
<Infinisil>
Hey does anybody know how one can change the root filesystem? I have a server running NixOS with a boot partition and an ext4 one for root. I want to switch to zfs for the root. I have another hard disk connected to it, so I could use it as a bridge
stepho has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
<AndreasO>
clever: It seems "isolinux.bin" is missing on boot from USB.
tommyangelo_ has joined #nixos
pie_ has quit [(Remote host closed the connection)]
<Infinisil>
Maybe run nixos-install on the second disk, then change filesystems."/" to the second disk, then nixos-rebuild, should this work?
pie_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to master: https://git.io/v9pVP
<NixOS_GitHub>
nixpkgs/master 2099f0a Thomas Tuegel: dropbox: 25.4.28 -> 26.4.24
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 7 new commits to master: https://git.io/v9pV5
<NixOS_GitHub>
nixpkgs/master bfa8f30 John Ericson: linux cross stdenv: Use the cross stdenv and `nativeBuildInputs`...
<NixOS_GitHub>
nixpkgs/master 88ea646 John Ericson: binutils on darwin: Clean up the rats nest...
<NixOS_GitHub>
nixpkgs/master 7018dfb John Ericson: binutils and cctools: Prefix derivation names with target for cross...
NixOS_GitHub has left #nixos []
mattyu has quit [(Ping timeout: 260 seconds)]
<AndreasO>
"isolinux.bin missing" when booting from USB, not booting.
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
matthewbauer has quit [(Remote host closed the connection)]
<katyucha>
Hi
matthewbauer has joined #nixos
<katyucha>
how to test if a "type.lines" is empty (the default is "" ) ? I tried : != "" ... but not work :(
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
<katyucha>
euh... I try one more time and it works
<kiloreux>
trying to install 2 versions of Imagemagick
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<sphalerite>
I've made some improvements to nox's search tool — particularly allowing regex search and multiple search terms, which I've PRed to upstream but it might be another while before madjar gets around to looking at them based on past experience. In the meantime, if anyone's interested they're available at https://github.com/lheckemann/nox
<sphalerite>
I also made it non-interactive, because I almost always found myself pressing Ctrl-C at the prompt that shows up on upstream nox
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] risicle opened pull request #25870: pyproj: enable tests, use bundled proj by default (master...pyproj-tests) https://git.io/v9p9v
NixOS_GitHub has left #nixos []
erasmas has quit [(Quit: leaving)]
pie_ has quit [(Changing host)]
pie_ has joined #nixos
hiratara has quit [(Ping timeout: 255 seconds)]
hiratara has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<kiloreux>
Does anyone know how to solve cross compilation error ?
<kiloreux>
I am using the exact architecture on my computer.
Itkovian has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
zeus_ has quit [(Read error: Connection reset by peer)]
Itkovian has quit [(Client Quit)]
zeus_ has joined #nixos
Itkovian has joined #nixos
jgeerds has quit [(Quit: Leaving)]
orivej has joined #nixos
timjrd has quit [(Quit: Simple IRC: The quit option.)]
mojjo has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/v9p70
<NixOS_GitHub>
nixpkgs/master 86e1604 Anthony Cowley: rtags: link to libclang.dylib at absolute path on darwin
<simpson>
Huh. What do we need to do to have a custom .XCompose? I think I have it right, but it only works in xterm, and not in sakura nor terminator. Do I have to log out and log back in?
stepho has joined #nixos
matthewbauer has joined #nixos
kykim has quit [(Ping timeout: 240 seconds)]
stepho has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
kampfschlaefer has quit [(Ping timeout: 272 seconds)]
<samueldr>
is there any drawbacks to referring to files from the source directory(?) of a package this way in a file sourced by configuration.nix ?
eacameron has quit [(Remote host closed the connection)]
<johnramsden>
pie: I joke but I'm actually trying to set up I virtualized windows system right now with pci pass through of the graphics card for gaming.
betaboon has quit [(Quit: This computer has gone to sleep)]
<johnramsden>
pie: It sounds like your kind of describing wine though
<clever>
johnramsden: ive tried that before, and if your motherboard doesnt support pci device reset, your better off just dual-booting
<clever>
johnramsden: the pci card state must be untouched for windows to boot, so you have to reset the entire host if windows needs to reboot
mkoenig has quit [(Ping timeout: 240 seconds)]
<johnramsden>
clever: Do you mean vt-d?
<clever>
johnramsden: thats a seperate requirement
<samueldr>
IOMMU it's called, I believe
<clever>
vt-d/iommu is required to safely perform dma, so the guest cant attack the host
<clever>
but the state of the pci device must be untouched, for the windows driver to boot
<johnramsden>
clever: Yea.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 4 new commits to master: https://git.io/v9pAW
<NixOS_GitHub>
nixpkgs/master 7666703 John Ericson: gmp 6: Fix for cross
<NixOS_GitHub>
nixpkgs/master 8ad2c6a John Ericson: ncurses: Fix for cross
<NixOS_GitHub>
nixpkgs/master 2601a80 John Ericson: release-cross: Make tests more uniform...
NixOS_GitHub has left #nixos []
philipwhite has joined #nixos
<johnramsden>
clever: I believe vfio-pci can help
cyraxjoe has joined #nixos
<philipwhite>
I'm working on an ocaml project. I'm wondering if the core_bench is available through nix. I haven't been able to find it, and I'd rather not have to write the nix expression myself (although it would probably be a good learning experience).
ericsagnes has joined #nixos
<manveru>
i'm still stuck trying to create a bootable image in a derivation... since "grub-install" only works on devices and not files :(
<manveru>
tried messing around with grub-mkimage and dd to random locations... but not much success
<clever>
manveru: the stage1 in the MBR needs to have a certain offset filled in, with the LBA location of stage 1.5
<samueldr>
would losetup work?
<clever>
dd cant do that, so it defaults to expecting 1.5 to be on the next sector
<manveru>
losetup needs root
<clever>
and losetup would require root, so you would need to use the helper to run everything in a vm
<manveru>
yeah, that's what the nixos image creation does
preyalone has quit [(Quit: Connection closed for inactivity)]
<johnramsden>
Does anyone know what this does? It is added in the automatic configuration set up:
<clever>
kiloreux: what happens if you run nix-store --verify --check-contents
markus1219 has quit [(Ping timeout: 246 seconds)]
markus1209 has quit [(Ping timeout: 246 seconds)]
Wizek_ has joined #nixos
<Sonarpulse>
clever: well, without just pushing to staging seems this is the best I can do for now
<kiloreux>
fixing missing hashes and updating size fields for a few packages.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #25875: ncurses: Break hash to simplify derivation (staging...ncurses-cross) https://git.io/v9ppb
NixOS_GitHub has left #nixos []
johnsonav has joined #nixos
Wizek has quit [(Ping timeout: 240 seconds)]
<kiloreux>
clever, I have added host="x86_64" to the configure flags
<kiloreux>
and the build kicked without error
<kiloreux>
Do you have any idea how is this possible. Since the architecture was also x86-64
<clever>
no idea, the nix expression in the pastebin should just default to the host arch
obadz has quit [(Ping timeout: 268 seconds)]
<kiloreux>
I see. Worth investigating nonetheless. So that gist will install 2 imagemagick versions on my system. How can I access one of them in my scripts?
<kiloreux>
to use them both at the same time.
ericsagnes has quit [(Ping timeout: 268 seconds)]
Sonarpulse has quit [(Ping timeout: 268 seconds)]
<kiloreux>
I guess i was wrong
<kiloreux>
there's a collision now in the 2 packages
<kiloreux>
collision between ‘/nix/store/zb4k5zpc0jc7x6z6c0klmd7spbpcgd11-imagemagickold/bin/animate’ and ‘/nix/store/8sxwiif2zh9jky5l79xlm7hp26py9my0-imagemagicknew/bin/animate
<clever>
kiloreux: this allows you to use both of them, without having to install them
Rotaerk has joined #nixos
<clever>
which means they wont collide
<kiloreux>
That is fantastic. Thank you.
plll has joined #nixos
<kiloreux>
can i still refer to the binaries system wide?
<plll>
Hey, I'm trying to test out a build from a local copy of nixpkgs. How can I force compilation/build? It seems to be cached, but uninstalling + garbage collection doesn't seem to help.
<clever>
only one version of imagemagic can be used system wide
<plll>
* (compilation/build of a specific package)
takle has quit [(Remote host closed the connection)]
<clever>
plll: nix will detect if things have changed, and if its using the cache, then maybe you arent overriding nixpkgs right, or the change you made truely has no effect
Wizek_ has quit [(Ping timeout: 240 seconds)]
musicmat- has quit [(Ping timeout: 260 seconds)]
<kiloreux>
:O and there's no way I can use 2 versions at the same time of imagemagick ? Even if I change names or anything?
cpennington has joined #nixos
Wizek__ has quit [(Ping timeout: 246 seconds)]
musicmatze has quit [(Ping timeout: 260 seconds)]
<clever>
kiloreux: you would need to write a custom package, that makes a renamed version of every binary
<clever>
kiloreux: its much simpler to just use nix-shell like this, nix-shell default.nix -A imagemagick2