<gchristensen> -e is by name and -u is too I think?
eacameron has joined #nixos
<gchristensen> I don't use nix-env much :)
<adelbertc> ah ok so theres no analog for -e and -u ?
<clever> adelbertc: after installing, the attribute path is lost
<clever> adelbertc: so -e can only match on the name, and -u has to search for the name and guess
<adelbertc> ahhh
<adelbertc> gotcha
<clever> adelbertc: thats why i prefer to always use a buildenv when possible
<gchristensen> -e is by name for sure
<gchristensen> -u supports -A :)
<clever> adelbertc: if i put this into config.nix, i can nix-env -iA nixos.mystuff
<clever> adelbertc: and it will atomicly install/update/remove everything in the list
<adelbertc> clever: ah yeah, i need to do something like that soon
sigmundv_ has joined #nixos
<clever> and because its a nix file, it supports (and saves) the full nix expression
<gchristensen> clever: this is for an intro blog post
<adelbertc> do you just have a dirty git state then? or is there a more clever way
<clever> so it can recreate things every time
<clever> i currently dont have config.nix saved anywhere
<adelbertc> (yeah i probably wont put this in the post, but i will keep it in mind for myself :-) )
<clever> enless you count 2 dozen zfs snapshots
<clever> and half a dozen gists from when i keep making new examples to link
<dhess`> Sweet, I'm pretty certain this GHC 8.0.1-bootstrapped 8.0.2 derivation is going to work.
_deepfire has quit [(Ping timeout: 240 seconds)]
<dhess`> I'm already in the self-building stage.
eacameron has quit [(Ping timeout: 240 seconds)]
<dhess`> GHC on ARM here I come!
<gchristensen> woop!
<dhess`> I wonder if 8.0.1 can compile all previous versions, as well.
<dhess`> Could seriously speed up the GHC bootstrap process.
<gchristensen> v7?
<dhess`> yeah
<clever> gchristensen: ive also noticed some insanity in the dependancy chain in nixpkgs ghc's
<clever> 2017-05-16 20:44:21 < clever> then ghc802 uses ghc7103, which uses ghc784, which uses ghc742, which uses ghc704binary
<clever> 2017-05-16 20:44:37 < clever> so building ghc802 requires building 3 other ghc's, and patchelfing a binary
<gchristensen> O . O
acarrico has quit [(Quit: Leaving.)]
<clever> gchristensen: look at which ghc each of them uses as the bootPkgs or ghc input: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/haskell-packages.nix#L23-L86
<gchristensen> can we fix them?
<gchristensen> wowowow
<MichaelRaskin> 5D
<dhess`> For Linux, yes. At least the 8.0 series.
<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
<dhess`> gchristensen: I'll submit my (WIP) changes here in a bit: https://github.com/NixOS/nixpkgs/issues/19926
<clever> gchristensen: i'm guessing you can just change the 7103 on line 67, to 704, and that will cut it down to only 1 intermediate ghc
<clever> but that depends on if 704 can build 802
<dhess`> clever: nah I don't think so, because you need a GHC to get started.
<dhess`> oh
<dhess`> I see what you mean
<dhess`> yes that should work
<clever> and 704 already has a full packageset, so no need to deal with hscolour changes
<clever> getting an hscolour right out of the bootstrap would be more complex, but make things more direct
nil has joined #nixos
<clever> gchristensen: let me throw nix-build at it here and see what happens
<gchristensen> cool
<dhess`> According to the GitHub issue I linked above, you can use a version ~3 or 4 revisions older than the one you're trying to build.
<clever> strange, it grabbed 802 from the binary cache
<clever> oops, i fixed ghchead, then tested 802
<dhess`> how do I nix-build for i686-linux on a x86_64-linux? Just use --argstr?
<dhess`> does that work out of the box?
<clever> yeah, just set system with argstr
<dhess`> tnx
<clever> it will use 32bit everything, and if sandboxes are on, uname will even lie and claim its a 32bit cpu
filterfish has joined #nixos
<clever> dhess`: i believe i am now building hscolour using 704
<clever> configure: error: GHC version 7.8 or later is required to compile GHC.
<dhess`> Wait for this 8.0.1-binary.nix thing to drop, then try that on all the things.
<dhess`> This 8.0.2 build should be done shortly.
<dhess`> Then I'll PR a WIP.
<dhess`> it will need some Darwin work-arounds, though.
<dhess`> A bit ugly but probably worth it. I guess I can try packaging up the 8.0.2 Darwin binary as well.
<dhess`> Shouldn't be *too* different than what I had to do with the Debian binary dist.
<dhess`> modulo all the standard Darwin weirdness.
acarrico has joined #nixos
<clever> dhess`: 802 was building with 7103, which built with 784
<clever> dhess`: but i think i have 802 building directly with 784 now
<clever> 1 less dependency in the chain, but its still a total of 2 extra ghc's
JagaJaga has quit [(Ping timeout: 268 seconds)]
kiloreux has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #25841: atom: 1.16.0 -> 1.17.0 (master...atom_1_17_0) https://git.io/v9Acu
NixOS_GitHub has left #nixos []
dtzWill has joined #nixos
<clever> dhess`: the current state of ghc's: https://gist.github.com/cleverca22/81e6f84355412f8e13c685a1bac6f6d3
darlan has joined #nixos
Judson1 has quit [(Remote host closed the connection)]
hellrazo1 has joined #nixos
johnw_ has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
acarrico has quit [(Quit: Leaving.)]
<dhess`> It built! Nice.
<dhess`> OK let me try to clean this up a bit.
<dhess`> Interestingly, not having hscolour available did not cause the build to fail.
<clever> it may just disable that feature
<dhess`> it does.
<dhess`> I could even just install the Debian hscolour .deb.
<dhess`> Anyway I'll worry about those details later.
<clever> at least 802, doesnt flag it as optional with a ?null
<clever> but its only putting it into buildInputs, which i think can silently skip nulls
phinxy has quit [(Read error: Connection reset by peer)]
<clever> so its all up to the ghc build ignoring the lack of colour
<dhess`> Indeed. "HsColour was not found; documentation will not contain source links"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #25842: ammonite: 0.8.4 -> 0.8.5 (master...ammonite_0_8_5) https://git.io/v9ACD
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #25843: oh-my-zsh: 2017-03-30 -> 2017-05-03 (master...oh-my-zsh_2017_05_03) https://git.io/v9ACd
NixOS_GitHub has left #nixos []
acarrico has joined #nixos
jekor has quit [(Ping timeout: 260 seconds)]
nallar has joined #nixos
NixOS_GitHub has joined #nixos
<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> createSetMap myFunc [ element1 element2 ... ]
<johnramsden> output =>
<johnramsden> { transformedElement1; transformedElement2; };
<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?
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
s33se has joined #nixos
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
s33se_ has quit [(Ping timeout: 240 seconds)]
<johnramsden> clever: Ohhh man, https://nixos.org/nixos/options.html#filesystems Shows the default value being a set, not a list. Is it wrong?
<clever> johnramsden: some options in nixos can be either an attrset or a list
<clever> johnramsden: and it will internaly use the key from the attrset as a default mountPoint
<johnramsden> Oh jeeez, I just spent the last hour wondering how I could map over a list and create a set that's not in a list.
<johnramsden> Thanks >_<
sigmundv_ has quit [(Ping timeout: 240 seconds)]
<clever> there is also a function that does what you wanted
<clever> but its not needed now
<johnramsden> What function? That's what I was looking for
<clever> nix-repl> lib.listToAttrs
<clever> i think
<clever> nix-repl> lib.listToAttrs [ {name="a"; value=1; } ]
<clever> { a = 1; }
<johnramsden> Nice
<clever> johnramsden: but nixos is just going to turn the attrset back into a list anyways
filterfish has joined #nixos
<johnramsden> How do you know whether to give it a list or a set if it can take both?
<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
<clever> johnramsden: fileSystems = [ { mountPoint="/"; device="foo"; fsType="bar"; } ++ (map ....);
<clever> oops, and a ] before ++
<johnramsden> Isn't that not valid? Shouldn't it be: "${mountPoint}" = { device = "${dataset}"; fsType = "zfs"; }; }
<clever> fileSystems = [ { mountPoint="/"; device="foo"; fsType="bar"; } ] ++ (map ....);
<clever> your just manualy creating the same thing that the map is returning
<clever> and concating 2 lists
<johnramsden> Where are you getting the mountPoint variable?
<clever> i am creating it right there, not reading it
johnw__ has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sheganinans opened pull request #25845: UrWeb 20160621 -> 20170105 (master...master) https://git.io/v9A0z
NixOS_GitHub has left #nixos []
<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)]
ericsagnes has quit [(Ping timeout: 260 seconds)]
acertain has quit [(Ping timeout: 255 seconds)]
acertain has joined #nixos
inflames has quit [(Ping timeout: 246 seconds)]
johnsonav has quit [(Ping timeout: 240 seconds)]
zraexy has joined #nixos
indi_ has joined #nixos
acertain has quit [(Ping timeout: 246 seconds)]
acertain has joined #nixos
takle has joined #nixos
acertain has quit [(Max SendQ exceeded)]
acertain has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
johnsonav has joined #nixos
acertain has quit [(Ping timeout: 268 seconds)]
acertain has joined #nixos
acertain has quit [(Max SendQ exceeded)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aneeshusa opened pull request #25847: icdiff: 1.7.3 -> 1.9.0 (master...update-icdiff-to-1.9.0) https://git.io/v9AzD
NixOS_GitHub has left #nixos []
johnsonav has quit [(Ping timeout: 246 seconds)]
acertain has joined #nixos
acertain has quit [(Max SendQ exceeded)]
systemfault has quit [(Ping timeout: 246 seconds)]
takle has joined #nixos
Tipping_Fedora has quit [(Quit: ZNC crashed?)]
johnsonav has joined #nixos
Tipping_Fedora has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
acertain has joined #nixos
Tipping_Fedora has quit [(Client Quit)]
raydeo has left #nixos ["Textual IRC Client: www.textualapp.com"]
Tipping_Fedora has joined #nixos
Tipping_Fedora has quit [(Changing host)]
Tipping_Fedora has joined #nixos
acertain has quit [(Ping timeout: 268 seconds)]
acertain has joined #nixos
<clever> gchristensen: was able to get some of the ghc's to use an older boostrap, so there is 1 less link in the chain
<clever> gchristensen: but ghcHead needs 7.10+, so there will always been one at that level
acertain has quit [(Max SendQ exceeded)]
takle has joined #nixos
acertain has joined #nixos
leat has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
ryantrinkle has joined #nixos
acertain has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
takle has quit [(Ping timeout: 246 seconds)]
ertes has quit [(Ping timeout: 246 seconds)]
acertain has joined #nixos
leat has quit [(Ping timeout: 260 seconds)]
<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
leat has joined #nixos
<clever> radvendii: with import <nixpkgs>{}; runCommand "shell" { buildInputs = [ (haskellPackages.ghcWithHoogle ....) ]; } "exit 1"
<clever> radvendii: then nix-shell should give you a shell with ghc and everything
<radvendii> okay sure, but that would presumably still have the same problem, no?
<radvendii> where the 'matrices' package is being installed by default
<clever> it will ignore the collision, so whatever appears first in $PATH will win
<radvendii> really? because for me it's raising the error "Ambiguous interface for 'Data.Matrix'
marsel has joined #nixos
<clever> ah, sounds like its a collision within the ghc layers, not at the normal linux $PATH
rcschm has joined #nixos
acertain has joined #nixos
<clever> radvendii: can you gist the nix expression and i can look at it here
<rcschm> hi, is there a way to get the reference to the file itself in writeText? thanks.
acertain has quit [(Max SendQ exceeded)]
<clever> rcschm: probably would be simpler with this: runCommand "name" {} "echo foo bar $out baz > $out";
<clever> rcschm: $out is the path that the derivation will output to
<rcschm> so the echo will put the foo content and bar content to $out?
<rcschm> not sure how it works from the line above.
<clever> radvendii: it will write foo bar <ownpath> baz to the output file
<clever> nix-build -E 'with import <nixpkgs>{}; runCommand "name" {} "echo foo bar $out baz > $out"'
<clever> rcschm: try runnng this, then look at the result file it makes
<radvendii> clever: I've solved the problem though, with the help of PackageImports (kind of a hack, but this isn't for production)
<rcschm> let me check that out.
<radvendii> clever: so it's not so important to figure out now, and the truth is, I really should be using stack
<rcschm> clever: got it. thanks.
reinzelmann has joined #nixos
dhess has quit [(Remote host closed the connection)]
radvendi1 has joined #nixos
orivej has quit [(Ping timeout: 246 seconds)]
Sufixx has left #nixos ["Wychodzi"]
leat has quit [(Ping timeout: 240 seconds)]
jacob_ has joined #nixos
jacob_ is now known as Guest36244
takle has joined #nixos
eacameron has quit [(Remote host closed the connection)]
nslqqq has joined #nixos
radvendii has quit [(Quit: Lost terminal)]
jmeredith has quit [(Quit: Connection closed for inactivity)]
takle has quit [(Ping timeout: 246 seconds)]
FRidh has joined #nixos
acertain has joined #nixos
katyucha is now known as Guest85797
katyucha_ is now known as katyucha
acertain has quit [(Max SendQ exceeded)]
ertes-w has joined #nixos
acertain has joined #nixos
nslqqq has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lufia opened pull request #25848: go-font: 2016-11-17 -> 2017-03-30 (master...update-gofont) https://git.io/v9AwS
NixOS_GitHub has left #nixos []
acertain has quit [(Max SendQ exceeded)]
<rcschm> clever: i keep getting into errors when i do runCommand "name" {} "echo bind r $out > $out"
<rcschm> bind is not a command.
leat has joined #nixos
<rcschm> it would be nice if writeText can reference itself in the content.
<clever> rcschm: can you gist the full nix expression and the error output?
<rcschm> hang on.
Mercuria1Alchemi has joined #nixos
<clever> the problem is the newlines you added
<clever> thats a bash script, that runs echo, then bind
<rcschm> oh i have '' '' as well
<rcschm> but that didn't do it.
<clever> that doesnt change the fact that bash runs each line seperately
<rcschm> oh i see.
<rcschm> let me take a look.
derjohn_mob has joined #nixos
<rcschm> i have a long string.
<rcschm> is there a way to have multilines
<rcschm> ?
<clever> normal bash, \ at the end of each line
<rcschm> oh ok
<rcschm> let me try that out.
<clever> this makes 1 line out of 2
<clever> you can also use >> to append to the file, or normal bash heredoc's
<LnL> the activation scripts do this with echo "$text" > $out
endformationage has quit [(Quit: WeeChat 1.7)]
<clever> oh right, there is a second way
<hyper_ch> is there a way to set a user cron in the configuration.nix?
<rcschm> that works. i use both. thanks for your help.
ryantrinkle has quit [(Ping timeout: 240 seconds)]
Tucky has joined #nixos
sellout- has quit [(Quit: Leaving.)]
<rcschm> let me take a look.
<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
<jluttine> danbst: i wrote already a few
Itkovian_ has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Ping timeout: 260 seconds)]
<danbst> long time ago there was only stdenv.lib, but then came https://github.com/NixOS/nixpkgs/commit/2ee8b30b64a0ee2837c3630a50ec1a74820b7047
<danbst> AFAIU there were infinite recursion problems when using stdenv.liv in some contexts
<danbst> I don't know details much, but I've triggered such once
<jluttine> ok :)
<jluttine> hmm.. mac os on travis builds doesn't have stdenv.isDarwin true? how should i recognize mac os?
acertain has joined #nixos
<LnL> jluttine: euh, why do you think that?
<LnL> jluttine: stdenv.lib is convenient because you usually already have the stdenv in scope
<jluttine> LnL: travis build on macos didn't seem to respect my darwin specific definition.. need to check more closely
<LnL> link?
acertain has quit [(Ping timeout: 240 seconds)]
<jluttine> i just made a fix and now it's rebuilding...
<jluttine> let's see if it still persists
goibhniu has joined #nixos
takle has joined #nixos
DutchWolfie has joined #nixos
proteusguy has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<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
thc202 has joined #nixos
Itkovian has joined #nixos
acertain has quit [(Ping timeout: 260 seconds)]
<danbst> bjpbakker: then try to update, there was an issue with firefox https://github.com/NixOS/nixpkgs/issues/25505
<danbst> bjpbakker: I had crash instead of blank screen
takle has joined #nixos
simukis_ has quit [(Quit: simukis_)]
Itkovian_ has quit [(Ping timeout: 240 seconds)]
<bjpbakker> danbst: thanks, just upgraded, no changes though
simukis_ has joined #nixos
<danbst> bjpbakker: I have Mozilla Firefox 52.1.1, same for you?
derjohn_mob has joined #nixos
<bjpbakker> danbst: nope, 53.0.2
<danbst> bjpbakker: ah, then try firefox-esr too
<bjpbakker> danbst: will do :)
simukis_ has quit [(Client Quit)]
simukis_ has joined #nixos
acertain has joined #nixos
<bjpbakker> danbst: this will take a while, firefox must be compiled. Thanks for your help
<danbst> bjpbakker: it should be in binary cache
plcp_ has quit [(Quit: Page closed)]
acertain has quit [(Max SendQ exceeded)]
acertain has joined #nixos
<danbst> bjpbakker: meanwhile, there are tons of issues on Nixpkgs with your's error message, but for other packages
<ixxie> danbst: unless he did some non-orthodox options
<ixxie> they*
<bjpbakker> danbst: I have a customized avahi (with libdnssd-compat enabled), that causes dbus and firefox to be incompatible with the binary caches
<bjpbakker> ixxie: exactly :)
uralbash has joined #nixos
uralbash has left #nixos []
<danbst> bjpbakker: oh, I have this warning too
<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
NixOS_GitHub has left #nixos []
stepho has joined #nixos
<nixos-users-wiki> "Packaging Software" created by makefu https://git.io/v9AHt
takle has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v9AH3
<NixOS_GitHub> nixpkgs/master d4b3c86 Peter Hoeg: editorconfig-core-c: minor cleanups
NixOS_GitHub has left #nixos []
<nixos-users-wiki> "Packaging Software" edited by makefu https://git.io/v9AH5
JagaJaga has joined #nixos
tommyangelo_ has joined #nixos
reinhardt has joined #nixos
goibhniu1 has joined #nixos
ravloony has quit [(Ping timeout: 240 seconds)]
goibhniu has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
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?
<LnL> what are you referring to?
<trikl> Function patterns
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #25853: thunderbird, thunderbird-bin: 52.1.0 -> 52.1.1 (master...thunderbird-bin-52.1.1) https://git.io/v9xJB
NixOS_GitHub has left #nixos []
<nixy> trikl: Where exactly are you seeing that?
<trikl> Oh, right, it was referring to that particular example
<trikl> Nevermind :S
<nixy> Yes
<LnL> yeah that's what I was thinking
<nixy> Now is the part where I get to feel smart for doing nothing and contributing nothing :D
<trikl> You made me reread it, so there's that
<LnL> alltho just 3 is not really correct since the name is important
<trikl> And why not return a partially applied function if not all the required keyword arguments are supplied?
<nixy> trikl: Partially applied functions can be done, but you have to be a bit more intentional with them
<LnL> partial application only works with ordered arguments
<trikl> nixy: So define a new function with the remaining args that wraps the original one?
<nixy> tilpner: You would do something like `x: y: z: { ... }: z + y + x` to get a partially appliedish version of that
<nixy> Even then not quite, because you would have to pass an empty set before it evaluates
<trikl> Because of the inner `...` right?
bjpbakker has quit [(Remote host closed the connection)]
<danbst> btw `{ ... }@a: with a; x + y + z` is same as `a: with a; x + y + z`
<trikl> I really miss one of those firefox search engine "miniaddons" for nixos and nixpkgs
takle_ has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
<LnL> https://search.nix.gsc.io is really nice if you want to search the repository
<trikl> Cheers!
nh2 has joined #nixos
trikl has quit [(Quit: Lost terminal)]
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?
<LnL> don't think hound has any configuration except for max-concurrency-indexers
<sphalerite> gchristensen: https://github.com/etsy/hound/issues/239
<sphalerite> back in February, no response
<gchristensen> ah yeah
tommyangelo_ has quit [(Remote host closed the connection)]
tommyangelo_ has joined #nixos
<gchristensen> I think that is intentional from their html/template library
<gchristensen> if you can make nginx fix it somehow, I'll do it :P
<LnL> you could probably have nginx just return a static response
<gchristensen> :O
takle_ has quit [(Ping timeout: 268 seconds)]
<gchristensen> that'd fix the other bug, too
<gchristensen> template="http://search.nix, where it should be https
<gchristensen> well now the problem is I don't know where I left that server's nixops deployment.
kloix has joined #nixos
hex20dec has joined #nixos
filterfish has quit [(Remote host closed the connection)]
cpennington has quit [(Remote host closed the connection)]
filterfish has joined #nixos
takle has joined #nixos
lsix has joined #nixos
filterfish has quit [(Ping timeout: 268 seconds)]
civodul has quit [(Ping timeout: 240 seconds)]
spacefrogg has joined #nixos
civodul has joined #nixos
iyzsong has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lufia opened pull request #25856: google-app-engine-go-sdk: init at 1.9.53 (master...init-goappengine) https://git.io/v9x3S
NixOS_GitHub has left #nixos []
acertain has joined #nixos
acertain has quit [(Max SendQ exceeded)]
<sphalerite> gchristensen: No, I'm pretty sure it's not intentional. It should be using text.template or whatever, not html.template
<sphalerite> but yes, having nginx return a static response would be a decent workaround :D
<gchristensen> sorry I mean intentional from the persspective of their library is doing it on purpose
<sphalerite> oh right, yes
<LnL> is it just me or do remote builds with a different platform no longer work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel pushed 1 new commit to master: https://git.io/v9xGZ
<NixOS_GitHub> nixpkgs/master 4fd23d7 Thomas Tuegel: fontconfig-penultimate: 0.3.4 -> 0.3.5...
NixOS_GitHub has left #nixos []
leat has quit [(Ping timeout: 240 seconds)]
acertain has joined #nixos
<gchristensen> LnL: WFM from x86-64 building an aarch64
leat has joined #nixos
<LnL> hydra builds work fine for me but nix-build --argstr system x86_64-darwin doesn't
<gchristensen> nix-build . -A hello --option system aarch64-linux is what I did
DutchWolfie has quit [(Quit: Konversation terminated!)]
<LnL> hmm, let me try with --option
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/v9xGF
<NixOS_GitHub> nixpkgs/master 4bca428 Tim Steinbach: oh-my-zsh: 2017-03-30 -> 2017-05-03
<NixOS_GitHub> nixpkgs/master 6960bc7 Tim Steinbach: Merge pull request #25843 from NeQuissimus/oh-my-zsh_2017_05_03...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/v9xGb
<NixOS_GitHub> nixpkgs/master 336b044 Tim Steinbach: linux-testing: 4.11-rc7 -> 4.12-rc1
<NixOS_GitHub> nixpkgs/master 8eb302d Tim Steinbach: Merge pull request #25792 from NeQuissimus/linux_4_12_rc1...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #25841: atom: 1.16.0 -> 1.17.0 (master...atom_1_17_0) https://git.io/v9Acu
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<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?
rcschm has joined #nixos
<LnL> hke: nix-repl '<nixpkgs>' is also useful to find stuff (it has tab completion)
<LnL> gchristensen: nixos-users/wiki?
<LnL> :)
<gchristensen> d'oh :P
ryantrinkle has quit [(Ping timeout: 240 seconds)]
nadley has joined #nixos
<ocharles> Hmm, my qemu environment is practically unusable. is that to be expected?
<qknight_> LnL: no errors
<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/master 94c47b0 Bjørn Forsman: vino: add missing gsettings schema...
<NixOS_GitHub> nixpkgs/master f9633c7 Bjørn Forsman: nixos/gnome3: fix screen sharing...
NixOS_GitHub has left #nixos []
<qknight_> LnL: i now just cloned the jobset and removed the original
simukis_ has quit [(Quit: simukis_)]
ij has left #nixos ["WeeChat 1.7.1"]
MarcWeber has quit [(Remote host closed the connection)]
Raimondii has joined #nixos
<ocharles> ok sweet, solved my vm woes. Just needed to give it more than 128mb ram :p
<qknight_> ocharles: linux guest?
<ocharles> qknight_: yes, it's a test as per nixos test modules
Raimondi has quit [(Ping timeout: 268 seconds)]
Raimondii is now known as Raimondi
reinhardt has quit [(Quit: Leaving)]
<gchristensen> domenkozar: amazing, how many job postings does that make this week?
<gchristensen> 2 or 3?
derjohn_mob has quit [(Ping timeout: 268 seconds)]
rcschm has quit [()]
joshie has joined #nixos
<domenkozar> 2 afaik
<steveeJ> pierron_: is it currently possible to install rust-nightly-x86_64-unknown-none-gnu from the mozilla-nixpkgs overlay?
<pierron_> steveeJ: yes.
<pierron_> steveeJ: are you on a x64 system?
<steveeJ> pierron_: yes
<steveeJ> note the "none" for the OS type. I want to compile for bare-metal
<steveeJ> not linux
<pierron_> steveeJ: oh … is that a different target?
<gchristensen> domenkozar: so amazing.
alx741_ has quit [(Quit: alx741_)]
eacameron has joined #nixos
alx741 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] garbas closed pull request #25853: thunderbird, thunderbird-bin: 52.1.0 -> 52.1.1 (master...thunderbird-bin-52.1.1) https://git.io/v9xJB
NixOS_GitHub has left #nixos []
<pierron_> steveeJ: Then I honestly have no idea about cross compilation, but your pull request should enable that, right?
Rotaerk has quit [(Quit: Leaving)]
<steveeJ> pierron_: yes, check "rustc --print target-list"
<steveeJ> pierron_: it's bkchr's PR, not mine ;-)
<pierron_> steveeJ: hum bkchr pull request https://github.com/mozilla/nixpkgs-mozilla/pull/24
orivej has quit [(Ping timeout: 246 seconds)]
<pierron_> steveeJ: I think that in the mean time you might check out his branch.
<pierron_> steveeJ: and see if you can add this in the list of targets.
* pierron_ lost in rustc changes.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] garbas closed pull request #25827: varnish: 5.0.0 -> 5.1.2 (master...pkg-update/varnish) https://git.io/v9b5X
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<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.
<gchristensen> danbst: no disclaimer needed :P
marsel has quit [(Ping timeout: 246 seconds)]
<swflint> Awesome! Thanks!
Sonarpulse has joined #nixos
erasmas has joined #nixos
proteusguy has joined #nixos
matthewbauer has joined #nixos
johnsonav has quit [(Ping timeout: 240 seconds)]
bjpbakker has joined #nixos
<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.
<tsmeets> storePaths=$(perl ${pkgs.pathsFromGraph} closure-*)
<tsmeets> oops
<tsmeets> disasm: I modified nixos/lib/make-ext4-fs.nix to 'https://gist.github.com/TomSmeets/00c56dc8e17a01fd897e25641850d5d3'
<nixos-users-wiki> "Nix NixOS NixOps in real world" created by danbst https://git.io/v9xKe
ryantrinkle has quit [(Ping timeout: 246 seconds)]
<tsmeets> (ignore the above paste error from 16:44)
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Dezgeg> tsmeets: modifying make-ext4-fs.nix isn't going to work, but you can just use nixos-install
<danbst> bjpbakker: how'd that happen?
<Dezgeg> from the device
<bjpbakker> danbst: not sure, tweaked my xmonad config to handle this dialog properly (i.e. fixed size)
<tsmeets> Dezgeg: ah yes, makes sense.
<goibhniu> gaqzi: did you garbage collect already?
MarcWeber has joined #nixos
<goibhniu> gaqzi: is it using synaptics?
<tsmeets> Dezgeg: (I did change sd-image.nix: 'https://gist.github.com/TomSmeets/4e162610d146da26b88dea0726630f6e')
<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
<gchristensen> O.o
riclima has joined #nixos
<clever> if you directly run ld.so on an elf binary, you dont have to fix the ld.so path
<clever> and if you poppulate LD_LIBRARY_PATH, you dont have to fix rpath
marsel has joined #nixos
<clever> that allows patchelf to fix itself
radvendii has joined #nixos
<gchristensen> that is amazing
bjpbakker has quit [(Ping timeout: 240 seconds)]
<clever> gchristensen: i believe in total, this takes in a staticly linked busybox, not even in a tar, and the bootstrap tools tarball
<clever> gchristensen: and then using only plaintext scripts, it fixes the tools to work under nix
<gchristensen> we have some very intelligent, clever people working on nixos.
Tucky has quit [(Ping timeout: 272 seconds)]
<clever> this uses a raw call to derivation to build that
<gchristensen> whoa, not many of6 those
<clever> but ghc wont need anything that crazy, because it has a fully working stdenv to stand on
<gchristensen> stdenv.mkDerivation is a real wonder
bjpbakker has joined #nixos
c0c0n3 has joined #nixos
<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
bjpbakker has quit [(Ping timeout: 268 seconds)]
digitus has joined #nixos
<gchristensen> you could also put in a profile script that if $USER = ... add <foopkg> to the PATH
<c0c0n3> clever: thx for the link!
nschoe has quit [(Quit: Program. Terminated.)]
takle has quit [(Read error: Connection reset by peer)]
<c0c0n3> gchristensen: oh right! much better, thx much appreciated!
<gchristensen> good luck :)
takle has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
johnsonav has quit [(Ping timeout: 258 seconds)]
c0c0n3 has left #nixos []
peacememories has joined #nixos
detran` has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
detran has quit [(Ping timeout: 268 seconds)]
<gchristensen> btw I added the nixos users wiki to the search.nix.gsc.io index
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
huehue has joined #nixos
Filystyn has quit [(Read error: Connection reset by peer)]
huehue has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pjones opened pull request #25860: mynewt-newt: init at 1.0.0 (master...pjones/mynewt-newt) https://git.io/v9xx7
NixOS_GitHub has left #nixos []
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
Wizek__ has quit [(Ping timeout: 268 seconds)]
takle_ has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
radvendii has quit [(Quit: Lost terminal)]
takle_ has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
kampfschlaefer has joined #nixos
sitwon has quit [(Ping timeout: 272 seconds)]
derjohn_mob has quit [(Ping timeout: 240 seconds)]
reinzelmann has joined #nixos
fresheyeball has joined #nixos
<fresheyeball> hey out there
<fresheyeball> I need an interactive man in the middle proxy for some debugging
<fresheyeball> so I wrote a derviation for a tool I used in the past
mizu_no_oto has joined #nixos
<fresheyeball> but I get this error
<fresheyeball> unpacker appears to have produced no directories
<fresheyeball> which I do not understand
iyzsong has quit [(Ping timeout: 245 seconds)]
<shlevy> fresheyeball: Hey
<shlevy> Taking a look
seagreen has quit [(Ping timeout: 272 seconds)]
<shlevy> fresheyeball: check the output of nix-build -A mitmproxy.src
seagreen has joined #nixos
<shlevy> fresheyeball: If it is indeed atarball, unpack it and verify it creates a source directory
<fresheyeball> shlevy: it is, but I thought that was automatic
<shlevy> It should be, yes
<shlevy> That error suggests that the src nix is seeing isn't a tarball or doesn't unpack to some directory
<fresheyeball> well I'm sure its a tar ball
<shlevy> Says here it's an HTML document
<fresheyeball> oh I guess it doesn't create dir
<fresheyeball> it just unpacks the binaries into the same folder as the tar
Mateon3 has joined #nixos
<shlevy> Ah, whoops, forgot to do -L in my curl
<shlevy> Ah, OK
<shlevy> I forget the proper way to do that, one sec...
Mateon1 has quit [(Ping timeout: 246 seconds)]
Mateon3 is now known as Mateon1
<shlevy> fresheyeball: Try adding sourceRoot = ".";
acertain has joined #nixos
acertain has quit [(Read error: Connection reset by peer)]
acertainkind has joined #nixos
<fresheyeball> danbst: hmm maybe someone added it and my channel is just out of date
<fresheyeball> danbst: actually that failed
<fresheyeball> but in a much more complex fashion
<fresheyeball> shlevy: I added sourceRoot = ".";
<fresheyeball> and it does this now
<shlevy> uum
<shlevy> :o
simukis_ has joined #nixos
hotfuzz_ has joined #nixos
betaboon has joined #nixos
<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
bjpbakker has joined #nixos
<fresheyeball> I don't understand
<danbst> fresheyeball: builds for me
hotfuzz has quit [(Ping timeout: 258 seconds)]
oida has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/v9pJe
<NixOS_GitHub> nixpkgs/master 371ebc8 John Ericson: lib platform parsing: Fix windows support to conform to LLVM, take 2...
<NixOS_GitHub> nixpkgs/master 6d599b7 John Ericson: Merge pull request #25859 from Ericson2314/platform-normalize...
NixOS_GitHub has left #nixos []
<fresheyeball> danbst: that worked
<fresheyeball> installing it a more normal way it fails durring its testing phase
bjpbakker has quit [(Ping timeout: 268 seconds)]
<danbst> need replace requests with requests_1
<danbst> or update mitmproxy source
cpennington has joined #nixos
<fresheyeball> :q
fresheyeball has quit [(Quit: WeeChat 1.7.1)]
mudri has quit [(Ping timeout: 260 seconds)]
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…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #25862: linux cross stdenv: Fix eval errors (master...linux-stdenv-cross) https://git.io/v9pky
NixOS_GitHub has left #nixos []
hotfuzz has joined #nixos
digitus has quit [(Quit: digitus)]
peacememories has joined #nixos
Wizek__ has joined #nixos
<dtz> mmm cross goodness
Filystyn has joined #nixos
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)]
takle has joined #nixos
justelex has joined #nixos
<zx2c4> somebody wanna take a look at https://github.com/NixOS/nixpkgs/pull/25646 ?
dridus has quit [(Quit: znc? wassat?)]
darlan has joined #nixos
<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 joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
oever has joined #nixos
taeradan has joined #nixos
<Sonarpulse> anyone want to review?
<Sonarpulse> I feel like I am sinning merging + reviewing my own cross PRs
<Sonarpulse> but.... not to many know what exactly I am doing
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #25864: xfce4-volumed-pulse: 0.2.0 -> 0.2.2. (master...nixos-master) https://git.io/v9pGT
NixOS_GitHub has left #nixos []
Wizek__ has quit [(Ping timeout: 246 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.)]
<clever> zsnes = callPackage_i686 ../misc/emulators/zsnes { };
peacememories has joined #nixos
ixxie has quit [(Ping timeout: 246 seconds)]
orivej has joined #nixos
<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...
NixOS_GitHub has left #nixos []
<dtzWill> taktoa: -`ღ´-
<nh2> dtz: yes, on this channel, it should be in the logs
<dtzWill> ty ^.^
<nh2> hmm I cannot find it in the logs
<codedmart> Can you install ruby gems with nix-env?
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
leat has quit [(Ping timeout: 240 seconds)]
<nh2> when using nix channels, how can I know which nixpkgs commit I'm on?
fez_ has joined #nixos
derjohn_mob has joined #nixos
<clever> [root@amd-nixos:~]# nix-env -p /nix/var/nix/profiles/per-user/root/channels -q
<clever> nixos-17.09pre106299.7f3b857d0d
kugelblitz has joined #nixos
<kugelblitz> i want to use a custom udev rule in nixos, say: SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev". How do I do that?
<clever> kugelblitz: https://nixos.org/nixos/options.html#udev.extraru
athan has quit [(Remote host closed the connection)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
matthewbauer has quit [(Remote host closed the connection)]
matthewbauer has joined #nixos
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #25837: v8: fixes darwin build (master...v8-on-osx) https://git.io/v9N7n
NixOS_GitHub has left #nixos []
<kiloreux> Is it possible to install a nixpkgs revision using nix-env -if https://github.com/NixOs/nixpkgs/archive/revision.tar.gz and then also add that same link to NIX_PATH ?
<kiloreux> NIX_PATH=nixpkgs=https://github.com/NixOs/nixpkgs/archive/revision.tar.gz
<LnL> yes, that also works
<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
<LnL> matthewbauer: nix-env -p /tmp/foo --set $(nix-prefetch-url --print-path --unpack https://github.com/NixOS/nixpkgs/archive/master.tar.gz | tail -n1)
<AndreasO> Problem booting from usb, got a message saying a file is missing.. like "isolinux.iso" i think. it goes fast
<clever> AndreasO: how did you image the usb?
<AndreasO> clever: dd
<clever> directly to the root of the device?
htr has joined #nixos
kiloreux has quit [(Client Quit)]
tsmeets has quit [(Quit: leaving)]
ertes has joined #nixos
kiloreux has joined #nixos
<AndreasO> clever: sudo dd if=nixos-graphical-17.03.1123.4a7a03913d-x86_64-linux.iso of=/dev/sdb1
<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
<Sonarpulse> this seems like a hanging build
<Sonarpulse> but I cannot restart
<Sonarpulse> because it is dep of job's root derivation
<Sonarpulse> halp
<Sonarpulse> pls
athan has joined #nixos
<Infinisil> katyucha: != "" should work
<Infinisil> `echo '"test" != ""' | nix-repl`
<Infinisil> Welcome to Nix version 1.11.8. Type :? for help.
<Infinisil> nix-repl> "test" != ""
<Infinisil> true
<Infinisil> nix-repl>
<Infinisil> Well it works for me anyways
Guest36244 has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #25867: Fix cross compilation of some GHC deps (master...ghc-deps-cross) https://git.io/v9poi
NixOS_GitHub has left #nixos []
matthewbauer has quit [(Remote host closed the connection)]
telent has quit [(Quit: Lost terminal)]
telent_net has quit [(Quit: Lost terminal)]
mizu_no_oto has joined #nixos
obadz has quit [(Ping timeout: 258 seconds)]
leat has joined #nixos
ertes has quit [(Ping timeout: 258 seconds)]
AndreasO has quit [(Ping timeout: 260 seconds)]
ertes has joined #nixos
preyalone has joined #nixos
tommyangelo_ has quit [(Ping timeout: 272 seconds)]
kugelblitz has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] risicle opened pull request #25868: python metaphone: init at 0.6 (master...ris-metaphone) https://git.io/v9pXf
NixOS_GitHub has left #nixos []
obadz has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v9pX4
<NixOS_GitHub> nixpkgs/master 618f9aa Jörg Thalheim: docker-proxy: remove go references...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v9p1G
<NixOS_GitHub> nixpkgs/master f46b3a0 tv: users-groups module: add per-user packages
<NixOS_GitHub> nixpkgs/master 9464df5 Jörg Thalheim: Merge pull request #25712 from 4z3/per-user-pkgs...
NixOS_GitHub has left #nixos []
goibhniu has joined #nixos
dridus has quit [(Quit: znc? wassat?)]
leat has quit [(Ping timeout: 240 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
sitwon has quit [(Ping timeout: 255 seconds)]
<katyucha> Infinisil: it works ... no problem... but on my 1st test, no ... perhaps a problem between chair and keyboard :)
cyraxjoe has quit [(Ping timeout: 246 seconds)]
jmiven has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v9pDx
<NixOS_GitHub> nixpkgs/master 99587bc Orivej Desh: rdesktop: enable IPv6 support
<NixOS_GitHub> nixpkgs/master c953f8e Jörg Thalheim: Merge pull request #25865 from orivej/rdesktop-ipv6...
NixOS_GitHub has left #nixos []
jmiven has joined #nixos
zeus_ has joined #nixos
<kiloreux> I am getting cross compliation error when trying to run this gist to https://gist.github.com/Kiloreux/4e841ee727439952171ab00a72d954a7
<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
<NixOS_GitHub> nixpkgs/master a4f7724 Daiderd Jordan: Merge pull request #25309 from acowley/rtags-id...
NixOS_GitHub has left #nixos []
goibhniu has quit [(Ping timeout: 246 seconds)]
Wizek__ has joined #nixos
<spacekitteh[m]> can someone update the hackage packages?
Filystyn has quit [(Quit: Konversation terminated!)]
nh2 has quit [(Quit: Leaving.)]
Mic92 has quit [(Quit: WeeChat 1.7.1)]
bjpbakker has quit [(Ping timeout: 268 seconds)]
Itkovian_ has joined #nixos
Infinisil has quit [(Quit: leaving)]
Itkovian has quit [(Ping timeout: 240 seconds)]
johnramsden has joined #nixos
hiratara has quit [(Quit: ZNC - http://znc.in)]
jbo has quit [(Ping timeout: 268 seconds)]
hiratara has joined #nixos
jbo has joined #nixos
<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 ?
<clever> samueldr: the entire source will be kept around
<samueldr> (obviously :))
<clever> but you could copy that one .rules file to a new derivation, and refer to the copy
<clever> then the source can be GC'd
<clever> thats about the only downside i can think of
stepho has joined #nixos
<samueldr> not that much of a downside, personally
<samueldr> that's neat
sigmundv__ has joined #nixos
stepho has quit [(Client Quit)]
Wizek has joined #nixos
stepho has joined #nixos
phreedom has joined #nixos
stepho has quit [(Read error: Connection reset by peer)]
stepho has joined #nixos
stepho has quit [(Client Quit)]
Wizek_ has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/v9pNc
<NixOS_GitHub> nixpkgs/master 6e50243 Jason A. Donenfeld: wireguard: preshared-key is now an attribute of the peer...
<NixOS_GitHub> nixpkgs/master ef018d8 Jason A. Donenfeld: wireguard: 0.0.20170421 - 0.0.20170517...
<NixOS_GitHub> nixpkgs/master 64acaa1 Jörg Thalheim: Merge pull request #25646 from zx2c4/wg-psk-change...
NixOS_GitHub has left #nixos []
<pie_> has anyone been able to get seamless windows working? :/
<pie_> i mean the stuff that you virtualize windows and then you can use windows windows as normal windows
<pie_> :PP
Mic92 has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
<johnramsden> pie: What Is this 'windows' you speak of? Sounds like some inferior operating system ;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #25872: sudo: 1.8.19p2 -> 1.8.20 (master...update/sudo-1.8.20) https://git.io/v9pNo
NixOS_GitHub has left #nixos []
<pie_> johnramsden, yeah yeah i know
<pie_> seriously though ive tried so much crap
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:
<johnramsden> imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
<clever> johnramsden: it will import that file into your config, https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/scan/not-detected.nix
<clever> and all it does right now, is enable a bunch of firmware
<johnramsden> Yeah, why is it there though? Is it necessary
<johnramsden> Oh
<manveru> i'll get some sleep now... might try this a bit more on the weekend
<johnramsden> ok
Moredread has quit [(Ping timeout: 255 seconds)]
<kiloreux> Could anyone explain to me why I am getting a cross compiler error when I am specifying the correct architecture for my default.nix files please https://gist.github.com/Kiloreux/4e841ee727439952171ab00a72d954a7
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] unaizalakain opened pull request #25873: metar: init at 20161013.1 (master...master) https://git.io/v9pxd
NixOS_GitHub has left #nixos []
mkoenig has joined #nixos
<clever> kiloreux: what is the exact error its giving?
Moredread has joined #nixos
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<kiloreux> It is giving me this error
hellrazo1 has quit [(Quit: WeeChat 1.7.1)]
hamishmack has joined #nixos
<kiloreux> I am on Ubuntu 16.04 x86_64
<clever> kiloreux: build it with -K and then check the config.log file it made in /tmp/
<Sonarpulse> if my PR to staging needs a master merge too
<Sonarpulse> should I just merge master and then make my PR?
<kiloreux> I should add -K to the confguration flags in my nix files?
<kiloreux> Okay i got it
<kiloreux> Added it to the nix-env
markus1189 has joined #nixos
markus1199 has joined #nixos
<Sonarpulse> clever: might you know the answer? :)
<clever> Sonarpulse: i'm not up to date on what the rules are about merging things in nixpkgs
<clever> i just make a PR and wait for somebody else to do it
<Sonarpulse> well I've already cross that line. :D
<Sonarpulse> if I just make the commit off master into staging
<Sonarpulse> the PR looks way bigger than it is
<Sonarpulse> I'll just open as is and leave a message
<clever> ah, id try to avoid making it look artificialy big
<kiloreux> clever, That was inside config.log
<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
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nocoolnametom opened pull request #25877: znc service: refactor config generation (master...update-znc) https://git.io/v9ph7
NixOS_GitHub has left #nixos []
<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
musicmatze has joined #nixos
<clever> oops, no, needs to be a bit more complex
JayVii has quit [(Ping timeout: 260 seconds)]
thc202 has quit [(Ping timeout: 258 seconds)]
musicmatze_ has joined #nixos
<clever> kiloreux: with this, you can now nix-shell default.nix -A env1
obadz has joined #nixos
<kiloreux> We are trying to use this in a production system to give users the ability to process their images based on their desired stack.
<kiloreux> And we thought that we will be using something like "imagemagick-version input ...."
<clever> kiloreux: you could modify the postInstall for each imagemagick, to rename everything in $out/bin/