<nh2>
my aeson build complains: `can't load .so/.DLL for: libHSprimitive-0.6.3.0-9BHPmR1c3jBGsNX8V107zp.so (libHSprimitive-0.6.3.0-9BHPmR1c3jBGsNX8V107zp.so: cannot open shared object file: No such file or directory)`
<nh2>
this is with `pkgsMusl`
goibhniu has joined #nixos
<infinisil>
iqubic: Then you should be able to use `environment.variables.PATH` or `environment.sessionVariables.PATH`
<nh2>
dtz: I'm quite sure this happens at TH evaluation time when compiling Data.Aeson.Types.ToJSON
<infinisil>
Not sure if installing stuff via npm has some problems though
<infinisil>
I'd use nix packaged npm packages if possible
<clever>
infinisil: id expect it to break when you GC
<infinisil>
Ah yeah that might be the case iqubic ^^
<kalbasit>
clever: I'm trying to add a new test, not sure if it will make it to master but the gist is, the current `build-support/bazel` is unusable with any of the `bazelbuild/rules_*` such as `bazelbuild/rules_nodejs`. So I want to start a test that will assert bazel and file it as a PR. Is there any documentation on how to add a new test?
<infinisil>
Usually you don't need to add anything to PATH on NixOS which is why I asked
<clever>
kalbasit: that sounds more like a nixpkgs test, rather then a nixos test, so it should be in the pkgs/top-level/release.nix i think, and the derivation should just fail if the test fails
<iqubic>
I'm trying to use npm to install some executabls globally.
<iqubic>
Really I just need the p5-manager installed globally.
<clever>
iqubic: nix doesnt know about those executables, and will GC away the deps, and break them
<iqubic>
clever: I know.
<kalbasit>
clever: oh I see, let me give that a try. Thx!
<clever>
iqubic: you need to build it with nix, and then install it with nix-env
<nh2>
dtz: just found your PR at my repo, that's super awesome, thanks! I suspect you're not running into the aeson issue because you use ghc843 instead of the 821 I used
<dtz>
nh2: only here briefly, but fwiw: "hopefully" you are seeing that with ghc821Binary? If so that's expected, for "reasons"... Shouldn't happen if use ghc822 or 843 or 641; the point is the binary bootstrap is kludged (on glibc too) into being good enough to build the others but not extensively used itself. (AFAICT). LMK if that is/isn't what you're seeing, very curious either way.
<dtz>
If you need ghc821 we can easily build a proper version
<spring322[m]>
Sorry if this is stupid, but I can't find any docs about `.extend`. Anybody can tell me what it is and how does it compare to `.override` ?
wpcarro has joined #nixos
<infinisil>
spring322[m]: I can, so..
<nh2>
dtz: OK all clear I'll try with 843 then. Should I still use https://cache.allvm.org or remove that and switch to the cachix you mentioned somewhere?
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
<infinisil>
spring322[m]: callPackage usage: create file default.nix with contents `{ lib, foo }: ...`, use `callPackage ./default.nix { foo = 1; }` to pass default arguments (e.g. lib) if possible. This produces a result you can `.override` to pass different arguments
phreedom has quit [Ping timeout: 250 seconds]
<infinisil>
spring322[m]: .extend is used for adding an overlay, with self: and super:
<{^_^}>
[nixpkgs] @IvanMalison opened pull request #43505 → gitter: init at v4.1.0 → https://git.io/fNmsa
<kalbasit>
clever: I see a file at `pkgs/test/default.nix` which calls `callPackage`, but how to build this default.nix? I tried `nix-build`, `nix-build '<nixpkgs>'` no luck
<clever>
kalbasit: and once you find the attr path, nix-build nixpkgs/pkgs/top-level/release.nix -A tests.cc-wrapper.x86_64-linux
<iqubic>
So how hard is it to use node2nix to install p5-manager?
<infinisil>
spring322[m]: They are similar, but the .extend one is more powerful, because it supports the "self" argument, whereas .override only has an (optional) super argument
<kalbasit>
oh I see, let me try that
<gchristensen>
Lears: do you have your config?
<infinisil>
(I didn't do a very good job at explaining that didn't I :))
<kalbasit>
clever: I see what you mean by eval now, it worked, thx!!
<infinisil>
(And I should remember that self: super: example, very neat)
cacatoes has quit [Ping timeout: 240 seconds]
goibhniu has quit [Ping timeout: 260 seconds]
realrokka has quit [Quit: rip]
realrokka has joined #nixos
alex``` has quit [Ping timeout: 240 seconds]
sk8forether has quit [Quit: Connection closed for inactivity]
<Lears>
gchristensen: This is all I have in my config related to chrome or the firewall: http://nixpaste.lbr.uno/ar3taRr7?nix ... but I honestly can't remember if those allowed ports are something I figured out for the cast or if they're unrelated, and I think I installed the chromium casting extension impurely because I couldn't find an ID for it.
orivej has quit [Ping timeout: 244 seconds]
<gchristensen>
weird :? thanks Lears
orivej has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
sir_guy_carleton has joined #nixos
<spring322[m]>
@infinisil thank you very much!
sir_guy_carleton has quit [Ping timeout: 252 seconds]
sir_guy_carleton has joined #nixos
<iqubic>
So I'm having trouble figuring out how to use node2nix to install an npm executable on nix.
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
<iqubic>
Can I get some help installing p5-manager?
<iqubic>
normally I
<iqubic>
normally I'd do "npm install -g p5-manager" but that doesn't seem to work with Nix.
<{^_^}>
#43506 (by nh2, open): dontStrip has no effect on Haskell packages
shabius has joined #nixos
shabius has quit [Max SendQ exceeded]
shabius has joined #nixos
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
stepcut has quit [Read error: Connection reset by peer]
<iqubic>
Alright... why isn't node2nix in nixpkgs?
rsa has joined #nixos
<iqubic>
So it does exist, but it is under nodePackages.node2nix
<{^_^}>
[nixpkgs] @kalbasit opened pull request #43507 → bazel: test a real-world workspace that uses rules_go and rules_nodejs → https://git.io/fNmZi
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
alexteves has quit [Remote host closed the connection]
<iqubic>
Why the heck is the list of nodePackages found through this: nix-env -qaPA 'nixos.nodePackages' not a complete list of all the node packages that exist?
<iqubic>
Like all of hackage is availble via haskellPackages.foo
<manveru>
then you can do `nix-env -iA ./result` or run `./result/bin/p5` directly
<manveru>
i cheated and used yarn2nix instead ;P
<lostman>
@samueldr but I'd like to set an environment variable in `mkDerivation` that uses the build directory. There `$PWD` doesn't make sense, right?
<iqubic>
but I want to have the executable on my path so that I can just directly use p5 on the command line.
<lostman>
@manveru I mean `/tmp/nix-build-derivation-name.drv-XYZ/source`
<manveru>
ah
<samueldr>
manveru: isn't that only for sandboxed builds on linux?
<lostman>
I'm trying to setup ccache and I need to give it CCACHE_BASEDIR or otherwise it won't cache anything between builds
<manveru>
samueldr: possibly, yeah
<samueldr>
lostman: in prePatch export it maybe?
<manveru>
lostman: so you disabled sandboxing?
<samueldr>
prePatch=''FOO="$PWD/some/path";''
<lostman>
it's not full nixos but nix on ubuntu I'm working on
<lostman>
@samueldr but then if I drop to `nix-shell` it won't work, right?
<samueldr>
if you run the patchphase it will, I think
<samueldr>
(I'm not good with continuing builds using nix-shell)
<lostman>
I'll try it out!
<manveru>
oh damn, it's like 4am...
<iqubic>
How long should nix build take?
<manveru>
took maybe a minute here
<manveru>
i'd make you a proper derivation, but i really need some sleep
<iqubic>
So the nix-env isn't working.
<iqubic>
error: empty attribute name in selection path './result'
<gchristensen>
go to bed, manveru! its time for the weekend to start!
<manveru>
iqubic: sorry, it was `nix-env -i ./result`
<manveru>
there's no attribute name indeed
<manveru>
lemme know how it goes, cu :)
<iqubic>
Nice. I did it.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<iqubic>
What should I do when updates to p5-manager come out?
markus1189 has quit [Ping timeout: 264 seconds]
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erickomoto has joined #nixos
erickomoto has quit [Client Quit]
Leira has joined #nixos
<Leira>
guys, is there a way to add a comment on each nixos-rebuild, just like git?
<Lisanna>
wat... I have a build sitting in my hydra binary cache, but when I try to nix-build it it starts fetching build dependencies for it (from the same binary cache!) rather than the actual finished build. Never seen this before.
<Lisanna>
I verified that the .narinfo file for the thing I want exists and is accessible
<Lisanna>
on the binary cache
<rotaerk>
hmm, why isn't this override of nixpkgs's binutils package not working? https://ptpb.pw/kjFe
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rotaerk>
when I import this file and, in nix repl, I type myexpr.pkgs.binutils, it gives me the 2.30 version's derivation
<rotaerk>
as though the override didn't happen
<rotaerk>
why is *
hamishmack has joined #nixos
wpcarro has joined #nixos
<tenten8401>
Is there an acceptable way to modify the display-manager service so that I can get a smooth plymouth -> sddm transition?
<tenten8401>
I think I just need to add to the After= and Wants= section
<Lisanna>
ugh I wish nix explained *why* it makes its decisions
<gchristensen>
what service do you want to modify, tenten8401?
<Lisanna>
notice how the arguments to stdenv.mkDerivation don't include "src"
wpcarro has quit [Ping timeout: 260 seconds]
<rotaerk>
hrm
<tll>
Hiya all! I've seen a little bit of development on declarative userland configurations and have heard little about home-manager and NixUp. Is there any sort of consensus on which one of these to use? Is anyone here using either of them?
<Lisanna>
very strange. The path clearly exists, and all of its requisites also exist. But nix is saying that it can't find a substituter for it.
<Lisanna>
but it can find the substituter for other derivations
zopsi has quit [Quit: Oops]
<Lisanna>
*desperately tries more -v flags*
Henrycrutcher has joined #nixos
<Lisanna>
...wtf
<Lisanna>
it just magically fixed itself
<Lisanna>
wtf nix
<Henrycrutcher>
How does one do pythonwithpackages with a debug python, as might be created with enableDebugging
graphene has quit [Remote host closed the connection]
<Lisanna>
or should I be blaming hydra here
lassulus_ has joined #nixos
graphene has joined #nixos
<tenten8401>
Lisanna: it must've been scared of verbose output
zopsi has joined #nixos
<Lisanna>
this is the second time I've seen nix do something that I just utterly cannot explain or account for
<Lisanna>
just hope it doesn't happen again I guess
<Lisanna>
seems to be temporary at least, whatever it is
graphene has quit [Remote host closed the connection]
takeda has joined #nixos
mounty has quit [Ping timeout: 256 seconds]
graphene has joined #nixos
lassulus has quit [Ping timeout: 264 seconds]
lassulus_ is now known as lassulus
mounty has joined #nixos
Leira has quit [Quit: Page closed]
<takeda>
Hi, I have problem with using channels on OS X, basically I want to have nixpkgs that contains Python 3.7 but no matter what I do nix seems to use the nixpkgs that came preinstalled, am I doing somethin wrong? Here is how I added it:
graphene has quit [Read error: Connection reset by peer]
graphene has joined #nixos
hiroshi- has joined #nixos
<iqubic>
Henrycrutcher: do you understand how shell.nix works?
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi- is now known as hiroshi
<iqubic>
either way I recommend this: "python.withPackages (ps: [ ps.lib1 ps.lib2 ])"
<iqubic>
either put that in a shell.nix or, to install globally, put it into your systemPackages in configuration.nix
<iqubic>
note that the "ps." bit is needed for this to work correctly.
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
hxrts_ has joined #nixos
iyzsong has joined #nixos
pie_ has joined #nixos
<rotaerk>
shlevy, if I'm understanding this correctly, a bug was introduced when you upgraded to binutils 2.30
<rotaerk>
I'm working on testing my hypothesis
graphene has quit [Remote host closed the connection]
<Henrycrutcher>
Shell.nix? Where do I find docs on that?
graphene has joined #nixos
<rotaerk>
shlevy, particularly, there is a patch used by that derivation, called new-dtags.patch, and this no longer is doing what it was intended to do, with version 2.30
<Henrycrutcher>
Actually I did that. See so question
<rotaerk>
I'm gonna submit a PR for this if no one else is
zgrep has quit [Quit: This is me *really* leaving.]
tenten8401 has joined #nixos
<rotaerk>
as soon as I can find a commit I can branch from that isn't broken for some *other* reason >_>
zgrep has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
<tenten8401>
Anyone here know how I'd allow for a smoother transition between plymouth and sddm? I tried adding after = [ "plymouth-quit.service" ] to my display-manager.service and my system was rendered unusable, with an error message about deleting display-manager to break an ordering cycle with plymouth-quit
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
graphene has quit [Remote host closed the connection]
zopsi has quit [Quit: Oops]
graphene has joined #nixos
zopsi has joined #nixos
<tenten8401>
It seems that plymouth-deactivate.service is missing, and I'm not sure what "deactivate" does compared to "quit"
<tenten8401>
the man page isn't helpful at all
imalison_ has joined #nixos
<imalison_>
does anyone here just do away with the channel mechanism and build their system configuration from a git branch?
<imalison_>
I feel like I've been accumulating a lot of custom derivations
<imalison_>
and its annoying to have to apply them manually
<samueldr>
imalison_: while I use a git repo, I don't add custom things to the nixpkgs git checkout
<imalison_>
I'm also kind of confused about why the channel mechanism isn't something as simple as a git branch
<samueldr>
maybe I'm lucky, but everything I want to add I can do it through overlays
<imalison_>
samueldr: I CAN do everything I want with a mixture of overlays and overrideAttrs
<imalison_>
but some of those things are just changes that have been submitted to nixpkgs
<samueldr>
as for why channels aren't simply this? I don't know, but it probably has to do with how a git repo is more complex and can grow to much larger size (as with nixpkgs) thane a simple tarball
<samueldr>
and probably related to the fact that nixpkgs didn't always live in a git repo
<samueldr>
(all conjecture, I have no sources or citations)
tenten8401 has quit [Remote host closed the connection]
<sphalerite>
leotaku: changes that result in large amoutns of rebuilds get pushed to the staging branch before master so that master doesn't get blocked by them
<sphalerite>
it's only relevant to development, not to regular use of nixos/nixpkgs
<leotaku>
sphalerite: Ok, and how can you know if something added to stanging reaches unstable? Is that visible in the pull request or does one have to check the commit messages?
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @Ma27 to master « pythonPackages.scikitlearn: apply `max_iter` patch from scikitlearn master (#43483) »: https://git.io/fNmgk
Neo-- has joined #nixos
Mateon1 has quit [Ping timeout: 260 seconds]
Mateon1 has joined #nixos
Jason_Grossman has quit [Ping timeout: 260 seconds]
Neo-- has quit [Ping timeout: 256 seconds]
Jason_Grossman has joined #nixos
cacatoes has joined #nixos
sir_guy_carleton has joined #nixos
stanibanani has joined #nixos
alex``` has quit [Ping timeout: 260 seconds]
<joepie91>
iqubic: npm always observes the ~/.npmrc regardless of when it is running in a nix-shell; the only case in which this would *not* work is if you were in a shell for another user where the npm prefix is not set
alex``` has joined #nixos
<joepie91>
iqubic: that having been said; if you are `npm install`ing a thing that depends on / links against a particular nix-shell-provided thing, it may be possible for the dependency to get garbage-collected since the `npm install` happens outside of Nix' purview
<Dezgeg>
sphalerite: the nixos kernel config wanted to set e.g. CONFIG_FOO=y but it ended up not y for some reason, perhaps that a dependency of CONFIG_FOO wasn't satisfied
phreedom has quit [Ping timeout: 250 seconds]
<sphalerite>
Dezgeg: right, how can I work out what that dependency might be?
phreedom has joined #nixos
<Dezgeg>
read the Kconfig files in kernel source or with menuconfig
<sphalerite>
I tried that actually, couldn't work it out though :/
<sphalerite>
GOT: PCI support (PCI) [Y/?] y
<sphalerite>
I don't actually want PCI support, so I put `PCI n` in the kernel config thing, but it doesn't actually affect the setting
hexa- has quit [Quit: WeeChat 2.1]
<sphalerite>
I'm guessing I'd be looking for a `select PCI` in the Kconfig for that?
<Dezgeg>
on x86? I doubt you can disable that
<sphalerite>
but there's a lot of that :/
<sphalerite>
nope, ARM
<Dezgeg>
menuconfig should tell if something selects it
<sphalerite>
I want a faster kernel build for my chromebook and I figured that by disabling PCI I'd disable a huge amount of drivers I won't be using anyway and get faster builds
<sphalerite>
Well the trouble is I want to keep this within nixpkgs so I can't really use menuconfig for that. AFAIU.
<Dezgeg>
yes but you can use it for debugging
sbdchd has joined #nixos
<Dezgeg>
it will tell e.g. Selected by [y]: ARCH_ALPINE [=y] && ARCH_MULTI_V7 [=y]
sam__ has quit [Ping timeout: 244 seconds]
wpcarro has joined #nixos
phreedom has quit [Ping timeout: 250 seconds]
Copenhagen_Bram has quit [Read error: Connection reset by peer]
wpcarro has quit [Ping timeout: 248 seconds]
hexa- has joined #nixos
drakonis has joined #nixos
<worldofpeace>
Do you need 'hardware.opengl.enable = true;' like ever if you're using a DE?
xy2_ has quit [Ping timeout: 256 seconds]
<Dezgeg>
I think it's set to true by default if X11 is enabled
ambro718 has quit [Quit: Konversation terminated!]
<Myrl-saki>
Enzime: Huh, true. I'm stupid.
wpcarro has joined #nixos
alex``` has joined #nixos
<Myrl-saki>
Enzime: Why the fuck did I not do that
<Myrl-saki>
omg
<Enzime>
Myrl-saki: just do it next time
<Enzime>
:)
<sphalerite>
rstudio fails to start in a fresh installation with everyone's favourite xcb plugin error. Installing konsole in the user env makes it work. How do I fix this "properly"?
<sphalerite>
I don't think ctrl-z will actually stop the build
<sphalerite>
just the output from it
<Myrl-saki>
THat's C-s
<sphalerite>
no, because the build process isn't usually a child of the nix-build process
<Enzime>
sphalerite: the hibernate should be enough to stop the build :)
<Myrl-saki>
True.
<sphalerite>
so nix-build will stop but the actual build continues
<Myrl-saki>
Enzime: hibernate?
<sphalerite>
yes, just hibernating should do it :D
<Myrl-saki>
C-z, hibernate ,restart?
<Enzime>
well if sphalerite is right, C-z is totally unnecessary
<sphalerite>
hibernate will shut the machine down
<Myrl-saki>
Right.
<sphalerite>
you need swap for hibernating to work though
<sphalerite>
swap that isn't ephemerally encrypted for that matter
sbdchd has quit [Remote host closed the connection]
justbeingglad1 has joined #nixos
justbeingglad1 has left #nixos [#nixos]
<Myrl-saki>
Wait, I feel like I'm missing something. How do I get the machine up to play the game?
<sphalerite>
I think Enzime was assuming the build stoppage was for rebooting into windows
<manveru>
why would you play on windows? :P
<Myrl-saki>
Fair assumption. :P
<Myrl-saki>
manveru: I don'\t.
<sphalerite>
then why did you stop the build?
<sphalerite>
to free up system resources?
graphene has quit [Remote host closed the connection]
<Enzime>
sphalerite: probably lags out the game
<manveru>
can't you nice it?
<sphalerite>
You could just SIGSTOP the `make` process or whatever
<Myrl-saki>
sphalerite: Load ave was at 9.
<Myrl-saki>
On a quad core
<sphalerite>
then SIGCONT it when you're done playing
<sphalerite>
I've done that often for other reasons
<manveru>
that's neat
<Myrl-saki>
I'm uh... not smart.
graphene has joined #nixos
<sphalerite>
`pkill -STOP -G nixbld` to stop all nix build processes :p
<manveru>
my mother used to say, your legs make up for what your brain lacks :)
<sphalerite>
although typically stopping make or hwatever is nicer,because then gcc (or whatever) can finish and give up the RAM it was using
<Myrl-saki>
manveru: I have thick thighs if anything.
wpcarro has quit [Ping timeout: 244 seconds]
<Myrl-saki>
But I'm a guy
<Myrl-saki>
Soooo
<manveru>
well, legs in this case is time
<sphalerite>
I think legs is meant in the sense of physical effort in this idiom... :p
<sphalerite>
or more generally hard work
<manveru>
yeah
<manveru>
worked out for me so far ;)
<infinisil>
manveru: Heh yeah, here too, but in swiss german, smth like "Those without brain have legs"
mariatsji has quit [Remote host closed the connection]
<infinisil>
"Wer kei bei het, het füess"
<sphalerite>
Is there a convenient way to build nixos VM images for use outside nixos?
<sphalerite>
i.e. I want to build a nixos config into an image that I can just plonk into virtualbox on my mum's mac
stepcut has quit [Remote host closed the connection]
<manveru>
well, you can use the same function nixos uses to build its vbox image
<sphalerite>
ah ok so <nixpkgs/nixos/modules/installer/virtualbox-demo.nix> and build config.system.build.virtualBoxOVA?
<LnL>
nix-build '<nixpkgs/nixos>' -A vm -I nixos-config=configuration.nix
<manveru>
aye :)
<manveru>
i used that ages ago and it was pretty neat
<LnL>
and yeah the special configs like cd-image or ova add an attribute in config.system.build
sbdchd has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #43526 → z3: fix darwin build → https://git.io/fNmKz
<buckley310>
what is the best way to add "~/.local/bin" to my PATH? just drop it in .bashrc, or is there a more "correct" place to put it?
stepcut has joined #nixos
rardiol1 has left #nixos [#nixos]
<infinisil>
buckley310: That's one possibility, another one is to use the nixos option environment.variables.PATH or environment.sessionVariables.PATH, or alternatively, try to install things via Nix instead
<infinisil>
The last of which is the preferred one if possible
gspia has quit [Quit: Leaving]
<infinisil>
Or services.xserver.displayManager.sessionCommands
gspia has joined #nixos
<sphalerite>
LnL: hm, I ran the script and it's stopped after saying "mke2fs 1.44.1 (24-Mar-2018)"
<sphalerite>
as in I've just got a flashing cursor and no further output
<buckley310>
yeah, i did try installing via nix first but unfortunately there are some missing packages :(
<buckley310>
but pip to the rescue
ambro718 has joined #nixos
<{^_^}>
[nixpkgs] @volth opened pull request #43527 → processing3: fix crash under XFCE → https://git.io/fNmK1
<LnL>
sphalerite: as in the run-vm script?
manny has joined #nixos
<{^_^}>
[nixpkgs] @volth opened pull request #43528 → mucommander: fix crash under XFCE → https://git.io/fNmKS
<tenten8401>
is there a way for me to set up sddm to run on tty1 instead of 7?
<tenten8401>
would I just have to use the extraConfig block?
<sphalerite>
tenten8401: I think it just uses the first available tty. If you disable the getty service for it (systemd.services.getty@tty1.enable = false;) I think it should use tty1
<sphalerite>
not sure though.
<tenten8401>
ah alright, I'll have to try that
<sphalerite>
oh you might need to quote "getty@tty1". Not sure how nix feels about @s in identifiers.
<tenten8401>
also, is there a way I can set the tty greeting line to something like fortune run through lolcat
<tenten8401>
I know you can set it to text but I'm not sure if you can do commands
<sphalerite>
this doesn't seem to be an option offered by mingetty
andymandias has quit [Ping timeout: 276 seconds]
pluplog has quit [Read error: Connection reset by peer]
<tenten8401>
so I really couldn't do a command.. hmm.
<sphalerite>
you could use something other than mingetty if you really want it that badly
<infinisil>
tenten8401: It would be possible to override the ExecStart command of the getty services to run a command first and pass the result to the actual getty command
<sphalerite>
I bet getty will try to close and reopen it though :p
<neonfuz>
sphalerite: even if I use a different channel for root and the user?
<neonfuz>
or the same?
<infinisil>
sphalerite: Well that's what all programs use to read files, it should also work with getty
<sphalerite>
neonfuz: user vs root channels is a pain
<tenten8401>
I'll give it a shot
<neonfuz>
mostly I just came here to see what's recommended / normal
<sphalerite>
infinisil: no, some programs assume you're passing a regular file and try to do stupid stuff like getting its size
<neonfuz>
but right now I'm using nixpkgs-unstable for my user, and nixos-unstable for my os, is this okay?
<infinisil>
Ah I see, haven't seen that
<tenten8401>
is there a way to set custom getty arguments without redoing the ExecStart command?
<neonfuz>
but now when I search packages it says 2 are found every time
<sphalerite>
infinisil: I've often tried to do git diff <(sort a) <(sort b) only to be disappointed
<neonfuz>
how would I make it always use nixpkgs instead of nixos?
<sphalerite>
because it just interprets them as symlinks rather than reading from them
<sphalerite>
neonfuz: it should be safe to remove ~/.nix-defexpr/channels_root
<neonfuz>
okay
<tenten8401>
or, y'know... maybe I could have a systemd reboot service write to /etc/issue or something
<tenten8401>
idk
rcshm has joined #nixos
<neonfuz>
also, should my main package channel be named nixpkgs or nixos?
<neonfuz>
(user packages that is)
<infinisil>
tenten8401: Just <( should be simpler if it works (and it probably works)
<neonfuz>
(asking opinion / suggestions / what you guys do if nothing else)
<sphalerite>
infinisil: oh yeah and seeking doesn't work on /dev/fd/*
<sphalerite>
for obvious reasons
* infinisil
doesn't get the obvious reason
<sphalerite>
it's a stream
<sphalerite>
it's not seekable in the same way as stdin
<infinisil>
But like, you can still read byte-by-byte until you reached a certain index (by counting)
<tenten8401>
infinisil: do you know if there's a way to take advantage of the ${extraArgs} in the getty file, or would I have to redo the ExecStart line completely
<infinisil>
Only forwards though, I guess
<sphalerite>
yes but that's not seeking. ANd you can't go back
<infinisil>
tenten8401: If you want to do it from configuration.nix you'll have to redo it
<sphalerite>
i.e. you can't use the lseek syscall on them
<tenten8401>
ah alright
<infinisil>
tenten8401: But you can also use a nixpkgs checkout to modify the file directly and add an option for it
<infinisil>
Which I would do
<infinisil>
Also, if the <( thing doesn't work, you can just use a temporary file, with mktemp
<sphalerite>
what's everyone's favourite way to get a temporary http server, serving the cwd or something?
<sphalerite>
I'd like to avoid writing any annoying config files
<rotaerk>
I tested it for my project, but I'm not really sure how to regression test...
<rotaerk>
should I rebase to staging or master?
mariatsji has quit [Remote host closed the connection]
<infinisil>
rotaerk: I'd say staging
<rotaerk>
k
<sphalerite>
yep since binutils is a mass rebuild staging is the way to go
<LnL>
sphalerite: I forgot that does some special stuff 9p to use store paths from the host, the ova or iso should definitively work
<sphalerite>
as for tests, hydra will run them
<sphalerite>
LnL: the ova and iso do not lend themselves to testing quickly :(
<ambro718>
How do I save a build nixops deployment and deploy it later?
<rotaerk>
this bug has been around since february; I wonder how no one noticed until now
<infinisil>
ambro718: As long as you don't do a nix gc, the built products won't be deleted
<ambro718>
infinisil: so how do I deploy a built configuration
<infinisil>
ambro718: Just deploy like normal, nix will know that it was built already
<ambro718>
assuming I lost the nixpkgs / configuration source
<infinisil>
Oh
<ambro718>
infinisil: that's the whole point. I may not be keeping an exact source nixpkgs / config.
<ambro718>
but I can keep (e.g. via a reference) the built output, so how do I deploy it?
<infinisil>
So you just have a /nix/store/...nixops-machines file and want to deploy that?
<infinisil>
I don't think that's possible, you need the nix files
<ambro718>
yes, I want to have a way to reliably reverse to a previous deployment even if I lost the sources
ixxie has joined #nixos
<ambro718>
seems like a big oversight, since reliable rollback is a major selling point
<infinisil>
The Nix files are the most important thing, if you should back up anything it's them
<infinisil>
Keep them in git too
<LnL>
sphalerite: yeah, should be possible to make an equivalent that works on any machine with qemu but I'm not aware of something like that
<ambro718>
infinisil: this is unrealistic. It means I would need to keep accurate tags of both my config and nixpkgs repos and some correspondence between them.
<infinisil>
ambro718: Wait, maybe nixops has some rollback thing on it's own *goes checking*
<ambro718>
infinisil: it has an undocumented rollback command that takes a GENERATION
<sphalerite>
LnL: well I was hoping I could just iterate my VM using run-nixos-vm then when I've got that all done as I want build the ova
<sphalerite>
buuuuut run-nixos-vm won't boot :(
<ambro718>
no idea what do do with it. Especially since nix-collect-garbage --delete-old (that I often do) happily deletes old generations of nixops profiles.
<LnL>
sphalerite: what about vmWithBootLoader
<ambro718>
so I want to do a GC root do a build output and then tell nixops to deploy that
<infinisil>
ambro718: Well you can't restore anything when you delete everything..
<ambro718>
yeah ^^
<ambro718>
infinisil: I want to mark a specific build to be preserved.
<infinisil>
But the generation rollback command would be what you need
<ambro718>
infinisil: how if I only have a GC root?
graphene has quit [Remote host closed the connection]
<ambro718>
mess with /nix/var/nix/profiles/per-user/USER/nixops/ manually?
FRidh has quit [Quit: Konversation terminated!]
<infinisil>
You just need to add the resulting nixops build as a gc root, then it won't get deleted. And then you should be able to give this generation to the rollback command you mentioned
graphene has joined #nixos
<infinisil>
Or the generation yeah
<ambro718>
infinisil: nix-collect-garbage might have deleted the profile link in the directory I mentioned
<ambro718>
so presumably nixops rollback wouldn't know what to deply
<infinisil>
ambro718: Check out `nix-store`, the --add-root and --indirect flags
<infinisil>
I don't know the rollback command you mentioned, but presumably it should be able to do the whole deploy from a nixops build
stepcut has quit [Remote host closed the connection]
<ambro718>
infinisil: Sure, that will give me a link that will keep the build result alive, but I don't think I can use it to keep the provile link in /nix/var/nix/profiles/per-user/USER/nixops/ alive!
<clever>
ambro718: correct
<ambro718>
I would need to manually create a symlink in that directory in case it got deleted
<ambro718>
I mean with --add-root
<clever>
the roots in profiles can just be made with ln
<ambro718>
ok looks it could kinda work, though it would be nice if rollback also supported giving a build directoy
<clever>
this is also why i avoid nix-collect-garbage -d
<tenten8401>
so I'm trying to the getty service and no matter whay I seem to set for systemd.services."getty@".script, it just seems to give me a "Value is a string with context while a list was expected"... and I thought it was supposed to be a string
<clever>
tenten8401: can you gist your configuration.nix file and the exact error?
<clever>
tenten8401: if you put something like this into configuration.nix, the entire ntpd.nix stops working
<clever>
tenten8401: you can then put a copy of it into imports, and freely edit that copy
<tenten8401>
was going to try appending the already existing list to the list
<tenten8401>
but that apparently causes infinite recursion
stepcut has quit [Remote host closed the connection]
<mkaito>
where in the nixpkgs pkgs tree should I put a support application for a certain game? in pkgs/games/gamename/appname for example?
stepcut has joined #nixos
rcshm has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
gspia has quit [Quit: Leaving]
igo95862 has joined #nixos
rcshm has joined #nixos
__monty__ has joined #nixos
<mkaito>
or pkgs/applications/misc
mariatsji has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
timon37 has joined #nixos
rcshm has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @vcunat pushed to staging-next « Merge branch 'master' into staging-next »: https://git.io/fNmXB
vcunat has joined #nixos
worldofpeace has quit [Remote host closed the connection]
mariatsji has quit [Ping timeout: 244 seconds]
<tenten8401>
so overriding the command and using --issue-file <(${pkgs.fortune}/bin/fortune) doesn't seem to do anything
<tenten8401>
just seems to leave a blank tty with a login screen
<tenten8401>
would it be possible to use a command inside of my .nix file to write to a file with? as in if I wanted to just "figlet test" into /etc/issue?
<sphalerite>
you could just run `figlet test > /etc/issue` independelty of the nixos config
<sphalerite>
-typos
timon37 has quit []
<gchristensen>
if you use nixos, you can define the contents of /etc/issue in your configuration.nix, of course
<tenten8401>
I could define the contents of /etc/issue, but I want to generate that from the output of a command
<tenten8401>
I am using NixOS
<gchristensen>
sure, you can do that
<sphalerite>
switching to a configuration seems to create any missing home directories; but where are they created from? Are they initialised to just be empty?
<tenten8401>
gchristensen: how would I go about referencing the command inside of a string?
<clever>
gchristensen: the issue, is that the contents have to be different every time you login
<clever>
gchristensen: fortune is designed to produce a random quote from a DB
<gchristensen>
yes I know what fortune is
<tenten8401>
I've settled on just not using fortune
coot_ has quit [Quit: coot_]
<gchristensen>
anyway, 16:21 <tenten8401> would it be possible to use a command inside of my .nix file to write to a file with? as in if I wanted to just "figlet test" into /etc/issue?
<gchristensen>
is solved by my sample
andi- has quit [Remote host closed the connection]
<tenten8401>
I think that's what I'm looking for
<tenten8401>
it isn't of type string apparently, and converting it to a string just spits out the path to the /nix/store/whatever-figlet-test
<clever>
tenten8401: wrap it in "${....}"; to convert it to a string
<tenten8401>
now it's complaining about it not being a string again, after setting services.mingetty.greetingLine.source = ''${pkgs.runCommand ... }'';
<ambro718>
Is it possible to replace a nixos module with a local modified version_
<gchristensen>
tenten8401: delete that code, and see if you still have the error
<ambro718>
clever: thanks
<gchristensen>
tenten8401: I think you have a different problem with the string.
<infinisil>
tenten8401: The problem with your <(fortune was probably that you set that directly as an argument, which won't work, because bash won't interpret that
<infinisil>
tenten8401: You need to create a bash script and call that as the ExecStart
<tenten8401>
ah hmm.
<gchristensen>
many people all with different directions
<gchristensen>
you can't set greetingLine.source, it isn't an option
<illegalprime[m]>
how do you add config options to dbus? `environment.etc."dbus-1/system.d/ofono.conf"` gives me an error (`duplicate entry dbus-1`) and I don't see any useful options in `services.dbus`.
<clever>
ambro718: buildUsers will always be big enough to support maxJobs
<ambro718>
clever: I don't get it, I should put mkDefault into default = ?
<clever>
ambro718: into the config section
<ambro718>
clever: and set no default in the mkOption?
<infinisil>
It should also work with default in the mkOption
<tenten8401>
alright, so I got the script sorted with pkgs.writeScript, but now I've got /dev/agetty: cannot open as standard input: No such file or directory
<infinisil>
But the mkDefault way not in mkOption might be preferable
<tenten8401>
which I'm pretty sure unfortunately means it's not gonna work with the bash command input
<ambro718>
infinisil: default = cfg.something; ?
<clever>
illegalprime[m]: it looks like you can only impact it by setting .packages, and then line 13 will generate the config
<illegalprime[m]>
clever: ah OK, so I don't even need to make a package, I can just point this at a dir
<tenten8401>
ah that might work
srl295 has joined #nixos
<gchristensen>
here is an idea
<tenten8401>
gchristensen: you have to put "" infront of it to override the previous ones set I think
<gchristensen>
that doesn't make sense
<tenten8401>
but it works
<gchristensen>
use a PreStart directive on Getty to update an issue file
<tenten8401>
hmm
<gchristensen>
tenten8401: I'm not sure it is doing what you think it is doing ... but it might work?
<flexw>
hello, what is in nixos the proper way to configure iptables? There is a firewall option but I want to manage iptables completely by myself. Is there any possiblity to this in the configuration.nix file?
<mupf>
collision between `/nix/store/29vz8gi9m6i3b32800vsvwicy54z30fs-android-sdk-25.2.5/libexec/tools/lib/monitor-x86_64/monitor' and `/nix/store/gzrhh4r4kcdayx3mmim4cs30d2izqj6w-android-sdk-25.2.5/libexec/tools/lib/monitor-x86_64/monitor
<mupf>
Can anyone tell me how to fix collisions?
<clever>
mupf: youve installed 2 versions of the package
<mupf>
Can I safely remove them? Any why shouldn't thesse packages be there?
iyzsong has joined #nixos
<clever>
mupf: yeah, those should be perfectly safe to remove
<mupf>
clever: ertes-dev are my dev related packages
<mupf>
what is nix-index-0.1.0?
<clever>
mupf: nix-index and nix-locate
<tenten8401>
I still seem to be getting that stupid cannot open as standard input issue
blankhart has quit [Quit: WeeChat 1.9.1]
jmiven has quit [Ping timeout: 264 seconds]
<illegalprime[m]>
clever: so I have `./dbus/etc/dbus-1/system.d/ofono.conf` and `services.dbus.packages = [ ./dbus ]`, `nixos-rebuild switch` runs but I don't see the new file in `/etc/dbus-1`. Am I using this right?
<mupf>
thanks, I might have an idea regarding the conflicting package now
<clever>
illegalprime[m]: it has to be in share/dbus-1/services/ca.desrt.dconf.service
ixxie has joined #nixos
<illegalprime[m]>
clever: but I don't want to include a service file, I just want to add a policy change (to allow root to own `org.ofono`)
iyzsong has quit [Ping timeout: 248 seconds]
<clever>
illegalprime[m]: then we ned to check the source of makeDBusConf
<clever>
illegalprime[m]: not sure if it has any way to change the policy files, but you could use a packageOverride on makeDBusConf, to customize it
imalison has joined #nixos
<{^_^}>
[nixpkgs] @lheckemann opened pull request #43534 → systemd: improve unit script drv naming → https://git.io/fNmMn
<sphalerite>
gchristensen: ^ since I think it would make sense to run all the nixos tests for this, should I get ofborg to do that? Or maybe just run a small random sample?
<gchristensen>
you'd have to call it by hand
<sphalerite>
Yeah that's fine, just wondering if it's appropriate to get it to run all of them or not
<gchristensen>
I wouldn't do _all_ of them, but go for it -- run several :)
xy2_ has quit [Ping timeout: 244 seconds]
<ambro718>
is it possible to configure a service but not start automatically but only on explicit request by user or program?
<clever>
ambro718: set .enable = false;
<sphalerite>
ambro718: yes, that's the default in fact. Just don't add wantedBy = [ "multi-user.target" ];
<clever>
oh that
<sphalerite>
clever: no, that masks it, making it impossible to start
<clever>
or that*
<clever>
ah
<ambro718>
the nixos module adds the wantedBy when enable = true
<clever>
ambro718: mkForce, one sec
<ambro718>
no way without modifying the nixos module then?
<sphalerite>
oh it does? I didn't know that. In that case use mkForce = []
<illegalprime[m]>
clever: thanks for your help! It turns out putting it in `./dbus/etc/...` was working, but my config syntax was wrong. I also got disconnected because network manager depends on dbus haha
<clever>
illegalprime[m]: ah
wpcarro has joined #nixos
<ambro718>
so what I am trying to do is that I have custom software which managed networking and I need the service to run only when the software says it should (software generates events that the service may run / should stop). Is there a preferred approach? I'm thinking to just make the software run systemctl start/stop.
wpcarro has quit [Ping timeout: 244 seconds]
wpcarro has joined #nixos
jmiven has joined #nixos
jmiven has quit [Client Quit]
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}>
#38698 (by thoughtpolice, open): Overhaul PostgreSQL packaging, native extensions, and NixOS support
<tenten8401>
So I'm trying a different approach to the getty greeting, and I seem to be getting a mismatched duplicate entry error with my code... https://hastebin.com/gaxusajara.bash -- I'm assuming that means that the contents of both files are the same, but I'm not sure if there's a good way to go about fixing that while still using pkgs.runCommand
<manveru>
i just tried using timescaledb, and the build fails with lines like `rm: cannot remove '/nix/store/m1d7d49myqz40vv0rx1j6cl5pbv775xl-postgresql-and-plugins-10.3/bin/pg_config': Permission denied`
<{^_^}>
#22653 (by spinus, open): Postgresql extraPlugins require /bin dir to exist in extension directory
<thoughtpolice>
Maybe what I should just do instead is touch a `bin/` directory under timescale
<thoughtpolice>
That might work better.
<thoughtpolice>
At least for now... I'd ideally not like to duplicate code between the NixOS module and the Postgres expressions. I can maybe take another stab at this before I go to the show later tonight
<manveru>
that'd nice :)
<thoughtpolice>
manveru: Anyway sorry about that. I've been meaning to push this but, otherwise -- yes, I've been happily running Postgresql on my Ryzen machine since April with that patchset.
gchristensen has quit [Quit: WeeChat 2.0]
<manveru>
there's also an upgrade for timescaledb still unmerged
<thoughtpolice>
(To be fair, this exact problem existed beforehand like I said, so working around it better would be nice)
<thoughtpolice>
manveru: Yeah I saw they released 0.10 recently
mariatsji has quit [Remote host closed the connection]
<{^_^}>
#38698 (by thoughtpolice, open): Overhaul PostgreSQL packaging, native extensions, and NixOS support
<infinisil>
Oh damn, I haven't handled that case of the pr linking..
<thoughtpolice>
So like if you enable Postgresql 10 and then install Postgis into it, you actually have to also install the postgresql 9 libraries, meaning 10 becomes dependent on 9. lol
sbdchd has quit [Ping timeout: 256 seconds]
* infinisil
goes to fix that
knupfer has joined #nixos
mariatsji has joined #nixos
<iqubic>
What do people do for developing JS on Nixos?
<iqubic>
nodePackages.httpServer isn't a thing in the repos.
<thoughtpolice>
manveru: I've confirmed this fix works.
mekeor has joined #nixos
<thoughtpolice>
Ugh. Maybe I should do a mix-in postInstall or something to always create $out/bin for now as a workaround... Otherwise you have to make sure *every* extension does this.
<thoughtpolice>
But really I should fix it properly.
<iqubic>
err.. nodePackages.http-server.
<rotaerk>
ryantm, that git bisect strategy worked, for diagnosing the cause of RPATH being used instead of RUNPATH worked. I created PR #43531
<joepie91>
also, normally the webserver is a part of your application?
<iqubic>
And how do you get the local server up and running?
<manveru>
iqubic: node, yarn, and yarn2nix
<tenten8401>
Anyone have an idea on how I'd avoid a mismatched duplicate entry error with this code? https://hastebin.com/ehifubaqox.bash -- I'm simply trying to run the hostname through figlet and set it as my /etc/issue.
<iqubic>
joepie91: what do you mean?
<tenten8401>
can I run pkgs.runCommand anonymously without a name?
<joepie91>
iqubic: wait, are you talking about developing something with Node.js, or writing client-side JS for an application written in something else?
<manveru>
thoughtpolice: the postgis trick worked, looking forward to a real one :)
<manveru>
*real fix, i mean
<infinisil>
tenten8401: You cannot
<infinisil>
tenten8401: You might just have to override the nixos module
<infinisil>
Either via nixpkgs checkout or disabling that module
marcinkuzminski has quit [Quit: ZNC - http://znc.in]
<tenten8401>
so there's really no way I can write the output of a command to a file?
<infinisil>
That's exactly what that thing does you're using
<iqubic>
manveru: You use haskellPackage.yarn2nix?
<infinisil>
But apparently source can't be set twice
<gchristensen>
I can't figure out why I couldn't get it to mkForce environment.etc.issue
<joepie91>
iqubic: right, but what is the client-side code being used for? normally, it's served up by whatever application/setup you have for the rest of the application, whether that be something like a Node.js or Python application with built-in webserver, or something like nginx when doing PHP
<manveru>
but i think it's only in nixpkgs-unstable, not 18.03
<iqubic>
oh..
<iqubic>
error: undefined variable 'yarn2nix' at /home/avi/tfjs/linearRegression/shell.nix:7:5
<iqubic>
yeah.
<tilpner>
tenten8401 - Are you sure color codes are a thing at that level?
<iqubic>
error: syntax error, unexpected '}', expecting ';', at /home/avi/tfjs/linearRegression/shell.nix:3:1
alex``` has joined #nixos
<iqubic>
How do I fix that?
<tenten8401>
how to overcome getty trying to use \ as an escape code and garbling up the text
<manveru>
well, it expects a semicolon on line 3
<samueldr>
your with-expression seems to be missing its semi-colon
<manveru>
also line 2
<iqubic>
What's up with line 2
<manveru>
everything but the last expression must have them
<samueldr>
an attribute/value pair needs a semi-colon at the end, too
<manveru>
you need a `;` after the url
<tilpner>
tenten8401 - Not really. You could probably escape every backslash, but that's annoying
<iqubic>
Works now.
<iqubic>
I have to go now. Sorry.
<tilpner>
tenten8401 - But I guess you could try a font that doesn't use backslashes. univers looks good
<iqubic>
Well, I have errors still, but I don't have time to diagnose them now.
<tenten8401>
it doesn't seem to be the font, when showing it in the getty greeter it's all garbled, but if I log into getty and cat /etc/issue it looks fine
<samueldr>
tenten8401: running it through a sed may work?
<tenten8401>
I was just getting ready to try a sed
<samueldr>
figlet test | sed -e 's/\\/\\\\/g
wpcarro has joined #nixos
<samueldr>
escaping those is easy, I think unescaping those would be hell :)
<samueldr>
(safely)
<tenten8401>
there we go, now it looks normal
<tenten8401>
you do have to escape the backslashes
<samueldr>
yeah
<tenten8401>
looks all garbled when I cat it now but the problem is solved where I was needing it to be
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « adapta-gtk-theme: 3.93.1.28 -> 3.94.0.1 (#43373) »: https://git.io/fNm9B
<illegalprime[m]>
How should I build packages with `/etc` output and systemd services? I don't see `etc` or `lib/systemd/...` in the output of the package
<{^_^}>
[nixpkgs] @xeji pushed commit from @volth to master « xfce.xfce4-hardware-monitor-plugin: 1.5.0 -> 1.6.0 (#43520) »: https://git.io/fNmHJ
<illegalprime[m]>
infinisil: so does this mean my derivation isn't outputing to `etc` and `lib`? Or do I have to specify something special for nix to keep those directories in the output?
<infinisil>
illegalprime[m]: Well if you can't see them in the result then it's obviously not outputting those dirs
<infinisil>
illegalprime[m]: Nix won't delete anything from $out without you telling it to (e.g. via multiple outputs)
<illegalprime[m]>
Oh that makes sense, I think its my string interpolation, how can I get `$out` to expand to the outdir and not be `\$out`
<infinisil>
$out should work in phases
manny has quit [Quit: bye]
<ambro718>
note that the out dir path cannot be a part of the definition of a package (derivation), due to theoretical reasons
<ambro718>
(out path is calculated *based on* the definition of a derivation)
<infinisil>
ambro718: It can actually
<illegalprime[m]>
I have mine in `configureFlags`
<ambro718>
infinisil: whaaaat?
<illegalprime[m]>
and I see `install -c -m 644 plugins/phonesim.conf 'ut/etc/ofono'` so somehow `$out` is being chopped into `ut`
<infinisil>
ambro718: Either `let drv = mkDerivation { somePhase = "echo ${drv.outPath}"; ... }; in drv
<infinisil>
ambro718: Or with Nix 2.0 you can use `mkDerivation { somePhase = "echo ${placeholder "$out"}"; }`
<ambro718>
infinisil: interesting, I'm sure I was asking about that before and the answer was it's impossible.
<ambro718>
infinisil: how does it work? Is the expansion of outPath magically not done for the purpose of determining the out hash?
<infinisil>
It might be
<GiGa>
evening all. Anyone else using Gnome3 having a problem where it crashes and has to recover the desktop? This can happen multiple times a session before recovery is no longer possible and instead you're returned to the GDM login screen.
<infinisil>
Oh yeah, I think it first calculates the derivation output by giving it a "fake" $out (aka placeholder), and then runs the build with the newly calculated one set to $out
<ambro718>
ok now what I had actually been asking about back then was stuff like that: let drv = mkDerivation { installPhase = writeFile "something with ${drv.outPath}"; };
igo95862 has joined #nixos
<clever>
ambro718: installPhase can just be a string, it doesnt have to be a file
<infinisil>
illegalprime[m]: Note that you can't make a PR to nixpkgs using placeholder, as nixpkgs still has to be Nix 1.x compatible
<illegalprime[m]>
:(
<infinisil>
illegalprime[m]: But there's ways not not have to use placeholder of course
<ambro718>
oops I meant: let drv = mkDerivation { installPhase = "echo ${writeFile "something with ${drv.outPath}"}"; };
vcunat has quit [Quit: Leaving.]
<illegalprime[m]>
I don't super understand the nix 1.0 version, how do you define the derivation and then use it?
<ambro718>
in other words, a dependency derivation of drv includes the out path of drv somehow
graphene has quit [Read error: Connection reset by peer]
Lisanna has joined #nixos
<sphalerite>
illegalprime[m]: you may want to have a look at the nix pills
<rotaerk>
bleh, so I fixed the bug causing binutils/ld to build with RPATH instead of RUNPATH, which causes binaries to now look at LD_LIBRARY_PATH
andymandias_ has joined #nixos
<rotaerk>
but it seems that ghci just pulls from whatever would go into RUNPATH or RPATH, and ignores LD_LIBRARY_PATH (some different linker mechanism)
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « mlt: 6.8.0 -> 6.10.0 (#43331) »: https://git.io/fNmQm
andymandias has quit [Ping timeout: 244 seconds]
<rotaerk>
which means that I now *also* need to figure out why the libGL version specified in the RUNPATH isn't working
<rotaerk>
evenn when the RPATH bug was introduced, libGL still worked because the one specified in RPATH (and overriding LD_LIBRARY_PATH) worked just fine
<rotaerk>
but then later the libGL version pointed at by RPATH was changed to one that didn't work
sbdchd has joined #nixos
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erickomoto has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<__monty__>
If I specify substituters in nix.conf do I need to add cache.nixos.org or is that always included?
<__monty__>
cocreature: Do I also need to specify a trusted key then? Currently I have my ssh-substituter in the list but it's not working because it doesn't have a valid signature.
blankhart has joined #nixos
<__monty__>
I may have skipped a step of reasoning, this is what I thought: I'll add it but I have to specify trusted-keys too because it's not working without one so does that mean I'll have to add one for the nixos cache as well?
manny has joined #nixos
<sphalerite>
Dezgeg: menuconfig was fiddly to get to, but it did help! Thanks!
<cocreature>
__monty__: right you need both
andymandias has joined #nixos
<sphalerite>
__monty__: you need to add it, although I think you can use extra-substituters instead if you don't want to
<__monty__>
Or I just go with extra-substituters I guess?
wpcarro has joined #nixos
<__monty__>
Ah, let's take the easy way out for now : ) Then I won't have to specify anything for the nixos cache : )
<infinisil>
lezed1: I think it does that already if the expression evaluates to a list
<infinisil>
lezed1: Or multiple -A arguments work too if that's all you need
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
manny has quit [Client Quit]
<__monty__>
Oh, I still need the trusted key with extra-substituters?
pie_ has quit [Ping timeout: 240 seconds]
<sphalerite>
yeah
<lezed1>
infinisil: Yep, looks like it supports list. I think my expression just had an error and evals to a list of errors instead. Thanks for the quick help!
<ambro718>
has anyone tried using systemd network access control with IPAddressAllow?
<ambro718>
I want to limit a certain service to operate only on specific network interfaces. Doesn't seem like the right kind of limit though since it deals with addresses not interfaces.
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
erickomoto has joined #nixos
pluplog has quit [Read error: Connection reset by peer]
<warbo>
hi has anyone encountered cabal2nix giving "UnsupportedTarEntry (Entry {entryTarPath = "././@LongLink", entryContent = OtherEntryType 'L' ..." for the 00-index.tar file?
<mekeor>
sphalerite: i'm a noob but i'd guess you can put "dvb_core" into boot.blacklistedKernelModules in your nixos-configuration
<samueldr>
sphalerite: check VIDEO_V4L2 which can be set (I think) to DVB_CORE ?
<samueldr>
mekeor: sphalerite wants to make a kernel build minimal, as in the least amount of compiling to do
<samueldr>
(iirc)
pie_ has joined #nixos
<sphalerite>
samueldr: it's also set to m without any information as to what's selecting it, nor the ability for me to set it to something else…
<sphalerite>
and yes, that is correct :)
<clever>
sphalerite: and if you set it to n ?
<samueldr>
(armv7 is hard)
xorkle has joined #nixos
<sphalerite>
clever: I *can't* set it to n
<sphalerite>
like in the screenshot for the DVB_CORE option, there's no way for me to actually access the option
<sphalerite>
but it's also not shown to be "selected by" anything else…
<clever>
sphalerite: ah
<clever>
sphalerite: id grep the KConfig files in the source to see where it appears
coot_ has joined #nixos
<samueldr>
clever: I'm not sure with kconfig, but would "depends" lock an option? if so, there's a multitude of options, but otherwise, I think it's only VIDEO_V4L2 which can be set to DVB_CORE that may be locking it?
<sphalerite>
clever: there's a bunch of stuff that depends on it, but that should just mean that the other stuff gets deactivated by deactivating DVB_CORE, right?
<Dezgeg>
it's not an user-configurable option
<Dezgeg>
but I guess if you disable its dependencies it goes away
<samueldr>
Dezgeg: how do you see it's user-configurable or not?
<sphalerite>
so I need to go through all the things that depend on it and disable them? >_>
<Dezgeg>
if it lacks a description it's not user-configurable
sbdchd has quit [Remote host closed the connection]
<sphalerite>
or is there maybe an option lower down that I can disable to get rid of all the DVB stuff?
<Dezgeg>
no you just disable MEDIA_SUPPORT and/or MEDIA_DIGITAL_TV_SUPPORT as it says
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to master « bloaty: 2018-05-22 -> 2018-06-15 (#43540) »: https://git.io/fNmdv
<clever>
__monty__: the toposort has priority
graphene has quit [Remote host closed the connection]
<__monty__>
I figured it was topo but GHC was copied so much earlier than all these packages, maybe that makes sense though.
<clever>
ghc is probably a dependency of a lot of ghc libs
graphene has joined #nixos
<__monty__>
Dhall for example appears in a fairly random sequence of http and x509 things.
graphene has quit [Remote host closed the connection]
phreedom has quit [Ping timeout: 250 seconds]
<__monty__>
Oh, it was dhall-doc, now it's dhall.
graphene has joined #nixos
wpcarro has joined #nixos
wpcarro has quit [Ping timeout: 260 seconds]
sbdchd has joined #nixos
<Orbstheorem>
Hi, how can I get the hash to use in src.sha256sum in a file imported via `nix add-to-store`?
<Orbstheorem>
I'm using `nix-prefetch-url --type sha256 file://$(pwd)/$(tmux showb)`, but seems hacky :P
<clever>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever>
Orbstheorem: or use the right args to nix-hash i believe
<Orbstheorem>
clever: I tried tofu, but since it's requireFile...
<infinisil>
It's a rather big and complicated module
<{^_^}>
[nixpkgs] @jfrankenau opened pull request #43543 → gurobi: init at 8.0.1 → https://git.io/fNmbY
telent has quit [Ping timeout: 244 seconds]
hxrts_ has quit [Ping timeout: 276 seconds]
simukis has quit [Ping timeout: 240 seconds]
<YegorTimoshenko[>
is there a way to check if `nix-build` will be served from nix store or built?
<clever>
YegorTimoshenko[: i think you can run it with --dry-run to get that info
<gchristensen>
or -j0 I think
warbo has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<YegorTimoshenko[>
clever, gchristensen: thank you! will use `-j0` because it's nicer in context i'd like to use it in (returns exit code 1 when build is required, 0 otherwise)
imalison has quit [Remote host closed the connection]
Cale has quit [Ping timeout: 245 seconds]
knupfer has quit [Ping timeout: 240 seconds]
<erickomoto>
Hi, I am trying to package a git repository (hosted on github) with submodules. The `fetchFromGithub` function has a `fetchSubmodules` attribute that I have set to true. I am not sure where to find `fetchFromGithub`'s source (github's code search is pretty bad). I am looking to find whether `fetchSubmodules = true` is equivalent to git clone --recursive
<emily>
is it possible to disable a module's assertions / stop it from turning certain options on? (I'm happy to accept "oh god why, just modify it in nixpkgs/make a local copy/etc.")
<gchristensen>
pretty much have to modify nixpkgs :)
logzet has quit [Remote host closed the connection]
<tobiasBora>
Hello,
erickomoto has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tobiasBora>
Because nixops does not fit my needs, I'm deploying my configuration using a simple 2 lines script that basically rsync a folder with my servers, and then run remotely the script.
<tobiasBora>
However, I can see that the configuration file is read only.
<tobiasBora>
So if I rsync everything in read only mode, is it enough, or do I need to take care of other specifications?
<maurer>
tobiasBora: If you don't need to worry about provisioning or migration that should be sufficient
<maurer>
A lot of the hard stuff in NixOps has to do with making it able to take a network description and autoprovision it on the cloud
<maurer>
or adjust provisioning if necessary
<maurer>
Probably what you want to do if you want to avoid nixops for whatever reason is to scp/rsync a configuration.nix to the target server
<gchristensen>
or you can use `nixos-rebuild --build-host yourremoteserver --target-host yourremoteserver -I nixos-config=./the-config.nix switch`
<gchristensen>
that should do it
<tobiasBora>
gchristensen: I need to be on a nixos device to do that no?
<gchristensen>
ohhh right :)
<tobiasBora>
maurer: what does provisioning means?
<maurer>
tobiasBora: For example, requesting additional IP addresses for the machine, assigning or resizing block devices
<maurer>
tobiasBora: Defining network topoloties
<maurer>
*topologies
<maurer>
Also, even if you're not going to end up using nixops, I'd suggest you send them a note explaining why they aren't suitable for you so they can improve :)
fendor_ has quit [Remote host closed the connection]
<tobiasBora>
maurer: oh, so you are also using the same trick as me and you avoid nixops? ^^
fendor_ has joined #nixos
<tobiasBora>
"<maurer> I think it will still try to store it all locally though, which may be a dealbreaker" ==> yes that's the point, I don't want to store anything locally, except for the configuration
<maurer>
tobiasBora: I am using nixops in practice, my work environment was willing to get me a pretty baller laptop
<maurer>
and I deploy from there
<tobiasBora>
I dont even understand why we need to store anything locally, and can't ask to the server to do the job alone
<tobiasBora>
(a server is usually faster than a client anyway)
fendor_ has quit [Remote host closed the connection]
fendor_ has joined #nixos
<maurer>
I think the reason is that their expected use case involves, for example, deploying 10 servers with configuration X
<maurer>
and as a result, it makes more sense to get one server with configuration X
<maurer>
and ship it to all 10 server
<maurer>
rather than having all 10 servers load hydra, or load their CPUs