<Myrl-saki>
error: attribute 'isPythonPackage' missing, at (string):1:1
oahong has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #41503 → bat: support darwin → https://git.io/vhRsu
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vhRwH
oahong has joined #nixos
<Myrl-saki>
Oh. I think I know why.
roconnor_ has quit [Ping timeout: 248 seconds]
roconnor_ has joined #nixos
<Myrl-saki>
Hmm
<Myrl-saki>
I don't think overrideScope would be a good idea, though.
steell has quit [Ping timeout: 248 seconds]
steell has joined #nixos
<ryantm>
From the nix manual: "Note: Multi-user mode has one important limitation: only root and a set of trusted users specified in nix.conf " How do I add a trusted user?
<ryantm>
I'm doing this under NixOS. It seems like that might matter.
matthewbauer has quit [Ping timeout: 256 seconds]
semilattice has quit [Ping timeout: 276 seconds]
<neonfuz>
not sure if this is nixos or firefox, but I have a bug with firefox from nixos-unstable-small
<neonfuz>
it crashes when you get a notification and click on it
<neonfuz>
(IE a youtube video or news site notification)
<fearlessKim[m]>
when firefox tries to restore a discourse tab (ctrl+SHIFT+T), I systematically get "The site at https://discourse.nixos.org/t/XXX has experienced a network protocol violation that cannot be repaired."
schoppenhauer has quit [Ping timeout: 276 seconds]
nekoseam has joined #nixos
lezed1 has joined #nixos
<nekoseam>
this seems like a pretty cool distro
jackdk has quit [Ping timeout: 268 seconds]
schoppenhauer has joined #nixos
nallar has joined #nixos
Ross has quit [Ping timeout: 240 seconds]
nallar is now known as Ross
<jack[m]>
ryantm: add the users (or a group containing them) to nix.conf.
jackdk has joined #nixos
<jack[m]>
there should be configuration.nix attrs for this.
<nekoseam>
Does nixos support s6
<jack[m]>
nekoseam: like daemontools / runit / s6?
<nekoseam>
Yeah
steell has quit [Ping timeout: 265 seconds]
<jack[m]>
It has been suggested, but someone would need to write a compatibility layer from systemd stuff.
<jack[m]>
There is a embedded distro built with nix that uses runit iirc, but I forget the name....
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
asuryawanshi has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
jperras has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
jackdk has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<colemickens>
Does nix generally do builds on a tmpfs? Curious if I'm avoiding potentially slow disks as much as possible.
<angerman>
do I have some alternative way to turn a package into it's buildPackage corresponding package? overlays do not seem to populate the buildPackages, however I need a package as a buildPackage that's now only available in the regular package set :-/
<andreabedini>
why my nix seems to ignore my trusted-substituters setting ?
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « wireless-regdb: 2018.05.09 -> 2018.05.31 (#41502) »: https://git.io/vhRXg
<{^_^}>
[nixpkgs] @vcunat pushed 166 commits to staging-18.03: https://git.io/vhRXa
<sphalerite>
whoops, yes
<sphalerite>
oh right, it's a cross-compilation thing?
<angerman>
sphalerite: basically, I'm injecting some packages via an overlay, but when I try to access those packages from buildPackages package set, they aren't there.
<angerman>
sphalerite: yes.
<sphalerite>
it must be possible, since you don't need to make the distinction when you're setting nativeBuildInputs and buildInputs
<angerman>
I'm not sure if the overlays are applied before or after the build/host/target phases are run.
<sphalerite>
angerman: try pkgs.foo.nativeDrv
balsoft has quit [Quit: balsoft]
<angerman>
no `nativeDrv` is taht some recent addition?
<MasseR>
I have a headless nixos system. I'm connecting through ssh and using urxvt. I'm missing the related terminfo stuff, what package should I install without getting X baggage with it?
tzemanovic has quit []
knupfer has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
<sphalerite>
MasseR: does /run/current-system/sw/share/terminfo exist?
<MasseR>
It does, but it's missing terminfo for 'rxvt-unicode-256color'
<sphalerite>
ah, hm. I don't think there's a way in nixpkgs itself to do that.
<sphalerite>
You could make a package that extracts only the terminfo from the urxvt package, but that will still have a build dependency on urxvt and drag all the X stuff into the build
<sphalerite>
Or you could make a package that builds only the terminfo from urxvt and installs that
<sphalerite>
it doesn't already exist though AFAIK
<sphalerite>
MasseR: opened a PR containing a package similar to what I wrote before ^
civodul has joined #nixos
freusque has joined #nixos
akaWolf has quit [Ping timeout: 240 seconds]
<tilpner>
sphalerite - Could also be { runCommandNoCC, ncurses }: terminals: ..., then terminfo-extra = callPackage ../data/misc/terminfo-extra {} [ st rxvt_unicode ];
<sphalerite>
tilpner: the location of the terminfo source varies though
<tilpner>
Not sure about the additional argument, but something to be generic over what terminfo to install could be nice if a user needs to customise this because of using an obscure terminal
akaWolf has joined #nixos
<sphalerite>
ideally it'd just cover all the obscure terminals in nixpkgs :p
<tilpner>
Ohh, hmm. And I guess finding them isn't an option?
semilattice has quit [Ping timeout: 260 seconds]
<sphalerite>
I suppose searching the source trees for *.info *.terminfo might work
jtojnar has joined #nixos
Guest51315 has joined #nixos
<tilpner>
Would *.info also catch info pages?
<tilpner>
It's probably not a good idea, I just like generic things
jperras has joined #nixos
jensens has quit [Ping timeout: 256 seconds]
JasonGrossman has joined #nixos
cyris212 has joined #nixos
jtojnar has quit [Ping timeout: 248 seconds]
semilattice has joined #nixos
jackdk has quit [Ping timeout: 245 seconds]
danbst[m] has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
asuryawanshi has quit [Remote host closed the connection]
<nlytend>
I am trying to install 'leksah' but i am getting missing dependency errors.
<{^_^}>
[nixpkgs] @orivej pushed to master « tests.cc-wrapper: do not test sanitizers on darwin »: https://git.io/vhR9S
<nlytend>
I am on nix 2.0.2 and nixos unstable
<teto1>
does nix-shell create namespace ? some of my pkill calls fail I don't understand why, it seems it is because nix-shell creates a new namespace and pkil can't kill the PID because it's in another namespace
<teto1>
I can't freaking kill that process even though I know its Pid
<sphalerite>
teto1: `kill $PID` should work
<teto1>
sphalerite: seems like it doesn't , it kills the nix-shell but the children process survive
thc202 has joined #nixos
<teto1>
with a command "nix-shell -p python ... &"
<sphalerite>
oh right -P $PID selects child processes of $PID?
<teto1>
yes
<sphalerite>
but yeah it's just a bug in procps which makes pkill and pgrep segfault, it's fixed in staging AFAIK but it's not been merged into master yet
<teto1>
will try cherry picking the procps fix
<sphalerite>
it's a mass-rebuild, have fun :p
lnikkila has quit [Ping timeout: 245 seconds]
Xal has joined #nixos
<GuillaumeBuisson>
hello there, is anyone successfuly using the gitlab service?
<teto1>
GuillaumeBuisson: I saw on discourse it was buggy
<teto1>
sphalerite: hum the sha of the procps is wrong, nixos-rebuild doesn't want to build it
<teto1>
procps fix*
<GuillaumeBuisson>
everything mostly works on my system except imports
<pierron>
Is there a simple way to install debug symbols for any package?
<GuillaumeBuisson>
I get something like gitaly.... Could not find rake-12.1.0 in any of the sources ... tailing the logs
<tilpner>
sphalerite - Another tradeoff could be defining a buildEnv from all terminal emulators, choosing only /share/terminfo. That would be unpractical to modify, but almost okay if built by hydra
* tilpner
hopes the runtime closure of that buildEnv would be like expected, but is not sure
<sphalerite>
yeah, that was my first suggestion
<sphalerite>
but especially if you're just using it yourself, that's very much counterproductive
MP2E has quit [Remote host closed the connection]
<sphalerite>
of course there's also the question of when the sources for all the terminals become bigger than the X libs we wanted to avoid
<tilpner>
Is there a way to remove references of a derivation?
<sphalerite>
yes
<tilpner>
(Install konsole, but not all deps required to actually run it)
hamishmack has joined #nixos
<sphalerite>
oh, well not like that really
jtojnar has joined #nixos
<sphalerite>
but there's nukeReferences and removeReferencesTo
<tilpner>
That would make the buildEnv more feasible
<sphalerite>
oh right, forgot that it uses symlinks. I think something like buildEnv but making copies rather than symlinks would be more appropriate
<teto1>
now python complains if I don't put '# -*- coding: utf-8 -*-' but with the first 2 lines being a nix-shell shebang, python doesn't seem to pick the directive as it looks only at the first 2 lines
* teto1
hangs himself
periklis has joined #nixos
semilattice has quit [Ping timeout: 260 seconds]
periklis has quit [Remote host closed the connection]
<srhb>
thekolb: The error you're getting is a bit surprising, I would have expected "Read-only filesystem" -- but the explanation is that the systemd setup is generally immutable in NixOS.
Guest51315 has quit [Changing host]
Guest51315 has joined #nixos
Guest51315 is now known as adamt
<adamt>
thekolb: Why not just stop the service instead of disabling it?
<srhb>
What sorcery is this
<adamt>
(unless you need to reboot the system for debugging purposes, of course...)
karlguy_ has quit [Ping timeout: 264 seconds]
<thekolb>
what the hell:
<thekolb>
Loaded: masked (/dev/null; bad)
<thekolb>
Active: active (running) since Wed 2018-06-06 11:18:01 UTC; 21s ago
<thekolb>
(that’s after I set enable=false)
<srhb>
That's normal.
<thekolb>
its normal that its still running?
<srhb>
The unit is probably a symlink to /dev/null now :)
<srhb>
Oh, probably not. Though I'm not sure that's really trustworthy
<srhb>
Maybe I need to read up on the systemd internals :-)
<adamt>
thekolb: I'm pretty sure marking a service as disabled should also stop it. The alternative doesn't make sense.
<adamt>
thekolb: Still, if you just need it to stop, then use systemctl stop blargh, instead of redeploying your system
klaas_ has joined #nixos
kendrick_ has joined #nixos
<kendrick_>
hey guys, I'm currently trying to install ghc-mod on nixos 18.03 but it fails with `Couldn't match expected type ‘Distribution.Types.UnqualComponentName.UnqualComponentName`
<kendrick_>
any ideas?
<srhb>
kendrick_: Sounds like a mismatch in Cabal version versus ghc-mod
<NinjaTrappeur>
kendrick_: I use the stackage version.
thekolb has left #nixos [#nixos]
<kendrick_>
I'm trying to install ghc-mod on `environment.systemPackages`
<kendrick_>
is there anyway I can achieve this without using `stack`?
<kendrick_>
Sorry if im not clear, English isn't my first language
<NinjaTrappeur>
you can use a stackage overlay over nixpgks
<kendrick_>
NinjaTrappeur: Do you have an example I could follow?
<klaas_>
Hi all; After an upgrade to 18.03 my default fonts look really funny; in particular, I get some kind of gothic font (unifractur perhaps?) for certain bold typefaces. I've installed a number of fonts using configuration.nix' fonts.fonts variable previously; these seem to have made it through the upgrade. I never configured which fonts I wanted as my defaults previously; I think I probably should now. Here's the output for the defaultF
<klaas_>
Here's the output for the defaultFonts: nix-instantiate --eval -E 'with import <nixos> {}; config.fonts.fontconfig.defaultFonts' -I /home/klaas/nixpkgs/nixos-18.03 { monospace = <CODE>; sansSerif = <CODE>; serif = <CODE>; }
acarrico has joined #nixos
<klaas_>
However, the instructions at https://nixos.wiki/wiki/Fonts don't work for me; in particular, I don't have a directory called /nix/var/nix/profiles/system/sw/share/X11-fonts
<klaas_>
Any idea on how to proceed? And a good suggestion on some good defaults for the above 3 fonts?
<angerman>
how do I merge two nix expressions? openssl generously pulls openssl apart into openssl.dev and openssl.out, ... but I need to merge them into one...
<clever>
angerman: those are the same nix expression, its just split outputs
<angerman>
clever: hmm...
<clever>
angerman: generally, you just add openssl to the buildInputs, and nix uses the right one for you, but sometimes you need to add both to the buildInputs
__monty__ has joined #nixos
<angerman>
clever: ok, let's try. I've added .out because the the openssl path didn't contain the relevant .dlls
<angerman>
well, it did, but in bin instead of lib, which broke the downstream tooling.
<angerman>
hmm thanks. Does seem to work.
<clever>
angerman: you may need to manually add "${openssl.out}/lib" to PATH because windows is dumb
<clever>
depends on what exactly is failing
<angerman>
I've just copied $bin/bin/*.dll into $out/lib/
fogbugz`` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<cocreature>
hey I’m running into some weird issue where hackage-security is apparently using a different version of Cabal than cabal-install. afaict I haven’t messed with either of those packages or Cabal itself so I’m lost as to what is going wrong here. you can see my default.nix and the full error at https://gist.github.com/cocreature/12a4d80cfe5c73aa6ec36b7add413e4b
hph^ has quit [Read error: Connection reset by peer]
hph^ has joined #nixos
<bbsl>
cocreature: Im a bit out of my depth here (and I dont know why you have the pin (is it prod?) ), but what happens if you just use the latest version of nixpkgs?
dima1 has quit [Ping timeout: 264 seconds]
<cocreature>
bbsl: that is the latest version
<cocreature>
at least as of a few minutes ago
blankhart has quit [Ping timeout: 264 seconds]
jtojnar_ has joined #nixos
<dejanr>
hi, anyone could help me out identify what's overriding $NIX_PATH, i use nix-darwin and nixp on OSX, so echo $NIX_PATH gives /nix/var/nix/profiles/per-user/root/channels, but when i source my ~/.bashrc again it becomes properly set to what i set it in my dotfiles
<dejanr>
not sue whats overriding it
<{^_^}>
[nixpkgs] @MarcFontaine opened pull request #41576 → xearth : init at 1.1 → https://git.io/vh0s9
<bbsl>
cocreature: it looks like one is using cabal-install from nixpkgs and the other is using cabal install from somwhere else maybe?
goibhniu1 is now known as goibhniu
<cocreature>
bbsl: my guess is that cabal-install is trying to use the version of Cabal that is bundled with GHC while hackage-security builds Cabal separately
<cocreature>
but I am completely lost when it comes to how that happens
<cocreature>
looking at the derivations of hackage-security and cabal-install I don’t see any significant differences that should come into play here
xy2_ has quit [Ping timeout: 264 seconds]
<dejanr>
LnL: thanks set -x is nice
<dejanr>
LnL: so its /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh that sets NIX_PATH export NIX_PATH="/nix/var/nix/profiles/per-user/root/channels"
sorixelle has quit [Ping timeout: 245 seconds]
<bbsl>
hmm Iv never had this issue but ya maybe you can make it simpler to debug by using cabal2nix on the cmdline to generate the derivations and then use those? (instead of callCabal2Nix which I assume does it in one go)
<LnL>
dejanr: I suspected that, but how does that still get loaded?
<__monty__>
lalaland: I can't find any documentation on the shake cli, does it only work with ninja files?
<gchristensen>
no
<gchristensen>
maybe we should do away with {^_^}'s github updates altogether in here
<gchristensen>
I think probably yes, at least for nixpkgs
<lalaland>
Maybe there is not many master testers/users here.
<hodapp>
any way to make CMake quit bitching about "Unable to find the requested Boost libraries." for boost_atomic, boost_date_time, boost_filesystem, boost_regex, boost_thread, boost_wave?
<lalaland>
__monty__: ah, so that is not about Shake (haskell make alternative)?
<hodapp>
<3 Shake. Tamed a very ugly cross-compiling build in it once.
<__monty__>
lalaland: I thought the binary came with haskell shake. No idea where else it might've come from.
<__monty__>
I'll stick to the runhaskell workflow though I guess.
<hodapp>
are you trying to use the Shake that is the Haskell EDSL?
<hodapp>
IIRC, you're not going to have a "Shake binary" per se, because Shake's used not as a standalone tool but as an EDSL that you use directly from Haskell
<lalaland>
gchristensen: is there a place where I could ask why 'setxkbmap en' does not work and why 'Error loading keymap /tmp/server-0.xkm' in X log?
kerrhau has quit [Ping timeout: 260 seconds]
<gchristensen>
here
<__monty__>
hodapp: Yes.
<hodapp>
oh, hmm, maybe I'm wrong
oltoAltn has quit [Read error: Connection reset by peer]
<sphalerite>
I'm getting "Device or resource busy" on DNS resolution. What does this mean?
<__monty__>
hodapp: I was hoping I could just run `shake <target>` and it'd look for a file called Shakefile. Imo the consistency of how make is *used* is just as important as what it can do. It seems like with shake everyone and their grandmother'll have a potentially differently named buildtool.
periklis has joined #nixos
<lalaland>
__monty__: ah, now I see, you do not need to use Ninja, is a recently added compatibility feature.
karlguy_ has joined #nixos
olto has joined #nixos
<manveru>
gchristensen: that's why i muted the bot ages ago, now i remember :)
silver has joined #nixos
<hodapp>
__monty__: its whole point was to provide similar semantics to Makefiles, but with the language embedded inside of Haskell
<hodapp>
but there is no separate Shake language
<hodapp>
what are you trying to accomplish?
<__monty__>
hodapp: That doesn't preclude having a shake binary that builds and/or runs a haskell file.
karlguy_ has quit [Max SendQ exceeded]
<LnL>
gchristensen: I like those :/
<gchristensen>
LnL: how about #nixos-bots?
<hodapp>
__monty__: if you want to call your executable "shake" and run it like that, you can.
hyper_ch has quit [Ping timeout: 260 seconds]
<hodapp>
just hardly anyone does because there's no point
karlguy has joined #nixos
adamt has joined #nixos
adamt is now known as Guest11225
periklis has quit [Remote host closed the connection]
periklis has joined #nixos
<__monty__>
The point would be emulating the make workflow. Clone a repo, then blindly run make, presto donezo.
<lalaland>
This is what I do with shake...
<LnL>
gchristensen: dunno, I don't get the problem with some notices in the channel it's not like it's more than people talking
<hodapp>
not even 'make' really works that way
<__monty__>
lalaland: But you have to figure out what the repo-du-jour's taste in naming build systems is first.
<hodapp>
except on really simple builds
<gchristensen>
someteimes it is a lot :/
<__monty__>
hodapp: I guess I only work with really simple builds.
<lalaland>
__monty__: could you give an example, I have time, because I wait for Nixpkgs master users (or even Unstable).
<hodapp>
__monty__: then I have no idea what you are hoping to get out of Shake.
<hodapp>
__monty__: when I used Shake it was because I had a really ugly, nasty cross-compiling build with multiple levels of codegen.
<hodapp>
and I wasn't concerned with little trivialities of how things were named, but with whether or not the build worked and the resultant binaries ran on the target board.
<__monty__>
hodapp: Shake supposedly subsumes make so I figured I'd give it a shot.
<lalaland>
Hadrian (Shake based) is build system for GHC.
<hodapp>
lalaland: GHC build system is based on Shake?
<__monty__>
I thought shake was developed at least in part to be ghc's build system.
<hodapp>
__monty__: I've not ever seen Shake described as something that subsumes make, but as something for which the EDSL itself supports similar semantics to make, intentionally - not as a drop-in replacement.
<__monty__>
hodapp: I really don't see why shake shouldn't behave like make, currently it behaves like ninja, why's that any more logical? The shake binary is used to run builds that aren't defined with shake in mind at all.
<lalaland>
That Ninja feature is an addition.
<lalaland>
I use shake to shake regular Haskell build recipes.
<LnL>
gchristensen: I'd prefer making it a bit smarter, like eg. filter openend by r-ryantm
hph^ has joined #nixos
<__monty__>
lalaland: Yeah but in doesn't make sense to me. Why not have shake emulate make and add a shuriken binary or something that emulates ninja?
<gchristensen>
samueldr: ^
<__monty__>
lalaland: So in Setup.hs?
<lalaland>
Because make has flaws and shake wants to improve. Is not a drop-in replacement.
<lalaland>
I will tell you if you execute 'setxkbmap en' in your shell :)
ar has joined #nixos
<__monty__>
I'm not on nixos and not on nixos-master either.
<LnL>
gchristensen: and 'pushed %d commits to master' if the previous event a merge by the same person?
<hodapp>
__monty__: you are really making a lot of insistence about what the point "should" be in someone else's work.
<LnL>
gchristensen: those are usually redundant
<samueldr>
gchristensen: should be possible, but filtering the push events from a closed r-ryantm PR would require coalescing the pair merge/push
atu has joined #nixos
<symphorien>
lluchs: it's setxkbmap us, not en
<__monty__>
hodapp, lalaland: Should we maybe take the discussion to #nixos-chat?
<symphorien>
lalaland: , not lluchs , sorry
roconnor_ has joined #nixos
<hodapp>
__monty__: probably best for you to go find Neil Mitchell and lecture him on what he did wrong yourself.
roconnor has quit [Ping timeout: 265 seconds]
<lalaland>
symphorien: thank you, so they removed my layout (not en, but en gave me the same error message).
<lalaland>
symphorien: you are the best. cheers.
<LnL>
samueldr: doesn't the bot only create merge requests? close/merge is done by a maintainer
<__monty__>
hodapp: Don't intend to lecture anyone. Just think it's a questionable decision UX wise. Imo it's something make did well.
<samueldr>
exactly, depends on what kind of filtering is wanted
<samueldr>
filter all events that came from those PRs
deepfire` has joined #nixos
<samueldr>
or only filter out their open?
Guest11225 has quit [Ping timeout: 268 seconds]
<__monty__>
hodapp: Especially because there's a --makefile option that expects a ninja file...
<LnL>
I was thinking of just open initially, since that's the least interesting
<lalaland>
__monty__: everything about Shake was explained (also in papers). It works as designed. Ninja thing is a recent addition.
<lalaland>
__monty__: authors explain why Make is not good.
<samueldr>
though, maybe it's relevant to instead make a by-the-hour digest of all events?
<__monty__>
lalaland: Just because it's an addition doesn't mean it should claim such valuable binary naming real-estate imo.
roconnor_ has quit [Ping timeout: 256 seconds]
roconnor_ has joined #nixos
<lalaland>
I am pointing out that is recent, because Shake is fluid. Is not stable yet. Today is here, tomorrow is fixed.
<lalaland>
Like regressions in Nixpkgs master :)
<samueldr>
[NixOS/nixpkgs] in the last hour: XXXX new PR, XXXX closed PR, XXXX merged PR, XXXX new issues, XXXX closed issues, XXXX commits pushed https://___some-detailed-log___/
<__monty__>
lalaland: All I'm saying is I expected "shake <target>" to look for a "Shakefile" and execute "runhaskell Shakefile <target>". I'm not in any way saying shake should be more like make past that.
<hodapp>
__monty__: go file an issue in their GitHub.
<lalaland>
If you want a stable tool then try Darcs. (Is not a replacement for git, is better ;P)
<lalaland>
__monty__: that was the case in the past, but they have a regression now.
<lalaland>
Install Shake from Nixos 17.03, it should work that way.
<LnL>
samueldr: well, that doesn't have any interesting information except for stats
<__monty__>
hodapp, lalaland: Fine, I'll file an issue about it. Meanwhile I'm wondering whether `cmd_` executes commands in a specific shell or in $SHELL? I'm trying to call `dhall-to-text` but it doesn't take arguments, it gets its input from stdin.
xy2_ has quit [Ping timeout: 276 seconds]
<samueldr>
all depends how the bot's going to evolve
nico202 has joined #nixos
<LnL>
samueldr: I find the notices useful to notice what's going on without having to hunt for them myself, but obviously not everybody agrees with that :)
<samueldr>
LnL: I think the same way
<samueldr>
personally, I would open the firehose more by adding issues open/close to e.g. the bots channel, and reduce the general amount of noise here
ThatDocsLady has quit [Ping timeout: 256 seconds]
<samueldr>
so, events as they come in the bots channel, digest here, with a well-formatted digest
szicari has joined #nixos
<lalaland>
symphorien: any idea where are layouts in /nix/store?
periklis has quit [Remote host closed the connection]
<lalaland>
(X locales because glibc's are in /nix/store/*-glibc-*/share/i18n/locales)
<lalaland>
Ok, is in /nix/store/chgicdk0sh9a7y2l1y1yiyhdngpg141v-setxkbmap-1.3.1/share/X11/xkb/symbols
atu has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @Ericson2314 closed pull request #40639 → Ensure build/hostPatform when cross compiling from macOS → https://git.io/vpbMa
hph^ has quit [Ping timeout: 260 seconds]
<lalaland>
But I see e.g. 'pl' in it, but I cannot load it :?
erasmas has joined #nixos
nico202 has quit [Quit: Leaving]
frankpf has joined #nixos
<kendrick_>
for anyone having an issue installing ghc-mod on 18.03, i reverted back to 17.09 and my config file works perfectly. I think its something to do with 18.03 using ghc 8.2.2 which isn't supported by everything. Github issue: https://github.com/NixOS/nixpkgs/issues/36604
<lalaland>
symphorien: last thing and I am gone to bisect evdev/xorg updates in Nixpkgs. Could you try 'setxkbmap pl' (it is mainly us layout, so you will be able to execute 'setxkbmap us' without problem).
kendrick_ has quit [Remote host closed the connection]
<symphorien>
it works, but I am on 18.03
<lalaland>
Thank you very much, so I am not crazy and something is broken on master.
jD91mZM2 has joined #nixos
philippD has joined #nixos
roconnor_ has quit [Ping timeout: 240 seconds]
roconnor_ has joined #nixos
ixxie has joined #nixos
fragamus has joined #nixos
<philippD>
Does anyone have experience runing idea-community on NixOS? I don't want to install any java compiler for my user but rather use nix-shell to select one. but if I run `nix-shell -p openjdk --run idea-community` the ide can't find any compilers
<ixxie>
an advantage is that you can keep augmenting the dev environment without having to rewrite the command
matthewbauer has joined #nixos
roconnor_ has joined #nixos
roconnor has quit [Ping timeout: 276 seconds]
lanelet has joined #nixos
Supersonic has quit [Ping timeout: 240 seconds]
ThatDocsLady has joined #nixos
<{^_^}>
[nixpkgs] @uri-canva opened pull request #41589 → stdenv.cc: use libc++ as default c++ standard library on darwin → https://git.io/vh0oI
<hodapp>
anybody know much on how to make CMake see boost libraries? I'm trying to do a build and FindBoost.cmake (seems to be the normal one shipped in Nixpkgs' cmake) is complaining it can't find some static Boost libraries, like boost_atomic
<clever>
hodapp: did you try adding pkgconfig to the nativeBuildInputs?
<hodapp>
didn't help
spietz has joined #nixos
<symphorien>
are you sure nixpkgs's boost contains static libs at all ?
<hodapp>
so I see that there is both /nix/store/...-boost-1.66_0-dev, and /nix/store/...-boost-1.66_0
__Sander__ has quit [Quit: Konversation terminated!]
<hodapp>
and the latter contains the static libraries, while the former does not
ThatDocsLady has quit [Client Quit]
<hodapp>
but CMake is only finding the former
alexteves_ has joined #nixos
cloud-maingo has joined #nixos
thblt has joined #nixos
<hodapp>
I guess this is the .dev and .out attributes for boost
<hodapp>
okay, now that I know that it might explain the configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] and "--with-boost-libdir=${boost.out}/lib" in nixpkgs, now that I know what to look for...
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
roconnor_ has quit [Ping timeout: 260 seconds]
<alexteves_>
I got a wifi card to work on nixos via network manager, but only on about half the boots
<alexteves_>
Sometimes when I load NM will auto-connect right away, sometimes it won't display any wifi networks and ifconfig -a has one less entry.
<softinio>
it suggests using a swap size of 4gb to overcome issue
<softinio>
is this something I setup in my configuration or do I increase the disk partition I am using for swap to 4gb?
<tilpner>
If you are using a swap partition, you should do it manually
<tilpner>
For a swapfile, configuration.nix will do
<softinio>
ok so as I have a swap partition just increase its size ?
woodson_ has joined #nixos
<tilpner>
swapoff, resize, possible mkswap, swapon
<softinio>
tilpner: confused what do u mean
<tilpner>
(That's what I would do, not sure if it handle live resizing or similar)
freusque has quit [Quit: WeeChat 2.0]
<tilpner>
softinio - First disable swap, then make your partition bigger, recreate the swap area with mkswap, then turn it back on
<ixxie>
gchristensen: when are you in london exactly?
<tilpner>
Does relocation error: symbol version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference look familiar to anyone?
<softinio>
I can't just shutdown vps, use Linode dash to resize physical partition and restart VPS? You can tell I haven't done this before lol !
<gchristensen>
ixxie: sometime around the 27th (_exactly_ when I get to London is not clear yet) to the 2nd
<{^_^}>
[nixpkgs] @vbgl opened pull request #41591 → ocamlPackages: use opaline instead of opam-installer → https://git.io/vh0iE
<tilpner>
softinio - I don't know if there's any smartness built into either Linode tools or NixOS that would resize the swap area (of if that's even necessary!)
<ixxie>
gchristensen: so really end of June.... I will be there 15-19 June
<gchristensen>
oh no!
<tilpner>
softinio - But a reboot is not necessary for this
orivej has quit [Ping timeout: 264 seconds]
<tilpner>
(Unless your disk is full. I'd not try online size decrease of /)
<gchristensen>
ixxie: where are you based?
<gchristensen>
ixxie: and, want to extend your trip a few days and meet in Paris? :P
<ixxie>
gchristensen: Helsinki
<ixxie>
gchristensen: that would be tricky xD
<ixxie>
when are you in Paris? Right after that?
<ixxie>
hmm
winem_ has quit [Ping timeout: 268 seconds]
roconnor has quit [Remote host closed the connection]
<softinio>
tilpner: decrease of / when system off a problem?
<ixxie>
manveru: AGAIN I was looking at the wrong end of the log -.-
<ixxie>
gotta G that ship
<manveru>
;)
civodul has joined #nixos
<tilpner>
softinio - Not if you're careful. Some tools handle it for you, but you need to make sure the filesystem is decreased in size first. Only then can the partition be shrinked
<manveru>
ixxie: `journalctl -xef` is your friend
<softinio>
tilpner: how do you decrease filesystem
<judson>
gchristensen, do you have a write up of the Nix-supported MySQL integration test environment you presented about ... a year or two ago, maybe?
<gchristensen>
a write-up? no, but I have code
<gchristensen>
and the video
<{^_^}>
[nixpkgs] @peti pushed to master « multi-ghc-travis: patch to support latest ShellCheck version »: https://git.io/vh0Mi
<matthewbauer>
alright! we should be getting a nixpkgs channel update soon. apologies for taking so long - inkscape pulled in a lot of new dependencies but it should be building now
<roni_>
hi all, i'm trying to upgrade to 18.03, and i'm getting this cryptic file ‘nixpkgs/nixos’ was not found in the Nix search path (add it using $NIX_PATH or -I) message when i run nixos-rebuild switch --upgrade
<roni_>
help!
<roni_>
i believe i am in this nix 2.0 with nix-daemon 2.0.2 problem, and i'm not sure how to resolve that either
<hodapp>
raaaawr... bloody CMake build still somehow cannot find the Boost static libraries, despite that I've pointed it right at the directory that has libboost_*.so
dbmikus has quit [Read error: Connection reset by peer]
dbmikus__ has joined #nixos
goibhniu has joined #nixos
bara has quit [Ping timeout: 265 seconds]
hellrazor has joined #nixos
dbmikus_ has quit [Ping timeout: 268 seconds]
balsoft has quit [Quit: balsoft]
<manveru>
hodapp: does strace show that it looks there?
pie__ has joined #nixos
<hodapp>
manveru: I haven't straced yet but as it searches I do see things like: -- [ /nix/store/pxajy0zvz9a68w82anchqpdk64sjjyhh-cmake-3.10.2/share/cmake-3.10/Modules/FindBoost.cmake:380 ] Boost_LIBRARY_DIR_RELEASE = /nix/store/fl
<hodapp>
ack, sorry, didn't realize that was gonna be multiline
dima1 has joined #nixos
ixxie has quit [Ping timeout: 264 seconds]
dima1 has quit [Client Quit]
<manveru>
yeah, just asking, because usually i figure out how such tools look for stuff using `strace -f -e trace=file`... never trust the logs :P
<hodapp>
it's just boggling my mind that some other CMake builds, which are very likely using the exact same FindBoost.cmake, aren't having this issue and are using the same technique I am for setting the library directory
<roni_>
LnL: awesome, do i need --upgrade there too?
<LnL>
no, this will use the latest version of 18.03
<roni_>
gotcha
<roni_>
let me try it... thanks
<LnL>
the only thing --upgrade does is run nix-channel --update nixos in the back for you
<{^_^}>
[nixpkgs] @orivej pushed 0 commits to revert-41373-bitwise: https://git.io/vh0F4
<roni_>
similar error messages
<roni_>
"warning: Nix search path entry ‘channel:nixos-18.03’ does not exist, ignoring
<LnL>
are you sure this is nix 2.0 then?
jophish has quit [Quit: WeeChat 2.0]
<roni_>
what's the right way to verify?
<roni_>
hm, my nix, nix-env, and nix-daemon versions are all 2.0.2, is that correct?
<LnL>
nix-store --version and/or systemctl show nix-daemon | grep ExecStart
semilattice has joined #nixos
Gohla has joined #nixos
<ixxie>
I am working on a module and discovered problems with the corresponding package; fixes to the package should be in a different commit but can be in the same PR, but I want to do two fixed:
<ixxie>
1. move the body of the code from the top-level/python-modules.nix to a seperate file
<ixxie>
2. bump the version
<ixxie>
3. add missing dependencies
<ixxie>
can 1+2+3 be in one commit?
<ixxie>
or at least 2+3
dmc has quit [Ping timeout: 244 seconds]
btbytes has joined #nixos
<roni_>
LnL: nix-store is 2.0.2, but the ExecStart line says nix-1.11.16!
<LnL>
ixxie: I'd put 1. in a separate commit to make the diff easier to read
<btbytes>
Hi all.. is this a good place ask for help regarding building nixpkgs ?
<ixxie>
that is white I thought LnL
<LnL>
ixxie: only reason I'd put 2/3 in separate commits is if 18.03 also has missing dependencies to make backporting easier
<LnL>
roni_: that's interesting what about /run/current-system/sw/bin/nix-store --version
<roni_>
1.11.16
<ixxie>
LnL: not to sure if the dependencies are missing from the current version or the one I need or whatnot
<ixxie>
LnL: I started working on a Jupyterlab module and after some evenings wondering what I am doing wrong I discovered the package doesn't even work
<judson>
gchristensen, if you can share the code for the MySQL testing that would be fab
asuryawanshi has quit [Remote host closed the connection]
<ixxie>
LnL: also its VERY outdated
<ixxie>
LnL: so I think I will just combine 2+3 because effort into make the outdated version seem silly
<gchristensen>
judson: if you need help grokking it, lmk
slack1256 has joined #nixos
<LnL>
ixxie: ah that sounds fair
jtojnar has quit [Ping timeout: 240 seconds]
<LnL>
roni_: so your system is still using 1.11, you just installed 2.0 in your user profile
goibhniu has joined #nixos
<gchristensen>
it would be very neat if Nix could error if paths don't exist which I expect to exist. in other words, "${mypkgs}/bin/foo" -> bin/foo may or may not exist, but how about "${mypkg + "bin/foo"} -> validates it exists or not. obviously I know this would be tough... but I'd love it :D
szicari has quit [Read error: Connection reset by peer]
phdoerfler has joined #nixos
pie__ has quit [Ping timeout: 264 seconds]
szicari has joined #nixos
pie__ has joined #nixos
sir_guy_carleton has joined #nixos
roconnor has joined #nixos
jtojnar has joined #nixos
ixxie has joined #nixos
<roni_>
LnL: again, thanks so much! system feels like it's humming along nicely now
<roni_>
including a fixed nm-applet on my desktop :)
<{^_^}>
[nixpkgs] @mbbx6spp opened pull request #41600 → documentation: add sub-section for the nixpkgs manual Haskell section → https://git.io/vh0xQ
<LnL>
no problem :)
<LnL>
so you also recovered the nix.nixPath issues?
<LnL>
don't forget to switch your system channel, using an url is temporary and doesn't change your active channels
<roni_>
ah yes, thanks for that last tip
<roni_>
for nix.nixPath, i simply removed that config option from configuration.nix
semilattice has quit [Ping timeout: 260 seconds]
nlytend has joined #nixos
<nlytend>
Hi
<LnL>
if you used 18.03 but sudo nix-channel --list still points to 17.09 you'd downgrade with the next rebuild
<btbytes>
anyone with buildRustPackage experience?
<btbytes>
I'm seeing a "error: the lock file needs to be updated but --frozen was passed to prevent this" ..
<nlytend>
When installing haskell packages i am getting 'encountered missing dependencies', and adding them manually feels like i am doing something wrong.
<nlytend>
What's up with this?
<roni_>
LnL: thanks -- i verified that `sudo nix-channel --list` does indeed show 18.03 now
phdoerfler has quit [Quit: Leaving.]
semilattice has joined #nixos
balsoft has quit [Quit: balsoft]
nur0n0 has joined #nixos
Xal has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @xeji pushed to master « nixos/release-combined: remove keymap tests from tested job »: https://git.io/vh0hU
<cocreature>
fabian_: does it complain about haskellPackages or about the ghcjs attribute in haskellPackages? afaik that has existed for quite some time so I would be surprised if your channel is lagging so far behind that it doesn’t exist
alexteves_ has quit [Remote host closed the connection]
<ixxie>
nlytend: libraries don't get installed in the general environment; instead you should create a default.nix which creates the environment with all its dependencies and builds your project
<nlytend>
But i thought what i am installing is a package
<nlytend>
'Leksah' ide for haskell
<nlytend>
I was listing them in with pkgs [ ] and running sudo nixos-rebuild switch
<fabian_>
cocreature: nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghcjs -> error: attribute 'haskeline_0_7_3_1' missing, at /nix/store/399zqar7p8qfchdybaxlyxf1i7mq8246-nixpkgs/nixpkgs/pkgs/development/haskell-modules/configuration-ghcjs.nix:50:15
<elvishjerricco>
fabian_: Yea, ghcjs is not under `haskellPackages`. It's its own thing. haskell.compiler.ghcjs
acarrico has quit [Ping timeout: 260 seconds]
<elvishjerricco>
fabian_: Evaluating haskell.packages.ghcjs will attempt to evaluate all haskell packages as if they were built by GHCJS. That's quite a bit more than just the compiler you want :P
<elvishjerricco>
haskell.compiler.ghcjs is probably what you want
<elvishjerricco>
fabian_: GHCJS was only fixed very recently on master. It may not be on nixos-unstable yet. But you can get it from master ad-hoc with `nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz`
sbdchd has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
jtojnar_ has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
mizu_no__ has joined #nixos
jtojnar has joined #nixos
pie_ has joined #nixos
vandenoever has quit [Ping timeout: 268 seconds]
<fabian_>
I'm still confused on how to actually search for haskell-related stuff in the nix-env. I understand that -A haskellPackages searches for derivations tagges with haskellPackages. But how can I "find" ghcjs?
jtojnar_ has quit [Ping timeout: 276 seconds]
kreisys has quit [Ping timeout: 245 seconds]
<ixxie>
nlytend: did you use nix-env -i leksah or what?
<nlytend>
I put leksah in /etc/nixos/configuration.nix 'with pkgs []' expression then nixos-rebuild
<hodapp>
justan0theruser: feel almost certain I'm using scipy on 18.03 with no problem
<justan0theruser>
I was using it with no problem
<justan0theruser>
but now I'm getting this issue
vandenoever has joined #nixos
<justan0theruser>
hmm, numpy and scipy haven't changed in 9mo
szicari has quit [Quit: Leaving.]
<hodapp>
okay, either CMake isn't even *trying* to look in the directory where it claims it's looking for Boost libraries, or it's just doing it in a way that strace can't pick up
Intensity has quit [Ping timeout: 260 seconds]
Intensity has joined #nixos
<hodapp>
already added -DBoost_DEBUG=ON... are there other magical ways to trick CMake into telling me wtf it is actually doing?
<ixxie>
I donno, at some point last year numpy was broken I believe
<{^_^}>
[nixpkgs] @xeji pushed commit from @Izorkin to master « mariadb: 10.2.14 -> 10.2.15 (#41497) »: https://git.io/vhETR
<samueldr>
inquisitiv3: for what it's woth, logs are handled by journald, services are systemd, but generated using configuration.nix
<ixxie>
inquisitiv3: think of it this way: you can have a git repo store everything you need to reproduce the system configuration just the way you like it
<leons>
inquisitiv3: When you're dropped into the shell however, except all the declarative configuration goodness, it will pretty much feel like a regular linux system at first. All your favorite apps and tools are available. So don't hesitate and try it out!
<inquisitiv3>
The reason I ask is because I'm wondering how applicable the documentation for different systems is for NixOS.
<ixxie>
good question
<ixxie>
somewhat
<samueldr>
more than if we weren't using upstream stuff like that
<samueldr>
what will most likely change is how you *modify* things
<ixxie>
it depends on the details
<samueldr>
you won't sudo vim /etc/some_thing, but will probably handle it through configuration.nix
<leons>
inquisitiv3: you'll just have to be careful when doing system configuration, as no files are under /etc and the common directories. In your $home, most stuff should work
<ixxie>
and stuff will be installed elsewhere than a normal system
<inquisitiv3>
So the big difference is the configuration format and file?
<samueldr>
even then, it will generally end up being in the same format that upstream uses
<leons>
inquisitiv3: it is kind of neat to know that nix nixos abstracts many aspects of system configuration but is using standard software underneath. E.g. systemsd, iptables, etc.
<ixxie>
inquisitiv3: the general workflow is quite different
cfricke has joined #nixos
Intensity has quit [Ping timeout: 260 seconds]
<samueldr>
e.g. for a system service, you configure it using the nix expression language, but the keys are concepts are one-to-one
* samueldr
should re-read when writing
<ixxie>
inquisitiv3: in a sense Nix lets us wrap all the stuff we do to manage a system into a set of config files
<samueldr>
e.g. for a system*d* service, you configure it using the nix expression language, but the keys *and* concepts are one-to-one
fendor has joined #nixos
Intensity has joined #nixos
<inquisitiv3>
So in a sense you write configuration files in Nix expressions, and when a "transpiler" make it usable for the system in question?
<leons>
inquisitiv3: The end-result of your nix expressions are just regular config files and scripts, yes
<leons>
Although it will store them under a path located in /nix/store and create a different path for a different set of inputs. This allows for stuff like rollbacks
tzemanovic has quit [Remote host closed the connection]
<ixxie>
inquisitiv3: I think of it as 'the one configuration language to rule them all'
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to staging « bluez: 5.49 -> 5.50 (#41583) »: https://git.io/vhEkN
pie_ has quit [Ping timeout: 264 seconds]
<inquisitiv3>
Thanks for the explanation :)
<ixxie>
inquisitiv3: one language for builds, development environments, packages, system configuration, deployment and witchcraft
<inquisitiv3>
The later one sound interesting! Can you teach me, or is it reserved for schools like Hogwarts and Durmstrang?
<leons>
inquisitiv3: I think that for me is the main part which differentiates it from other orchestration tools like Ansible. Nix and NixOS build of your system out a single derivation which sort of "references" other derivations. So it doesn't modify files in live locations but has everything stored neat and tidy. And can't really leave garbage behind (apart from derivations which aren't used anymore, which can be removed by a
<leons>
(Please excuse me if I'm not using the exact right terminology)
mizu_no__ has joined #nixos
balsoft has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #41475 → manual: make epub a build product on hydra → https://git.io/vh4az
<{^_^}>
[nixpkgs] @xeji pushed commit from @LnL7 to master « manual: make epub a build product on hydra (#41475) »: https://git.io/vhEID
mizu_no__ has quit [Client Quit]
fendor has quit [Quit: Leaving]
<gchristensen>
inquisitiv3: you should probably just try it
cloud-maingo has joined #nixos
<gchristensen>
in a VM if necessary
<gchristensen>
we're here to help, and a lot of the claims are not very believable without having tried it
acarrico has joined #nixos
<ixxie>
inquisitiv3: we teach it here too ;)
balsoft has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @bluescreen303 pushed to lib-fix-recursive-update-until « lib/recursiveUpdateUntil: fix code to match documentation »: https://git.io/vhELm
roni_ has left #nixos [#nixos]
<inquisitiv3>
gchristensen: I'm working on it! Currently downloading the ISO.
<ixxie>
The initiation has begun! Huzza!
<{^_^}>
[nixpkgs] @bluescreen303 pushed 0 commits to lib-fix-recursive-update-until: https://git.io/vhELc
<ixxie>
anyway
johnsonav has joined #nixos
<gchristensen>
woohoo!
johnsonav has left #nixos [#nixos]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
<elvishjerricco>
It's quite surprising to me that there aren't more distros like NixOS. You'd think fully automated, rollback-able, reproducible systems would be important to an OS.
<inquisitiv3>
Btw, has someone in the NixOS community written about OSTree? I can't only find opinion pieces from developers involved in Project Atomic, and not the other way around.
<Guanin>
Anyone here who has an LTE modem running on nixOS? I had to switch back to my old laptop and threw nixOS on it to force me to use it
Intensity has quit [Ping timeout: 260 seconds]
hamishmack has quit [Ping timeout: 245 seconds]
<leons>
elvishjerricco: I'm trying to get a few people at my company to use it. They're just getting used to the fact that deployment with tools like Ansible are now expected by customers (in addition to hundreds of pages of manual). Most of them just wait until something like NixOS is mainstream, I guess it just takes a lot of time to take off
hotfuzz has quit [Read error: Connection reset by peer]
<nur0n0>
on the surface they may look different, but I think they had similar philosophies
<ixxie>
elvishjerricco: there is Guix
Hdphn has joined #nixos
<gchristensen>
nur0n0: when is that from+
<gchristensen>
?
Intensity has joined #nixos
<nur0n0>
gchristensen: I believe its pretty old (but I actually have no idea; I couldn't find a timestamp anywhere). I was actually trying to implement a systems inspired by his notes when I found Nix!
<gchristensen>
nice
mekeor has joined #nixos
szicari has joined #nixos
<samueldr>
the last-modified header on those pages should give a good enough average
<samueldr>
gives ~july 2001
<gchristensen>
impressive, genuinely slightly older than Nix :)
<leons>
nur0n0: I really liked the idea of /package too and used it a bit. What annoyed me a bit was that there was no CI and all packages were constantly broken. Also dependency management and that it didn't work with anything else
acarrico has quit [Ping timeout: 264 seconds]
Intensity has quit [Ping timeout: 260 seconds]
<nur0n0>
leons: yeah, it definitely was not a fully fleshed out system. which is why I'm glad that Nix has hit a significant mass in terms of its community
sbdchd has quit [Remote host closed the connection]
<nur0n0>
so many good ideas die because not enough people recognize them as such (or they just don't care)
<gchristensen>
me too
<inquisitiv3>
The files with the ISOs' SHA256 sums doesn't contain the file names. How can I correct this? Or is it the build tool that should be corrected?
<gchristensen>
link?
<inquisitiv3>
gchristensen: Do you mean link to the files?
<samueldr>
inquisitiv3: you're verifying them using something that expects the filenames?
<samueldr>
what tool is it?
<inquisitiv3>
sha256
<samueldr>
good
<samueldr>
I'm expecting users visually check
<samueldr>
instead of using that mode
vaninwagen has quit [Quit: WeeChat 2.1]
<inquisitiv3>
Why?
<samueldr>
dunno!
<{^_^}>
[nixpkgs] @bluescreen303 opened pull request #41604 → lib/recursiveUpdateUntil: fix code to match documentation → https://git.io/vhEme
halfbit has quit [Ping timeout: 245 seconds]
<samueldr>
but you have a good point there inquisitiv3
simukis has quit [Remote host closed the connection]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<inquisitiv3>
gchristensen: I'll do it.
<gchristensen>
thank you
<philippD>
I'm trying to set up Intellij for the first time on NixOS through idea-community. It installs correctly but it doesn't find any JDKs. If I click the + in the SDKs dialog nothing happens. Does anyone have an idea what going on here?
logiq_ has quit [Ping timeout: 268 seconds]
softinio has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Client Quit]
btbytes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Intensity has quit [Ping timeout: 260 seconds]
Lisanna has joined #nixos
<inquisitiv3>
gchristensen: Are you grahamc on Github?
<clever>
Lisanna: according to the source, nix-channel always sets the ttl to 0
<Lisanna>
clever yeah, this doesn't seem to have anything to do with ttl. it's random as far as I can tell
<Lisanna>
sometimes I'll make a few updates all within the same minute and it detects the change, and sometimes it just won't detect the change at all, no matter how long I wait
<clever>
Lisanna: and it uses the ~/.cache/nix/tarballs dir to manage the caching
<clever>
Lisanna: if you blow away that tarballs dir, it has to recheck
<Lisanna>
clever yeah, and I purge ~/.cache regularly on linux to work around the issue, but I don't know where that is on darwin
jwynn6 has quit [Ping timeout: 248 seconds]
<gchristensen>
should be in the same place
<samueldr>
Lisanna: the server itself reports the right stuff in its headers? (though don't know if it would be used by nix and how it uses curl)
<clever>
samueldr: nix stores the etag in ~/.cache/nix/tarballs, and will abort if it hasnt changed
<samueldr>
that good :)
<samueldr>
though, maybe something caching in-between could be manipulating that, or misreporting?
<clever>
it also stores the timestamp of when it last checked in that dir
<Lisanna>
okay, must be some other issue then, because I've purged ~/.cache on my darwin machine. must be some other problem in this case, since nix-channel helpfully silences all errors so I'm left to just guess at what the issue is
<clever>
Lisanna: what user did you run nix-channel as?
<Lisanna>
clever sudo
<Lisanna>
so, root
<clever>
Lisanna: did you purge roots ~/.cache or your own?
<Lisanna>
I've purged both just in case
<clever>
using `sudo rm -rf ~/.cache/` ?
<Lisanna>
yes
<clever>
[clever@amd-nixos:~]$ sudo echo ~/.cache
<clever>
/home/clever/.cache
<clever>
bash expands that to the non-root directory, before running sudo
<Lisanna>
oh no
<clever>
use `sudo -i` to get a proper root shell
<samueldr>
or ~root/ to expand to root's home
<gchristensen>
yay macos
<Lisanna>
omfg
<clever>
apple also sets $HOME wrong when you sudo, so `sudo nix-channel --update` does not update roots channels
<clever>
blame apple
<__monty__>
Can mac os serve as a remote build host for a linux box?
<clever>
__monty__: yep
<gchristensen>
"wrong" -> it is an option in the sudo config they've chosen not to set :P
<clever>
__monty__: just make sure that ~/.bashrc sources the profile.d/nix.sh file nix installed
<clever>
__monty__: you can confirm its working by running `ssh user@mac nix-store --version`
Intensity has joined #nixos
<gchristensen>
clever++
<{^_^}>
clever's karma got increased to 3
<__monty__>
Sweet, 2Gigs is sadly not enough to get GHC installed.
Ridout has joined #nixos
<__monty__>
Sometimes it is but not alltimes.
<samueldr>
wrong is debatable, surprising is right though, one easily could assume env will be root's when sudoing :/
<Lisanna>
omfg that fixed it. Okay, so macos nonsense aside, why might nix-channel be failing to recognize that the tarball has changed? I'm literally doing nothing more complicated than nginx.virtualHosts.<myhost>.locations.<location>.alias = myChannel.release.tarball
<gchristensen>
Lisanna: are you serving an etag?
<inquisitiv3>
Thanks yet again for all the help you've given me! The project to install NixOS in a VM is for tomorrow.
<Lisanna>
gchristensen No idea
<clever>
Lisanna: if you `curl -i` the file before and after the change, what http headers does it return each time?
<gchristensen>
inquisitiv3: if you follow my path and try it tomorrow, you'll be in here erasing your laptop to install nixos directly on saturady. :)
<Lisanna>
alias /nix/store/zqy5ymsxy5vwjj8s9f1697xf017wwqvg-nixexprs.tar.xz
hiratara has quit [Ping timeout: 276 seconds]
<clever>
yep
<Lisanna>
I'm using the recommended gzip, optimisation, proxy, and tls settings
klntsky has joined #nixos
<clever>
Lisanna: what about the output of `stat /nix/store/zqy5ymsxy5vwjj8s9f1697xf017wwqvg-nixexprs.tar.xz`
<Lisanna>
is etag calculated based on that?
<__monty__>
Hmm, seems like zsh doesn't source .zshrc nor .zprofile, any I'm missing? Also, which of the files is a better place to put the nix-daemon sourcing and the env vars?
<clever>
Lisanna: if the etag is missing, then it will redownload it every time
<earldouglas>
I tried `nix-env -i foo -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/ABC123SHASHA.tar.gz`, but I don't think that's quite right.
<Lisanna>
clever I don't want that though, that's inefficient - Ideally I'd like to just use the hash in the /nix/store filename or something
<Lisanna>
as the etag
<clever>
Lisanna: next option would be to not put the nixexprs.tar.gz into the store
<clever>
gchristensen: i have 5 different configurations i need to simulate, and all of them are just a matter of running justdoit in a console, waiting for it to install nixos, rebooting, and then confirming it boots
<samueldr>
justtestit when?
<Lisanna>
oh no... I don't think this is customizable
<Lisanna>
dammit, I think I'd rather just turn off etags entirely. goddamnit nginx
<Lisanna>
clever thank you for the debugging help on this
<clever>
gchristensen: that also seems like a fun place to throw justdoit at
<clever>
gchristensen: if you can forcibly boot a packet.net server with a given kernel+initrd, then you can ssh into that, run justdoit, and have total control over the partition tables nixos is installed with
<clever>
the expect script appears to only test things, after it has been installed
<gchristensen>
clever: I mean, it is basically how the nixos installer works there
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #41606 → Fix rWrapper on darwin → https://git.io/vhEZR
<clever>
gchristensen: the only real difference would be the filesystem it uses i guess, my script uses zfs
<clever>
gchristensen: yeah, that looks like a more flexible justdoit
<gchristensen>
yep
<clever>
gchristensen: you could also probably use my simple-test.nix to emulate nvme and/or uefi in qemu for local testing
sigmundv has joined #nixos
<gchristensen>
the only problems I have are around dealing with exotic hardware
<clever>
in my case, justdoit has to have the drive path (sda vs nvme0n1) configured in at compile-time
jperras has quit [Ping timeout: 276 seconds]
sigmundv has quit [Client Quit]
lezed1 has quit [Quit: Connection closed for inactivity]
<earldouglas>
Oops, I was missing `-f '<nixpkgs>'`
i0-dfn has quit [Quit: No Ping reply in 180 seconds.]
sigmundv__ has quit [Remote host closed the connection]
i0-dfn has joined #nixos
sigmundv has joined #nixos
smallville7123 has joined #nixos
logiq_ has joined #nixos
<Lisanna>
wtf, I turned off etag, and it's still sometimes not detecting the update, but now whether or not it doesn't seems to be independent of the size
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<clever>
Lisanna: check the `curl -i` output for differences
<Lisanna>
I verified that the etag is not there
<clever>
Lisanna: is last-modified there?
<Lisanna>
clever yeah, and it's 1970
<Lisanna>
they all are
sigmundv__ has joined #nixos
<clever>
Lisanna: that is likely also causing issues
<Lisanna>
but it still updates sometimes
Hdphn has quit [Remote host closed the connection]
<Lisanna>
after I change it it seems to update, but if I try to run the update command again afterwards it doesn't download it again
<Lisanna>
...which, sounds like the behavior that I want, but I'm skeptical that it isn't just a coincidence
<tazjin>
does anyone here run a mailman setup on NixOS? (or know of an alternative, self-hosted mailing list software?)
blankhart has joined #nixos
<Lisanna>
oh wait, what if I just used add_header to make a fake etag?
<clever>
Lisanna: if you can make it unique each time, sure
<Lisanna>
clever does it need to be in a specific format? or is it just a string comparison, and it can be any reasonable length?
<clever>
Lisanna: its just a string
<Lisanna>
cool!
<gchristensen>
you could switch to apache too
<Lisanna>
gchristensen lol
<clever>
gchristensen: nginx has nicer nixos config flags
<{^_^}>
[nixos-channel-scripts] @samueldr opened pull request #17 → Adds filename to sha256 file for use with `sha256 -c` → https://git.io/vhEnp
sigmundv has quit [Remote host closed the connection]
rain1 has joined #nixos
matthewbauer has quit [Ping timeout: 265 seconds]
<judson>
I've noticed that I have trouble with Steam not seeing over the network (or so it seems - anything that would be using the in-steam browser is just a blank screen) I wonder if this is my local xdg-open issues or a known NixOS problem.
<Lisanna>
maybe I screwed up the fake etag header somehow and curl -i is just happening to print it with identical characters
sigmundv has joined #nixos
<clever>
Lisanna: how did you generate it?
<Lisanna>
it's just the sha from the /nix/store path
<clever>
Lisanna: how is it hashing it and including it in the config?
<clever>
Lisanna: /var/root/.cache/nix/tarballs/0zs83a6jbq4ff7iaig1qblgh94v3wj8sdjrrwyv3wrdlviavxpm5.info will contain the last etag it saw
jperras has quit [Ping timeout: 264 seconds]
<clever>
that path is a hash of the URL
tzemanovic has joined #nixos
sigmundv has quit [Remote host closed the connection]
<Lisanna>
clever huh, yeah, I guess it's working... tried it a few times and it's downloading it. must have just confused myself
<Lisanna>
alright, cool, so this should be fixed now
frank87 has quit [Remote host closed the connection]
sigmundv has joined #nixos
frank87 has joined #nixos
matthewbauer has joined #nixos
<justan0theruser>
Can someone give me an example of a package installed via dpkg?
<Guanin>
What is the nix way to include something you'd install via pip? I want to keep this requirement within one project and want to switch to that environment by nix-shell and a default.nix. Is this right?
erasmas has quit [Quit: leaving]
<infinisil>
Guanin: The pythonPackages attribute contains a lot of python packages, you could just include that in buildInputs or nativeBuildInputs
<infinisil>
E.g. `nativeBuildInputs = [ pkgs.pythonPackages.pytest ];`
<Guanin>
and as far as I can see, only nixos.python{27,36}Packages.scapy exist, but not this (small) extension
sanscoeur has quit [Remote host closed the connection]
<infinisil>
Indeed, I'll recommend packaging it yourself then, it should be fairly easy
sbdchd has joined #nixos
sbdchd has quit [Ping timeout: 240 seconds]
sigmundv has quit [Remote host closed the connection]
palo_ has quit [Ping timeout: 260 seconds]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
freeman42x[nix] has quit [Ping timeout: 256 seconds]
contrapumpkin is now known as filthySJW
sigmundv has joined #nixos
filthySJW is now known as contrapumpkin
jasongro` has quit [Ping timeout: 256 seconds]
aarvar has joined #nixos
<Guanin>
Oh, I don't think so - it seems to try to modify existing files from a differen package (scapy/layers/http.py)
sigmundv has quit [Ping timeout: 265 seconds]
sigmundv has joined #nixos
pie_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vhElK
joelpet has quit [Remote host closed the connection]
nadley has joined #nixos
<Guanin>
I'll just put that single python file next to my code, problem solved
goibhniu has joined #nixos
spear2 has joined #nixos
jackdk has joined #nixos
fendor has quit [Read error: Connection reset by peer]
sorixelle has joined #nixos
acarrico has joined #nixos
blankhart has quit [Ping timeout: 264 seconds]
sigmundv__ has quit [Ping timeout: 265 seconds]
joelpet has joined #nixos
joelpet has quit [Changing host]
joelpet has joined #nixos
bara has joined #nixos
blankhart has joined #nixos
matthewbauer has quit [Remote host closed the connection]
matthewbauer has joined #nixos
smallville7123 has quit [Quit: rosa]
<matthewbauer>
there should be a nixpkgs-unstable channel update in about 10 minutes!
ericsagn1 has quit [Ping timeout: 256 seconds]
sigmundv__ has joined #nixos
pie_ has joined #nixos
MP2E has joined #nixos
<MP2E>
hi! I'm trying to rebuild off of nixpkgs master and it seems that as of commit 4c25fbe338212f498a34d2a9b4c2072ac96c0e31 i'm receiving this error message:
<MP2E>
"Error getting name to temp file from template /boot/kernels/initrd-secrets.XXXXXXXX: Parent directory (/boot/kernels/) does not exist at /nix/store/rhaqrbjcx5mzd7zq2819x8bm83crwl35-install-grub.pl line 360."
<MP2E>
i'll post a bug about it, but was wondering if anyone here had a quick workaround
<jtojnar>
matthewbauer: how do you determine that?