<Allen>
A new question: How can I know the package name starts with nixos or nixpkgs
<PyroLagus>
you mean like nixos.firefox vs nixpkgs.firefox?
o1lo01ol1o has joined #nixos
<PyroLagus>
that'd be the channel you're using
ris has quit [Ping timeout: 248 seconds]
<PyroLagus>
which is usually nixos on nixos and nixpkgs everywhere else
<Allen>
I see. Thanks
vitor has joined #nixos
o1lo01ol1o has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @danbst opened pull request #62712 → NixOS module system: improve one of error messages → https://git.io/fju2F
o1lo01ol1o has joined #nixos
m0rphism has quit [Ping timeout: 246 seconds]
<o1lo01ol1o>
Is there a good, recent guide / project for hydra using build slaves with nixops? Is peti's project still serviceable? (https://github.com/peti/hydra-tutorial)
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjuan
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
thc202 has quit [Ping timeout: 268 seconds]
Elon_Satoshi has quit [Quit: So long, and thanks for all the fish! 2.4 Weechat is best Weechat]
ddellacosta has joined #nixos
o1lo01ol1o has joined #nixos
InFlames has joined #nixos
dansho has joined #nixos
o1lo01ol1o has quit [Ping timeout: 272 seconds]
ddellacosta has quit [Ping timeout: 248 seconds]
freeman42x has quit [Ping timeout: 258 seconds]
o1lo01ol1o has joined #nixos
Copenhagen_Bram has joined #nixos
slack1256 has joined #nixos
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
yurrriq has joined #nixos
<yurrriq>
hello, fellow nixers
<yurrriq>
I've long wondered how to get `nix add-to-store` to work. I've got some overlays that use buildEnv to generate some dynamic environments (with pinned versions of certain packages), and I don't want to have to build/fetch them every other time I use nix-shell.
<yurrriq>
As I understood it, I should be able to invoke some sort of `nix add-to-store` command the adds a gc root, but I can't seem to figure it out at all.
<yurrriq>
Any tips, or links to working examples?
<{^_^}>
[nixpkgs] @samueldr merged pull request #61726 → refind: allows building for aarch64 → https://git.io/fj89h
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjuVC
st4ll1_ has joined #nixos
st4ll1 has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « unix-tools: default when no provider exists »: https://git.io/fjuV4
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #62595 → dropbox: fix tray menu with StatusNotifierItem trays → https://git.io/fjE9S
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjuVB
<{^_^}>
[nixpkgs] @samueldr opened pull request #62713 → vim/nvim: Backports fix for ACE → https://git.io/fjuV0
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @cstrahan to release-19.03 « dropbox: fix tray menu with StatusNotifierItem trays »: https://git.io/fjuVE
v0|d` has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @teto closed pull request #55263 → [WIP] lua: Add more packages from a generated source → https://git.io/fh9Lk
drakonis has quit [Quit: WeeChat 2.4]
drakonis has joined #nixos
toppler`` has joined #nixos
drakonis_ has joined #nixos
mac10688 has joined #nixos
<mac10688>
hello
<mac10688>
I'm trying to install nixos as a dualboot next to ubuntu
InFlames has quit [Ping timeout: 258 seconds]
<mac10688>
I'm following the manual the best I can but when i go to install it says Failed to check file system type of "/boot": No such file or directory
<clever>
mac10688: simplest thing is to give nixos full control of /boot/ and then use https://nixos.org/nixos/options.html#boot.loader.grub.extraentr to aextned the grub config
<clever>
mac10688: did you mount an FS to /mnt/boot/ ?
<mac10688>
lol i can't believe that actually worked
<o1lo01ol1o>
how can I add the config.unFree = true option to this line: with (import <nixpkgs/pkgs/top-level/release-lib.nix> { inherit supportedSystems; });
<clever>
o1lo01ol1o: why do you need uufree packages in release-lib.nix?
<clever>
mac10688: yeah, /dev/nvme0n1p1 is your ESP, so you want to mount that to /mnt/boot/
<mac10688>
I have 2 main drives clever. One is a 250gb ssd and another terabyte hd
<o1lo01ol1o>
this is a hydra jobset; it's building a derivation with an unfree license
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjuwJ
reinhardt has joined #nixos
<{^_^}>
[nixpkgs] @teto opened pull request #62714 → luaPackages.cjson: move to generated → https://git.io/fjuwU
<o1lo01ol1o>
clever: cool, thanks
<mac10688>
ok cool, i'm at the login screen
<mac10688>
and I don't know how to login lol. I guess I better go back to the live installer and really look at the default config
<mac10688>
so i can use that config file to set all this up and reinstall right?
<mac10688>
it'll just reinstall over itself?
<clever>
mac10688: just mount the rootfs and bootfs to the same spot again, and nixos-install will update it
<clever>
mac10688: and because of `--no-root-passwd`, you didnt set a root pw
<clever>
so you have no way to sign in
o1lo01ol1o has quit [Remote host closed the connection]
Glider_IRC_ has joined #nixos
o1lo01ol1o has joined #nixos
Glider_IRC has quit [Ping timeout: 272 seconds]
o1lo01ol1o has quit [Ping timeout: 252 seconds]
InFlames has quit [Ping timeout: 258 seconds]
alex`` has quit [Ping timeout: 248 seconds]
alex`` has joined #nixos
selfsymmetric-mu has joined #nixos
Ariakenom has joined #nixos
<{^_^}>
[nix] @matthewbauer opened pull request #2921 → Handle SIGWINCH in main thread → https://git.io/fjuwY
Rusty1 has quit [Quit: Konversation terminated!]
slack1256 has joined #nixos
wfranzini has quit [Remote host closed the connection]
InFlames has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
cyphase has quit [Ping timeout: 272 seconds]
reinhardt has quit [Quit: Leaving]
o1lo01ol1o has joined #nixos
<mac10688>
ok so i got nixos installed and i'm logged into root. I run systemctl start display-manager now and the display-manager.service isn't found. I understand that this is a barebones OS where I need to take what I need and I'm fine with that. I'm just wondering what's the general idea now. I just keep going back to the global config file and adding new services there and reinstalling with nixos-install?
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #62715 → Darwin GL Experiments → https://git.io/fjuwW
palo1 has joined #nixos
slack1256 has quit [Ping timeout: 272 seconds]
<clever>
mac10688: did you read the xserver example in configuration.nix?
<clever>
mac10688: also, once it boots, you dont need to touch nixos-install
cyphase has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<clever>
mac10688: `nixos-rebuild switch` will apply all changes
palo has quit [Ping timeout: 252 seconds]
palo1 is now known as palo
<mac10688>
yeah i tried to read it. I'm not terribly familiar with linux jargon. I'm just happy to get it installed. I'm going back to the manual now ^^
<mac10688>
thanks for your help clever. I've been stuck the past few days
<mac10688>
sleeping on it didn't help, you did though
<clever>
mac10688: i just have freakish memory, ive memorized the entire nixos option set
<selfsymmetric-mu>
clever: I'm willing to actually believe that.
<colemickens>
I'm so sorry
<colemickens>
memorizing any of the nix cli tooling seems like a challenge
<dminuoso>
Mmm. So I have a need to contribute to the qt in nixpkgs. It's not quite clear to me how you would even build say qtconnectivity out of the repo itself.
selfsymmetric-mu has quit [Remote host closed the connection]
<dminuoso>
Part of the problem is that pkgs/development/libraries/qt-5/5.12/default.nix is parametrized over cf-private which I dont know how to supply.
hyper_ch2 has joined #nixos
<colemickens>
dminuoso: what are you trying to do?
<colemickens>
I don't know how to build it. I can guess at how to build qt3d though. Are you trying to use an app that needs it? Or build an app with it ?
<colemickens>
The qt3d sources are in the tree already, just looks like there's not a corresponding qtModule for it (yet)
vidbina has quit [Ping timeout: 248 seconds]
domogled has quit [Ping timeout: 248 seconds]
<mac10688>
so i'm at command line and ready to add packages and turn on xserver for nixos but when i nixos-rebuild switch it can't download anything because i'm not connected to the internet
Allen has joined #nixos
<mac10688>
am i supposed to connect through command line or is there something in the config that i fix this with?
<mac10688>
probably in the config but i didn't see the options
<Allen>
Hi all, my local php version in nixos is above 7.0. How can I install php5.6?
InFlames has joined #nixos
<Allen>
php version in our server is 5.6, so I hope to test some script with php5.6
<Allen>
in my local
<eyJhb>
Anybody know if it is possible to specific a in-line ca-cert using networkmanager?
<petersjt014>
mac10688: hold on a sec, I'm pretty sure I know this
<petersjt014>
I gotta fire up the rasPi I was doing it on tho, gonna be a min
<mac10688>
ok thank you petersjt014
<petersjt014>
I should ask tho: is it wireless? because if it's wired and not connecting that's something else
<petersjt014>
something i'd be less familiar with
<petersjt014>
mac10688: I do have the relevant snippet ready if that's the case
<mac10688>
wireless
<mac10688>
i would like to see the snippet please :)
<dminuoso>
colemickens: Yes, but my problem is I want to try and build the nix derivation for it.
<petersjt014>
be sure to check ifconfig incase your wireless interface has a weird name
<colemickens>
dminuoso: nix-build -A qt5.qtconnectivity
<mac10688>
oh that's not bad! let me try that out
schjetne has joined #nixos
thc202 has joined #nixos
<dminuoso>
colemickens: Well yes. But Im talking out of the git repo.
reinhardt has joined #nixos
<mac10688>
thanks petersjt014 . i saved that to a file. I ran into another issue when working with that about the swap. I'm gonna head to bed and check it out tomorrow
<petersjt014>
you may be able to do a rebuild anyway if you use the --keep-going flag
nschoe has joined #nixos
InFlames has quit [Ping timeout: 258 seconds]
<gentauro>
so the NixOS + `stack` is a bit annoying. I mean, I had to install purescript (I always build from GH as I can't rely on `npm`). I ended up modifying my (usual) script to change a value in the `stack.yaml` file like this -> http://paste.debian.net/plain/1086266
<gentauro>
but is this the right way to do it?
<gentauro>
:|
<colemickens>
dminuoso: I don't understand that was executed in the root of the repo
<gentauro>
(anybody using NixOS and actually deploying Haskell to prod in here?)
<gentauro>
well I recognize dminuoso from #haskell :D
<dminuoso>
colemickens: You miss the point. Im looking for a workflow how to modify nixpkgs.
<dminuoso>
colemickens: Surely people dont just commit changes and *then* nix-build from github.com just to see if things work.
<colemickens>
dude, I just said I executed the nix-build command from the root of the git repo
<colemickens>
cd nixpkgs; nix-build -A qt5.qtconnectivity
<colemickens>
otherwise I don't know what you're asking, I'm sorry.
<mac10688>
lol I guess everyone is here to develop haskell
<dminuoso>
colemickens: Ohh. I misunderstood, Im sorry. :)
<gentauro>
mac10688: :D
<colemickens>
np, I could've been more clear. Good luck, I have to hop off :) always good to have more contributors.
<dminuoso>
colemickens: Thank you for your help, really appreciate it.
logzet has joined #nixos
ThatDocsLady has joined #nixos
orivej has joined #nixos
<colemickens>
dminuoso: I took my laptop to bed :). Just to close the loop here: nix-build will take `-f` as a path to the place to do the build. In this case, it can be implicitly the local directory with a default.nix inside, or a path to a tarball/dir with a default.nix inside.
<colemickens>
dminuoso: somehow, the nixpkgs's default.nix output has an attribute set called "qt5" that has an attribute (set) called qtconnectivity and you're telling nix-build ot just build that attribute of the entire nixpkgs tree.
<dminuoso>
colemickens: Right. Somehow I was trying to go deeper and build it straight out of the qt directory and couldnt figure out how. But this works like a charm! :)
<colemickens>
(I mention this only because I would've found it useful, hopefully its not annoying)
<colemickens>
or rather, it explains the magic by which building the other direction DOES work
<colemickens>
(I'd probably only recommend reading the first section for now unless super curious or you've read more of the nix/nixos manuals)
<dminuoso>
colemickens: Well I was trying to callPackage the nix derivation, but there were some inputs not straight in the nixpkgs set.
<dminuoso>
At any rate, qt3d is building nicely. :)
<colemickens>
dminuoso: oh okay, so you had already figured out how it works :)
petersjt014 has quit [Quit: WeeChat 2.4]
knupfer has joined #nixos
<colemickens>
I build some packages sort of out-of-tree from nixpkgs and use callPackage still, so I had to learn this recently too. Though I'm not sure if I know how to have handled your particular case. (I don't really like dealing with qt stuff, either in packaging or runtime.)
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
goibhniu1 has joined #nixos
mexisme_ has joined #nixos
<realloc>
tilpner: Thank you, I will try that config
fusion809 has quit [Remote host closed the connection]
mexisme_ has quit [Ping timeout: 258 seconds]
Shoubit has joined #nixos
spacefrogg_ is now known as spacefrogg
gentauro has quit [Quit: leaving]
gentauro has joined #nixos
gentauro has quit [Client Quit]
gentauro has joined #nixos
ng0 has joined #nixos
ericsagnes has quit [Ping timeout: 248 seconds]
ericsagnes has joined #nixos
drakonis has quit [Ping timeout: 272 seconds]
vidbina has joined #nixos
drakonis has joined #nixos
<kraem>
options - when can I use the regular config files a certain program usually looks at and when should I use the nixOS options in configuration.nix?
<kraem>
example: gpg - the only option i'm finding is `programs.gnupg.agent.enable` - should i then install the gnupg as usal, setting everything up manually and then just activate the gnupg agent in configuration.nix if i need it?
<{^_^}>
[nixpkgs] @andir pushed 3 commits to release-19.03: https://git.io/fju6s
<Synthetica>
Is there a way to get a nix-shell with the build inputs for a package in nixpkgs? I think I someone do that somewhere, but I can't find it anymore
<Ashy>
Synthetica: that's also something i've been meaning to look up
<Ashy>
sure i've seen it somewhere too
Anton-Latukha has joined #nixos
reinhardt has quit [Ping timeout: 244 seconds]
<Ashy>
Synthetica: hmm, this might be it: `nix-shell '<nixpkgs>' -A hello`
<tobiasBora>
adisbladis: So $NIX_CC contains a path to a folder with lib/lib64, and then patchelf automatically picks the good interpreter here, based I guess on the name of the original interpreter?
<Synthetica>
Ashy: Ah, yes, that works! Thank you :)
<adisbladis>
An ELF can only have a single interpreter specified. It doesn't need to pick up the original interpreter by name to patch it.
vidbina has quit [Ping timeout: 248 seconds]
inquisitiv3 has quit [Ping timeout: 252 seconds]
<tobiasBora>
adisbladis: oh... I though this was pointing to a folder with /lib and /lib64 but it's not. But here, if the file were waiting for another interpreter different from ld-linux-x86-64.so.2, it wouldn't work right?
<tobiasBora>
adisbladis: is there any documentation about $NIX_CC?
Arahael has joined #nixos
<tobiasBora>
also, what is the recommended method, the NIC_CC/nix-support/... or the {glibc}? I'm not sure to see why we need an extra indirection with NIX_CC
reinhardt has joined #nixos
clacke_movim has left #nixos [#nixos]
arjen-jonathan has quit [Ping timeout: 248 seconds]
__monty__ has joined #nixos
mexisme_ has joined #nixos
ericsagnes has quit [Ping timeout: 258 seconds]
ilmu has joined #nixos
ericsagnes has joined #nixos
sb0 has joined #nixos
civodul has joined #nixos
m0rphism has joined #nixos
ubert has joined #nixos
reinhardt has quit [Ping timeout: 248 seconds]
arjen-jonathan has joined #nixos
mguex has joined #nixos
kisik21 has joined #nixos
<mguex>
does somebody here have a mailman 2 module / shareable config, i.e. for pkgs.mailman?
<tarruda1>
what initramfs generator is used by nixos?
zupo_ has joined #nixos
<tarruda1>
I have a custom dracut module that I use to boot linux distros from arbitrary directories in the filesystem, any pointers on getting it to work on nixos?
<dahirsch>
hi, im trying to manage a debug build of openssh outside of the nix store. after googling around i have found have to override the compile flags. i just have no idea how to "fork" the openssh package into a new package "openssh-debug". im trying to replicate the first approach of https://sandervanderburg.blogspot.com/2014/07/managing-private-nix-packages-outside.html . can someone give me a hint?
hmpffff has joined #nixos
clacke_movim has joined #nixos
fendor_ has quit [Ping timeout: 245 seconds]
knupfer has joined #nixos
<tobiasBora>
Hum...
slyfox has joined #nixos
<edef>
dahirsch: any reason `enableDebugging openssh` doesn't do what you want?
<tobiasBora>
I tried to write a simple derivation for a closed source program that uses autoPatchelfHook. Everything seems to work, but I would like to make sure that it matches the "good practice" of nixos. Especially that the buildinputs/nativebuildinputs are the good one.
<tobiasBora>
could someone just give it a look and let me know if everything looks good?
<tobiasBora>
More precisely, I'm not 100% sure about the place of dpkg
<tobiasBora>
On skype page, they put dpkg in buildInput, but for me this is required only at compilation, so it should be in nativeBuildInput. Am I right, or did I missed something?
<dahirsch>
edef: this enables debug symbols in the binary. openssh has several debug #ifdefs in its source which enables debug printing. thus i want to create a debug version which has these ifdefs defined
<tobiasBora>
I'm also not sure if it's a good practice to specify glibc in buildInputs, because it also seems to work without it, but the program requires some library like libpthread.so.0. What is the "good practice"?
alp has quit [Remote host closed the connection]
<tobiasBora>
and finally in buildInputs I use gcc-unwrapped because the program requires libpthread.so.0, but this -unwrapped looks a bit strange to me, so I'd like to make sure it's the way to go.
<dahirsch>
edef: exactly, i just dont know how to write the new openssh-debug.nix so that everything is the same except the package name and the cflags
<edef>
dahirsch: ah
<edef>
sec
<manveru>
is there some easy way to specify different keyboard settings when i plug in different keyboards?
<edef>
i have a hacky system for this but it's not very good
<edef>
and i haven't integrated it with udev
<manveru>
mostly running setxkb`
<manveru>
argh
<edef>
but my USB keyboard is Dvorak/RU and my laptop keyboard is QWERTY/RU/Dvorak
<manveru>
using setxkbmap myself, but that conflicts with fcitx
<gchristensen>
X can take keyboard specific configuration
<tobiasBora>
In buildFHSUserEnv, there is multiPkgs: Packages to be installed for all architectures supported by a host (i.e. i686 and x86_64 on x86_64 installations). Only libraries are installed by default.
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-19.03: https://git.io/fju1y
ericsagnes has quit [Ping timeout: 258 seconds]
ThatDocsLady_ has quit [Ping timeout: 272 seconds]
<rprije>
I seem to be unable to download stuff within my builder script. Two questions: is it expected that things like name resolution fail within the build environment b) is there some sort of buildInput I can add to make it possible?
<rprije>
I suppose it makes sense if it's not allowed given it screws up reproducable builds. Just wondering if there's common work arounds.
ghasshee has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « shairport-sync: 3.2.2 -> 3.3 (#62567) »: https://git.io/fjuM4
<rprije>
manveru, actually, bundix is the reason I wanted to do this (I believe you're the maintainer?) I really wanted to generate gemset.nix via a derivation to automate away the updating of it. I saw mkYarnPackage looked like it achieved something like that.
mkaito- has joined #nixos
<manveru>
yes, because the yarn.lock has checksums...
<manveru>
Gemfile.lock doesn't
mkaito- is now known as mkaito
mkaito has joined #nixos
mkaito has quit [Changing host]
ghasshee has joined #nixos
<rprije>
I see :(
<rprije>
Thanks for the explanation. And thanks for bundix!
<manveru>
i mean, in theory you can have one checksum on top of calling bundle install, but that means that bundler would have to be deterministic, and not every gem could be built as a separate package
<manveru>
so if you change one dependency, everything has to be rebuilt
<manveru>
no problem, we're working on better ways to do this stuff :)
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/fjuDT
<tobiasBora>
I just discovered the really nice "steam-run" that build a FHS system with lot's of default libraries
<tobiasBora>
However, I'm curious: is it possible to use it to package a derivation?
ericsagnes has joined #nixos
<tobiasBora>
I mean, to create a new derivation based on steam-run that eventually copy a file in /bin, and then run this file?
ryantrinkle has joined #nixos
<tobiasBora>
as a first step I tried something as simple as "let pkgs = import <nixpkgs> {}; in pkgs.steam-run", but it wants to install the full steam, which I don't want
mariel__ has quit [Read error: Connection reset by peer]
MmeQuignon has quit [Read error: Connection reset by peer]
<Baughn>
tobiasBora: Possible but discouraged. It's almost always overkill.
<Baughn>
Since it's basically the union of every possibly-applicable library.
endformationage has joined #nixos
<Baughn>
It's called steam-run, but it's more... ubuntu-run.
<Baughn>
If you _must_ have a FHS chroot for your program, I would suggest a custom buildFHS call. Preferably don't, and use patchelf instead -- better yet, autoPatchelf.
<Baughn>
(There's a pretty significant setup cost to invoking FHS.)
<tobiasBora>
Baughn: very interesting.
<tobiasBora>
I'm curious to see the "quick and dirty" way to overwrite steam-run.
<NYXT>
I'm writing a package locally (which I'm new to) and having an issue where when I enter a shell with my package, the binary (copied into $out/bin) cannot be executed, instead I get a "no such file or directory", it has r-wr-wr-w permissions. It seems that whatever permissions I set it to while building get reset. I'm sure I've done something wrong somewhere, any ideas?
MmeQuignon has joined #nixos
<Baughn>
tobiasBora: ^ This is how you can create a custom FHS environment. Just remember, it slows program startup by a lot.
<NYXT>
(sorry, that should be r-xr-xr-x)
<Baughn>
Not really a problem for a long-running one, I guess.
<pie__>
Baughn, the point would be that he doesnt have to figure out what dependencies he needs i imagine
<pie__>
once stuff works you can whittle it down later? :P
<Baughn>
pie__: autoPatchelf is great for that.
<pie__>
you still have to figure out the deps though. or i guess you could just copy everything from steam run
<pie__>
the implementation looks a bit complicated though
<Baughn>
(Do be aware, the code in that PR is buggy. I've fixed it locally, but was still waiting on a response from the author.)
<pie__>
Baughn, oh i didnt know it does that
<Baughn>
pie__: Yeah, don't _copy_ it. Use buildFHSUserEnv, or if that doesn't work, steam-run. Or just autoPatchelf it.
<Baughn>
steam-run does a bunch of extra stuff that's not usually necessary.
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<tobiasBora>
Baughn: yes, I'm now aware of FHS. The problem of FHS is that you need to find all the libraries, and it takes time (the only method I found is to use nix-locate, if you have better ways let me know!), so I'm curious to kow if there is a quick-and-dirty solution that just plug a program into steam-run directly. I'm asking because I'm trying to review all the possible methods here, with the advantages/drawbacks
<pie__>
i have never seen addAutoPatchelfSearchPath before
<pie__>
woo undocumented functions
<Baughn>
It's documented, just not in the nixpkgs manual.
<Baughn>
(It's documented in the autoPatchelf derivation.)
<tobiasBora>
Baughn: when I do that I've an error "Package ‘steam-runtime-2016-08-13’ has an unfree license, while I can install steam-run without any issue. Do you know what's wrong?
<gchristensen>
what does that do :o
<Baughn>
gchristensen: Adds a directory to autoPatchelf's search path. Handy when (in this case) I wanted to link adom to the libnoteye copy it ships with.
<Baughn>
tobiasBora: Mm. At a guess, you have unfree code enabled in configuration.nix?
<Baughn>
That doesn't affect user invocations of nix-shell/nix-env. You need to set it in ~/.config/ for that.
<tobiasBora>
Baughn: and don't but I don't want to allow unfree code. steam-run does not require that right?
toppler`` has joined #nixos
<tobiasBora>
s/and don't/I don't
<tobiasBora>
oh
<tobiasBora>
indeed I have it in configuration.nix, but not in ~/.config
<tobiasBora>
But why does it require non free?
<Baughn>
Because it's the union of every possibly useful library.
<tobiasBora>
Baughn: and some of these useful libraries are non free I guess?
<Baughn>
That would be my guess.
reinhardt has quit [Quit: Leaving]
<Baughn>
If that's a problem then, well, if whatever you're running isn't itself closed source then it's probably easy to compile naively.
<Baughn>
*natively
<simpson>
tobiasBora, Baughn: At a glance, I think that it's the `steamrt` libs that are being used by steam-run and which are unfree; a comment in there suggests that the unfree code comes from nVidia.
<tobiasBora>
Baughn: sure. It's just that I was afraid to have the full steam installed, as I had no warning with nixos-rebuild
<tobiasBora>
simpson: thank you!
<Baughn>
Warning? Of what?
<tobiasBora>
Baughn: about non-free install.
<Baughn>
If you want to avoid that, just remove the line enabling it.
<tobiasBora>
Baughn: if I want to add more libraries/stuff to steam-run, I can also?
<Baughn>
With difficulty. I'd really recommend one of the other methods.
<tobiasBora>
Ok thanks
<tobiasBora>
what make it hard to do? (despite the fact that it's not recommended)
MmeQuignon has joined #nixos
emptyflask has joined #nixos
ericsagnes has quit [Ping timeout: 258 seconds]
<pie__>
tobiasBora, just making sure, you know unfree means unfree as in not-GPL-kind-of-free right?
<Baughn>
It's a complicated system of derivations, with multiple wrappers. It's not meant to be overridden from the outside, since its purpose is purely to duplicate the steam environment.
<simpson>
Sure. Whether or not something is "unfree" doesn't matter; what matters are the specific rights granted in each license.
<pie__>
oh no what have i started again xD
sb0 has joined #nixos
<tobiasBora>
gchristensen: yes it's free. But pie__ was mentionning GPL-kind-of-free so I was thinking that it may not be included to avoid any conflict :P
<simpson>
Saying "free" and "unfree" is easy shorthand to indicate that the freedoms or rights granted to people by a copy of the software are innate within the copy, and thus it is *only* the license which prevents us from using the software.
<pie__>
tobiasBora, gpl was arbitrary, i was more trying to emphasize that its about licensing
<tobiasBora>
oh, sure
<gchristensen>
tobiasBora: that was a misnomer :P
<pie__>
i was just surprised you were surprised that steam tries to pull in unfree stuff
<simpson>
We could remove the word entirely and only say "redistributable", "copyable", etc., but enumerating the positive rights is impossible (there's indefinitely many!) so instead we enumerate what is forbidden: "unredistributable", etc.
<pie__>
or whatever
<tobiasBora>
pie__: I'm not surprised about steam, I just didn't tought that steam-run could pack unfree stuff, and I was afraid to install the full steam
<tobiasBora>
simpson: makes sense
<tobiasBora>
Baughn: ok I see, thank you!
<tobiasBora>
Also, coming back to steam-run, any idea why it nevers starts the GUI when I try to use it with teamviewer?
<pie__>
i think teamviewer is packaged?
Matthieu_ has joined #nixos
arjen-jonathan has quit [Ping timeout: 272 seconds]
zorro1318[m] is now known as jgosset[m]
<tobiasBora>
pie__: sure, but I just want to do some tests to check if steam-run works as well as it pretends to ;)
<tobiasBora>
and ps aux shows me: me 3446 0.0 0.0 1184600 7212 pts/4 Sl 16:56 0:00 /tmp/tw/teamviewer/tv_bin/teamviewerd -n -f
fendor_ has joined #nixos
<tobiasBora>
ah, when I try teamviewer license accept, I have an error /tmp/tw/teamviewer/tv_bin/teamviewer-config: error while loading shared libraries: libQt5Quick.so.5: cannot open shared object file: No such file or directory
boothead has joined #nixos
<tobiasBora>
so I guess steam-run is not yet perfect :P
<{^_^}>
[nix] @edolstra pushed to lazy-flakes « Move flake-related stuff to src/libexpr/flake »: https://git.io/fjuyd
bob_twinkles has joined #nixos
<boothead>
Hey folks. Is there anything special you have to do to get docker build running on nixos? Whenever I try and build an apt based image it fails to update on what looks like a DNS type error on apt-get
<tobiasBora>
Is there a writeScriptBin that takes depends?
<Baughn>
tobiasBora: Not applicable. buildInputs only matters for e.g. autoconf and other supported build systems.
<Baughn>
For a shell script, just put `${pkgs.less}/bin/less foo` in the script, or whatever.
hmpffff has quit [Quit: nchrrrr…]
<tobiasBora>
Baughn: oh, good point
<tobiasBora>
thanks
<Baughn>
What you need to understand is that there's a separate phase for discovering dependencies at the end of the build, which has nothing to do with buildInputs.
<Baughn>
It essentially greps the derivation output for /nix/store references.
<{^_^}>
[nixpkgs] @marsam merged pull request #62667 → python: sh: fix (patch a test to be able to install again) → https://git.io/fjuCc
<tobiasBora>
Baughn: not sure to follow, you mean to solve the ${pkgs.less} references?
<Baughn>
tobiasBora: The Nix language, when evaluating strings, resolves references like ${pkgs.less} to a path under /nix/store -- copying files into the nix store if necessary.
<Baughn>
writeScriptBin then writes that text into a script.
<Baughn>
Then, after the build is completed, the build daemon searches the output directory for references to /nix/store, and updates the dependency database (sqlite DB) based on that so GC will work correctly.
mariel__ has joined #nixos
<Baughn>
So your ${less}/bin/less reference will remain valid until the package it's *in* is GC'd.
ThatDocsLady_ has quit [Remote host closed the connection]
<boothead>
manveru: yeah it's weird alright!
<Baughn>
tobiasBora: Make sense?
<tobiasBora>
Baughn: hum... I think yes. Grepping the output directory looks a bit dirty to me, but why not. I thought it uses the function input to determine the dependency
<tobiasBora>
so it means that if my binary is compressed in a strange way that hide the /nix/store references, some deps could be garbage collected??
<Baughn>
I suppose that would be implied.
<Baughn>
This is how it was explained to me. I could believe _both_ being used.
<tobiasBora>
Baughn: ok interesting. if someone has more details I'm interested!
<Baughn>
To be fair, the /nix/store paths are SHA hashes. You'll never encounter one by accident.
<tobiasBora>
Baughn: yes, the problem to me is more in the other way, it could be possible to miss one
<Baughn>
I tried reading the code once, but it's Scary C++.
<tobiasBora>
like, let's imagine that I compress all my shell scripts to gain in space, and that when a shell script should be executed, it's temporary uncompressed.
<tobiasBora>
ahah$
<Baughn>
I'd encourage using filesystem-level compression instead. ;-)
<tobiasBora>
Baughn: I'm not pretending it's a good idea, I'm just imaginating strange behaviour that could be a problem. Imagine that we encrypt the binaries if you want a more plausible usecase ;)
<tobiasBora>
(still not super frequent, I admit)
boothead has quit [Quit: Page closed]
<Baughn>
Ye~s, I imagine in that case you'd need to add a plaintext file just listing references.
<tobiasBora>
Baughn: ok. That's funny
<Baughn>
In practice it doesn't come up.
<tobiasBora>
Baughn: Let me write some crazy software to make this append :P
emptyflask has quit [Ping timeout: 248 seconds]
<tobiasBora>
I guess it makes sense in practice sure
<tobiasBora>
so it means buildInput/nativeBuildInput does not really matter?
<Baughn>
It matters for the default builder.
<Baughn>
It affects the functioning of scons, cmake, autoconf, etc. etc.
<tobiasBora>
ok interesting
fendor_ has joined #nixos
fendor_ has quit [Client Quit]
<Baughn>
For your shell script case, it also may add the package to the PATH of the shell script, etc. -- haven't checked that.
<tobiasBora>
By the way, I need to use a dpkg-decompression before writeScriptBin. Does that mean I need to write a dummy mkDerivation that just decompress everything but nothing more, or there is a better way?
<Baughn>
Just, all of these are conveniences. buildInputs isn't fundamental to the functioning of Nix, it's something layered on top.
<Baughn>
Derivations are cheap. But how large is your script?
<Baughn>
It isn't unusual to write them manually with cat <<EOF in installPhase, or whatever.
<Baughn>
makeWrapper sometimes.
wfranzini has quit [Remote host closed the connection]
<Baughn>
tobiasBora: What buildInputs does do for you is make sure the bin/ directories of said packages are on the PATH *in the build system*.
<Baughn>
So, e.g. inside installPhase.
<Baughn>
That might not seem immediately useful, but it means you can use $(which hello) to get a reference to the hello package.
ghasshee has quit [Ping timeout: 248 seconds]
<tobiasBora>
Baughn: really, it's in the build system? I though I understood the difference between buildInputs and nativeBuildInputs, now I'm lost again :(
schjetne has quit [Ping timeout: 268 seconds]
<Baughn>
buildInputs puts stuff on the path in the build system.
<Baughn>
It doesn't mean you should _run_ it in the build system. If that's the plan, then you should use nativeBuildInputs instead.
<Baughn>
Anyway, that's secondary. Mostly buildInputs is for supplying libraries to autoconf and whatnot.
<Baughn>
And while putting $(which hello) in a makeWrapper call can be convenient, ${pkgs.hello}/bin/hello is IMO better.
<tobiasBora>
I'm really sorry, I need to go but I'll be back (and I stay connected to get the answer, I'll read themwhen I'm back). Meanwhile I made this trial, but it's not working. If you have a typical way to make it work I'm interested! https://paste.debian.net/1086427/
<Baughn>
tobiasBora: You want $! ${stdenv.shell}, not ${bash}.
<tobiasBora>
Baughn: thank you very much for your explaination by the way, nixos is getting clearer every single day. Still need lot's of progress however, I guess I need to find some readings about the internals of nix to understand nix a bit more
<Baughn>
tobiasBora: For one thing, the latter would just evaluate to the directory bash is installed in -- you'd still need to append /bin/bash.
<Baughn>
Check out the Nix Pills series!
gml8 has joined #nixos
<Baughn>
tobiasBora: Also, you should never use nix-shell in a derivation. That's for standalone scripts / direct command-line use.
<tobiasBora>
Baughn: Ok, I made this work, thanks a lot. However I've the feeling it's not super clean, if you see some ways to improve it let me know! https://paste.debian.net/1086428/
<Baughn>
tobiasBora: Furthermore, bash won't parse the nix-shell line.
<tobiasBora>
Baughn: so just bash and ${steam-run}?
<Baughn>
So that's just a comment. Which happens to be the right thing here, because it's not necessary.
<xok>
can anyone help me understand how to use arrays in configurations?..
<xok>
do we have any of the array iterators ( for, while, foreach etc )?...
<simpson>
xok: Not really. We have folds and maps instead.
<xok>
simpson: any examples?.. 8-)
hmpffff has quit [Quit: nchrrrr…]
<lordcirth__>
xok, what do you need to do?
<xok>
lordcirth__: I want to create multiple virtualHosts inside httpd service and iterate through them...
kisik21 has quit [Ping timeout: 246 seconds]
<simpson>
> map (x: x + 1) [ 1 2 3 ]
<{^_^}>
[ <CODE> <CODE> <CODE> ]
<simpson>
infinisil: ^^ Is this a bug or am I bad at Nix? (Or both?)
<simpson>
xok: Anyway, to iterate, use `map`. You can't get an iterator, though.
drakonis_ has joined #nixos
<xok>
simpson: are you familiar with nixops?..
ondrejs has joined #nixos
<tilpner>
> :p map (x: x + 1) [ 1 2 3 ] # simpson
<xok>
I am using a configuration to deploy a new machine with several virtualHosts inside an HTTPD...
<{^_^}>
[ 2 3 4 ]
Ariakenom has quit [Read error: Connection reset by peer]
<simpson>
xok: Okay. What's not working?
<xok>
simpson: and I want configuration to be generated for each of them...
<ondrejs>
hello, I have a newbie question. I wanted to setup Discourse, found only this https://gist.github.com/teozkr/ae017b89d4a0179ec211757aa92ff3a1 and I don't know how to use it since it does not `mkDerivation` (if it did I would use override/add package in the main config)
<xok>
I just don't know how to do it...
<xok>
simpson: such as DocumentRoot etc...
<simpson>
xok: Map a function which builds a configuration over a list of parameters.
<lordcirth__>
xok, well, do you know how to build 1 virtual host?
<simpson>
Figure out how to configure just one, and then we'll go from there.
<alexarice[m]>
If something is needed in the build of a package should it always go in nativeBuildInputs
<xok>
simpson: looks something very close to what I want...
<xok>
how do I use those "host" and "conf" variables inside [ and ] ???...
<tilpner>
gchristensen: Did you diffoscope the new one and the one from tarballs.n.o?
<alexarice[m]>
Or is there some other easy way to tell whether a package is a buildInput or nativeBuildInput
<xok>
and how do I pass them too?..
drakonis_ has quit [Ping timeout: 252 seconds]
<teozkr>
ondrejs: it's a NixOS module, so you can add it to your `imports` to enable it
<gchristensen>
tilpner: bash 3.2.48 isn't in tarballs
<tilpner>
Huh, why not?
<teozkr>
ondrejs: (like with the generated hardware-configuration.nix)
<gchristensen>
I'm not sure tarballs was being maintained in 2009, tilpner
<ondrejs>
teozkr: haha, didn't expect the author to reply :-) Thanks!
<tilpner>
Oh, it's that old
<gchristensen>
I'm in nixpkgs rev a5b607ef4fe
<tilpner>
:/
<teozkr>
ondrejs: no problem, I get a notification when mentioned :p
qubasa has quit [Ping timeout: 272 seconds]
<simpson>
xok: Oh, sorry, that second parameter would be an attrset, and it'd be something like { myCoolVHost = { root = myCoolWebroot; enableACME = true; forceSSL = true; ... }; ... }
linarcx has joined #nixos
<gchristensen>
ehhh linux 2.6.23.16 doesn't build from 2009 either. maybe I'll just try making a new package.
drakonis_ has joined #nixos
nschoe has quit [Ping timeout: 252 seconds]
<simpson>
gchristensen: Please tell me that this is in preparation for a talk. I can even imagine the title: "Tarnished Mirrors, or: where have all the tarballs gone?"
<gchristensen>
that would be a very cool talk
<pie__>
simpson, hah nice title :P
<gchristensen>
I will write that down :)
<gchristensen>
but no, I honestly and earnestly want bash 3.2
<lordcirth__>
What do you want bash 3.2 for?
Jackneill has quit [Ping timeout: 244 seconds]
<gchristensen>
I want to test something against the same bash which macOS uses
<ambro718>
I have an old channels link in /nix/var/nix/profiles/per-user/root/ containing a nixpkgs but running "nix-channel --list" as root prints nothing (I don't use channels). Why is this?
<ambro718>
Can I just delete this?
<edef>
an older generation, i assume?
<edef>
the normal nix-env thing for deleting old generations of profiles works, i think
<ambro718>
Very old (nixos-17.09). It doesn't get removed with nix-collect-garbage --delete-old.
<ambro718>
I'll just rm it.
<edef>
weird
<edef>
nix-env -p /nix/var/nix/profiles/per-user/root/channels --delete-generations old
<edef>
that definitely worked for me
<edef>
(but is identical to rming it)
<edef>
and thanks for reminding me i still had that kicking around q=
zupo has joined #nixos
Syr3mas has joined #nixos
<Syr3mas>
How it going dev? Need help with openssl-dev, would like to install it on NixOS. Thx
sigmundv has quit [Ping timeout: 258 seconds]
<Yaniel>
there are no separate dev packages on nixos
<ambro718>
Not quite true, there are dev outputs.
<Syr3mas>
exit
<Syr3mas>
sorry wrong terminal
<Syr3mas>
hold a sec ill specify
<ambro718>
Syr3mas: as long as you're writing a nix package (using mkDerivation), just specify openssl in buildInputs.
ub has quit [Quit: Leaving]
<Syr3mas>
error: failed to run custom build command for `openssl-sys v0.9.47` this is what am getting.
<ambro718>
Where are you getting this?
fendor has joined #nixos
<ambro718>
If you're doing development, you probably want to use nix-shell
alp has quit [Remote host closed the connection]
<Syr3mas>
when doing a cargo test
alp has joined #nixos
<pie__>
nbp, i just keep failing to get around to cleaning this up properly, i would appreciate that if you think its worth a look, youd give me some input on this?: https://github.com/deliciouslytyped/nix-rootedoverlay
<pie__>
nbp, its meant to help provide a consistent interface to for example language infrastructures with interpreters (think python.withpackages)
<pie__>
nbp, but i dont think this actually answers your question
<thomasd>
I feel like I'm missing something easy.
<nbp>
pie__: I do not think I would be able to give you an answer at the moment. Can you explicit your question?
<nbp>
by email
<Syr3mas>
alright nix-shell did the job. Received other errors ill try to solved them. Thx
<pie__>
nbp, ok, is discourse ok?
<tilpner>
Oooh, whoever did the interactive daemon installation flow: Good job!
<pie__>
nbp, the reason i asked is you seem to know your way around this overlays/extensibility stuff and my project is trying to improve that area. ill get back to you with a more coherent explanation then.
<pie__>
nbp, theres no concrete questoin other than whether you think it makes sense overall
<ambro718>
Where does nix store information about runtime dependencies of store paths?
<thomasd>
I can easily get the tlaplus package, defined in the default.nix file of the parent directory, but I don't know how to fetch the toolbox.nix file...
<nbp>
pie__: I am registered on discourse, I did not knew they had any private message system.
<pie__>
nbp, i figured id start a thread but that works too. apparently now they do seem to have one.
<nbp>
pie__: In your message, would you be able to describe how you solve this issue?
<pie__>
or at least it looks like it has one
<pie__>
its actually surprisingly simple^W short now that i go back and look at the implementation, its just all that fixepoint stuff that destroys my brain
<pie__>
nbp, ok, ill get back to you "later"
<rfold>
When I run "nix-shell -p zlib --run 'env | grep zlib'" it prints NIX_CFLAGS_COMPILE and NIX_LDFLAGS. Where are these variables set? I can't find anything in the source code of nix-shell (nix-build). Is it part of some shell hook somewhere?
<rfold>
They seem to be set in files typically called setup.sh or setup-hook.sh.
<rfold>
I'll take a look at those.
<rfold>
And at the documentation of setup hooks, so I know when and where they are invoked.
Matthieu_ has joined #nixos
<infinisil>
thomasd: Do you have a local nixpkgs checkout and ripgrep (or similar) installed?
<infinisil>
thomasd: If so, you can just do `rg tlaplus/toolbox.nix` in the nixpkgs root to find where it's assigned
<infinisil>
Which would be to the `tlaplusToolbox` attribute
<thomasd>
inifinisil: I'm on nixos, unstable
<thomasd>
`error: attribute 'tlaplusToolbox' missing, at /home/thomasd/Code/LambdaConf2019/TLAPlusWorkshop/default.nix:7:31`
domogled has joined #nixos
<rfold>
Ah, setupHook is sourced by the builder. And nix-shell runs inside of a builder.
<rfold>
Now it makes sense.
<thomasd>
inifinisil: I'm doing this currently - 'buildInputs = [ tlaplus tlaplus.tlaplusToolbox ];' how is this wrong... ?
freeman42x has joined #nixos
<pie__>
nbp, i think one of the main points of my thing is to have .withPackages return an object that can be further .withPackages-ed or .extended (thats where the "rooted" comes from - some probably bad name I came up for it). It's mostly about providing a homogeneous interface to users. This also lets you chain things if for example youre using something in a library but want to still expose it to the user.
<pie__>
the original goal was for creating an API that could be used across various implementations of things that needed plugins
Netsu has quit [Quit: Page closed]
<pie__>
so youd provide the root package and a function implementing the "add [these] plugins to the environment", and the library is supposed to handle the rest of managing that. it takes a list of overlays which get added on top of this core functionality. these are supposed to be for providing the "plugins" that you can use in `.withPackages (p: with p; [ pluginA pluginB ])`
<{^_^}>
[nixpkgs] @matthewbauer pushed 4 commits to master: https://git.io/fju7I
acarrico has quit [Ping timeout: 252 seconds]
onetom has joined #nixos
<Matthieu_>
Hi everyone, I'm trying to install skypeforlinux but the package seems to be broken given that error message : «error: cannot download skypeforlinux_8.32.0.44_amd64.deb from any mirror»
<Matthieu_>
Should I do something about this, like reporting a wrong URL or something ?
<rfold>
I'd like to contribute a package, but the maintainer is a bit sloppy and there are no official releases or version numbers (i.e. commit hashes are the only version identifiers available). What is the policy on this regarding the version attribute to stdenv.mkDerivation, and the Nixpkgs commit message?
Matthieu_ has quit [Read error: Connection reset by peer]
npmccallum has joined #nixos
<simpson>
rfold: You can pick a relatively stable commit and date and use that. I'm not sure if there's a page with a policy on this.
<onetom>
im trying to expose the `aapt` command from the `androidenv.androidPkgs_9_0.build-tools` package list, but it's under a directory which includes version numbers.
<tobiasBora>
Baughn: I'm not sure how I should use makeWrapper instead of writeScriptBin, and more precisely how to add the ${steam-run}/bin/steam-run before the real executable. I was thinking to use "--run ${steam-run}/bin/steam-run", but it seems that this is more to run a command before rather than just prepending the executable with this command...
<tobiasBora>
Baughn: by the way, do you have a reference to a documentation about the strange behaviour of grepping the /nix/store-like stuff for garbage collection?
lopsided98 has joined #nixos
<clever>
tobiasBora: nix why-depends
<Baughn>
tobiasBora: The garbage collector itself doesn't do that.
<clever>
yeah, that metadata is stored in db.sqlite
<Baughn>
Dependencies are written into the DB in /nix/var/nix.
<clever>
and generated when the build is finished
<eyJhb>
Can anybody remember the command, to rebuild using a specific directory ? I remember it something like.. `nixos-rebuild -I nixpkgs=DIR boot`, but doesn't seem to work
wfranzini has quit [Ping timeout: 248 seconds]
<gchristensen>
that should do it
<eyJhb>
I just get `error: opening file '/home/eyjhb/projects/git/nixpkgs/default.nix': No such file or directory` :/
<tobiasBora>
clever: interesting!
<tobiasBora>
Baughn: indeed, thanks for the clarification
<eyJhb>
I might know why now..
<Baughn>
tobiasBora: I haven't found any actual documentation, but maybe gchristensen knows.
<tobiasBora>
Baughn: ok, I'd be interested to understand that!
<gchristensen>
eh?
<tobiasBora>
so to clarify, only the grep is used, or it's a mix between grep and actual stuff like nativeBuildInput or something?
<clever>
tobiasBora: it will serialize $out into a nar, and then just search that whole blob for every hash that was in the input closure
<tobiasBora>
gchristensen: do you have some documentation about how internaly nix build the dependency graph? I was thinking that it was only using buildInputs or something, but apparently it's not at all ^^'
<clever>
its always a subset of all inputs
<clever>
it doesnt care which var you got the input from
<tobiasBora>
clever: ok interesting. So it means that you cannot know the dependencies before compiling?
<clever>
correct
<gchristensen>
you can know that the run-time dependencies is a subset of all of the inputs, right clever?
<clever>
gchristensen: yeah
<gchristensen>
tobiasBora: ^ make sense?
<{^_^}>
[nixpkgs] @vcunat pushed commit from @Ma27 to master « Merge #62590: vim: 8.1.1234 -> 8.1.1432 (security) »: https://git.io/fju5I
<tobiasBora>
clever: and I think to remember that nix has some way to know what to recompile when a depends changes. It uses just the inputs to recompute that, or it actually use the .nar (and therefore need to first compile everything)
<{^_^}>
[nix] @codetriage-readme-bot opened pull request #2924 → Add CodeTriage badge to nixos/nix → https://git.io/fju5L
<clever>
tobiasBora: the $out path is based on a hash of the .drv file, which includes every build-time input, and the recipe for building it
<tobiasBora>
gchristensen: yes! I was also curious to know if there are official documentation about this kind of internal gestion of nix, so that I don't bother you every time I have a question (and sometimes it helps a lot to understand these details)
<clever>
tobiasBora: its less that it knows to rebuild, and more that if you change anything, the hash changes, and then it cant find $out in /nix/store/
<clever>
so its just "missing" and has to be build again
<gchristensen>
tobiasBora: well ... hmm how do you feel about reading the thesis ? :)
<tobiasBora>
gchristensen: that's great, I want it :P
<tobiasBora>
thanks!
<Baughn>
I'd be skeptical that it still describes the system. :P
<gchristensen>
it very much describes the ideas behind the system
<Baughn>
That's fair.
<Baughn>
tobiasBora: There's also the Nix Pills series, which you should definitely read if you haven't already.
<Baughn>
gchristensen: Anyway, I've been threatening to do this for a while, but now I'm actually scheduled to hold a tech talk on NixOS at my office.
drakonis_ has quit [Ping timeout: 248 seconds]
<Baughn>
So I'm looking for inspiration. Any particularly good talks you'd want to point me at?
<gchristensen>
nice
<gchristensen>
I think it is possible to do a great talk on just string context tbh
<tobiasBora>
clever: ok, I makes sense I guess (every new sentences help me to understand how nix works, I'll finally understand it at some points :P)
<Baughn>
=_=
<gchristensen>
no?
<Baughn>
Would that get more people to try the OS?
<gchristensen>
ah he
<gchristensen>
nixos tests are pretty sweet
<Baughn>
The office is full of SREs. I more or less know the approach I'm going to take.
<Baughn>
...and yes, tests are part of it.
<tobiasBora>
Baughn: yes, I should read them again, I used to read them but there were a bit too much random example and not enough fondamental explanation to me, so I was a bit lost. But I should try them again now I have bit more background
<tobiasBora>
(not that I don't like examples!)
<{^_^}>
[nixpkgs] @vcunat pushed to release-19.03 « vim_configurable: also apply the security patch »: https://git.io/fju50
ng0 has quit [Quit: Alexa, when is the end of world?]
<tilpner>
NixOS can't fix this for you magically, no. NixOS can be configured to prevent this or help revert destructive actions like that
<hooo>
tilpner, that's what I mean
o1lo01ol1o has quit [Remote host closed the connection]
<hooo>
so with nixos I can just reinitialize my default system and keep all the files right?
<hooo>
so I can get back the old permissions
xok has quit [Ping timeout: 272 seconds]
<clever>
hooo: what exactly is "ruined" with the vm now?, how is it failing?
<tobiasBora>
manveru: nixos is supposed to support signing?
<tilpner>
hooo: NixOS doesn't generally set all permissions. With NixOS you could easily reinstall though, but you'd still have to manually fix unmanaged files
<hooo>
it wont even start clever
<manveru>
tobiasBora: in fact, it requires it for binary caches
<clever>
hooo: what error does it give when starting?
<tilpner>
hooo: Snapshotting filesystems like zfs can be used to rollback changes like this
<gchristensen>
the wiki has a channel (#nixos-wiki) and active edits
<tobiasBora>
ok that's really nice then, I way try to help once I'm better :P And google should put the wiki in a better position!
vivi_t has joined #nixos
vivi_t has left #nixos [#nixos]
<{^_^}>
[nixpkgs] @vcunat pushed to staging-next « sword: fixup build with icu >= 61 »: https://git.io/fjudY
ilmu has quit [Ping timeout: 258 seconds]
drakonis_ has quit [Ping timeout: 258 seconds]
hmpffff has quit [Quit: nchrrrr…]
<samueldr>
tobiasBora: relatedly, google apparently disappeared the nixos wiki from their index, with no way to know why :(
<samueldr>
it's been close to a week since it dropped off
redsh has left #nixos [#nixos]
<mac10688>
does i3 window manager replace gnome or plasma kde or does it work with those GUIs?
<mac10688>
They are all window managers right?
Matthieu_ has joined #nixos
Orbstheorem has joined #nixos
<o1lo01ol1o>
I have a nixops deployment to AWS defined that deploys a hydra server with one build slave and I'm not sure how to give the hydra server / user the ssh key it needs to send jobs to the build machine, is this documented somewhere?
<Orbstheorem>
Hi ! How can I have vim use the system-installed aspellDicts on nixos ?
<Orbstheorem>
Oh, nevermind, it was just slow xD
<simukis_>
given that I do `nix-store -vvv --realise /nix/store/...` I get in log "checking substituter 'https://mysubstituter' for path '/nix/store/...'" but it seems like it fails on a particular machine while it succeeds on another.
<simukis_>
how could I debug what exactly happens during that checking substituter step?
<CapsLock>
I'm trying to install android-sdk tools ; but get undefined variable error ; I'm trying with androidsdk and android-sdk ; any idea to solve this please ?
hooo has quit [Quit: Leaving]
<clever>
CapsLock: where did you find the name android-sdk?
<CapsLock>
clever: via nix search
<clever>
CapsLock: are you using the package name, or the attribute path?
<clever>
if you didnt accept it, the search cant find it
<nschoe>
clever, oh, okay good to know. Thanks.
<tobiasBora>
samueldr: it's amazing...
<tobiasBora>
mac10688: I think you can do both (with more or less success)
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
<tobiasBora>
Is there a real image of nixos on docker to do some tests when I'm not on a nixos computer? https://github.com/NixOS/docker is only a nixpkgs, not nixos
<gchristensen>
tobiasBora: what would the difference be?
<tobiasBora>
gchristensen: hum, I don't know, maybe about services? I usually put everything in /etc/nixos/configuration.nix, and here is does not even exists. Or maybe I can enable it somehow?
<gchristensen>
docker containers don't/can't run systemd, as it really isn't what docker is for
<tobiasBora>
really?
<gchristensen>
right
<tobiasBora>
so it means I can't define services.flatpak.enable = true; and try flatpak...
<tobiasBora>
and it's the same thing for everything? Like for example I can't enable ldap?
<gchristensen>
you almost certainly can't run flatpak in a docker container either
<mac10688>
so if i want to install iw3 for my nixos, do i just type nix search iw3?
<mac10688>
and if it's not there, that means it can't be installed?
<mac10688>
oh it's i3 i think nvm
<tobiasBora>
gchristensen: ok interesting. Same for ldap?
<gchristensen>
tobiasBora: it sounds like you might misunderstand what docker is really for
<gchristensen>
usually ldap is for running a single process
<gchristensen>
usually docker is for running a single process
<mac10688>
ty clever
ajs124 has joined #nixos
<o1lo01ol1o>
I'm still trying to get hydra the keys it needs to send build jobs to it's (ec2-deployed) build machine. Can someone tell me if the following line is on the right track? users.extraUsers.root.openssh.authorizedKeys.keys = [ ''command="nix-store --serve --write" ${resources.ec2KeyPairs.agent}''];
mexisme_ has joined #nixos
<o1lo01ol1o>
It fails as the output of resources.ec2KeyPairs.agent is incorrect
<symphorien>
depending on whether you use ssh or ssh-ng, the command is either nix-store --server --write or nix-daemon --stdio iirc
<nschoe>
gchristensen, actually there are docker images modified to run system (for instance solita/ubuntu-systemd).
<nschoe>
In case you need to test.
<gchristensen>
nschoe: yikes :x
<clever>
o1lo01ol1o: ive just manually created a keypair, and hard-coded its public into the nix
<clever>
o1lo01ol1o: resources.ec2KeyPairs cant copy the private to the hydra machine, so its of no use here
<LnL>
o1lo01ol1o: that's what I do for remote builders
<nschoe>
gchristensen, I know it's not optimal and for some would even argue it doesn't make sense, but just wanted to let people know. I've used it in the past with success. Just in case :)
<clever>
o1lo01ol1o: deployment.keys can be used to copy the private to the hydra when deploying
<gchristensen>
thanks :)
<LnL>
the authorized keys part that is
<o1lo01ol1o>
gotcha, ok
<o1lo01ol1o>
thanks, i'll be back in an hour!
H55434 has quit [Ping timeout: 248 seconds]
<tobiasBora>
gchristensen: hum... I see. Because I was thinking to "pack" some nixos configuration into docker to be able to use nixos-like styling, and still be able to share it with anybody using docker. Too bad, but that's life :P (or maybe I can adapt stuff like https://developers.redhat.com/blog/2014/05/05/running-systemd-within-docker-container/, but maybe it does not worth it). Thanks!
gratto has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @Infinisil opened pull request #62742 → haskellPackages: Don't ignore old overrides → https://git.io/fjudx
<PyroLagus>
i'd like to know if there was a way to just output configuration files in a custom directory rather than /etc, so you could perhaps just overlay mount that
<gchristensen>
PyroLagus: oh?
<gchristensen>
configuration files don't get outputted to /etc, they go to /nix/store and then are symlinked in to place at the last moment
<PyroLagus>
i think it could work on systemd distros
gratto has joined #nixos
<PyroLagus>
right, symlinking into a custom dir should work too
<{^_^}>
[nixpkgs] @svanderburg pushed to master « node2nix: 1.6.0 -> 1.7.0 and regenerate all Nix expressions, introduce nodePackages_12_x attribute set »: https://git.io/fjudj
<tobiasBora>
gchristensen: hum, actually I read this page this afternoon but wasn't sure to see exactly what it's supposed to do. It copies the dependencies on /nix/store in the docker image basically? But if it does not allow services, I cannot use stuff like services.openldap.enable I guess, and I need to pack directly the openldap binary instead I guess
<{^_^}>
[nixpkgs] @geistesk opened pull request #62743 → weechatScripts.weechat-otr: init at 1.9.2 → https://git.io/fjuFk
schjetne has quit [Ping timeout: 252 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mexisme_ has quit [Ping timeout: 268 seconds]
<tobiasBora>
gchristensen: ok it can be useful! Thanks!
ddellacosta has joined #nixos
__monty__ has quit [Quit: leaving]
ng0 has quit [Quit: Alexa, when is the end of world?]
mexisme_ has joined #nixos
Matthieu_ has quit [Ping timeout: 252 seconds]
ericsagnes has joined #nixos
catern has joined #nixos
mexisme_ has quit [Ping timeout: 245 seconds]
<zeta_0>
hello guys, do you know a really good nix package that i can use to see things about my hardware and system, and is also a gui because i want someting visual? i am running xmonad so my only way at looking at these things right now is through the terminal
mexisme_ has joined #nixos
knupfer has quit [Ping timeout: 248 seconds]
<o1lo01ol1o>
clever: added the public key generated from the ec2 private.pem to the users.extraUsers.root.openssh.authorizedKeys.keys attributed in the build and server deployments but I'm getting: Aborted: cannot connect to ‘nixSlave’: hydra-queue-runner@nixslave: Permission denied (publickey,password,keyboard-interactive).
<o1lo01ol1o>
do I need to associate that key with another user? hydra-queue-runner maybe?
<clever>
o1lo01ol1o: hydra-queue-runner is always the one connecting to build slaves
erasmas has quit [Quit: Lost terminal]
Matthieu_ has joined #nixos
<sonercirit[m]>
does anyone use qubes with nixos here?
<nschoe>
I have no clue what those 'python binding generators' are :/
H55434 has joined #nixos
tg has joined #nixos
schjetne has joined #nixos
<simpson>
nschoe: "Python binding" usually means some C code that compiles against CPython's C API. There are a couple tools that can generate those bindings; the common one is Cython.
zeta_0 has quit [Quit: break]
<nschoe>
simpson, thanks for helping :) Hum so maybe addind CPython as a buildInput could work? ^^
o1lo01ol1o has quit [Remote host closed the connection]
schjetne has quit [Ping timeout: 248 seconds]
<simpson>
nschoe: `python` is already CPython. CPython != Cython. In this case, it looks like the bindings are generated via some Python Qt binding; each binding of Qt comes with its own tools for the SIP files, I think? So your options would be PyQt or PySide; I'm not sure what their status is in nixpkgs.
jackdk has joined #nixos
<nschoe>
simpson, okay I'm a bit lost. I'll try them, then. But how am I supposed to know?
o1lo01ol1o has joined #nixos
<simpson>
nschoe: I dug into the sip/ subdirectory, and I happen to have like a decade of putting up with Python. It's not an easy thing if you don't already know about Python and Qt.
<nschoe>
simpson, oh, okay. I'm lost then ^^. I know Qt, but don't know a thing about python :/
<nschoe>
simpson, oh now that you are mentionning bindings, there is one dependency for the derivation I'm trying to build which is called `python_qt_binding`. I have made a derivation for it, and it seems to build okay.
<simpson>
nschoe: I see that, under pythonPackages, we have pyqt4, pyqt5, pyside, and sip. I'm not seeing a $(sip) executable in any of their outputs though.
<tobiasBora>
In a pull request, peterhoeg[m] told me "Please also run the preInstall and postInstall hooks", but I'm not sure to see what he means. My installPhase is trivial, so not sure what I need to do
<nschoe>
simpson, OMG thanks you pparently solved my issue
Matthieu_ has quit [Ping timeout: 258 seconds]
<nschoe>
I included `sip` from the pythonEnv and I don;t have my error anymore (though I have another :D)
<nschoe>
Cool :)
ddellacosta has quit [Ping timeout: 248 seconds]
<samueldr>
tobiasBora: it's to help out people overriding your derivation in the future
<samueldr>
runHook preInstall and runHook postInstall at the start and end
<simpson>
nschoe: Glad to hear it. This stuff can be aggravating.
<samueldr>
this makes it so if I .overrideAttrs{old: { postInstall = '' some shenanigans ''; }} it works as expected
<tobiasBora>
samueldr: ok thanks. It's strange that nixos does not define it automatically. It means that every derivation is supposed to write runHook everywhere?
<samueldr>
yeah, and it's not exactly followed everywhere either :/
<tobiasBora>
is there any reason nix does not automatically run these hooks?
<samueldr>
I don't know, but my best bet would be that it's hard to do due to the implementation of hooks
<alexarice[m]>
it is done automatically unless you override the install phase
<samueldr>
that's the question "why isn't it done for any hooks ran via runHook" I think
<samueldr>
like if I `runHook foobar` if it ran `runHook preFoobar` and `runHook postFoobar` it would be neat
zeta_0 has joined #nixos
<clever>
samueldr: because pre and post have to run before and after your install code
<samueldr>
clever: which could be done by the harness of stdenv.mkDerivation
<samueldr>
or, more to the point, by `runHook`
<tobiasBora>
clever: but wouldn't it possibly to automatically add them? it's just appending two strings, should be feasible no?
<samueldr>
to consider: those with `runHook pre*/runHook post*` would have to have these hook calls removed or they would be ran twice
<samueldr>
so another reason is likely to be backwards compatibility
<clever>
yeah
<tobiasBora>
for backward compotibility it should be possible to redefine locally runHook to nothing no?
<samueldr>
what if you have `runHook fancyShenanigan` in the middle of your hook?
<samueldr>
though might be possible to run any hook only once even if called multiple time...
<samueldr>
... but that would be annoying for nix-shell use
<tobiasBora>
samueldr: then just check the value of the hook. If it's preInstall or postInstall, block, otherwise pass
<clever>
samueldr: unpackCmd is a special hook that is ran multiple times
<samueldr>
and it's not only for installPhase, so it's harder to fix right
shiver has quit [Quit: leaving]
<samueldr>
clever: unpackCmd is ran through runOneHook so it would technically be workable but probably not wise
toppler`` has quit [Ping timeout: 248 seconds]
<tobiasBora>
samueldr: well I guess that for every phase we can do the same trick, i.e. block the pre*/post* of the phase
nschoe has quit [Ping timeout: 258 seconds]
<zeta_0>
hello guys, how do i correctly install openjdk in home.nix, there is no: programs.java.(enable,pkgs) options in the home-manager manual, these options are only globally?
Anton-Latukha has quit [Quit: Leaving.]
shiver has joined #nixos
<tobiasBora>
some general questions about editing a pushRequest: should I ammend my last 2 commits and force push, or add two new commits?
TheCowGoesWoof has joined #nixos
toppler`` has joined #nixos
<TheCowGoesWoof>
Hi
<TheCowGoesWoof>
can anyone tell how I can use neovim instead of vim of vim_configurable?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
TheCowGoesWoof has quit [Client Quit]
srl295 has joined #nixos
rprije has joined #nixos
Matthieu_ has joined #nixos
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @r-ryantm to master « tbb: 2019_U6 -> 2019_U7 »: https://git.io/fjubZ
<zeta_0>
simpson: well, i just put `adoptopenjdk-bin` package in home.nix(home.packages), will this be fine because in nix options theres programs.java.(enable,pkgs) options which can only be done globally in configuration.nix, i don't see these options in the home-manager manual?
<zeta_0>
simpson: to do it locally for my user that is?
<{^_^}>
[nixpkgs] @andir pushed commit from @talyz to release-19.03 « firefox-wayland: Add missing dependency libglvnd (libEGL) »: https://git.io/fjubE
ddellacosta has joined #nixos
ambro718 has quit [Ping timeout: 244 seconds]
<tobiasBora>
I'm supposed to disable the build of a package for darwin. is setting platforms = platforms.unix; in the meta description enough?
<zeta_0>
does anyone no how to correctly install jdk in home.nix?