<kkini>
Suppose I'm writing a large C program and I want it to work well on both clang and gcc. On, say, Ubuntu, this causes me some grief, because clang and gcc use the same object file names, so I need to do a `make clean` every time I want compile with the other compiler. But that's annoying because then I don't get the benefits of incremental compilation.
<kkini>
So instead what I guess I'd do is have two identical copies of the program's source tree, do my hacking in one copy, and then when I wanted to compile, sync the changes to the other copy, then run gcc on the first copy and clang on the other. That way, up-to-date gcc (or clang) object files are preserved and I get incremental compilation. But of course it's clunky to do this.
<kkini>
Does Nix help me circumvent this kind of problem in some way?
<kkini>
I can imagine that if I write a nix expression for compiling my program which accepts the C compiler as an input, then Nix will handle the duplication of my source code into two different working directories before compiling because the $out hash will be different between the two. But then it doesn't seem like I'll be able to take advantage of incremental compilation.
thc202 has quit [(Ping timeout: 255 seconds)]
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
mudri has quit [(Ping timeout: 260 seconds)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vdwpl
<NixOS_GitHub>
nixpkgs/master 62381a6 Piotr Bogdan: tnef: 1.4.14 -> 1.4.15
<NixOS_GitHub>
nixpkgs/master d4142e1 Peter Hoeg: Merge pull request #30294 from pbogdan/update-tnef...
NixOS_GitHub has left #nixos []
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<ison111>
Does anyone have experience building things for NixOS with autotools? (e.g. ./autogen.sh; ./configure; make) I can never seem to get anything to build. I have one complaining about pkg-config now but isn't that supposed to only be for debian based distros?
griff_ has quit [(Client Quit)]
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
<clever>
ison111: add autoreconfHook to the buildInputs, and nix will handle all of that automatically
moet has joined #nixos
<clever>
ison111: you may also need to add pkgconfig to the inputs, if thats required
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin closed pull request #30299: xcbuild: add SDKROOT by default to the wrappers (master...xcbuild-sdk) https://git.io/vdwr2
NixOS_GitHub has left #nixos []
Sonarpulse has quit [(Ping timeout: 248 seconds)]
ris has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdwh9
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdwjR
<NixOS_GitHub>
nixpkgs/master 48a49fc Langston Barrett: coqPackages.HoTT: init at 20170921
NixOS_GitHub has left #nixos []
pxc has quit [(Ping timeout: 240 seconds)]
<moet>
eh.. weird, the link is wrong..
<moet>
Eisfreak7: so it seems like you can just download the files to somewhere into /etc, and add that directory to runtimepath
<moet>
in your vimconfig
<moet>
pasted weird, but that^ is the quote from when this was asked recently
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdwj7
<NixOS_GitHub>
nixpkgs/master d1e1ee7 Maxime Dénès: coq: 8.7+beta1 -> 8.7+beta2
NixOS_GitHub has left #nixos []
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Neo-- has joined #nixos
pxc has joined #nixos
jgertm has quit [(Ping timeout: 255 seconds)]
MichaelRaskin has quit [(Ping timeout: 248 seconds)]
csingley has joined #nixos
mortum5 has quit [(Ping timeout: 248 seconds)]
nh2 has quit [(Ping timeout: 240 seconds)]
iqubic has quit [(Ping timeout: 246 seconds)]
jb55 has joined #nixos
MP2E has joined #nixos
chachi has joined #nixos
justmeme has joined #nixos
justmeme has quit [(Client Quit)]
lambdamu_ has joined #nixos
fragamus has joined #nixos
acarrico has joined #nixos
lambdamu has quit [(Ping timeout: 260 seconds)]
hellrazo1 has joined #nixos
<chachi>
Hello, I'm trying to run sqlite3 with Haskell (stack) and I'm getting the error "Missing C library: sqlite3". I have sqlite in my configuration.nix, it runs by hand OK, but I'm not that familiar with sqlite specifically. I'm assuming there's a set of libraries somewhere, and I have to tell stack where to find them? I don't see them in the nix store, and not sure where else to look.
hellrazor has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 246 seconds)]
mbrgm has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
adisbladis has left #nixos ["ERC (IRC client for Emacs 25.2.1)"]
adisbladis has joined #nixos
Supersonic112_ is now known as Supersonic112
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
<elvishjerricco>
kkini: Yea Nix will separate the two (and there are some things in nixpkgs for making this easy already). But it will rebuild from scratch; `nix-build` is not meant to provide incremental compilation. For that you need to do things yourself in a `nix-shell`
schoppenhauer has quit [(Ping timeout: 258 seconds)]
<elvishjerricco>
Does anyone use NixOS from within Parallels on macOS? There is a module for enable parallels tools, but it doesn't work with newer versions of parallels tools. Has anyone gotten that to work?
<moet>
chachi: do you have nix integration enabled in stack? do you have your nix integration in stack set to be "pure"?
schoppenhauer has joined #nixos
<elvishjerricco>
moet: if you're using stack's nix integration (you must be; stack doesn't work on NixOS without it), then you put the packages your project needs in `nix: packages: [...]` in stack.yaml, not in your OS's configuration.nix.
<moet>
^ yep, i was going to explain the `packages: [...]` bit next ;)
<elvishjerricco>
chachi: ^ my bad, wrong name
<elvishjerricco>
Ugh. The "documentation" on installing parallels tools manually basically just say "mount the CD and run the install script." This script hard codes all kinds of paths in the typical LFH, making it utterly useless for NixOS.
<chachi>
Moet, elvish: I've been using stack solver --update-config to update my stack.yaml.
<moet>
chachi: that deals with haskell package dependencies; sqlite is a c library (i think) which the corresponding haskell package binds to
<moet>
chachi: so you'll need to explicitly have the C library in your build environment (stack's nix build environment) at build time .. which is configured by adding a section to your stack.yaml file `nix: packages: [...]` or so
dj_goku has quit [(Remote host closed the connection)]
roi_du_silence has quit [(Read error: Connection reset by peer)]
roi_du_silence has joined #nixos
CrazedProgrammer has quit [(Ping timeout: 240 seconds)]
spion_ has quit [(Ping timeout: 240 seconds)]
CodingWithClass has quit [(Ping timeout: 240 seconds)]
CrazedProgrammer has joined #nixos
ocharles has quit [(Ping timeout: 240 seconds)]
ocharles has joined #nixos
CodingWithClass has joined #nixos
spion has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vdrJ7
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
dieggsy has joined #nixos
<fearlessKim[m]>
while doing nixos-rebuild, I saw for the first time "/nix/store/dpwi27j060p32kfz88i44mcbgl5lqa0y-nixos-rebuild/bin/nixos-rebuild: line 320: /nix/store/388wqgb19gc6gijddziihsvgza7j6s2j-nixpkgs/.version-suffix: Read-only file system". Should I worry or is it normal ?
cransom has quit [(Ping timeout: 255 seconds)]
_habnabit has quit [(Ping timeout: 248 seconds)]
Forkk has quit [(Ping timeout: 252 seconds)]
pingveno has quit [(Ping timeout: 260 seconds)]
v0|d` has quit [(Ping timeout: 264 seconds)]
pingveno has joined #nixos
_habnabit has joined #nixos
Forkk has joined #nixos
pmade has joined #nixos
fragamus has joined #nixos
slack1256 has joined #nixos
iqubic has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
eikke has quit [(Remote host closed the connection)]
schoppenhauer has quit [(Ping timeout: 240 seconds)]
schoppenhauer has joined #nixos
<fearlessKim[m]>
I guess I should worry since I now have to run nixos-rebuild twice now, to get new packages installed 😙
<clever>
fearlessKim[m]: what filesystem is /nix/store on?
<fearlessKim[m]>
/dev/sda my only disk. It looks like it unpacks an rchive on first run and builds it in the 2nd run . I will try to fix the package I am working on and see if that fixes it
<clever>
fearlessKim[m]: anything of note in dmesg?
csingley has quit [(Ping timeout: 240 seconds)]
<fearlessKim[m]>
not that I can see but I 'll doublecheck later , got to go sry :'(
chachi has quit [(Ping timeout: 260 seconds)]
cransom has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
Neo-- has quit [(Ping timeout: 255 seconds)]
<ison111>
clever: That seems to have worked, but near the installation step it tries to "mkdir" inside the nix store. I'm guessing this means I need to add the package as a guile input of the one it's trying to mkdir inside of?
<clever>
ison111: you can never modify the inputs to your derivation, only $out can be modified
<clever>
so it needs to be patched to mkdir in the right spot
<ison111>
I was thinking I would modify the buildinputs of "guile" since I'm trying to build a guile module and I guess it wants to install itself inside of the guile package
<clever>
that happens with some language frameworks
<clever>
you need to ensure it installs itself to $out, not to guile
<ison111>
I don't know how to do that, is there some documentation on it?
<clever>
that would be within the guile module docs
<clever>
something similar to --prefix from autoconf
<clever>
maybe look at how other guile things are built within nixpkgs
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ertes has quit [(Ping timeout: 248 seconds)]
amir has joined #nixos
VLetrmx has quit [(Ping timeout: 255 seconds)]
isaac__ has quit [()]
isaac__ has joined #nixos
<isaac__>
Is there a way to shrink a closure to only the things necessary for runtime?
<isaac__>
I'm deploying with nixops, and it's copying a 2.5gb closure for one of my derivations
<sphalerite>
isaac__: make sure there are no references to stuff that isn't necessary at runtime
<isaac__>
But almost all of that will be build depdendencies; they're not needed on the target machine
<isaac__>
How do I build the derivation without referencing the build depdencies?
<sphalerite>
Isorkin: make a copy of that file, rename config.services.fail2ban to something else in it, and add the copy of the file to your imports list in configuration.nix
<sphalerite>
isaac__: you just need to make sure the output paths don't contain any references to the build deps
VLetrmx has joined #nixos
<sphalerite>
nix-store -q --references, nix-store -q --tree, and grep -r can be helpful for finding the culprits
zzamboni has quit [(Quit: Leaving.)]
nil has quit [(Ping timeout: 240 seconds)]
<isaac__>
I'm not really sure how that helps
nil has joined #nixos
<isaac__>
In `installPhase`, I copy an executable from a derivation that I added to `nativeBuildInputs`, to `$out`
<TimePath>
isaac__: if the final derivation contains any files with any reference to another store path, those derivations are also included. you probably have metadata in the output pointing back to a buildInput
<isaac__>
But for some reason, the closure seems to include all the dependencies of the derivation I added to `nativeBuildInputs`
<isaac__>
TimePath: Okay. That makes sense
<isaac__>
Can I then split the closure into a "runtime closure" or something?
kkini has quit [(Remote host closed the connection)]
kkini has joined #nixos
<isaac__>
I'm not even sure what question I should be asking
ertes-w has joined #nixos
<isaac__>
But I know I don't need to copy a 2.5gb closure
<sphalerite>
kkini: re your recent question: somewhat sensible build tools let you do out-of-tree builds
<TimePath>
isaac__: can I get a more concrete example of what you're doing, and what you want?
<sphalerite>
isaac__: use nix-store -q --tree on the system output path to find out through which dependency paths the stuff you don't want is getting in
<sphalerite>
isaac__: you should be able to find dependencies that shouldn't exist there
<sphalerite>
Then you can use grep to find out which files contain those references
amir_ has joined #nixos
<isaac__>
TimePath: I'm deploying a Haskell app using nixops. I added the app to `systemPackages` in the logical specification, and when it deploys it copies all of the Haskell libraries + ghc in the closure
<isaac__>
Ideally, it would just copy the executable
<isaac__>
+ the bare minimum libraries, assuming it wasn't statically linked
<TimePath>
I had suspicions ghc was being copied in
<isaac__>
I don't expect that it should have to copy any of my hackage dependencies
<isaac__>
Is that reasonable?
<TimePath>
you'd need a static build for that
<TimePath>
how's it supposed to run without your dependencies?
<isaac__>
When it's compiled it's just an executable
<TimePath>
still needs to be able to access the dependencies you're using though
amir has quit [(Ping timeout: 258 seconds)]
<isaac__>
Are you saying that if I run nix-build, and get out an executable, that executable is still referencing the haskell dependencies in the nix store?
jtojnar has quit [(Read error: Connection reset by peer)]
<TimePath>
I've not used haskell specifically before, but yes, that's exactly what happens when building C/C++ programs with nix
<TimePath>
they get dynamically linked
<isaac__>
Okay, so let's forget about the haskell dependencies for now
<isaac__>
I'm sure I don't need ghc on the target machine
<TimePath>
again from C/C++, that can happen if the compiler embeds strings into the executable about the compiler build
<TimePath>
that could be any one of your dependencies though
<isaac__>
Hm
<clever>
isaac__: the ghc closure size thing has been fixed in a recent master, how old of a nixpkgs are you using?
<TimePath>
you can `strip` an executable to get rid of stuff like that
<clever>
there are multiple layers to the problem
<clever>
as an example, if a haskell library depends on a normal text file under its share folder, it brings in the .so file by accident
<clever>
and the .so depends on libraries within ghc, which brings in all of ghc
ntinos has quit [(Remote host closed the connection)]
jb55 has quit [(Ping timeout: 248 seconds)]
bonk`` has quit [(Ping timeout: 240 seconds)]
<isaac__>
clever: 17.09
<clever>
isaac__: try building it against nixpkgs-unstable or nixos-unstable, and see what that does to your closure size
<isaac__>
Alright
leat has quit [(Quit: WeeChat 1.9)]
zzamboni has joined #nixos
<isaac__>
clever: Seems to have no effect
<clever>
isaac__: dang, why-depends doesnt seem to have hit a channel yet
<isaac__>
Oh well
<isaac__>
I think I know someone who battled with this so I'll see if he has any advice
<isaac__>
Thanks for the help people
<clever>
isaac__: ive also battled this and defeated the ghc beast :P, i added split outputs to haskellPackages to make things shrink massively
<clever>
isaac__: but i'm too busy at this instant to walk you thru that
Itkovian has joined #nixos
<hyper_ch>
so, adobe updated flash player ppapi url and old one is not available anymore... how would I best adjust my configuration nix to point to the new file?
<Isorkin>
sphalerite: thanks. works
jtojnar has joined #nixos
<sphalerite>
hyper_ch: why do you need pepper flash? Any reason to not just use google-chrome which comes with flash support?
<hyper_ch>
sphalerite: I use chromium
<isaac__>
Alright just talked to my mate: `justStaticExecutables` took it from 2.5gb -> 800mb
<sphalerite>
hyper_ch: any reason not to use google-chrome?
<TimePath>
sphalerite: oh hey, you fixed the xonotic audio a while back. thanks :)
<sphalerite>
hyper_ch: I don't. I use Firefox. But chrome has working flash.
<isaac__>
clever: We're at 43mb now. All goods
mudri has joined #nixos
<sphalerite>
And I can see how UI differences/habits/performance(?) could cause you to prefer chrom* over Firefox but not what would make the difference between chromium and chrome for you.
<isaac__>
The rest of the stuff must be nixos related things for the target machines
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdrnF
<NixOS_GitHub>
nixpkgs/master 1529938 Vincent Laporte: cubicle: 1.0.2 -> 1.1.1
NixOS_GitHub has left #nixos []
goibhniu has joined #nixos
jtojnar has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
Itkovian has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
<vaibhavsagar>
isaac__: how did you get it from 800mb to 43mb?
<TimePath>
why would running `sha256sum` on a zip produce different output to the `sha256` in nixpkgs?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdrC5
<NixOS_GitHub>
nixpkgs/master f0b7ee3 Vincent Laporte: hevea: make explicit the dependency to ocamlbuild
NixOS_GitHub has left #nixos []
<TimePath>
yes, nix accepted and installed it
<isaac__>
vaibhavsagar: I didn't, I was just vague. The closure that's copied on nixos deploy is 800mb. The result of nix-build is 43mb.
<vaibhavsagar>
I see
<vaibhavsagar>
there's a lot of janky stuff you could try in the postBuild phase to manually edit dependencies out of your output
<isaac__>
I'll try nix-build without `justStaticExecutables` and see if there's a difference in result size
<isaac__>
We're getting a table tennis leaderboard at #qfpl soon :)
leat has joined #nixos
<vaibhavsagar>
ah, is that what this is for :)
thc202 has joined #nixos
<tilpner>
Did anyone figure out declarative VMs? :/
Itkovian has joined #nixos
<isaac__>
Yeah I'm getting my infrastructure down before I write too much code
<isaac__>
Yeaaaaah so without `justStaticExecutables`, `du -hc --max=0 $(nix-store -qR result) | sort -h` is 2.2gb
<isaac__>
With `justStaticExecutables`, it's 43mb
<isaac__>
Good hustle
ThatDocsLady has joined #nixos
_rht has joined #nixos
MP2E has quit [(Quit: sleep)]
<fearlessKim[m]>
clever: Ok I think I found the culprit for the strange error I had "read only stuff" :
<fearlessKim[m]>
I've been recently hacking ocnfiguration.nix to have "nix.nixPath = [...]++ lib.optionals ( builtins.pathExists userNixpkgs) [ "nixpkgs=${userNixpkgs}" ]" (with userNixpkgs = /home/teto/nixpkgs). this sets my NIX_PATH to nixpkgs=/nix/store/kvwha2radjr5q5vvjwaq0sk2sijh38sx-nixpkgs while I would expect nixpkgs=/home/teto/nixpkgs
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #30309: libmediainfo, mediainfo, mediainfo-gui: 0.7.97 -> 0.7.99 (master...mediainfo) https://git.io/vdrl2
NixOS_GitHub has left #nixos []
roi_du_silence has quit [(Remote host closed the connection)]
<sphalerite>
TimePath: because nix represents the hashes in base32 rather than base16, and I think because the hashing also takes filename into account
<fearlessKim[m]>
tilpner: that fixed it thanks. I guess it was the nix way ofdoing __repr__(NixPath). A bit counterintuitive xD
<sphalerite>
(not sure about that last bit)
<sphalerite>
fearlessKim: if you want a literal path to get passed through as is it usually makes sense to make it a string rather than a path, i.e. quote it
proteusguy has quit [(Read error: Connection reset by peer)]
periklis has joined #nixos
<TimePath>
sphalerite: ah. actually it must be base36
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
__Sander__ has joined #nixos
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
phreedom has joined #nixos
kuznero has joined #nixos
periklis has quit [(Ping timeout: 240 seconds)]
<kuznero>
Hi All!
<ij>
How do I print the buildtime closure of my derivation?
<fearlessKim[m]>
sphalerite: I could do that but at the time I didn't suspect the stringify behavior. thanks for the tip though
<kuznero>
My docker setup in nixos 17.09 complains with "Your kernel does not support cgroup cfs period" is that ok?
<fearlessKim[m]>
sphalerite: remember when I was scared about the complexity of the bios ? well my laptop has apparently a bios problem it prints nothing (but screen works , I tested it with D+power dell trick) on screen and shuts down with amber light. For no obvious reason. There are apparently 2 or 3 ways to restore bios but they all need the screen/bios to work so I am doomed :'(
<kuznero>
Also "Your kernel does not support cgroup cfs quotas", and "Your kernel does not support cgroup rt period" and "Your kernel does not support cgroup rt runtime"
<sphalerite>
TimePath: no, pretty sure it's base32
<TimePath>
completely unrelated, anyone know if it's possible to get a list of all derivations used to build another?
pxc has quit [(Ping timeout: 248 seconds)]
<TimePath>
not just what's in the closure, the build toolchain too
sigmundv has joined #nixos
<TimePath>
I've got a nix CI setup on bitbucket, and it offers a way to cache dependencies
<TimePath>
caching the actual dependencies of the app is easy enough
<TimePath>
but currently I manually cache the build environment too
zzamboni has quit [(Quit: Leaving.)]
<sphalerite>
TimePath: nix-store -qR on the derivation I thinm
<TimePath>
sphalerite: that's where I get the runtime deps from
zzamboni has joined #nixos
<TimePath>
(and is actually irrelevant when using nix-push, it does that internally when given a store path or symlink to on)
<sphalerite>
TimePath: the derivation, not the output path?
whald has joined #nixos
<TimePath>
oooh, you mean the .drv?
<TimePath>
that could work
<TimePath>
I'll have to ween myself off of dynamic imports though
<TimePath>
how do I get a reference to a .drv though?
<sphalerite>
take a nix-build command and replace nix-build with nix-instantiate
leat has joined #nixos
<TimePath>
sweet, thanks
<TimePath>
I can replace the ugly shell script with manually repeated `install` commands
whald has quit [(Remote host closed the connection)]
lsix has joined #nixos
amir_ is now known as amir
<eqyiel[m]>
what's the spell to get hydra to build on the same host it's running on, I see services.hydra.buildMachinesFiles, but does the format of /etc/nix/machines allow for that?
<sphalerite>
unstable is 4 days behind master, but nixos-17.09 isn't behind release-17.09 by that nmuch
Wizek has joined #nixos
mudri has quit [(Ping timeout: 246 seconds)]
<pmeunier>
Hi! Is there a way to retain nixops' deployments roots alive when garbage-collecting locally?
mr_racoon has quit [(Quit: leaving)]
<seanparsons>
sphalerite: Now try clicking on the commit for nixos-17.09.
<seanparsons>
"committed 4 days ago"
<sphalerite>
seanparsons: yes, that's likely when the change was originally authored. It was cherry-picked onto the release branch more recently than that though
<sphalerite>
author Frederik Rietdijk <fridh@fridh.nl> 1507373796 +0200; committer Frederik Rietdijk <fridh@fridh.nl> 1507373830 +0200
<seanparsons>
Oh I see, now that makes a lot more sense.
<sphalerite>
Note the distinct authorship/commit dates
<sphalerite>
although actulaly they're within a minute of each other
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vdrzO
<NixOS_GitHub>
nixpkgs/master 97ec559 Peter Hoeg: syncthing: 0.14.38 -> 0.14.39
NixOS_GitHub has left #nixos []
jn__ has joined #nixos
jn__ has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<seanparsons>
(that's the commit I'm interested in)
<sphalerite>
Yeah, it was authored on Friday and committed on Saturday
hellrazor has joined #nixos
arjen-jonathan has joined #nixos
arjen-jonathan has quit [(Client Quit)]
zzamboni has quit [(Quit: Leaving.)]
Itkovian has joined #nixos
zzamboni has joined #nixos
<ixxie>
I made a wrapper class for pandas dataframe called dataset, and accidently called dataset.columns (a dataframe method) and it worked; can someone explain why?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdr2j
<NixOS_GitHub>
nixpkgs/master 173d8db Stefan Lau: selenium-server-standalone: 2.53.0 -> 3.6.0
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jensens has joined #nixos
<sphalerite>
fearlessKim: that sucks. Have you contacted Dell about it?
<sphalerite>
Their customer support was very helpful for me when I had some issues with the keyboard on mine
<sphalerite>
They actually sent a guy to come and replace my keyboard and failing that my motherboard
<adisbladis>
sphalerite: Same with lenovo for thinkpads
<adisbladis>
Last time I got an ssd twice the size as a replacement
<fearlessKim[m]>
sphalerite: I've had heard many good things about their support. I am going to test it tomorrow (or rather my colleague, I don't speak Japanese (yet))
<sphalerite>
adisbladis: nice
<sphalerite>
fearlessKim: :)
<fearlessKim[m]>
dell website is amazing, you can change the language but all the languages are wwritten in Japanese so good luck finding your native language, then when you go to the support webpage, it systematically falls back on the japanse one whatever your choice. subarashi.
oscarduignan has joined #nixos
<ij>
Can I find the built package paths from the return value of eval-config?
<sphalerite>
fearlessKim: yeah the website is pretty awful. I just contacted support through Twitter
<sphalerite>
(@DellCares)
<fearlessKim[m]>
that's a crazy way to contact support IMO but I mmight try thatas well xD
<TimePath>
crazy but it works
fragamus has joined #nixos
<fearlessKim[m]>
well not for everyone according to the twitter feed
<fearlessKim[m]>
though some rants are pretty funny
_rht has quit [(Quit: Connection closed for inactivity)]
simukis_ has quit [(Ping timeout: 240 seconds)]
rodgort has quit [(Quit: Leaving)]
hellrazor has quit [(Ping timeout: 240 seconds)]
<oscarduignan>
hi there, I'm new to nix and configuring my local dev machine I wanted to override something and now that I've done it wondered if anyone would mind giving me some feedback on whether there's a better way, improvements that could be made or anything obviously problematic with my method. https://gist.github.com/oscarduignan/20991f9289403eb3ec81e5f281b2df66
twey1 has joined #nixos
hellrazor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] florianjacob opened pull request #30312: locatedb: fix startup fail due to systemd path capabilities (master...locatedb-fix-systemd-path-capabilities) https://git.io/vdroP
NixOS_GitHub has left #nixos []
rodgort has joined #nixos
<fearlessKim[m]>
oscarduignan: look for "overlays", it's the new method to define/override packages
<oscarduignan>
aha, thank you very much!
erictapen has quit [(Ping timeout: 240 seconds)]
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
csingley has joined #nixos
jtojnar has quit [(Remote host closed the connection)]
<MoreTea>
gchristensen, I think that just recursively reducing each value to a string, and concatonating them should to the trick
<makefu>
infinisil: yes it went through the ML once, however i am not sure why it would be better to parse in nix than to use remarshall + fromJson
erictapen has quit [(Ping timeout: 240 seconds)]
<gchristensen>
MoreTea: gotcha, be cautious around edge cases :)
<elvishjerricco>
Is there a way to do `nix-build --check` for entire hierarchies? Like, if I just wanted to see how long it would take my machine to build my `configuration.nix` from scratch, taking only `linux` and `stdenv` for granted, building everything above them. The hacky way is to change a single character in some derivation somewhere, but this is kind of cumbersome and you have to remember what you've already tried.
<elvishjerricco>
`nix-build --check` is nice not just because you know whether the build is *really* reproducible, but also because you can just fire off the command to kick it off, without having to mutate any Nix or src.
<kuznero>
gchristensen: thanks, posted the issue on nix-devel google group
malteof[m] has joined #nixos
<MoreTea>
gchristensen, yes, but I'll just use the gitlab snippet for now.
<gleber_>
pgadmin3 is segfaulting on me on a newly installed NixOS 17.09, anyone encountered it?
freusque has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] leenaars closed pull request #22147: Nikola CMS: init at 7.8.3 (master...nikola) https://git.io/vMpFD
NixOS_GitHub has left #nixos []
<kuznero>
gleber_: yes, but briefly after I realized that I can run fresh pgAdmin 4 v2.0 as docker container as part of my swarm environment and that supports PostgreSQL 10 :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vdrQo
<kuznero>
gleber_: problem as far as I remember is that python ecosystem does not have all required Flask packages that pgAdmin 4 needs
<gleber_>
kuznero: ack, I will see if I can get meaningful stacktrace from pgadmin3 and maybe it will be easy to fix
<ArdaXi[m]>
I have the same errors you mentioned and while I can't get a swarm up, just `docker run -p 15672:15672 rabbitmq:3.6.12-management` works fine (on unstable)
<ArdaXi[m]>
So at least it's not related to those errors
<kuznero>
ArdaXi[m]: great! you are the second person that confirms that (first is my co-worker, so biased) :) Can you please comment on the issue on github perhaps?
zzamboni has joined #nixos
<kuznero>
ArdaXi[m]: unmanaged containers is not an option in my case - it is the whole test/dev environments we run here and that must be part of swarm overlay
<ArdaXi[m]>
I understand, but it might be worth doing an empty `docker run` as a one-off just to confirm it's not related to swarm per se
<kuznero>
And `docker run` works for me too. it is only with swarm when it does not work. But I tried downgrading docker to 17.03.2 which is running with nixos 17.03 and it still does not work. So, I guess the problem is somewhere in between new NixOS and new Docker versions
<ArdaXi[m]>
(Disclaimer: I've never used swarm, and `docker swarm init` throws an error here)
<kuznero>
`docker swarm init` might not work if you have several network interfaces available. Then just use `--advertise-addr` option with a specific IP you want it to use.
freusque has quit [(Ping timeout: 240 seconds)]
<gchristensen>
uhh kuznero can you run `netstat -nlp` and paste that?
<gchristensen>
kuznero: maybe put that in the issue
<kuznero>
done, difference is that on NixOS 17.03 new `ESTABLISHED` connection is not there. Either not created in the first place or which is more likely created and closed fast. If so, then closed by the client side since there is no FIN_WAIT2 state that needs to be cleaned up by swarm/linux-host, etc.
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
MarcelineVQ has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<dgpratt>
just curious: are the "angle" brackets in e.g. <nixpkgs> syntax, or is <nixpkgs> more or less magical? if yes, what does the syntax mean?
cbarrett has joined #nixos
jensens has quit [(Remote host closed the connection)]
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
<sphalerite>
dgpratt: they're syntax
<sphalerite>
See NIX_PATH in the nix manual
<sphalerite>
(On my phone so I can't easily send a link)
<sphalerite>
But basically it's syntactical sugar for builtins.findFile "nixpkgs" or something like that
<sphalerite>
Can't remember if it was called exactly findFile, but something like that
<malteof[m]>
so... not sure if this is the right place to ask, but I'm having trouble enabling the nvidia driver (on dell laptop 7537 with Nvidia GT750M) - all that happens when I start the display-manager is that the screen flickers (still in the terminal) and I can't input anything
<malteof[m]>
any idea how I can find a log file to see what's happening?
TheAppleMan has joined #nixos
<sphalerite>
malteof: journalctl
<sphalerite>
My best guess is that you need bumblebee (hardware.bumblebee.enable = true;)
<malteof[m]>
sphalerite: yeah I tried enabling bumblebee, but having the same problemw
<malteof[m]>
will check journalctl. does it persist between reboots? I can't go back to the terminal after I start display-manager
<sphalerite>
Does it completely stop responding to anything? Can you ssh in for instance?
<malteof[m]>
I could, good point :)
<malteof[m]>
it actually receives every 10th key press or so... it's quite weird
<kuznero>
malteof[m]: I have it working with `xserver.videoDrivers = [ "intel nvidia" ];` Not sure if you are running two video cards though.
<sphalerite>
I can't remember what the default setup on nixos is but I think it's to have a persistent journal. You can use journalctl -b -1 to see the logs from the last boot
<malteof[m]>
kuznero: oh I'll try that then
<sphalerite>
It'll tell you if it can't remember that boot :)
<hellrazor>
and why would someone have that as a default... nevermind
<asdfoiawe>
The stackexchange answer above mentions an interesting systemd command I did not knew before
<hellrazor>
kuznero: ok and how to change this on the run?
<ToxicFrog>
Ok, serious question: how do I install a python package (mutagen) so that it's available "by default" when I run `python` or a python script, without needing nix-shell?
<kuznero>
hellrazor: change you configuration.nix, then run `nixos-rebuild switch`
<hellrazor>
kuznero: there is no config file so far
<ToxicFrog>
I've tried both adding 'python27Packages.mutagen' to systemPackages, and adding `(python27.withPackages (ps: [ps.mutagen])` to systemPackages, and neither works
<kuznero>
check out /etc/nixos/configuration.nix
<hellrazor>
its a maiden system so to say
<kuznero>
not /mnt/etc/nixos/...
slyfox has joined #nixos
<hellrazor>
kuznero: that file is empty mostly
<asdfoiawe>
hellrazor: Or try the command from the stackexchange link? No config stuff in there ;)
<kuznero>
hellrazor: you need to change it
<hellrazor>
its actually readonly the file
simukis has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdoJK
<NixOS_GitHub>
nixpkgs/release-17.09 405eb6f Florian Jacob: nixos/locatedb: fix first run when /var/cache doesn't exist...
<makefu>
what you are trying to do is to change the configuration of the live-cd
<makefu>
which is a topic for a later time (but it is possible)
<hellrazor>
well
<hellrazor>
i wanna close my laptopp lid
simukis has joined #nixos
<hellrazor>
without it going into sleep mode
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
<kuznero>
hellrazor: have you tried what asdfoiawe suggested before? $ systemd-inhibit --what=handle-lid-switch sleep 1d
<makefu>
this is a live-cd, you probably cannot in an easy way right now. just imagine you try to boot a cd and you want to change configuration in there
<hellrazor>
thats not working for me
<hellrazor>
so i can not change it on the run?
<hellrazor>
probabely overwrite a sysfs parameter will do
<asdfoiawe>
Interesting that systemd command seems to exist for exactly that purpose
<asdfoiawe>
(I have to admit having tested this on an arch laptop ;) )
<hellrazor>
hm...
<hellrazor>
strange system
SusWombat has joined #nixos
<hellrazor>
even stranger using systemd but whaever
<hellrazor>
+t
<kuznero>
hellrazor: if you will be a bit more persistent at some point I am sure you will say "the best linux distro"
cement has joined #nixos
<SusWombat>
Hey everyone, im thinking of switching to nixos. How does steam run under nixos?
<asdfoiawe>
Yes
<hellrazor>
kuznero: so i am still sitting here and can not close laptop lid
<hellrazor>
so
<hellrazor>
systemd-inhibit is there a list of avaible switches?
<cement>
my nixos laptop hasn't properly closed for ~2 years now
<cement>
turns off screen, but doesn't sleep
<asdfoiawe>
hellrazor: --help ?
<hellrazor>
that does not give you a list of avaible switches
<makefu>
hellrazor: check out --what
<makefu>
it does
<goibhniu>
Hi SusWombat, I think it works well, I was able to use it for a game anyway
<SusWombat>
ok
<kuznero>
hellrazor: man systemd-inhibit
<makefu>
SusWombat: i play starbound with it without problems :)
<manveru>
SusWombat: pretty excellent
<asdfoiawe>
hellrazor: Just out of curiosity: did you cancel the command (it sleeps for 1 day ;) )
<hellrazor>
asdfoiawe: the sheel needs to be active to execute the command properly
<sphalerite>
hellrazor: re "why would someone have that as a default" (suspend on lid switch) many laptops aren't designed thermally to work while closed and idk about you but I prefer an operating system that won't cook my machine
<hellrazor>
if you switch to another shell via alt+f2 for example the command is not consistent
<asdfoiawe>
Yeah, thats weird
<manveru>
freeman42x: there are a ton of packages in nixpkgs with .debs
<ArdaXi[m]>
What does the "needs port to stable" tag on GitHub PRs mean?
<hellrazor>
asdfoiawe: yes i have to switch to the console holding the systemd-inhibit command
<sphalerite>
hellrazor: it doesn't if that will cook the laptop, and I think laptops with a thermal design not suited for running them closed might well be more common than headless installs on closed laptops with docking stations
<hellrazor>
otherwise it is not active
<asdfoiawe>
But It's working that way?
<makefu>
hellrazor: if you have the laptop on your place, just keep it open for the short install time? i mean we have to stay pragmatic here
<sphalerite>
and suspending on lid close might be an annoyance, but baking your hardware is actual damage.
<joepie91>
ArdaXi[m]: educated guess would be that it's a PR to master that needs to be cherrypicked into the stable/release channel, because changes to master are only rolled into the `unstable` channel and the next major release
<hellrazor>
asdfoiawe: it isd even thou its kinda strange
<freeman42x>
makefu: in other means... I need to create a nix expression to intall it... there is not generator for it?
<sphalerite>
also you can change configuration in the live system with nixos-rebuild switch, it'll just get lost when you shut the system down
Arcaelyx has quit [(Ping timeout: 255 seconds)]
<joepie91>
ArdaXi[m]: so eg. for minor updates or security-critical patches, cherrypicking into the active release channel would be desirable so that current stable users also get the update
<hellrazor>
sphalerite: its still a rather not so clever default to enforce, maybe give the user a choice via a menu or so?
<ArdaXi[m]>
joepie91: Ah, right, thanks, I'll assume that's not something I have to worry about myself on my own PRs then
<hellrazor>
also running ssh per default would be nice
<manveru>
freeman42x: not makefu, but no
<makefu>
:)
<hellrazor>
sphalerite: i can? how so?
<sphalerite>
hellrazor: avoiding potential hardware damage is a perfectly sensible default, and menus are imperative which is kind of not the nixos philosophy
<joepie91>
ArdaXi[m]: I'm not sure who's normally responsible for merging things into stable, to be honest
<gchristensen>
hellrazor: we don't run SSH by default because it is an inappropriate default to have
chakerbenhamed has joined #nixos
<joepie91>
ArdaXi[m]: if somebody labels your PR as such, best would be to just ask in the thread who's expected to do the stable-merging :)
<hellrazor>
sphalerite: ncurses menus are nice for that abnd userfriendly
<gchristensen>
it is dangerous to run SSH automatically when there is no password
<joepie91>
(I don't *think* this is in the contributors guide?)
<freeman42x>
manveru: close enough. So I need to create nix expression right? No automated way for generating the expression from the `.deb`?
<srk>
hmm, which package contains mii-tool?
<sphalerite>
hellrazor: put `services.logind.lidSwitch = "ignore";` in /etc/nixos/configuration.nix and then nixos-rebuild switch.
<hellrazor>
gchristensen: if no login ispossible is shouöldn'Ät matter
<sphalerite>
gchristensen: not really, since it doesn't allow login until you've set a password
<sphalerite>
(or add a pubkey or whatever)
<gchristensen>
it doesn't matter, it is inappropriate to run SSH by default
<gchristensen>
on a install disk
<hellrazor>
seriously?
<hellrazor>
i think most people will start anyway
<hellrazor>
it
<gchristensen>
I don't think that is true
<sphalerite>
Oh yes, nobody ever installs an OS on their machine while using it physically.
<joepie91>
freeman42x: Nix-installed software is installed under tighter constraints (pure, isolated, explicit dependencies, etc.) than a Debian package is, so no, it's never going to be *reliably* possible to automatically convert a Debian package to a Nix expression... simply because Nix expressions contain more information that is necessary to build things properly
<gchristensen>
sphalerite: wat
<sphalerite>
gchristensen: sarcasm
<gchristensen>
oh ok :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] disassembler closed pull request #29941: chromium: disable patch chromium-gn-bootstrap-r14 for version 62 (master...chromium) https://git.io/vdGoK
NixOS_GitHub has left #nixos []
<joepie91>
freeman42x: that having been said, you can base a Nix expression *on* a .deb, and manually specify what files to move where in the build directory, and what to patch how, with what dependencies, and so on; but generally a source build is preferable where possible
<hellrazor>
i rather use it via remote
<gchristensen>
hellrazor: that is why we make it so easy to start it :)
<hellrazor>
so i can properly research stuff
<hellrazor>
gchristensen: not really
<sphalerite>
hellrazor: note that these settings are *not* for the system you're installing, they're just temporary and apply only in the installer
<hellrazor>
had better experiences so far with gentoo
<gchristensen>
Ubuntu's live CD doesn't even have sshd on the disk, so you have to first install it.
<sphalerite>
hellrazor: `systemctl start sshd` is not really easy?
<freeman42x>
joepie91: I see, cheers
<gchristensen>
okay so use gentoo I guess, where you have to first compile sshd :eyeroll:
<hellrazor>
if you are used /etc/initd/sshd start then yes :P
<sphalerite>
oops, double link. But yeah it's right there, number 7
<makefu>
sphalerite: i tried that link on him twice already ;)
<sphalerite>
Look if all you're going to do is say everything is wrong with nixos because it's not like what you're used to maybe you should be using what you're used to and not bother with nixos
<hellrazor>
i was just trying to make a joke
<asdfoiawe>
And even gentoo is systemd by default by now
<hellrazor>
asdfoiawe: its not but nevermind
<gchristensen>
sphalerite is right, you're not obligated to use nixos
<joepie91>
freeman42x: I think the Atom and Brackets packages are based on a .deb, if you need an example
<joepie91>
(mostly due to the utterly insane build times of Chromium, I believe)
<efx>
what is a quick way to get into a nix REPL for learning nix expressions?
<hellrazor>
gchristensen: hm.. strange config file there
<gchristensen>
what config file?
endformationage has joined #nixos
<efx>
thanks gchristensen, sphalerite
<srk>
looks like net-tools are compiled without HAVE_MII, what's the alternative if you need to check link speed?
<sphalerite>
hellrazor: jokes that demonstrate complete ignorance of the docs that you've apparently been linked to already are more annoying than funny
Arcaelyx_ is now known as Arcaelyx
ixxie has joined #nixos
erictapen has quit [(Ping timeout: 264 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite>
Documentation isn't the nix ecosystem's strongest point, admittedly, but the install instructions cover the case of ssh. And "the defaults don't fit my usecase" doesn't mean the defaults are bad.
* joepie91
has been thinking on how to implement a configuration manager that doesn't conflict with NixOS' declarative nature...
<sphalerite>
joepie91: what sort of configuration manager?
<hellrazor>
sphalerite: that dokumentation is long and a lot to read, you can't expect someone to read it in like 4minutes
<gchristensen>
hellrazor: we don't expect it to take 4 minutes
<kuznero>
:)
<kuznero>
sorry
<joepie91>
sphalerite: think 'control panel for system configuration and package management'
<sphalerite>
hellrazor: I think it's reasonable to expect someone to read installation instructions for something they want to install.
<hellrazor>
sphalerite: that reasonable, didn'
erictapen has joined #nixos
<hellrazor>
help me initially so i asked
<joepie91>
sphalerite: I'd like there to be a two-tiered configuration system, where one can use a graphical interface for common setup, but also drop down to text-based declarative config editing, without either of the two approaches conflicting with each other
<DIzFer[m]>
hellrazor: I like to see NixOS as a declarative Gentoo or Arch. Both of those require long reads to grasp and use correctly. NixOS is definitely not Ubuntu
<joepie91>
sphalerite: my current idea is a separate .nix config file that gets imported from the main configuration file, that separate config file being managed by the configuration manager
<sphalerite>
hellrazor: how did "If you would like to continue the installation from a different machine you need to activate the SSH daemon via systemctl start sshd. In order to be able to login you also need to set a password for root using passwd." not help?
<joepie91>
sphalerite: ie. when you start the configuration manager it reads out the file and updates the panel to reflect the current config, and when you save it writes back to that file and triggers a rebuild
<sphalerite>
joepie91: Sounds decent
<joepie91>
sphalerite: my biggest problem right now is how to represent "not configured" - I might just make it pick out the default of an option and display that
<sphalerite>
hellrazor: that addresses both of the ssh problems you mentioned here, and is right there in the installation instructions.
<joepie91>
but then there also needs to be a way to return to "whatever nixpkgs says the default is"
cpennington has quit [(Remote host closed the connection)]
<joepie91>
which is difficult UX-wise :)
<sphalerite>
joepie91: I think it would make sense to highlight options that are changed from their default, perhaps like firefox's about:config does
<joepie91>
sphalerite: ideally I'd also like to wholesale replace the KDE/XFCE/etc. configuration managers
<hellrazor>
also the dokumentation doesn't not mention a install via remote
<gchristensen>
that seems impossible
<joepie91>
because right now those are little festering bags of impure state :D
<sphalerite>
that sounds highly ambitious!
<hellrazor>
ok nevermind it does
<joepie91>
gchristensen: not impossible, just challenging ;)
<sphalerite>
hellrazor: again, "If you would like to continue the installation from a different machine"
<hellrazor>
its just easily to overread it
<joepie91>
gchristensen: the biggest missing piece is a reliable user-specific config management solution on a nixpkgs level
<joepie91>
since a lot of this stuff is actually stored in the user's profile
<gchristensen>
that seems impossible for a smaller distribution without a substantial investment in the ecosystem already, who can hardly even keep a maintainer for the package sets
<joepie91>
gchristensen: it's something that would exist separately from the main distribution for at least a while
fendor has joined #nixos
<sphalerite>
Yeah I'd really like to be able to configure kde/plasma declaratively. Biggest reason I'm using i3 and not that.
<joepie91>
gchristensen: ie. no additional workload for maintainers until it becomes popular / well-supported enough to warrant it
<joepie91>
nixpkgs already has a strong degree of backwards compat for option names and such
<joepie91>
so I don't expect that to be a big issue
<gchristensen>
to anyone interested in learning the nitty gritty of gnome or kde, please start by helping jtojnar (gnome) ttuegel (kde) keep our package sets up to date, that would directly benefit the community and reduce the unfortunately heroic efforts they have to endure
<joepie91>
I mean, this is definitely a long-term project, but it's something I've already been working on for a while - mostly reading documentation, code, understanding internals, etc.
lsix has quit [(Ping timeout: 240 seconds)]
<joepie91>
especially KDE seems to have a lot of project churn...
<joepie91>
gchristensen: anyway, I do expect to be helping out on that more in the future, once I learn more about the internals :P
<gchristensen>
sure
<joepie91>
as a logical side effect of learning how to declaratively configure it all
lsix has joined #nixos
<hellrazor>
ok so and how do i install some reasonable software defaults?
<joepie91>
gchristensen: but KDE/GNOME/etc. are some seriously complicated stacks that require a *lot* of reading and searching to understand how the pieces even fit together
<joepie91>
lots of undocumented things, etc.
<gchristensen>
hellrazor: please read the documentation and make an attempt at learning it yourself
<ixxie>
I'll help jtojnar out, I'm gonna start having a look at it in the weekend
eacameron has quit [(Read error: Connection reset by peer)]
<hellrazor>
no defineable pqckagelist?
<ixxie>
I'll probably ease into it slowly since I am busy with the NixOS wiki launch project too
<gchristensen>
hellrazor: please read the documentation and make an attempt at learning it yourself
<joepie91>
hellrazor: (that example configuration is not necessarily optimal; just to give some perspective on what a config file typically looks like)
eacameron has joined #nixos
<joepie91>
gchristensen: as an aside, this config project is one of the reasons I'm working on a Nix parser :P
<joepie91>
most of the stuff I'm working with wrt Nix ties into each other
nschoe has quit [(Quit: Program. Terminated.)]
<joepie91>
abstractions and small pieces and all that...
eacamero_ has joined #nixos
eacamero_ has quit [(Remote host closed the connection)]
eacameron has quit [(Read error: Connection reset by peer)]
<hellrazor>
ok so i somehow have to define a packagelist with what software to install
<sphalerite>
hellrazor: anything you need on all nixos systems (nix, coreutils, bash) will be included automatically. Instructions on other stuff you're likely to want are in the installation instructions (have you read them yet??) and in the generated config (see installation instructions for how to get that)
<joepie91>
hellrazor: additional non-obvious note: certain system configuration options will implicitly install packages as needed (like, for example, the display manager and desktop environment options)
<joepie91>
as well as most services
<gchristensen>
Mic92, ixxie: probably should note that those are not officially new logos when referring to them, but an unofficial exploration :)
<ixxie>
I will be submitting an RFC in the coming week or two
eacamero_ has quit [(Remote host closed the connection)]
nix-gsc-io`bot has quit [(Client Quit)]
eacamero_ has joined #nixos
<ixxie>
anyway, gtg now, I appreciate any critical feedback ^^
<ikwildrpepper>
can't we leave the colors the same at least?
ixxie has quit [(Quit: Lost terminal)]
eacamero_ has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
<gchristensen>
ikwildrpepper: it isn't official / just exploratory / would go to RFC I think (?)
<ikwildrpepper>
gchristensen: hehe sure. I just dislike changing logo's :D
<hellrazor>
oh how the hell to define the contents of /etc/fstab
<ikwildrpepper>
although the lettertype change would be fine with me :)
<gchristensen>
hellrazor: this is my last warning: read the documentation, make an effort to try, be polite to the community
<ikwildrpepper>
oops lettertype -> font
eacameron has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
<kuznero>
Mic92: I like version 5. Maybe NixOSwiki -> NixOS.wiki ?
mortum5 has joined #nixos
<sphalerite>
typeface? Font family? So much terminology
<hellrazor>
gchristensen: as far as my grep tells there is no mentioning of the fstab or crypttab in the manual, which are usually the files to define mount points (at least in other destributions)
jb55 has joined #nixos
<joepie91>
hellrazor: if you'd looked at either of the links I gave you, you would have found the answer
<joepie91>
in particular the latter which shows it in context
mithsv has quit [(Read error: Connection reset by peer)]
<hellrazor>
joepie91: i would not ask if i had found it
<schoppenhauer>
tilpner: this works for checking out the submodules. but unfortunately, running ./boot fails with some aclocal-file not found in the terminfo package I think.
<sphalerite>
hellrazor: you would have found it if you had read. The. Installation. Instructions.
<Mic92>
kuznero: ixxie is responsible for the work on this. I just posted the link
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #30319: dnsmasq nixos: make sure it always runs (master...f/dnsmasq) https://git.io/vdoOP
NixOS_GitHub has left #nixos []
<kuznero>
Mic92: ok :) sorry
<hellrazor>
sphalerite: its a long read so searching via grep seems approiate i presume
<joepie91>
hellrazor: so did you read the example configuration I gave you?
<sphalerite>
hellrazor: it's 3 screenfuls of text
<hellrazor>
maurer: jeah i found that just right now
<sphalerite>
if that's too much for you to read, abandon nixos now because you will need to read docs.
<maurer>
hellrazor: In general, in NixOS, you will not edit files in /etc. There are some exceptions, but in the vast majority of cases you will edit configuration.nix instead to define settings, and a static /etc will be created
<joepie91>
and not just skim, actually give the entire config at least a cursory read :)
jb55 has quit [(Ping timeout: 248 seconds)]
<joepie91>
that should give you a decent idea of how things piece together
<hellrazor>
sphalerite: i d not have a issue with reading its just i like to read what i am currently occupied with so searhcing is the way to go right?
pxc has joined #nixos
<sphalerite>
The installation instructions cover EVERYTHING you've asked, bar the lid switch thing.
<sphalerite>
Installing is what you're currently occupied with, so I think it's reasonable to read the instlalation instructions.
<sphalerite>
Or see it this way. By following the installation instructions step by step, you will arrive at an installed system. It is not missing stuff like fstab because otherwise it would not bring you to that goal.
<hellrazor>
so i can not search specifically or what?
<hellrazor>
nevermind
<sphalerite>
No, because fstab in this case does not apply. filesystem would be a better search term, but the best way is to just read. the. instructions.
<sphalerite>
Anyway.
<joepie91>
searching for a specific thing makes sense if you have a specific weird problem to solve; not if you're trying to do something that more or less every user has to do and that has its own dedicated step-by-step section
<sphalerite>
I'm putting you on ignore now because while I do love helping people, I'm not enjoying trying to help you. Good luck!
<hellrazor>
nice community you have there...
<tilpner>
schoppenhauer - Oh, so you're not using fetchgit or any of the "proper" way anymore. You would probably have to restore determinism for the checkout manually afterwards
zzamboni has quit [(Ping timeout: 255 seconds)]
<tilpner>
schoppenhauer - Maybe paste your current nix file so other can take a look at the aclocal thing?
<schoppenhauer>
tilpner: currently I am not even using nix. because prior to using nix I try to build it manually.
<kuznero>
hellrazor: actually it is a very good and healthy community! In my experience I know only one other community like that - #haskell and #haskell-beginners.
Tucky has quit [(Quit: WeeChat 1.9.1)]
<gchristensen>
kuznero: <3
<hellrazor>
thatrs weird why are filesystem at point 8 of the instal instructions...
<hellrazor>
usually its the first point to deal with, nevermind
<joepie91>
hellrazor: this isn't a community problem, this is a you problem. you've been unnecessarily hostile and argumentative, repeatedly complaining about things without reading instructions or answers, and you've generally not been respectful of the time and energy of the people trying to help you. the logical consequence of this is that people get tired of trying to help you, and that's what just happened.
<hellrazor>
iam not hostile i am just trying comprehend
<sphalerite>
!m joepie91
<[0__0]>
You're doing good work, joepie91!
<joepie91>
hellrazor: people here are volunteers and spending their free time and energy on answering questions of people who are stuck, and like in any unpaid support channel, that includes an expectation of the asking party to behave respectfully and put in their part of the effort.
<hellrazor>
how about yu do the rtfm thing and just ignore because that seem to be apropriate way right?
<schoppenhauer>
tilpner: I broke my hand today, so it will take a while but I will try to put it into a nix expression. Is there something like a fetchPhase?
<joepie91>
hellrazor: and I don't mean this to talk down on you, this is just meant as constructive feedback - I'd like to have you here as a productive user, but it will require some changes in the way you approach the converstion.
<joepie91>
conversation*
<hellrazor>
btw the only language of the manual available is in english correct?
<joepie91>
hellrazor: what is definitely not okay, though, is blaming the community for not putting up with abusive and/or disrespectful behaviour.
<gchristensen>
that is right
<joepie91>
hellrazor: as far as I know, yeah.
<schoppenhauer>
hm. or is there something like gitOptions for fetchgit?
<tilpner>
schoppenhauer - You can try using runCommand for src, but I haven't needed that yet
<hellrazor>
joepie91: abusive'? disrespectful?
<sphalerite>
schoppenhauer: fetchgit is a function that produces a derivation, so it's not a phase as such, rather a build dependency
<joepie91>
hellrazor: and I understand that you're trying to understand how things work and that things might not be obvious (especially since there are some issues with the documentation itself), but that doesn't mean that you don't need to put in the effort; conversely, you will need to trust that people *are* trying to help you, and give their answers a try before discarding them.
<hellrazor>
gonna go full snowflake or what?
hellrazor has left #nixos [requested by gchristensen (maybe come back later)]
ertes-w has quit [(Ping timeout: 255 seconds)]
<joepie91>
that was an odd part message
<joepie91>
gchristensen: what command did you use for that>?
<joepie91>
I've never seen the "requested by" before
<schoppenhauer>
tilpner, sphalerite: well, actually, I only added some configuration options to the git commands. but it doesn't seem like fetchgit supports this. so yes, probably I need tilpner's suggestion and use runCommand.
<gchristensen>
the raw IRC command is "REMOVE #channel user :message"
Sonarpulse has joined #nixos
<tilpner>
schoppenhauer - Could also use postFetch to manually link the submodules to the right places. Probably easier
<joepie91>
huh, interesting
<joepie91>
TIL
athan has joined #nixos
<schoppenhauer>
tilpner: you mean just do a ln -s to everything?
<kuznero>
Does that happen often in #nixos?
<gchristensen>
joepie91: it tricks their client in to thinking they initiated the /part, so auto-rejoin doesn't work
<gchristensen>
kuznero: rarely
<tilpner>
(So just use fetchgit manually for each submodule, instead of letting git get your submodules for you)
<joepie91>
clever :)
<tilpner>
And yes, symlink them
<schoppenhauer>
ok
<schoppenhauer>
tilpner: I will try my best, have to go afk now for a while.
<tilpner>
schoppenhauer - It can probably wait, don't stress your hand too much! :)
jtojnar has quit [(Read error: Connection reset by peer)]
<schoppenhauer>
tilpner: but in case I need runCommand: where do I have to put the package? $out is for the output. whats for the input?
<gchristensen>
kuznero: 3-4 times a year something happens
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jtojnar has joined #nixos
<sphalerite>
kuznero: I've seen it happen probably 2 or 3 times since I joined the community last November
<clever>
gchristensen: neat, hadnt seen that extension to irc
<kuznero>
gchristensen: not bad
<tilpner>
schoppenhauer - I was thinking of: src = runCommand "checkout" {} "git clone && sanitize";
<clever>
tilpner: network is disabled during the build
<sphalerite>
Just a shot in the dark though, no guarantee it'll help
<joepie91>
gchristensen: thanks, just beat me to it :P
<hellrazor>
thanks
sary has quit [(Ping timeout: 248 seconds)]
<hellrazor>
the options page seems really handy
<makefu>
hellrazor: the first thing you need to do is to install nixos, then configure it. it is like this with pretty much all the distros. it will bring you up to speed :)
oida has joined #nixos
cpennington has quit [(Remote host closed the connection)]
<hodapp>
I need to bookmark that options search page. I keep forgetting that exists.
<hodapp>
well, I remember that it it exists, but I forget where to find it
<hyper_ch>
sphalerite: how to add? boot.kernelPackages = [ pkgs.linuxPackages_latest ]; --> gave errors and even with quotes it gave errors
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<maurer>
Anyone have advice on where to start with enlarging the cursor on nixos, in the absence of something like a gnome or kde?
<sphalerite>
hyper_ch: without the brackets — it expects exactly the linuxPackages
<sphalerite>
so boot.kernelPackages = pkgs.linuxPackages_latest;
<maurer>
(The normal way I had previously was pretty janky, which was to manually xsetroot -xcf at a /usr/share directory and set the size there)
<hellrazor>
makefu: i know
<sphalerite>
maurer: I got it working using Xresources
cpennington has joined #nixos
<hyper_ch>
sphalerite: since it's "packages" - hence plural - I thought it will expect a list
<sphalerite>
setting Xcursor.size: 48
<maurer>
sphalerite: I tried setting Xcursor.size in Xresources, seemingly to no effect. Is there something I need to do other than xrdb'ing the file to get it to take?
<sphalerite>
hyper_ch: linuxPackages_latest is also plural ;) but yeah I can see how that might be confusing
Itkovian has quit [(Read error: Connection reset by peer)]
<hyper_ch>
:)(
<hyper_ch>
brb
<sphalerite>
maurer: typically restart the applications in question, and some just won't support it, e.g. st for me doesn't use the cursor theme at all. I'm guessing it would need to use Xcursor for that
<maurer>
sphalerite: Do you know of a sample Xcursor-respecting program I could see if it worke don?
<maurer>
*worked on
<sphalerite>
You may also need to set XCURSOR_PATH for your session appropriately for them to find the cursors
<maurer>
(main programs I need it working on are urxvt and chrome, but I totally believe urxvt might ignore/override this)
<sphalerite>
firefox, thunderbird, anything that uses gtk, chromium too
pxc has quit [(Ping timeout: 240 seconds)]
<sphalerite>
You may also need to set Xcursor.theme to some cursor theme that you have on your system.
<maurer>
Well, chrome at a minimum does not seem to be respecting it
<maurer>
I... don't think I have any cursor themes other than the default installed
<maurer>
Also, how would I safely set Xcursor.theme given that it probably lives in the nix store?
<hyper_ch>
sphalerite: no luck :(
<sphalerite>
My full setup is… Xcursor.theme: Breeze_Snow and Xcursor.size: 48 in my .Xresources, export XCURSOR_PATH=/run/current-system/sw/share/icons in my xsessionrc before any applications get started, and breeze_qt5 in my systempackages
<maurer>
Ah, /run/current-system/sw/share/icons is the trick
<maurer>
I'll try setting my system equivalently
<sphalerite>
it expects a theme by name, which it will then find under $XCURSOR_PATH/$themename/cursors (with search path logic for XCURSOR_PATH I'd guess, but idk and don't have any docs to back that up)
<goibhniu>
hyper_ch: could it be that you need some firmware? Have you got it all enabled?
<hyper_ch>
Linux subi 4.13.5 #1-NixOS SMP Thu Oct 5 07:47:47 UTC 2017 x86_64 GNU/Linux
<sphalerite>
maurer: oops!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] periklis opened pull request #30320: Init elm-oracle and elm-test (master...init-elm-utilities) https://git.io/vdoCD
NixOS_GitHub has left #nixos []
sary has joined #nixos
cpennington has quit [(Ping timeout: 240 seconds)]
<sphalerite>
hyper_ch: stackoverflow points me to https://github.com/lwfinger/rtlwifi_new but I don't know the specifics of how to get that sort of thing working on nixos. But it might be the thing that's already packaged in nixos in which case you'd just need to add it to boot.extraModulePackages
<maurer>
sphalerite: Your fix works for chrome, which is a step forwards. I'll take a look and see if there's some other setting my other programs respect, or if there's a way to inject xcursor
<sphalerite>
found that there was an rtlwifi_new for each linuxPackages
cpennington has joined #nixos
<sphalerite>
since kernel modules need to build against the linux kernel headers for the right version, you need a version-specific module package for each module, which is why they'll be duplicated quite heavily in nox's output
<sphalerite>
but the one you actually want is the one that matches your kernel, which you can always find in config.kernelPackages
<hyper_ch>
sphalerite: it doesn't like that: boot.extraModulePackages = [ config.kernelPackages.rtlwifi_new ];
<hyper_ch>
sphalerite: depmod: WARNING: could not open /nix/store/x6gx3fl02yniai33jlnl52fa4ljzciin-kernel-modules-shrunk/lib/modules/4.13.5/modules.order: No such file or directory --> is tht bad?
<sphalerite>
you're trying to set boot.kernelPackages to two different things at once
<hyper_ch>
no idea what I'm trying to do :)
<sphalerite>
what you could do to get both effects (new linux and virtualbox extensions) you could replace linuxPackages with linuxPackages_latest in the vbox one and remove the other setting
<sphalerite>
You probably don't need the new kernel anyway though, so you can just remove the _latest line completely
<hyper_ch>
but then I lose the entry about using latest kernel...
<hyper_ch>
although, no big deal though
<hyper_ch>
I'll just comment it like # boot.kernelPackages = pkgs.linuxPackages_latest; # Set in the vbox settings
ShalokShalom_ has joined #nixos
<jtojnar>
GitHub is behaving weirdly
reinzelmann has quit [(Quit: Leaving)]
digitus has joined #nixos
ShalokShalom has quit [(Ping timeout: 240 seconds)]
cpennington has quit [(Remote host closed the connection)]
<adisbladis>
Best "phone" to ever exist, especially if you are like me and you don't really want a phone but a tiny computer
<adisbladis>
hyper_ch: It was great, a pretty standard linux install. I could code apps on the phone itself in a pinch.
<adisbladis>
Did my first gtk coding on that thing
<gchristensen>
oh my
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
<etu>
adisbladis: A friend told me that the n900 was terrible and slow, he didn't know what slow was because he had no experience with the Openmoko freerunner as I did before n900 :D
k2s has quit [(Remote host closed the connection)]
<MichaelRaskin>
If you want a tiny computer, N810 had its benefits.
<MichaelRaskin>
A whole 0.7'' of benefits!
<etu>
MichaelRaskin: A phone has advantages, like always available internet! :)
jensens has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin>
I still still don't use mobile data.
erictapen has quit [(Ping timeout: 240 seconds)]
<adisbladis>
MichaelRaskin: Also a great device :>
<copumpkin>
does nixos have some sort of cron /tmp cleaner?
<MichaelRaskin>
Back in N810 days I had an all-Nokia setup with a bluetooth headset connected to some slim cheap Nokia phone. Dialing was controlled by N810, via Bluetooth.
SusWombat has joined #nixos
<SusWombat>
Hey, what can i do when a application cant find bianrys of other applications?
<SusWombat>
In my case the vscode editor cant find the git executable
<gchristensen>
it would be very nice if NixOps could take the private/public keypair from a Acme/LetsEncrypt dir on a host, sync it back, and distribute it with the `.keys` feature
pxc has quit [(Quit: WeeChat 1.9.1)]
<ij>
Is there a pill about evalModules?
erictapen has joined #nixos
ona has joined #nixos
<cocreature>
how can I figure out the path to a dependency inside of nix-shell? specifically, I have some static assets that I need and while it’s easy to include them in the final output derivation, I am not sure how to find them in nix-shell
lverns has joined #nixos
a6a3uh has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<akavel[m]>
SusWombat: there's something similar like buildInputs but which is visible also during runtime
<akavel[m]>
I don't remember the name now and can't find it yet
<akavel[m]>
IIRC
a6a3uh has quit [(Client Quit)]
<joachifm>
copumpkin: tmpfiles.d is pretty nice
<SusWombat>
Hm weird it seems to work now o.o
<copumpkin>
joachifm: yeah but isn't that only run at startup?
<copumpkin>
or on nixos-rebuild
<joachifm>
copumpkin: you can run it whenever
<copumpkin>
oh cool, how?
<joachifm>
as in, systemd-tmpfiles --clean
<copumpkin>
cool
<joachifm>
provided it picks up the rules you want; if not you can pass it a configfile on the commandline
<copumpkin>
does that allow an unprivileged user to clear out shit in /tmp that doesn't belong to them?
<copumpkin>
that's largely my issue with a straight rm
<akavel[m]>
Hm maybe you must do 'inherit git' but not sure
<joachifm>
copumpkin: the cli tool should run with the same privs as the invoking user
<copumpkin>
ah I see, so it won't help
<joachifm>
copumpkin: you'd create a system unit that runs it
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<joachifm>
or, what are you trying to do, exactly?
<copumpkin>
just make sure /tmp doesn't fill up with crap on a long-running machine
<copumpkin>
basically don't want to delete recent stuff in case a running process is using it
<copumpkin>
but if it's old it seems safe to kill
<joachifm>
copumpkin: --clean only cares about age, I think
a6a3uh has joined #nixos
<joachifm>
copumpkin: so if you configure the system tmpfiles-clean service appropriately I think you get what you want, maybe tune the timer/add timers
k2s has joined #nixos
<copumpkin>
cool, will look into that, thanks
schoppenhauer has joined #nixos
roconnor has joined #nixos
cpennington has quit [(Ping timeout: 255 seconds)]
k2s has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
k2s has joined #nixos
k2s has quit [(Client Quit)]
a6a3uh has quit [(Quit: Hi)]
cpennington has joined #nixos
<ij>
If I run executables from shell, do they see executables my $PATH?
stanibanani has quit [(Ping timeout: 248 seconds)]
chakerbenhamed has quit [(Ping timeout: 255 seconds)]
<gchristensen>
yeah
<ij>
So runtime dependencies may be accidentally left undeclared, right?
fendor has quit [(Ping timeout: 260 seconds)]
<gchristensen>
they can b, yeah
obadz has quit [(Ping timeout: 260 seconds)]
<ij>
I found a bug today. If you try to package system.build.toplevel with dockerTools.buildImage, recursive symlinks get copied in as real files and directories, resulting in a very long and big /etc/zoneinfo/posix/posix/posix(/posix)+
obadz has joined #nixos
<ij>
And it seems that if you change the config.i18m.supportedLocales to include something twice, it'll report that you're requesting an unsupported locale.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdoot
<NixOS_GitHub>
nixpkgs/master 5dda132 Tim Steinbach: linux-hardened: Disable GCC_PLUGIN_RANDSTRUCT
<ToxicFrog>
Like, even if you change version and hash it won't affect name or the download URL if you just change version; you have to override those separately.
<srhb>
Oh, right.
Oida has quit [(Ping timeout: 248 seconds)]
Oida has joined #nixos
bennofs has quit [(Ping timeout: 246 seconds)]
kuznero has joined #nixos
cpennington has quit [(Remote host closed the connection)]
SusWombat has quit [(Remote host closed the connection)]
jbgi has joined #nixos
silver_hook has quit [(Ping timeout: 240 seconds)]
<efx>
is there a quick way to nuke a user's store in a multi user nix install?
<srhb>
afaik there is no per user store, so you'd want to nuke their profile (be careful you don't lose something important) and then garbage collect, I think.
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
<efx>
ah, gotcha. In theory I just nix-env -u whatever packages, and then run nix-store --gc and that should do it?
<srhb>
nix-collect-garbage I believe.
<srhb>
And isn't it nix-env -e
<srhb>
so nix-env -e '.*' and nix-collect-garbage
ixxie has quit [(Quit: Lost terminal)]
<efx>
excellent, thanks srhb
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] shlevy opened pull request #30326: Add system_cmds apple project (master...system_cmds) https://git.io/vdo76
NixOS_GitHub has left #nixos []
pxc has quit [(Ping timeout: 240 seconds)]
phreedom has joined #nixos
<LnL>
without sudo a user only has permissions to remove his own generations so running a gc will do what you want
Itkovian has joined #nixos
<srhb>
LnL: As in nix-store --gc ?
<LnL>
that's the same as nix-collect-garbage
<srhb>
Oh.
<LnL>
but nix-store doesn't have any of the extra options that nix-collegt-garbage has
pie_ has quit [(Remote host closed the connection)]
andromeda has joined #nixos
pie_ has joined #nixos
<srhb>
Hrm, this container bridging thing isn't obvious... I've made a container with privateNetwork = true, localAddress = "10.10.0.2" and hostBridge = "containers". On the host I have a containers bridge bridging no interfaces, and an address of 10.10.0.1
<srhb>
Should I not be able to ping the container from the host now?
* gchristensen
is glad he got this code open source
<srhb>
gchristensen: Whatd'ya open source? :)
<gchristensen>
the code I'm about to try and help you with :)
moet has quit [(Read error: Connection reset by peer)]
cybrian has joined #nixos
pxc has joined #nixos
Havvy has quit [(Read error: Connection reset by peer)]
andromeda has quit [(Quit: Page closed)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vdod5
<NixOS_GitHub>
nixpkgs/release-17.09 57a1ef3 Jun Hao: qt59.qtbase: fix darwin build so qt full can build...
NixOS_GitHub has left #nixos []
moet has joined #nixos
athaller_ has quit [(Read error: Connection reset by peer)]
Kim has quit [(Quit: WeeChat 1.9.1)]
Guest63191 has quit [(Quit: Lost terminal)]
Kim has joined #nixos
Kim has quit [(Client Quit)]
Kim has joined #nixos
<srhb>
gchristensen: I had a firewall rule disallowing the traffic apparently. Your iptables rule made me realize this, thanks!
<efx>
nix is awesome. Quickly helped me find a bug with a sloppy makefile and user specific system installs. In traditional packaging land I think I would have wasted the rest of today.
<srhb>
#declarativefirewall.now
<srhb>
efx: Nice!
<efx>
that and the quick tips from you kind folks!
athaller has joined #nixos
<grahamc>
Nice, srhb (IRC)!
moet has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vdobz
<NixOS_GitHub>
nixpkgs/master 0aa6d90 Luke Adams: qt4: Override broken installPhase on Darwin
<Lisanna>
it's a symlink to "/nix/store/bnrzqymanawg36x84xp65pqigzlijija-nss-cacert-3.32.1/etc/ssl/certs/ca-bundle.crt"
acarrico has joined #nixos
Orwell has quit [()]
erictapen has joined #nixos
Oida has quit [(Ping timeout: 258 seconds)]
Oida has joined #nixos
<Lisanna>
I also like how the error message is just guessing at what the actual possible error is <.<
kuznero_ has quit [(Remote host closed the connection)]
zzamboni has quit [(Quit: Leaving.)]
kuznero_ has joined #nixos
pxc has joined #nixos
stanibanani has quit [(Ping timeout: 255 seconds)]
Itkovian has joined #nixos
moet has joined #nixos
Neo-- has quit [(Ping timeout: 260 seconds)]
obadz has quit [(Quit: WeeChat 1.9.1)]
schoppenhauer has quit [(Ping timeout: 260 seconds)]
schoppenhauer has joined #nixos
hhomar has quit [(Quit: leaving)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Lisanna>
Eh, I'm giving up on multi-user install, it doesn't seem like Nix has very good support for it right now.
<Lisanna>
Here's a simpler question :) if I've installed something with nix-env -i <name>, how do I just get the path to that in the Nix store?
<Lisanna>
nix-build just prints it out to stdout, but not nix-env
<hyper_ch>
why doesn't nixos has good support for multiuser?
<etu>
hyper_ch: Doesn't it?
<hyper_ch>
Lisanna: ls -al (which <name>)
obadz has joined #nixos
<hyper_ch>
etu: I don't know what Lisanna is refering to
<Lisanna>
hyper_ch: because the most complete guides I've found contain way more information than the official manual, and even then they don't necessarily work
<hyper_ch>
Lisanna: still no idea what you wanna do
<Lisanna>
for example, the official manual doesn't say how to setup the Nix environment for any of the other users in the "multi-user" environment
<hyper_ch>
what do you wanna do?
<Lisanna>
so you install Nix with the web install script, which sets up all the $HOME/.nix-* stuff
<hyper_ch>
oh, you're not talking about nixos?
<Lisanna>
but none of that stuff exists for any of the other users on your system
<Lisanna>
haha, no
<hyper_ch>
you're talking about nix?
<Lisanna>
nixos is easy
<hyper_ch>
ah... no idea
<Lisanna>
Yes, I said Nix ;p
<Lisanna>
hyper_ch: your answer to my other question is not really correct, that returns a really convoluted string
zzamboni has joined #nixos
<Lisanna>
I'm trying to get the base path in the /nix store
<Lisanna>
surely there's some simple option to nix-env that will make it print this?
<cransom>
if you'd already done a nix-build, it will leave a `result` symlink behind that is the path in the nix store.
<Lisanna>
cransom: nix-build prints it out, but nix-env doesn't
<Lisanna>
I'm doing nix-env -i
<hyper_ch>
whereis -b <program>
serhart has joined #nixos
<Lisanna>
I'm not looking for the binary, I'm looking for the entry in the /nix store that corresponds to the derivation that was built with the name "name"
<Lisanna>
s/built/installed
serhart has quit [(Client Quit)]
serhart has joined #nixos
<MichaelRaskin>
Actually, nix-store -r on any symlink to the binary will print that path
<Lisanna>
nix-env -q --out-path <name> is the answer I was looking for
<Lisanna>
just found it in the man page
<jsgrant_>
Lisanna,: NixOS is fun*
<jsgrant_>
Easy, once/if you bite-the-bullet and invest in.
<Lisanna>
jsgrant_: NixOS is fun and easy, but I have to run Nix on non-NixOS systems, and that's kind of a lot more difficult :)
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<Lisanna>
...which is weird since didn't Nix come before NixOS?
<MichaelRaskin>
It did
<kkini>
It's not that weird IMO -- NixOS was designed on top of Nix, so it's not surprising that Nix would work well on NixOS
<MichaelRaskin>
But let's just say that when Nix was without NixOS, the learning curve was not the question.
* jsgrant_
only selectively reads-logs. :^)
<jsgrant_>
kkini, ++
<Lisanna>
kkini: it's not that, so much as there was a period of time where Nix existed without NixOS, so I guess I'm just expecting there to be a lot more official information / documentation on the topic than there exists today
stanibanani has joined #nixos
<MichaelRaskin>
Nix without NixOS had some package availability problems.
<kkini>
Oh, I see what you mean. I'm not sure why. Maybe Nix got a lot more popular after NixOS already existed?
erictapen has quit [(Ping timeout: 248 seconds)]
<Lisanna>
currently there are a lot of guides that are hacked together to do multi-user Nix, and all of them that I've tried so far have at least one problem
<pxc>
Lisanna: what distro are you on?
<Lisanna>
RHEL
<pxc>
7?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pxc>
those RPMs should take care of setting up the daemon and the build users and so on
<kkini>
elvishjerricco, sphalerite: thanks for the responses to my earlier question about developing software against multiple compilers
acarrico has quit [(Ping timeout: 240 seconds)]
<kkini>
out-of-tree builds could help but I don't see how that would solve the fundamental issue, unless you mean there could be some persistent but mutable location where compiler X's build artifacts could be left lying around, and another persistent but mutable location where compiler Y's build artifacts could be left lying around
<MichaelRaskin>
Or just put every object file as its own store path.
<sphalerite>
kkini: I think the simplest solution is to keep development and multi-compiler testing separate
ertes has joined #nixos
moet has quit [(Ping timeout: 255 seconds)]
<sphalerite>
Simply because developing will almost always involve doing stuff statefully for performance reasons, but you can't be sure it's working right with both compilers if you're not doing the build purely
<Lisanna>
pxc: that does look interesting, I guess there aren't any pre-built RPMs available, so I'll have to build them myself?
mudri has joined #nixos
<sphalerite>
MichaelRaskin's solution is of course best in principle but hard to implement
<pxc>
Lisanna: yes, unfortunately :-(
<MichaelRaskin>
Well, if you nuke the entire build system and store individual artifacts in Nix, you can sidestep mutation.
<pxc>
there are prebuilt RPMs but they don't do the user management or daemon stuff
<MichaelRaskin>
But there is this small «nuke entire build system and replace it with Nix» step
<sphalerite>
Exactly.
<MichaelRaskin>
For some small stuff it is even easy.
<MichaelRaskin>
If _all_ the complexity is about dependencies and number of objects, it is still OK.
<sphalerite>
But for small stuff you typically don't need incremental builds :p
<MichaelRaskin>
But if the build system has genuine complexity, that's harder.
anderslundstedt has quit [(Quit: leaving)]
<MichaelRaskin>
sphalerite: well, I dunno, if it is about C++, anything is possible.
gandreani has quit [(Ping timeout: 255 seconds)]
<sphalerite>
stares accusingly at autotools and cmake
<sphalerite>
Did I just use *s when I could have used /me
<MichaelRaskin>
Also, «small» is more about the number of meaningfully different situations.
<sphalerite>
😱
<sphalerite>
Right
<sphalerite>
I guess
mudri has quit [(Ping timeout: 240 seconds)]
<pxc>
Lisanna: on macOS our install script now sets up build users and initializes the daemon by default. It can do this because it can assume that launchd is available and use that to register the service
<pxc>
we could probably do something similar on GNU+Linux that checks for the presence of systemd, and if it finds it, attempts to configure the daemon as a service
stanibanani has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
bennofs has quit [(Quit: WeeChat 1.9)]
<pxc>
would you be interested in working to add that kind of functionality or in trying to push abbradar's improved RPMs forward? I'd be happy to reason through it with you, help you test, trade code, w/e
<pxc>
it's a feature I'd like too, but I'm like 500% more likely to actually do something about it if I'm working with someone else
<pxc>
codedmart: that works for invoking it at the command-line with `--run bash`. When you just use nix-shell with a default.nix file, by default it drops you into the build environment, which never uses bashInteractive
<pxc>
I think there's a way to say what to run for nix-shell in the .nix file but idr what it is
Ivanych has quit [(Ping timeout: 240 seconds)]
dbmikus has joined #nixos
goibhniu has joined #nixos
<mbrgm>
fpletz: you upgraded unifi controller from the stable 5.5.x line to the stable-candidate 5.6.x line.. do you want to keep the stable-candidate line in nipxkgs?
dywedir has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pasqui23 opened pull request #30330: home-manager:init at 2017-10-11 (master...home-manager) https://git.io/vdKqA
NixOS_GitHub has left #nixos []
goibhniu has quit [(Ping timeout: 240 seconds)]
<eqyiel[m]>
how does nix arrive at this doubled up package/release name, `gcc-wrapper-6.4.0-armv7l-unknown-linux-gnueabi-armv7l-unknown-linux-gnueabi` from evaluating cross built gcc like this https://github.com/eqyiel/hydra-jobs/blob/master/release.nix
dbmikus has quit [(Quit: WeeChat 1.9.1)]
acarrico has joined #nixos
dbmikus has joined #nixos
<eqyiel[m]>
I don't really know if I'm doing this correctly
athaller has quit [(Remote host closed the connection)]
<eqyiel[m]>
I wonder if it's just because it's a wrapper, hello seems to have the expected name `hello-2.10-armv7l-unknown-linux-gnueabi`
<eqyiel[m]>
Ralith: I'm not sure what you mean? I can't find any context grepping for shellhook and gcc together
athaller has joined #nixos
orivej has quit [(Read error: Connection reset by peer)]
<Ralith>
shellHook?
<eqyiel[m]>
Ralith: no worries
<eqyiel[m]>
I think it's working anyway
<Ralith>
eqyiel: sorry, bouncer was lagging
<Ralith>
oh wait you're on via matrix too
<Ralith>
rephrase: something is seriously screwy with federation right now
griff_ has quit [(Quit: griff_)]
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
johnw_ has joined #nixos
johnw has quit [(Read error: Connection reset by peer)]
cement has quit [(Ping timeout: 260 seconds)]
hiratara has quit [(Remote host closed the connection)]