<excelsiora>
gchristensen: I ran mypy on it, I'll see what I can do now...
mexisme_ has quit [Ping timeout: 240 seconds]
boxscape has quit [Remote host closed the connection]
<excelsiora>
gchristensen: I'm looking at backends...
<gchristensen>
great!
abathur has joined #nixos
vykook has quit [Ping timeout: 255 seconds]
<excelsiora>
gchristensen: I see a little that can be simplified a tiny bit (solution should work in 2.7+) shall I simplify it? Are we trying to support Python 2.7? 2.6?
<{^_^}>
nix#8 (by edolstra, 7 years ago, open): Support private files in the Nix store
<NemesisD>
how can i figure out where an executable in my ~/.nix-profile/bin comes from? i'm using home-manager but i can't figure out why this binary is still available
<excelsiora>
gchristensen: how do you feel about __slots__?
<NemesisD>
cole-h: i'm not sure i follow. if i run `realpath ~/.nix-profile/bin/certbot` it says `/nix/store/18ayr7cydd0f2h7lzqiyra545xi3xcdb-certbot-0.39.0/bin/certbot`, but im not sure what that tells me. i don't directly ask for certbot anywhere (i'm actually trying to debug certbot but i removed all references to it i thought)
erictapen has joined #nixos
koleesch_ has quit [Remote host closed the connection]
koleesch_ has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.6]
<excelsiora>
gchristensen: what branch should I branch from?
<gchristensen>
starting-with-types or whatever is closely named to that :)
<cole-h>
NemesisD: You might not have `home-manager switch`d yet, if you previously did have certbot in your home.nix config somewhere.
<excelsiora>
gchristensen: also, you have a semantically abstract base class that requires a classmethod, so would it make sense to subclass ABC instead of object and use the abstractmethod decorator in that case?
vykook has quit [Ping timeout: 256 seconds]
<cole-h>
NemesisD: If it shows up in `nix-env -q`, it means you installed it with `nix-env` and it needs to be uninstalled with `nix-env --uninstall certbot`
<NemesisD>
cole-h: i just ran it to be sure. i also removed all previous generations.
werner291 has quit [Quit: werner291]
<NemesisD>
cole-h: hmm it doesn't show up in `nix-env -q certbot`. i nevertheless ran `nix-env --uninstall certbot` and its still in my `~/.nix-profile/bin`
<cole-h>
Probably won't change anything, but try `nix-env -q` without specifying certbot
<NemesisD>
cole-h: it just tells me `home-manager-path`
<cole-h>
Btw, certbot is pulled in by `letsencrypt`
skrzyp has quit [Remote host closed the connection]
<cole-h>
`nix-index` is a very nice tool (which provides `nix-locate`, which is how I found that :P)
skrzyp has joined #nixos
<NemesisD>
cole-h: so what i'm actually trying to do is provision certbot with `certbot-s3front` which is a pip package. it isn't in python7Packages for some reason
<NemesisD>
i went down a weird rabbit hole of pypi2nix but didn't get very far. maybe that stray certbot was shadowing the one i was installing
nerdmaxx has joined #nixos
<NemesisD>
generally speaking i don't really know how to install a python with pip-only packages installed. i'm not sure i understand why some packages are in the pythonPackages set and some aren't
<cole-h>
If they aren't in the set, it's because nobody's put them there yet ;)
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvgQM
bhipple has quit [Ping timeout: 240 seconds]
vykook has joined #nixos
bhipple has joined #nixos
catvector has joined #nixos
ixxie has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixpkgs] @cdepillabout merged pull request #81373 → haskellPackages.stack: get building with ghc882 → https://git.io/JvgaZ
<{^_^}>
[nixpkgs] @cdepillabout pushed 3 commits to haskell-updates: https://git.io/JvgQN
skykanin has joined #nixos
skykanin has quit [Client Quit]
philr has quit [Ping timeout: 256 seconds]
malSet has quit [Ping timeout: 255 seconds]
vykook has quit [Ping timeout: 255 seconds]
vykook has joined #nixos
maddo has quit [Quit: See ya]
drakonis has quit [Quit: WeeChat 2.7.1]
eadwu_is_running has joined #nixos
thc202 has quit [Ping timeout: 248 seconds]
eadwu_is_running has left #nixos [#nixos]
lovesegfault has joined #nixos
vykook has quit [Ping timeout: 240 seconds]
lovesegfault has quit [Client Quit]
catvector has quit [Quit: Leaving]
lovesegfault has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
Guest84428111 has joined #nixos
eadwu has joined #nixos
vykook has joined #nixos
vykook has quit [Ping timeout: 258 seconds]
markus1189 has quit [Ping timeout: 255 seconds]
KeiraT has quit [Remote host closed the connection]
iyzsong has joined #nixos
KeiraT has joined #nixos
vykook has joined #nixos
ZaraChimera has quit [Quit: Leaving]
qubasa_ has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
iyzsong- has joined #nixos
qubasa has quit [Ping timeout: 255 seconds]
markus1189 has joined #nixos
<{^_^}>
[nixops] @AmineChikhaoui opened pull request #1236 → deployment.py: more mypy type checking → https://git.io/Jvg5O
iyzsong- has quit [Client Quit]
<Baughn>
Note to self: running *2,304* simultaneous GCC instances is a good way to OOM.
malSet has joined #nixos
<emily>
how did you manage that one?
<Baughn>
Easy.
<Baughn>
I have a 24-core CPU. 48 threads, nix.buildCores defaults to 0...
<Baughn>
... the worst case is 48 simultaneous build jobs, each of which uses `make -j48`.
<clever>
Baughn: nix does `-j48 -l48`, so if the load avg goes over 48, make stops spawning children
<Baughn>
The load average that's averaged over the last minute? :)
<clever>
not clear
<clever>
and yeah, a sudden spike can still murder the machine
<Baughn>
Although what murdered my machine was actually cabla.
<Baughn>
*cabal.
m0rphism has quit [Ping timeout: 240 seconds]
<Baughn>
GHC uses a lot more memory than GCC, and doesn't use make.
<clever>
ah, yeah
<clever>
and `ghc -j48` uses threads, not processes
<Baughn>
I'm tempted to wrap clone() with something that checks load.
<emily>
you know, make has a jobserver protocol it uses internally used for this exact purpose
<emily>
and that is documented and implemented by other software
<emily>
I don't know why Nix doesn't just implement that
<clever>
emily: i did always wonder how recursive make managed that
<emily>
it's a gross protocol btw :P but simple
<clever>
emily: i have also seen make forget about a dead child on the floor, and the entire thing grinds to a halt, waiting for a SIGCHLD from the corpse thats already dead
<clever>
its happened to make ~3 times, and to git once
<clever>
i think its a glibc bug, but i havent seen it in a while
eadwu has quit [Remote host closed the connection]
h0m1 has quit [Ping timeout: 272 seconds]
h0m1 has joined #nixos
erictapen has quit [Ping timeout: 258 seconds]
<erhandsome>
does nixos-install fallback to compile package when network is bad?
<clever>
erhandsome: yeah
iyzsong has joined #nixos
<erhandsome>
clever: thanks, my one core chromebook is hang in compile, guess i need a reboot
<clever>
erhandsome: if you fix the network, it should then download things
<clever>
erhandsome: you can just ctrl+c the install and try again
<wedens[m]>
evanjs: what program do you use to control backlight?
<wedens[m]>
I'd try 'light' (programs.light.enable = true) as it seems to work in more cases that e.g. xbacklight
<evanjs>
yeah I found xbacklight works and etc, trying to map the function keys (f5,f6) atm
<samueldr>
evanjs: for an asus laptop of mine, the fn+whateverfkeys didn't work until a couple linux releases in
<samueldr>
2014 laptop though
<samueldr>
though, I would expect kind of the same, that it may take a while until it's somehow handled by the kernel
<evanjs>
yeah... 2015 or so for mine I think
<samueldr>
hmmm
<samueldr>
if you're on 4.19, it might be relevant to check 5.5
<samueldr>
though if you're using an intel igpu
<samueldr>
you may not want to move off 4.19
<samueldr>
though 2015 I would have assumed it would be fixed if it was going to be
<samueldr>
but I don't even know what was done in my case :)
<evanjs>
I'm on latest :D
<evanjs>
5.5.7 atm
<evanjs>
And NVIDIA
<colemickens>
5.5.x, ditched Iris, VSCodium updated to a newer Chromium, I can happily say its been 2-3 weeks at least since an igpu hang
<colemickens>
for a totally random extra ancedotal data point :P
<samueldr>
colemickens: you know exactly what is going to happen
<samueldr>
I give it ~20 minutes
<samueldr>
though, on a more seriout note: "ditched Iris"?
<iqubic>
What is Iris?
<colemickens>
I had been building mesa.drivers with iris enabled and then setting some MESA env var so that it would use the new Intel Gallium based mesa driver.
chenhq2005 has joined #nixos
<colemickens>
Instead, I've removed the override, the env var and gone back to the i915/965 whatever it is, and things got better. (Or I got a kernel update at the same time, or there was a BIOS update in there for something else, who knows).
<colemickens>
I'll be curious to see what happens, I think Mesa 20 or 21 enables it and switches to it by default
<samueldr>
we'll see I guess :/
<samueldr>
it's a big mess of unreproducible issues it seems :(
<evanjs>
On another note, graphics switching would be nice, but I can't recall if it's possible with mine (980M, i7-4860HQ w/Iris® Pro Graphics 5200)
<colemickens>
It just sucks to see the system seemingly hung, and then see it manage to shut down when I hit the power button. I guess I haven't tried to ssh in yet when the gpu hangs, idk.
<colemickens>
I wonder how hard it is for Intel to fix, slash how hard they're trying. Seems to be dragging on and hurting their credibility to some extentn.
<samueldr>
hmm, now that I have "some downtime" from work, I can upgrade to 20.03, dogfood that dastardly update and see if 5.5 is fine here
<evanjs>
yeah I usually stick to latest (kernel) and nixos-unstable. Only problems I ever run into are vbox and nvidia, but I've been using qemu more than vbox lately, anyway :P
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iqubic>
So, I have this particular shell.nix. Is there any easy way I can modify this to specify a particular GHC version?
<iqubic>
I want to use specify my haskell version when using that.
<iqubic>
Wait.. that's the test.
koleesch__ has joined #nixos
<iqubic>
I just don't know how to modify my code to work with different compiler.
lovesegfault has joined #nixos
koleesch_ has quit [Ping timeout: 272 seconds]
<tA_>
howdy, im hoping to have multiple drives that are luks formatted, and having the keyfile for them be a partition thats had a key dd'ed to it. i read about it in a guide ages ago, but cant find it again, has anyone done this / have a better suggestion?
<cole-h>
How would I make an option that could be either an `attrsOf lines` or an `attrsOf (attrsOf lines)`? E.g. either `{ hello = "echo hello" }` or `{ hello = { body = "echo hello"; event = "something"; }; }`
<iqubic>
myType = with types; either (attrsOf lines) (attrsOf (attrsOf lines))
<iqubic>
And then just set the type of the option to `myType`
<fusion809>
Hello folks. I have found that the symbolic package for GNU Octave doesn't work on NixOS, even when SymPy, its dependency is installed using Nix. The symbolic package is installed using Octave's official package manager, so wouldn't the symbolic package's failure to work, despite SymPy being installed constitute a bug I should report at nixpkgs?
<fusion809>
Because what GNU Octave is complaining about when I try to use it is the inability to find SymPy.
jakobrs has left #nixos ["WeeChat 2.7.1"]
<fusion809>
I installed it system-wide too, SymPy, so it should find it.
dm9 has joined #nixos
<symphorien>
Installing a library with nix never works, and that's a feature
<fusion809>
OK, so I should be grateful that this package doesn't work then?
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #81427 → megasync: fix build with glibc 2.30 → https://git.io/JvgAK
<Arahael>
fusion809: Why did you choose nix? Think about it. How do you have deterministic dependencies and yet allow packages to somehow discover whatever pakages they want at runtime?
<symphorien>
fusion809: looking at the code, I expect you need octave.override { python = python.withPackages (ps: with ps; [ numpy ];) }
<symphorien>
s/numpy/sympy/ sorry
<fusion809>
I chose it initially as a challenge, but now I keep it partly because I have packages I maintain and hence I need a test system and because NixOS is quite stable.
<Arahael>
fusion809: I don't think nixos is designed to be a "challenge". ;)
<fusion809>
arahael: lol, it might not meant to be, but what something is intended to be and is are two very different things.
<sphalerite>
hm, "use nix-shell instead" isn't really the right course of action here
<symphorien>
fusion809 │ OK, so I should be grateful that this package doesn't work then? << I acknowledge it's unfortunate in your case; the intended use case is "I install version B of a library, and it does not break software depending on version A of the library"
Soo_Slow has joined #nixos
<{^_^}>
[nixpkgs] @primeos pushed to master « chromiumDev: Add the missing clang-format binary »: https://git.io/JvgA6
<fusion809>
symphorien: I'm not entirely sure where to put that expression. I'm a bit of noob when it comes to Nix the language. Do I put it in /etc/nixos/configuration.nix?
<symphorien>
yes, inside parens, in place of `octave`
koleesch_ has joined #nixos
koleesch__ has quit [Ping timeout: 272 seconds]
philr has joined #nixos
koleesch_ has quit [Read error: Connection reset by peer]
<fusion809>
Ah, built symphorien's attempted fix to my Octave problem and I'm still getting the still import error.
<symphorien>
do you know if octave is using the system python ?
<fusion809>
I have ( octaveFull.override { python = python.withPackages (ps: with ps; [ sympy ]);} ) under systemPackages in /etc/nixos/configuration.nix
<fusion809>
Don't know. I'd assume they would be, after all the package description page says that sympy needs to be installed on the host.
<symphorien>
maybe you can add (python.withPackages (ps: with ps; [ sympy ])) to systemPackages
<fusion809>
shall do, thanks
<symphorien>
it really depends on how octave executes python
<fusion809>
Same error still. Well, worst comes to worst I do keep an Arch Linux chroot I can run GNU Octave in instead.
Avaq has joined #nixos
<symphorien>
maybe a list thing to try: execute octave inside nix-shell -p python python.pkgs.sympy
<symphorien>
this will populate $PYTHONPATH
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
<fusion809>
That worked! Thanks.
<manveru>
so octave needs a wrapper script then?
<symphorien>
no impossible. Does it link libpython directly ?
<symphorien>
*not impossible
<fusion809>
(is that a question for me? I wouldn't be able to give you a definitive yes or no, I just know how to use it, not how it is built and packaged)
<manveru>
i'll take a look :)
<manveru>
not that i've ever used octave
m0rphism has joined #nixos
thc202 has joined #nixos
ixxie has quit [Ping timeout: 255 seconds]
kleisli has quit [Ping timeout: 255 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
chloekek has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
<Avaq>
Hi folks! I'm trying to update a remote nix machine using nixops, and I'm running into https://github.com/NixOS/nixpkgs/issues/53672 on the remote (preventing the update from activating). Now this issue has been closed a while ago, but I can't figure out the steps to take to update the appropriate system such that it no longer occurs.
<{^_^}>
#53672 (by eadwu, 1 year ago, closed): switch-to-configuration not interpreted using perl
jonten has joined #nixos
<Avaq>
I'm hoping one of you can see an obvious way forward, and can point me in the right direction. :)
<manveru>
`nix run -f channel:nixos-unstable file /nix/store/1mmpyghqyk3fdvk3hzf1wwrw2c20van0-perl-5.30.1/bin/perl`
<Avaq>
Thanks
<manveru>
hmm, lemme try that actually, not that i tell you nonesense
<manveru>
`nix run -f channel:nixos-unstable file -c file /nix/store/1mmpyghqyk3fdvk3hzf1wwrw2c20van0-perl-5.30.1/bin/perl`
<manveru>
that's the correct command
[Leary] has quit [Remote host closed the connection]
werner291 has quit [Quit: werner291]
o1lo01ol1o has quit [Remote host closed the connection]
Thra11 has joined #nixos
<ivegotasthma>
is it possible to get faster compilation times on haskell? I'm compiling with nix and each rebuild takes 1 minute on a hello world from overhead of the rebuild
cosimone has quit [Quit: Quit.]
<Avaq>
manveru: The command has been hanging for 10 minutes now. :P
<Avaq>
I'm running it in a Pi. But my internet speed is not terrible.
<manveru>
oh... yeah
<manveru>
then it might've been better to see if you have `file` already in your nix store
captn3m0 has quit [Ping timeout: 260 seconds]
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
<Avaq>
I think I might've corrupted the cache when I killed the previous command you sent that was missing the `-c file` part. I killed it right as it hit 100%.
<chreekat>
What's the best way to test a nixos module patch (pull request) without building your entire system against the branch in question? Some kind of overlay? I confess overlays, overrides, and similar not-quite-synonyms are sort of a perplexing blur to me
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<symphorien>
if you also changed some packages accordingly, you also need an overlay
<chreekat>
symphorien: cool, thanks. It's just a module change, as a matter of fact. I think I can guess at what I need to do now
Avaq has joined #nixos
anderslundstedt has joined #nixos
<OmnipotentEntity>
kind of a dumb question: where can I find /usr/share/dict/words on NixOS?
mexisme_ has joined #nixos
<OmnipotentEntity>
It's obviously not going to be in /usr, I assume it's somewhere in the Nix store once I install the right package. But I'm not sure which package it would be in and searching for it using the search string "words" has come up with nothing.
<Yaniel>
,locate words
koleesch_ has joined #nixos
<{^_^}>
Found in packages: ats2, geant4, tuxtype, neverball, plan9port, typespeed, factor-lang, link-grammar, gnome2.gtksourceview, gnome3.gtksourceview.dev, python27Packages.twisted, python37Packages.twisted, gnome3.gtksourceview4.dev, haskellPackages.words.data
<Yaniel>
uhh okay
<OmnipotentEntity>
I mean, nothing that seems useful
<OmnipotentEntity>
not literally nothing
<Yaniel>
yeah I was referring to this list seeming to be... less than useful
koleesch has quit [Read error: Connection reset by peer]
jonten has quit [Ping timeout: 240 seconds]
<MichaelRaskin>
Wait, scowl is not in the list?
<MichaelRaskin>
You want scowl
mexisme_ has quit [Ping timeout: 240 seconds]
<OmnipotentEntity>
today I learned, thanks
jgeerds has quit [Ping timeout: 258 seconds]
<simpson>
,locate words.txt
<{^_^}>
Found in packages: scowl, mediawiki, limesurvey, factor-lang, languagetool, haskellPackages.words.doc, haskellPackages.hangman.data
<simpson>
scowl calls it "words.txt", not "words". Yay?
kleisli has joined #nixos
<manveru>
you mean aspellDicts, dict, or hunspellDicts?
<adisbladis>
Or maybe even aspellWithDicts
<manveru>
:D
<manveru>
aanderse: tbh i haven't looked into it yet... will do that now :)
<Avaq>
manveru: Hey. Welcome back. It's me again.. :P -- A quick update: Instead of trying to call switch-to-configuration, I figured I'd just reboot into it. But the boot process gets stuck at "Starting kernel ...", or occasionlly it freezes just after, while its in the early stages of loading systems.
<OmnipotentEntity>
Avaq, have you tried booting to an older revision?
<Avaq>
omnipotententity: Yes. And that works. But the problem is that then I'm back to an older version of the kernel, where switch-to-configuration won't work due to #53672. manveru and I tried to troubleshoot it earlier today.
<Avaq>
So it seems that I *can* actually install multiple nixos revisions, each with their own kernel, but the only revision I managed to boot into is subject to #53672, which means I can't update it remotely with nixops.
<manveru>
but i got this: `/nix/store/3ybk4r1jcbc3ckb4jl231kg8qmw3jzmf-ruby-2.7.0/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.17.2) required by your /nix/store/p7hqwq0lc4z6ay1qw8rpanlkii796i2k-gemfile-and-lockfile/Gemfile.lock. (Gem::GemNotFoundException)`
<manveru>
so most likely all ruby packages will fail to even build now
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to release-19.09: https://git.io/Jv2JT
chagra has joined #nixos
<WhatisRT>
I want to install packages that are not in nixpkgs in my nixos install. What's the best way of going about this? I'm fine with writing a nix derivation, but I'm confused about where it is supposed to go and how to make a setup that works for a couple of different packages
monadplus has joined #nixos
<WhatisRT>
in particular, I probably want to use nix to build some stuff that I've been working on, which should then probably go into my git repo. if I want to contribute it back to nixpkgs at some point, how should I prepare for that?
<emily>
whatisRT: my suggestion is to make a file named package.nix or derivation.nix that has a package in the nixpkgs format (dependencies taken as arguments, etc.)
<emily>
then you can make a default.nix that imports nixpkgs and does pkgs.callPackage ./package.nix
<emily>
in your nixos config you can put (pkgs.callPackage ./path/to/package.nix {}) in your environment.systemPackages
<emily>
or add (self: super: { pkgName = self.callPackage ./path/to/package.nix {}; }) to nixpkgs.overlays to get it added directly to pkgs.pkgName
<emily>
(which also lets you override existing packages)
learnday20 has joined #nixos
<emily>
(you could also put that in overlay.nix in your repository if you want to be especially kind to people using it in their configs)
<emily>
and then my overlays have (import "${sources.mpv-notify-send}/overlay.nix") in them
<emily>
(sources. is because I use niv to manage my external repo dependencies)
myskran has quit [Ping timeout: 256 seconds]
<__monty__>
,overlays whatisRT
<{^_^}>
__monty__: Did you mean overlay?
<{^_^}>
whatisRT: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<__monty__>
The relevant docs, whatisRT ^
pnobre has joined #nixos
<emily>
oh, you're meant to use super for callPackage? oops
abathur has joined #nixos
monadplus has quit [Ping timeout: 260 seconds]
<__monty__>
emily: Afaiu you should use super for most things. So far I only use self for the actual packages.
<__monty__>
You wouldn't in whatisRT's case of course but if I'm just overriding some of its arguments or something.
<Taneb>
I've always used self for callPackage on the assumption that super.callPackage will have un-overidden packages
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nix-pills] @112358a opened pull request #127 → Fix typo in pill 6 → https://git.io/Jv2JD
<manveru>
but i guess both approaches may be confusing in some way
<emily>
youProbablyDon'tWantThisOne: useThisOne:
<manveru>
or just remove `self` and use multiple overlays instead :P
<manveru>
which i guess is worse than using `self`...
Uniaika has left #nixos [#nixos]
<emily>
maybe some name involving rec to indicate it's like the rec feature of records?
<WhatisRT>
So I'm also having an issue with fetchFromGitHub. I get the error message 'fetchurl requires a hash for fixed-output derivation', but I'm providing a hash there
positronicbrain has joined #nixos
<WhatisRT>
Could it be that the hash is wrong and it's just a misleading error message?
positronicbrain has quit [Client Quit]
<__monty__>
emily: Well the clearest name would be fixpoint, since it refers to the fixed point of the package set.
<symphorien>
how do you specify the hash, whatisRT ?
<raboof>
when building firefox with https://pastebin.com/D121QG1p and looking with gdb, I do see method names but not parameter values. Is there anything I could do to see parameters as well?
<emily>
ah, we can call it "fixed", and super can be "broken"
monadplus has joined #nixos
<WhatisRT>
symphorien: via the sha256 key passed to fetchFromGitHub
growpotkin has joined #nixos
<symphorien>
can you paste the full derivation somewhere ?
<evanjs>
*gets xbacklight working and proceeds to break it* 😃 leave it to me — assuming the command line flags I added might be suspect...
<symphorien>
whatisRT: this builds fine here...
pnobre has quit [Ping timeout: 255 seconds]
<WhatisRT>
symphorien: I'm using 'nix-build', should I use something else?
<symphorien>
nix-build foo.nix yes
<WhatisRT>
oh, I was in the wrong file and didn't notice
<WhatisRT>
the info that it should worked helped :)
<__monty__>
Taneb, emily: Ok, so according to my super rigorous and competent testing super.callPackage still uses the fixed point of the package set. It does not use the package set it was called from.
<emily>
makes sense (kinda? I mean I don't get how it works but I believe it)
Uniaika has joined #nixos
<Uniaika>
hello!
<Uniaika>
By any chance, are the nix binaries for linux x64 doing stack trampoline?
<OmnipotentEntity>
As in installed packages, or the binary named nix, or nixos related binaries (such as nixos-rebuild, nix, nix-channel, etc)?
<Taneb>
__monty__: good to know, thanks for investigating
<Uniaika>
my issue is: Each time since yesterday I want to install nix on my Fedora31 system, I get a `stack smashing` error, and the following core dump: https://termbin.com/57ub
<OmnipotentEntity>
That wouldn't be a result of a trampoline
<OmnipotentEntity>
the way that the stack smashing detection is run is by setting a value in a specific location of the stack and then later checking that the value is not modified.
<Uniaika>
okay
<OmnipotentEntity>
But to answer your direct question, I do not know.
<WhatisRT>
is there a good way to manually build a package in an interactive environment? I assume I want to use nix-shell, but can I tell it somehow to use a fetcher?
jgeerds has joined #nixos
klntsky has quit [Ping timeout: 240 seconds]
mjrosenb has quit [Ping timeout: 258 seconds]
<symphorien>
in a new, empty, temporary directory: run genericBuild
Deknos has joined #nixos
<symphorien>
it will fail on installPhase because the store is read only, but it can help debug what happens before
Deknos has left #nixos [#nixos]
knupfer has joined #nixos
<WhatisRT>
what is genericBuild? a nix function?
klntsky has joined #nixos
<symphorien>
a bash function, exposed by nix-shell
<symphorien>
so you can only use it inside nix-shell
<symphorien>
it will run the build of the package you ran nix-shell on
<{^_^}>
#81206 (by mweinelt, 2 days ago, open): neovim install fails with missing libluv.so.1
<cole-h>
ddima: Thanks, I'll give it a shot
malSet has quit [Ping timeout: 260 seconds]
<evanjs>
balsoft: Well yeah you’d need to operate on the services themselves. Hrm I wonder if there are any examples on GH
<evanjs>
We can’t use eg `services.*.`, can we? 😬
drakonis has quit [Quit: WeeChat 2.7.1]
<theduke>
hey there. I'm trying to run sway (wayland window manager) installed via nixpkgs on Arch Linux, which fails because sway can't find the mesa opengl drivers
<theduke>
I noticed on nixos hardware.opengl must be enabled
<theduke>
any idea how I can get this to run on Arch?
<cole-h>
ddima: What would the "type" be of that, if I wanted to allow either `functions = { func = "echo hi"; };` or `functions = { func = { body = "echo hi"; on_event = "event"; }; };`?
<cole-h>
I tried `either (attrsOf lines) (attrsOf (attrsOf lines))` but I get "value is a string while a set was expected"
pbb has joined #nixos
tjg1 has quit [Quit: No Ping reply in 180 seconds.]
peanutbutter144 has quit [Ping timeout: 260 seconds]
<stevenroose>
I read on the wiki that only Raspberry Pi 3+ is officially supported but that some personal effort is done by a contributor to support older Pis. What's the status on this?
<stevenroose>
I have 2 old Raspberry Pi 1s that I'd like to use with NixOS.
<samueldr>
stevenroose: the older raspberry pis are using dfferent architectures, armv6 and armv7
<samueldr>
armv6 is likely not going to be supported due to lack of hardware for builders
<samueldr>
armv7 is work-in-progress to better support in the binary cache
<samueldr>
the Raspberry pi 1 and 0, all variants, are all armv6
<simpson>
samueldr: What's the status for folks who are willing to stay up all night with their classic Pis as space heaters, waiting days for packages to compile? Or are they better off with Raspbian/etc?
sjuberman has quit [Read error: Connection reset by peer]
sjuberman has joined #nixos
<samueldr>
the actual status is "unknown", I think, though at one point in the past two years a subset of nixpkgs was still building natively on a raspberry pi of a contributor
<samueldr>
(but not cached in the official cache)
<samueldr>
currently one can bootstrap themselves using cross-compilation, with all the issues cross-compilation has within nixpkgs
<ddima>
cole-h: I think attrsOf lines should be fine, possibly you're not getting the value in the shape you are expecting it (maybe gist that too). Alternatively there are also submodules as types.
<cole-h>
ddima: Ah, I had my type thing munged. It should be `attrsOf (either lines (attrsOf lines))`
<cole-h>
Now I just need to make it play nicely without `body` specified
<evanjs>
balsoft: ahhh I remember now
<evanjs>
Try operating on options.security.pam.services.default
<evanjs>
If you go through options.default like that you can get the default values what you can operate on without rehearsing infinite
<ddima>
cole-h: ah, you meant both ways as supported ways. read the Q differently.
<evanjs>
Recursing* lol
<evanjs>
That should allow you to map over the services properly
<{^_^}>
[nixpkgs] @pacien opened pull request #81452 → riot-web: accept conf override as attrset and str → https://git.io/Jv2LT
<cole-h>
ddima: Updated the gist, but I think you get the "gist" of what I was saying now
<cole-h>
;^)
Avaq has quit [Quit: Leaving.]
<JonReed>
So, I spent more-than-I-am-willing-to-admit amount of time trying to figure out why xorg wasn't working in Qemu VM and it turned out to be having `kernelParams = [ "nomodeset" ];`. Admittedly, I just copied boot part of config without giving too much thought about what it does, but I used this configuration.nix as an inspiration:
<JonReed>
https://nixos.wiki/wiki/Virtualization_in_NixOS This is seemingly the only guide on virtualization in NixOS. RIP everybody else who will copy the part of this configuration and then try to it work it with GUI.
<balsoft>
evanjs: thanks, I'll try that
tjg1 has joined #nixos
jonten has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet_ has joined #nixos
<simpson>
JonReed: You could update it. FWIW kernel-side modesetting is usually what upstream Linux recommends, and I'd hope that on QEMU it is the right choice.
<cole-h>
ddima: I've got it figured out: just do `if isAttrs def then attrArgs def else ""` in the function line, and `if isAttrs def then def.body else def` in the body line
<ddima>
cole-h: nice. I guess now I'm curious to check out the fish module some time ;)
<cole-h>
Last step is to enforce valid args
<cole-h>
Would a submodule be ideal for this? Types are still a little awkward for me
dm9 has quit [Quit: WeeChat 2.7.1]
<evanjs>
Re https://github.com/NixOS/nixpkgs/pull/81452 — is using jq like this pretty accepted in installPhases and the like? Looking at adding something like that conf override to #72994 but unsure if there’s a better way to handle the JSON data
<{^_^}>
#81452 (by pacien, 16 minutes ago, open): riot-web: accept conf override as attrset and str
<simpson>
evanjs: Seems no worse than sed or awk. Readable to me; maybe folks might appreciate a comment explaining what is being done and why.
njd has quit [Ping timeout: 260 seconds]
<evanjs>
simpson: alright sounds good. Unsure if I’d need it for what I’m doing, just wasn’t sure if there was anything outside of eg to/fromJSON that might be better
<cole-h>
evanjs: I think it's a GH thing. I used to be able to as well (both here and in another project I'm not collaborator of)
justanotheruser has joined #nixos
peanutbutter144_ has quit [Ping timeout: 256 seconds]
lord| has quit [Ping timeout: 260 seconds]
malSet has quit [Ping timeout: 255 seconds]
o1lo01ol_ has quit [Remote host closed the connection]
<evanjs>
cole-h: interesting. Alright, thank you for confirming it’s not just me! I submitted feedback explaining the situation to GitHub after a support page prompted me but curious as to why it’s happening
<cole-h>
"Note: Pull request authors can't request reviews unless they are either a repository owner or collaborator with write access to the repository."
o1lo01ol1o has joined #nixos
<cole-h>
That, or recently changed
<stevenroose>
samueldr: actually lateron I found a message saying a community version of nixos for armv6 should work out of the box. Not sure about package support. I'll find out I guess :)
jmeredith has quit [Quit: Connection closed for inactivity]
<evanjs>
cole-h: Yeah I was seeing the same thing in the article I saw but, well, idk, it seemed to work way better when I could 😬 wonder if anybody else has insights on the issue (outside the nix community)
<{^_^}>
[nixpkgs] @svanderburg pushed 2 commits to release-20.03: https://git.io/Jv2t8
koleesch_ has quit [Ping timeout: 272 seconds]
ddellacosta has quit [Ping timeout: 258 seconds]
fusion809 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @svanderburg pushed 2 commits to release-19.09: https://git.io/Jv2t1
skykanin has joined #nixos
kleisli has quit [Ping timeout: 260 seconds]
v88m has quit [Ping timeout: 240 seconds]
<skykanin>
https://pastebin.com/GdF6SJEg so I have this build file for my emacs, but I was wondering if this is the correct way to "expose" hlint and hindent so I can access them from my emacs configuration file. Since I have a hs-lint.el file which requires hlint to integrate with emacs. This doesn't currently work. It seems like emacs isn't able to access hlint or hindent even though I'm building emacs with
<skykanin>
those dependencies.
<manveru>
skykanin: they need to be in PATH when emacs is running, i guess?
chloekek has quit [Ping timeout: 258 seconds]
peelz has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<manveru>
i'm using direnv-mode for this, other ways are to install it in your user profile or add it to the path of your emacs daemon, if you use that service...
bvdw has joined #nixos
<superbaloo>
would anyone have documentation or example about setuid binaries?
<{^_^}>
[nixpkgs] @wahjava opened pull request #81459 → Fix FreeBSD support → https://git.io/Jv2qQ
<Avaq>
Hi again! Is it possible to deploy to a different architecture using nixops? I'm trying to deploy to a raspberry pi running NixOS, and I'm seeing: `error: Package ‘raspberrypi-tools-2018-10-03’ in [...]/tools.nix:25 is not supported on ‘x86_64-linux’`.
wtuhfm^ has quit [Ping timeout: 256 seconds]
epl692 has quit [Ping timeout: 265 seconds]
epl692 has joined #nixos
mexisme_ has quit [Ping timeout: 255 seconds]
<Avaq>
The error message suggests setting `allowUnsupportedSystem = true`, but with it, some build fails.
KeiraT has joined #nixos
<adisbladis>
Avaq: You're gonna have to have access to an ARM builder (native, not cross)
<{^_^}>
[nixpkgs] @vcunat opened pull request #81460 → WIP: nixos/knot: allow full configuration by nix values → https://git.io/Jv2mv
<manveru>
i think you can set `boot.binfmt.emulatedSystems = [ "aarch64-linux" ];` for that?
<manveru>
though i still don't have the foggiest how that actually works :)
<samueldr>
it uses qemu-user to run userspace programs emulated, but syscalls native
<samueldr>
it's a semi-emulated environment, where some stuff works as expected, other did not ~2-3 years ago
<samueldr>
it's worse with armv6 and armv7, I think aarch64 is better
<manveru>
it works fine for my pi, at leaat
<manveru>
*least
<samueldr>
which pi?
<manveru>
3
<samueldr>
ah, so aarch64 :)
<manveru>
jup :)
<samueldr>
armv6 ~2-3 years ago had issues where some build processes detected an armv7 cpu
<Avaq>
manveru: Thanks! I'll give that a try. Just to be sure, that setting is for the command machine, right? Not the target. Also an update: I reinstalled NixOS altogether on my PI, and managed to get out of my kernel version lock that way.
<gchristensen>
but if you only use it if foo.enable = true, and foo.enable = false, the user doesn't need to specify it
<cole-h>
Just to be clear: if I have an option `asdf` and no default, and an option `zxcv` with a default of `null`, `asdf` will be required and `zxcv` won't, correct?
Avaq has quit [Quit: Leaving.]
<cole-h>
Well, at least it errors out with "used but not defined", which is good enough for me.
Avaq has joined #nixos
<Avaq>
manveru: I've rebuilt with aarch64-linux simulaion, but I'm getting the same error when attempting to `nixops deploy`. Is there anything else I need to do to tell nixops that it should be building for aarch64-linux on the "pi" machine?
<echelon>
/nix/store/l43p9mx6vmkc0bizw4hqxdpm8zys296s-builder.sh: /nix/store/smq5sld2fdy3cs2ly1sv518vrl7q5kd6-libtool-2.4.6/bin/libtoolize: /bin/sh: bad interpreter: No such file or directory
<echelon>
bad interpreter?
<echelon>
my /bin/sh is just a symlink to bash
<samueldr>
/bin/sh isn't in the sandbox
mjrosenb has joined #nixos
<echelon>
oh, so how do i fix the error
<samueldr>
patchshebangs I think should handle that
<evanjs>
balsoft: normally you’d just use options in place of config, but it looks like the default for security.pam.services is blank so idk what the best approach is 😬
<OmnipotentEntity>
I'm having some difficulties getting a CUDA application to run, my error says: "error CUDA driver version is insufficient for CUDA runtime version" I'm pulling in the latest versions of cudatoolkit and cudnn and I have nvidia driver version 440.59 installed according to nvidia-smi. Any ideas? The repository I'm testing is: https://github.com/lightvector/KataGo/ and my shell.nix is located here: https://pastebin.com/0upZWgkW
<rycee>
I'm trying to use `haskellPackages.developPackage` in a `default.nix` file but when I start a nix shell the ghc I get seems to be a plain unwrapped one, not one wrapped to see the module dependencies. Anybody know off-hand what I did wrong?
<rycee>
Ah, when I remove the `.envrc` that starts lorri and start the nix shell manually it works!
<energizer`>
if i use one of the tools that builds derivations from a language-specific lockfile, it'll decide on some dependency versions that are different from the versions in nixpkgs, meaning i don't get to use the nixpkgs libraries and i have to build the deps myself, right?
<genesis>
when i install package, my desktop menu is not update with new desktop, i try many update-desktop-database ( ~/.local/share/applications/ ...)
kleisli has quit [Ping timeout: 260 seconds]
<genesis>
but it seems it's not working, do you think it's a desktop bug or a nixos issue, due to the fact that update are only makes in systemwide install
<excelsiora>
gchristensen: the main repo doesn't seem to have your branch, so I rm -rf'd my fork - I guess I should try to fork from your personal repo?