<{^_^}>
nixops#981 (by grahamc, 38 weeks ago, open): Delete all the providers (and use plugins instead)
<clever>
infinisil: and then there could be a terraform wrapper/plugin, that just abuses terraform for provisioning, and then does the rest with nixops
Ralith_ has joined #nixos
lightbulbjim_ has quit [Client Quit]
<clever>
gchristensen: i also want modular plugins, for example, a plugin that takes root on a rescue shell and just installs nixos
<clever>
gchristensen: then packet.net, ovh, and DO, would provision hardware with apis, call the above plugin, (optionally reboot), and then deploy as normal
<gchristensen>
definitely
alex``5671 has joined #nixos
<gchristensen>
mega +1
alex``567 has quit [Ping timeout: 245 seconds]
<infinisil>
clever: gchristensen: Oh, so like terraform can be used for many many machine providers, which we could use as a base for nixops which does the all the nice stuff with nixos
aanderse-work has joined #nixos
<infinisil>
Then we wouldn't have to code in every single backend ourselves
<infinisil>
Correct?
<aanderse-work>
mmm nixops chat
<gchristensen>
having to maintain all those backends in the nixops repo is obviously not working :)
<clever>
infinisil: just have a backend of terraform:aws that you set in nixops
<aanderse-work>
gchristensen: yeah it has been a battle so far :)
<aanderse-work>
infinisil: all vmware
<aanderse-work>
so i start with a single image
<aanderse-work>
i loaded up a nixos box
<aanderse-work>
trimmed the configuration down to almost nothing
<aanderse-work>
saved the image
<aanderse-work>
then the vm guys can fire up a new one in ~90 seconds
<aanderse-work>
a copy i mean
tboston_ has quit [Ping timeout: 246 seconds]
<infinisil>
Ah, so 20 instances of the same configuration?
<aanderse-work>
log on the box through vmware web tools
<aanderse-work>
set a static ip
<aanderse-work>
then take over the box with nixops
<infinisil>
Ahh
<aanderse-work>
my nixops configs were horrible to start
<aanderse-work>
but....
<aanderse-work>
it was 1 set of configs for x boxes
<aanderse-work>
so i could clean it up
<aanderse-work>
which i have been lately
<aanderse-work>
its becoming very nice
<infinisil>
That sounds exciting
Rusty1 has quit [Quit: Konversation terminated!]
<aanderse-work>
yeah i just need to convince the perl guys and then i think i'll have buy in from enough people
<kvda>
So the none backend removes any config, you have to make your own backend?
<gchristensen>
nice, aanderse-work
<gchristensen>
aanderse-work: where is -work?
aanderse-work is now known as aanderse-laptop
<gchristensen>
evading the question I see! ;)
<aanderse-laptop>
lol
<kvda>
I'm keen to have everything working on nix, would like to avoid terraform
<infinisil>
Hehe
<ashkitten>
none backend with left config
domogled has quit [Ping timeout: 245 seconds]
<infinisil>
kvda: The none backend just tells nixops that it can assume a working NixOS machine, so it doesn't need to do anything about setting it up
rprije has joined #nixos
ixxie has quit [Ping timeout: 246 seconds]
<kvda>
I see, so it essentially turn of the infra provisining off?
<infinisil>
I think so yeah
<infinisil>
kvda: gchristensen and clever just convinced me that using terraform as nixops only backend would be really neat, maybe read the backlog to get convinced too
<day|flip>
ummm. question. how do i boot into a live iso that need microcde to load the boot loader?
<infinisil>
As far as I understood it, If nixops would use terraform like that, you can still have everything managed in your nixops config, but it would work with almost every provider out there
<aanderse-laptop>
that would be great
<aanderse-laptop>
because i can't create new machines from nixops
<aanderse-laptop>
i still need to ask the vm guys
<kvda>
Mm yep I was reading that, except it's not currently possible to do that?
<aanderse-laptop>
but terraform appears to work with vmware...
<aanderse-laptop>
so if all that happened
<kvda>
And if you go with AWS with nixops you don't need all the provider support terraform offers as well
<aanderse-laptop>
in theory i could provision new vmware machines on the fly from nixops
<infinisil>
aanderse-laptop: I guess you *could* integrate the thing the vm guys do into nixops itself, but that's a pain
<aanderse-laptop>
infinisil: yeah effectively write a nixops backend
<infinisil>
kvda: What do you mean "go with AWS"?
<infinisil>
kvda: That's the entire point of terraform I think, that you don't need to condition yourself on a specific provider
sheeldotme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kvda>
Yes, but nixops lacks in that department, as in AWS might be more supported one
domogled has joined #nixos
<infinisil>
clever: gchristensen: (correct me if I'm wrong)
lightbulbjim_ has joined #nixos
<infinisil>
kvda: Yeah nixops doesn't work like that for now, but with enough support it might in the future
<kvda>
nixops could get to a point where it has the coverage of terraform, but i wonder if your use cases are VirtualBox and AWS whether it will do good enough job currently
lunik18 has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjYVT
<infinisil>
kvda: I can't parse that sentence sorry
<infinisil>
"but i wonder if your use cases are VirtualBox and AWS whether it will do good enough job currently" <- that part
o1lo01ol1o has joined #nixos
<kvda>
Maybe I'm not understanding the current capabilities of nixops, I've got a meeting, hope to continue the conversation in a bit :)
lightbulbjim_ has quit [Client Quit]
lunik18 has joined #nixos
<infinisil>
Alright
lightbulbjim has joined #nixos
toppler` has quit [Read error: Connection reset by peer]
<kvda>
infinisil ok so terraform provisions infrastructure, so does nixops along with other things, terraform is currently the best tool for that, but nixops might do good enough of a job if you're infrastructure happens to align with infrastructure support in nixops
<kvda>
this is my understanding, i could be way off
<kvda>
if you're provisioning Azure services nixops support might be too buggy compared to terraform so you might still want to use it instead of nixops
<shachaf>
Someone else in here said they had this issue, right?
hellrazor has quit [Ping timeout: 250 seconds]
<shachaf>
I keep rolling back to my profile from 2019-03-01 but this seems excessive at some point.
jluttine has joined #nixos
lightbulbjim has quit [Quit: Leaving]
freeman42x has quit [Ping timeout: 258 seconds]
lightbulbjim has joined #nixos
lightbulbjim has quit [Remote host closed the connection]
Supersonic has quit [Ping timeout: 264 seconds]
hellrazor has joined #nixos
drakonis_ has joined #nixos
<delroth>
I have a weird cross-build issue I don't understand. I'm building gettext for my target (armv7l). gettext has a nativeBuildInputs = [ bison ]; but somehow what shows up in its derivation inputs isn't host bison, it's target bison
<delroth>
like, host bison isn't showing up at all in the derivation inputs, and target bison does even though it's not in buildInputs
drakonis has quit [Ping timeout: 250 seconds]
mexisme has joined #nixos
lightbulbjim has joined #nixos
drakonis has joined #nixos
<matthewbauer>
shachaf: could you open an issue?
hellrazo1 has joined #nixos
<justanotheruser>
hello, I updated nixos to 19.03 in nix-channel, I tried to upgrade. here is the error I'm getting, could someone please advise? https://paste.debian.net/1077877/
<Ashy>
(it currently fails to build the zfs modules for me)
<Ashy>
at least last week it still was, haven't tried since then
<infinisil>
gchristensen: (that's master)
<gchristensen>
oh
everybodyHertz has joined #nixos
<gchristensen>
infinisil: you need to sleep!
jtojnar has joined #nixos
<sondr3>
master is also 19.03 stable though, I'm on 19.03 and my kernel is 5.0.7
<infinisil>
gchristensen: You do have a point there..
<sondr3>
at least for the kernel I mean
<sondr3>
however I am stealing gchristensen advice and going to sleep, cya :)
<gchristensen>
:)
sondr3 has quit [Quit: WeeChat 2.4]
<gchristensen>
my evil plan is to get all y'all CEST people on EDT
mwilsoncoding has quit [Ping timeout: 268 seconds]
Serus has joined #nixos
<delroth>
matthewbauer: since you kinda seem to be the cross-compilation expert... seems like https://github.com/NixOS/nixpkgs/pull/58997 has broken pretty much all cross builds on master because gettext doesn't build anymore. It sets nativeBuildInputs = [ bison ] but for some reason that ends up grabbing a target bison instead of a host bison. Any idea?
<delroth>
(can be repro'd super easily, even just nix-build . -A pkgsCross.raspberryPi.gettext is broken right now)
<delroth>
I've tried debugging it and got lost in layers of splicing and stages and things that go way above my head :-)
<delroth>
oh, and doing nativeBuildInputs = [ buildPackages.bison ] fixes it, but I have no idea why that would be needed and whether that's the correct fix :)
sam_d has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
InFlames has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #59754 → Cleanup; Remove old patches → https://git.io/fjYwo
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #59755 → make-derivation: put patches in all derivations → https://git.io/fjYrv
drakonis has quit [Ping timeout: 240 seconds]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
stepcut_ has joined #nixos
stepcut has quit [Ping timeout: 246 seconds]
stepcut_ has quit [Remote host closed the connection]
lovesegfault has joined #nixos
jasongrossman has quit [Ping timeout: 246 seconds]
<rprije>
Hi all. How can I stop the nix garbage collector from blowing away my development environment? I tried this sort of thing: https://nixos.org/nix-dev/2015-December/018989.html but it doesn't seem to have helped.
<clever>
rprije: if you have a nix-shell open when you GC, it wont be able to delete things
<clever>
rprije: other then that, you can use `nix-collect-garbage --max-freed 1g` to make it only delete 1g worth of garbage
<clever>
what it deletes is random, but it will have a chance of keeping things you want, based on how much garbage there is
<rprije>
I definitely have a nix-shell open pretty well 24h and it still blows away my cross-compilation environment every night.
<clever>
without --max-freed, that chance is 0%, since it deletes everything
<rprije>
I see. I guess that'd at least mitigate it a little
<clever>
if you know the exact storepath you want to keep, you can also `nix-store -r /nix/store/foo --add-root root-name --indirect`
<clever>
and it will create a root-name symlink in the current directory (just like the result links)
<clever>
then it cant delete that path
jasongrossman has joined #nixos
<rprije>
Yeah, I think that's the idea in the link. Thanks, I'll play with it a bit more and maybe I can make some sense of what's going on.
<{^_^}>
[nixpkgs] @veprbl merged pull request #59428 → watchexec: remove Darwin hack in favor of cf-private → https://git.io/fjm0n
<{^_^}>
[nixpkgs] @veprbl pushed commit from @lilyball to master « watchexec: remove Darwin hack in favor of cf-private (#59428) »: https://git.io/fjYow
rauno has joined #nixos
jackdk_ has joined #nixos
jackdk has quit [Disconnected by services]
jackdk_ is now known as jackdk
alex``56712 has joined #nixos
lightbulbjim has joined #nixos
alex``5671 has quit [Ping timeout: 246 seconds]
lightbulbjim has quit [Client Quit]
lightbulbjim has joined #nixos
lightbulbjim has quit [Client Quit]
lightbulbjim has joined #nixos
lightbulbjim has quit [Read error: Connection reset by peer]
lightbulbjim has joined #nixos
<{^_^}>
[nixpkgs] @veprbl merged pull request #59385 → mdbook: fix Darwin support → https://git.io/fjm3W
<{^_^}>
[nixpkgs] @veprbl pushed commit from @lilyball to master « mdbook: fix Darwin support (#59385) »: https://git.io/fjYo7
<nefix>
Synthetica: and how can I test it locally before making the PR?
romildo has joined #nixos
<Synthetica>
nefix: Something like `sudo nixos-rebuild -I nixpkgs=/home/synthetica/devel/nixpkgs/ test`
hellrazor has quit [Ping timeout: 246 seconds]
romildo_ has joined #nixos
<nefix>
Thanks!
romildo__ has joined #nixos
romildo has quit [Ping timeout: 250 seconds]
romildo_ has quit [Ping timeout: 250 seconds]
<etu>
domenkozar++
<{^_^}>
domenkozar's karma got increased to 23
romildo__ has quit [Ping timeout: 250 seconds]
AleXoundOS_ has joined #nixos
<{^_^}>
[nixpkgs] @xrelkd opened pull request #59767 → cargo-bloat: init at 0.6.2 → https://git.io/fjYPS
fendor_ has joined #nixos
romildo has joined #nixos
romildo_ has joined #nixos
romildo__ has joined #nixos
rprije has quit [Ping timeout: 246 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lightbulbjim has quit [Quit: Leaving]
lightbulbjim has joined #nixos
romildo has quit [Ping timeout: 255 seconds]
romildo_ has quit [Ping timeout: 255 seconds]
Soo_Slow has joined #nixos
romildo__ has quit [Ping timeout: 246 seconds]
romildo has joined #nixos
chimay has joined #nixos
romildo_ has joined #nixos
romildo has quit [Disconnected by services]
hyper_ch2 has quit [Ping timeout: 256 seconds]
jfroche has joined #nixos
romildo has joined #nixos
romildo has quit [Disconnected by services]
romildo__ has joined #nixos
init_6 has joined #nixos
conhps has quit [Ping timeout: 245 seconds]
knupfer has quit [Ping timeout: 240 seconds]
<Taneb>
I'm trying to use buildPythonPackage with format = "wheel", and I'm getting "foo-0.1.0-cp36m-manylinux1_x86-64.whl is not a supported wheel on this platform"
<ggpeti>
I'm about to start developing a nix package for another postgresql extension, and I have a number of questions
<pie_>
is there anything for compiling nix to ansible or something
<ggpeti>
anyone in here with the slightest idea where the pgext nix packages are headed?
<ggpeti>
pie_: could you be more specific? Surely there is "something"
ThatDocsLady has joined #nixos
romildo has joined #nixos
<pie_>
ggpeti, ive never used ansible and would like to avoid actually writing it as much as possible :D basically ill need to deploy nix and some prereqs to a machine and then probably just offload everything else to nix
<pie_>
simplest thing is probably to just write some ansible
<ggpeti>
why would you need to write any ansible?
romildo_ has joined #nixos
<nefix>
I have like 10 domains that I want to have secured using let's encrypt. Is there any way to configure acme to request the certificates one after the other so it doesn't ask too much quickly and acme bans me?
romildo__ has joined #nixos
ggpeti has quit [Quit: Page closed]
romildo has quit [Ping timeout: 246 seconds]
vidbina has joined #nixos
romildo_ has quit [Ping timeout: 255 seconds]
hyper_ch2 has joined #nixos
romildo__ has quit [Ping timeout: 255 seconds]
hellrazor has joined #nixos
JonReed has quit [Ping timeout: 256 seconds]
lightbulbjim has quit [Read error: Connection reset by peer]
<Qubasa>
As I upgraded my zfs encrypted server to 19.03 the build failed with following error: https://gist.github.com/Luis-Hebendanz/333ca4eb855cf9d2889b7386a6477456. zfs.unstable is enabled on my machine because I wanted zfs encryption is it now in stable? Can I just disable zfs.unstable and rebuild again to upgrade
Glider_IRC_ has quit [Read error: Connection reset by peer]
lightbulbjim has quit [Ping timeout: 268 seconds]
hjulle has joined #nixos
Makaveli7 has quit [Quit: WeeChat 2.4]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bertof has joined #nixos
zupo has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has quit [Client Quit]
<hjulle>
Can I install packages from nixpkgs:staging-19.03? If so, how? Will the finished corresponding hydra tasks be in the binary cache?
o1lo01ol1o has joined #nixos
<Ashy>
Qubasa: i had the same issue on my machines and "fixed" it temporarily by commenting out latest kernel: `#boot.kernelPackages = pkgs.linuxPackages_latest;`
<{^_^}>
#59770 (by Luis-Hebendanz, 36 minutes ago, open): ZFS fails to build in 19.03
<phdoerfler>
For now I rolled back onto an old 18.07 profile but I'd like to know what I can do about this
<phdoerfler>
or if people know about this at least
<phdoerfler>
a quick googling came up with nothing related to nixos
asymmetric| has joined #nixos
asymmetric| is now known as asymmetric
zupo has joined #nixos
Jetien__ has joined #nixos
romildo has joined #nixos
zupo has quit [Client Quit]
<Ashy>
Qubasa: nice, I've found that I love the idea of zfs more than the current reality of it on linux and freebsd. btrfs seems to be getting closer every major kernel release recently
Neo--- has joined #nixos
<Qubasa>
Ashy: Hmm I will have a look into it but I would rather like to stick with zfs because I don't want to redeploy my server T.T
orivej has joined #nixos
Guest26289 has joined #nixos
<tilpner>
Qubasa: I think your title is very misleading
<tilpner>
Qubasa: zfs unstable builds fine on 19.03 with default config
<tilpner>
You deviated from that and tried to build unstable against the latest kernel, which zfs unstable doesn't support
<tilpner>
zfs stable should support that though
<Qubasa>
tilpner: I see yeah I will fix that
<tilpner>
But there's nothing NixOS can do about that, really
<Qubasa>
I know but at least there is an issue on it where people can look it up
<{^_^}>
[nixpkgs] @NeQuissimus pushed commit from @WilliButz to master « grafana: 6.1.3 -> 6.1.4 »: https://git.io/fjYMP
orivej has quit [Ping timeout: 246 seconds]
jabranham has joined #nixos
romildo has left #nixos [#nixos]
orivej has joined #nixos
<hjulle>
Why is nixos-unstable ahead of nixpkgs-unstable?
conhps has joined #nixos
acarrico has quit [Ping timeout: 240 seconds]
<tilpner>
That is a good question
conhps has left #nixos [#nixos]
<siraben>
I'm trying to update my system via sudo nix-channel --update && sudo nixos-rebuild switch --upgrade but I'm getting an error: https://paste.debian.net/1077924/ anyone know why?
<siraben>
Something looks awry with pycurl
<tilpner>
hjulle: I suspect it is because nixos-unstable has no darwin-specific tests, and those are failing
stepcut has joined #nixos
acarrico has joined #nixos
<tilpner>
siraben: If you needed a reason to upgrade, pycurl builds fine on 19.03
zupo has joined #nixos
hlolli has joined #nixos
<Qubasa>
Ohh man the kernel: linuxPackages_hardened also breaks on 19.03...
<siraben>
tilpner: hm, how do I check my current version?
<tilpner>
It's usually done the other way around, but this will work too
<tilpner>
For pycurl, no idea if torbrowser builds
<siraben>
tilpner: I'm on nixos-unstable
<jabranham>
After upgrading to Koi, I get this kernel error on boot: "kernel: hdaudio hdaudioC0D3: Unable to bind the codec". Does anyone know anything about this? My searching doesn't bring up anything terribly useful.
fendor_ has quit [Read error: Connection reset by peer]
<siraben>
I'll check if it's related to tor browser
<tilpner>
siraben: Yes, I know
fendor_ has joined #nixos
hlolli has quit [Read error: Connection reset by peer]
hlolli_ has joined #nixos
<arianvp>
Anybody else here using GNome3?
<arianvp>
after updating to 19.03 I can not open the file manager anymore
<arianvp>
Oh it works now. but it took 5 minutes to start up
<{^_^}>
[nixops] @AmineChikhaoui pushed 6 commits to master: https://git.io/fjYDW
bertof has joined #nixos
<{^_^}>
[nixops] @AmineChikhaoui pushed to master « update release date »: https://git.io/fjYDu
<{^_^}>
[nixops] @AmineChikhaoui pushed 0 commits to refs/tags/v1.7: https://git.io/fjYDa
fendor has joined #nixos
<teto>
even after a nix-collect-garbage, I still don't have enough space. I removed stray roots etc. I am now going through big store entries to see if I can do without them. haskell takes the most memory with old ghc versions I have no idea why they are still there. I run ix-store --query --referrers /nix/store/irjiv62r92m973agpaaa7lqzrmx0syz4-ghc-8.2.2-binary but that doesn't help me, is there a sfotware to see a
<teto>
tree of the dependencies ?
fendor has quit [Read error: Connection reset by peer]
fendor has joined #nixos
<tilpner>
Try --query --tree
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fendor has quit [Read error: Connection reset by peer]
rauno has quit [Remote host closed the connection]
<jabranham>
teto: did you try optimise?
<tilpner>
Also "sudo nix-collect-garbage -d" will free the most space
<tilpner>
And delete old generations
<infinisil>
teto: You want to use --query --roots to see why stuff isn't gcd
mwilsoncoding has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
alexherbo21 has joined #nixos
Soo_Slow has quit [Remote host closed the connection]
bertof has quit [Quit: bertof]
bertof has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
sondr3 has joined #nixos
dominicusin[m] has joined #nixos
<samrose>
https://github.com/moretea/yarn2nix doesn't seem to be a viable solution for hydra-based builds. Anyone with some alternative clues out there?
<edcragg>
hi, any way i can add an ssh private key to a system from configuration.nix?
<etu>
edcragg: I think most of us see the private keys as state and don't have it in the config
jtojnar has joined #nixos
<edcragg>
fair enough. i just wanted it for an automated deployment to get some stuff from git needed to set up a system
petrkr has quit [Remote host closed the connection]
<JonReed>
edcragg: Nix puts everything in `/nix/store`, which is readable by any user, so making nix manage keys would be questionable security-wise.
<qyliss^work>
You could write an activation script to fetch an SSH key from somewhere, if you wanted.
<qyliss^work>
But doing it in Nix is a bad idea, as JonReed said
<cransom>
are those ssh keys also unencrypted in git?
<edcragg>
interesting
<gchristensen>
please be encrypted in git
<gchristensen>
please don't store anything sensitive in git
<edcragg>
it's all on private infra
<cransom>
that's also something you should also address :(
<immae>
edcragg: there are solutoins with nixops + git + pass, I have some secure setup if you need help
<immae>
the idea is that nixops will "load" a file (containing all the passwords) from password store as a nix expression, and send them via deployment.keys
<immae>
and the rest can be stored in git as it doesn’t have any sensitive information
<arianvp>
it allows pushing secrets in a declarative way
<arianvp>
but again, it's managed as 'state' but at least declaratively
<Taneb>
Hmm, it seems setting a multiple-output derivation as a buildInput doesn't make it update PATH (I noticed this with nixpkgs.caffe)
<edcragg>
arianvp: i have played a bit with nixops, but currently just trying to get a configuration.nix for what i need before thinking about deployment
<selfsymmetric-mu>
Hello! I can install Python 3.7.3 with `pkgs.python37.withPackages(ps: with ps; [ virtualenv ]);`. But I need Python 3.7.2. How can I get that?
<edcragg>
arianvp: i'm deploying Nixos to a VPS to host a static website. the content for the website is stored in git, and i wanted to let it fetch the content from a git server when it builds the rest of the system, having a private key seemed like an easy way for it to be able to do that
<selfsymmetric-mu>
I can't even find the minor python version in NixOS because it means that NixOS can't pin it. Ridiculous.
<sondr3>
edcragg: unless your VPS is going to push stuff to the Git repo using HTTPS is no different from SSH
<selfsymmetric-mu>
sondr3: Yes. It does not work with 3.7.3.
<sondr3>
huh, weird
<selfsymmetric-mu>
Indeed. But now I need to get a specific version.
<selfsymmetric-mu>
And my overrides are not working.
<selfsymmetric-mu>
This is quite frustrating.
npmccallum has joined #nixos
<selfsymmetric-mu>
I thought this was what NixOS was supposed to be good at.
<sondr3>
It absolutely is, but your override isn't correct
<selfsymmetric-mu>
It isn't? How do you know? Hard to tell without types.
<selfsymmetric-mu>
It passes the interpreter without any issues.
<selfsymmetric-mu>
And the linter.
<edcragg>
arianvp: nice, thanks, this is all new stuff to me, and i think stuff like that could be rather handy
<selfsymmetric-mu>
Is there some way I can write overrides in a more idiotproof way? Right now I just try my best to put them into my configuration.nix and pray.
<selfsymmetric-mu>
With all the global variables who knows what's going on.
<selfsymmetric-mu>
Maybe with a REPL I can see exactly which attributes I'm changing?
<sondr3>
selfsymmetric-mu: I'm looking at it, but for the most part you should do this in a shell.nix/default.nix and not directly in your configuration.nix
<sondr3>
way easier to work with
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sondr3>
or using an overlay
<selfsymmetric-mu>
This one is in a shell.nix
<selfsymmetric-mu>
But I can't see what's wrong with it.
<selfsymmetric-mu>
I have never met a system that makes me feel as dumbfounded as Nix. There are like twelve different ways to override, they can apparently all fail silently, and what works to override attributes in Emacs doesn't work to override attributes in Python.
chimay has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
<selfsymmetric-mu>
I wish there was a way to inspect an overridden package to actually _see_ what I'm doing.
goibhniu has quit [Ping timeout: 255 seconds]
<selfsymmetric-mu>
Because right now I feel dumb and stupid.
<selfsymmetric-mu>
And blind.
<infinisil>
selfsymmetric-mu: Yeah overrides are a mess right now
<selfsymmetric-mu>
infinisil: Oh thank goodness. I thought I was the only one feeling the pain.
<selfsymmetric-mu>
I would love to see global overrides and overlays de-emphasized in favor of declarative packages where the overrides are denoted in the same place as the package itself.
<selfsymmetric-mu>
So that I can say "I want python, but version 3.7.2".
<selfsymmetric-mu>
Rather than saying "I want python" in one file and "whenever I want python I want it to be version 3.7.2" off in some other file, committed by Sauron in Mordor.
<JonReed>
selfsymmetric-mu: Then `python37.sourceVersion.patch` will show "2". I choose to do it in repl because it can be done step by step and you can examine results.
<selfsymmetric-mu>
JonReed: Thank you! I want to develop that praxis for myself too.
<infinisil>
selfsymmetric-mu: Oh, I guess we could have a function like `pkgs.giveMeAPythonWith { version = "3.7.2"; packages = p: [ ... ]; overrides = ...; }`
<selfsymmetric-mu>
infinisil: Yeah, I thought that was what overrideAttrs was supposed to be...
<selfsymmetric-mu>
"I was this, but with..."
<infinisil>
Ah nope, not at all
<selfsymmetric-mu>
ugh
<selfsymmetric-mu>
_is_ there some functionality like that?
<infinisil>
.override gets close I guess
<selfsymmetric-mu>
I know YAML doesn't have it but I was hoping we'd learned something by now.
<selfsymmetric-mu>
Yeah but override isn't localized to the declaration and is therefore Evil.
<sphalerite>
yes it is
<selfsymmetric-mu>
It is localized or it is Evil?
<sphalerite>
well, there's not really a declaration involved
<sphalerite>
it's localised
<selfsymmetric-mu>
Hrmmm
<sphalerite>
`python.override {foo = bar;}` just returns something that you can use instead of `python`
<selfsymmetric-mu>
And it doesn't mutate python?
<sphalerite>
overlays (or the legacy packageOverrides) are what allow you to modify stuff "globally"
<sphalerite>
no, it doesn't
<selfsymmetric-mu>
Oh okay. I think I've seen people use it that way.
<sphalerite>
it can't even, because yay purely functional
<selfsymmetric-mu>
Oh that's good.
<selfsymmetric-mu>
You can't even dump it back in the same variable?
<sphalerite>
no
<selfsymmetric-mu>
Oh. Great!
<sphalerite>
functions in nix can't mutate stuff, only return values (potentially modified versions of what you passed in, or things they got from elsewhere)
<selfsymmetric-mu>
Wunderbar.
<selfsymmetric-mu>
I love it.
<selfsymmetric-mu>
So apparently the thing I hate is overlays?
<selfsymmetric-mu>
and packageOverrides?
<selfsymmetric-mu>
And what's the difference between override and overrideAttrs again?
<sphalerite>
and overlays are functions that take two package sets and return a new package set. They're applied at the top level of nixpkgs so they can modify anything
<sphalerite>
override changes what's passed into the package function, and is provided by callPackage. You'd usually use that to replace a dependency of a package.
<selfsymmetric-mu>
override overrides arguments to a package function and overrideAttrs changes the attributes passed to he derivation...
hjulle_ has joined #nixos
<sphalerite>
overrideAttrs is provided by mkDerivation and changes what's passed to mkDerivation
<selfsymmetric-mu>
Ah okay. I'm going to have to learn more. Or get used to it. Or wait for it to be smoothed out.
<sphalerite>
(where "changes" is in the sense that it returns a changed thing, no mutation involved :) )
<selfsymmetric-mu>
In the meantime, how can I inspect `python37` in Jon's solution?
<selfsymmetric-mu>
I get `error: value is a path while a set was expected, at (string):1:2`
<selfsymmetric-mu>
sphalerite: Okay, got it. Thank you.
<selfsymmetric-mu>
I'm guessing I can't just call `python37.sourceVersion` in a repl and get away with it?
<sphalerite>
you might be able to
<selfsymmetric-mu>
I don't understand why it says that the value is a path when it's just the number 2.
<sphalerite>
or rather: you definitely can, but I'm not sure if python37 has a sourceVersion attribute
<{^_^}>
{ major = "3"; minor = "7"; patch = "3"; suffix = ""; }
<selfsymmetric-mu>
Boy what is going on with my REPL then? Maybe I'm cursed? Would explain a lot.
<sphalerite>
1. how did you start the repl? 2. What did you type in the REPL?
<{^_^}>
[nixpkgs] @AmineChikhaoui opened pull request #59779 → Merge pull request #59776 from AmineChikhaoui/nixops-release-1.7 → https://git.io/fjY9w
<linarcx>
Guys, how can i add gnome3.gtk to a package dependencies?
<sphalerite>
if you run it as `nix repl '<nixpkgs>'` and type `python37.sourceVersion` it should work
<selfsymmetric-mu>
Maybe I didn't load pkgs right.
<gchristensen>
aminechikhaoui: ^ w.r.t. your PR, can you backport the original commit, not the merge commit?
<JonReed>
selfsymmetric-mu: Sorry, it should be ` python37 = pkgs.python37.override ( { sourceVersion = (pkgs.python37.sourceVersion // { patch = "2"; } ) ; } )`
<sphalerite>
linarcx: within nixpkgs or in an overlay?
<aminechikhaoui>
oh
<linarcx>
sphalerite: No, i'm creating a package.
<JonReed>
selfsymmetric-mu: I accidentally used an Int instead of a string. (2 instead of "2).
hlolli_ has joined #nixos
<sphalerite>
linarcx: ah ok. buildInputs = [ gnome3.gtk ];`
<selfsymmetric-mu>
sphalerite: JonReed: Yeah, I didn't load pkgs correctly.
<linarcx>
sphalerite: Outpu of nix-build: `error: undefined variable 'gnome3' ..`
PirBoazo has joined #nixos
<selfsymmetric-mu>
FYI I was able to shorten the definition to `python37 = pkgs.python37.override { sourceVersion.patch = "2"; }`, which I think reads better.
<sphalerite>
linarcx: how are you writing the package? i.e. does it start with { stdenv, foo, bar }: ?
<sphalerite>
selfsymmetric-mu: that will replace sourceVersion with a set containing only { patch = "2"; }, discarding major, minor, and suffix
<linarcx>
sphalerite: Yes, Ah i get, i add gnome3 to it and it's work now :))
<selfsymmetric-mu>
That's far too much dark magic. This can't be right.
<selfsymmetric-mu>
You can't expect me to believe that this is the way to update a single nested attribute!!
<sphalerite>
I don't expect you to believe it. But it is the truth. :p
<selfsymmetric-mu>
My god.
<sphalerite>
There have been some plans to make this sort of stuff nicer to use, but they've not been implemented yet AFAIK
<selfsymmetric-mu>
I hate to look a gift horse in the mouth but I am considering turning it into glue.
<selfsymmetric-mu>
This is baaaaaaaaad.
<selfsymmetric-mu>
I think there's a dhall-to-nix converter out there.
<selfsymmetric-mu>
I may look into that to see if it's suitable for environment administration.
<sphalerite>
There absolutely is
<gchristensen>
how about { orig.sourceVersion // { patch = "2"; };
<selfsymmetric-mu>
Okay. I may go down that route.
<sphalerite>
not sure how helpful it is though
<gchristensen>
or something like that
<selfsymmetric-mu>
Basically I'm wondering whether it can do OS administration at this point or whether it's just a language game.
<aminechikhaoui>
gchristensen looks better now ?
erasmas has joined #nixos
<sphalerite>
yeah that's an option — written out fully, pkgs.python37.override (orig: { sourceVersion = orig.sourceVersion // {patch = "2"; }; })
<sphalerite>
that's not that much better :p
<selfsymmetric-mu>
Because if we can kick the problem to the interface layer then we can just worry about making the translation work across updates and I can _never to overrides like this again_.
<selfsymmetric-mu>
*do
<gchristensen>
you're never gonig ot get away from the semantics of how they work
bertof has quit [Read error: Connection reset by peer]
<sphalerite>
selfsymmetric-mu: I don't think dhall would really help, maybe guix would be a better option.
bertof has joined #nixos
<tilpner>
sphalerite++ for showing that override can take functions
<{^_^}>
sphalerite's karma got increased to 56
<selfsymmetric-mu>
gchristensen: Oh, that sounds interesting.
<selfsymmetric-mu>
That makes it sounds like there's a real distinction, rather than just a syntax problem.
<selfsymmetric-mu>
Can you explain that to me?
<gchristensen>
nope, I shouldn't have said anything :P
<sphalerite>
tilpner: only just learnt it myself from a colleague recently :D
<PirBoazo>
Hi all , i seekinformation to understand why the command : nixos-rebuild switch --upgrade don't create a new generation
<{^_^}>
[nixpkgs] @joachifm pushed to master « tor-browser-bundle-bin: defaults for XAUTHORITY and DBUS_SESSION_BUS_ADDRESS »: https://git.io/fjY9F
<selfsymmetric-mu>
Yeah, this doesn't look like a semantics problem. I really did expect that only my specified attributes would be overridden.
<selfsymmetric-mu>
And if I wanted to do it otherwise I would override the parent.
<sphalerite>
PirBoazo: presumably your channels were up-to-date before running it, and there are no changes in your system config, so the system builds into the same thing
<selfsymmetric-mu>
After all that's how regular Nix attributes work.
day|flip has joined #nixos
<sphalerite>
selfsymmetric-mu: { sourceVersion.patch = "2"; } is syntactical sugar for { sourceVersion = { patch = "2"; }; }
<selfsymmetric-mu>
Um. Surely not in general.
<PirBoazo>
sphalerite: the last generation date is 28.02.2019 , since i update the channel to 2019-03 and upgrade the system
<sphalerite>
selfsymmetric-mu: if you take { sourceVersion = { major = "3"; minor = "7"; patch = "3"; suffix = ""; }; } and apply the set update operator to that and { sourceVersion.patch = "2"; }, sourceVersion will be replaced
<selfsymmetric-mu>
Just because I update `i18n.consoleFont` in my `configuration.nix` doesn't mean that everything else is obliterated.
<sphalerite>
selfsymmetric-mu: yeah, nixos modules are a whole different story.
<selfsymmetric-mu>
Yes. And that is obnoxious.
<selfsymmetric-mu>
By the way even the ugly override doesn't work in my shell.
<sphalerite>
selfsymmetric-mu: there are lots of different ways of combining sets, and nixos modules provide a complex system for defining how different values for options are combined
<AlexRice[m]>
related question, if {a.b = x} is syntactic sugar for {a = {b = x}} then is {a.b=x; a.c=y;} syntactic sugar for {a = {b=x; c=y;}} or is there something else going on
pie_ has joined #nixos
<selfsymmetric-mu>
I believe that declarative configuration will win as long it's introspective enough. I'll look into the dhall conversion layer and see if that provides some relief.
wfranzini has quit [Remote host closed the connection]
<gchristensen>
that is right, AlexRice[m]
<selfsymmetric-mu>
Thanks for all the help.
<AlexRice[m]>
gchristensen: as in the first thing I said is right?
<gchristensen>
right
wolfman154 has joined #nixos
<gchristensen>
however:
<gchristensen>
> { a = { b = "hi"; }; a.c = "there"; }
<{^_^}>
{ a = <CODE>; }
<gchristensen>
wat
<gchristensen>
> :p { a = { b = "hi"; }; a.c = "there"; }
<{^_^}>
{ a = { b = "hi"; c = "there"; }; }
<gchristensen>
infinisil: I don't think that should have worked?
<AlexRice[m]>
> :p { a = { b = "hi"; }; a = {c = "there;}; }
<{^_^}>
error: syntax error, unexpected $end, expecting '"', at (string):251:32
<infinisil>
Huh
<AlexRice[m]>
oh i messed up a quote
<AlexRice[m]>
but that shouldn't work anyway right?
<day|flip>
so question. i was think getting a new laptop with arm. but not to sure how it will work snapdragon 850. will the kernel support it?
<infinisil>
gchristensen: Yeah why did that work
<sphalerite>
> :p { a.b = "hi"; a = { c = "there"; }; }
<{^_^}>
error: attribute 'a' at (string):251:15 already defined at (string):251:3
<sphalerite>
gchristensen: it's order-dependeny
<infinisil>
What the hell
<AlexRice[m]>
gchristensen: what you wrote works in repl
<gchristensen>
wtf it does work
<infinisil>
sphalerite: Why though??
<wolfman154>
How do I change the mouse size in nixos? My laptop is 3k so it makes everything real tiny, I fixed the font size problem with terminator, but I don’t know how to change the mouse size in nixos?
<AlexRice[m]>
I'm pretty sure i use that in my configuration
<gchristensen>
[grahamc@Petunia:~]$ nix-instantiate --strict --eval --json --expr '{ a = { b = "hi"; }; a.c = "there"; }'
<gchristensen>
{"a":{"b":"hi","c":"there"}}%
<gchristensen>
[grahamc@Petunia:~]$ nix-instantiate --strict --eval --json --expr '{ a.c = "there"; a = { b = "hi"; }; }'
<gchristensen>
error: attribute 'a' at (string):1:18 already defined at (string):1:3
arjen-jonathan has quit [Ping timeout: 246 seconds]
<AlexRice[m]>
should it not work?
<gchristensen>
I did not expect it to work
<sphalerite>
set construction is imperative :p
<infinisil>
I'd call this a bug
kleisli has quit [Ping timeout: 268 seconds]
<sphalerite>
pretty sure it's known
<sphalerite>
and I think it's just a case of nobody can be bothered to improve it
<wolfman154>
How do I change the mouse size in nixos? My laptop is 3k so it makes everything real tiny, I fixed the font size problem with terminator, but I don’t know how to change the mouse size in nixos?
<gchristensen>
wolfman154: I think you'll need to do some research to find out. nobody has joined / left since you last asked, and not many have joined / left since the time you asked before
<gchristensen>
it is probably the same way as you'd do it on any other distro
<AlexRice[m]>
{a.b =1; a.c = 2;}; is meant to work right?
<gchristensen>
yes
pie_ has quit [Ping timeout: 255 seconds]
sb0 has joined #nixos
Ariakenom has quit [Quit: Leaving]
__monty__ has joined #nixos
bertof_ has joined #nixos
[0x4A6F] has joined #nixos
<wolfman154>
gchristensen: ok, I searched nixos options, and couldn’t find anything, Is there a nix package that I can install to change settings like this?
lovesegfault has quit [Ping timeout: 250 seconds]
bertof has quit [Ping timeout: 246 seconds]
bertof_ is now known as bertof
<gchristensen>
no idea, you'll have to research it
ubert has quit [Remote host closed the connection]
<wolfman154>
gchristensen: ok, just tried asking to save some time, back to searching
<tilpner>
wolfman154: With these questions, it might help to figure out how it's done on other distros first
<tilpner>
wolfman154: Then you can come here and ask "I know what I would do on $DISTRO, how do I do it in NixOS"
jb55 has quit [Quit: WeeChat 2.4]
parsnip has quit [Quit: WeeChat 2.2]
<tilpner>
wolfman154: That is good for you, because many people here are good with NixOS, but much fewer are good with NixOS AND good with arcance X options
lovesegfault has joined #nixos
<JonReed>
wolfman154: As for cursor, also there is `Xcursor.size` in `~/.Xresources`. Nix doesn't manage .Xresources file, so you can just update it manually. However, in case of a cursor, I think a window manager loads .Xresources on boot, so you would have to reboot or restart a window manager.
<tilpner>
(And I don't even know if those are required to help you)
kleisli has joined #nixos
<wolfman154>
tilpner: I already tried that, nixos is completely different from other Linux distributions
<tilpner>
No, it is not
Mr_Keyser_Soze has joined #nixos
<tilpner>
It's managed differently, but it uses many of the same components
<{^_^}>
[nixpkgs] @Mic92 merged pull request #59766 → vscode: use absolute predetermined path instead of heuristic → https://git.io/fjYPL
<wolfman154>
tilpner: ok you’re correct, I’m just trying to do everything the nix way
<tilpner>
Again, tell us what you would do in any other distro, and it'll be much easier to help you
<JonReed>
wolfman154: It is useful to first understand what specifically you want to do, i.e. how you would do it on another distro like Arch or Gentoo. This way you can search nixpkgs for keywords that will help you find where same things are generated in Nix. Nix does same things other distros, it just generates those things through Nix expressions.
<wolfman154>
I’m just ranting a little bit, I’m not trying to get into an argument!!!
<{^_^}>
[nixpkgs] @grahamc pushed 3 commits to release-19.03: https://git.io/fjYHA
AleXoundOS_ has joined #nixos
dbmikus_ has joined #nixos
kleisli has quit [Ping timeout: 244 seconds]
[0x4A6F] has quit [Remote host closed the connection]
Alling has joined #nixos
<Alling>
Hello channel! I have made an improved version of a Hackage package, which I have put on GitHub. Can I somehow use that package as a dependency in a shell.nix file I use in another Haskell project (where I use Stack to build)?
<matthewbauer>
delroth: they were so preoccupied with whether or not they could, they didn't stop to think if they should
eugenez has joined #nixos
<gchristensen>
hah
Neo--- has quit [Ping timeout: 268 seconds]
<ajs124>
I'm kind of struggling with writing a multiple output derivation right now. Basically, it splits everything into bin, lib and dev, leaving out empty, which means the build fails
<delroth>
matthewbauer: so turns out the only reason why cross-built packages pull in the whole host toolchain along with them
pie_ has joined #nixos
<delroth>
is because glibc has dontStrip = true; since 2012 in cross builds
<delroth>
added in 5481e67e2349a2cf159d4369b07d6fd11098d425
<{^_^}>
[nixpkgs] @timokau pushed commit from @cdepillabout to master « stretchly: init at 0.19.1 (#59383) »: https://git.io/fjYQK
<eugenez>
Hello, friends! I have a nasty problem with my new laptop, it immediately halts to a black screen upon loading nixos iso (only have UEFI loading available on this model) all other distros work great. A few ppl apparently run into this problem, there is an issue that I posted to here https://github.com/NixOS/nixpkgs/issues/7132 If i follow some of the advice there, loading goes into stage 2, but I end up
<{^_^}>
#7132 (by OOPMan, 4 years ago, open): NixOS Live USB/DVD fails in UEFI mode
<eugenez>
with kernel panic anyway, the same as others...
jabranham has joined #nixos
<matthewbauer>
delroth: oh nice! mostly i've been using musl but it's always good to have support for glibc
Thra11 has joined #nixos
lockshaw has quit [Quit: ZNC 1.7.1+deb1+bionic1 - https://znc.in]
<delroth>
too many things don't build with musl at this point, I've given up for now
<matthewbauer>
delroth: dontStrip is sometimes set in cross because stripping with the wrong strip command can lead to corruption
<delroth>
that seems like a problem with a generic solution
<matthewbauer>
delroth: but if the package uses the correct strip command, it should be okay to remove dontStrip = true
logzet has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @FRidh opened pull request #59784 → WIP: pkgsEmscripten: emscripten package set using cross toolchain → https://git.io/fjYQM
<{^_^}>
#35251 (by shlevy, 1 year ago, open): Cross glibc retains references to static gcc
lielazivee has quit [Ping timeout: 246 seconds]
<Alling>
srk: Is it enough to have a default.nix? I mean, will it be used when I run nix-shell, even though I also have a shell.nix?
<Alling>
I can't build so I can't tell if it works atm.
<Alling>
Stack recommends `stack solver`, but it doesn't work because it says executable cabal is not on the path.
freeman42x has joined #nixos
<Alling>
srk: I can see the examples in the GitHub repo, but I don't understand how they fit together with my setup. I don't really know Nix; I just got a shell.nix from a friend once and have just copied it whenever I need a new one.
<Alling>
(The top level in my shell.nix is a call to stdenv.mkDerivation.)
<{^_^}>
[nix] @jyrimatti opened pull request #2772 → Add example to include packages from different branches/revision → https://git.io/fjY7s
lovesegfault has joined #nixos
<srk>
Alling: shell.nix typically just imports default.nix
<Alling>
srk: Oh. My shell.nix is basically:
<srk>
Alling: and instead of maintaining custom shell.nix with set of packages you use cabal2nix to generate projectName.nix imported by default.nix
<{^_^}>
[nixpkgs] @worldofpeace pushed 7 commits to master: https://git.io/fjY7l
<srk>
Alling: you can get used to it quite fast :) I've ditched stack completely recently as nix + cabal new-build / new-repl works very well
<Alling>
srk: In the setup you describe, how would cabal2nix know from the cabal file that kmeans-par should be downloaded from GitHub and not from Hackage?
phreedom has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @dtzWill merged pull request #58140 → go-langserver: 2018-03-05 -> 2.0.0, unpin old go version → https://git.io/fjJ35
<Alling>
srk: But I mean, if I don't write shell.nix myself, and instead use the cabal file as the SSOT, how can I describe that kmeans-par should be downloaded from GH?
<tilpner>
JonReed: nix eval '(let m = import ~/.nix-profile/manifest.nix; in (builtins.elemAt m 0).outPath)'
<tilpner>
That's a very weird problem though
<tilpner>
Note that I don't know if element 0 is always the last one to be installed. It was in 3 out of 3 tries here though
<gchristensen>
and that manifest is probably not a public API?
<tilpner>
No, probably not
<gchristensen>
why do you want to do that, tilpner?
<tilpner>
I don't
ddellacosta has quit [Ping timeout: 250 seconds]
ddellacosta has joined #nixos
<tilpner>
Really, you should just nix-build --no-out-link the thing you just added. That's cleaner and stable
<LnL>
nix-env -q lists the same package names
Ariakenom has quit [Ping timeout: 250 seconds]
schjetne has quit [Ping timeout: 250 seconds]
<JonReed>
tilpner: Thanks.
<tilpner>
JonReed: Don't use that, wait a minute
<gchristensen>
oops, right, why do you want to do that, JonReed?
Alling has quit [Ping timeout: 256 seconds]
<tilpner>
nix-env -q --json | jq '.["0"].name'
<tilpner>
That can give you the name
<tilpner>
But not the output, so it's not really any more useful than nix-env q-
<LnL>
nix-env -q --out-path
<JonReed>
gchristensen: I was just curious. Mostly for cases when you first install something via `nix-env` and then want to put it `configuration.nix`, but you forget last package you've installed for forgot to add in configuration.
<tilpner>
Ahh, much better
<tilpner>
JonReed: Ignore everything I said and use that ^
<LnL>
was expecting the output to also be in --json tho
<gchristensen>
hyper_ch: and they interact with all the standard systemd stuff, like Condition*s
<xok>
hyper_ch: oops, it did work... :D
lovesegfault has quit [Ping timeout: 246 seconds]
<hyper_ch>
xok: well, now that you have cron working, you can take your time looking at systemd timers if you feel like it :)
mexisme has quit [Ping timeout: 246 seconds]
<hyper_ch>
xok: I think I did the same mistake when I first setup cron on my nixos :)
_kwstas has quit [Ping timeout: 255 seconds]
<gchristensen>
also timers can be coalesced for power savings
<hyper_ch>
I don't believe in power savings
<hyper_ch>
a long time ago I learnt in physics class that energy can't be created or destroyed but only transformed :)
<gchristensen>
lol
<hyper_ch>
(except with regard to my cell phone and low battery and panic about next power plug)
_kwstas has joined #nixos
orivej has joined #nixos
<hyper_ch>
gchristensen: I still don't understand your remarks in this PR https://github.com/NixOS/nixpkgs/pull/58795 -- since the rc has already encryption integrated and and that bug that is mentioned is already in there. So it makes little sense to me to not use latest master
<tilpner>
,matrixbridge = The IRC<->Matrix bridge sends multi-line messages as links: `* Someone sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/... >`. This means that highlights don't work, people have to open your link, and it gets less visibility than multiple single-line messages
<{^_^}>
matrixbridge defined
<tilpner>
^ Vskilet
gciolli has quit [Remote host closed the connection]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jabranham>
How do I list generations created with nixos-rebuild?
JonReed has quit [Ping timeout: 256 seconds]
fendor has quit [Quit: Leaving]
kisik21 has joined #nixos
strobelight has quit [Quit: gtg]
<LnL>
there's not builtin command for it, but this works nix-env -p /nix/var/nix/profiles/system --list-generations
<kisik21>
How to properly inject a kernel module package with an overlay? I have a derivation in my overlay that needs to override linuxPackages.rtlwifi_new; how to properly inject it so it would build correctly for any kernel I choose?
<jabranham>
LnL: indeed it does, thanks
<{^_^}>
[nix] @LnL7 opened pull request #2775 → build: only skip hash rewriting for sandboxing on linux → https://git.io/fjYbk
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
kvda has joined #nixos
dwdr has quit [Ping timeout: 245 seconds]
lightbulbjim has quit [Ping timeout: 246 seconds]
sigmundv has joined #nixos
Ariakenom_ has quit [Quit: Leaving]
ym555 has quit [Ping timeout: 244 seconds]
ym555 has joined #nixos
stigo has left #nixos ["WeeChat 2.2"]
<rycee>
Anybody around with some skills in Ruby who can help me with a small code review?
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #59800 → dleyna-renderer: checkout patch in tree → https://git.io/fjYby
<rycee>
samueldr: The units should be guaranteed available since this code is run just after they have been copied into place. But yeah, it would be good to have it a bit more robust.
<samueldr>
I mean guarantees about unit names
<samueldr>
given the name `foo; rm -rf ~` would be an annoyance
Mutter has joined #nixos
Mutter has quit [Client Quit]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
Mutter has joined #nixos
<rycee>
samueldr: Had a look at the code, I think it should be ok to keep the regex inside the function since it's only ever called once. And the shellwords suggestion seems nice, haven't heard of that before. I'll see about making use of it.
TonyTheLion has quit [Ping timeout: 255 seconds]
Mutter has quit [Remote host closed the connection]
<rycee>
Thanks!
<samueldr>
shellwords is good for personal dirty ruby scripts, it reduces the chances of accidentally splitting words in those backticks
asymmetric has joined #nixos
<samueldr>
though I prefer instead to not shell out, either through using spawn or the other ones on Kernel, or using Open3 if I need to interact with std*
alexherbo2 has joined #nixos
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
mconstant has joined #nixos
dbmikus_ has quit [Ping timeout: 264 seconds]
mconstant has quit [Ping timeout: 246 seconds]
<rycee>
Yeah. I'm thinking it's probably best to rewrite this at some point. Ideally I guess it should talk directly with systemd over dbus.
lightbulbjim has joined #nixos
lovesegfault has quit [Ping timeout: 258 seconds]
sindrip has joined #nixos
psalm has joined #nixos
civodul has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
mishach has joined #nixos
<mishach>
Hello everyone. I wonder if there is anyone who can help me with some NixOS problems?
kisik21 has quit [Ping timeout: 250 seconds]
asymmetric has quit [Ping timeout: 250 seconds]
psalm has quit [Read error: Connection reset by peer]
psalm has joined #nixos
<samueldr>
there might be, a good first step might be to share what the issue is
jluttine has quit [Ping timeout: 244 seconds]
erasmas has quit [Ping timeout: 246 seconds]
lovesegfault has joined #nixos
<mishach>
Ok, so the problem is following.
<mishach>
i installed steam, by adding it to the: environment.systemPackages = with pkgs;
<mishach>
and when i run it, i get the following error
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<mishach>
TEAM_RUNTIME has been set by the user to: /steamrt Pins potentially out-of-date, rebuilding... mkdir: cannot create directory '/nix/store/3b1mp5fcxbpqzgmv439k9a0qpaywf96p-steam-fhs/steamrt/pinned_libs_32': Read-only file system mkdir: cannot create directory '/nix/store/3b1mp5fcxbpqzgmv439k9a0qpaywf96p-steam-fhs/steamrt/pinned_libs_64': Read-only file system internal error: /steamrt/setup.sh is missing, this runtime is invalid or corr
<mishach>
i tried looking at the solutions available online
<mishach>
but none helped
freeman42x has quit [Ping timeout: 258 seconds]
<lightbulbjim>
Have you also installed the steam-run-native package?
o1lo01ol1o has joined #nixos
<lightbulbjim>
Steam works for me with `steam` and `steam-run-native` installed and hardware.opengl.driSupport32Bit and hardware.pulseaudio.support32Bit both set to true.
<mishach>
yep
<mishach>
i added steam-run
<mishach>
to the list of system packages
psalm has quit [Read error: Connection reset by peer]
psalm_ has joined #nixos
<mishach>
ohh steam-run-native
<mishach>
let me try it
mconstant has joined #nixos
sigmundv__ has joined #nixos
<mishach>
nope, same problem.
<mishach>
permission denied and read only file system
<mishach>
problems
dbmikus_ has joined #nixos
orivej has quit [Ping timeout: 268 seconds]
<lightbulbjim>
Hmm, odd
<mishach>
yep. makes me think that i did not partition my hardrive correctly
<mishach>
but the user i am running it from is sudo
mabel has quit [Ping timeout: 246 seconds]
<lightbulbjim>
Just to confirm, you have `hardware.opengl.driSupport32Bit = true` and `hardware.pulseaudio.support32Bit = true`?
mabel has joined #nixos
<mishach>
yes, i have both of those set
o1lo01ol1o has quit [Remote host closed the connection]
dbmikus_ has quit [Ping timeout: 258 seconds]
<lightbulbjim>
Hmm, I'm not sure then sorry. The only thing I can add is that it should work as a non-root user (I've never run Steam as root and it works fine).
polman has quit [Excess Flood]
<mishach>
how do you install steam?
<mishach>
or what is steam installation is like
<samueldr>
once added to systemPackages, running `steam` should work
<samueldr>
(in case you see the other static version)
<lightbulbjim>
mishach: If it were me, I'd try uninstalling Steam, doing a GC to make sure the files in the store are gone, and then reinstalling.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mishach>
and quick question how do I do GC?
<lightbulbjim>
`man nix-collect-garbage`
<mishach>
ok
<mishach>
ty cm
<mishach>
vm
<mishach>
:)
<mishach>
have some things to try
tdbgamer has joined #nixos
<lightbulbjim>
`nix-collect-garbage -d` will delete everything except the current generation from the store, but be aware that you can't then roll back without rebuilding stuff. There are also options for deleting all but the most recent generations.