<{^_^}>
[nixpkgs] @Ericson2314 pushed 3 commits to release-18.09: https://git.io/fpsUt
jasongrossman has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
romanofskiWork has quit [Ping timeout: 250 seconds]
<leotaku>
What mutable state do the "nixops deploy" and "nixos-rebuild" commands generally access? From my understanding any nixos module may access any explicitly defined paths as well as the paths defined in "$NIX_PATH", is that correct?
thedavidmeister has quit [Quit: WeeChat 2.3]
<clever>
leotaku: for nixops, it will keep state in ~/.nixops/deployments.nixops, and it will also obey NIX_PATH (but you can nixops modify -I nixpkgs=... to save overrides)
<clever>
leotaku: for nixos-rebuild, its mainly just NIX_PATH
<clever>
and in both, there will be /nix/var/nix/profiles/system symlinks to track the last build
erasmas has quit [Quit: leaving]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
vk3wtf has joined #nixos
<leotaku>
clever: Is there any sane way to keep track of the changes that these "states" may go through during updates? The way the mutable state affects my builds is very hard to understand (at least for me).
<clever>
leotaku: for the /nix/var/nix/profiles/system symlinks, it keeps all of the old ones, so you can just ls that dir to see the history
<clever>
for NIX_PATH, it generally doesnt change, but what it points to may change (nix-channel for ex), but nix-channel also has generations and keeps the old ones
<leotaku>
clever: My problem is mainly with nixops deploying my raspberry pi. It's source (unstable-aarch64) seems to randomly get out of sync with the binary cache, causing me to have to build all of the packages myself.
<clever>
leotaku: it will generally be NIX_PATH to blame here, you did a nix-channel --update on the host
<clever>
leotaku: use `nixops modify -d something foo.nix -I nixpkgs=https://github.com/nixos/nixpkgs/archive/GITREV.tar.gz`
<clever>
leotaku: then <nixpkgs> will only ever resolve to that exact git rev, and it will never update
<clever>
(until you re-run modify with a new one, or use `nixops deploy -I nixpkgs=...`)
<leotaku>
clever: Is there a way to check which packages are currently served on "cache.nixos.org"?
<clever>
leotaku: --dry-run will tell you that
mitescugd has quit [Ping timeout: 252 seconds]
<leotaku>
So my problem currently is that I would like to update my raspberry pi's nixpkgs, however switching to the latest update might break a large package causing me to have to build it myself. What I would like to do is get the newest revision where that package is still being built by hydra and served in the cache.
<clever>
leotaku: you would need to find an eval on hydra, that has a high amount of jobs finished
<clever>
leotaku: you can see that an eval from 3 days ago is finished, but you will also want to check it to see if tests have passed
<leotaku>
clever: For your earlyer tip, what does the "-I" option actually do with the "nixops modify" option?
<clever>
leotaku: nixops will store that `-I nixpkgs=...` into the state file (~/.nixops/deployments.nixops)
<clever>
leotaku: you can then view it with `nixops info`
romanofskiWork has joined #nixos
<clever>
and it will use that `-I` flag for every deploy
<clever>
and it will prefix NIX_PATH, so <nixpkgs> always comes from the URL you set, and the nixpkgs in NIX_PATH is ignord
<leotaku>
clever: And "-I" with "nixops deploy" does that same thing but only for that deploy? Or something completely different?
<clever>
yeah, only for that one deploy
<clever>
and that one has higher priority
<ekleog>
<Mic92> ekleog: lol, nix-review now also builds tests.nixos-functions.nixos-test tests.nixos-functions.nixosTest-test <-- hmm… that's roberth's work, though? :p I'm on nixosTests (the plural depicts nixos tests currently in nixpkgs, while nixosTest replaces make-test.nix)
hakujin has joined #nixos
pie_ has quit [Ping timeout: 268 seconds]
<leotaku>
clever: So if I set "-I" with nixops modify/deploy I can be 100% sure that the deployment will not be implicitly affected by any other state on my host machine? But eg. I use your quemu module to be able to deploy from my machine to the pi. How do I keep that in check?
hakujin has quit [Ping timeout: 240 seconds]
acarrico has joined #nixos
<clever>
leotaku: you would need to modify the overlay to use a specific nixpkgs as the source for its qemu
endformationage has quit [Ping timeout: 245 seconds]
<leotaku>
clever: But generally that would just be my host systems nixpkgs, correct?
<clever>
yeah
<leotaku>
And I think that's kinda where my problem lies... If I do not carefully update every component one by one any error/hickup could be coming from any change anywhere...
<clever>
i would generally try to do all arm builds on real arm hardware
<clever>
the qemu is just to cheat a bit for bootstrapping
romanofskiWork has quit [Ping timeout: 244 seconds]
<leotaku>
clever: How would I achieve that with nixops?
<clever>
just add an ARM build slave in your nixos config
<clever>
then nix will ssh into that machine any time it needs arm work done
<leotaku>
Interesting. I have not heard of that jet.
<leotaku>
s/jet/yet
<clever>
you can also abuse it (with qemu-user setup) and claim a box supports both arm and x86!
<clever>
or just claim the proper arch, on 5 machines at once, and then nix-build -j 50
<leotaku>
cool
<leotaku>
What happens if I have both the build slaves and quemu-user enabled? Which one gets the priority?
<kingemp>
Anyone know if there's a way to cache a package build? I'm trying to debug a problem with a library but it doesn't happen until ~20 min into the build
<clever>
leotaku: it will usually prefer a remove system
<clever>
leotaku: but it may do some builds remotely, and some locally
nuncanada has quit [Ping timeout: 240 seconds]
<leotaku>
clever: That's interesting. Is that conceptually the same as the parallell builds across multiple slaves?
<kingemp>
I guess I could do builds in a nix-shell or in a buildFHSUserEnv, but perhaps I'm missing something from the usual workflow? I'm guessing there's a better way than compiling from scratch each time
<ekleog>
aanderse: you can @grahamcofborg build nixosTests.[test name] in the meantime
<aanderse>
ekleog: ok cool. what is the difference between the two?
<ekleog>
the difference is nixosTests appeared 3 days ago and ofborg uses a hydra-like way of building these that's much older, and as ofborg slightly diverges from hydra it's not coping with the addition of nixosTests :)
lassulus_ has joined #nixos
<aanderse>
ah, ok
<aanderse>
thanks
lassulus has quit [Ping timeout: 245 seconds]
lassulus_ is now known as lassulus
brh has joined #nixos
polman has quit [Ping timeout: 252 seconds]
Rusty1 has joined #nixos
brh has quit [Quit: Lost terminal]
bhipple has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 245 seconds]
drakonis has quit [Quit: WeeChat 2.3]
mayhewluke has quit [Ping timeout: 252 seconds]
EarlDeLaWarr has joined #nixos
mayhewluke has joined #nixos
bhipple has quit [Quit: leaving]
bhipple has joined #nixos
thc202 has quit [Ping timeout: 252 seconds]
<PolarIntersect>
ottidmes: I switched to the beta kernel earlier and it didn't help much
<PolarIntersect>
although it increase my resolution in modeset somehow
bhipple has quit [Quit: Lost terminal]
<PolarIntersect>
clever: If the kernel has basic 2D graphics support, I wonder if there are any browsers that would work in a TTY O_o
bhipple has joined #nixos
<PolarIntersect>
(other than text-mode ones, obviously)
<{^_^}>
#48926 (by bhipple, 3 weeks ago, open): mkl: wrap with openmp in LD_LIBRARY_PATH
<ottidmes>
PolarIntersect: did you get any setup working so far? with e.g. modesetting?
<ottidmes>
bhipple: I am curious, I never used $out/nix-support/setup-hook explicitly myself, what does it do? Or rather, when is it run?
maximiliantagher has quit [Read error: Connection reset by peer]
maximiliantagher has joined #nixos
<bhipple>
ottidmes: essentially, it's sourced by anything that uses it as an input. This can be used by things like cmake to change setup.sh when input as a dep
maximiliantagher has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @kalbasit opened pull request #50381 → vimPlugins.vim-go: use the correct motion derivation for the dependency → https://git.io/fpsYv
<{^_^}>
[nixpkgs] @jb55 opened pull request #50382 → Add spruned application and nixos module → https://git.io/fpsYY
<{^_^}>
[nixpkgs] @bhipple opened pull request #50383 → docs: fix minor grammar issues in the manual → https://git.io/fpsYO
jasongrossman has quit [Ping timeout: 246 seconds]
jperras has quit [Ping timeout: 252 seconds]
kingemp has quit [Ping timeout: 252 seconds]
hlolli_ has joined #nixos
hlolli has quit [Ping timeout: 252 seconds]
acarrico has quit [Ping timeout: 244 seconds]
zolk3ri has quit [Remote host closed the connection]
jhillyerd has joined #nixos
<jhillyerd>
Is there a way to accelerate mouse-wheel scrolling? I usually use imwheel but it doesn't seem to be available in nixos; better alternative?
acarrico has joined #nixos
<{^_^}>
[nixpkgs] @Pneumaticat opened pull request #50384 → fusee-launcher: init at unstable-2018-11-14 → https://git.io/fpssk
drakonis has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit opened pull request #50385 → tmuxPlugins.sensible: hardcode the path of reattach-to-user-namespace → https://git.io/fpssE
<yl[m]>
any any trusted user (infinisil, samueldr, gchristensen) `@GrahamcOfBorg build tmuxPlugins.sensible` on https://git.io/fpssE
<yl[m]>
thx!
romanofskiWork has quit [Ping timeout: 244 seconds]
maximiliantagher has joined #nixos
maximiliantagher has quit [Ping timeout: 272 seconds]
<yl[m]>
ekleog: true, but I feel I'll be abusing the line limit if I do lol
<ekleog>
I meant you could poke just 3 random people from that list :p
<ottidmes>
jhillyerd: imwheel should be super easy to package from what I see? I could package it for you if you'd like, but it could also be a good learning experience
<yl[m]>
ekleog: I see what you mean, sure will do.
sb0 has joined #nixos
aleph- has quit [Ping timeout: 268 seconds]
drakonis_ has joined #nixos
bhipple has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 245 seconds]
maximiliantagher has joined #nixos
maximiliantagher has quit [Ping timeout: 244 seconds]
hakujin has joined #nixos
equalunique has joined #nixos
<equalunique>
Hi All. Anyone back in October, someone on here tried upgrading 18.03 -> 18.09. They recieved an error from nixos-rebuild: "perl: warning: Setting locale failed." - Anyone recall who that was, and how it was fixed?
<equalunique>
***Someone, back in October, ...
hakujin has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 268 seconds]
jasongrossman has joined #nixos
<equalunique>
Ah. I see it was fixed in the chat logs from Oct 7.
hamishmack has quit [Ping timeout: 264 seconds]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}>
[nixpkgs] @dtzWill pushed to master « elfinfo: init at 0.7.4 »: https://git.io/fpscp
romanofskiWork has joined #nixos
hamishmack has joined #nixos
romanofskiWork has quit [Ping timeout: 244 seconds]
romanofskiWork has joined #nixos
hakujin has joined #nixos
mkoenig has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
maximiliantagher has quit [Remote host closed the connection]
hakujin has quit [Ping timeout: 245 seconds]
maximiliantagher has joined #nixos
<{^_^}>
[nixos-homepage] @ekalosak opened pull request #252 → updated sources of security information; removed a dead key → https://git.io/fpslT
mkoenig has joined #nixos
jmeredith has quit [Ping timeout: 250 seconds]
teej has quit [Ping timeout: 250 seconds]
midchildan has quit [Ping timeout: 250 seconds]
sgraf has quit [Ping timeout: 250 seconds]
jmeredith has joined #nixos
nixy has quit [Ping timeout: 276 seconds]
sgraf has joined #nixos
a_ has joined #nixos
midchildan has joined #nixos
tylerjl has joined #nixos
mdash has quit [Ping timeout: 260 seconds]
thoughtpolice has quit [Ping timeout: 250 seconds]
coot has quit [Ping timeout: 250 seconds]
equalunique has quit [Ping timeout: 260 seconds]
greymalkin has quit [Ping timeout: 260 seconds]
cyraxjoe has quit [Ping timeout: 260 seconds]
leothrix has quit [Ping timeout: 260 seconds]
coot has joined #nixos
dontdieych has quit [Read error: Connection reset by peer]
thoughtpolice has joined #nixos
cyraxjoe has joined #nixos
hakujin has joined #nixos
nixy has joined #nixos
teej has joined #nixos
greymalkin has joined #nixos
sb0 has quit [Quit: Leaving]
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
reinhardt has quit [Quit: Leaving]
maximiliantagher has quit [Ping timeout: 250 seconds]
maximiliantagher has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
jhillyerd has joined #nixos
<jhillyerd>
ottidmes: Yeah, I was thinking imwheel might be good to learn how to package myself. Just wasn't sure if there was a good reason nobody else had bothered.
hakujin has quit [Ping timeout: 244 seconds]
jtojnar has quit [Ping timeout: 244 seconds]
vk3wtf has quit [Ping timeout: 250 seconds]
jhillyerd has quit [Quit: WeeChat 2.2]
wykurz has quit [Read error: Connection reset by peer]
romanofskiWork has quit [Ping timeout: 240 seconds]
<roberth>
ekleog, Mic92, re nixosTest-test: is that annoying? I suppose if we make NixOS use pkgs.nixosTest, we don't need it as much. However it is intended as a user facing function, so I'd rather test it individually
maximiliantagher has joined #nixos
Ariakenom has joined #nixos
ckauhaus[afk] has quit [Quit: WeeChat 2.2]
johann__ has joined #nixos
maximiliantagher has quit [Ping timeout: 268 seconds]
Itkovian has joined #nixos
hotfuzz_ has quit [Ping timeout: 240 seconds]
freeman42x]NixOS has joined #nixos
<andi->
roberth: is it intended to be rebuild on unrelated package changes? I bumped cbindgen yesterday and a nix-review of the same suggested to rebuild those nixosTest-tests requiring a new kernel build.. Didn't investigate but that could be a bit of a blocker..
<roberth>
andi-: sounds like Hydra doesn't build and cache them
<roberth>
unless you've been working on NixOS basics like boot, systemd and such
<andi->
I ran it against the PR so my guess is that it just wasn't cached. Unsure why it had to rebuild in the first place unless it now depends on Firefox (only consumer of cbindgen) ;)
freeman42x]NixOS has quit [Ping timeout: 252 seconds]
<jonge>
hey there, by accident i do very often open one nix shell in the other and then i get of course stupid strange effects during builds. is there some smart way to make nix shell warn/error-out if it runs nested
<jonge>
?
justbeingglad has left #nixos [#nixos]
<symphorien>
I display the SHLVL in my shell prompt
leotaku has joined #nixos
civodul has joined #nixos
<leotaku>
May "$NIX_PATH" be self-referential? Eg. can I use "nixpkgs=foopath:nixos=<nixpkgs/nixos>"?
srl295 has quit [Quit: Connection closed for inactivity]
hotfuzz has joined #nixos
thc202 has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
thc202 has joined #nixos
<{^_^}>
[nixpkgs] @zimbatm merged pull request #49493 → libva{,-utils}: 2.1.0 -> 2.3.0, bump vaapiIntel to 2.2.0 since no 2.3.0 → https://git.io/fxFma
<nyanloutre[m]>
<freenode_{^_ "[nixpkgs] @nyanloutre opened pul"> Hi, I opened a PR to fix the recent hydra builds on unstable
<infinisil>
Ugh, there is some race condition in the NixOS startup phase
<infinisil>
Because when my battery is super low, my laptop underclocks (I'm pretty sure), and then some stuff stops working. Just now the display manager failed because it couldn't find any display
<nyanloutre[m]>
IRC matrix bridge seems to mess up the IRC message if I try to reply to another. So here is the PR link if anyone wants to review it : https://git.io/fpso6
<nyanloutre[m]>
also it seems that the hydra jobs for 18.09 are stuck
<hyperfekt>
Does anyone know if there's a canonical way to make nox-review use an existing nixpkgs when testing a PR? I'd like to save those two GBs needed for a full clone of nixpkgs. If not, I'll have to use a symlink.
<nyanloutre[m]>
any info on this ?
<{^_^}>
[nixpkgs] @Infinisil merged pull request #50393 → nixos/journaldriver: import module in top-level module list → https://git.io/fpsKL
<jonge>
hey there. if some c/c++ project creates cmake files for use with "find_package(...)", does nix's cmake support automatically make this discoverable for cmake in packages that would depend on cmake's find_package support to find such dependencies at configure time?
TweyIII has joined #nixos
lukego has quit [Quit: Page closed]
<symphorien>
boogiewoogie: is it a 32 bit package ?
<symphorien>
jonge: if cmake is in nativeBuildInputs and the library is in buildInputs then it should work without problems
zolk3ri has joined #nixos
<{^_^}>
[nixpkgs] @oyren opened pull request #50395 → write_stylus: fix loading libGL.so with libglvnd → https://git.io/fpsHx
<jonge>
symphorien: just trying to convince a client company to make their cmake files conan agnostic. i demonstrated how to find bugs by using newer compilers and sanitizers (using nix), but their project is not tailored to support non-conan-workflows. i hoped that i don't promise the wrong features by advertising for find_package usage
<symphorien>
jonge: huh honestly if you want a reliable answer, find a package in nixpkgs which uses find_libary and cmake and see its nix file
<boogiewoogie>
oh, okay. so far I've just used a shell.nix (https://pastebin.com/26HDS5Vg) and tried to build from that shell. how would I specify the callpackage function used in this case?
<boogiewoogie>
symphorien: or, stdenvMulti in that case
<{^_^}>
[nix] @edolstra pushed to master « Fix 'Read-only file system' when building a derivation »: https://git.io/fpsQ1
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « fasm: init at 1.73.04 (#50378) »: https://git.io/fpsFE
drakonis_ has quit [Ping timeout: 272 seconds]
drakonis has quit [Ping timeout: 264 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
equalunique has quit [Read error: Connection reset by peer]
equalunique has joined #nixos
jperras has joined #nixos
boogiewoogie has quit [Quit: Leaving]
locallycompact has joined #nixos
maximiliantagher has joined #nixos
maximiliantagher has quit [Ping timeout: 244 seconds]
Chiliparrot has joined #nixos
mdash has joined #nixos
erictapen has quit [Quit: leaving]
oab has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 pushed 3 commits to release-18.09: https://git.io/fpsN4
<ocharles>
Does anyone know how to make Hydra *not* share the same Git SCM for multiple jobsets? For some reason fetching submodules takes minutes, and all our pull requests have the same Git repository as an input. This means that evaluation is now sequential and takes about 15 minutes just to evaluate all our PRs
<ocharles>
I don't know why fetching submodules is quite so slow, but if I could have each jobset use a different /var/lib/hydra/scm/git directory they at least wouldn't all be competing for the same `.lock` file
<Mic92>
roberth: andi- I blacklisted those for now in nix-review
<{^_^}>
nix#2358 (by graham-at-target, 12 weeks ago, open): fetchGit: use a better caching scheme
<ocharles>
I'm not sure that's what Hydra uses
<oab>
Would I be correct that nixops operates by building/fetching binaries locally and placing them remotely? I'm going through the docs, and that is my understanding.
<symphorien>
ah sorry I misread
<Mic92>
oab: yes, you can instruct it also to use the binary cache.
<ocharles>
Hmm, it seems that evaluating .jobsets actually keeps cloning entirely new Git repositories
maximiliantagher has quit [Ping timeout: 260 seconds]
<zimbatm>
manveru: got the PSD! miracles do happen
<Myrl-saki>
Also. Anyone else doesn't have a manpage for `nix`?
<{^_^}>
[nixpkgs] @domenkozar pushed commit from @peti to release-18.09 « ghc: add new version 8.6.2 »: https://git.io/fpsh0
<Myrl-saki>
Oh god no.
<Myrl-saki>
You can `:p "${fetchzip ...}"` and it doesn't require building the drv.
<Myrl-saki>
...why...
mahakala has left #nixos [#nixos]
<srhb>
Myrl-saki: nix has --help, no man page, iirc
<Myrl-saki>
srhb: Ah. Thanks.
<infinisil>
srhb: I feel like Nix development is going very slowly, still no man pages after all this time
<srhb>
infinisil: You mean the command style interface? I'm not aware that anyone's working on it.
<infinisil>
I wonder how much faster development would go if it were written in a more loved language like Rust or Haskell
<Myrl-saki>
lol
<Myrl-saki>
RiiR!
<srhb>
Well, there's something to be said for that by virtue of the composition of the user base, sure...
<srhb>
But I think that's mostly it.
<infinisil>
I think the first step would be to have a specification for Nix
<Myrl-saki>
Hm.
<srhb>
infinisil: The language?
<mdash>
infinisil: there's already hnix, why hasn't it overtaken the original :)
<infinisil>
srhb: The syntax, semantics, the daemon protocol and the derivation format
<infinisil>
Are the things that come to my mind right now
<srhb>
hnix has been taking great strides whenever people get together to work on it. I'm sure we'll see some interesting things when it's at a point where it actually becomes usable as a user tool.
<infinisil>
mdash: Due to lack of specification, standard nix and hnix differ in behavior, I don't think it even produces the correct nixpkgs hashes just yet
<srhb>
I doubt the lack of specification is that big a problem.
<infinisil>
Well not *due* to lack of specification, but a specification would certainly help getting them leveled
<srhb>
Sure.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Myrl-saki>
Hm.
<Myrl-saki>
Should I call the actual `unpackPhase` inside `unpackPhase = ""`?
<infinisil>
unpackPhase *is* the unpack phase?
<srhb>
Myrl-saki: If you're trying to extend something, you should probably use the pre or post hooks. Assuming unpackPhase has any
<Myrl-saki>
Hm.
<tnks>
The "doc" subbuild of a Hackage package is nicely transitively linked. Is there a convenient way to unify docs for multiple packages?
<Myrl-saki>
I'll just make it into another derivation. <_<
<srhb>
tnks: buildEnv to join them all together? or symlinkJoin for something more primitive
<tnks>
srhb: I suppose something like buildEnv, but I'm specifically interested in the unified Haddocks.
<Orbstheorem>
Hello, I need to install a node package not available in the nodePackages derivation (though it's defined in pkgs/development/node-packages/./node-packages-v6.nix)
<Orbstheorem>
Is there anyway I could get it using nix-shell?
<tnks>
srhb: not every language ecosystem supports it, but I find it helps people better organize their packages if they can see how things fit together with other packages in a shared namespace.
<srhb>
tnks: What's your use case exactly? The unified haddock thing documented in nixpkgs ghcWithHoogle and friends should help here.
<tnks>
srhb: oh wait... maybe that's all I need. let me try that.
<srhb>
tnks: 9.5.2.3 in the manual.
M-Gregoire has joined #nixos
vmandela has quit [Ping timeout: 268 seconds]
vmandela_ has joined #nixos
<tnks>
srhb: I kind of want the package-level hierarchy we see at the landing page for a single package, but unified for multiple packages.
<ottidmes>
Orbstheorem: maybe do this: nix-shell -p nodePackages_6_x.<package>
<M-Gregoire>
Hello everyone! Is this the right place for questions about Nixops?
justbeingglad has joined #nixos
<tnks>
srhb: rather than just generating all the package docs individually.
<srhb>
M-Gregoire: Yep! All things Nix.
<Orbstheorem>
ottidmes: Did not work :(
<ottidmes>
Orbstheorem: what is the package name, and what are you trying to achieve? Is it a binary you are after, or something else?
apeyroux has quit [Quit: leaving]
<M-Gregoire>
Awesome! I'm just discovering Nixops and I'm having a hard time making it works. I'm trying to deploy from my Desktop computer to my laptop. I've installed NixOS on both computers. On the Desktop computer I've created the network description file .nix and another file with the deployement.targethost for the laptop defined in the network. Finally I did `nixops create ./nixops/home.nix ./nixops/XPS.nix -d deployement` followed by `ni
<M-Gregoire>
Whithout much surprises, this doesn't work as `could not connect to ‘root@IP’`
<M-Gregoire>
I'm not sure how I'm supposed to give acces to my Desktop computer however. Any help would be appreciated :)
justbeingglad has left #nixos [#nixos]
<qyliss^work>
Can you SSH from your desktop to your laptop?
<tnks>
srhb: actually, I just checked what Stack builds for multi-project builds, and I think it does exactly what I'm asking for. So now I just need to tinker around with Nix to see a good way to accomplish the same.
<M-Gregoire>
No, wasn't even sure I needed to setup an SSH server to be honest
<M-Gregoire>
Should I manually open a SSH server and add my keys?
jtojnar has joined #nixos
<Orbstheorem>
remark
<Orbstheorem>
ottidmes:
<{^_^}>
[nixpkgs] @bts opened pull request #50404 → nixnote2: fix window icon and themes → https://git.io/fpGvN
<inf>
hey! I'm running nixos as my desktop vm host and I need some wicked mdadm setup to access some disks in my VM (inc. losetup + mdadm --build /dev/md0 --level=linear --raid-devices=2 /dev/loop0 /dev/disk/by-id/...) - is boot.postBootCommands what I'm looking for to store these commands in?
<Orbstheorem>
ottidmes: There's a cli tool `remark` on package remark
<infinisil>
M-Gregoire: Do `services.openssh.enable = true; users.users.root.openssh.authorizedKeys.keys = [ "<your ssh key>" ];` on the laptop
<infinisil>
Where <your ssh key> is `cat ~/.ssh/id_rsa.pub` on the desktop machine
<tilpner>
M-Gregoire - Triple-check that the key doesn't contain newlines from line-wrapping terminal emulators
mkoenig has joined #nixos
jabranham has joined #nixos
<{^_^}>
[nixpkgs] @gebner pushed to master « tptp: use urls instead of url »: https://git.io/fpGJM
<ottidmes>
Orbstheorem: I do not see it on my system either, so you will have a few options. Download the remark nodejs package and use either node2nix or yarn2nix and include it in your system. Or, if it is an option for you, you can also just configure npm to work outside of nix, by configuring it properly, then you can just do: npm -g install remark, for example
maximiliantagher has joined #nixos
justbeingglad has joined #nixos
sheyll has joined #nixos
romanofskiWork has joined #nixos
justbeingglad has left #nixos [#nixos]
<M-Gregoire>
Thanks a lot for the help! However my ssh client on my desktop doesnt seems to be using my key agent defined in SSH_AUTH_SOCK while git is using it without any troubles. Should I set my SSH agent in a specific fashion?
<M-Gregoire>
Oh, ok I was wrong sorry. SSH can access my keys but justdoesn't try for my laptop
<M-Gregoire>
For my other servers it works
<M-Gregoire>
Probably some config issue on my laptop
<qyliss^work>
Is it offering the keys?
<M-Gregoire>
Yes
<qyliss^work>
Right, yeah, your laptop isn't configured to accept them.
<M-Gregoire>
The key should be in quotes in authorizedKeys right?
<M-Gregoire>
something like [ "ssh-rsa <KEY> id" ]
<sphalerite>
yep
<sphalerite>
did you apply the change?
<sphalerite>
i.e. nixos-rebuild switch
<M-Gregoire>
Yep
<M-Gregoire>
Nano introduced a line returned i didn't caught
<M-Gregoire>
I thought I was careful...
<M-Gregoire>
Thanks a lot!
<tilpner>
:/
<M-Gregoire>
I was wondering what was the minimal install to which I could deploy something using Nixops.
<M-Gregoire>
Partition disk / Set a configuration.nix with my keys / Install nix
<M-Gregoire>
I can't do much shorter I guess?
<ottidmes>
M-Gregoire: you can always automate that further yourself, e.g. by creating a custom installer iso containing a script that does the partitioning for you and that contains a configuration.nix
romanofskiWork has joined #nixos
<M-Gregoire>
I see! Thanks a lot
steshaw has quit [Quit: Connection closed for inactivity]
romanofskiWork has quit [Ping timeout: 250 seconds]
<freusque>
I'm actually wondering whether there are sensible arguments for the lack of types in the case of nix
<freusque>
or lack of a more complex type system say
<jonreeve>
Anyone here use GNOME? I can't get it to start. I just get a gray screen. I can move my pointer around, but that's it. I'm guessing gnome-shell isn't starting?
<slabity>
jonreeve: Using GDM?
<jonreeve>
Yep
<slabity>
jonreeve: I believe GDM's log file is in /var/log. It might have some information if the desktop won't start
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @Nadrieril to master « nixos/ckb: Add option to restrict access to the devices to a particular group »: https://git.io/fpGG5
<{^_^}>
[nixpkgs] @Mic92 closed pull request #34064 → nixos/ckb: Add option to restrict access to the devices to a particu... → https://git.io/vNzBN
kingemp has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<c0bw3b_>
apparently `nix-prefetch-url --type sha256 <patch_url>` does not give the right thing
fendor has joined #nixos
<hlolli>
A long shot, I'm getting bunch of error messages when starting jack (and it starts despite the errors), and sometimes I can't stop jack after its started. The logs are here https://pastebin.com/aHDetGyf, I'm on unstable and have musnix without preemtive linux.
<clever>
c0bw3b_: patches are reformatted to make them more stable
<clever>
c0bw3b_: your only option is to look at the error from nix when it fails
<c0bw3b_>
clever: ok thanks, hence the "fixed-output derivation produced path.." at the beginning of the error msg
<c0bw3b_>
I guess we'd need a nix-prefetch-patch in the future for convenience
jperras has joined #nixos
<goibhniu>
hi hlolli, I wonder if some of the errors require extra system configuration, e.g. do you have the /dev/snd/seq device for midi?
<goibhniu>
also, are you trying to stop JACK while a program is using it?
<Thra11>
Is there a quick and easy way to relax a dependency's upper bound on a hackage package in nixpkgs?
<Thra11>
i.e. to build it with --allow-newer=something passed to cabal
<hlolli>
giobhniu I think I've stopped all, if not, for mostpart of the time, jack just stops and the programs crash that are running on it. This started to happen only after updating jack and pulseaudio (I start alsa sink). But before this never happend.
<avn>
Thra11: `doJailbreak = true`
<hlolli>
`stat /dev/snd/seq` shows midi device, qjackctl also shows me midi devices, but I get the error also if I turn them off in the configuration.
<goibhniu>
hrm, maybe it's an upstream bug?
<hlolli>
yes, could few things, if nobody's experiencing this, it could well be my config. I did delete pulseaudio extraConfig that I had in my config, but it doesn't matter.
<clever>
Thra11: pkgs.haskell.lib.doJailbreak
<clever>
is another option
<goibhniu>
sorry, I can't think of anything else. I've been using JACK a fair bit lately, and I also use the pulseaudio jack sink
<goibhniu>
and I'm on unstable, but I haven't updated in a while
<hlolli>
not me either hehe ok, that's about it for now. It doesn't look like jack2 has been changed in a very long time.
<goibhniu>
hrm, maybe it's time
<hlolli>
maybe, it could be unstable dbus or alsaLib that's causing this. jack2 1.9.12 is the latest upstream release and it's on nixpkgs since january.
Theuni2 has joined #nixos
<goibhniu>
cool, what do you mean by "alas sink" BTW?
<ajs124>
is it possible to supply arguments to a derivation with hydra like when running nix-build --arg?
palo has quit [Quit: WeeChat 2.2]
palo has joined #nixos
<goibhniu>
*alsa sink
<Ralith>
flash url is broken again on nixos-18.09
<Ralith>
we really need a mirror for that
<hlolli>
alsa sink means different, I should have said `pactl load-module module-jack-sink` after startup.
<goibhniu>
grand, I'll let you know how it goes after the upgrade anyway
<hlolli>
ok nice, I hope you get the error too, then I feel less lost :)
<goibhniu>
me too :D
vidbina_ has quit [Ping timeout: 268 seconds]
Chiliparrot has joined #nixos
Thra11 has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « aws-sdk-cpp: 1.6.20 -> 1.6.52 »: https://git.io/fpGuC
<clever>
boogiewoogie: ldconfig doesnt work under nix
<clever>
boogiewoogie: binutils, glibc, and gcc are also in your inputs by default and you odnt need to list them
<boogiewoogie>
clever: oh, okay :( thanks!
palo has joined #nixos
palo has quit [Client Quit]
palo has joined #nixos
rihardsk has joined #nixos
v0|d has joined #nixos
drakonis_ has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 opened pull request #50420 → phpPackages: drop all packages and package versions for PHP5 → https://git.io/fpG26
drakonis has quit [Ping timeout: 260 seconds]
palo has quit [Quit: WeeChat 2.2]
palo has joined #nixos
drakonis has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #50421 → ###### Motivation for this change → https://git.io/fpG2F
<{^_^}>
[nixpkgs] @dtzWill opened pull request #50422 → ###### Motivation for this change → https://git.io/fpG2b
drakonis_ has quit [Ping timeout: 252 seconds]
Drakonis__ has joined #nixos
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @dtzWill closed pull request #50421 → ###### Motivation for this change → https://git.io/fpG2F
<ottidmes>
clever: LD_PRELOAD did work in the end, shadowing connect the way I did just happened to be problematic. After asking around I was told that the syslog function writes to /dev/log, that is why I could not find any reference to it in the binaries themselves. So after creating a noop syslog function and putting it in a LD_PRELOAD'ed library, it worked without issue. And the reason unshare did not work for me,
<ottidmes>
was that it was a too strong a tool, it did much more than I wanted it to do, and it just so happened that the first thing that broke by it was the same thing as was broken by shadowing connect with LD_PRELOAD.
<clever>
ottidmes: thats why i said to grep the nix-store -qR of the build
<clever>
ottidmes: it would reveal a library that contains /dev/log, as a dep
aleph- has quit [Ping timeout: 268 seconds]
jabranham has quit [Remote host closed the connection]
<ottidmes>
clever: well at that point I thought LD_PRELOAD simply did not work for the binary and actually patching the binary would have been more extreme than the alternative plans I had in place, but I am curious what it will report, so I am going to try running it now
<clever>
ottidmes: i'm guessing youll find the libc that your program depends on, and then a quick grep of the libc source would have led you to the syslog() function
<clever>
and with any luck, libc will be the only occurance of /dev/log, in the closure of your binary, so its the only way it could have gotten that string
<{^_^}>
[nixpkgs] @Mic92 merged pull request #50411 → selfoss (service): fix port in service config → https://git.io/fpGsD
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @rafaelgg to master « selfoss (service): fix port in service config (#50411) »: https://git.io/fpGVZ
freeman42x]NixOS has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #50426 → glibc, ghc: disable PIE hardening when enabled by default (musl for now :)) → https://git.io/fpGVP
Theuni2 has joined #nixos
<ottidmes>
clever: yep, I only found it in: glibc-2.27, but if I include all files in my search, its also in python-2.7.15
Theuni2 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @oyren to release-18.09 « write_stylus: fix loading libGL.so with libglvnd (#50395) »: https://git.io/fpGw5
Phlogistique has quit [Remote host closed the connection]
v0|d has quit [Ping timeout: 240 seconds]
v0|d has joined #nixos
oida has quit [Quit: byez]
maximiliantagher has joined #nixos
romanofskiWork has quit [Ping timeout: 272 seconds]
oida has joined #nixos
Theuni2 has joined #nixos
krav_ has quit [Ping timeout: 276 seconds]
jperras has quit [Quit: WeeChat 2.2]
<aswanson>
anyone running wireguard on their nixos instance? I'm trying to get it running and the service fails to start after nixos-rebuild. The journal says modprobe can't find the wireguard module
<lassulus>
aswanson: I had to reboot after enabling it
<v0|d>
aswanson: do you have wireguard package in systemPackages?
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
romanofskiWork has joined #nixos
<aswanson>
v0|d: I rebooted as suggested and the service started successfully. Now just to troubleshoot the configuration...
rpg has joined #nixos
<v0|d>
I've been a nixos user for over than a year and still suffer whlie using nix-shell -p some_strange_package_name_translation_is_nonsense_somebody_please_explain_or_fix
endformationage has quit [Ping timeout: 245 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
romanofskiWork has quit [Ping timeout: 272 seconds]
<bpye>
Hey, so I have defaultMailServer setup I think to send emails to root to my personal email, and it kinda works with smartd, however both the from and to address on the smartd emails is nonsense, I still recieve them but does someone have a working config somewhere?
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @dtzWill to release-18.09 « flatpak: 1.0.4 -> 1.0.5 »: https://git.io/fpGXz
<bpye>
I'd rather not have to set recipient on the smartd settings as I thought that should have been handled by defaultMailServer..
romanofskiWork has joined #nixos
grumble has quit [Quit: Well, would you look at the time. I've almost missed my ambiguous, non-existent appointment that I have scheduled just when I start to lose interest in my current conversation.]
__monty__ has joined #nixos
romanofskiWork has quit [Ping timeout: 272 seconds]
<v0|d>
in theory, should this following provide a build or target gcc? nix-shell '<nixpkgs>' --arg crossSystem '(import <nixpkgs> {}).lib.systems.examples.muslpi' -p gcc
<clever>
Peaker: if you only ever want to use that package set directly, just dont bother putting it back into the right place
<Peaker>
does "uuid = self.disableTest pkgs.haskell.packages.uuid" make sense at all? What's being put into "self" vs "super"? is "self.uuid" the uuid package I can manipulate with self.disableTest?
<clever>
let mypkgs = pkgs.haskell.packages.ghc862.override { ... };
<clever>
and skip the entire override
<clever>
self.uuid is the result of applying all overrides, including the current one
<clever>
and if you do uuid = foo self.uuid; then its infinite recursion
<clever>
like saying `let foo = foo`
<clever>
super refers to the version from 1 overlay prior, and breaks the recursion
<clever>
Peaker: 90% of the time, it still builds when i jailbreak, and only rarely does it break at runtime
<Peaker>
clever, seems that this upper bound is not false: src/Test/Tasty/Hspec.hs:103:19: error: The constructor ‘H.Item’ should have 5 arguments, but has been given 4
<Peaker>
so I'd like uuid not to include its test dependencies for my build
<clever>
what happens with uuid = pkgs.haskell.lib.dontCheck super.uuid; ?
hyper_ch has quit [Remote host closed the connection]
<Peaker>
how will it know to use my freetype2.nix file ?
<qyliss^work>
jasom: only for things not built on hydra
maximiliantagher has joined #nixos
<qyliss^work>
if you work from nixos-unstable you'll get all the hydra caches apart from when you've changed something
<mdash>
Peaker: oh, yeah "nix-shell freetype2.nix -A ..."
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of 'dd8e3038105bd66ee4f8f2dd7b60d3e136322250' commit built by Travis-CI \#455749777 »: https://git.io/fpGNI
<Peaker>
how do I mark my nix file as a "root" so nix-collect-garbage doesn't delete everything it needs?
<Peaker>
(I just made the mistake of collecting "garbage" which included all of my partially-succeeding build, oy)
<clever>
Peaker: nix-build creates a result symlink which is a root
maximiliantagher has quit [Remote host closed the connection]
maximiliantagher has joined #nixos
<Peaker>
and if it fails?
<Peaker>
git has the "reflog" which is a root - making sure commits from last X days are kept alive. Maybe nix should do that too. Successful builds go into some log
<Peaker>
(can always explicitly purge from there)
<Peaker>
probably useful to keep recent successful builds alive while nuking months old ones
drakonis_ has joined #nixos
<simpson>
Try not to run nix-collect-garbage with settings that can reap recent builds while doing builds, I suppose. I've had this happen to me once or twice, but it's not common.
mtjmullen has quit [Quit: WeeChat 2.0]
Chiliparrot has quit [Ping timeout: 252 seconds]
mtjmullen has joined #nixos
maximiliantagher has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 252 seconds]
maximiliantagher has joined #nixos
<Peaker>
simpson, well, I wanted to try to examine the outputs of partial builds, so find /nix -name "*pkg*" seemed useful but polluted by old noise...
the-kenny has quit [Ping timeout: 272 seconds]
<simpson>
Peaker: In general, you'll have old unused packages in /nix/store. Such is life. Have you seen nix-shell yet?
drakonis has joined #nixos
<mdash>
Peaker: nix-build -K is helpful for this
<mdash>
keeps the temp directory around so you can poke at it
maximiliantagher has quit [Remote host closed the connection]