<selfsymmetric-mu>
The actual binary that uses these rules is `textlint`.
<ryantm>
selfsymmetric-mu: It's weird to me that putting just a list of package names causes something useful to happen. Usually, you have to put some names and some derivations
kreisys has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<selfsymmetric-mu>
ryantm: Yes, this is because this is usually the input to the nodePackage JSON generation script.
<selfsymmetric-mu>
ryantm: I ran that and resolved merge conflicts for two months but someone advised me to stop. The conversation is in the PR.
work_ has quit [Quit: Connection closed for inactivity]
<selfsymmetric-mu>
zeta: I don't think that configuration can be fully lifted to declarative nix yet. You still have to use a configuration file. There are options in `home-manager` and `nixpkgs` but neither one appears to be rich enough to fully replace the config.
<ryantm>
selfsymmetric-mu: So basically this pull request is saying "please, at a later date add these npm packages as part of the normal automatic updating"
<selfsymmetric-mu>
ryantm: Not quite. The generated Nix expressions are ready to use. They don't wait for any automatic updating.
<selfsymmetric-mu>
ryantm: In my current PR somebody told me to remove the generated Nix expressions from my PR because they were going to try and do it some other way. But then they left.
<selfsymmetric-mu>
ryantm: If I generate the Nix expressions again and up them on the PR, can you help me get it merged?
<selfsymmetric-mu>
*put them up
<ryantm>
selfsymmetric-mu: This PR as is seems totally safe for me to merge, so can I just do that?
Synthetica has quit [Quit: Connection closed for inactivity]
<selfsymmetric-mu>
ryantm: It's safe but it doesn't do anything without the nix expressions, or some other way to generate them. Right?
<selfsymmetric-mu>
I'll generate some expressions and put them up. Moment.
<ryantm>
No wait... I think veprbl was on to something.
drakonis1 has joined #nixos
<ryantm>
If we required all the nodePackages contributions to stop generating this file, we could periodically generate the file in one go and avoid all the merge conflicts.
<selfsymmetric-mu>
ryantm: Yeah, I liked where he was going with that. I don't think anything happened though.
<{^_^}>
[nixpkgs] @ryantm pushed commit from @matthew-piziak to master « nodePackages_10_x: add textlint-plugins to list of generated packages (#54443) »: https://git.io/fjCCq
<ryantm>
selfsymmetric-mu: now at the worse case, your derivations will get in the next time someone gets a PR in generated after this merge
<selfsymmetric-mu>
ryantm: Thank you so so much. It's a big relief. :)
<selfsymmetric-mu>
ryantm++
<{^_^}>
ryantm's karma got increased to 4
<jackdk>
selfsymmetric-mu++
<{^_^}>
selfsymmetric-mu's karma got increased to 1
<jackdk>
ryantm++
<{^_^}>
ryantm's karma got increased to 5
<ryantm>
selfsymmetric-mu: Would you be interested in finding other merge conflicted PRs and suggesting the same strategy to their contributors?
esmerelda has quit [Ping timeout: 246 seconds]
<ryantm>
selfsymmetric-mu: Maybe we could get those in and do some kind of weekly or biweekly regeneration
<selfsymmetric-mu>
I am regenerating the nix expressions locally on my machine now. It might take a while for me to download the registries since apparently today Spectrum thinks it acceptable to give me 5% of the bandwidth I pay for. I'll put that up as a separate PR.
<selfsymmetric-mu>
ryantm: Yes, that sounds good. I'll do a sweep of the outstanding PRs.
<{^_^}>
#60395 (by malob, 1 week ago, open): nodePackages: update and add bash-language-server, typescript-language-server, and speed-test
<selfsymmetric-mu>
The remaining PRs referencing `nodePackages` all appear to have some kind of actual work happening.
goibhniu has quit [Ping timeout: 244 seconds]
<ryantm>
selfsymmetric-mu: Okay. Maybe come up with some GitHub snippet that you can send off to them to explain what we are trying.
acarrico has quit [Ping timeout: 244 seconds]
<selfsymmetric-mu>
ryantm: Can you confirm: what I'm advising them is to remove all generated expressions, only have the JSON committed, and that at some later point these will be generated in bulk.
freeman42x has quit [Ping timeout: 248 seconds]
<ryantm>
selfsymmetric-mu: Yeah, like later this week you can make a generated one and we can try to get that in.
<ryantm>
selfsymmetric-mu: It's going to be kind of hard to detect which packages to test build succesfully. Maybe we can look at the history of the nodePackage files?
<selfsymmetric-mu>
ryantm: Well, if tests fail them we'll know which lines to revert, right?
zeta has quit [Quit: WeeChat 2.4]
<ryantm>
selfsymmetric-mu: Seems good to me. I am mainly pushing this through because I'm concerned that you seem excited to help and this gridlock is demoralizing you.
<selfsymmetric-mu>
ryantm: You've read the situation perfectly. :)
<ryantm>
selfsymmetric-mu: If we make some blunders, we can say "we are on unstable" and if anyone complains we can say, well we needed your help when this poor guy couldn't get his PR merged for 3 months.
<selfsymmetric-mu>
Hahahaha
<selfsymmetric-mu>
Sounds great to me.
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjCC8
aanderse-znc has left #nixos [#nixos]
esmerelda has joined #nixos
buffet_ has joined #nixos
alexherbo20070 has joined #nixos
<jackdk>
speaking of things that need to happen, when can we get an all-cabal-hashes update? reflex-0.5-x is broken in nixpkgs, and 0.6 isn't in the all-cabal-hashes I have access to
buffet has quit [Ping timeout: 258 seconds]
alexherbo2007 has quit [Ping timeout: 252 seconds]
<selfsymmetric-mu>
ryantm: Alright. I'm going to wait a day or two to let people get their PRs ready, and then I'll put up a PR with generated Nix expressions. Thanks again for your help! I'm going to go AFK for a bit now.
ris has quit [Ping timeout: 255 seconds]
<matthewbauer>
jackdk: .6 should be in unstable at least
judson has quit [Ping timeout: 258 seconds]
aanderse-znc has joined #nixos
Rusty1 has joined #nixos
<jackdk>
matthewbauer: the following command fails to build, am I doing something wrong? nix build -f channel:nixpkgs-unstable '((import <nixpkgs> {}).haskellPackages.override { overrides = self: super: { reflex = super.callHackage "reflex" "0.6.1" {}; }; }).ghcWithPackages(p: [p.reflex])'
<nixuser>
hmm, updated my channels to 172534, same issue
acarrico has joined #nixos
<jackdk>
matthewbauer: you passed the {} to fetchTarball and not the result of the import, but it seems to now be cooking. What changed, and what's stopping this from hitting the channels I'm subscribed to (nixos 19.03)/(nixpkgs unstable)
silver has quit [Read error: Connection reset by peer]
<jackdk>
oer, reflex build failed because of inderect deps on two different haskell-src-exts versions
dbmikus_ has quit [Ping timeout: 246 seconds]
andreas303 has quit [Remote host closed the connection]
<jasongrossman>
nixuser: I suggest you post your configuration.nix on a pastebin site, and send us the link to that and also tell us what your hardware is.
andreas303 has joined #nixos
<{^_^}>
[nixpkgs] @Zer0- opened pull request #61219 → Help fix quodlibet! (Doesn't find icons) → https://git.io/fjCCK
<iqubic>
is cp not the right tool for this simple task of mine?
ym555_ has quit [Ping timeout: 246 seconds]
<jackdk>
you can rsync between two local dirs
<iqubic>
But I only want to perform this operation once.
<iqubic>
I want to do `cp -r src dest` but, if src and dest have any files that share a name, I want the version from src to be put into dest, and the old version from dest to be deleted.
<iqubic>
So I want to overwrite it.
simon_weber has quit [Quit: Connection closed for inactivity]
ddellacosta has joined #nixos
Supersonic has quit [Ping timeout: 258 seconds]
orivej has quit [Ping timeout: 246 seconds]
<simpson>
Isn't that the behavior you're already observing?
esmerelda has quit [Ping timeout: 258 seconds]
<ivan>
cp -r src dest will create a dest/src
<ivan>
maybe you were looking for cp -Tr
esmerelda has joined #nixos
<ivan>
<ivan> cp -r src dest will create a dest/src <- if dest already exists, I mean
Supersonic has joined #nixos
<iqubic>
src and dest both already exist.
<iqubic>
And have many files with the same name.
<iqubic>
I want to move all the files in src into dest, and when I run into two files with the same name, I want to use the file from src.
<iqubic>
*use == keep
<simpson>
I'm gonna go get dinner. Best of luck.
<drakonis1>
so, i found a mistake on the install guide
<drakonis1>
when doing a lustrate, it suggests invoking mv on the boot folder
<drakonis1>
on a efi partition this would move the mount and cause to grub to fail
drakonis1 has quit [Quit: WeeChat 2.4]
<Ralith>
PR time?
<Ralith>
oh he's gone
drakonis_ has joined #nixos
<iqubic>
What does the -T flag do for `cp`?
ym555 has quit [Ping timeout: 248 seconds]
<clever>
iqubic: `man cp`
<iqubic>
I'm looking at that now.
<iqubic>
I don't understand it.
<iqubic>
"treat DEST as a normal file"
<iqubic>
What does that mean?
<clever>
iqubic: if you `cp foo bar` and `bar` already exists as a directory, it wont copy to `bar/foo`
<ivan>
use info cp
<ivan>
‘-T’
<ivan>
‘--no-target-directory’
<ivan>
symbolic link to a directory. *Note Target directory::.
<ivan>
Do not treat the last operand specially when it is a directory or a
<iqubic>
So why would you want that?
<clever>
to make it fail rather then copy to the wrong place
<iqubic>
Why would that make it fail?
<clever>
it will treat `bar` as a file, but its a directory
<ivan>
cp -Tr src dest is sort of like cp -r src/* dest but including the dotfiles too
<iqubic>
I don't see the distinction.
<iqubic>
Will `cp -rf foo bar` overwrite the files?
<ivan>
cp overwrites files
<ivan>
why not just test all this behavior in a trash folder
<iqubic>
So why would you have to use the -f flag ever?
<ivan>
info cp, /-f, / Enter / Enter / Enter
josiah_sama has joined #nixos
Ralith_ has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
xkapastel has quit [Quit: Connection closed for inactivity]
MinceR_ has joined #nixos
MinceR has quit [Ping timeout: 246 seconds]
marusich has joined #nixos
<{^_^}>
[nixpkgs] @ryantm merged pull request #60395 → nodePackages: update and add bash-language-server, typescript-language-server, and speed-test → https://git.io/fjGzI
<teto>
I am on nixos-unstable, which breaks because of ssubversion with the error in "first broken build" https://hydra.nixos.org/build/93456836 . I would like to see in hydra the first build where it got repaired since it now builds on hydra (but hydra shows the "last successful build")
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
palo1 has joined #nixos
palo has quit [Ping timeout: 258 seconds]
palo1 is now known as palo
mog has quit [Quit: im quiting!]
mog has joined #nixos
thomashoneyman has joined #nixos
Plotinus has joined #nixos
<InFlames>
I'm having trouble with steam, when I launch it via kde's launcher, it just closes, from the command line it says'internal error: /steamrt/setup.sh is missing, this runtime is invalid or corrupted'
<InFlames>
sphalerite: I am realizing I don't know how to properly update my steam, I tried sudo nix-channel --update; sudo nixos-rebuild switch, but that didn't seem to fix my issue, so I'm guessing I'm reinstalling the same cached version? I also seem to have this issue with vscode.
<BuGless>
That package is derived from a configuration.nix that includes a reference to: imports = [ <nixpkgs/nixos/modules/virtualisation/google-compute-image.nix> ];
<BuGless>
How do I find out where it includes a dependency on e.g. gnutar-1.32 ?
<nyanloutre[m]>
thefloweringash: hello, I just read your PR about usb_modeswitch. What do you mean by "Fix kernel module probing" ?
InFlames has joined #nixos
<thefloweringash>
nyanloutre: there's a section in the dispatcher that checks for potential kernel features by looking at /lib/modules/$(uname -r). this won't work as is, but I don't have a plan for how to fix it yet
<nyanloutre[m]>
<thefloweringash "nyanloutre: there's a section in"> ok thanks
__monty__ has joined #nixos
orivej has joined #nixos
<nyanloutre[m]>
and it should only be useful for some usb modems
<Ashy>
teto: thanks!
<Taneb>
I've got a derivation that takes far too long to nix-instantiate, due to import-from-derivation. Is there a good way to investigate what derivations are imported from
mmercier has quit [Quit: mmercier]
mmercier has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
domogled has quit [Ping timeout: 246 seconds]
mmercier has quit [Client Quit]
<{^_^}>
[nixpkgs] @ggreif opened pull request #61232 → clang: typo in comment → https://git.io/fjC0m
<sphalerite>
InFlames: did you install them with nix-env?
<sphalerite>
InFlames: you can use nix-env -q to find out
<sphalerite>
InFlames: and nix-env -iA nixos.steam nixos.vscode to update them
<sphalerite>
nix-env sucks in a couple of ways though, the biggest one being the search-by-default behaviour, which is also used for upgrades and doesn't work that well
<{^_^}>
nix-env has multiple drawbacks as an imperative package manager. nix-env -u will sometimes upgrade to the wrong thing; the outputs to install are very finicky to override; and packages that have been removed or are otherwise unavailable will remain in your profile without any warnings. Consider using a ,declarative setup instead.
pie__ has joined #nixos
mmercier has joined #nixos
<Synthetica>
Does anyone know a way to "trick" qemu-arm into reporting the correct (emulated) value for `uname -m`?
<mkoenig>
i'm trying to install nix on cygwin. built it from source successfully. but "NIX_PATH=nixpkgs=channel:nixos-19.03 nix-shell -p hello" returns "error: infinite recursion encountered, at undefined position". any idea why that happens?
kini has joined #nixos
lovesegfault has quit [Ping timeout: 258 seconds]
knupfer has quit [Ping timeout: 246 seconds]
kini has quit [Client Quit]
samuel02 has joined #nixos
chaoflow has joined #nixos
sb0 has quit [Quit: Leaving]
<samuel02>
hi! I'm new to nixos and I'm trying to get it running under Hyper-V on a Windows host. I've gotten it running successfully but now I'd like to get it working in enhanced mode (see e.g. https://bugzilla.redhat.com/show_bug.cgi?id=1553453) and need xrdp to be installed and configured correctly. I have two questions: 1. How do I make sure xrdp is built with the --enable-vsock flag? 2. How do I modify the config files (xrdp.ini and
<chaoflow>
Hey, it has been a while ad my nix got a bit rusty. I'd like to have an emacs package installed which is able to find a full compiler toolchain properly setup and pytjon with a couple of packages. I'd like to avoid recompiling emacs, but think there must be a way to wrap emacs but fail to find the right search terms. Any pointers appreciated!
mexisme has joined #nixos
brandonhamilton has joined #nixos
lovesegfault has joined #nixos
rtjure has joined #nixos
<sphalerite>
chaoflow: I'm not sure what exactly is the most appropriate solution for you, but you could run emacs in a nix-shell
<sphalerite>
lorri may also be helpful https://github.com/target/lorri and I've been meaning to try it, but haven't got around to it yet
kini has joined #nixos
alexherbo200701 has joined #nixos
<chaoflow>
sphalerite: thx! nix-shell I know and use for development on projects. So far I'm looking for a construct I can use in configuration.nix for services.emacs.package = ...
alexherbo20070 has quit [Ping timeout: 255 seconds]
<yurb>
Hi everyove. I'm trying to build a C++ package that has no ./configure, just a plain Makefile. I'm new to nix packaging and I'm not sure how to go about it. For instance, how to add include paths to the compiler flags?
sigmundv has joined #nixos
infinee has quit [Ping timeout: 248 seconds]
ubert has joined #nixos
<Shados>
yurb: You generally shouldn't need to; if you add the dependencies to buildInputs in the derivation, the default builder should take care of adding the appropriate include paths.
<Shados>
yurb: There are more details on the underlying mechanism in the manual here, the bintools and cc wrapper bits https://nixos.org/nixpkgs/manual/#ssec-setup-hooks -- I'd recommend reading through all of section 3 to familiarize yourself, it's not too long
ym555 has joined #nixos
gm_ has joined #nixos
<yurb>
Shados: thanks. So the CC wrapper should make gcc automatically search the include paths.
<yurb>
...of dependencies
<Shados>
Of dependencies that you have specified to the derivation using buildInputs (or nativeBuildInputs), yep :)
<yurb>
Shados: and that means I don't have to modify the Makefile? gcc will "magically" know the include paths without modifying its command line?
<yurb>
(without me having to modify its command line)?
<Shados>
Less "magically" and more "by quite a bit of gory bash scripting inside the standard nixpkgs builder script", but generally yes. There are always cases where things don't quite work out and you need to do things more manually, but it's fairly rare that you'd have to resort to directly replacing the build command
<yurb>
Shados: thanks. If I need to test that in nix-shell, I would run buildPhase? And if it doesn't find some includes that I have in buildInputs, how can I inspect the include paths that it injects?
kini has quit [Quit: No Ping reply in 180 seconds.]
<Shados>
yurb: if you want to run the whole build process within a nix-shell of a package, I think `genericBuild` should go through all the phases appropriately. But you might want to just nix-build it instead. As part the manual, the wrapper adds discovered includes to NIX_CFLAGS_COMPILE, so just check that environment variable within the nix-shell.
<Shados>
*as per the manual
slowz has joined #nixos
slowz has joined #nixos
slowz has quit [Changing host]
<yurb>
Shados: I checked that, but it seems to be unset in nix-shell
<Shados>
If you want to inspect the variables in a failed build, pass the `--keep-failed` option to ensure the temporary build directory isn't deleted, then look at the env-vars file under there
<Shados>
yurb: It shouldn't be, how did you launch nix-shell? And have you added any dependencies to the derivation?
<Shados>
(Did you re-launch nix-shell after adding said dependencies?)
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
Tritlo has quit [Ping timeout: 252 seconds]
<yurb>
Shados: I've had the dependecy there from the start, but I suspect it might not have the specific header file that the package expects
Tritlo has joined #nixos
<chaoflow>
sphalerite: Using ~/bin/emacs and ~/bin/emacsclient with nix-shell shebang and starting emacs --daemon in .xsession does now what I want. Thanks a lot for the pointer! If anybody has advice on how to wrap the emacs package to use it in configuration.nix as service.emacs.package with additional things available (stdenvGcc, python, ...) that would still be great.
<Shados>
yurb: poke about in the /nix/store/lw86z1w636vfkhihp8741hi0l3a9jsx2-libjack2-1.9.12 dep and make sure it actually has an include directory in the standard location
spacekookie has quit [Quit: No Ping reply in 60 seconds.]
<yurb>
Shados: it does - include/jack/jack.h
spacekookie has joined #nixos
<yurb>
Maybe it's because I've excluded configurePhase from phases, since it doesn't have a ./configure?
jtcs has quit [Ping timeout: 276 seconds]
zupo has joined #nixos
jtcs has joined #nixos
kini has quit [Client Quit]
InFlames has quit [Ping timeout: 258 seconds]
Tritlo has quit [Ping timeout: 248 seconds]
<manveru>
ryantm: you around?
Tritlo has joined #nixos
rtjure has quit [Ping timeout: 245 seconds]
linarcx has joined #nixos
kini has joined #nixos
<Shados>
yurb: You shouldn't need to exclude configurePhase; it won't fail due to the absence of a configure file. That said, I don't think that should hurt anything. The cc wrapper's setup hook should be able to find the include dir. Wha was the output from `env` in the nix-shell?
kini has quit [Quit: No Ping reply in 180 seconds.]
mexisme has quit [Ping timeout: 248 seconds]
<Izorkin>
zfs 0.8.0-rc5 - planned to be added ?
<gchristensen>
Izorkin: maybe you can send the patch? :)
<Izorkin>
I do not understand the code
<gchristensen>
ah
<gchristensen>
someone will surely add it soon :)
kini has joined #nixos
mickours has quit [Quit: mickours]
<Taneb>
Is there a way to query which derivations are imported from to instantiate an expression? I'm trying to understand where some extreme slowdown caused by import-from-derivation in my office's codebase is coming from
Glider_IRC_ has quit [Ping timeout: 248 seconds]
zupo_ has joined #nixos
<Synthetica>
Can I set the interpreter for a file with wrapProgram?
kini has quit [Quit: No Ping reply in 180 seconds.]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<asymmetric>
can someone explain what the difference is between ofborg and hydra?
<Izorkin>
How to need to merge this PR #59949 #58012 #51902 ?
<Myrl-saki>
TIL, `pass`, the standard password manager is in Bash. wtf?
<Myrl-saki>
s/ in / written in /
Izorkin has joined #nixos
<ar>
Myrl-saki: there are other implementations that are written in different languages
<Myrl-saki>
ar: Ah.
<ar>
Myrl-saki: eg. gopass in go (which also includes a few useful features)
<Myrl-saki>
IMO, it's actually pretty damn amazing as a Bash programm. I never realized that it was in Bash until I had to figure out what's causing very slow X11 communication.
Makaveli7 has quit [Quit: WeeChat 2.4]
hellrazor has quit [Quit: WeeChat 2.4]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<Myrl-saki>
Okay. Slight yikes. I don't think `pass` is supposed to be run with -e.
<nixy7>
I definitely wouldn't consider software without a license as free. Technically nobody has writes to distribute or use it with no license
zupo has joined #nixos
<gchristensen>
nixy7 is correct, unlicensed software defaults to proprietary, and no rights given
zupo has quit [Client Quit]
<genesis>
oki, i'd think the opposite, if people don't care, it's a wtfpl
<genesis>
in the idea ...
<gchristensen>
(GitHub used to have a "bug" in that a public repo which has no license means you have no license to even read the code, but they fixed that with an update to the terms of service)
<genesis>
if you like your software, put a licence on it.
<{^_^}>
[nixpkgs] @nixbitcoin opened pull request #61238 → [19.03] rednose: disable test suite → https://git.io/fjCaK
wfranzini has quit [Remote host closed the connection]
<gchristensen>
tragically it just doesn't work that way :P
drakonis1 has joined #nixos
m0rphism has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<pmiddend>
I'm having trouble updating my Python package to a newer nixos-unstable version. I have a shell.nix file which contains a "buildPythonPackage" derivation.
<pmiddend>
I have the tools I need, for example pylint, in my propagatedBuildInputs.
<pmiddend>
However, pylint is not in my PATH apparently.
<pmiddend>
Which is weird, because the nixpkgs manual states that's exactly how to do it.
<xorAxAx>
how do i compute the sha256 of a string in nix?
<samueldr>
Taneb: doing the same on the whole attrset fails assertions, but yeah, pkgs is the whole set; though I'm not 100% positive where it happens to be set
<samueldr>
> pkgs.hello == pkgs.pkgs.pkgs.hello
<{^_^}>
true
<gchristensen>
nice
<Taneb>
xorAxAx: builtins.hashString "sha256" "my string"
<Synthetica>
Would be really nice if it develops into the gofmt of nix
<zimbatm>
yorick: the important part is to agree on the output format
<zimbatm>
having multiple parsers is not a bad thing
<zimbatm>
maybe one day we'll even have multiple implementations of nix
ottidmes has joined #nixos
mexisme has quit [Ping timeout: 268 seconds]
drakonis1 has quit [Quit: WeeChat 2.4]
<kuznero[m]>
Hi All! When submitting a new package that depends on a number of new dependent packages (pythong-modules, node-modules) is it better to send separate PRs for individual packages or is it ok to bundle it into one?
<{^_^}>
nix-community/nix-fmt#1 (by yorickvP, 11 seconds ago, open): current state of the nix-format (serokell) formatter
<ottidmes>
kuznero[m]: bundled in one PR should be fine, but I have been asked to make sure the packages were put into seperate commits when I did so, so keep that in mind
<zimbatm>
kuznero: all in one is actually better
<kuznero[m]>
Nice! I was hoping for that!
JosW has joined #nixos
<zimbatm>
yorick: thanks. It looks like you went for the easy and compact route.
JosW has quit [Client Quit]
<zimbatm>
I think the rule should be that a formatter can expand a single line to multiple, but not the reverse
<yorick>
zimbatm: it throws away all formatting, by design
<zimbatm>
some times it's nice to lay things out on multiple lines
<yorick>
it will split into multiple lines where it deems it appropriate
<yorick>
(which is not the case with [ 1 2 3 ] ;))
<zimbatm>
yeah that's the most straightforward approach
<yorick>
heh, it's not straightforward in the least :P
<zimbatm>
I'm not saying it's easy :)
<yorick>
it's been tempting to use user-supplied formatting but that destroys the One True Formatting for all code :P
<zimbatm>
I don't know
<zimbatm>
gofmt is quite successful and it seems to be working with rewriting rules
drakonis_ has joined #nixos
<zimbatm>
for example structs can be instantiated inline or on multiple lines
<{^_^}>
[nixpkgs] @basvandijk pushed 2 commits to release-19.03: https://git.io/fjCKs
<immae>
Hello there, is there an equivalent of "passthru" for modules (more precisely config)? I want to write a module that depends on some options, and I want to expose some computed values in return for use in other places
<yorick>
immae: you can make your own options and set them with config = { } in your modules
<yorick>
(or with default in the mkOption)
MichaelRaskin has joined #nixos
linarcx has joined #nixos
<kuznero[m]>
I am trying to create package for pgAdmin4 and already done with qt/cpp and python parts. Now node packages (yarn.lock). What should I do? Look into existing node-modules and see if I need to extend it? Any tips? I'm completely new to nodejs.
<immae>
yorick: yes, but I want to distinguish them from the configuration itself: it’s for "exposing" some values to the external, not internal (like passthru in derivations)
<ambro718>
that it follows directory symlinks makes sense, but it probably should only follow links into store paths, not others, like links to /run/ like NixOS makes in many cases.
<ambro718>
it just happens to "work" with links to /run/ because those don't have conflicts in practice
srid9 has joined #nixos
<ambro718>
I guess weird things could happen with such links, resulting in different effects if not running in chroot.
<shazow>
zeta: you might need to use services.udev.extraRules
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #61247 → virtualbox: Fetch patches from the bug tracker. → https://git.io/fjC6g
kisonecat has quit [Ping timeout: 255 seconds]
<marek>
what is the difference between morph push and deploy?
<kuznero[m]>
`node2nix` complains about escape characters when I run it like this: `node2nix --nodejs-10 package.json`. Is there any way to work it around somehow?
<zeta>
anyone here that understands udev really well?
lovesegfault has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Ping timeout: 255 seconds]
lovesegfault has joined #nixos
Guest92 has joined #nixos
<Guest92>
Hi all, I'm still trying to figure out how to execute a script on login using PAM services. Does anyone know if nixos uses a common-session service?
Anton-Latukha has joined #nixos
<Guest92>
Or how to add custom lines to services like "login"? I can't find where these default pam modules are defined for overriding
<{^_^}>
[nix] @LnL7 opened pull request #2797 → nix-shell: unset IN_NIX_SHELL for nested nix commands → https://git.io/fjCiY
<AlexRice[m]>
genesis: some programs come with the rule
noam__ has joined #nixos
<AlexRice[m]>
zeta: tbh I'm not really sure how it works
<blackriversoftwa>
hello. I'm trying to make an overlay for a package set that would override `stdenv` with `llvmPackages_6.stdenv`so that everything is built with llvm
<blackriversoftwa>
However I keep running into an infinite recursion error
MmeQuignon has joined #nixos
bgamari has quit [Ping timeout: 248 seconds]
bgamari has joined #nixos
noam_ has quit [Ping timeout: 268 seconds]
<zeta>
genesis: if i can't figure out how to do it for xmonad i'll use light instead, i have most of my function keys setup in xmonad.hs, i already have xmonad-brightness setup, all i need is to figure out how to setup the permissions
pie__ has quit [Ping timeout: 268 seconds]
<zeta>
if i understand correctly, i need to put my user and root as members of video group, then give permissions to the group to write the file?
<AlexRice[m]>
zeta: I think so
<AlexRice[m]>
zeta: probably only user is needed
fendor has joined #nixos
<zeta>
i wish i could ask the people in #xmonad for help but my messages get blocked
<lordcirth_>
zeta, blocked? perhaps you need to register?
<zeta>
i looked at the light.nix package and there is no udev rules in there, how can i access where it sets the udev rules so i can use it as a reference?
ambro718 has quit [Quit: Konversation terminated!]
toppler` has quit [Ping timeout: 246 seconds]
<buckley310>
how does nixos-unstable compare to something like Arch in terms of reliability as a desktop?
<gchristensen>
NixOS lets you completely undo changes if you don't like them, so that seems like something
ericsagnes has joined #nixos
toppler` has joined #nixos
<buckley310>
that is very true... I had updates bork my desktop a couple times during my time with arch
ixxie has joined #nixos
<buckley310>
I'm thinking about switching to unstable for gnome 3.32 and the new nvidia driver, and then switching to release-19.10 branch when that comes out
<gchristensen>
(19.09)
<samrose>
let's say I have a repo that contains a default.nix file. is there a supported way to fetchgit in another nix expression and evaluate and build that default.nix from that repo?
<etu>
buckley310: A NixOS system will *never* be half-upgraded as well. Either you get a new generation or you don't. So if for say the linking of the nvidia driver fails on arch, you may end up with a broken state.
<linarcx>
Guys, i update my nixos, but after some times(1 or 2 minutes) my connection to network automatically disconnected. and i must restart it with: `nmcli networking off` and on again. why?
<linarcx>
also when i enter: `nmclie`, i get an warning: `p2p-dev-wlp3s0: disconnected`
<makefu>
linarcx: can you check dmesg? for me the upgrade to 19.03 resulted in broken wifi drivers (stack-trace after suspend with the need to reset the card)
<zeta>
i just want to make sure that i am doing this correct?
<buckley310>
how much compiling do you need to do if you track unstable? does the CDN still cache the common stuff like python, the kernel, firefox, etc?
<ar1a>
0
<ar1a>
all binary cached before the channel updates
<buckley310>
cool, thx
<tilpner>
Though you will have to rebuild your own packages more often because unstable is more volatile
<tilpner>
ar1a: Sure. But having to recompile your own things because some deep dependency changes might be relevant if they're asking about how much they'll have to compile
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #61249 → nvidia-x11: Add patches for kernel 5.1. → https://git.io/fjCP6
zeta has quit [Quit: WeeChat 2.4]
civodul has joined #nixos
v0|d has joined #nixos
<buckley310>
yeah i can live with compiling the small set of personal stuff, but compiling the kernel on my laptop is not something i want to bake into my workflow again xD
<nschoe>
Hi everyone, is there a way to tweak the .bashrc of the bash when we enter a shell with nix-shell?
<makefu>
linarcx:dmesg looks fine to me, the only hint to wifi is "[ 3764.823434] wlp3s0: deauthenticating from 4c:9e:ff:9f:83:38 by local choice (Reason: 3=DEAUTH_LEAVING)" which is normally fine
<linarcx>
makefu: hmm... its fine right now.. i don't know why soemtimes this issue arise. so, anyway.. thank you.
<nschoe>
For instance, I'm always searching through my ENV variables for the packages inside my buildInputs, but `grep` returns the entire lines of course, so I have to manually add --color=auto, but I'd like that automatically when I enter a nix-shell.
<{^_^}>
[nixpkgs] @veprbl closed pull request #61247 → virtualbox: Fetch patches from the bug tracker. → https://git.io/fjC6g
Plotinus_ has joined #nixos
waleee has quit [Quit: WeeChat 2.4]
adfaure has joined #nixos
Plotinus has quit [Ping timeout: 245 seconds]
<adfaure>
Hello, I wonder if it exists a way to de-nixify a package. In a way, that I could bundle a dep (or a set of dep) and run it on a debian for example.
zeta has joined #nixos
eraserhd has quit [Ping timeout: 246 seconds]
<buckley310>
adfaure: have you considered installing nix on the destination computer?
ixxie has quit [Ping timeout: 248 seconds]
<buckley310>
because nix is completely self-contained, im not really sure what a de-nixified set of nix packages would look like
eraserhd has joined #nixos
<adfaure>
buckley310: not really as it is not a direct need, but I thin it would be usefull/interesstinh
<adfaure>
buckley310: In fact, you are righ, de-nixify is not appropriates
<adfaure>
I would rather mean, sort of nix-budling.
pie__ has joined #nixos
<adfaure>
you do, nix-export hello
<ben>
depending on use case it might be appropriate to use nix to generate a docker image and run that on the destination computer
<adfaure>
and I pull the whole three, updates the path
<zeta>
tilpner: i am not using `light` package i am using `xmonad-brightness` package. so i am not sure if that will work for me.
<tilpner>
zeta: Please try it anyway
ixxie has joined #nixos
<zeta>
xorAxAx: line 25? isn't that a description?
<zeta>
tilpner: if i can't get the brightness to work with xmonad then i'll use light.
<tilpner>
zeta: 1. You can probably use xmonad with light
<tilpner>
zeta: 2. lights udev rules should work for the project you linked too
<tilpner>
zeta: So just try it
<tilpner>
Add them, add your user to the video group, and reboot
<zeta>
before i try that i want to know what xorAxAx meant by line 25?
<kuznero[m]>
Can somebody help me please. I am trying to install node2nix from a fork. How can I do it? Releasing in the fork and chaning generated node-modules files seems a bit too much. Is there any better way?
<zeta>
tilpner: what did xorAxAx mean by that?
<tilpner>
zeta: I don't know
callahad has quit [Quit: Ping timeout (120 seconds)]
<{^_^}>
[nixpkgs] @mkgvt opened pull request #61251 → py-radix: init at version 0.10.0 → https://git.io/fjC1e
Ariakenom has joined #nixos
noam__ has joined #nixos
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa>
ryantm: Thanks for merging those `nodePackages` PRs. I'm regenerating `nodePackages` locally and should have a PR up soon with the nix changes.
camsbury has quit [Ping timeout: 248 seconds]
nervengift has joined #nixos
noam_ has quit [Ping timeout: 268 seconds]
<selfsymmetric-pa>
And this time I'm on a gigabit network so it's going to be a lot easier to download all the registries...