ona has quit [(Read error: Connection reset by peer)]
sellout- has joined #nixos
rnhmjoj has quit [(Ping timeout: 240 seconds)]
boomshroom has joined #nixos
<boomshroom>
Haven't been here in a while.
ona has joined #nixos
<boomshroom>
I tried to do an update and got `error: anonymous function at /[snip]/steam/chrootenv.nix:1:1 called with unexpected argument ‘newStdcpp’`
<boomshroom>
Did something with Steam change without the manual getting updated?
takle_ has quit [(Remote host closed the connection)]
<Infinisil>
Hmm, looking into it
_ris has quit [(Ping timeout: 252 seconds)]
takle has joined #nixos
<boomshroom>
My configuration includes `environment.systemPackages = [(pkgs.steam.override { newStdcpp = true; })];` as specified in the Nixpkgs manual to make OpenGL work on AMD.
<Infinisil>
For some reason that argument is not present in unstable, it got removed at some point, trying to find the commit
<sellout->
So, I recently saw something about setting up shellAliases like `"stack" = "${pkgs.tree}/bin/stack --nix";` so you don’t need to have a package pre-installed for the alias to work.
takle_ has joined #nixos
pxc1 has quit [(Ping timeout: 252 seconds)]
<sellout->
Ok, I was going somewhere with that, but typing it out made me rethink it. I’ll be back :D
<Infinisil>
boomshroom: Seems like you can just remove it, but this PR broke backwards compatibility
jb55 has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
acarrico has joined #nixos
pie_ has quit [(Ping timeout: 252 seconds)]
MP2E has joined #nixos
<sellout->
Ok, so … tradeoffs between defining an alias like `"stack" = "${pkgs.stack}/bin/stack --nix";` and one like `"stack" = "stack --nix"` (with stack installed via systemPackages)?
kiloreux has quit [(Ping timeout: 255 seconds)]
noobineer has joined #nixos
noobineer has quit [(Max SendQ exceeded)]
<sellout->
Also, is there a better option than `shellAliases = { "ns-scala" = "nix-shell '<nixpkgs>' -p sbt --run sbt" };` for shells I’m likely to run identically in multiple places?
noobineer has joined #nixos
jcarr has quit [(Ping timeout: 240 seconds)]
<tilpner>
sellout- - There will be a difference for package that install more than binaries, e.g. those that come with manpages
<tilpner>
sellout- - Other tools will also not be able to pick programs from your PATH
<tilpner>
(E.g. cargo doc --open opens chrome for me instead of firefox because I don't have firefox in my PATH, even though firefox is my primary browser)
<tilpner>
And one edge-case scenario: absolute aliases need the shell to reload its config to update, PATH aliases do not. This matters if the referenced paths have been gc-ed while the shell is open
<tilpner>
Regarding your second question, why do you need '<nixpkgs>' in there?
bulldog has joined #nixos
<tilpner>
I believe a better solution would be to put a default.nix/shell.nix into your project, then run nix-shell (aliased to nis) to bring the required dependencies in
jb55 has quit [(Ping timeout: 248 seconds)]
acarrico has quit [(Ping timeout: 248 seconds)]
cpennington has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
acarrico has joined #nixos
<bulldog>
Hello, I am trying to add a custom Python module (from PyPi) into my NixOS config. So far I tried creating a separate file for the package (following this as an example https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/cachetools/default.nix) and importing it inside my config, like this: environment.systemPackages = with pkgs; [(python3.withPackages(ps: with ps; [ (import /home/user/nix/jupyter_contrib_nbex
<bulldog>
but this seems to do absolutely nothing, can't figure out what is wrong >.<
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg opened pull request #29827: qt5, plasma-5: Make 'bin' output the first one (master...qt5-shuffle-outputs) https://git.io/vdqqe
<sellout->
tilpner: Thanks, that’s really helpful. And you’re right, I don’t need `'<nixpkgs>'` there – I think I just got that from the Nix manual and didn’t think about it.
Wizek has quit [(Quit: Connection closed for inactivity)]
<sellout->
tilpner: My concern with having shell.nix is that I build a bunch of different Scala projects somewhat irregularly, and if I change what I want to use for shell.nix, then I suddenly have a bunch that are out of date.
gandreani has joined #nixos
ryanartecona has joined #nixos
gandreani has quit [(Ping timeout: 240 seconds)]
<tilpner>
sellout- - One more: If you want another program to use your ns-scala (or any other alias), they have to spawn a shell and read your config. It would be better (IMO) to create a bunch of tiny wrappers that act like aliases and put those into PATH
ryanartecona has quit [(Ping timeout: 260 seconds)]
<tilpner>
That's usually annoying to do by hand, but we have Nix for that
coreteam has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] teto opened pull request #29828: cleanSource now filters cmake cache (master...cleanSource) https://git.io/vdqmS
NixOS_GitHub has left #nixos []
bfrog has quit [(Quit: WeeChat 1.9.1)]
Neo-- has quit [(Ping timeout: 248 seconds)]
jcarr has joined #nixos
jb55 has joined #nixos
lambdamu has joined #nixos
lambdamu_ has quit [(Ping timeout: 240 seconds)]
<sellout->
tilpner: Oh, that makes sense. Thanks again.
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vdqY7
<NixOS_GitHub>
nixpkgs/master eba5dd8 Peter Hoeg: cwiid: boy scout cleanups
NixOS_GitHub has left #nixos []
hellrazo1 has joined #nixos
Supersonic112_ is now known as Supersonic112
sigmundv has quit [(Ping timeout: 248 seconds)]
hellrazor has quit [(Ping timeout: 246 seconds)]
acarrico has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #29830: kodi: [WIP] move to cmake which is the default from 18.0 (master...f/kodi) https://git.io/vdqOq
NixOS_GitHub has left #nixos []
<bulldog>
Does anyone know how come jupyter_core is not in nixos-unstable?
<bulldog>
It is weird, I can install jupyter and it works, but some other packages I'm trying to build require jupyter-core, which seems to be nowhere
sivteck has joined #nixos
kiloreux has joined #nixos
sivteck has quit [(Quit: user missing.)]
ona has quit [(Ping timeout: 248 seconds)]
data8 has joined #nixos
kkini has quit [(Remote host closed the connection)]
Piece_Maker has joined #nixos
ryanartecona has joined #nixos
Acou_Bass has quit [(Ping timeout: 255 seconds)]
Piece_Maker is now known as Acou_Bass
ShalokShalom has quit [(Ping timeout: 248 seconds)]
takle_ has quit [(Remote host closed the connection)]
ryanartecona has quit [(Ping timeout: 240 seconds)]
<tilpner>
cannot import '/nix/store/kh1jfhlw9kdbqpzrdfh2snfr1m4pxqg4-riot-electron-nix-ec1f0e61ee6822791e57b91b679e93d2c38ec56c-src', since path '/nix/store/ylcq7flzzmnshrbf9gd8crfmxsgxh678-riot-electron-nix-ec1f0e61ee6822791e57b91b679e93d2c38ec56c-src.drv' is not valid, at /nix/store/hj82dvnaj19b2n37c1lv2n5ki45gbc1f-nixpkgs-channels-1b8c7786ee75b834a76b443381aa7033372dffae-src/lib/customisation.nix:115:50
<tilpner>
In both cases do parts of an overlay depend on Nix expressions fetched via fetchFromGitHub
<bulldog>
Infinisil: Ah yes. I think I am just not passing it to my custom Python package
<tilpner>
bulldog - Infinisil left
<bulldog>
Unrelated question: is there a way to have a set inherit all the properties of another set.
<tilpner>
bulldog - Instead of { inherit (foo) *; bar = 42; } you would do foo // { bar = 42; }
jellowj has quit [(Ping timeout: 252 seconds)]
<tilpner>
(Or ... // foo)
<clever>
tilpner: have you had any improper shutdowns recently?
<tilpner>
clever - Yes. What was the effect of those?
<bulldog>
tilpner: Ah cool. But crap, doesn't work for my use case. Basically want to pass a lot of dependencies to my Python package (like here), and wanted to avoid having to pass each one
<clever>
tilpner: some filesystems will randomly truncate files
<clever>
tilpner: how big is /nix/store/ylcq7flzzmnshrbf9gd8crfmxsgxh678-riot-electron-nix-ec1f0e61ee6822791e57b91b679e93d2c38ec56c-src.drv ?
ebzzry_ is now known as ebzzry
<bulldog>
tilpner: but if I do `(import /home/user/nix/my_pkg.nix (ps // {stdenv = stdenv;}))` I get an error because I am passing unexpected args
<tilpner>
clever - That was gc-ed away, I'll paste last line of the new error
<tilpner>
cannot import '/nix/store/2a13h476p2lab4gk34bhfx9zy2id02w4-nixpkgs-mozilla-7e54fb37cd177e6d83e4e2b7d3e3b03bd6de0e0f-src/firefox-overlay.nix', since path '/nix/store/i2vr71wn0v3yvbkr1sxspwg0piggcnkd-nixpkgs-mozilla-7e54fb37cd177e6d83e4e2b7d3e3b03bd6de0e0f-src.drv' is not valid, at /cfg/nixos/overlays/20-firefox-overlay.nix:5:4
<clever>
bulldog: this appears as nix-env -iA foo.hello
<clever>
tilpner: not really
<bulldog>
clever: But I want to use it in my nixos config as well
<clever>
bulldog: you can just put a path directly in the nix expression
<clever>
bulldog: import /home/clever/nixpkgs {};
<tilpner>
Hmm, /nix/var/nix/db/db.sqlite passes a pragma integrity_check;
<clever>
tilpner: the sqlite db is heavily protected by sqlite code
<clever>
tilpner: but i have seen the sqlite db wind up "newer" then the data in /nix/store/
<clever>
tilpner: files within the store got truncated, and where at an older state then the db
<tilpner>
Yeah, I'm just grasping at straws :/
cpennington has quit [(Remote host closed the connection)]
<tilpner>
Obviously I don't know what's happening, but it appears like Nix believes these checkouts to exist (doesn't fetch them), when they actually don't
<clever>
tilpner: try evaluating parts of the expression in nix-repl
<tilpner>
After evaluating "callPackage ./pkgs/riot-electron.nix {}", it successfully lists "racket"
<clever>
tilpner: that wasnt present in either file in the last gist
<tilpner>
I assume that's because it stopped at the first error
<tilpner>
(It was in the other gist)
<tilpner>
Even after a gc it still works :/
<clever>
nix should re-generate all drv files automatically
<tilpner>
All drv files? On what event?
<clever>
when the derivation object for it is evaluated
takle has joined #nixos
<tilpner>
There's nothing I can do about future inconsistencies, right? A magical "be extra careful and keep three journals" button... I'll try to REISUB more in the future, but even that doesn't always work on freezes
<bulldog>
Ok, I added my custom repo to the config, and created nix expressions for my Python modules inside /home/user/nixpkgs/pkgs/development/python-modules. But I get an undefined variable when trying to include my package in (import custompkgs {}).python3.withPackages
<bulldog>
do I maybe have to register the new modules somewhere else?
<clever>
bulldog: did you define custompkgs within that file?
<clever>
bulldog: oh, and double check pkgs/all-packages/python something
<bulldog>
Yeah, not sure if I defined it in an awkward way. Basically I wrapped the main function body in a let in my config. Is that weird?
<bulldog>
Ah ok, top-level/python-packages.nix!
schoppenhauer has quit [(Ping timeout: 248 seconds)]
schoppenhauer has joined #nixos
kiloreux has quit [(Ping timeout: 240 seconds)]
c0ffee152 has quit [(Quit: Lost terminal)]
<clever>
bulldog: yeah, thats the one i was thinking of
rauno has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jb55 opened pull request #29831: trezor-agent: add systemd service (master...trezor-agent-service) https://git.io/vdqnu
<NixOS_GitHub>
[nixpkgs] Ericson2314 closed pull request #20889: [Do not merge*] Restore stdenv debugging at the cost of more complexity (master...stdenv-debug) https://git.io/v1WAK
proteusguy has quit [(Remote host closed the connection)]
endformationage has joined #nixos
jcarr has quit [(Ping timeout: 255 seconds)]
bulldog has quit [(Ping timeout: 260 seconds)]
rauno has joined #nixos
ebzzry has joined #nixos
ebzzry has quit [(Client Quit)]
<MichaelRaskin>
tilpner: just in case, you did run nix-store --verify --check-contents, right?
aneeshusa has quit [(Quit: WeeChat 1.9)]
<MichaelRaskin>
Maybe even with --repair
<MichaelRaskin>
That marks as missing everything that is damaged.
leat has quit [(Quit: WeeChat 1.9)]
proteusguy has joined #nixos
JosW has joined #nixos
phreedom has quit [(Ping timeout: 240 seconds)]
ksbrar has quit [(Quit: WeeChat 1.0.1)]
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
MichaelRaskin has quit [(Quit: MichaelRaskin)]
ixxie has joined #nixos
takle has quit [(Remote host closed the connection)]
jensens has quit [(Ping timeout: 248 seconds)]
leat has joined #nixos
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
jesuspv has joined #nixos
boomshroom has quit [(Ping timeout: 260 seconds)]
reinzelmann has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
eacameron has quit [(Remote host closed the connection)]
michiel_l_ has quit [(Ping timeout: 246 seconds)]
michiel_l has joined #nixos
<richierich_>
Hi all, I've tried my hand at installing nixos on an SSD a few times, but I keep running into an issue where on boot up (nixos stage 1), the machine keeps waiting for the disk to appear and eventually fails
<richierich_>
Could someone help walk me through this process?
<richierich_>
etu: not sure, my last attempt was around a week ago so I don't remember what was in either file, and I'm not sure how to look at them from a liveusb
<etu>
you have to use cryptsetup to unlock the device and then mount it
<etu>
Then you can look
<etu>
I've experienced that the configuration generation doesn't add that line by itself, so I've have had to add it myself for the system to work.
<richierich_>
etu: alright, got it (thanks for the tip!). I do not see any line like that...
<etu>
richierich_: ofc you need to adjust the disk/partition specified:)
<richierich_>
etu: uhh could you clarify how? Sorry about this haha, pretty new to both NixOS and this sort of deep Linux specifications
ryanartecona has joined #nixos
ertes-w has joined #nixos
<etu>
richierich_: You see the weird id thingy at the end? That's generated by your filesystem (I think). So the one I have won't work for you. I usually just do "ls /dev/disk/by-uuid/ -l" to spot which id points to which disk/partition
<richierich_>
etu: right, but how do I know which UUID corresponds to which? I see a few listed in that folder
<richierich_>
etu: oh hang on, answered my own question haha
<etu>
That's why I added -l to see where the symlinks go :)
ryanartecona has quit [(Ping timeout: 240 seconds)]
<richierich_>
etu: yep totally missed that the first time I read it :P
<etu>
Well, you don't have to use the uuid either. But I like it to avoid confusion when moving drives around and such. Doesn't happen very often, but when it does -- it's annoying to have to change things :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vdqBb
<fadenb>
I can see the circular dependency (pam is used by cyrus sasl which is in the dependency chain). Is there an generic approach how to solve this?
<makefu>
in unstable there are no deps in audit it seems
Itkovian has joined #nixos
<makefu>
for actually solving circular deps you have to build an initial package without the dependencies needed later on, like a minimal package
<mudphone>
apparently they are the result of `sudo nixos-rebuilt test`... is this something I can safely remove?
<ocharles>
mudphone: that happens when you `nix-build` something
<ocharles>
oh yea, nixos-rebuild test would do it too
<ocharles>
mudphone: just remove the result symlink, and nix-collect-garbage will do the rest
nh2 has joined #nixos
<mudphone>
ocharles: okay thanks
<sphalerite>
really? nixos-rebuild test creates them?
<sphalerite>
doesn't it just switch to a configuration without making it the next boot?
<mudphone>
that's what I'm seeing
<sphalerite>
Seems like an odd behaviour
<sphalerite>
ooh, unless of course it doesn't even create a boot netry
<sphalerite>
I suppose it makes sense in that case
<mudphone>
I'm a noob... what is the `result` symlink for?
<VLetrmx>
without it your recent build could be garbage collected I think
<mudphone>
ah, okay
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vyp opened pull request #29836: guile-gnome: fix build by building gwrap with guile-2.0 (master...fix/guile-gnome) https://git.io/vdqM2
NixOS_GitHub has left #nixos []
jmsb has quit [(Ping timeout: 240 seconds)]
ixxie has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 11 new commits to release-17.09: https://git.io/vdqM1
<NixOS_GitHub>
nixpkgs/release-17.09 f50da7b Eelco Dolstra: kdoctools: Move bin stuff to the "out" output...
<NixOS_GitHub>
nixpkgs/release-17.09 d2bfefe Eelco Dolstra: postgresql: Add dev output...
<NixOS_GitHub>
nixpkgs/release-17.09 bf92abb Eelco Dolstra: Add some dev outputs...
NixOS_GitHub has left #nixos []
takle has quit [(Remote host closed the connection)]
<michalrus>
Hey, when switching configurations, can I somehow name the builds?
<michalrus>
But not creating new profiles with -p, I think. Hmmm.
mortum5 has quit [(Ping timeout: 240 seconds)]
tmaekawa has quit [(Quit: tmaekawa)]
<michalrus>
I.e. instead of `Configuration 55` I’d like to have `Configuration 55 ${myTextHere}`.
<michalrus>
But w/o new profiles.
<michalrus>
Just for identification reasons.
oida_ has joined #nixos
<michalrus>
Hmmm. I could hack .version_suffix perhaps.
hooo has joined #nixos
<sphalerite>
michalrus: yeah that's a feature I'd really like too
oida has quit [(Ping timeout: 248 seconds)]
<michalrus>
sphalerite: if you don’t care about switching via `nixos-rebuild` and are fine with `nix-build && ./result/switch`, then you can change <nixpkgs>/.version_suffix in that `nix-build`. :P
xdelv has quit [(Ping timeout: 260 seconds)]
pie_ has quit [(Ping timeout: 240 seconds)]
proteusguy has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] volth opened pull request #29841: collectd: fix darwin build (master...patch-63) https://git.io/vdq5f
NixOS_GitHub has left #nixos []
erictapen has quit [(Ping timeout: 240 seconds)]
<mpickering>
I am trying to install "nslookup" which should be in the "bind" package, typing "nix-shell -p bind" doesn't make nslookup available, am I doing something wrong?
chreekat has quit [(Quit: quitting)]
<etu>
mpickering: nix-shell -p dnsutils
<globin>
mpickering: we have that actually split out into dnsutils, otherwise the package is called bind9 IIRC
<etu>
globin: It's just bind, no version
pie_ has joined #nixos
<globin>
Ah I thought we had it in both
acarrico has joined #nixos
<makefu>
mpickering: you can always try 'nix-index' -> nix-locate 'bin/nslookup'
<makefu>
according to this nix-locate it should reside in 'host.dnsutils'
nallar has joined #nixos
hooo has left #nixos ["Leaving"]
<etu>
makefu: How do I find nix-index and nix-locate?
<mpickering>
ah cheers
Ross has quit [(Ping timeout: 240 seconds)]
nallar is now known as Ross
<makefu>
etu: mailing-list
<makefu>
;)
<makefu>
the tool is called nix-index
<makefu>
package*
<etu>
oh
jellowj has joined #nixos
nallar has joined #nixos
<ertes-w>
so just enabling systemd-boot alongside GRUB didn't work, and enabling boot.loader.grub.efiSupport didn't work either… what's the proper way to get a system to support both BIOS and EFI boot?
<NixOS_GitHub>
[nixpkgs] volth opened pull request #29848: libmicrohttpd: fix darwin build (master...patch-64) https://git.io/vdmvo
NixOS_GitHub has left #nixos []
bennofs has joined #nixos
ebzzry_ has quit [(Ping timeout: 246 seconds)]
roni_ has joined #nixos
<roni_>
hey, let's say i was a bad kid and used usermod to create my user a long time ago, but now i want to switch to using the declarative user management from configuration.nix... any danger to my user's state if i make an entry for that user and nixos-rebuild switch?
<roni>
maralorn[m]: i don't know if this will help you, but in one of my shell.nix files, i have this in the shellHook property:
pxc1 has joined #nixos
<roni>
# Allow the use of wheels.
<roni>
SOURCE_DATE_EPOCH=$(date +%s)
reinzelmann has quit [(Quit: Leaving)]
pie_ has joined #nixos
pxc1 has quit [(Ping timeout: 240 seconds)]
leat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vyp opened pull request #29850: guile-lint: fix build by building with guile 1.8 (master...fix/guile-lint) https://git.io/vdmJz
NixOS_GitHub has left #nixos []
jtojnar_ has quit [(Quit: jtojnar_)]
joepie91 has quit [(Quit: Konversation terminated!)]
cpennington has quit [(Remote host closed the connection)]
<roni>
makefu: thanks for the link! i did a sudo garbage collection and opened up a ton of space
<roni>
peti: i didn't realize running that command with sudo would do it systemwide (though really i should have realized that)
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<makefu>
roni: yes, the root user is "special"
<roni>
makefu: doing that will delete the old generations even from the grub menu, correct?
<makefu>
roni: yes, you can however define how many revisions it should clean up
<roni>
right
<makefu>
for example: nix-collect-garbage --delete-older-than 4W
<roni>
i went wild and just said "-d"
<roni>
ah neat
<makefu>
-d removes all the stuff, which is not the current rev
<peti>
roni: Not really. The grub menu stuff is garbage collected by "nixos-rebuild boot".
<roni>
ok cool
<roni>
how big is your root partition (the one that hosts /nix/store)?
<peti>
roni: You need to run "nix-collect-garbage -d" to remove the symlinks from gcroots, and then "nixos-rebuild" will remove the actual files from /boot.
<clever>
and the garbage-collection has to happen as root to be able to delete system profiles
pie_ has joined #nixos
<joepie91___>
kind of lost here - I'm trying to package Arachni, but I'm unsure how to translate this to a Nix package without having the ability to eg. use Bundix and check in a gemset.nix (as it's not my repo); ref https://github.com/Arachni/arachni/wiki/Installation#nix-source
<joepie91___>
does anybody have any pointers?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdmtl
<NixOS_GitHub>
nixpkgs/master c0235ef Robin Gloster: libnfs: fix eval
NixOS_GitHub has left #nixos []
<makefu>
joepie91___: you will need to build it similarly to metasploit
eacameron has joined #nixos
<makefu>
fetch the package, use bundler and bundix to generate the gemfile.nix
<clever>
makefu: oh, does metasploit run on nixos?
<clever>
makefu: but back then, i was on windows, and a single anti-virus run deleted half of metasploit, and i was never able to reinstall the mess, lol
<clever>
makefu: cisco actually
fendor has quit [(Ping timeout: 252 seconds)]
roni has quit [(Ping timeout: 246 seconds)]
<clever>
makefu: and i believe its less of a password leak, and more that you can just dump the entire config file
gandreani has joined #nixos
<makefu>
for the d-link vuln it was pretty much the same
<makefu>
but there were machines on the internet which exposed the http port
<makefu>
joepie91: if i understand it correctly it is only the gemfile which defines a single requirement (similar to python pip)
<makefu>
gemfile.lock then contains all the deps to build this single requirement
<makefu>
the lock file gets generated by bundler
<avn>
yep, and .lock converted to gemset.nix (which actually used for installing stuff)
<makefu>
with this lock file you can generate the corresponding nix expression with `bundix`
bfrog has joined #nixos
<joepie91>
makefu: so do I understand correctly that the Gemfile I linked, or rather the directory it is in, is basically a 'fake' Ruby project/package with metasploit-framework (from git) as its sole dependency
<joepie91>
?*
<makefu>
yes exactly
<joepie91>
(triggering a recursive resolve of *its* dependencies)
<silver_hook>
Is there a trick that I need to apply to install games from GoG? I see that the unofficial GoG downloader is packaged, so I assumed it should work.
<jophish>
Sonarpulse: know anything about that ghc package shadowing thing?
<joepie91>
silver_hook: the important bit is the unpackCmd
<joepie91>
the gog_*.sh files are really just shell script with ZIP data behind them
<joepie91>
so you can feed them into `unzip` and, modulo some warnings, it'll extract the contents
<joepie91>
the 'data' source root is the same for every gog installer
<silver_hook>
joepie91: I noticed that they are a shell script with some binary (assumed zip) attached
<joepie91>
noarch/game seems fairly consistent across games but I don't know if it's universal; to be sure, unzip manually and look at the contents
<joepie91>
yep
<silver_hook>
joepie91: So simply unzipping should work?
<joepie91>
yep :) and dig into the right folder in the unpacked contents
<clever>
makefu: one of the online guides mentions running `msfdb init` but that command doesnt exist within this package
<silver_hook>
So what is that gist paste needed for then?
<joepie91>
silver_hook: if you ever need to package Windows games from GOG, those use InnoSetup and you can use `innoextract` (it's in nixpkgs) to unpack those
<joepie91>
silver_hook: just as an example of a game I've packaged
<joepie91>
that uses the GOG installer
<makefu>
clever: not sure about that one. maybe it didn't got packaged because it resides in another folder
<silver_hook>
joepie91: Oh, so it’s actually packaged for Nix?
<silver_hook>
neat
<makefu>
clever: for just playing with msfconsole building the db should also not be necessary
<joepie91>
silver_hook: innoextract or the game, you mean?
<clever>
makefu: basic things like hosts complain that it cant find the db
<silver_hook>
joepie91: the game
<joepie91>
silver_hook: well, yes, but it's not in nixpkgs yet :) it's in my local nix config repo
<clever>
makefu: heh, if postgresql isnt even enabled, db_connect silently does nothing
<joepie91>
will possibly submit it to nixpkgs at some point, but I first need to figure out how to handle the proprietary source thing
<clever>
makefu: but if postgresql is enabled, db_connect verbosely fails
<silver_hook>
joepie91: And that would be accepted to the main repo?
<joepie91>
silver_hook: there are a few other proprietary things in nixpkgs. I don't know if this particular thing would be accepted, but it's not out of the question
kuznero has quit [(Quit: Page closed)]
<joepie91>
most importantly the proprietary things don't ship with the software itself
<joepie91>
and use requireFile, ie. they expect you to pre-add the sources to the store
<joepie91>
using `nix-store --add` and such
<joepie91>
(--add-fixed? I forget)
<joepie91>
this is what is done for the Oracle JDK for example
<clever>
the help requireFile prints says which one to use
<silver_hook>
joepie91: Cool. Sounds similar to how Gentoo handled some of the proprietary games
jb55 has joined #nixos
<joepie91>
silver_hook: the fetchfile thing you're seeing is a custom hack that uses a local filesystem path as the source, but without re-adding it to the store (or re-hashing it) on every rebuild; kind of like fetchurl for local paths
<silver_hook>
BTW, for unzipping should I get `unzip` or `zip` or some other package?
<joepie91>
anyway, I will likely at some point be setting up my own nixpkgs overlay with stuff like games I've packaged, experimental approaches to packaging proprietary and Windows stuff, etc.
<joepie91>
silver_hook: you'll need `unzip` - see the example gist :)
<silver_hook>
joepie91: Right, but both zip and unzip packages exist and point to the same URL homepage.
<joepie91>
I think they're two separate pieces for compression and decompression respectively, but are distributed as one thing?
<joepie91>
don't recall the specifics
<joepie91>
either way `unzip` is what works
<joepie91>
I don't know whether you could theoretically use `zip`
<silver_hook>
Got it.
<clever>
i think its just gunzip vs gzip -d
jcarr has joined #nixos
Itkovian has joined #nixos
jcarr has quit [(Remote host closed the connection)]
<sphalerite>
can be useful for finding which derivation a path came from and what's been added recently and suchlike
m0rphism4 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #29854: darcnes: use web.archive.org links, clean up (master...darcnes/cleanup) https://git.io/vdm35
NixOS_GitHub has left #nixos []
m0rphism3 has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdmsJ
<NixOS_GitHub>
nixpkgs/release-17.09 794a22b Robin Gloster: urllib3: revert multiple outputs...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vdmsY
<NixOS_GitHub>
nixpkgs/master 79d547b Eelco Dolstra: nix-daemon: Bump the default number of build users...
NixOS_GitHub has left #nixos []
boomshroom has joined #nixos
<boomshroom>
Good morning. (unless it's not morning for you, in which case hello.)
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
adc has joined #nixos
<makefu>
joepie91: maybe it can be generated :) according to git blame it was Mic92 who introduced it.
<boomshroom>
It looks like Firefox Quantum has been released as Firefox 57 and I'm wondering how to install it. There looks like a script to download arbitrary firefox versions, but I'm not sure how to use it.
<makefu>
joepie91: if you have a way to do so we can update the upstream package (and the wiki)
jbaum98_ has joined #nixos
<boomshroom>
At the moment, I'm using Vivaldi, but I'd like to try Firefox quantum largely due to being a Rust fanboy.
<boomshroom>
makefu: thank you. I already have the rust overlay and it looks like the firefox overlay isn't much different
<Mic92>
joepie91: I want to hide `bundle` from the user environment that way
jb55 has quit [(Ping timeout: 240 seconds)]
<joepie91>
makefu: to be clear, I have no idea how to concretely do this; it's a speculative question based on my lack of understanding of the Ruby ecosystem :)
<Mic92>
maybe ln -s also works on the binstubs itself
erasmas has joined #nixos
<joepie91>
Mic92: right, but iirc bundler has some sort of binstub generation thing itself?
<joepie91>
I'm not entirely sure what it does exactly
<joepie91>
but it feels like that might share functionality with this bit of shellscripot
<joepie91>
shellscript*
<Mic92>
binstubs where also ruby scripts, if I remember correctly
jbaum98_ has quit [(Client Quit)]
jbaum98 has joined #nixos
<joepie91>
Mic92: oh, you're right
<joepie91>
yeah, okay, then this makes sense
<Mic92>
oh metasploit broke again
<Mic92>
pg_config
<joepie91>
Mic92: any chance this Nix-binstub-generation code could be abstracted into something like a nixpkgs library function? I don't know if the workings of Ruby stuff are consistent enough for it to work the same everywhere
<joepie91>
seems like a bad idea to duplicate it everywhere
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #29855: mednaffe: 0.8 -> 0.8.6, drop patch in favor of autoreconfHook (master...mednaffe/0.8.6) https://git.io/vdmG3
NixOS_GitHub has left #nixos []
<boomshroom>
makefu: It seems that only the rust overlay has an installer. Am I right in saying it should work if I just substitute rust-overlay.nix with firefox-overlay.nix?
jellowj has joined #nixos
hotfuzz_ is now known as hotfuzz
<makefu>
boomshroom: that is what i would guess, however i have not tested anything but firefox-nightly yet
ertes-w has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] erictapen opened pull request #29856: bower: init and add erictapen as maintainer (master...bower-init) https://git.io/vdmGX
NixOS_GitHub has left #nixos []
<boomshroom>
Looks like firefox 58 just installed.
ertes-w has quit [(Read error: Connection reset by peer)]
<boomshroom>
It already feels faster, but that doesn't really mean anything
cpennington has joined #nixos
ona has quit [(Read error: Connection reset by peer)]
ertes-w has joined #nixos
<makefu>
boomshroom: probably because 95% of your plugins were disabled
<boomshroom>
As I said.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterbb opened pull request #29857: urweb: support darwin, depend on gcc, fix paths. (master...master) https://git.io/vdmZV
NixOS_GitHub has left #nixos []
<makefu>
i had 20 plugins, literally only a single was compatible
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Lassulus opened pull request #29858: bitcoin-abc: init at 0.15.0 (master...bitcoin-abc) https://git.io/vdmZw
NixOS_GitHub has left #nixos []
ona has joined #nixos
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
<boomshroom>
Now there's the question of whether or not I'm loyal enough to Rust to switch from Vivaldi to Firefox.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdmZX
<NixOS_GitHub>
nixpkgs/master b775b2c Joerg Thalheim: metasploit: use makeWrapper instead
NixOS_GitHub has left #nixos []
<Mic92>
^ joepie91 not sure how to abstract this further
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdmnD
<NixOS_GitHub>
nixpkgs/release-17.09 9fc37e2 makefu: gdal: fix path to pg_config...
NixOS_GitHub has left #nixos []
<kuznero>
Is there any way to declare that I want to pass a flag for `cabal configure -f ...` in my shell.nix file?
<makefu>
joepie91: you can simply try o build it without this hotfix :)
python47` has quit [(Ping timeout: 240 seconds)]
<kuznero>
It is called `configureFlags`... found it under `NIXPKGS/pkgs/development/haskell-modules/generic-builder.nix`.
pxc1 has joined #nixos
<moredhel1>
Hi, I'm currently working on adding a module for traefik, so I want to use the latest version of nixpkgs I think. Is there a way to figure out what version to use so that I don't have to compile my whole computer from source?
<moredhel1>
while simultaneously having my changes tracked in source control
<jophish>
peti: 042ca21c812ae3c3fd52f3fdec41699b193dcfbf broke some haskell packages, importantly `cabal-install`
<kuznero>
I declare `configureFlags` in my `shell.nix` file. So, when I start my dev shell with nix-shell and run `cabal build` I am simply uncertain weather the right flags were supplied. How do I check that?
jellowj has quit [(Ping timeout: 252 seconds)]
<clever>
kuznero: if your manually running cabal, it wont use the flags specified in the nix file
<kuznero>
clever: then it seams for the purposes of enabling warnings as errors (done through flag in cabal file) it does not make sense to put in shell.nix at all, right (I only need it during development phase)?
<clever>
yeah
<clever>
just manualy pass it to cabal configure
jellowj has joined #nixos
<kuznero>
ok, tnx
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar reopened pull request #24664: nginx: Check config syntax validity with `nginx -t` in preStart (master...nginx-check-config) https://git.io/vSg78
NixOS_GitHub has left #nixos []
yegortimoshenko has joined #nixos
boomshroom has quit [(Ping timeout: 260 seconds)]
<yegortimoshenko>
hi, is there a convention for directory naming under $out/share?
ona has quit [(Ping timeout: 248 seconds)]
<yegortimoshenko>
there are some derivations that use $out/share/$name (with version)
<yegortimoshenko>
same with $out/share/doc/$name
Neo-- has quit [(Ping timeout: 246 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
<yegortimoshenko>
is that a good idea? i see a problem with that the destination changes with each update
pxc1 has joined #nixos
<clever>
yegortimoshenko: i would use an unversioned name
ebzzry has quit [(Ping timeout: 248 seconds)]
takle has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nh2 opened pull request #29860: consul service: Restart on failure (master...consul-restart-on-failure) https://git.io/vdmlr
NixOS_GitHub has left #nixos []
orivej has joined #nixos
pxc1 has quit [(Ping timeout: 240 seconds)]
ThatDocsLady has joined #nixos
<yegortimoshenko>
clever: thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nh2 opened pull request #29861: consul service: Restart on failure. (release-17.09...consul-restart-on-failure-17.09) https://git.io/vdmlN
<NixOS_GitHub>
[nixpkgs] nicknovitski opened pull request #29866: youtube-dl: update to 2017.09.24 (master...patch-2) https://git.io/vdmEH
NixOS_GitHub has left #nixos []
ryanartecona has joined #nixos
kiloreux has joined #nixos
jb55 has joined #nixos
<Sonarpulse>
jophish: 'fraid I don't know about any shadowing thing
<domenkozar>
globin: gchristensen: makes sense
sellout- has joined #nixos
kiloreux has quit [(Ping timeout: 260 seconds)]
reinzelmann has joined #nixos
<copumpkin>
build-fallback
<copumpkin>
If set to true, Nix will fall back to building from source if a binary substitute fails. This is equivalent to the --fallback flag. The default is false.
<copumpkin>
I've never seen nix not try to fall back to building things from source if the binary cache is unavailable
<copumpkin>
is the default really false? or am I misunderstanding that option?
<clever>
copumpkin: i think the difference, is if the cache says it doesnt exist at all, vs if the cache says it exists, but then 404's on download
<copumpkin>
oh
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vdmz6
<NixOS_GitHub>
nixpkgs/master 964672d Tim Steinbach: linux: Remove 4.12 (EOL)
<NixOS_GitHub>
nixpkgs/master 2ca84cf Tim Steinbach: linux: 4.9.51 -> 4.9.52
<NixOS_GitHub>
nixpkgs/master ab3ff4a Tim Steinbach: linux: 4.13.3 -> 4.13.4
yegortimoshenko has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
bennofs has quit [(Read error: Connection reset by peer)]
k2s has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vdmga
<NixOS_GitHub>
nixpkgs/master 0a4704b Brad Jensen: lispPackages.cl-protobufs: init at 20170403-git
<NixOS_GitHub>
nixpkgs/master c43550e Michael Raskin: Merge pull request #29862 from bradleyjensen/protobuf...
NixOS_GitHub has left #nixos []
reinzelmann has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdm2I
<NixOS_GitHub>
nixpkgs/master 21998d5 Robin Gloster: postgresql: fix pgxs dir in pg_config
NixOS_GitHub has left #nixos []
reinzelmann has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdm2O
<NixOS_GitHub>
nixpkgs/release-17.09 645c591 Robin Gloster: postgresql: fix pgxs dir in pg_config...
NixOS_GitHub has left #nixos []
reinzelmann has quit [(Client Quit)]
phreedom has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nh2 opened pull request #29868: A few fixes and improvements for the glusterfs service (master...nh2-glusterfs-improvements-for-17.09-master) https://git.io/vdm25
NixOS_GitHub has left #nixos []
reinzelmann has joined #nixos
hotfuzz has quit [(Read error: Connection reset by peer)]
k2s has quit [(Quit: Leaving)]
hotfuzz has joined #nixos
ambro718 has joined #nixos
pxc1 has joined #nixos
jb55 has quit [(Quit: WeeChat 1.9)]
detran has joined #nixos
kungfukenny has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bjornfor pushed 1 new commit to release-17.03: https://git.io/vdmaX
<NixOS_GitHub>
nixpkgs/release-17.03 ad6265d Bjørn Forsman: nixos/gitolite: don't leak nix store hash into gitolite-admin username/key...
NixOS_GitHub has left #nixos []
<kungfukenny>
Hey nixers!
<kungfukenny>
Have a question
<kungfukenny>
I want to try fish, so I put `programs.fish.enable = true;` and `users.extraUsers.myusername.shell = pkgs.fish;` in my configuration nix
<kungfukenny>
Then rebuilt
sary has quit [(Ping timeout: 264 seconds)]
<kungfukenny>
But urxvt now instantly closes upon opening
<clever>
myusername.shell expects a path to the binary, but pkgs.fish is a path to a directory
<kungfukenny>
And doesn't give output when starting from another already open terminal
<kungfukenny>
Also in an open terminal, running `fish` works fine.
<clever>
what about running the exact path in passwd?
orivej has quit [(Ping timeout: 240 seconds)]
<tilpner>
Also try a different terminal, just in case
<detran>
and I mounted my root partition (ext4) to /mnt, then mounted boot (vfat) to /mnt/boot
<kungfukenny>
clever: Works!
jensens has joined #nixos
mortum5 has joined #nixos
<kungfukenny>
Oh, yeah, sorry forgot to mention, `xterm` does work starting up with fish.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdmVo
<NixOS_GitHub>
nixpkgs/master e0771a2 Robin Gloster: Revert "ibus: Move ibus-setup to .dev"...
NixOS_GitHub has left #nixos []
<Judson>
So, I've got a (hopefully now complete) PR for kafkacat in, but I'm trying to figure out why it needs to add librdkafka to its includedir explicitly, but libyajl gets picked up just(?) by being a buildInput
<tilpner>
kungfukenny - Do you have a weird fish config?
<kungfukenny>
tilpner: No config at all. Just enable = true and shell = pkgs.fish
<clever>
kungfukenny: then throw the logs into a gist
<detran>
does anybody know what could cause "Failed to probe file system "/boot" " ? I've verified that the partition type is EFI System, it has a vfat filesytem, and it's mounted at /mnt/boot
<clever>
detran: try doing umount and then mount again
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdmKc
<NixOS_GitHub>
nixpkgs/master 13c9cba Robin Gloster: bacula: fix after postgresql output splitting
NixOS_GitHub has left #nixos []
18VACB98V has joined #nixos
<18VACB98V>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdmKC
<18VACB98V>
nixpkgs/release-17.09 cdf4d69 Robin Gloster: bacula: fix after postgresql output splitting...
18VACB98V has left #nixos []
<detran>
here's an interesting thing: umount: /dev/boot: mountpoint not found
<clever>
detran: its not in dev
<nixer>
What was the -A flag replaced with in nix 1.12, I'm using nix build?
<detran>
whoops
<detran>
umount /mnt/boot -> mount /dev/nvme0n1p1 /mnt/boot -> nixos-install: same error
<clever>
detran: how did you originally format /mnt/boot/ ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdmKH
<NixOS_GitHub>
nixpkgs/master 4013b38 Vladimír Čunát: manuals: document removal of newStdcpp from steam...
NixOS_GitHub has left #nixos []
ThatDocsLady has quit [(Quit: Leaving)]
<detran>
clever: mfks.vfat /dev/nvme0n1p1
<clever>
detran: out of ideas then, only thing i can think of is to try switching from systemd-boot to grub
<hyper_ch>
what's nvme01p1?
<clever>
nvme device 0, namespace 1, partition 1
<hyper_ch>
is that one of those super fast ssds?
<clever>
yeah
* hyper_ch
wants one
<Mic92>
makefu: joepie91 I would need to see the content of concurrent-ruby-ext-1.0.2/gem_make.out
<Mic92>
mentioned in error message
<clever>
hyper_ch: my bios doesnt support booting from it, so /boot has to remain on a super-slow SSD, lol
<hyper_ch>
normal sata ssds are just soooo slow :)
<hyper_ch>
I don't even have a slot for one of those... don't even have m2 slot I think
<clever>
hyper_ch: you can also get a pci-e adapter board
<hyper_ch>
on a notebook?
<clever>
they are just pcie with a smaller connector
<clever>
oh, thats harder
<hyper_ch>
:)
<hyper_ch>
is it a samsung?
<clever>
i think they are also compatible with the mini-pcie notebooks use for wifi cards
<hyper_ch>
need wifi though
mocker has joined #nixos
<hyper_ch>
well, I could get usb wifi adapter...
<hyper_ch>
or get a new notebook eventually
<johnw>
is there a nixpkgs target for LaTeXit
<hyper_ch>
there will be as soon as you create one :)
_ris has joined #nixos
<Infinisil>
hyper_ch: Ohh, these system76 laptops have an option for these super fast ssds, and I was thinking about buying one of those in the future
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdm6d
<NixOS_GitHub>
nixpkgs/release-17.09 53068f4 Stefan Siegl: kea: fix path to pg_config...
NixOS_GitHub has left #nixos []
<hyper_ch>
Infinisil: but they don't ship de_CH keyboard
<nixer>
Can anyone tell me how to use nix build in 1.12, I just want to run something like "nix build ./nixpkgs -A gerrit", but the -A flag is unrecognized.
<Infinisil>
hyper_ch: I can adjust, I use programmer dvorak anyways, the only difference would be one less key and a different Return
<hyper_ch>
Infinisil: I can't :(
<Infinisil>
3500MB/s read, 2100MB/s write :O
<hyper_ch>
I need too often öäüèéà
<hyper_ch>
Infinisil: that's 3x as fast as my home internet ;)
<Infinisil>
hyper_ch: I thought about making a layout so i can type these easily, but haven't really needed them at all
jonge has quit [(Ping timeout: 246 seconds)]
<Infinisil>
Always using english
<globin>
hyper_ch: I've found the us intl layout to be nice for cases like that
<hyper_ch>
for work I can't use english
<samueldr>
wouldn't some compose key trickery be better than making a custom layout?
<globin>
hyper_ch: alt-gr+p = ö
<hyper_ch>
samueldr: no, I'm used to the swiss german keyboard layout
<samueldr>
(though, the layout I use uses dead keys for all accents, makes it so much easier)
<hyper_ch>
globin: that gives you carpal's
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] primeos pushed 1 new commit to master: https://git.io/vdmiR
<NixOS_GitHub>
nixpkgs/master 2d640b9 Michael Weiss: wlc: Downgrade back to 0.0.9...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdmii
<NixOS_GitHub>
nixpkgs/release-17.09 c35be63 Michael Weiss: wlc: Downgrade back to 0.0.9...
NixOS_GitHub has left #nixos []
<Infinisil>
I'm still not sure what to do with the numbers on my programmers dvorak :/ It's hard to use vim (and soon emacs) shortcuts with numbers when you need to press shift to use them
jonge has joined #nixos
* samueldr
looks up programmer dvorak
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 2 new commits to master: https://git.io/vdmid
<samueldr>
yeah, the number row makes it a non-starter for me
<adelbertc>
anyone here have experience with dockerTools.buildImage ?
ona has joined #nixos
<adelbertc>
it seems the result of that is a .tar.gz file which when unpacked is an image manifest that references the /nix/store which makes the tarball not suitable for uploading to say, Artifactory
<detran>
clever: we determined earlier that grub doesn't write to /boot until after it probes, does systemd-boot work the same way?
<clever>
adelbertc: why is it not suitable to upload there?
<clever>
detran: you where using systemd-boot then, not grub
<clever>
i forgot about which one is the default
<adelbertc>
clever: if i only push the tarball upstream, whoever is pulling it wont have the referenced nix store paths right
<clever>
detran: systemd-boot is what is failing to probe, but grub may probe differently
<clever>
adelbertc: the tarball that nixpkgs generates contains the entire closure
<clever>
adelbertc: i can just do "docker load < result" and it will make a working docker image that can run a command
erictapen has joined #nixos
<adelbertc>
clever: have you successfully loaded the tarball remotely? that is, if you upload the tarball to artifactory have you been able to successfully pull it down?
<clever>
adelbertc: not yet, but i believe the docker is isolating it from the host enough that it shouldnt matter
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdmPM
<NixOS_GitHub>
nixpkgs/master f2955e4 Vladimír Čunát: manuals: fixup steam note, as the change is in 17.09...
NixOS_GitHub has left #nixos []
<clever>
adelbertc: oh, and one of the builds i queued up has finished on a remote machine, that will be a similar test
<clever>
adelbertc: i had configured a hydra to pre-build the entire docker image, downloading it in the browser and loading...
<adelbertc>
hmm interesting
<adelbertc>
what command are you using to load it remotely?
betaboon has quit [(Quit: Leaving)]
<adelbertc>
when i try a `docker import <url>` it shows up as <none> for the name which had me suspicious
johnsonav has joined #nixos
<clever>
adelbertc: docker load
<adelbertc>
clever: you can docker load from a URL?
<clever>
havent tried that yet
<adelbertc>
ah ok
<adelbertc>
but ok good to know the tarball should be fine as is..
<Infinisil>
samueldr: You get used to it after a while. When I was still using osx i used a normal number arrangement, but on linux i couldn't be bothered with xkb, so now I'm using the weird arrangement
<samueldr>
shifting it is my main issue
taktoa has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdmX6
<Infinisil>
samueldr: shifting it? You mean that you need shift for numbers?
<samueldr>
didn't you say so?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vdmXj
<NixOS_GitHub>
nixpkgs/release-17.09 9fbad9b Vladimír Čunát: manuals: document removal of newStdcpp from steam...
NixOS_GitHub has left #nixos []
m0rphism1 has joined #nixos
m0rphism has quit [(Ping timeout: 246 seconds)]
<Infinisil>
samueldr: Yeah you do indeed need to press shift for numbers. But I consider that an advantage, because you don't need to press shift for most symbols
<hyper_ch>
but aren't numbers important?
<Infinisil>
eh, i don't use em much
<Infinisil>
not as much as symbols anyways
<hyper_ch>
(4h work x hourly wage) x VAT = bill
<hyper_ch>
can't understand how you cannot use numbers
<yegortimoshenko>
but i'll end up using LnL's approach :-)
<clever>
depends also on if the configurePhase needs a proper prefix
<yegortimoshenko>
clever, LnL: thanks!
acarrico has quit [(Ping timeout: 255 seconds)]
<hyper_ch>
I think I'll write a little bash script that gets all that desired bug-reporting-technical-data stuff properly into the terminal so I only have to copy'n'paste once
<yegortimoshenko>
there's no ./configure in this case
sellout- has quit [(Quit: Leaving.)]
jensens has quit [(Ping timeout: 264 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jensens has joined #nixos
csparks has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vdm94
<NixOS_GitHub>
nixpkgs/master 50fb629 Robin Gloster: bluez: remove unneeded dependencies and fix test bins
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdm90
<NixOS_GitHub>
nixpkgs/release-17.09 ef52776 Robin Gloster: bluez: remove unneeded dependencies and fix test bins...
MercurialAlchemi has quit [(Ping timeout: 248 seconds)]
aneeshusa has joined #nixos
erictapen has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ma27 opened pull request #29871: vim-plugins: add `overrideAttrs` support for `buildVimPluginFrom2Nix` (master...vim-utils/override-capability) https://git.io/vdmQU
NixOS_GitHub has left #nixos []
reinzelmann has quit [(Quit: Leaving)]
cpennington has quit [(Ping timeout: 248 seconds)]
<Mic92>
joepie91: are you just trying to update metasploit?
<joepie91>
Mic92: added the default.nix as well
<joepie91>
Mic92: no, trying to package Arachni
<joepie91>
which has vaguely similar requirements to metasploit :)
jbaum98 has quit [(Quit: Connection closed for inactivity)]
<joepie91>
(or well, it's the same for the most part except a few different deps_
<joepie91>
)*
Itkovian has joined #nixos
<Mic92>
joepie91: are you sure you have send me the output of this file? ../gems/2.3.0/extensions/x86_64-linux/2.3.0/concurrent-ruby-ext-1.0.2/gem_make.out
<joepie91>
Mic92: what do I change to make it work here as well? :)
<gchristensen>
hmm slightly disappointing we don't package puppet :P
<globin>
gchristensen: arrgh \o/
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 3 new commits to master: https://git.io/vdmb0
<NixOS_GitHub>
nixpkgs/master d68e9b4 Nikolay Amiantov: glfw2: don't use mesa
<NixOS_GitHub>
nixpkgs/master 98ef62e Nikolay Amiantov: glfw3: cleanup dependencies, propagate mesa_noglu
<NixOS_GitHub>
nixpkgs/master 47f0997 Nikolay Amiantov: mupdf: cleanup dependencies...
NixOS_GitHub has left #nixos []
<joepie91>
gchristensen: so you can use apt to install NixOS to install puppet to manage a NixOS system running NixOps to manage other NixOS systems? :)
<gchristensen>
Mic92, globin: so I can use `puppet parser validate`
hamishmack has quit [(Ping timeout: 240 seconds)]
hamishmack_ is now known as hamishmack
<globin>
gchristensen: puch
<globin>
ouch*
<Mic92>
joepie91: it contains a nixpkgs as well
<gchristensen>
I know. :(
<Mic92>
joepie91: *nixpkgs patch
<Mic92>
joepie91: you also need to put libcurl into LD_LIBRARY_PATH, I have not done that yet to the package
<Mic92>
this can be done in the makeWrapper call
<joepie91>
Mic92: ah, right, I should have mentioned that I'm currently packaging it in my own separate package set, not yet in nixpkgs
oida has joined #nixos
<joepie91>
(I use my own package set as a staging area of sorts)
<Mic92>
joepie91: ok, but you need this gem-config patch I have in the tarball
<Mic92>
this was designed for nixpkgs
<Mic92>
I think there was a way to have your own gem-config overrides
<joepie91>
Mic92: I'm not sure I totally understand the purpose of gem-config
<Mic92>
joepie91: it override bundix's gem library definitions to add system dependencies
oida_ has quit [(Ping timeout: 240 seconds)]
<Mic92>
for instance nokogiri needs libxml2 to build correctly
<Mic92>
we have one global override in nixpkgs to fix most bundix related stuff without user interaction
<joepie91>
Mic92: but... isn't that what's already being done with the shell.nix for metasploit (and therefore for arachni)?
<nixer>
I'm trying to install nix into a container, but hitting an error. It gets past copying to the nix store and initializing the database, however it fails on building user-environment due to: "while setting up the build environment: executing /nix/store/76lhp1gvc3wbl6q4p2qgn2n7245imyvr-perl-5.22.3/bin/perl: Permission denied". Any idea on what the cause may be?
<Mic92>
joepie91: no it is more granular. you shell.nix is just for you to use bundle + bundix outside of nix.
<LnL>
nixer: what kind of container?
<nixer>
LnL: A docker container.
<Mic92>
joepie91: the gem overrides allow us to build each gem globally only ones because it specify deps needed to build a single gem
eacameron has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<joepie91>
Mic92: not sure I understand how that is the case... can you ELI5 it perhaps? :)
<joepie91>
(I think I just don't understand enough about the underlying design decisions behind how Ruby stuff is handled in Nix)
<nixer>
LnL: I'd love to use that, however I don't want to maintain my the lifecycle of my own containers. I'm running this on ECS right now. Do you have any idea what the problem may be?
<MichaelRaskin>
I remember one time when Debian considered packaging Nix; they ended up deciding that /nix/ is too non-LSB to allow.
<Infinisil>
LSB?
acarrico has joined #nixos
<LnL>
nixer: did you register all of the store paths after initializing the nix db?
<joepie91>
Infinisil: Linux Standard Base, I'm guessing
<MichaelRaskin>
Would be fun if they ended up packaging with /opt/nix/ as the default store path…
kkini has joined #nixos
<Infinisil>
Heh lol
<nixer>
LnL: No I'm not, I was just running the default nix install (by curling and running shell) on top of the base docker image (from docker). The weird thing is that this worked until I reshuffled my scripts around.
stanibanani has joined #nixos
<Mic92>
MichaelRaskin: hopefully they will realise how stupid this is.
Denommus has joined #nixos
<Denommus>
is there a prediction on nix without perl?
<Infinisil>
MichaelRaskin: Well it would be a good test to see if nix can work with non-standard locations, because I think it is supported
<MichaelRaskin>
It does work, I have tested it
<LnL>
nixer: oh! you're using the installer, not sure then
<MichaelRaskin>
Up to running LibreOffice on a eInk reader.
<Infinisil>
Ah nice
<MichaelRaskin>
Or was LibreOffice with Debian?
<MichaelRaskin>
Let me check
python47` has quit [(Remote host closed the connection)]
<MichaelRaskin>
Maybe. Just TigerVNC server was via Nix.
<Judson>
Ugh. Systemd is such an unfortunate choice on Nix. "ExecStart" paths have to be absolute, and no PATH is provided.
<Judson>
I just want to use a bash script in a user systemd...
phreedom has joined #nixos
<MichaelRaskin>
Just point it to a shell script that starts by sourcing your profile script.
<Judson>
And what interpreter should I use?
<Judson>
"just"
<sphalerite>
Judson: that's why we have systemd.services.<name>.script
<MichaelRaskin>
#!/bin/sh
<Judson>
I don't want a system level script though - this is session related.
<sphalerite>
Oh right
<Judson>
So #!/bin/sh; source .profile; exec /usr/bin/bash <realscript> ?
<sphalerite>
/home/$USER/.nix-profile/bin/foo is an absolute path :)
<globin>
Judson: systemd.user.services :)
ipj[m] has joined #nixos
<Judson>
I need to do some kind of profile loading anyway, since then it can't find any paths at all.
<globin>
Judson: you can pass it <name>.path = [ pkgs.foo ];
silver_hook has quit [(Ping timeout: 255 seconds)]
<joepie91>
Mic92: so my guess was to pass a gemConfig attribute to the bundlerEnv call in default.nix
<joepie91>
but this does not seem to have worked
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdmxo
<NixOS_GitHub>
nixpkgs/master 2651602 Joachim Fasting: tor-browser-bundle: factor out extensions
<NixOS_GitHub>
nixpkgs/master 931da53 Joachim Fasting: tor-browser-bundle: support passing additional extensions
<ktf>
hi, nix on macosx high sierra hangs my computer (mouse still moves, everything else complete frozen). Anyone else experiencing this?
<gchristensen>
a few people, in ##nix-darwin
<LnL>
yeah :/
<LnL>
however I'm not 100% convinced it's nix anymore
<ktf>
Lnl: I see it happening when nix tries to wrap (?) system frameworks..
<Mic92>
joepie91: you would have to merge the default gemConfig from nixpkgs with yours
<joepie91>
Mic92: but that's what I'm doing already?
<joepie91>
defaultGemConfig // { ,,,
<Mic92>
joepie91: ah, yes right
<Mic92>
so what is the problem then?
<joepie91>
it just keeps failing in the exact same way as before though, as if it weren't specified at all
<Mic92>
joepie91: your checksum was incorrect btw
aneeshusa has quit [(Ping timeout: 248 seconds)]
corpix has quit [(Ping timeout: 248 seconds)]
<Mic92>
did you took the stuff I have added to the tarball
<Mic92>
that was working for me
<joepie91>
I know, I usually wait for it to fail and then copy the right hash :P
<joepie91>
Mic92: I copied changes selectively, not sure if I might have missed something
<joepie91>
hold on
corpix has joined #nixos
<Mic92>
joepie91: you can also do nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix { }' in the directory
hke has quit [(Ping timeout: 240 seconds)]
aneeshusa has joined #nixos
<joepie91>
Mic92: one moment, noticing something else that seems off
<joepie91>
Mic92: the gemset.nix in your tarball has a 'dependencies' key for all (most?) items, but my gemset.nix doesn't, and I never ran the sed command
<Mic92>
joepie91: I have not even looked at it. I just ran bundle + bundix
mortum5 has quit [(Ping timeout: 246 seconds)]
detran has quit [(Ping timeout: 248 seconds)]
<Mic92>
do you have the same bundix?
<Mic92>
from master?
<joepie91>
ah, no, it's from 17.03
gandreani has quit [(Ping timeout: 255 seconds)]
<joepie91>
should I try bundix from unstable?
kungfukenny has quit [(Ping timeout: 248 seconds)]
hke has joined #nixos
<Mic92>
joepie91: maybe also building against unstable
simukis has quit [(Quit: simukis)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdYel
<NixOS_GitHub>
nixpkgs/master 23f3980 Joerg Thalheim: nixos: skip restarting systemd-logind to not break x11
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdYeu
<NixOS_GitHub>
nixpkgs/release-17.09 24f0aec Joerg Thalheim: nixos: skip restarting systemd-logind to not break x11...
NixOS_GitHub has left #nixos []
<Mic92>
globin: ^
<globin>
Mic92: thanks :)
<joepie91>
Mic92: against what thing in unstable? (I have a setup with different packages from different channels)
joehh has joined #nixos
stanibanani has quit [(Ping timeout: 248 seconds)]
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vdYvV
<NixOS_GitHub>
nixpkgs/master 4a24420 Alexander Ried: Revert "kbd service: use /dev/tty1 for systemd-vconsole-setup"...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vdYvH
<NixOS_GitHub>
nixpkgs/master 725dee2 Franz Pletz: wpa_supplicant service: restart instead of stop & start...
<NixOS_GitHub>
nixpkgs/master 0ee866e Franz Pletz: kbd service: systemd-vconsole-setup is triggered by udev...
NixOS_GitHub has left #nixos []
endformationage has joined #nixos
Ridout has joined #nixos
yegortimoshenko has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
joehh has quit [(Ping timeout: 246 seconds)]
ktf has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vdYfF
<NixOS_GitHub>
nixpkgs/master a06f839 Joachim Fasting: nixos/release-notes: notable changes to the dnscrypt-proxy service
NixOS_GitHub has left #nixos []
<boxofrox>
i have a declarative container using a bindMount to a folder that doesn't exist. is there a way in nix to mkdir when the container starts? looking at nix/modules/virtualisation/containers.nix, there is a `preStart` option, but I think I can only replace the default value, not add to it.
joehh has joined #nixos
<joepie91>
Mic92: so I copied your gemset.nix and magically the build worked
<joepie91>
but my own-generated gemset.nix doesn't
<joepie91>
and my gemset.nix still doesn't have a `dependencies` key, not with the bundix from ujnstable either :/
<joepie91>
unstable*
<joepie91>
what the heck...
hiratara has joined #nixos
<joepie91>
hold on!
<joepie91>
Mic92: so it builds when I use `unstable.ruby.devEnv` instead of `nixpkgs.ruby.devEnv` (the latter of which is 17.03 channel)
<joepie91>
in shell.nix
<Mic92>
I think devEnv also comes with bundix
numerobis has quit [(Ping timeout: 255 seconds)]
<joepie91>
Mic92: the only change for Ruby seems to have been 2.3.3 -> 2.3.4...
<joepie91>
between 17.03 and master
<Mic92>
whatever
<gchristensen>
Mic92: pass `-d` to bundix?
<Mic92>
joepie91: what work now, does it?
<joepie91>
Mic92: when I use `ruby.devEnv` from master/unstable, it works; the gemset.nix seems to generate including `dependencies` keys... whereas with `ruby.devEnv` from release-17.03 doesn't work, and is missing the `dependencies` keys in gemset.nix. I didn't realize there was a -d flag, so the next step is to test from 17.03 with -d I guess
<joepie91>
I'm not sure yet why one works but the other doesn't
<joepie91>
especially since 17.03 ruby with unstable/master bundix didn't work either, so it can't have been a change in bundix?
<nixo[m]>
Hi, how do I know which package provides g++? stdenv does notq
Infinisil has quit [(Quit: leaving)]
<joepie91>
unless some build artifacts remained behind and got reused from my earlier attempts with 17.03 bundix + ruby, and it invalidated those when I changed the Ruby versioin...
<joepie91>
but I have no idea how to check and/or invalidate those
<sphalerite>
For extra niceness, pipe to xsel so you don't need to select it
<nh2>
nixo[m]: I think `gcc` does, e.g. `nix-shell --pure -p gcc which --run 'which gcc'` works
erictapen has joined #nixos
<joepie91>
Mic92: it works with ruby_2_2 from 17.03 too, so now I'm suspecting that it is indeed a case of build artifacts being left behind in a cache somewhere. are there any impure locations that the bundler + bundix operation touches, that I might need to rm -rf to do a 'clean' build?
jsgrant has quit [(Read error: Connection reset by peer)]
* joepie91
watches spinners spin and tumblers tumble
jsgrant has joined #nixos
gandreani has joined #nixos
zeus__ has joined #nixos
gandreani has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 4 new commits to master: https://git.io/vdYkS
<NixOS_GitHub>
nixpkgs/master 4f91397 Rostislav Beneš: nixos/nvidia: populating /dev with nvidia devices at boot
<NixOS_GitHub>
nixpkgs/master 4ef8233 Rostislav Beneš: nixos/gdm,nvidia: new options to enable GDM on Wayland and disabling it for nvidia drivers.
<NixOS_GitHub>
nixpkgs/master 0cad98d Rostislav Beneš: nixos/xserver,gdm: let GDM handle X server verbosity.
NixOS_GitHub has left #nixos []
aneeshusa has quit [(Quit: WeeChat 1.9)]
<joepie91>
Mic92: it's still failing on 17.03 ruby.devEnv regardless of bundix version, even after garbage-collecting the failed builds and removing ~/.gem and ~/.bundle :/
<joepie91>
I think I'm just going to stick with 2_2 for now to make the issue go away
<joepie91>
but it's a very weird bug
ambro718 has quit [(Quit: Konversation terminated!)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ryantm opened pull request #29879: nixos/monit: install monit as system package, use default config file path (master...monit) https://git.io/vdYIu
NixOS_GitHub has left #nixos []
ertes-w has quit [(Ping timeout: 248 seconds)]
Mateon1 has quit [(Ping timeout: 260 seconds)]
coreteam has quit [(Quit: Leaving)]
mudri has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vdYI9
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vdYLc
<NixOS_GitHub>
nixpkgs/master ff15b85 Nick Novitski: youtube-dl: 2017.09.15 -> 2017.09.24 (#29866)
NixOS_GitHub has left #nixos []
gandreani has joined #nixos
<joepie91>
Mic92: so apparently the two failure cases are: 1) using 17.03 ruby.devEnv, regardless of bundix version, and 2) using 17.03 bundix without a -d flag, regardless of Ruby version
Jackneill has quit [(Ping timeout: 252 seconds)]
ryanartecona has joined #nixos
<joepie91>
in both cases, `dependencies` are missing from the gemset.nix
<joepie91>
and the installation fails with the aforementioned error
jumblemuddle has joined #nixos
mizu_no_oto has joined #nixos
<jumblemuddle>
How can I write an executable file using builtins.toFile?
<jumblemuddle>
Also, why can't I use derivations inside my builtins.toFile string? (${pkgs.*})
<joepie91>
jumblemuddle: there's a specific nixpkgs utility for this I believe