<worldofpeace>
samueldr: did the options make sense from a user perspective at #65449 ? asking because michaelpj had reservations, and since I'm too informed I can't actually tell
<clever>
Church-: everything is happening in a child process, you want to add -f to strace
<Church->
Ah
<samueldr>
gtkUsePortal's description describes the means by which it achieves what it does, but I'm not sure what to add to better explain when an end-user would flip it on
<worldofpeace>
well when #64575 refactored it, it included this addition of setting that envar to "fix" #53454. and from bugreports I've seen in other distros users are somewhat aware that they need to set it for that
<clever>
Church-: youll probably want to fix that first then
<jonreeve[m]>
So I'm trying to get the Mega.nz client installed on NixOS, and there are a ton of packages available for a ton of distros, but none are NixOS. https://mega.nz/sync Which one should I download to try to make into a nix package? And is there a deb2nix or arch2nix program somewhere where I can convert them?
ee1943 has quit [Read error: Connection reset by peer]
<clever>
jonreeve[m]: search nixpkgs for all uses of dpkg to find examples
<Church->
Curios why it's erroring out however. I have opengl enabled already
<samueldr>
worldofpeace: I think that new sentence helps a bunch
<samueldr>
(thinking as an end-user)
<{^_^}>
[nixpkgs] @c00w opened pull request #65584 → tensorflow: Hardcode a second search class. → https://git.io/fjSBj
<kalbasit>
clever: is this the best way to push the docker image: `skopeo copy docker-image://$(nix-build -A my-image --no-out-link) docker://$remotetag`?
<kalbasit>
yea I saw that, that won't work for k8s though. I think I have a solid plan, will reach out if anything else comes up. Thanks!
<{^_^}>
[nixpkgs] @veprbl pushed commit from @vitaliy-zinchenko to release-19.03 « libelf: fix download url (#65576) »: https://git.io/fjSRm
<{^_^}>
[nixpkgs] @veprbl pushed commit from @vitaliy-zinchenko to release-18.09 « libelf: fix download url (#65576) »: https://git.io/fjSRY
<{^_^}>
[nixpkgs] @veprbl pushed commit from @vitaliy-zinchenko to release-18.03 « libelf: fix download url (#65576) »: https://git.io/fjSR3
<gchristensen>
wow
<clever>
gchristensen: i was just thinking, a recent update to nixpkgs broke teamspeak, and it would be nice to have hydra testing things better (and ofborg indirectly)
<clever>
gchristensen: the only thing missing, is allowing hydra (and ofborg) to build it, and a basic test to ensure it can find all dynlibs (one got renamed and broke it hard)
<gchristensen>
right, I don't know that we'll be able to do that
<gchristensen>
maybe could make ofborg do it
<clever>
gchristensen: unfreeRedistributable might be enough to enable it in hydra/ofborg
<gchristensen>
right
<clever>
or maybe a custom type, i notice unfreeRedistributableFirmware lacks the free = false;
<clever>
gchristensen: basically, its a function, that changes allowUnfree from allow-everything to a whitelist
psy3497 has joined #nixos
<day|flip>
s/user/uses
<clever>
gchristensen: so hydra could then allow teamspeak, but not other things (ir may also be able to inspect the license and be more inteligent, like unfree = false; grayzone = true;, and then base it on that
abathur has joined #nixos
englishm has quit [Excess Flood]
englishm has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
acarrico has quit [Quit: Leaving.]
___laika has quit [Ping timeout: 272 seconds]
kvda has joined #nixos
<Church->
Hmm, maybe I'll just rebuild from scratch.
<Church->
Hmm, what command deletes old nixos generations?
<gchristensen>
nix-collect-garbage will with --delete-older-than, when run as root
<Church->
kk, thanks
<jonreeve[m]>
If I just want to install a newer version of a package, should I make an override for that, with a new version and SHA? I'm trying to figure out how to get the latest Jupyter Lab.
<jonreeve[m]>
I guess I can just increment the version there?
<Church->
clever: Yeah I had it in my history, just wasn't sure if it was right.
<jonreeve[m]>
But then how can I install my incremented version? Do I have to check out a whole new copy of nixpkgs?
<Church->
clever: Think I'm just going to solve all my issues by reinstalling from a clean state :P
mbrgm has quit [Ping timeout: 258 seconds]
mbrgm_ is now known as mbrgm
<Church->
As soon as I can rebuild this kernel module
<worldofpeace>
gchristensen: is just sway or wayland in general? (iirc there's ones that have wayland support)
<Church->
Question, getting an issue in my makefile like such, *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel", do we have something for this in nixpkgs? Already tried libelf and elfutils, but seems there's no devel package.
<worldofpeace>
lol like those silly youtube videos that burn your retinas
<gchristensen>
worldofpeace: no idea :x might just be sway
<gchristensen>
Error: target STRING not available
<gchristensen>
guh alacritty lost my patch fixing paste.
<gchristensen>
wayland is great except for ... *laundry list of problems*
<Church->
lol
<Church->
How is alacritty?
<Church->
Is is still tearing at all?
dftxbs3e has joined #nixos
<gchristensen>
it is great except for I can't copy paste
<Church->
heh, an annoyance
<gchristensen>
I haven't noticed any tearing
<Church->
Hmm guess they fixed that. Cool
<worldofpeace>
I'd think it would be hard to have that, last time I checked wayland doesn't provide absolute screen coordinates to applications
<Church->
Nod nod
<gchristensen>
worldofpeace: hard to have screen recording?
<worldofpeace>
gchristensen: yeah, I'd think not being able to have absolute screen cooardinates would make screenrecording be kinda hard in some apps
<gchristensen>
ah right
<gchristensen>
right. when I use obs, I run the programs under xwayland
<worldofpeace>
yep, pretty much none of the apps will have native wayland support
azdle has quit [Read error: Connection reset by peer]
mexisme has quit [Ping timeout: 244 seconds]
<Church->
Huh, I shouldn't be having this issue... I
Yakulu has left #nixos ["Disconnected: Replaced by new connection"]
Yakulu has joined #nixos
ajirx has joined #nixos
<{^_^}>
[nixpkgs] @marsam opened pull request #65597 → mtm: init at 1.0.1 → https://git.io/fjSE0
cfricke has quit [Ping timeout: 248 seconds]
ericsagnes has joined #nixos
dansho_ has quit [Remote host closed the connection]
dansho_ has joined #nixos
owickstrom has joined #nixos
mexisme has quit [Ping timeout: 248 seconds]
rsoeldner has joined #nixos
vmandela has joined #nixos
hoijui has joined #nixos
cfricke has joined #nixos
cfricke has quit [Client Quit]
<angerman>
Anyone got a nixops example for a hetzner nvme machine laying around?
kori has quit [Ping timeout: 250 seconds]
dansho_ has quit [Remote host closed the connection]
dansho_ has joined #nixos
<kandinski>
I'm seeing an issue booting the VBox appliance, it crashes within the first second. Here's the log: http://paste.debian.net/1093529/ I'm running nixos-19.03.173201.defa89ffaef-x86_64-linux.ova, and the Virtualbox I'm running is 5.2.28 r129471 from NixOS 19.03.
dansho_ has quit [Remote host closed the connection]
dansho_ has joined #nixos
kori has joined #nixos
dansho_ has quit [Remote host closed the connection]
<kandinski>
regarding the Vbox Nixos appliance, I've tried downgrading USB to 1.1, but it still crashes.
<jackdk>
hr[m]: I think you want to use an overlay instead of an import: https://nixos.org/nixpkgs/manual/#chap-overlays . The docs aren't stellar here, but 12.1.1 tells you how to set it in configuration.nix (set nixpkgs.overlays)
<jackdk>
ah, hm. maybe that's only going to let you tweak packages instead of nixos configs. stand by
<hr[m]>
jackdk: that looks promising, I'll give it a go and report back.
<jackdk>
I'm about to sign off, so hopefully someone else can help if things go badly. Note also that your long message from matrix was hard to see on IRC: it posts a /me message with no context. Consider posting a one-line summary, then your long message if you stick with matrix
<jackdk>
good luck.
<hr[m]>
Ok, thanks for your help.
glasserc has quit [Ping timeout: 246 seconds]
glasserc has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<srhb>
hr[m]: SOrry, I don't understand the question
ThatDocsLady_ has quit [Client Quit]
<srhb>
hr[m]: Are you saying you expected the option to sort of merge into the "default" configuration of alacritty?
ThatDocsLady has joined #nixos
ThatDocsLady has quit [Client Quit]
ThatDocsLady has joined #nixos
hyper_ch2 has joined #nixos
<srhb>
hr[m]: I think that behaviour is completely expected. And, in my opinion, that module is silly.
<hr[m]>
srhb: The imported file (File a) defines a few settings for alacritty, under the attr `programs.alacritty.settings = {...};` I would like the file that imports (File b) the previously mentioned file (File a) to be able to overwrite one of the settings defined in file a, say file b sets `programs.alacritty.settings.window.buttonless = "";` This is possible but in the progress it removes the settings that were set under
<hr[m]>
`programs.alacritty.settings.window`
<srhb>
hr[m]: You'd need to do some kind of deep merge for that, when it's a simple attribute set.
<hr[m]>
srhb: The usecase for the module is home-manager configuration of my user environment that I share across a darwin system and a NixOS install. Alacritty has a setting buttonless that is only intended for darwin. So the ./role/bspwm-workstation should remove that setting which is defined in a shared alacritty.nix module. How would I go about a deep merge of an import?
asymptotically has joined #nixos
oldandwise has left #nixos [#nixos]
<srhb>
hr[m]: You can check out recursiveUpdate for instance.
<srhb>
hr[m]: The problem you're encountering is basically this:
<srhb>
> { foo.bar = 42; } // { foo.baz = 43; }
<{^_^}>
{ foo = <CODE>; }
<srhb>
Ack..
o1lo01ol1o has quit [Remote host closed the connection]
<eyJhb>
Does NixOS have something like group `staff` like Debian does that can make local changes, like /usr/local/bin ?
<srhb>
> let test = { foo.bar = 42; } // { foo.baz = 43; }; in test.foo.bar
<{^_^}>
attribute 'bar' missing, at (string):255:55
<srhb>
> let test = { foo.bar = 42; } // { foo.baz = 43; }; in test.foo.baz
<{^_^}>
43
<srhb>
hr[m]: ^
<hr[m]>
srhb: I actually took a look at recursiveUpdate before posting this question. It looked like the right method to solve the problem but I wasn't entirely sure how to actually use it.
domogled has joined #nixos
<srhb>
hr[m]: I would say the easiest way to start out with without fiddling too much with the nixos modules to start out with, is to simply import a dumb attributeset with the default values.
<srhb>
hr[m]: As in: let alacrittyDefaults = import ./alacritty.nix
<srhb>
hr[m]: THen, programs.alacritty.settings = recursiveUpdate alacrittyDefaults { your overrides go here }
<srhb>
(where RHS of the update takes precedence on duplicate leaf keys)
<hr[m]>
srhb: The issue was that the nix expression is a function (I believe) that takes inputs, config and pkg. That actually solves my problem.
LysergicDreams has quit [Ping timeout: 248 seconds]
Makaveli7 has quit [Quit: WeeChat 2.5]
<srhb>
hr[m]: RIght, that's a nixos module (which home-manager calls a home manager module I guess)
<hr[m]>
I've never written a file with just and attribute set and not the standard {pkgs}: {} style so I just never thought about anything like that. Thanks so much
LysergicDreams has joined #nixos
<srhb>
hr[m]: You're welcome. Notes for later: Maybe the alacritty module could be changed so that multiple settings automatically merge with recursiveUpdate. Something to consider once you've got your feet more wet I guess :D
bakakuna has quit [Ping timeout: 245 seconds]
<srhb>
hr[m]: (Each "nixos option" has a merge strategy. The one for types.attrs is simply lhs // rhs -- which has the behaviour explained above.)
commande1 has joined #nixos
commander has quit [Ping timeout: 244 seconds]
<hr[m]>
Yeah, I looked into the home-manager file for alacritty to see if it was using a merge system. Maybe my first pr when I'm ready.
<jackdk>
srhb++ , thanks for taking over
<{^_^}>
srhb's karma got increased to 59
anon has joined #nixos
<srhb>
hr[m]: Excellent! :-)
anon is now known as Guest30790
ubert has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
nixnothing has quit [Remote host closed the connection]
is_null has joined #nixos
<{^_^}>
[nix] @basvandijk opened pull request #3012 → Allow builtins.pathExists to check the existence of /nix/store paths → https://git.io/fjS2T
ottidmes has joined #nixos
<{^_^}>
[nix] @basvandijk opened pull request #3013 → Disable findRuntimeRoots on darwin when running tests because lsof is slow → https://git.io/fjS2t
Ariakenom has quit [Read error: Connection reset by peer]
veske has joined #nixos
veske has quit [Client Quit]
<{^_^}>
[nix] @edolstra merged pull request #3012 → Allow builtins.pathExists to check the existence of /nix/store paths → https://git.io/fjS2T
<Miyu-chan>
This is my first time setting up a CI, but why are docker builds specifically important?
linarcx has quit [Client Quit]
linarcx has joined #nixos
<angerman>
so I'm getting: `output '/nix/store/52kvs215cs00byx3mxgj534vvdig87p5-x86_64-pc-mingw32-ghc-8.6.5' is not allowed to refer to the following paths: /nix/store/dv9i0hxd1y3s7w94xr5yi9qcxg1i75sf-ghc-8.4.4`; how do I find out which files exactly reference ghc-8.4.4?
<tazjin>
Mic92: Thanks! The main thing I need to figure out is what kubernetes' deal is (it does something to downloaded images that breaks with Nixery)
<tazjin>
I'll be investigating that in the evening
<tazjin>
if everything works out I'll submit a NixCon talk
Makaveli7 has joined #nixos
Guest30790 has quit [Ping timeout: 244 seconds]
<aanderse>
someone posted a link to cheap transportation finder to nixcon on discourse
<sphalerite>
Miyu-chan: it depends on the package set/interpreter
<Miyu-chan>
Yeah, fair enough. But IMO, it shouldn't from the start.
Zer0xp has joined #nixos
<Miyu-chan>
OTOH, I guess it's a bit more nuanced than that.
<Miyu-chan>
Since individual package sets have their own mkDerivation equivalent.
SovereignBleak has joined #nixos
meteo has joined #nixos
<ottidmes>
I cannot remember having this problem outside NixOS, why is it that I cannot serve PHP files from /home, any other directory works. If I bind mount /home to some other folder, it then too works. It is one of the few I have known for a while but unable to fix without workarounds
bakakuna has joined #nixos
<Miyu-chan>
arianvp: So I guess I half-found your problem. I don't think this should be set in configurePhase.
<Miyu-chan>
I think GOPATH(just like PYTHONPATH, and the like) should IIRC, be set up on setupHook.
<Miyu-chan>
arianvp: Anyways, I guess shellHook works here, for a quick fix. `shellHook = ''eval "$configurePhase"'';`
<__monty__>
Miyu-chan: The nix-shell thing depends on the language. Wouldn't work with haskell afaik.
<__monty__>
Oh, already answered in more general terms...
<Miyu-chan>
__monty__: Ah. I tried it out with Python. I used to only use Haskell, so that might be why I thought otherwise.
<Miyu-chan>
Now I no longer use Haskell soo
<SovereignBleak>
Do we know if the Pinebook Pro is supported by NixOS at this time?
<__monty__>
Well that's too bad : )
<gchristensen>
SovereignBleak: check out #nixos-aarch64 :) samueldr just ordered one, so maybe don't know yet
<SovereignBleak>
gchristensen: Thanks :)
Guanin has joined #nixos
<Miyu-chan>
I think python has the correct behavior though?
<Miyu-chan>
I'm not so sure what's the general consensus w.r.t. "how to use setupHook".
<__monty__>
Miyu-chan: Correct? GHC simply can't pickup packages that aren't registered or something. So it couldn't do what python does in this case.
<Miyu-chan>
Hm.
<Miyu-chan>
I haven't checked the Haskell/Nix system, so I can't really make an educated opinion about it. :/
ericsagnes has quit [Ping timeout: 276 seconds]
<Miyu-chan>
__monty__: What I'm thinking is that there is a part where GHC registers the package, right? Why not convert that into a setupHook. It doesn't have to be a part of the haskell package build itself.
hyper_ch2 has joined #nixos
<yorick>
I'm getting "waiting for locks or build slots" while there still are a lot of build slots
orbekk has joined #nixos
<__monty__>
Miyu-chan: I think the problem is `nix-shell -p haskellpackage` without a ghc to register it with would then run into problems. For python you just have to add the package's path to PYTHONPATH afaik.
<Miyu-chan>
Yeah. Pertty much what I'm thinking. Each package adds itself to `NIX_GHC_PATH` and GHC itself will have a setupHook of `ghc register $NIX_GHC_PATH` or something.
<Miyu-chan>
Maybe even have each package register itself as a setupHook.
<Miyu-chan>
Or ghc-pkg? Not sure what the tooling is.
<__monty__>
Miyu-chan: I think that doesn't work because you're not declaring all your inputs for GHC. So the derivation wouldn't be deterministic.
o1lo01ol1o has quit [Remote host closed the connection]
<Miyu-chan>
Hm, what do you mean by that?
ericsagnes has joined #nixos
o1lo01ol1o has joined #nixos
<arianvp>
Miyu-chan: thanks!!!
<arianvp>
that worked
hyper_ch2 has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<__monty__>
Miyu-chan: The built GHC would differ depending on which packages happen to be in NIX_GHC_PATH, that's impure.
orivej has joined #nixos
<Miyu-chan>
__monty__: Ohhh. The built GHC should not be affected by further loading of NIX_GHC_PATH.
fendor has quit [Ping timeout: 268 seconds]
<__monty__>
But it *is* because the package database is part of it.
<__monty__>
Unless you intend to have a wrapper that runs the hook at every invocation?
hyper_ch2 has joined #nixos
<Miyu-chan>
The architecture I'm thinking of is that `buildInputs = [ haskellPackage1 haskellPackage2 haskellPackage3 ghc ];` and each package has a setup-hook of `ghc-pkg register $out`. When `ghc` is called, it will have access to the libraries ghc-pkg is populated.
<Miyu-chan>
... libraries, becaush ghc-pkg is populated.*
<__monty__>
But you need a ghc to build the packages.
<__monty__>
And you can't add to a ghc's packages easily.
<Miyu-chan>
Right. I don't think the "needing a ghc to build the package" is much of a problem, except for circular dependencies w.r.t. build GHC itself.
<Miyu-chan>
Or is that specifically what the problem is?
<__monty__>
I'm not familiar enough with the infra or GHC itself to discuss this much further tbh.
<Miyu-chan>
Me neither honestly.
<Miyu-chan>
I guess I'll check out how `ghcWithPackages` handles this.
<__monty__>
Cabal install can apparently register libraries just fine, so I'm not sure why the nix infra can't do the same.
<__monty__>
Maybe to avoid cabal hell?
<__monty__>
But then again there's v2-*
phreedom_ has quit [Quit: No Ping reply in 180 seconds.]
phreedom has joined #nixos
andymandias has quit [Ping timeout: 272 seconds]
srid has quit [Ping timeout: 244 seconds]
andymandias has joined #nixos
<Miyu-chan>
Back. And seems like ghcWithPackages is arcane magic lol.
<Miyu-chan>
Also has these wrappers, which means that NIX_GHC and NIX_GHCPKG is used somewhere.
<Miyu-chan>
Found it.
<Miyu-chan>
# It's probably a good idea to include the library "ghc-paths" in the # compiler environment, because we have a specially patched version of # that package in Nix that honors these environment variables
<DariusTheMede>
When I do the cmake outside of nix, it populates a directory with various artefacts (including a makefile) and I can use those artefacts for debugging - I can't see a directory in /nix/store with those artefacts
<DariusTheMede>
Is there a way of persuading nix to keep the directory which cmake populates?
<immae>
(I wish I had this "locate" as a local tool)
hyper_ch2 has quit [Remote host closed the connection]
rsoeldner_ has joined #nixos
hyper_ch2 has joined #nixos
rsoeldner has quit [Read error: Connection reset by peer]
<Zer0xp>
Hey guys, so I want to use an application that isn't available in the nix repository. I have the tarball, and I would like to create a package so that my peers can also use it. What is the quickest way possible to getting this done ?
<Zer0xp>
Hey guys, so I want to use an application that isn't available in the nix repository. I have the tarball, and I would like to create a package so that my peers can also use it. What is the quickest way possible to getting this done ?
<Zer0xp>
Sorry about that, sent it twice by mistake.
<simpson>
Zer0xp: Write a Nix expression. You can make a clone of nixpkgs and add your change into the tree, or you can ship a standalone expression which relies on a system nixpkgs.
o1lo01ol1o has joined #nixos
<adisbladis>
DariusTheMede: You can override the install phase and also install those extra outputs.
pmiddend has quit [Quit: WeeChat 2.5]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<DariusTheMede>
adisbladis: thanks - so I just search the nix manual for "override the install phase"?
<ottidmes>
Anyone got a laptop with an intergrated Intel UHD 620 GPU? Whenever I boot my custom LiveCD, after selecting NixOS in the boot loader, I simply get a black screen, while the prebuild image for download on the website does work after a few seconds of having a black screen, and Arch/Ubuntu work without issue with their liveCDs
<aveltras>
anyone using nix docker tools to deploy apps on a non nixos machine ? what's your workflow ?
<__monty__>
aveltras: Maybe look into nix-bundle as well.
dsx has joined #nixos
unacceptable has quit [Remote host closed the connection]
<aveltras>
__monty__: bookmarked it, seems nice, however i was looking for something akin to nixops but not tied to a nixos target
<__monty__>
Hmm, I know there's morph, but I think that has the same problem.
unacceptable has joined #nixos
<adisbladis>
aveltras: Yes I deploy docker containers built with nix. Why?
<simpson>
aveltras: I use Kubernetes, so Nix-built images are only one part of the process. I've experimented with kubenix, but it's not a complete solution; you'll still have to kubectl.
<aveltras>
adisbladis: im just wondering about the "default workflow" regarding deployment, are you using docker-machine with nix buildImage ?
<adisbladis>
aveltras: No, mainly deploying to Kubernetes.
<aveltras>
ok, guess it's time to investigate about kubernetes then, thanks for your answers
<adisbladis>
aveltras: Re workflow it's pretty much `nix build container.nix && skopeo copy $(readlink -f result)`
<aveltras>
adisbladis: and your container.nix is using nixpkgs docker tools right ?
<adisbladis>
aveltras: Yeah
linarcx has quit [Quit: WeeChat 2.3]
linarcx has joined #nixos
linarcx has quit [Client Quit]
linarcx has joined #nixos
chiefgoat has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
linarcx has quit [Client Quit]
ThatDocsLady has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
linarcx has joined #nixos
arahael1 has quit [Ping timeout: 248 seconds]
vmandela has left #nixos ["Leaving"]
<{^_^}>
[nixpkgs] @toonn opened pull request #65604 → ranger: Add myself to CODEOWNERS for ranger → https://git.io/fjSoM
Zer0xp has quit [Quit: WeeChat 2.5]
orivej has quit [Ping timeout: 245 seconds]
dansho has quit [Quit: Leaving]
linarcx has quit [Quit: WeeChat 2.3]
arahael1 has joined #nixos
linarcx has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed 0 commits to revert-57097-qmake-header: https://git.io/fjSKJ
<{^_^}>
[nixpkgs] @grahamc pushed 0 commits to libreoffice-update: https://git.io/fjSKI
<{^_^}>
[nixpkgs] @grahamc pushed 0 commits to writeTextFile-fix-comment: https://git.io/fjSKL
hyper_ch2 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
linarcx has quit [Quit: WeeChat 2.3]
linarcx has joined #nixos
Hail_Spacecake has quit [Remote host closed the connection]
Hail_Spacecake has joined #nixos
winem_ has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @grahamc closed pull request #65604 → ranger: Add myself to CODEOWNERS for ranger → https://git.io/fjSoM
hyper_ch2 has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 264 seconds]
pepegar has joined #nixos
bakakuna has quit [Ping timeout: 268 seconds]
<angerman>
grahamc[m]: doesn't seem like it's working, hmm... `nixops deploy -d ... --option builders "ssh://root@$ip x86_64-linux"` is what I tried, and then it complains that it can't build x86_64-linux as it's on x86_64-darwin.
johanot has quit [Quit: WeeChat 2.4]
unacceptable has quit [Remote host closed the connection]
roconnor has joined #nixos
iyzsong has quit [Ping timeout: 276 seconds]
pepegar has left #nixos ["ERC (IRC client for Emacs 26.1)"]
thc202 has quit [Ping timeout: 268 seconds]
thc202 has joined #nixos
linarcx has quit [Quit: WeeChat 2.3]
linarcx has joined #nixos
linarcx has quit [Client Quit]
linarcx has joined #nixos
palo has quit [Quit: WeeChat 2.4]
linarcx has quit [Client Quit]
<Taneb>
What's the policy for Haskell packages that are on Hackage but not Stackage (e.g. Agda)
Soo_Slow has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 246 seconds]
rsoeldner_ has quit [Remote host closed the connection]
<vaibhavsagar>
Taneb: seems like those are handled on a case-by-case basis
wildtrees has joined #nixos
<sphalerite>
immae: "locate" as a local tool exists — nix-index in nixpkgs :)
<manveru>
hmm, if i have `[ ./some ./other ]`, is there any way to get the original filename again?
<mdash>
manveru: pretty sure it's a one way conversion to a store path
<immae>
sphalerite: well, that’s not exactly what I meant :D
<manveru>
ok... i was afraid of that :|
<mdash>
ottidmes: I do (Lenovo X1c6)
<manveru>
guess it's tine for __structuredAttrs :P
<manveru>
*time
<mdash>
immae: how's it different?
<sphalerite>
immae: how not?
<immae>
I want the same answers to the same questions :p
<inquisitiv3>
My system don't want to connect to my VPN provider using OpenVPN. I've added `services.openvpn.servers.[server].config = { '' config /etc/openvpn/[config].conf ''; };` to my configuration.nix file, and rebuilt it with `nixos-rebuild switch` without complaints.
<inquisitiv3>
Restarted my machine, but it still don't want to connect to my VPN provider. I guess I've missed something, but can't find anything on the wiki or in the manual.
LinuXit has joined #nixos
<LinuXit>
Anyone who fixed lutris on nixos?
<sphalerite>
immae: same data it always uses, from the binary cache
<LinuXit>
Or can play ESO on Nixos
<sphalerite>
mudri: fyi there's some talk about nix stuff in scotland going on in #nixos-chat in case you're interested :)
<immae>
sphalerite: the binary cache doesn’t contain information about presence of some files in /bin (does it?), so I don’t understand how it can answer so quickly...
<sphalerite>
immae: the binary cache has file lists for all the packages built by hydra, nix-index downloads all these, indexes them, and searches through the local index
<immae>
ah, so it’s a special binary cache
DariusTheMede has quit [Ping timeout: 244 seconds]
<sphalerite>
immae: yeah, although any cache populated by a hydra instance should have that ability I think
<gchristensen>
that information is provided by the channel, not the cache
<__monty__>
Uhm, apparently pass doesn't pass its testsuite, how do I fix this? http://ix.io/1Q4b
<immae>
sure
* __monty__
update's his channel
<immae>
Then whay url should I contact to make the call?
<infinisil>
I should really clean up the nixbot code that does the nix-locate thing..
<__monty__>
sphalerite: I'd already done that.
<__monty__>
Well, chown -R user:wheel
<sphalerite>
immae: almost — not using store-paths.xz, but yes — it evaluates all the packages, then checks for each one if a listing is available and if so downloads it and indexes it.
<angerman>
how do I point nixops at a custom nixops source? It seems that `nixos-generate-config --no-filesystems --show-hardware-config` is executed as a shell script rather than a perl script.
DariusTheMede has joined #nixos
<__monty__>
sphalerite: Should that be user:staff maybe? Apparently the lockfile permissions are user:staff.
<immae>
sphalerite: fair enough, thanks. That seems a lot of potential burden to the binary cache as well as duplicate work for each local installation
<sphalerite>
__monty__: the group shouldn't matter if you're the owner
o1lo01ol1o has quit [Remote host closed the connection]
<sphalerite>
immae: I don't think it's much of a problem for the cache, since it's delivered/cached by fastly (backed by S3)
ddellacosta has quit [Ping timeout: 244 seconds]
<immae>
ah cool
<immae>
I may build my own locate then :D
<sphalerite>
immae: but yeah, it would be cool if a pre-built index could be part of the channels
<sphalerite>
immae: why?
LysergicDreams has quit [Ping timeout: 268 seconds]
domogled has joined #nixos
<immae>
I don’t like to write private commands in public channels
<sphalerite>
immae: but what's wrong with nix-locate?
<immae>
nothing? if the binary cache is happy with me building it regularly, then it’s alright
<sphalerite>
immae: oh and if you don't mind infinisil and gchristensen having access to your queries you can message {^_^} directly as well
LysergicDreams has joined #nixos
<gchristensen>
your messages are too boring to look
<sphalerite>
immae: then why build your own locate ?
<sphalerite>
__monty__: oh right, do the same with ~/.cache I guess
<gchristensen>
send us something juicy!
<immae>
sphalerite: wrong phrasing from me, if I build anything it would be a public endpoint to be called by other people
<sphalerite>
immae: oooooh right
<gchristensen>
that'd be a cool thing to host on nixos.org
<immae>
I’m not there yet, but yes I guess :)
DariusTheMede has quit [Ping timeout: 245 seconds]
<sphalerite>
hmm, the index is 22MB
<samueldr>
using nix-locate locally is way more powerful than ,locate :)
<sphalerite>
that's quite big but not unreasonably so, it could just download the database and run client-side (emscripten?)
<viric>
the usual way is "btrfs send --no-data | btrfs receive --dump" I think
<viric>
I don't like how zfs deals with ram...
<wildtrees>
mmm my avahi service for hostname.local doesnt seem to work right until I nixos-rebuild test after a reboot, is something wrong? thought nixos didnt work that way :(
<gchristensen>
sure
<viric>
I prefer btrfs
<wildtrees>
what can I do to fix that?
<viric>
wildtrees: as you describe it, it sounds like a bug
ddellacosta has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixops] @clefru opened pull request #1187 → Convert libvirtd to use make-disk-image → https://git.io/fjSPL
<wildtrees>
:( what can I do to work around it? other thatn running that comman after reboot
<gchristensen>
can you show us the log of running nixos-rebuild after you reboot?
<__monty__>
Hmm, I keep getting this mkdir error because of home-manager. I've asked in the channel but not gotten any response. Anyone here know how to find out where the problem is and how to solve it? http://ix.io/1Q4v
fendor has joined #nixos
etrepum has quit [Read error: Connection reset by peer]
savanni has quit [Ping timeout: 276 seconds]
mitsuhiko has quit [Ping timeout: 272 seconds]
dukedave has quit [Ping timeout: 258 seconds]
etrepum has joined #nixos
teozkr has quit [Ping timeout: 258 seconds]
savanni has joined #nixos
<amf>
Will Nix interfere with a directory I keep at /? Or should I put that data under something like /var ? As a newcomer, I'd hate to put a bunch of files in /pub to have them wiped out on next rebuild
endformationage has joined #nixos
mitsuhiko has joined #nixos
teozkr has joined #nixos
mitsuhiko has quit [Max SendQ exceeded]
<qyliss^work>
amf: it will not
dukedave has joined #nixos
<qyliss^work>
(but back up! and don't blame me if it goes wrong)
mitsuhiko has joined #nixos
<amf>
I'm moving to Nix because I want to get better at backups and restores :)
<wildtrees>
got a avahi working on reboot without a nixos rebuild, I had to add a services.avahi.hostName = "hostnamereHere" ; it said it defaults to hostname but I guess it doesnt without a daemon restart, I saw it drop root for the avahi daemon in journactl -b output and there was some minor errors before, gonna check and still see if there are any errors
chloekek has joined #nixos
<wildtrees>
yea seems all the errors are gone for avahi out of the journalctl -b output :D
eraserhd has quit [Quit: WeeChat 2.5]
jtojnar has joined #nixos
sorear has quit [Ping timeout: 252 seconds]
r0bby has quit [Ping timeout: 252 seconds]
mitsuhiko has quit [Ping timeout: 252 seconds]
philipcristiano has quit [Read error: Connection reset by peer]
teozkr has quit [Ping timeout: 264 seconds]
domogled has quit [Quit: domogled]
ctp has quit [Ping timeout: 264 seconds]
dukedave has quit [Ping timeout: 264 seconds]
etrepum has quit [Ping timeout: 268 seconds]
sorear has joined #nixos
r0bby has joined #nixos
philipcristiano has joined #nixos
ctp has joined #nixos
Drakonis has quit [Quit: WeeChat 2.4]
mitsuhiko has joined #nixos
etrepum has joined #nixos
teozkr has joined #nixos
<__monty__>
How do I nix-shell an override? `-f .` isn't available to use with -p and nix-shell . -p complains and nix-shel . -A somePkg.override complains.
eraserhd has joined #nixos
<azazel>
gchristensen: do you spare a lobste.rs invitation?
dukedave has joined #nixos
Izorkin has quit [Ping timeout: 244 seconds]
___laika has joined #nixos
r0bby has quit [Max SendQ exceeded]
r0bby has joined #nixos
mexisme has joined #nixos
r0bby has quit [Max SendQ exceeded]
Izorkin has joined #nixos
__monty__ has quit [Ping timeout: 258 seconds]
r0bby has joined #nixos
philipcristiano has quit [Ping timeout: 246 seconds]
savanni has quit [Ping timeout: 245 seconds]
savanni_ has joined #nixos
philipcristiano has joined #nixos
teozkr has quit [Ping timeout: 245 seconds]
hoijui has joined #nixos
ericsagnes has quit [Ping timeout: 264 seconds]
<vaibhavsagar>
azazel: I can spare one if you send me a PM with your email address
fusion809 has quit [Remote host closed the connection]
lovesegfault has joined #nixos
enuiarte has quit [Ping timeout: 264 seconds]
kbZ has joined #nixos
<kbZ>
too many nerds in here, tell ya'wat
<gchristensen>
kbZ: welcome to #nixos! are you a new user?
<__monty__>
The tests only fail on darwin apparently.
enuiarte has joined #nixos
<Neo-->
I'm trying to debug a terraform provider but I'm not sure what's the best way to get the source code of the provider into the closure? I got it with src = fetchTarball { url = "file://path-to-tar-file"}; but there's probably a better way not involving first compressing and then re-compressing everything?
orivej has quit [Ping timeout: 272 seconds]
<Neo-->
any suggestions?
<kbZ>
Thanks Graham, I have tested just once with Nix, I'm a fan tho
srid has quit [Ping timeout: 246 seconds]
<clever>
Neo--: src = ./path/to/source;
asheshambasta has quit [Ping timeout: 276 seconds]
<gchristensen>
vmandela: one thing I've done since we last talked is moved my nix install matrix testing in to buildkite, so it is hopefully easier to test PRs, but the last step (actually being able to test a PR, and not just the current release) is not hooked up: https://buildkite.com/grahamc/nix-install-matrix/builds/32
<gchristensen>
the second link is the outputted report
<infinisil>
kiwi_85: Doesn't look like it
<mdash>
kiwi_85: please contribute :-D
DariusTheMede has joined #nixos
<vmandela>
gchristensen, so we wait until the PR testing is hooked up ? is the code change OK otherwise ?
DariusTheMede has quit [Ping timeout: 245 seconds]
palo has joined #nixos
noudle has joined #nixos
ambro718 has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<kiwi_85>
mdash first I will spawn a VM with a traditional distro and check if that RTS is fun. I had troubles with searching for zero-k in Nixpkgs. Not very greppable term if we take into account Nixpkgs naming conventions.
<mdash>
'zero-k' is a perfectly reasonable name
<tilpner>
kiwi_85: The engine appears to be packaged already, if that's any help
<lordcirth>
It's pretty fun.
<tilpner>
> :p map (p: p.meta.description) [ spring springLobby ]
<{^_^}>
[ "A powerful real-time strategy (RTS) game engine" "Cross-platform lobby client for the Spring RTS project" ]
jtojnar has quit [Ping timeout: 268 seconds]
<{^_^}>
[nixpkgs] @jonringer opened pull request #65607 → gopro: init at 1.0 → https://git.io/fjSXM
srid has joined #nixos
jtojnar has joined #nixos
<{^_^}>
[nixpkgs] @primeos pushed to master « k9copy, kpmcore: Mark as broken »: https://git.io/fjSX9
enuiarte has quit [Ping timeout: 264 seconds]
Jackneilll has quit [Remote host closed the connection]
ris has joined #nixos
kiwi_85 has quit [Remote host closed the connection]
bakakuna has joined #nixos
ddellacosta has joined #nixos
phreedom has quit [Ping timeout: 260 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
<{^_^}>
[nixpkgs] @Lassulus pushed commit from @magenbluten to master « suricata: init at 4.1.4 »: https://git.io/fjS1J
drakonis is now known as Drakonis
Drakonis is now known as drakonis
NinjaTrappeur has joined #nixos
Izorkin has joined #nixos
hmpffff has joined #nixos
hmpffff has quit [Client Quit]
Izorkin has quit [Client Quit]
Izorkin has joined #nixos
lpil has joined #nixos
bakakuna has quit [Ping timeout: 245 seconds]
<lpil>
Hi friends. I'm following the nixops guide and after deploying a machine to digital ocean using the example I'm unable to make a HTTP request to the nginx server running on it from my laptop, though I can ssh in and make the request via the localhost loopback. Why might this be? https://nixos.org/nixops/manual/#sec-deploying-to-digital-ocean
phreedom has joined #nixos
zupo has joined #nixos
<samueldr>
nixos has a firewall by default, looks like the example doesn't punch a hole for 443 or 80
<samueldr>
nixos will not manage the firewall automagically, *except* for SSH, because it would be inconvenient otherwise
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
freddie-freeload has quit [Ping timeout: 272 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
mexisme has joined #nixos
asheshambasta has joined #nixos
inquisitiv3 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Diagon has quit [Quit: Leaving]
asheshambasta has quit [Ping timeout: 252 seconds]
inquisitiv3 has quit [Ping timeout: 250 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__monty__>
In resolving my problem I'm trying to set the priority for qtbase but `nix-env --set-flag priority 4 qtbase/qtbase-5/qtbase-5.12/qtbase-5.12.0/qtbase-5.12.0-bin` aren't working. How do I find the correct name to set the flag for? Setting it for the buildEnv I'm installing "linuxTools" doesn't seem to work because it's overriden again when installing that.
das_j has quit [Remote host closed the connection]
psyanticy has quit [Quit: Connection closed for inactivity]
<fendor>
__monty__, wow, great, thx! will try my luck with that!
<fendor>
is that more modern than cabal2nix? or how does it relate to the standard functions you have in nix?
<clever>
fendor: and there is also #haskell.nix on freenode
<clever>
fendor: cabal2nix will just translate a single cabal file into a single nix file, and ignores the if statements in the cabal file, and version constraints
<clever>
fendor: haskell.nix translates the entire build plan, obeying things like your stack file, and translating cabal if statements into nix if statements
<clever>
so you can tell haskell.nix your doing a windows build, and it will correctly apply the conditional deps in the cabal files
Czen has quit [Ping timeout: 258 seconds]
<fendor>
clever, can nix cross compile to windows? 0.o why isnt that a default tool?
<clever>
fendor: iohk wrote haskell.nix to support cross-compiling haskell to windows
<clever>
fendor: the existing nixpkgs stuff at the time could cross-compile to windows, but didnt obey if statements in cabal files, so it tried to build unix packages for windows
___laika has quit [Read error: Connection reset by peer]
___laika has joined #nixos
ddellacosta has joined #nixos
<fendor>
clever, really cool, thank you!
bakakuna has joined #nixos
kiloreux has joined #nixos
<bsima>
can nixops be used in a multi-user setting? Last time I looked it was single-user only because of the central sqlite database
<clever>
bsima: typically, i use it with a single user that everybody should ssh into before running nixops
<bsima>
clever: sounds like how i've used salt in the past
<clever>
kiloreux: as long as you have the package.json and yarn.lock, you should be able to
unacceptable has joined #nixos
<kiloreux>
clever, from the example. It seems like they're only allowing mkYarnPackage which requires the source code. I couldn't find further docs or samples
<clever>
kiloreux: i think you just want mkYarnNix
zmlww has quit [Changing host]
zmlww has joined #nixos
<kiloreux>
clever, it seems like it's used to generate the yarn.nix file. Thank you. How could I possibly use that file with other attributes to install it normally in a default.nix file?
<kiloreux>
Would using callPackage be enough?
Sellerie has joined #nixos
<Sellerie>
Hi, I have a question: I just found the install manual and wonder why systemd-boot is mandatory for efi targets, when grub also supports efi?
<Sellerie>
ajs124 thanks, according to the guide systemd-boot is set automatically
<ajs124>
Sellerie: I opened the manual. Not sure why it says _must_ there. I personally prefer systemd-boot, but sometimes grub does come in handy.
<azazel>
Sellerie: it's preset in the configuration.nix that is auto-generated in order to install into the system: that said, you will have to adapt it to your need....
<samueldr>
Sellerie: systemd-boot isn't mandatory, though yes, the installation manual is misleading in that particular step
<clever>
i prefer grub, its capable of more things
unacceptable has quit [Remote host closed the connection]
<ajs124>
That's exactly what I like about systemd-boot. IMO for a bootloader, more is less. And I like bootctl.
bakakuna has quit [Ping timeout: 245 seconds]
linarcx has quit [Quit: WeeChat 2.5]
<Sellerie>
As I share clever's view, I'd prefer to use grub. thanks for the info!
<clever>
ajs124: until you need to use memtest86, or boot on legacy
<ajs124>
Right, memtest86-efi still isn't in nixpkgs, is it?
winem_ has quit [Ping timeout: 264 seconds]
m0rphism has quit [Ping timeout: 268 seconds]
<ajs124>
It actually looks like it is. So memtest shouldn't be a problem anymore @clever
<ajs124>
boot.loader.systemd-boot.memtest86.enable exists :O when was that added?
<clever>
ajs124: it may still need a nixos option, to add it to the sstemd-boot cfg
<clever>
what???
<ajs124>
ye. I never knew :D
unacceptable has joined #nixos
<Sellerie>
I just got into the project. How long does it take for a person that is quite experienced with Linux to write a first config from scratch?
kiloreux has quit [Remote host closed the connection]
<averell>
just a running config will not take long
<averell>
you can tinker forever basically after that though
ericsagnes has joined #nixos
webster23_ has quit [Ping timeout: 264 seconds]
<__monty__>
Hmm, nix-env just threw `error: cannot convert a function to JSON`. Why would nix convert a list (for a buildEnv) to JSON?
<azazel>
Sellerie: "understanding NixOS" was for me a factor of two base problems: understanding how to configure a system using "configuration.nix" file ("man configuration.nix" is one of your friends) and learn how to use Nix language, coming mostly from an imperative language background
umachan has joined #nixos
<azazel>
you can accomplish a basic knowledge on the former but you will not go far without knowing your way around the latter
<Sellerie>
Well I thought about generating a config file tomorrow because I start a new job on thursday and I'd like to test that xD
<arcnmx>
__monty__: lack of brackets around an override or something? or just something in the list isn't a derivation
Jackneill has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @primeos merged pull request #64258 → lsb-release: Fix/replace with a custom Bash script → https://git.io/fj6m8
<{^_^}>
[nixpkgs] @primeos pushed to master « lsb-release: Fix/replace with a custom Bash script (#64258) »: https://git.io/fjSSF
<Sellerie>
But in that case I'll probably just go with a "usual" distro at first I guess?
<averell>
i think setting up your work machine with nixos is a bit risky, yes
<averell>
because if for example something is not packaged, that will be a major roadblock
<Sellerie>
Yeah that makes sense
<arcnmx>
(as for why json, ugly builder)
<Sellerie>
Especially when I have no experience with nix
knupfer has quit [Ping timeout: 272 seconds]
<averell>
you can use it on top of your other distribution for a bit, or convert a server somewhere to experiment
unacceptable has quit [Remote host closed the connection]
<Sellerie>
or a vm on my local machine?
<averell>
yes, that is also easy
<__monty__>
arcnmx: I was missing parens around a function and its argument. But why is JSON involved at all?
<averell>
that said i used it for work, and escaped to docker and such when stuff didn't work natively. but it's a timesink, so not ideal for a new job.
<arcnmx>
contrast with say symlinkJoin which just takes a list of paths instead because all it does is lndir them all
spacekookie has quit [Quit: **agressive swooshing**]
fionnan has quit [Ping timeout: 268 seconds]
<arcnmx>
__monty__: *shrug* it's just using it to tag drv paths with a priority
spacekookie has joined #nixos
<__monty__>
arcnmx: Thank you.
<arcnmx>
I'm not sure if there's any reason it couldn't have just sorted the list by priority instead, but maybe it cares about failing out when same-priority items conflict o:
<{^_^}>
[nixpkgs] @JohnAZoidberg opened pull request #65616 → nixos/tests/cassandra: Test jmxPort → https://git.io/fjS92
justanotheruser has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
Neo-- has quit [Ping timeout: 252 seconds]
<charukiewicz>
Is there any way to specify a subdirectory of a git repository when using src = fetchgit { ... }?
abathur has joined #nixos
carloabelli has joined #nixos
<andi->
`sourceDir`
<arcnmx>
there's sourceRoot = if you just want to do the build within a subdir... if you're trying to avoid excessive downloads though...
<andi->
ahh sourceRoot it is..
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
<arcnmx>
I like the fetchsvn with github approach but the real answer is there's not much better than maybe downloading release tarballs instead (like fetchfromgithub already does?)
__monty__ has quit [Quit: leaving]
<carloabelli>
I'm having trouble with firefox using the proper ui font. Other GTK applications are picking up the font fine
<charukiewicz>
arcnmx: is sourceRoot one of the args inside of the fetchgit record?
<charukiewicz>
I'm getting anonymous function at /nix/store/vf7s8c1fyckvsi3wccd2kri3dl4msw80-source/pkgs/build-support/fetchgit/default.nix:15:1 called with unexpected argument 'sourceRoot'
<arcnmx>
charukiewicz: it's a mkDerivation/stdenv argument
<arcnmx>
it basically just tells the build to chdir into a subdir before running most configure/build/etc phases iirc
<charukiewicz>
even at the top level of mkDerivation I'm getting 'unexpected argument sourceRoot'. is this a new argument? I'm on Nix 2.2.1 if it matters
<clever>
charukiewicz: can you pastebin your expr?
<charukiewicz>
clever: thanks! looks like that worked. I appreciate the help.
<clever>
charukiewicz: i believe cabal2nix --subdir also does that for you
<charukiewicz>
ah I think you're right: --subpath PATH Path to Cabal file's directory relative to the URI
<clever>
charukiewicz: and that will do the postUnpack for you
thomashoneyman has joined #nixos
<thomashoneyman>
hey folks! i've been having a bit of trouble with my 2015 Macbook Pro intermittently waking up from sleep and often getting quite hot; if not connected to power, this will happen until the laptop dies
<thomashoneyman>
i've imported the 12,1 Macbook Pro hardware configuration from nixos-hardware
<thomashoneyman>
but I'm continuing to see the issue
<thomashoneyman>
anyone know of the right place to look in documentation for this?
xnqg8h has quit [Ping timeout: 245 seconds]
domogled has quit [Ping timeout: 272 seconds]
hio has quit [Quit: Connection closed for inactivity]