klntsky has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 260 seconds]
Sonarpulse has quit [Ping timeout: 260 seconds]
<judson>
Sorry - phone calls. infinisil, I'm not sure what the deal is with zoom. emmanualrosa said he couldn't reproduce my issue. There is a glibc_2_27 in my current channels...
vidbina has joined #nixos
pxc1 has joined #nixos
silver has quit [Read error: Connection reset by peer]
<acowley>
Where can I pull the path to gcc-unwrapped out of stdenv.cc assuming stdenv.cc is a wrapped gcc? I want to get my hands on the /nix/store/.../include/c++/7.3.0 path.
<acowley>
I think I'd prefer to do it without reaching out to gcc-unwrapped
<acowley>
nixpkgs.gcc-unrapped that is
<clever>
acowley: stdenv.cc.cc
<acowley>
ah, right!
<acowley>
I always forget that
<acowley>
clever: thank you!
<clever>
yep
fragamus has joined #nixos
obadz has quit [Ping timeout: 260 seconds]
obadz has joined #nixos
fragamus has quit [Ping timeout: 260 seconds]
<bionicmac[m]>
Hello. What version of the Linux kernel is default in NixOs 18.03?
<drakonis_>
4.14 for me?
<drakonis_>
you can install 4.16 yourself
<bionicmac[m]>
I need minimum 4.15 to support my graphics display driver
<drakonis_>
hmm
<samueldr>
use linuxPackages_4_15; for 4.15 with 18.03
<bionicmac[m]>
Is there a package of 4.15 that I can upgrade to after install? Else I have no X11
<drakonis_>
well
<drakonis_>
you can install it without xorg
<samueldr>
bionicmac[m]: you can install it with the right kernel
<samueldr>
using `boot.kernelPackages = pkgs.linuxPackages_4_15;` in your configuration.nix
<samueldr>
(that's the way you would configure it anyway after installing)
<bionicmac[m]>
Hmm. Ok. Then the iso download will not have the 4.15 but I can upgrade the kernel after install?
<drakonis_>
yes
<samueldr>
yes and no, you'd install directly with 4.15; the installer will download what's needed
<drakonis_>
hmm, are there useflags yet, for the budding gentoo user?
<bionicmac[m]>
Great. Is this just a PKG upgrade? Or do I need to learn the configuration to do this?
<drakonis_>
well, you need an configuration to do the install in the first place
<drakonis_>
so you can already get the kernel version you need
<samueldr>
you will need to "learn" how to configure, but the option you need is here: boot.kernelPackages = pkgs.linuxPackages_4_15;
<bionicmac[m]>
I've never used Gentoo so I can't comment on the budding user.
<samueldr>
as drakonis_ said, you need a configuration file to install
<bionicmac[m]>
Ok. Thanks
<drakonis_>
i'm half joking
<drakonis_>
apparently there's a issue for that
<drakonis_>
doesn't seem like a bad idea
<samueldr>
(there's so few details you actually need to learn as most of what's strictly needed and more is generated on install)
<bionicmac[m]>
I only asked because I planned on using the iso. But I can learn the configuration and have taken note of your advice.
<drakonis_>
learning the configuration is the easiest part
LogicAside has joined #nixos
<bionicmac[m]>
I come from Slackware so I'm used to configuring. ๐
<drakonis_>
are you used to writing down your work?
sbdchd has quit [Remote host closed the connection]
<bionicmac[m]>
Just curious about NixOS .. looks interesting
<bionicmac[m]>
I make notes of what I do, yes. For myself mainly.
<drakonis_>
you mind writing those down somewhere?
<drakonis_>
the wiki maybe
<drakonis_>
just sayin'
<drakonis_>
may help out other people
<bionicmac[m]>
Ok so yes, I will document my installation.
<drakonis_>
i mean, the documentation gaps that might show up
<elvishjerricco>
How many tests are involved in advancing nixos-unstable compared to stable channels? Does it have to pass all tests, or a smaller subset?
<colemickens>
I've tried a lot of random things that I may not have exhaustively detailed, and have done some research into the error message bdist_wheel, and the Azure packages in question.
sbdchd has joined #nixos
<colemickens>
They seem to "sniff" for bdist_wheel support and try to enable/disable some packaging support based on if it's detected. However, this "works" properly for all of the non-CLI packages, and fails for all of the CLI packages, despite them using wheel/setup.py the same way, as far as I can tell.
lanelet has quit [Quit: lanelet]
raynold has joined #nixos
drakonis_ has quit [Remote host closed the connection]
drakonis_ has joined #nixos
fxr has quit [Read error: Connection reset by peer]
drakonis_ has quit [Remote host closed the connection]
drakonis_ has joined #nixos
sbdchd has quit [Remote host closed the connection]
jperras has joined #nixos
jperras has quit [Client Quit]
drakonis_ has quit [Remote host closed the connection]
jperras has joined #nixos
drakonis_ has joined #nixos
jperras has quit [Client Quit]
drakonis_ has quit [Remote host closed the connection]
drakonis_ has joined #nixos
<drakonis_>
jasongrossman, its not for myself though
<drakonis_>
not really into it
goibhniu1 has joined #nixos
jperras has joined #nixos
goibhniu has quit [Ping timeout: 260 seconds]
<jasongrossman>
drakonis_: You're not into the software you're here asking questions about?
<drakonis_>
useflags
<drakonis_>
i'm not into useflags but it is a potential way to tap into a new userbase
<iqubic>
It should start with a partition that is completely empty. You are welcome to have other OSes installed, but the partition you intend to install NixOS to should be formatted and wiped
<gchristensen>
nix/install is for nix only not nixos
<iqubic>
Oh, right. I though you were trying to install NixOS, and not standalone Nix.
lassulus has quit [Ping timeout: 245 seconds]
lassulus_ is now known as lassulus
nixosnewbie has quit [Quit: Page closed]
<mjrosenb>
nope, nix.
spear2 has quit [Ping timeout: 268 seconds]
sigmundv_ has quit [Ping timeout: 252 seconds]
<mjrosenb>
where are the lists of available nix packages/nix expressions?
<drakonis_>
on nixpkgs
<mjrosenb>
I assume that they aren't being fetched from the internet every time, since I didn't set a channel
<drakonis_>
there's a folder called all packages
<drakonis_>
ah right
<drakonis_>
hmm
<mjrosenb>
but I may just be misunderstnding what a channel is.
<bhipple[m]>
Look in ~/.nix-defexpr (a symlink into the profiles dir, which is itself a symlink into the store)
<mjrosenb>
cool, so these are static, and if I subscribe to a channel, it'll fetch new packages?
<elvishjerricco>
mjrosenb: I think Nix 2.0 came with a really frustrating change to installation: It installs a channel in the /nix/store owner's profile, which on macos (and systemd linuxes if you use --daemon when installing) is root.
<elvishjerricco>
So you might have nixpkgs in your nix-env path, but not have a channel configured for your user
drakonis_ has quit [Remote host closed the connection]
<elvishjerricco>
Regardless, you can list packages available to you with `nix search`
Lisanna has joined #nixos
drakonis_ has joined #nixos
<Lisanna>
Does nixpkgs do anything funky with the error/warning levels in any of the automake/autoconf tools?
<mjrosenb>
elvishjerricco: so if I become root, I should be able to list the channels, and see something?
<elvishjerricco>
mjrosenb: Yea, if you're on macos
<mjrosenb>
indeed, root has a channel configured.
<mjrosenb>
that is not /super/ confusing to a first time user.
drakonis_ has quit [Remote host closed the connection]
<elvishjerricco>
mjrosenb: Yea, so you can likely do `nix eval '(<nixpkgs>)'`, but not `nix-env -iA nixpkgs.hello`
drakonis_ has joined #nixos
<mjrosenb>
I was able to do nix-env -iA earlier today
<elvishjerricco>
mjrosenb: Oh? That's a tad surprising. Did you have to do `-f '<nixpkgs>'`
<elvishjerricco>
?
<mjrosenb>
nope
<mjrosenb>
but nix-env -qA has been... less than useful.
<elvishjerricco>
Oh. Maybe nix-env is different than I though
<elvishjerricco>
`nix search` is better than `nix-env -qA`
<mjrosenb>
warning: using cached results; pass '-u' to update the cache
<mjrosenb>
mrosenbe@nyc-mbp-mrosenbe
<elvishjerricco>
mjrosenb: Nah, your NIX_PATH is fine as is
<elvishjerricco>
Was just testing something
<mjrosenb>
I was just confirming what you wanted me to test, since that is some strange syntax
<bhipple[m]>
NIX_PATH should be a path or URL to a dir/repo where it can find nix expressions, e.g. NIX_PATH="nixpkgs=$HOME/src/nixpkgs"
<elvishjerricco>
Was wondering if it treats `nixpkgs=...` as something different
<elvishjerricco>
ah
acarrico has quit [Ping timeout: 248 seconds]
drakonis_ has quit [Remote host closed the connection]
<elvishjerricco>
mjrosenb: So... What about running `nix search` as root?
<mjrosenb>
but "nixpkgs=..." does not look like a path nor a url
drakonis_ has joined #nixos
<bhipple[m]>
There's a section in the manual about this. Basically, it allows you to give different names to various nix expression repos, like so:
<bhipple[m]>
$ NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/root/channels:src=$HOME/src/nixpkgs", so then you can say `nix build src.emacs` and get the one from your git clone, or `nix build nixpkgs.emacs` and get the one from the root channel
<mjrosenb>
running sudo su, then nix search doesn't produce anything, but NIX_PATH is also not defined for root.
<mjrosenb>
bhipple[m]: ahh, neato; thanks for the explanation.
<elvishjerricco>
mjrosenb: Huh. But root does have a nix-channel?
<mjrosenb>
(and just sudo nix search doesn't do anything as well)
<elvishjerricco>
mjrosenb: (FYI, I recently learned that `sudo -i ...` is the same as `sudo su` then `...`)
<elvishjerricco>
I must be misunderstanding the relationship between the nix 2.0 `nix` command and channels.
<mjrosenb>
yeah, but I wanted a shell. I guess I could have run sudo -i bash, but meh.
burton_ has joined #nixos
mahalel_ has quit [Ping timeout: 260 seconds]
<elvishjerricco>
mjrosenb: I'm gonna boot up an ubuntu vagrant to test out the interactions between these pieces on a blank install. Nix 2.0 was supposed to simplify this but you're not the first to have issues in this area.
<mjrosenb>
also, nix-env --query -a *does* show 10714 packages.
<mjrosenb>
(as my user)
mahalel_ has joined #nixos
<elvishjerricco>
mjrosenb: Weird
<elvishjerricco>
Yea I definitely don't understand the logic for these things. When does which tool pick up which channels?
jasongrossman has quit [Remote host closed the connection]
<mjrosenb>
I'm not sure what you are asking.
<mjrosenb>
also, if this matters in any way shape or form, this is on OSX, not linux.
<Ralith>
what do people use for sysfs backlight control?
<Ralith>
samueldr: man, why does it have to be suid instead of setting up the proper udev rules? :/
<samueldr>
dunno!
<samueldr>
maybe it can work with udev rules
<Ralith>
it can, it's just a pain to do by hand because `udev.extraRules` breaks uaccess tagging for some reason
<elvishjerricco>
mjrosenb: Anyway, does nix-env -qa do what you want?
<mjrosenb>
it is slow, but yes.
<elvishjerricco>
Yea, quite slow
<elvishjerricco>
mjrosenb: I'm surprised that `nix search` didn't work though
drakonis_ has quit [Read error: Connection reset by peer]
schoppenhauer has quit [Ping timeout: 245 seconds]
iqubic has quit [Remote host closed the connection]
schoppenhauer has joined #nixos
<desttinghim[m]>
I am using haxe with openfl to try and develop. I can get the application to build, but I get a runtime error saying `Could not initialize SDL: No available video device.`
jperras has quit [Quit: WeeChat 2.1]
<jack[m]>
desttinghim: is $DISPLAY set?
<desttinghim[m]>
jack: yeah
<desttinghim[m]>
:0
<desttinghim[m]>
That's the value it returns
<desttinghim[m]>
*is set to
<jack[m]>
desttinghim: this is where I would use strace or LD_DEBUG..
<desttinghim[m]>
I'll look into that
<mjrosenb>
are you in the video group?
dbmikus_ has joined #nixos
<mjrosenb>
some things which try to do fancy hardware acceleration stuff attempt to open the /dev/ entry for the video card directly, which is usually acled to the video group.
<elvishjerricco>
symphorien: Pinning nixpkgs is easy. Pinning it in nixops is not so easy :P You pretty much have to use -I as far as I can tell
gmarmstrong has joined #nixos
<symphorien>
Ah I didn't know nixops was special, sorry
gmarmstrong_ has joined #nixos
reinzelmann has joined #nixos
lanelet has quit [Quit: lanelet]
seafood has joined #nixos
ldlework has joined #nixos
<ldlework>
What is the difference between adding packages to environment.systemPackages and doing something like programs.vim.enabled = true; ?
<etu>
ldlework: "services" as the other one does "extra things", what this is is different for each service. But in general it's probably things you want. Extra things may be creating systemd services and enabling them etc.
myshoe has joined #nixos
maingo has quit [Quit: Connection closed for inactivity]
<etu>
It can create environment files and such for things. The binary may not *require* this to be done. But it's usually nice.
<ldlework>
there is also "programs" though
<ldlework>
programs.vim.defaultEditor for example
<etu>
ldlework: I just looked in the vim service that you had for example. It installs vim and then sets the EDITOR= environment variable to vim.
<etu>
When putting vim in environment.systemPackages wouldn't do this last part
<ldlework>
So, if a software package has an entry in "services" or "programs" you probably want to use the "enable" attribute if it exists
<ldlework>
Before putting a package in systemPackages. Correct?
<etu>
Well, it depends on what you want. But I find it better in most cases.
<ldlework>
I wish there was a nice interface for browsing programs/services
<etu>
There is!
<ldlework>
using the nixpkgs expression source code hurts
<hyper_ch2>
sphalerite: you highlighted me yesterday
<sphalerite>
hyper_ch2: it wasn't anything important, I just grepped my IRC logs for the ACTIONs of various people and yours were particularly entertaining :p
Cale has quit [Ping timeout: 260 seconds]
nschoe has joined #nixos
burton_ has left #nixos ["Leaving"]
<hyper_ch2>
what actions?
<sphalerite>
the /me kind
<gmarmstrong_>
sphalerite: are you sure? just echo a string into a directory?
<etu>
the path should be ~/.config/nixpkgs/config.nix
<mjrosenb>
attempting to buid a package (heist) fails because its .cabal requests version <4.16.0, but the shell.nix that gets generated doesn't specify a version, so 4.16.1 gets installed, then heist fails to build
<mjrosenb>
when running nix-shell, is there a way to force a dependency of a dependency of the current expression to not be at its maximum value?
<teto1>
if there is any nixops maintainer, would be nice to see this merged https://github.com/NixOS/nixops/pull/824. Especially to get the Qemu-agent PR merged afterwards.
seafood has joined #nixos
<adisbladis[m]>
mjrosenb: You can just put in an assert or a throw?
<{^_^}>
[nixpkgs] @peti pushed to revert-40929-cross-ghc-for-master ยซ Revert "ghc, haskell infra: #40642 direct to master" ยป: https://git.io/vhUYr
<{^_^}>
[nixpkgs] @peti opened pull request #40973 โ Revert "ghc, haskell infra: #40642 direct to master" โ https://git.io/vhUYi
halfbit has quit [Ping timeout: 245 seconds]
<dtz>
sphalerite: and two ghc's! lol and a partridge in a pear tree!
<sphalerite>
>.>
coot has joined #nixos
halfbit has joined #nixos
<{^_^}>
[nixpkgs] @peti merged pull request #40973 โ Revert "ghc, haskell infra: #40642 direct to master" โ https://git.io/vhUYi
<{^_^}>
โ 9668a669 by Fritz Otlinghaus: gams: init at 25.02
<{^_^}>
โ be4b3e89 by @Mic92: Merge pull request #39603 from Scriptkiddi/master
<{^_^}>
[nixpkgs] @xeji merged pull request #40968 โ Remove "free and secure" from Discord description โ https://git.io/vhULD
<{^_^}>
[nixpkgs] @xeji pushed commit from @gmarmstrong to master ยซ Remove "free and secure" from Discord description (#40968) ยป: https://git.io/vhUnE
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhUlo
<{^_^}>
โ 742a5e04 by R. RyanTM: debootstrap: 1.0.99 -> 1.0.100
<{^_^}>
โ ae27dd21 by @yegortimoshenko: Merge pull request #40974 from r-ryantm/auto-update/debootstrap
smallville7123 has quit [Quit: rosa]
adamt has joined #nixos
aarvar has quit [Ping timeout: 252 seconds]
smallville7123 has joined #nixos
<adamt>
Maybe a stupid question: In nix: mapAttrs maps over the key,values of a attr set. foldAttr folds over a list of attr sets. Is there a fold function that folds over the key,vals of an attr set?
<sphalerite>
(or test, if you don't want it to boot into that one)
freusque has joined #nixos
freusque has quit [Client Quit]
<sphalerite>
symphorien: when running nix-du I get Reading dependency graph from store... error: path '/nix/store/00amg3gyznfwga81kbqa6amasb8b7489-libapparmor-2.12.0-python' is not valid
<{^_^}>
[nixpkgs] @yegortimoshenko merged pull request #40806 โ nixos/ids: information when to use static uids/gids โ https://git.io/vphwY
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhU4j
<{^_^}>
โ 8c3503d6 by @Mic92: nixos/ids: information when to use static uids/gids
<{^_^}>
โ 94b9ede5 by @yegortimoshenko: Merge pull request #40806 from Mic92/nixos-ids
<symphorien>
thanks, I will put it in the next release :)
leat has quit [Ping timeout: 276 seconds]
<jluttine>
sphalerite: there's no such file: /nix/var/nix/profiles/system-$n-link/switch-to-configuration (no switch-to-configuration in that directory)
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to staging: https://git.io/vhUgz
<{^_^}>
โ 2e2cbda2 by @aneeshusa: openssh: 7.6p1 -> 7.7p1
<{^_^}>
โ 2e831da7 by @yegortimoshenko: Merge pull request #40967 from aneeshusa/update-openssh-to-7.7p1
<{^_^}>
[nixpkgs] @peti pushed to master ยซ haskell-lambdabot-core: apply patch from @int-e to fix GHC 8.4.x build ยป: https://git.io/vhUgV
Ariakenom has quit [Ping timeout: 264 seconds]
judson has joined #nixos
judson is now known as Guest42379
<edude03>
Wow, looks like that worked srhb Thanks!
<srhb>
edude03: You're welcome. :)
sbdchd has joined #nixos
tzemanovic has joined #nixos
Ariakenom has joined #nixos
<{^_^}>
[nixpkgs] @pSub pushed to master ยซ vimpc: use git tag instead of commit hash ยป: https://git.io/vhU2c
<johanot>
SteveeJ: FYI.. I finally have some time to look at the Kubernetes tests now.. It looks to me that everything fails due to mem starvation. Will try to give the test vms some more mem. After rebase with master and fixing of the imageDigest-issue of course. :)
<srhb>
"Go is so lighweight"
<srhb>
:-)
sbdchd has quit [Ping timeout: 260 seconds]
<srhb>
Could probably also adjust some runtime parameters for it... Probably not worth the hassle.
simukis has joined #nixos
<johanot>
srhb: Actually it looks like multi-node testcases are fine, but the singlenode tests are strugling. Apparently 768 megs are not quite enough for ALL k8s components (master + node). + deployments :) Which.. I think is fair actually
<srhb>
Really? Funny.
<srhb>
I guess too much is just packed in the one vm.
<srhb>
(And yes, it's fair.)
smallville7123 has joined #nixos
<johanot>
srhb: To be fair.. Haven't looked into how much each component / deployment is claiming. It might be as simple as: The k8s dashboard is deployed for all test scenarios, but really not needed. Perhaps that shiny looking GUI is just exactly what makes the house of cards tip over :)
<srhb>
Yeah it must be within one order of magnitude at least, since it fails in singlenode but not multinode.
<{^_^}>
[nixpkgs] @phile314 opened pull request #40981 โ Slimserver: Fix media scanning & transcoding (backport) โ https://git.io/vhUaY
<LnL>
it has a bunch of services and also needs etcd
<srhb>
Yeah, I know. I still don't see why it should take up that much, but I'm probably being old and grumpy. :P
<LnL>
people don't understand memory is a resource anymore
<srhb>
I know right!
<srhb>
:-)
<LnL>
also yaml is human readable so we don't need abstractions anymore, just use copy paste :p
<edude03>
srhb - uh does the same trick work for consul? It looks like it doesn't have a tls setting in the derivation so I'd have to put the tls path in the json file
<srhb>
edude03: Yes, it has nothing to do with the specific modules
<edude03>
weird how does it know what's config and what's a path then?
<srhb>
edude03: A path like ./foo/bar/baz simply becomes a store path, so you can interpolate it in strings
<srhb>
edude03: From the manual: "A path (e.g., ../foo/sources.tar) causes the referenced file to be copied to the store; its location in the store is put in the environment variable. The idea is that all sources should reside in the Nix store, since all inputs to a derivation should reside in the Nix store."
<srhb>
From section 14.4: derivations
<srhb>
edude03: So inside a string, you'd just refer to ${../path} or a named variable referring to whatever
<adamt>
LnL: Memory is only a resource on localhost :p
<srhb>
Speaking of which, I am so getting 32 GiB next time... It's ridiculous how much memory build systems (even linking!) takes up these days.
<adamt>
srhb: The download doesn't auto start. Also, it redirects to a weird youtube movie with a guy called Rick. Also, i didn't get any more ram. :-(
<srhb>
Damn..
<adamt>
I'll file a bug report
* etu
got a work laptop with 8GiB... Why don't I have at least 16GiB? (I know why, that revision of this generation of this laptop wasn't out when I decided).
seafood has joined #nixos
<etu>
In only 11 months I'm due for an upgrade and can decide on a new one.
<edude03>
ah that's super nice! Thankss srhb
<srhb>
edude03: For gaining some confidence with this you can try out the repl a bit to see what actually happens. nix repl, then eg. "${/etc/hostname}"
Guest42379 has quit [Ping timeout: 260 seconds]
tzemanovic has quit [Remote host closed the connection]
<srhb>
Can someone explain to me (again, for the n'th time, it won't stick...) what can cause buildInputs and nativeBuildInputs to differ when host and target is the same?
<symphorien>
no idea about cross compilation but in general it is: nix-shell -p libfoo
<tobiasBora>
symphorien: ok thank you
acarrico has joined #nixos
sbdchd has quit [Ping timeout: 260 seconds]
acarrico has quit [Max SendQ exceeded]
<tobiasBora>
Also, I tried to uninstall a package using "nix-env --uninstall avrgcc", but for some reasons it still tries to find avrgcc in a /nix/store file
<etu>
tobiasBora: Can you see avrgcc if you run: nix-env -q ?
acarrico has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
<tobiasBora>
etu: yes, it still appears
<tobiasBora>
(It's on a mac, don't know if it matters)
<tobiasBora>
(and on my ubuntu it works well)
smallville7123 has joined #nixos
<gchristensen>
tobiasBora: it probably printed avrgcc-x.x.x
<symphorien>
tobiasBora: with nix-env -e use the exact name printed with nix-env -q
<gchristensen>
tobiasBora: run nix-env -uninstall the whole line
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhUPz
<{^_^}>
โ cde4ea79 by @aneeshusa: vagrant: 2.0.2 -> 2.1.1
<{^_^}>
โ c9d18a23 by @yegortimoshenko: Merge pull request #40972 from aneeshusa/update-vagrant-to-2.1.1
griff_ has quit [Quit: griff_]
<tobiasBora>
gchristensen: symphorien : My friend just removed everything because the current version was too recent for her project, but I'm curious to understand your fix. Why isn't "nix --uninstall avrgcc" is not supposed to do the same thing as "nix-env -e avrgxx-x.x.x".
<tobiasBora>
?*
<symphorien>
tobiasBora: the argument of nix-env -e is a regexp matching the name of the derivation
<symphorien>
not its attribute
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
acarrico has joined #nixos
smallville7123 has quit [Quit: rosa]
gm152 has quit [Quit: WeeChat 2.1]
c0ffee152 has quit [Quit: Lost terminal]
<gchristensen>
and nix-env is confusing and I don't know
humanoyd has quit [Ping timeout: 245 seconds]
<tobiasBora>
Hum, I think I just understood
<tobiasBora>
(well parly)
Leo` has quit [Ping timeout: 240 seconds]
eisbaer has quit [Ping timeout: 240 seconds]
<tobiasBora>
my friend did "nix-env -e avrgcc" (avrgcc was the name of the package)
<tobiasBora>
and she got no output...
the-kenny-w has quit [Ping timeout: 268 seconds]
<tobiasBora>
on my side I did "nix-env -e avr-gcc" (note the dash)
<tobiasBora>
and I got a message "successfully uninstalled"
<tobiasBora>
so now I understand why avr-gcc was still in the path
pxc1 has joined #nixos
<Drakonis[m]>
you want the attrivut
<Drakonis[m]>
attribute
<tobiasBora>
but now, my question is "why do I install with avrgcc, and uninstall with avr-gcc"?
drakonis has joined #nixos
<symphorien>
<gchristensen> and nix-env is confusing and I don't know << this is probably the best answer
<drakonis>
i agree
<tobiasBora>
ok thanks
<drakonis>
the experience is sort of crappy
<edude03>
Slightly off topic, but is there a recommended way to generate certs for nixos servers? Or should I/we be using wildcard certs and make life easy :P
<drakonis>
nix-env is kind of rudimentary
<edude03>
Because I'm thinking, for each server you need to generate a signing request with the servers host name / IP right which means you'd have to know all the servers you'll have ahead of time or you'll need to automate that some how
<gchristensen>
edude03: you don't need IPs to get a cert through traditional means
<gchristensen>
a wildcard would work, you may also be able to use our letsencrypt support
rain1 has quit [Remote host closed the connection]
<edude03>
Letsencrypt sounds pretty good
<tobiasBora>
Drakonis: do you have a better option on a non-nixos desktop?
<drakonis>
well, right now its what we have
<drakonis>
besides nix 2.0
<drakonis>
hnix is still being worked on
pxc1 has quit [Ping timeout: 256 seconds]
<gchristensen>
tobiasBora: I almost exclusively use nix-shell
<drakonis>
hmm
<drakonis>
i wonder why we don't have idris nix yet
<drakonis>
instead of haskell nix
<srhb>
It takes a lot of work to implement nix. :P
<drakonis>
idris is haskell square
<drakonis>
squared
<srhb>
Shots fired
<tobiasBora>
gchristensen: you can install something from nix-shell?
<drakonis>
you can install things from nix-shell
<drakonis>
it is in fact better for development
<srhb>
Drakonis: I also think the nix haskell community is a lot larger than the nix idris community.
<drakonis>
only that they stay in the store instead of the host
<gchristensen>
srhb: by virtue of haskell bein larger than idris? :)
the-kenny-w has joined #nixos
<drakonis>
idris is a research haskell
<drakonis>
apparently
<tobiasBora>
gchristensen: ok thanks
<srhb>
gchristensen: I also think it's disproportionally smaller. Probably because of build system differences. Nix was/is a great solution to haskell builds being sometimes problematic.
<drakonis>
a superset
<srhb>
Not sure that's the case in Idris
<srhb>
Drakonis: That's nonsense. :P
Leo` has joined #nixos
<drakonis>
that's how i was sold idris :V
ixxie has joined #nixos
<srhb>
I'd say it's a strict, dependently typed ML-like whereas Haskell is a not-dependently typed lazy ML-like. Huge difference imo.
<edude03>
mm I'd rather avoid letsencrypt now that I think about it, so I'm going to have to find another way
<teto1>
has anyone problen with discourse and github integration. I managed to signup through github after several ' Sorry, there was an error authorizing your account. Perhaps you did not approve authorization? ' and now I just get that last message without any opportunity to login (I could login in qutebrowser but not firefox :/)
<johanot>
Can anyone tell me what or rather which user (in the nixOS test framework) is trying to access KVM to spawn VMs ? I constantly get : "Could not access KVM kernel module: Permission denied". /dev/kvm on my laptop is owned by root:kvm and my nix-daemon build users are members of the kvm group. When I do `sudo chmod o+rw /dev/kvm` it works, but I have no idea why.
Jackneilll has quit [Quit: Leaving]
asuryawanshi has joined #nixos
Jackneill has joined #nixos
<gchristensen>
johanot: nixbld<N> when using nix-build
<srhb>
johanot: Did you convert to daemonized nix though?
<srhb>
Times are a-changing I guess!
<gchristensen>
srhb: oh?
<srhb>
gchristensen: I thought he used to be on single-user ubuntu, but maybe I'm misremembering :)
<clever>
sphalerite: maybe something to do with this
<clever>
by launching the right type of vm, and changing stack segment registers during an irq, you can gain ring0
<Dezgeg>
well, all kernel code can have bugs
<clever>
and limiting its usage to only the users that should have access limits the attack surface area
sbdchd has quit [Ping timeout: 245 seconds]
jtojnar has quit [Read error: Connection reset by peer]
Guest17555 has joined #nixos
waleee has joined #nixos
nahamu has joined #nixos
edude03 has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
jtojnar_ has joined #nixos
Guest17555 has quit [Quit: WeeChat 2.1]
vaninwagen has quit [Ping timeout: 245 seconds]
jtojnar_ is now known as jtojnar
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
jperras has joined #nixos
hamishmack has joined #nixos
<johanot>
clever: Changing the group-ownership of /dev/kvm to nixbld worked.. This is good enough for me. I can just make my own user member of this group as well.. (I'd like to be able to spawn VMs myself :) ). out of curiosity: Can you explain to me why the nix daemon doesn't pick up on my group memberships?
<clever>
johanot: never add yourself to the nixbld group
<clever>
johanot: nix-daemon will pick a semi-random user of the nixbld group, then `kill -9` every process in the user, and start a build under it
<johanot>
clever: lol ah.. I see why that might be a problem...
toby1851 has joined #nixos
<__monty__>
Sounds like it would be a minor inconvenience.
<johanot>
#chaosmonkey
__Sander__ has joined #nixos
rauno has quit [Ping timeout: 245 seconds]
<johanot>
clever: So.. I guess I'm down to chmod o+rw /dev/kvm ? .. Will probably be slightly more convenient than getting all my processes randomly slaughtered.
<clever>
johanot: yeah
<johanot>
thx!
edude03 has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
<sphalerite>
johanot: you can also use ACLs to grant your specific user access to it
jtojnar_ has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
<{^_^}>
โ 266adab3 by @Ericson2314: cctools: Remove a bunch of stuff no longer needed for Linux
<{^_^}>
โ bbcaf783 by @Ericson2314: Merge pull request #40989 from obsidiansystems/cctools-linux
Khetzal has quit [Remote host closed the connection]
silver has joined #nixos
<{^_^}>
[nixpkgs] @uri-canva opened pull request #40990 โ bazel: add darwin support โ https://git.io/vhU5l
steell has quit [Ping timeout: 256 seconds]
rauno has joined #nixos
iyzsong has quit [Ping timeout: 260 seconds]
<cocreature>
can I use "nix why-depends" to see why a package is a _build_ dependency of another derivation?
Khetzal has joined #nixos
<clever>
cocreature: currently, it only works on runtime stuff, youll need to manually search `nix-store --query --tree /nix/store/foo.drv`
<cocreature>
clever: alright, thanks!
<{^_^}>
[nixpkgs] @Ericson2314 pushed 83 commits to staging: https://git.io/vhUdg
<{^_^}>
โ d72a0e71 by @dtzWill: nghttp2: 1.24.0 -> 1.31.0
<{^_^}>
โ 19445fa1 by @tadfisher: nixos/powerManagement: add "med_power_with_dipm" scsiLinkPolicy
<{^_^}>
โ e9868c39 by @teozkr: nixopsUnstable: 1.6pre2276_9203440 -> 1.6.1pre2622_f10999a
vaninwagen has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 248 seconds]
alex`` has quit [Quit: WeeChat 2.1]
vaninwagen has joined #nixos
alex`` has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40991 โ darwin stdenv: Persist `darwin.binutils-unwrapped` โ https://git.io/vhUbI
freeman42x]NixOS has joined #nixos
<sphalerite>
clever: cocreature: I usually use nix-store -q --graph to find that sort of thing because searching with less makes finding the next link in the chain much easier
<cocreature>
sphalerite: yeah I used nix-store -q --tree :)
<sphalerite>
yes, I mean I prefer --graph over --tree
<sphalerite>
because it lists all the dependencies rather than visualising them with ascii art
<sphalerite>
and as a result is better for searching
<ocharles>
ok, you were right clever - my queue is still stuck :(
<ocharles>
no errors from hydra-evaluator or hydra-queue-runner now
edude03 has quit [Quit: My MacBook has gone to sleep. ZZZzzzโฆ]
<ocharles>
"nrRunnableSteps":3 in the queue status, along with: "runnable" : 3 for machineTypes.builtin:local
<{^_^}>
โ 64c90e53 by @Ericson2314: darwin stdenv: Persist `darwin.binutils-unwrapped`
<{^_^}>
โ e3f35d14 by @Ericson2314: Merge pull request #40991 from obsidiansystems/stdenv-darwin-persist
<{^_^}>
[nixpkgs] @Ericson2314 pushed 3 commits to staging: https://git.io/vhUNI
<{^_^}>
โ 64c90e53 by @Ericson2314: darwin stdenv: Persist `darwin.binutils-unwrapped`
<{^_^}>
โ e3f35d14 by @Ericson2314: Merge pull request #40991 from obsidiansystems/stdenv-darwin-persist
<{^_^}>
โ 17316643 by @Ericson2314: Merge remote-tracking branch 'upstream/master' into staging
edude03 has joined #nixos
liori has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40992 โ darwin stdenv: Properly compose overrides โ https://git.io/vhUNB
<clever>
ocharles: find the .drv file that is listed on the build in the queue (in the UI) then run `nix-store -r` on it on the hydra machine, what is the very first thing it builds (you can also ctrl+c once it starts)
<ocharles>
what is -r?
<ocharles>
---realise?
<ocharles>
I often do that and it seems to build fine :S
<clever>
yeah
<ocharles>
Just rebooting the machine though (changing instance type), will try when it's back online
drakonis has quit [Remote host closed the connection]
<clever>
the key, is to look at what the first thing it builds is, and then figure out why hydra wont build that
<kai_w>
I have a PR to allow configuration of heimdal Kerberos servers that's been stalled for a month, is anybody able to take a look? https://github.com/NixOS/nixpkgs/pull/31832
acarrico has quit [Ping timeout: 256 seconds]
<kai_w>
The rebuilding is because it fixes 39424, I don't think there's any way to avoid it...
acarrico has joined #nixos
xy2_ has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #40993 โ haskell generic-builder: Tiny changes that preserve hases โ https://git.io/vhUpb
<{^_^}>
[nixpkgs] @dtzWill opened pull request #40994 โ strace: fix libunwind detection by fixing use of lib.optional โ https://git.io/vhUhw
<{^_^}>
โ 454edcd6 by @Mic92: radare2: add myself as maintainer
<{^_^}>
โ e87bfe08 by @Mic92: radare2: 2.5.0 -> 2.6.0
<{^_^}>
โ d6b9e625 by @Mic92: Merge pull request #40977 from Mic92/radare2
dbmikus has quit [Ping timeout: 245 seconds]
arbxs has quit [Ping timeout: 240 seconds]
vaninwagen has quit [Ping timeout: 245 seconds]
dbmikus_ has quit [Client Quit]
johanot has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #40994 โ strace: fix libunwind detection by fixing use of lib.optional โ https://git.io/vhUhw
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to master ยซ strace: fix libunwind detection by fixing use of lib.optional (#40994) ยป: https://git.io/vhTkA
toby1851 has joined #nixos
astrofog has joined #nixos
vi21b has joined #nixos
arbxs has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #40979 โ beegfs/module: Fix a typo in meta.conf generation โ https://git.io/vhUgJ
<{^_^}>
[nixpkgs] @xeji pushed commit from @markuskowa to master ยซ beegfs/module: Fix a typo in meta.conf generation (#40979) ยป: https://git.io/vhTLE
__Sander__ has quit [Quit: Konversation terminated!]
<nyanloutre[m]>
The aarch64 build failed because a dependancy (Cython) didn't build in time
<Ralith>
gchristensen: my coworker tells me he has no /etc/nix at all
<gchristensen>
he doesn't strictly need one, Ralith
<sphalerite>
Ralith: what gchristensen or ~/.config/nix/nix.conf
nuncanada has quit [Ping timeout: 264 seconds]
<sphalerite>
depending on the setup. It will look for both.
<sphalerite>
And it doesn't matter if neither exists
<Ralith>
sphalerite: depending on the setup how?
<disasm>
nyanloutre[m]: probably cython is broken in master (otherwise it would be in the binary cache) Does it build locally for you?
woodson has joined #nixos
<disasm>
nyanloutre[m]: linux too fyi
<disasm>
x86_64 that is
<sphalerite>
Ralith: which one you'd want to edit depends on your setup, e.g. in a single user setup you'd probably want to use ~/.config/nix/nix.conf so that there's less root involved. But you can use either or both regardless.
<Ralith>
gchristensen: so if he omits fields that NixOS provides by default, everything will default correctly still?
<nyanloutre[m]>
disasm: I don't have a aarch64 device
<nyanloutre[m]>
but on x86 it build
<nyanloutre[m]>
as I understand the build should take around 20 minutes but is killed after 10
<sphalerite>
Ralith: yes
drakonis has quit [Remote host closed the connection]
<Ralith>
sweet, thanks
FRidh has joined #nixos
<disasm>
nyanloutre[m]: kicked another build. We'll see if it fails at same spot
<nyanloutre[m]>
disasm:
<nyanloutre[m]>
oops :p
nuncanada has joined #nixos
<nyanloutre[m]>
disasm: where is the maximum build time for hydra setup ?
<nyanloutre[m]>
because if the build is gonna take more than 10 minute it will fail every time
<Dezgeg>
it's on the order of 10 hours or something
nuncanada2 has quit [Ping timeout: 260 seconds]
<nyanloutre[m]>
Dezgeg: so it shouldn't timeout
<fresheyeball>
hey
nuncanada has quit [Ping timeout: 245 seconds]
<fresheyeball>
so with nix 1. I used to do `nix-env -f . -i myPackage` to install my own projects
<fresheyeball>
is there an equivelant with nix 2?
<sphalerite>
fresheyeball: not yet
<sphalerite>
fresheyeball: for now just continue using the same command.
<{^_^}>
โ 8733a3b9 by @lsix: pythonPackages.django: 1.11.12 -> 1.11.13
<{^_^}>
โ 427689ec by @FRidh: Merge pull request #40988 from lsix/django-1.11.13
sigmundv__ has quit [Ping timeout: 256 seconds]
rain1 has joined #nixos
nuncanada has quit [Ping timeout: 256 seconds]
leat has joined #nixos
FRidh has quit [Ping timeout: 245 seconds]
alexteves has quit [Read error: Connection reset by peer]
alexteves has joined #nixos
<sphalerite>
blargh, several python-based builds have been hanging for hours on getrandomโฆ
<sphalerite>
Fun fact: Scaleway C1 servers need haveged
freeman42x]NixOS has quit [Ping timeout: 245 seconds]
<jluttine>
hmm.. gwenview segfaults on some jpg images but not all
aarvar has joined #nixos
leat has quit [Ping timeout: 268 seconds]
Lisanna has joined #nixos
sanscoeur has joined #nixos
nuncanada has joined #nixos
nuncanada2 has quit [Ping timeout: 245 seconds]
coot has quit [Read error: Connection reset by peer]
coot has joined #nixos
<phry>
I'm trying to patchelf a binary and getting a lot of "no version information available" and "relocation error: <filename>: symbol , version not defined in file with link time reference" when I finally try to execute them. Can someone help me with that? :)
TonyTheLion has joined #nixos
leat has joined #nixos
Lisanna has quit [Remote host closed the connection]
shoogz has quit [Ping timeout: 260 seconds]
humanoyd has quit [Quit: WeeChat 2.1]
nckx has quit [Quit: Updating my GNU GuixSD server โ gnu.org/s/guix]
nckx has joined #nixos
shoogz has joined #nixos
thblt has quit [Remote host closed the connection]
<{^_^}>
โ be7b42f4 by @ankhers: elixir: 1.6.4 -> 1.6.5
srl295 has joined #nixos
<{^_^}>
โ c7597543 by @adisbladis: Merge pull request #40998 from ankhers/update_elixir
<ixxie>
where cahmm
<ixxie>
what does // do?
<symphorien>
it appends the second attrset to the first one
ThatDocsLady_ has joined #nixos
<symphorien>
> { a = 1; b = 2; c.d = 3; } // { e = 4; b = 42; c.f = 43; }
<{^_^}>
{ a = 1; b = 42; c = <CODE>; e = 4; }
ThatDocsLady has quit [Read error: Connection reset by peer]
<symphorien>
it shold be c.f = 43
tmaekawa has joined #nixos
<joepie91>
I'd say 'merge' is a better description than 'append' :)
<joepie91>
which I suspect is why // and ++ are separate operators too
<symphorien>
you can do ++ on attrset ?
<cransom>
(pretty sure not)
<symphorien>
let's try !
<symphorien>
> { a = 1; b = 2; c.d = 3; } ++ { e = 4; b = 42; c.f = 43; }
<{^_^}>
value is a set while a list was expected, at (string):41:1
vaninwagen has joined #nixos
<ixxie>
aha thanks symphorien
<cransom>
and it's not neccessarily a merge either. there is a `lib.recursiveUpdate` that does do a merge and you'd get a c.d and a c.f in your output.
<mog>
i want to change the restart strategy of a nixos service. i tried libmkforce and that didnt work, what is the right way to partially overload it
<ixxie>
I was kinda expecting c = { d=3; f=43;}; for some reason
<ixxie>
I guess that is recursiveUpdate :)
tmaekawa has quit [Client Quit]
<symphorien>
mog: out of my head: systemd.services.foo.unitConfig.Restart = "always" ?
derchris1 has quit [Read error: Connection reset by peer]
<symphorien>
mmh it might be serviceConfig
<mog>
i tried setting it directly and it failed as well
<ixxie>
zimbatm: I am trying to package http://beakerx.com/documentation which includes both a python library and a nb/jupyterlab extension
<symphorien>
mog: can you paste your attempted config and the error message ?
<ixxie>
zimbatm: but the normal installation approach is something like `pip install beakerx` and then `beakerx install`
<johnw>
ixxie: sounds like you want a recursive, type-aligned monoidal append, which wouldn't work in a lot of cases (what if a is 10 in one set, but "foo" in another). Instead, the append we have (//) is just left-biased union.
<mog>
error: The option value `systemd.services.autossh-blsocks.serviceConfig' in `/etc/nixos/services.nix' is not of type `attribute set of systemd options'.
<ixxie>
johnw: I don't want anything; I just saw // in some expression and was curious
<johnw>
ah
<johnw>
sorry, right-biased union
Ariakenom has quit [Read error: Connection reset by peer]
baconicsynergy has quit [Read error: Connection reset by peer]
<mog>
that seemed to work
<mog>
i am guessing because always is case sensetive?
derchris_ has quit [Ping timeout: 240 seconds]
<mog>
but when i look at the systemd file its restart is still just on-success
griff_ has quit [Ping timeout: 252 seconds]
griff__ is now known as griff_
derchris_ has joined #nixos
<mog>
sorry i gave you wrong error message before its not producing one i remember earlier
<mog>
error: The unique option `systemd.services.autossh-blsocks.serviceConfig.Restart' is defined multiple times, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/networking/autossh.nix' and `/etc/nixos/services.nix'.
<gchristensen>
lib.mkForce "always"
asuryawanshi has quit [Ping timeout: 260 seconds]
<mog>
with lib.mkForce i get error: cannot coerce a set to a string, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/boot/systemd-lib.nix:65:8
<bobvanderlinden>
i'm trying to override fetchurl with fetchurlBoot for all derivations. I've tried the following, but it seems it doesn't do much: import <nixpkgs> { overlays = [(self: super: rec { fetchurl = super.fetchurlBoot; })]; }. Do overrides only work for `callPackage`, because fetchurl is defined as: fetchurl = import ../build-support/fetchurl {
<bobvanderlinden>
(that is, it is defined without using callPackage. Probably for good reasons)
ikitat has quit [Ping timeout: 248 seconds]
<bobvanderlinden>
maybe something else is going wrong
winem_ has quit [Remote host closed the connection]
Ariakenom has joined #nixos
jD91mZM2 has quit [Quit: WeeChat 2.0]
edude03 has joined #nixos
smallville7123 has joined #nixos
acarrico has quit [Ping timeout: 245 seconds]
smallville7123 has quit [Client Quit]
rauno has quit [Ping timeout: 268 seconds]
smallville7123 has joined #nixos
ixxie has quit [Ping timeout: 276 seconds]
<phry>
bobvanderlinden: can you override other packages that way? I've never seen overlays being called that way (which would not mean much, but nonetheless)
smallville7123 has quit [Quit: rosa]
sigmundv_ has joined #nixos
<bobvanderlinden>
yes, but I think the problem is that `fetchurl` is being imported from other places as well (outside of all-packages.nix)
smallville7123 has joined #nixos
rauno has joined #nixos
<mog>
symphorien, gchristensen it worked but i had to mkForce the entire serviceConfig object
woodson has quit [Ping timeout: 240 seconds]
dispanser has quit [Remote host closed the connection]
johnw has quit [Ping timeout: 276 seconds]
waleee has quit [Quit: WeeChat 2.1]
sigmundv_ has quit [Remote host closed the connection]
dispanser has quit [Remote host closed the connection]
freeman42]NixOS has joined #nixos
Ariakenom has quit [Ping timeout: 252 seconds]
freeman42x]NixOS has quit [Ping timeout: 245 seconds]
acarrico has joined #nixos
muzzy has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
griff_ has quit [Quit: griff_]
sbdchd has quit [Remote host closed the connection]
ikitat has quit [Remote host closed the connection]
<gchristensen>
any japanese people around?
<LnL>
isn't it a bit early for that?
myshoe has quit [Quit: Lost terminal]
<gchristensen>
oh probably yeah
<gchristensen>
thanks, LnL!
ikitat has joined #nixos
<LnL>
but there are some people in the nix community I think, any specific reason?
grp has quit [Quit: box shutting down...]
<sphalerite>
gchristensen: I think fearlessKim[m] is French but lives in Japan
<Sonarpulse>
Ralith: hi
<Sonarpulse>
Ralith_
<Sonarpulse>
not sure which :)
<Sonarpulse>
I pushed another commit removing libc and compiler-rt from clang completely
<{^_^}>
[nixpkgs] @nicknovitski opened pull request #41001 โ yarn2nix: successfully build packages with "@" and "/" in their name โ https://git.io/vhTHK
<sphalerite>
adelbertc: yeah that's been a wishlist thing for many people for quite a while now. Unfortunately implementing glob in nix isn't much fun. Although shlevy's plugin system would probably make it fairly easy to provide access to the C glob() and implement that functionality
<sphalerite>
I don't think anyone's done it yet though.
<Ralith>
Sonarpulse: if the test passes I'm happy
<ikitat>
infinisil: thanks for the example, that should help
* Ralith
wasn't expecting that test to be so immediately useful
<adelbertc>
sphalerite: sweet, good to know
alexteves has joined #nixos
sbdchd has joined #nixos
<Sonarpulse>
Ralith: no i doesn't pass yet
edude03 has quit [Ping timeout: 240 seconds]
alexteves_ has quit [Ping timeout: 252 seconds]
<hodapp>
since I relly don't feel like waiting for nix-index to finish indexing: which magical mackage has GL/glu.h?
xy2_ has quit [Read error: No route to host]
xy2_ has joined #nixos
<Ralith>
Sonarpulse: if the test I added doesn't pass, then the change is incorrect. What specifically fails?
<infinisil>
hodapp: libGLU :)
<infinisil>
source: nix-locate
<infinisil>
I should make a function so the bot here can look that up
<Sonarpulse>
Ralith: it's not finding libgcc or compiler-rt or crtbegin.o
worldofpeace has joined #nixos
<Ralith>
Sonarpulse: under which stdenv?
<worldofpeace>
Hey, where would be the correct directory in nixpkgs for a ruby gem using bundlerApp that's a language server?
<{^_^}>
โ 3ab9caa3 by @alexfmpe: Use requireFile for impure Xcode dependency
<{^_^}>
โ e351265e by @Ericson2314: Merge pull request #40897 from alexfmpe/purify-xcode
<{^_^}>
[nixops] @rvl opened pull request #958 โ Allow AWS temporary credentials with session tokens โ https://git.io/vhTdY
<elvishjerricco>
Sonarpulse: Yea I think that and -sysroot should let you configure libc and libgcc stuff in a wrapper rather than in the Clang build process.
toby1851 has joined #nixos
<Ralith>
this is going to be so much cleaner <3
<Sonarpulse>
elvishjerricco: wow that's so undocumented haah
<elvishjerricco>
Sonarpulse: Yea I only know about it because I saw some Clang dev who was working on wasm+compiler-rt support do it in some random script :P
<sphalerite>
ij: they fully describe the build process for a derivation
acarrico has quit [Ping timeout: 245 seconds]
vidbina has quit [Ping timeout: 268 seconds]
emmanuelrosa has left #nixos [#nixos]
worldofpeace has quit [Ping timeout: 260 seconds]
hiratara has quit [Ping timeout: 260 seconds]
<ij>
are they made for all derivations? what do you get by saving 'em on disk?
drakonis has quit [Read error: Connection reset by peer]
hiratara has joined #nixos
<sphalerite>
yes, they're made for all derivations. I don't actually know the details of why they're stored.
chessai has quit [Remote host closed the connection]
mkoenig has joined #nixos
<ij>
cool, thanks
pie_ has joined #nixos
sary has quit [Quit: Lost terminal]
<sphalerite>
I think the combination of the contents of the .drv file and the output name are what is hashed to produce the output path for non-fixed-output derivations as well
<sphalerite>
wait no, since the .drv file contains the output path, that can't be right
rain1 has quit [Quit: Leaving]
<Dezgeg>
if you store them on disk you can copy-closure them around
coot has quit [Quit: coot]
iqubic has joined #nixos
<sphalerite>
I guess they're arguably legacy stuff then?
sary has joined #nixos
<sphalerite>
Since they're not strictly necessary if we have a protocol for talking to a nix store
<ldlework>
I am trying to run nix-install but I'm running into an issue "File system "/boot" has wrong type for an EFI System Partition (ESP)."
<sphalerite>
ldlework: it needs to be FAT32
<ldlework>
I have a partition on my drive that is 1 gig that is fat32 set to boot,esp and mounted to /mnt/boot
<ldlework>
do I have to.. like mount this to /boot instead?
<iqubic>
What choices of Login Manager do I have on NixOS?
<sphalerite>
ldlework: hm, no, /mnt/boot should be right
<iqubic>
How do I parse that list?
<iqubic>
Some of those things, like auto, don't seem to be DMs.
<__monty__>
sphalerite: Legacy? Aren't all the hashes calculated on derivations?
<sphalerite>
__monty__: not on .drv files, no.
<sphalerite>
iqubic: services.xserver.displayManager.auto.enable: Whether to enable the fake "auto" display manager, which automatically logs in the user specified in the user option. This is mostly useful for automated tests.
sbdchd has quit [Remote host closed the connection]
<ldlework>
sphalerite: ah I had the wrong flags on the partition
<sphalerite>
iqubic: but basically the actual answer to your question is slim, gdm, sddm, lightdm
<iqubic>
Oh, I see. Isn't slim dead?
<sphalerite>
ldlework: what was it that needed to changed?
<sphalerite>
iqubic: yes.
<sphalerite>
iqubic: still the default on nixos because there's nothing else that has its advantages.
woodson has quit [Read error: Connection reset by peer]
<iqubic>
What advantages does slim have?
<__monty__>
It's a sad thing that it was discontinued.
<sphalerite>
i.e. all the others depend on a heavyweight UI toolkit like qt or gtk
<sphalerite>
except lightdm without a greeter, but that lacks a key feature that you'd want for a default display manager :)
<iqubic>
Can I just go with no display manager, and just type startx to start up my WM of choice?
<sphalerite>
I think so
<iqubic>
How?
<sphalerite>
install xinit in your profile, and set services.xserver.autorun = false;
woodson has joined #nixos
<sphalerite>
(your profile or systemPackages)
<__monty__>
sphalerite: What are the hashes calculated from? I always thought the outpath was just a hash of all the input drv's.
<sphalerite>
__monty__: if you have a look at the .drv file you'll see that it contains the output paths, so that's not possible :D
ikitat has quit [Remote host closed the connection]
<sphalerite>
I don't know what exactly the hash is computed over
<aminechikhaoui>
sphalerite: the drv inputs i.e build inputs ?
<aminechikhaoui>
and I guess actually any derivation input not only build inputs, env vars/build command/phases etc
<infinisil>
Everything that might influence the result
<infinisil>
Well almost
<__monty__>
aminechikhaoui: I think sphalerite means it should be something like hash(inputs + steps), not just hash(inputs).
<sphalerite>
build inputs aren't really special, they're just another env var
<sphalerite>
it's hash(builder + builder args + env vars + system + maybe something I didn't think of)
<sphalerite>
I think.
<sphalerite>
Not necessarily in that order of course.
vidbina has joined #nixos
<steveeJ>
could direnv with use_nix possibly work with an FHS environment?
<sphalerite>
__monty__: the build steps and buildInputs are nixpkgs concepts, not nix concepts, and just boil down to env vars as far as nix is concerned.
<sphalerite>
oh yeah, "maybe something I didn't think of" includes output name :)
<sphalerite>
and derivation name, derp
<sphalerite>
(it does also become an env var, but it's a bit of a special case because it has more effects than that, since the .drv and output paths depend on it)
<ldlework>
Is there anything like home-manager for NixOS yet?
<sphalerite>
ldlework: home-manager.
<sphalerite>
:D
<__monty__>
I wasn't talking about phases. Just the abstract concept of a recipe that says what to do with the inputs.
sigmundv__ has joined #nixos
<ldlework>
Why is it taking so long to get something into NixOS proper?
<ldlework>
I guess I don't really care.
<iqubic>
Why isn't home-manager in nixpkgs?
<ldlework>
(In the sense that I was already used to home-manager so its no big deal)
<ldlework>
iqubic: it isn't?
<sphalerite>
__monty__: the recipe is the builder, builder args and env vars I guess
<sphalerite>
iqubic: it is.
knupfer has quit [Ping timeout: 245 seconds]
<iqubic>
sphalerite: home-manage is in nixpkgs? How hard is it to switch to home-manager? What benefits will that give me?
<steveeJ>
might be an issue on my / partition. there's a symlink: lib64 -> /run/current-system/sw/lib. I don't remember setting this up myself though :D
<sphalerite>
ah yes, that's probably it
<sphalerite>
anyway I need to go sleep, gnight :)
lukec has quit [Ping timeout: 240 seconds]
seafood has joined #nixos
sqzlh has joined #nixos
seafood has quit [Client Quit]
vidbina has quit [Ping timeout: 240 seconds]
<steveeJ>
sphalerite: it was it! g'night :)
<sqzlh>
when building custom packages with fetchgit/fetchgitPrivate, is it possible to always follow the latest commit on a stable branch?
alexteves has quit [Remote host closed the connection]
griff_ has joined #nixos
<palo>
I can't figure out what ? operator in the header of a nixpkgs means.
<gchristensen>
default
<palo>
I want to fullfill this pull-request https://github.com/NixOS/nixpkgs/pull/40697, and I want that by adding some kind of pandocSupport option and disable that option on aarch Architecture.
<palo>
gchristensen: ah ok, that is good
<palo>
thanks, this helps
<gchristensen>
> let x = { foo ? "bar" }; in { ex1 = x {}; ex1 = x { foo = "baz"; }; }
<{^_^}>
error: syntax error, unexpected ';', expecting ':' or '@', at (string):41:24
<gchristensen>
oops
<gchristensen>
> let x = { foo ? "bar" }: foo; in { ex1 = x {}; ex1 = x { foo = "baz"; }; }
<{^_^}>
error: attribute 'ex1' at (string):41:48 already defined at (string):41:36
<gchristensen>
> let x = { foo ? "bar" }: foo; in { ex1 = x {}; ex2 = x { foo = "baz"; }; }
<{^_^}>
{ ex1 = <CODE>; ex2 = <CODE>; }
<gchristensen>
hahahaha ok I give up. but it works like that.