worldofpeace_ changed the topic of #nixos to: NixOS stable: 20.03 ✨ https://discourse.nixos.org/t/nixos-20-03-release/6785 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
<{^_^}> [nixpkgs] @worldofpeace merged pull request #98316 → GNOME 3.38 → https://git.io/JUExY
<{^_^}> [nixpkgs] @worldofpeace pushed 225 commits to staging: https://git.io/JTajz
philr has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 93 commits to gnome-3.38: https://git.io/JTaj6
<{^_^}> [nixpkgs] @jtojnar pushed 0 commits to gnome-3.38: https://git.io/JTaj1
<{^_^}> [nixpkgs] @jtojnar closed pull request #99188 → Giara init → https://git.io/JUyvb
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
dbmikus has quit [Ping timeout: 272 seconds]
<danderson> colemickens: cheers, that helps
<{^_^}> [nixpkgs] @zowoq pushed to staging « libpsl: disable valgrind tests on darwin »: https://git.io/JTVeg
<{^_^}> [nixpkgs] @zowoq pushed commit from @robertodr to staging « gnome-shell-extension-paperwm: 36.0 -> 38.0 »: https://git.io/JTVeV
HedgeMage has joined #nixos
<{^_^}> [nixpkgs] @zowoq closed pull request #100709 → gnome-shell-extension-paperwm: 36.0 -> 38.0 → https://git.io/JTGpT
<{^_^}> [nixpkgs] @worldofpeace opened pull request #101516 → GNOME polishing from Q.A findings → https://git.io/JTVe1
<colemickens> Does ZFS need a similar change as BTRFS in Nix to disable preallocate-contents?
<colemickens> see bottom of: https://github.com/NixOS/nix/issues/3550
<{^_^}> nix#3550 (by vcunat, 25 weeks ago, open): btrfs compression ignored
<colemickens> or does ZFS not need it for some reason?
egasimus has joined #nixos
pjan has quit [Quit: さようなら]
<{^_^}> [nixpkgs] @romildo merged pull request #101030 → enlightenment.evisum: 0.5.6 -> 0.5.7 → https://git.io/JTl72
<{^_^}> [nixpkgs] @romildo pushed 2 commits to master: https://git.io/JTVej
<egasimus> ajs124: hi, did you ever find a fix for https://logs.nix.samueldr.com/nixos-dev/2019-08-28#2532857;
<egasimus> I'm having the same problem trying to build a very simple package with yarn2nix
meh` has quit [Ping timeout: 265 seconds]
<egasimus> could probably override the whole thing to get a `ln -sf` in there
<egasimus> would prefer to figure out where it's going wrong first though
dbmikus has joined #nixos
<egasimus> also if anyone else with a clue about yarn2nix could chime in, that'd be much appreciated
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JTVvP
sss2 has quit [Quit: Leaving]
<ajs124> egasimus: I don't really remember. It's been over a year, so I barely have any recollection of ever working on this.
jdnixx has joined #nixos
<egasimus> ajs124: fair enough
<jdnixx> when a derivation fails to build where in the error output should I look for the root problem?
<jdnixx> like where does it mention it
<jdnixx> I'm looking at the wall of text after megasync failed to build from source i guess
<jdnixx> ooooh ok nvm I think it's all the same error:
<jdnixx> gui/InfoDialog.cpp:1011:149: warning: 'static QString QString::fromAscii(const char*, int)' is deprecated [-Wdeprecated-declarations] ------------------- In file included from /nix/store/blahblah-qtbase-5.14.2-dev/include/QtGui/qdesktopservices.h:44,
<jdnixx> qt problem or? I couldn't find anything in the nixpkgs issues and it's been happening for like a week or 2 at least
ericsagnes has quit [Ping timeout: 260 seconds]
egasimus has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #101518 → all-packages.nix: respect config.allowUnfree → https://git.io/JTVJG
<{^_^}> [nixpkgs] @volth opened pull request #101519 → all-packages.nix: pkgs.config.cudaSupport -> config.cudaSupport → https://git.io/JTVJu
ris has quit [Ping timeout: 256 seconds]
<jasom> Can I get documentation for nixos configuration module options from the command-line?
<{^_^}> [nixpkgs] @sikmir opened pull request #101520 → udig: init at 2.0.0 → https://git.io/JTVUm
justanotheruser has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #101507 → python3Packages.pygmt: init at 0.2.0 → https://git.io/JTabz
<bqv> omasanori[m]: are lisp things happening?
<{^_^}> [nixpkgs] @jonringer pushed commit from @sikmir to master « python3Packages.pygmt: init at 0.2.0 »: https://git.io/JTVUu
dbmikus has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #101515 → blugon: fix build on darwin → https://git.io/JTajL
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-burns to master « blugon: fix build on darwin »: https://git.io/JTVUV
<matthewcroughan_> Hey hey hey
<matthewcroughan_> I'm finally getting around to setting my laptop up
<matthewcroughan_> I've had this damned new laptop for months and have just neglected to properly configure nixos on it.
justanotheruser has joined #nixos
<matthewcroughan_> Wayland better be fully usable at this stage :D
<matthewcroughan_> (Wishful thinking)
<matthewcroughan_> :O a real derivation compile error wtf
<matthewcroughan_> builder for '/nix/store/xxmfz4k662q86j1xvsb3pifbcwm3vxwx-waybar-9ea13e790d463fc40a467862eb6835db17d6cd0b.drv' failed with exit code 1
<{^_^}> [nixpkgs] @jonringer merged pull request #101260 → nixosTests.certmgr: fix systemd test → https://git.io/JTuGX
<{^_^}> [nixpkgs] @jonringer pushed commit from @B4dM4n to master « nixosTests.certmgr: fix systemd test »: https://git.io/JTVUy
<matthewcroughan_> meson.build:104:12: ERROR: Problem encountered: libsndio is too old, required >=1.7.0
<bqv> Maybe upgrage libsndio
<matthewcroughan_> bqv: nixos-rebuild switch --upgrade
<matthewcroughan_> I mean, that's what I'm running
<matthewcroughan_> it's libobs that it's building
<{^_^}> [nixpkgs] @jonringer merged pull request #101258 → nixosTests.ferm: fix network timeout → https://git.io/JTuOo
<{^_^}> [nixpkgs] @jonringer pushed commit from @B4dM4n to master « nixosTests.ferm: fix network timeout »: https://git.io/JTVUj
veleiro has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #101054 → pythonPackages.yappi: 1.2.5 -> 1.3.0 → https://git.io/JT8FJ
<{^_^}> [nixpkgs] @jonringer pushed commit from @JamieMagee to master « pythonPackages.yappi: 1.2.5 -> 1.3.0 »: https://git.io/JTVTO
jdnixx has quit [Quit: Konversation terminated!]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #nixos
h0m1 has quit [Ping timeout: 246 seconds]
h0m1 has joined #nixos
<{^_^}> [nixpkgs] @egasimus opened pull request #101521 → Expose mkYarnModules' postBuild as yarnPostBuild → https://git.io/JTVIL
ericsagnes has joined #nixos
<{^_^}> [nixpkgs] @r-burns opened pull request #101522 → bandwidth: fix build on darwin, fix license, adopt → https://git.io/JTVIK
<matthewcroughan_> bqv: Yeah uh, the issue was that I needed to update my channels.
<matthewcroughan_> `nix-channel --update`
<bqv> ✌
<matthewcroughan_> What on earth is that character.
<matthewcroughan_> What the hell is that ._.
<danderson> so... I made a flake-based nixos config. It had an error and failed eval, so I fixed it. But now nixos-rebuild just exits with "cached failure of attribute 'nixosConfigurations.vega.config'
<danderson> ... without telling me what or why or how to fix it. Halp?
<danderson> never mind, was editing the wrong file when I fixed the failure. Would still be nice to reprint the error though.
<danderson> "attribute 'currentSystem' missing"
<danderson> ... okay, uh, cool.
<{^_^}> [nixpkgs] @jtojnar pushed to staging « gobject-introspection: 1.66.0 → 1.66.1 »: https://git.io/JTVLZ
kirc has joined #nixos
kirc has quit [Quit: kirc]
<matthewcroughan_> danderson: Where have you been learning to use nix?
<matthewcroughan_> I need to learn moar
<matthewcroughan_> But a lot of the resources assume far too much knowledge
dbmikus has joined #nixos
jdnixx-M1 has joined #nixos
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
dbmikus has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-burns opened pull request #101523 → [20.09] blugon: fix build on darwin → https://git.io/JTVtf
<cole-h> danderson: If you're still looking for flake-ified configs: https://github.com/cole-h/nixos-config
<matthewcroughan_> cole-h: The legend returns!
<danderson> cole-h: cheers.
<matthewcroughan_> I don't even know what a flake is :(
<danderson> struggling with obtuse errors, but I think I'm holding it wrong. Still debugging, more refs useful :)
<cole-h> danderson: You can make it re-eval with `--impure`, or just `rm -rf ~/.cache/nix/eval-cache-v2` :P
<cole-h> matthewcroughan_: I'm a legend? :o
<matthewcroughan_> Yup. You are.
<matthewcroughan_> (To me)
<cole-h> Woo!
ryjm_matrix has quit [Quit: killed]
<matthewcroughan_> cole-h: do you use home-manager?
<cole-h> I do
h0m1 has quit [Ping timeout: 272 seconds]
<qyliss> cole-h: you're a legend to me too :)
* cole-h sheepishly remembers promising to contribute to Spectrum over the summer and noticing that summer has been over for quite a while
<cole-h> :s
h0m1 has joined #nixos
<matthewcroughan_> I can't use flakes on my nixos install, wonder why
<qyliss> cole-h: hey you did contribute!
<matthewcroughan_> > nix shell "github:colemickens/nixpkgs-wayland#obs-studio" --command obs
<{^_^}> undefined variable 'shell' at (string):345:5
<cole-h> qyliss: 🙇
<qyliss> matthewcroughan_: it's an unstable feature
<matthewcroughan_> Whoops, didn't mean that.
<matthewcroughan_> I'm on nixos-unstable
<qyliss> nixos-unstable (the OS) is a different thing from nix unstable (the package manager)
<qyliss> cole-h: anyway, I've had one patch queued up for months as it is waiting for me to look at it because I have so much to do!
<matthewcroughan_> how do you import arbitrary strings from a nix file into another nix file?
buckley310 has joined #nixos
<matthewcroughan_> e.g, I want secrets.nix to contain variables to fulfill stuff in config.nix
oida has quit [Remote host closed the connection]
<cole-h> qyliss: Well, I'm still subscribed to the list when you're ready to post it :D
oida has joined #nixos
<qyliss> cole-h: oh, no, I mean a patch from someone else I haven't had time to review
<cole-h> o
<qyliss> (even worse!)
<cole-h> Was it posted to the list? :o
<qyliss> matthewcroughan_: generally you shouldn't put secrets in nix files
<cole-h> ^
<matthewcroughan_> ? Why
<qyliss> because the Nix store is world-readable
<matthewcroughan_> Ah..
<cole-h> And all Nix files are imported into the store (especially in flakes)
<matthewcroughan_> `networking.wireless.networks.bebop.pskRaw = "super_secret";
<matthewcroughan_> For example, let's say I want to fill the value of "super_secret" from my secret location.
<matthewcroughan_> How best to do that>
<matthewcroughan_> Sorry, typing on an ergo keyboard that I'm not yet used to.
<qyliss> there's not really a good way to do that :(
<cole-h> It's a very bad hack
<qyliss> you could consider using networkmanager, which would let you type in passwords at runtime and treat them as state
<qyliss> (that's what I do)
<matthewcroughan_> Uh.. yeah. No.
<cole-h> (And my secrets are in the store -- encrypted, as my secrets repo uses git-crypt)
<matthewcroughan_> State = Bait
<cole-h> There's no real good way to handle secrets in Nix (yet)
<cole-h> You could try https://github.com/Mic92/sops-nix
<cole-h> Or git-crypt
<matthewcroughan_> That's interesting, I thought what I proposed was the right way of doing it.
<matthewcroughan_> secrets.nix contains a bunch of vars, there could be a way to make it like this, right? Securely.
<matthewcroughan_> Seems intuitive to me.
<qyliss> unfortunately not, because when Nix "instantiates" a Nix expression, it gets stored in the store (in a sort of compiled form -- this is a .drv file)
<qyliss> and the store is world readable by design
<qyliss> and so any value you put in a nix expression will end up world readable in the store
<matthewcroughan_> Alright, that's a good architectural reason :D
<matthewcroughan_> Damn!
<qyliss> In general, a common strategy for secrets is to keep them somewhere outside of Nix, on disk, and then have a Nix expression that copies them into place
<qyliss> or just generates them if they don't exist, if it's something like an ssh host key
<matthewcroughan_> Yeah like a zfs encrypted dataset.
<qyliss> there are various things you can try, but there's not any consensus solution yet, and so it's a bit of an advanced topic, unfortunately
<{^_^}> [nixpkgs] @yanganto opened pull request #101524 → nix-folder2channel: init → https://git.io/JTVqR
<matthewcroughan_> Is home-manager worth it, even if I'm the only user of a system?
<qyliss> if you're not worried too much about your wifi passwords, you might decide it's fine to keep them in the store for now (but always remember to be careful with more confidential secrets), or try network-manager. Come back to secrets once you've got the basics down.
<qyliss> matthewcroughan_: it comes in handy when you want to use a system that isn't running NixOS
<cole-h> matthewcroughan_: I like it, but ymmv
<qyliss> e.g. a shared shell server or a Mac
<qyliss> lots of people use it for that reason
<qyliss> there are also some modules that are only in home manager, because it wouldn't make sense for them to be system-wide
<qyliss> but I say all this as a non-home-manager user. I appreciate that it exists but have never had the need for it myself.
<qyliss> another nice thing is that it probably helps you seperate user configuration from system configuration, if that's something you're interested in (I'm not particularly but lots of people feel quite strongly about that)
<matthewcroughan_> How many imports do you have in your main config?
<cole-h> I only have one (in both my system config and home config) -- `./modules`, which has a default.nix which imports lots of other stuff :P
<qyliss> I have a big forest of imports spanning that goes several layers deep
<danderson> okay, I have a nix syntax question. I'm trying out flakes for nixos, and something I'd like is to import modules in other files, and be able to reference the overall flake's inputs. My sample (based on Tweag's blog posts) is https://gist.github.com/danderson/8fb37571768945456df8801d8e9aee18 , but evaluation fails in test.nix with an infinite recursion.
<danderson> I'm quite sure I'm failing to understand how the various arguments seemingly magically propagate from place to place. What am I doing wrong?
<cole-h> danderson: the inputs are only available in flake.nix
<cole-h> So if you were to inline ./test.nix, it would work
<danderson> Right, I had that working. So how do I factor my configuration into more files, the way I would have done with "classic" nix?
<qyliss> wow that's spooky
<cole-h> You could also set `specialArgs` (which is a feature of the module system IIRC), and `inherit inputs;`, which is what I do.
<danderson> hm. Both these things further confuse me, but they're keywords I can google to figure it out. Thanks!
<cole-h> e.g. `specialArgs = { inherit inputs; }` (which requires you to bind your inputs to that variable)
<cole-h> If it helps, here's the huge span I use to generate my system config: https://github.com/cole-h/nixos-config/blob/ecc99cd73eed7ba41e10bfc8f80b507794a8d2f4/flake.nix#L72-L152
<danderson> I did see that span, but there were enough indirections that I got lost :(
<cole-h> danderson: Another flakes-based config is bqv's: https://github.com/bqv/nixrc/blob/live/flake.nix
<cole-h> But it's even more jumbled than mine :P
<matthewcroughan_> cole-h: What is line 1 of your file?
<matthewcroughan_> I just never looked into what that is.
<cole-h> matthewcroughan_: Flakes don't allow top-level args
<cole-h> So line 1 is `{`
<matthewcroughan_> I just take that for granted in all nix files but don't even know what it is.
<bqv> I'm working on it >_>
<cole-h> Hehe
<danderson> hmkay, I think I see what you mean. Let's see now...
<matthewcroughan_> cole-h: Can we make nix derivations for channels we host privately, that basically just give friends games in their perfect environment? :P
<matthewcroughan_> e.g deus ex, or some windows game with a crazy wine config, just `nix-shell` it.
<cole-h> Probably
<cole-h> Though I wouldn't have the foggiest
<cole-h> ...idea how to do that.
<matthewcroughan_> what's lorri? :p
<matthewcroughan_> wtfffff
<cole-h> Live-reloading nix-shell, I guess I'd describe it
<qyliss> lorri is like nix-shell except it builds new versions of the environment in the background, so you can keep using the old one while you wait for it to build
<matthewcroughan_> that's so screwed up
<matthewcroughan_> :v
<matthewcroughan_> the world is getting crazy
<matthewcroughan_> livestreaming code directly into your system
<matthewcroughan_> I mean that in a good way. It's just so insane what lorri is doing.
<danderson> hmkay, now the reference works, but hydra no longer builds due to missing packages. So... Progress, I suppose?
<danderson> ah, hmm. The hydra derivation also references inputs directly. So, in overriding it, presumably I've nuked the lock from that flake and replaced it with whatever I'm doing
<matthewcroughan_> cole-h: so lorri doesn't even subprocess nixos-rebuild switch?
<matthewcroughan_> it actually works with the primitives of nix, to deliver this experience?
<qyliss> lorri is only for nix-shell
<qyliss> it won't live rebuild your system for you
<matthewcroughan_> Yes, I know, but it's like.. How is it so fast
<matthewcroughan_> I couldn't write a bash wrapper that was this fast.
<matthewcroughan_> Or could I?
<cole-h> It's written in Rust :)
<qyliss> it's fast because everything happens asynchronously
<qyliss> there's a daemon that's always running in the background
<{^_^}> [nixpkgs] @yanganto closed pull request #101524 → nix-folder2channel: init → https://git.io/JTVqR
<danderson> yeah okay, that looks about right. Hydra expects inputs.nixpkgs to be unstable, and with extraArgs I stomped that with a 20.03 version. I think.
<omasanori[m]> @bqv Not yet, but I had tried quicklisp-to-nix several times, while I could not add new package successfully at that time.
<bqv> Same
orivej has joined #nixos
maxdevjs has quit [Ping timeout: 272 seconds]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
<jasom> bqv: omasanori[m] for a lisp dev enfironment I use something like this: https://git.sr.ht/~jasom/nix-lisp-dev
<matthewcroughan_> cole-h: holy crap, I see exactly how you're using home-manager
<cole-h> :)
<matthewcroughan_> is this a good thing? To have everything as a separate module like this
<cole-h> Good is subjective.
<matthewcroughan_> So you just don't have any dotfiles?
<matthewcroughan_> You only have nix modules?
<cole-h> I like it, because it makes it easy to search through
<cole-h> I think I have a few unmanaged dotfiles, but I tried to manage almost everything with Nix
<omasanori[m]> jasom: cool, thanks for sharing!
<matthewcroughan_> So you plan on only using systemd based distributions cole-h?
<cole-h> Until something better comes along, I see no reason to change. There are upsides and downsides to everything, but I plan on sticking to NixOS for the foreseeable future (which also happens to be systemd-based for the foreseeable future)
<jasom> omasanori[m]: there's no docs yet, but to get an idea of how it works, first do a ./runme in the checkout, try to quickload "cl+ssl" in slime (or sly if you prefer) then uncomment the "openssl.out" line, and run ./runme build_env when you get an error, then just do the "retry" restart in sldb
<matthewcroughan_> But could you switch to arch with this setup or not cole-h?
<cole-h> Well, I originally built most of my config on Arch
<qyliss> oh wow yeah I forgot how recently you switched
<cole-h> If you view the master branch, you'll see my config as of whenever I stopped using Arch
<jasom> omasanori[m]: I used an nix environemnt rather than nix-shell because we are lispers damnit, we shouldn't have to restart our image just to add a new dependency; that's just uncivilized.
<matthewcroughan_> I mean since you're using home-manager, can you actually switch to ubuntu, all your "dotfiles" managed inside of nix modules, over to your destination?
<cole-h> Probably.
<matthewcroughan_> I'm using Arch now, wanting to move directly over to Nix.
<matthewcroughan_> New laptop won't even touch Xorg :D
<cole-h> That's basically how I was back in... *checks repo* May.
<matthewcroughan_> See? This is why you're: 1. A legend. 2. My Hero
<cole-h> :P Happy to hear that I can be of use.
<cole-h> s/use/help/
<matthewcroughan_> Right, so your repo is pretty much all there is, regarding the "right" way of doing things haha
<cole-h> "Right" is subjective, but it certainly fits my use case ;)
amfl_ has joined #nixos
<matthewcroughan_> So what branch should I be looking at for your current config?
<cole-h> The default branch, `nixus`
amfl has quit [Ping timeout: 246 seconds]
amfl_ is now known as amfl
<matthewcroughan_> So, if I wanna boot your system now, how do I do that :)
<cole-h> Read the README ;)
<matthewcroughan_> No f'ing way.
<matthewcroughan_> Too good.
<matthewcroughan_> -o compression=zstd
<matthewcroughan_> you might want to change that to zstd-fast-19 or
<cole-h> (I didn't actually do that, because I switched before zstd compression was merged)
<cole-h> Still on lz4 or whatever the default was
<omasanori[m]> jasom: thanks for detailed info! sure, (lisper hat on) we should keep our environment running if possible.
<matthewcroughan_> zstd-2 looks to be the best, I forget what the default is when you just specify zstd
<matthewcroughan_> But it's like, down inthe mud at zstd-5 I think?
<cole-h> Was this updated after it was merged? I think I remember seeing this in the PR discussion itself
<{^_^}> openzfs/zfs#9735 (by c0d3z3r0, 44 weeks ago, closed): Introduce ZSTD compression to ZFS
<matthewcroughan_> That's just the opening benchmark.
<cole-h> Right. I'd be interested in seeing if anything changed, since there was a lot of time between open and merge :P
astronavt has quit [Quit: Leaving]
<matthewcroughan_> Hmm. So I already have nixos installed, I just want to copy your nix configs.
<matthewcroughan_> I don't really know how I could do that
<cole-h> First steps would probably be removing references to `my.secrets.*`, since those files won't exist for you ;)
<matthewcroughan_> Yeah, but that's for your user config
<matthewcroughan_> I'd just rip vin out.
<cole-h> I also have it in my system config
<matthewcroughan_> I should be able to do that right? Just get rid of vin, and start fresh with matt
<cole-h> Specifically in my libvirt and wireguard configs
<cole-h> It's possible. I haven't tried, so I wouldn't know ;0
<matthewcroughan_> System config is comprised of what exactly?
<cole-h> hosts/<hostname>/*
<matthewcroughan_> Everything outside of the users folder?
<matthewcroughan_> Oh, okay.
<matthewcroughan_> So what is everything in the root?
<matthewcroughan_> iso.nix, flake.nix, extraneous files like that/
<cole-h> my.nix creates `my.{secrets,drvs,scripts}`, so I don't have to type the path out everywhere
<cole-h> overlay.nix is just my nixpkgs overlays that get applied
<cole-h> flake.nix is the meat of my config, where I set the Nixpkgs config and overlays, do some flakes-related configuration, and configure nixus to deploy my system
<jasom> omasanori[m]: and all of this talk about lorri inspired me; I just added a server you can run that will automatically rebuild the environment every time default.nix changes
<cole-h> Happy to answer any specific questions you have beyond that
<matthewcroughan_> My question really was, is that all lorri IS doing?
<matthewcroughan_> Or is it doing some crazy stuff in the background that is more low level?
<jasom> matthewcroughan_: I just glanced at it, but it looks like it runs in the background generating new shells in the ~/.cache/lorri directory and if your shell is out-of date when the prompt is printed, it puts you back in the shell (probably through direnv)
<jasom> matthewcroughan_: note that they have to force a new prompt by hitting "enter" once after they add figlet in the demo
<matthewcroughan_> cole-h: your config is definitely evolved
<matthewcroughan_> Far too complex for me. I'm looking forward to reaching your level of understanding :)
<cole-h> Uhhh, yeah, understanding...
<cole-h> :P
<matthewcroughan_> Fudgery
<matthewcroughan_> Your level of fudge.
<cole-h> Most of that knowledge was gained from asking questions here (mostly being answered by bqv)
<matthewcroughan_> Welp, another apprentice has arrived.
<cole-h> Soon to join the masters :)
<matthewcroughan_> So that submodule for your secrets, is that a private repo?
<cole-h> Yep
<matthewcroughan_> but you're happy with your secrets being on a github private repo?
<cole-h> The only stuff you would gain by having access to it, however, is metadata (file names, when it was last updated, etc)
<cole-h> Because it's encrypted with git-crypt
<matthewcroughan_> nice
<cole-h> So I unlock it and it looks unencrypted on disk, but it's always encrypted to git
<matthewcroughan_> so where do you pass the key to a nix function?
<matthewcroughan_> oh, so you just unlock everything during install?
<cole-h> via the hack I linked earlier, in `my.nix`
<{^_^}> openzfs/zfs#9735 (by c0d3z3r0, 44 weeks ago, closed): Introduce ZSTD compression to ZFS
<matthewcroughan_> whoops
<matthewcroughan_> meant to link that lol
<cole-h> Hehe
<cole-h> I was going to use that to bypass the fact that `toString ./.` in a flake gives you the store path
ddellacosta has quit [Ping timeout: 264 seconds]
<matthewcroughan_> The nix pills are out dated.
<cole-h> Very much so.
<matthewcroughan_> What do I need to learn to learn nix at this stage of dev?
<matthewcroughan_> even this doesn't really discuss flakes.
<colemickens> the wiki has okayish docs on how to use nix cli with flakes too
<{^_^}> [nixpkgs] @jtojnar pushed 13 commits to gnome-3.38: https://git.io/JTVOp
<matthewcroughan_> Yes, that's good and all, but I want a bottom-up "here's how you should make your system work first time around", rather than just the pure concepts.
<{^_^}> [nixpkgs] @r-burns opened pull request #101526 → bacula: fix build on darwin → https://git.io/JTVOj
<matthewcroughan_> I have read that wiki, but it doesn't really help me understand how it fits into the ecosystem.
<matthewcroughan_> I am now reading this and it looks like it's fully featured, and I'll get the hang of things quickly after bootstrapping a few things https://nixos.org/manual/nixos/stable/index.html#sec-changing-config
<matthewcroughan_> > we don’t know what we’re actually running in production, so reproducing or fixing problems becomes much harder.
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):345:7
<matthewcroughan_> Lol, so until now, we only ever knew we were on "latest", is that correct?
<matthewcroughan_> Kind of like Arch? :p
<colemickens> most of us were pinning via niv, or our own stuff, or the channel system is basically a form of pinning
<colemickens> if you were on the nixos-unstable channel then you were on a form of "latest" depending on when `nix-channel --update` was last run.
<matthewcroughan_> Yes, which just lead me when I joined a few hrs ago to a drv compile error
<simpson> NixOS has had two releases per year for a while, and that cadence is used to stabilize versions of various system state (database versions, etc.)
<matthewcroughan_> until I ran nix-channel --update
<colemickens> Flakes mostly forces you to do the pinning at the place of usage (versus channels which was basically a pin, but stored somewhere n the system instead of in the config)
<{^_^}> [nixpkgs] @yanganto reopened pull request #101524 → nix-folder2channel: init → https://git.io/JTVqR
<simpson> So while "latest" has been an option, so has 20.03, etc.
<colemickens> matthewcroughan_: yeah, I'd see the error about libsndio and assumed your channel was old
<matthewcroughan_> it was because I had your channel alongside nixos-unstable
<matthewcroughan_> so nixos may solve dependency hell, but it doesn't solve channel hell? :D
<simpson> "channel" is a lie we tell new users.
<matthewcroughan_> old nixos-unstable, new nixpkgs-wayland
<colemickens> I'm not sure what channel hell is. But it doesn't solve the fact that some people want stable releases :)
<matthewcroughan_> I'm in bed now, but the power of quassel keeps me here.
<matthewcroughan_> I do have a matrix instance, maybe should bridge.
dbmikus has joined #nixos
Supersonic112 has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 0 commits to gnome-3.38: https://git.io/JTVsY
<{^_^}> [nixpkgs] @jtojnar pushed 13 commits to gnome-3.38: https://git.io/JTVsO
Supersonic has quit [Ping timeout: 272 seconds]
Supersonic112 is now known as Supersonic
orivej has quit [Ping timeout: 240 seconds]
dbmikus has quit [Ping timeout: 260 seconds]
nopsled has joined #nixos
nopsled is now known as Guest92474
Guest92474 has left #nixos [#nixos]
pcx has joined #nixos
<pcx> Quick question: approximately when will nix flakes be stabilized?
<cole-h> A good question that nobody knows the answer to.
<{^_^}> [nixpkgs] @jtojnar opened pull request #101528 → gnome: 3.38.0 → 3.38.1 stragglers → https://git.io/JTVsp
<pcx> Are there any github issues showing the current state of flakes and any blockers/bugs/setbacks?
<cole-h> I don't think so.
<pcx> ok
<cole-h> Though there are some flakes-related things that can be found with https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+label%3Aflakes
<cole-h> I guess those are bugs
<pcx> alright
pcx has quit [Quit: Connection closed]
waleee-cl has quit [Quit: Connection closed for inactivity]
Supersonic112 has joined #nixos
zupo has joined #nixos
monokrome has joined #nixos
Supersonic has quit [Ping timeout: 272 seconds]
Supersonic112 is now known as Supersonic
<{^_^}> [nixpkgs] @jtojnar reopened pull request #99188 → Giara init → https://git.io/JUyvb
zarel_ has joined #nixos
zarel has quit [Ping timeout: 260 seconds]
domogled has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
jbox has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 4 commits to gnome-3.38: https://git.io/JTVcU
<{^_^}> [nixpkgs] @buckley310 opened pull request #101529 → nixos-generate-config: Change how auto-generated swap files are detected → https://git.io/JTVCm
eoli3n has joined #nixos
<danderson> another deep nix language question: what is _module? Is it a magic variable?
<danderson> Trying to puzzle through how nixos configs get evaluated, and in particular how `pkgs` appears to end up magically defined _somewhere_, and there are references to _module that I'm not able to grok.
evax has quit [Ping timeout: 256 seconds]
evax has joined #nixos
<cole-h> (That whole function is "how nixos configs get evaluated", basically)
<cole-h> nbp (if you're around): I know this is years ago now, but is there any reason why `_module.args` is set inside the config block, rather than just as a default for `_module.args`? (ref: https://github.com/NixOS/nixpkgs/blob/ce89dd6819805b5dfdcbdadb1b896680af7e30b6/lib/modules.nix#L81)
<cole-h> Maybe infinisil also knows...
domogled has quit [Remote host closed the connection]
<danderson> cole-h: thanks. Hopefully my brain can unwind this :)
<danderson> still not seeing where the hell `pkgs` gets defined if I'm not passing in explicitly, even though empirically it does. Hopefully I find it soon :)
rajivr has joined #nixos
Soo_Slow has joined #nixos
<danderson> cole-h: but that's only set if pkgs is passed to eval-config
<danderson> and lib.nixosSystem in flake.nix doesn't set pkgs
<{^_^}> [nixpkgs] @zowoq opened pull request #101530 → .github/workflows/editorconfig.yml: check indent_style → https://git.io/JTVlE
<cole-h> danderson: Hm, a good question. I don't see it either.
<danderson> just double-checked: `pkgs` is indeed defined in my module evals, even though I'm not doing it.
<danderson> so... hrm.
stree has quit [Quit: Caught exception]
stree has joined #nixos
<danderson> at this point, my only conclusion is that pkgs is handled magically within the nix C++ code
<danderson> ... but that sounds wrong as well.
<cole-h> Can't be
<cole-h> Because _module is part of the module system, which is defined in Nixpkgs and not in C++
<danderson> I mean, I hear you, but otoh, I'm not seeing how this is happening within the nix language
atriq is now known as Taneb
palo1 has joined #nixos
<cole-h> You've infected me with a desire to know this, now, danderson :P
addcninblue has joined #nixos
<cole-h> If you figure it out, let me know (if you remember). I'll do the same.
<danderson> heh
<cole-h> But with that, it is bedtime :) Catch you on the flip-side.
<danderson> will do. Although I also have no particular theories, I'm reduced to grepping for _module in nixpkgs
<danderson> oh god so much _module
<danderson> ... oh right, node_modules
<danderson> silly grep
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
buckley310 has quit [Quit: Connection closed for inactivity]
<danderson> found it!
<danderson> cole-h: nixos/modules/misc/nixpkgs.nix:229
<danderson> _module.args.pkgs = finalPkgs
dbmikus has joined #nixos
<danderson> now I just need to understand how that gets constructed...
<cole-h> Ah.
<cole-h> I looked at that file
<cole-h> But not far enough down lol
<cole-h> danderson: It's basically just importing pkgs/
<cole-h> (See: line 58)
<{^_^}> [nixpkgs] @danieldk opened pull request #101531 → sentencepiece: 0.1.93 -> 0.1.94 → https://git.io/JTV4z
<danderson> right, it's importing default.nix from the top level, which in turn imports the top-level of pkgs
<danderson> ... and because of the *wonders* of lazy evaluation, that magical action at a distance takes effect for the entire module tree
<danderson> ... wow, that was an adventure.
<cole-h> danderson++
<{^_^}> danderson's karma got increased to 8
<cole-h> Thanks for deepening my knowledge about Nixpkgs/NixOS :)
dbmikus has quit [Ping timeout: 240 seconds]
cole-h has quit [Ping timeout: 258 seconds]
pr06lefs has quit [Ping timeout: 260 seconds]
ugubok has quit [Remote host closed the connection]
cjpbirkbeck has quit [Quit: Goodbye, take care]
is_null has joined #nixos
<{^_^}> [nixpkgs] @addict3d opened pull request #101533 → pythonPackages.diagrams: init at 0.17.0 → https://git.io/JTVEL
davidv7 has quit [Ping timeout: 240 seconds]
h0m1 has quit [Quit: WeeChat 2.9]
night has quit [Quit: night]
h0m1 has joined #nixos
NightA has joined #nixos
NightA is now known as night
growpotkin has quit [Quit: ZNC 1.8.2 - https://znc.in]
palo1 has joined #nixos
palo has quit [Ping timeout: 272 seconds]
palo1 is now known as palo
is_null has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to master: https://git.io/JTVzk
<{^_^}> [nixpkgs] @vcunat merged pull request #101380 → thunderbird, thunderbird-bin: 78.3.2 -> 78.4.0 [High security fixes] → https://git.io/JTgOu
h0m1 has quit [Quit: WeeChat 2.9]
h0m1 has joined #nixos
CMCDragonkai1 has joined #nixos
eoli3n has left #nixos [#nixos]
turlando has joined #nixos
<MichaelRaskin> BTW, I am going to screen-share with omasanori starting from ~ 8:00 UTC about doing the SBCL/Quicklisp updates
<omasanori[m]> ahoy!
<omasanori[m]> MichaelRaskin: what tool will you use?
<MichaelRaskin> I am used to BigBlueButton so I guess https://bbb.in.tum.de/mik-6hg-gar
<MichaelRaskin> That way both of us (and whoever else will want to join) can stream or not stream voice
<MichaelRaskin> And the chat doesn't overlay the screenshare
<MichaelRaskin> And we could decide to stream video feeds or not (and they are properly different notion from screenshare, yay)
<MichaelRaskin> Anyone interested in Common Lisp with Nix is welcome to join, too — I do not expect too many, and it can handle NixCon Water-Cooler scale just fine
davidv7 has joined #nixos
<MichaelRaskin> The link https://bbb.in.tum.de/mik-6hg-gar is enough to join, it's WebRTC so works fine in Firefox / Chromium
<MichaelRaskin> (in my experience, it does not like proxies like Squid too much, though)
orivej has joined #nixos
is_null has joined #nixos
<MichaelRaskin> Hmm, seems to be still night for bqv, I guess
<{^_^}> [nixpkgs] @7c6f434c merged pull request #101500 → pango: 1.45.3 -> 1.47.0 → https://git.io/JTaHN
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to staging: https://git.io/JTV2U
<{^_^}> [nixpkgs] @7c6f434c merged pull request #101501 → pango: 1.45.3 -> 1.45.5 → https://git.io/JTaQb
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to staging-20.09: https://git.io/JTV2I
ilmu has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #101472 → parallel: fix calculation of max line length → https://git.io/JTaW2
<{^_^}> [nixpkgs] @bjornfor pushed to master « parallel: fix calculation of max line length »: https://git.io/JTV2K
<omasanori[m]> MichaelRaskin: I see, thanks
<MichaelRaskin> And purcell did not reply quickly enough
<MichaelRaskin> (and I am not sure about the IRC nick)
dbmikus has joined #nixos
dbmikus has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @etu opened pull request #101535 → phpPackages and phpExtensions updates → https://git.io/JTVaa
orivej has quit [Ping timeout: 260 seconds]
oida has quit [Remote host closed the connection]
oida has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-20.09 « Merge #101380: thunderbird*: 78.3.2 -> 78.4.0 »: https://git.io/JTVVn
is_null has quit [Ping timeout: 260 seconds]
m0rphism has joined #nixos
Chiliparrot has joined #nixos
jbox has quit [Quit: WeeChat 2.9]
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
orivej has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout merged pull request #101214 → ghc:8.10.2Binary bootstrap for 8.8 on aarch64 (NixOS#97407) → https://git.io/JT0wH
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to staging-next: https://git.io/JTVwL
thoughtpolice has quit [Ping timeout: 272 seconds]
thoughtpolice has joined #nixos
etrepum has joined #nixos
davetapley has quit [Ping timeout: 272 seconds]
aria has quit [Ping timeout: 272 seconds]
r0bby has quit [Ping timeout: 272 seconds]
johs has joined #nixos
aria has joined #nixos
<{^_^}> [nixpkgs] @bjornfor pushed to release-20.09 « parallel: fix calculation of max line length »: https://git.io/JTVwa
betawaffle has joined #nixos
bridge[evilred] has quit [Ping timeout: 258 seconds]
ynotperez has joined #nixos
r0bby has joined #nixos
bridge[evilred] has joined #nixos
kalbasit has joined #nixos
davetapley has joined #nixos
jfhbrook has quit [Ping timeout: 272 seconds]
omnigoat has quit [Ping timeout: 272 seconds]
callahad87074 has joined #nixos
pointfree has joined #nixos
lally has quit [Ping timeout: 272 seconds]
jfhbrook has joined #nixos
NekomimiScience has joined #nixos
valwal_ has joined #nixos
jabster28 has quit [Quit: ZNC 1.8.2 - https://znc.in]
ProofTechnique has joined #nixos
hamishmack has quit [Ping timeout: 272 seconds]
robmyers has joined #nixos
lally has joined #nixos
omnigoat has joined #nixos
dvim has joined #nixos
jared-w has quit [Ping timeout: 272 seconds]
pittma has quit [Ping timeout: 272 seconds]
ambro718 has joined #nixos
<ambro718> Hi, why is nixos-unstable not updated on https://github.com/NixOS/nixpkgs-channels ?
jared-w has joined #nixos
joedevivo has joined #nixos
bitonic has joined #nixos
feepo has joined #nixos
claudiii has quit [Ping timeout: 272 seconds]
hamishmack has joined #nixos
pittma has joined #nixos
nh2 has joined #nixos
claudiii has joined #nixos
<siraben> ambro718: https://status.nixos.org/
<siraben> How do I disable QT's hooks when I add qmake as a build dependency?
<siraben> It tries to run some qmake command but fails
<srhb> ambro718: Note that you should no longer use the nixpkgs-channels repo since it's deprecated (though it's probably not the cause)
<ambro718> srhb: what should I use as an alternative if I want to use git and maintain custom changes on top of a channel?
<srhb> ambro718: nixpkgs itself
<srhb> ambro718: It has all the corresponding channels that used to be in -channels
<ambro718> srhb: which branches are these?
jabster28 has joined #nixos
<srhb> ambro718: Same names, eg nixos-unstable, nixos-20.09 etc.
<ambro718> ah I see, thanks
<{^_^}> [nixpkgs] @kmein opened pull request #101536 → opustags: init at 1.3.0 → https://git.io/JTVoU
jakobrs has joined #nixos
ArtemVorotnikov[ has quit [Quit: Idle for 30+ days]
fjodor[m] has quit [Quit: Idle for 30+ days]
<stuebinm[m]> is there a better way to ensure that a given directory will exist via nix than to just start a systemd service which checks if it already does and uses `mkdir` if it doesn't? (doesn't need to be anything in there, but without it a web service crashes — obviously i could just create it by hand, but i guess it'd be nice of there'd be some declarative way of doing the same)
<srhb> stuebinm[m]: A common method in newer modules is systemd.tmpfiles
<srhb> stuebinm[m]: Personally I'm undecided.
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
<srhb> I think I like being nearer to the unit in question wherever possible to avoid out-of-sync issues.
<srhb> stuebinm[m]: If possible, reusing systemd's own concepts of statedir etc.
<srhb> stuebinm[m]: (Note that you can specify multiple for each class of directory, so you can probably find a good fit.)
whald has joined #nixos
sangoma has joined #nixos
rsynnest_ has quit [Quit: Connection closed for inactivity]
<srhb> stuebinm[m]: (For instance, setting `StateDirectory = "foo,bar";` will ensure /var/lib/foo and /var/lib/bar are created when the service is started)
whald has quit [Client Quit]
whald has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-20.03 « Merge #101380: thunderbird*: 78.3.2 -> 78.4.0 »: https://git.io/JTVKq
fendor has joined #nixos
zupo has quit [Ping timeout: 256 seconds]
sangoma has quit [Read error: Connection reset by peer]
<jakobrs> What is the "correct" way to package kernel modules in an overlay?
<jakobrs> I could try to extend linuxPackagesFor, but I'm not sure it would be considered idiomatic:
<jakobrs> self: super: { linuxPackagesFor = kernel: (super.linuxPackagesFor kernel).extend (self: super: { ... })); }
zupo has joined #nixos
<jakobrs> Or I could use linuxPackages.callPackage, but then I'd need to know what version of linuxPackages to use *in* the overlay, somehow
<whald> i'm having trouble to get hydra to properly build some project that's using git-lfs (and is built using a flake, if that matters). the sources checked out by hydra have the git-lfs files missing.
<whald> i assume that hydra does something like "nix flake clone 'git+ssh://git@some.gitlab.instance/foo/foo.git' --dest foo" to get the sources which, when run on my machine, *does* fetch the git lfs files, so not all hope is lost. but how can I convince hydra to do the same?
<srhb> whald: I only barely remember this, but iirc git-lfs is an entirely out of band tool mostly unrelated to git, which just hooks into various git commands and causes execution of certain git-lfs commands.
<srhb> whald: So I suppose you either have to do the lfs magic out of band (as a separate source? if that's possible) or teach nix about git-lfs
<whald> srhb, from my experience, git in itself is, since a few releases, aware of git-lfs and will do *the right thing* if only git-lfs is found on the $PATH. that's probably why the "nix flake clone" command just works.
<srhb> You may be right. I guess what I know really is out of date then. :)
<whald> srhb, but iirc, on nixos, systemd services like hydra are isolated from environment.systemPackages, so adding it there does not help. i probably need a (patched?) nix which uses a git which can "see" git-lfs or maybe it's enough to inject it into what hydra sees somehow. hmm. only one way to find out, i guess... :-)
sangoma has joined #nixos
tom39291 has joined #nixos
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 258 seconds]
jakobrs has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @jtojnar opened pull request #101537 → gtk3: Use tracker3 for search → https://git.io/JTVi2
kaiha[m] has left #nixos ["User left"]
<{^_^}> [nixpkgs] @xfix opened pull request #101538 → test-driver.py: remove bufsize=1 from Popen calls → https://git.io/JTVi6
<tom39291> I don't use channels, and instead pin to particular nixpkgs commits. I upgraded a physical machine to recentish commit on branch release-20.09, and rebooted, but it fails to boot. It says "Loading GRUB", then doesn't GRUB, and seems to go straight to loading a GRUB entry, since it says "Booting the kernel." but the console doesn't update anymore. The only indicator I have of boot progress is the
<tom39291> disk indicator on my machine blinks for about 30 seconds, before giving. I see neither stage1/stage2 output.
<tom39291> Is my best bet to recover via USB and nixos-enter and nixos-rebuild, pointing at an old generation?
orivej has quit [Ping timeout: 256 seconds]
<symphorien[m]> try maintaining shift during boot to make grub appear ?
is_null has joined #nixos
null29 has joined #nixos
sangoma has quit [Ping timeout: 256 seconds]
<null29> Hi everyone. I'm trying to run `nixos-rebuild switch`, but I get `Died at /nix/store/w5s7s1nnzsmzdqh06abysffrj2m0nrwf-update-users-groups.pl line 20.` error (logs https://pastebin.com/2za7iJjF). Any ideas how to debug/fix the issue?
<tom39291> symphorien[m]: Thanks for the suggestion. That didn't seem to catch it. I do recall the grub menu appearing for this machine, so either grub menu no longer displays on nixos 20.09, or my machine is messed in some way I don't understand. I'll try the recovery for now.
Soo_Slow has quit [Quit: Soo_Slow]
dbmikus has joined #nixos
dbmikus has quit [Ping timeout: 256 seconds]
<tom39291> I recovered by mounting my boot partition, editing grub.cfg, and moving an old generation up to the top of the grub menu. It booted after that. Impure, but recovered. :) I'll try and figure out what went wrong.
<danderson> does hydra not build non-free licensed derivations?
<danderson> having installed virtualbox, my nixos-rebuilds all drag because I have to recompile virtualbox each time. I'm suspecting that it's because it's unfree and hydra doesn't compile it, but unsure.
<symphorien[m]> No because licence may preclude reditristribution
<marble_visions> hi all! running nixos 2003 with gnome3, on a laptop, wired ethernet. when i boot the machine, gnome starts spamming a connected/disconnected for the wired eth interface (the cable is connected). when i disable the iface from the gnome gui, the problem goes away until next reboot. seems like it's related to https://github.com/NixOS/nixpkgs/issues/72416
<{^_^}> #72416 (by laikq, 51 weeks ago, closed): dhcpcd service mysteriously starting after NixOS 19.03 -> 19.09 update
<{^_^}> [nixpkgs] @vbgl merged pull request #100810 → ocamlPackages.mirage-{kv,fs}: init at 3.0.1 → https://git.io/JTcOH
<{^_^}> [nixpkgs] @vbgl pushed 2 commits to master: https://git.io/JTV1W
<marble_visions> my networking.dhcpcd.enable was true, when i made it false in the configuration and restarted, the problem went away
<marble_visions> should I raise a github issue?
<marble_visions> or maybe report in the existing one?
alp has joined #nixos
<{^_^}> [nixpkgs] @primeos merged pull request #101467 → chromium: use official build settings → https://git.io/JTamQ
<{^_^}> [nixpkgs] @primeos pushed commit from @TredwellGit to master « chromium: use official build settings (#101467) »: https://git.io/JTV1z
<{^_^}> [nixpkgs] @Luflosi opened pull request #101539 → wordgrinder: 0.7.2 -> 0.8 → https://git.io/JTVMt
sangoma has joined #nixos
gnidorah has joined #nixos
<gnidorah> hi. merge please? #100485
CMCDragonkai1 has quit [Ping timeout: 240 seconds]
<{^_^}> https://github.com/NixOS/nixpkgs/pull/100485 (by gnidorah, 1 week ago, open): iortcw: init at 1.51c
waleee-cl has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<eeva> Which package holds opengl headers nowadays? (GL/gl.h)
<Yaniel> you should probably be using libglvnd
Maxdamantus has quit [Ping timeout: 246 seconds]
<eeva> Yaniel: thx!
<eeva> indeed https://nixos.org/manual/nixpkgs/unstable/#sec-opengl mentions it, I should have read this first
Maxdamantus has joined #nixos
heywoodlh has quit [Quit: ZNC 1.8.2 - https://znc.in]
heywoodlh has joined #nixos
<{^_^}> [nixpkgs] @shyim opened pull request #101540 → phpPackages.composer2: 2.0.0RC-1 -> 2.0.0 → https://git.io/JTVDr
<danderson> hm, what's the nix-instantiate equivalent in a flakes world?
<danderson> can't figure out if `nix` has an equivalent of "product derivations without realizing them"
joey has quit [Remote host closed the connection]
joey has joined #nixos
ilmu has quit [Ping timeout: 260 seconds]
ilmu has joined #nixos
joey_ has joined #nixos
joey has quit [Ping timeout: 240 seconds]
__monty__ has joined #nixos
shibboleth has joined #nixos
ris has joined #nixos
shibboleth has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @JesusMtnez opened pull request #101541 → coursier: 2.0.4 -> 2.0.5 → https://git.io/JTVyx
shibboleth has joined #nixos
mvnetbiz_9 has joined #nixos
jabster28 has quit [Ping timeout: 272 seconds]
jabster28 has joined #nixos
<{^_^}> [nixpkgs] @wahjava opened pull request #101542 → fetchfossil: Depend on cacert → https://git.io/JTVSl
mvnetbiz_9 is now known as mvnetbiz_
<{^_^}> [nixpkgs] @iblech opened pull request #101543 → libreswan: Unbreak the package → https://git.io/JTVS1
shibboleth has quit [Ping timeout: 240 seconds]
alp has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c opened pull request #101544 → sbcl: 2.0.0 -> 2.0.8; add 2.0.9; lispPackages: regenerate → https://git.io/JTV9W
<{^_^}> [nixpkgs] @SuperSandro2000 opened pull request #101545 → kindlegen: mark broken due to download removal → https://git.io/JTV9Q
Darkmatter66 has joined #nixos
Darkmatter66_ has quit [Ping timeout: 260 seconds]
rprije has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #99494 → barrier: 2.3.2 -> 2.3.3 → https://git.io/JU7PC
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JTVHR
knupfer1 has joined #nixos
ericsagnes has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #100294 → amfora: Add desktop file → https://git.io/JTIkx
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JTVHg
<{^_^}> [nixpkgs] @etu merged pull request #101540 → phpPackages.composer2: 2.0.0RC-1 -> 2.0.0 → https://git.io/JTVDr
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/JTVH5
alp has quit [Ping timeout: 272 seconds]
ManiacOfMadness has joined #nixos
<{^_^}> [nixpkgs] @magnetophon opened pull request #101546 → redkite: 1.0.3 -> 1.1.0 → https://git.io/JTVQ8
ericsagnes has joined #nixos
dbmikus has joined #nixos
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
joesventek has quit [Quit: Quit]
nikivi has joined #nixos
joesventek has joined #nixos
nikivi has quit [Client Quit]
jabster28_ has joined #nixos
nikivi has joined #nixos
jabster28 has quit [Ping timeout: 260 seconds]
dbmikus has quit [Ping timeout: 240 seconds]
knupfer1 has quit [Ping timeout: 260 seconds]
joesventek has quit [Client Quit]
joesventek has joined #nixos
joesventek has quit [Client Quit]
joesventek has joined #nixos
symphorien[m] has left #nixos ["User left"]
<{^_^}> [nixpkgs] @kmein opened pull request #101547 → python3Packages.{spotify-cli-linux,lyricwikia}: init → https://git.io/JTV7R
dstzd has joined #nixos
dstzd has joined #nixos
dstzd has quit [Changing host]
joesventek has quit [Client Quit]
nikivi has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
dstzd has quit [Client Quit]
joesventek has joined #nixos
dstzd has joined #nixos
mvnetbiz_ has quit [Ping timeout: 260 seconds]
nikivi has joined #nixos
dstzd has quit [Client Quit]
nikivi has quit [Client Quit]
nikivi has joined #nixos
dstzd has joined #nixos
dstzd has joined #nixos
dstzd has quit [Changing host]
joesventek has quit [Client Quit]
joesventek has joined #nixos
joesventek has quit [Client Quit]
joesventek has joined #nixos
<{^_^}> [nixpkgs] @kmein opened pull request #101548 → vimv: init → https://git.io/JTV5k
tilpner has joined #nixos
dstzd has joined #nixos
dstzd has joined #nixos
dstzd has quit [Changing host]
<{^_^}> [nixpkgs] @sternenseemann opened pull request #101549 → haskellPackages.flat: unbreak → https://git.io/JTVd0
mvnetbiz_9 has joined #nixos
sangoma has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @Ma27 merged pull request #101535 → phpPackages and phpExtensions updates → https://git.io/JTVaa
<{^_^}> [nixpkgs] @Ma27 pushed 16 commits to master: https://git.io/JTVdi
meh` has joined #nixos
jabster28 has joined #nixos
jabster28_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Lassulus merged pull request #101495 → iozone: 3.471 -> 3.490 → https://git.io/JTaSC
<{^_^}> [nixpkgs] @Lassulus pushed 2 commits to master: https://git.io/JTVd5
<{^_^}> [nixpkgs] @Ma27 merged pull request #101473 → nixos/nixos-build-vms: use `pkgs.qemu` for virtualisation → https://git.io/JTa4L
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JTVdh
<{^_^}> [nixpkgs] @Lassulus merged pull request #99551 → bento4: 1.5.1-629 -> 1.6.0-637 → https://git.io/JUdvt
<{^_^}> [nixpkgs] @Lassulus pushed 2 commits to master: https://git.io/JTVFI
mvnetbiz_9 has quit [Quit: Bye!]
fendse has joined #nixos
jabster28_ has joined #nixos
avn has quit [Ping timeout: 260 seconds]
jabster28 has quit [Ping timeout: 260 seconds]
stree has quit [Quit: Caught exception]
stree has joined #nixos
<pinpox> Hi, does anyone know how to create a shell.nix file to share with other developers that has zsh as shell?
<pinpox> I know you can use --command on nix-shell, but I'd like to allow anyone to just run nix-shell with my shell.nix file and be all setup for development
<eeva> pinpox: I don't have a solution for you, unfortunately. Two close things I can think of: 1) using direnv, by creating a .envrc containing `use nix` or 2) use lorri (and not nix-shell). Both of these are extra dependencies unfortunately, but direnv is pretty standard
maxdevjs has joined #nixos
<eeva> Otherwise `nix-shell -c zsh` is the best one can do with zsh
<simpson> Note that "other developers that has zsh" is not "anyone".
<pinpox> eeva: ok, thanks for the hints. I'll look at both and see if it's worth the effort. I'm thinking about trying to convince a few co-workers to start using nix, while bash is probably fine I know they are both kinda zsh-fanboys so that would make it easier
<pinpox> Was hoping for some directive to include in the shell.nix file that installs zsh and possible some plugins and set's it all up
<simpson> Let folks bring their own shells and editors into the environment. What you'll want to provide for folks are the build commands for your package, not the tools for editing the package's source code.
<{^_^}> [nixpkgs] @zakame opened pull request #101550 → perlPackages.PerlTidy: 20200110 -> 20201001 → https://git.io/JTVbj
<pinpox> ok I see
<pinpox> simpson: In this case it's mostly terraform, ansible and bit of other stuff. We've had problems because of different versions, so I thought a shell.nix for everyone would be nice
<eeva> pinpox: shell.nix is very nice to bring the “good” versions of these tool in scope. I'm using this too
<pinpox> eeva: Nice. I'm using it myself too and it works perfectly, my co-workers don't though.
<pinpox> The setup process for the project is "theoretically" simple but in my experience always something is missing and it get's tedious.
<pinpox> If I can shorten down the README to something like "just use this shell.nix - done." that'd be great
malook has joined #nixos
civodul has joined #nixos
null29 has quit [Remote host closed the connection]
superherointj has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #100941 → gammy: 0.9.58a -> 0.9.59 → https://git.io/JTWw3
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JTVNP
<pinpox> Another related question: Even if I keep using bash, is it possible to have the shell.nix file define aliases?
txt-file has joined #nixos
<pinpox> so that something like "run" is aliased to the actual command needed to run a project
<{^_^}> [nixpkgs] @7c6f434c merged pull request #101544 → sbcl: 2.0.0 -> 2.0.8; add 2.0.9; lispPackages: regenerate → https://git.io/JTV9W
<{^_^}> [nixpkgs] @7c6f434c pushed 13 commits to master: https://git.io/JTVND
<{^_^}> [nixpkgs] @7c6f434c closed pull request #94913 → sbcl: 2.0.2 -> 2.0.7, eliminate risky alias scheme → https://git.io/JJXgQ
<simpson> pinpox: Understandable. Part of the direnv ethos is to make the choice of underlying shell less relevant; the same environment-preparation steps should work on any popular shell.
jabster28_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
jabster28 has joined #nixos
allgreed has left #nixos ["The Lounge - https://thelounge.chat"]
<tilpner> pinpox: You should be able to define aliases in shellHook
<tilpner> Does anyone recognise this error? "ld.lld: error: undefined symbol: std::__1::chrono::system_clock::now()"
<tilpner> (Context: Rust crate tracing-tracy tries to build some C++)
<patagonicus> Has anyone recently run into rendering issues with Chrome? I'm getting flickering (controls on Youtube in fullscreen, for example) and sometimes the whole window is rendered higher than it should be, but the interactive controls are where they should be, so lower than they are drawn. Might be some combination of Chrome, i3, X and/or intel GPU
<patagonicus> drivers.
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @moben opened pull request #101551 → ceph: Fix build with glibc 2.32 → https://git.io/JTVx8
werner291 has joined #nixos
<tom39291> Figured out why my machine wasn't earlier. I was nix-copy-closure'ing the wrong nixos configuration (and wrong fileSystems."/boot" and fileSystems."/" :)
<tom39291> wasn't booting earlier*
txt_file has joined #nixos
philr has quit [Ping timeout: 246 seconds]
<txt_file> I installed nixos on a computer and it is running good.
<gchristensen> neat
<txt_file> Is there a way to allow users to install software via config file without elevated privileges? I've red it might be possible via ~/.nixpkgs/config but didn't not figure out how.
<gchristensen> nix-env -iA nixpkgs.git
<infinisil> Although it's nixos.git on NixOS
<gchristensen> right ... :)
<txt_file> "nix-env -iA nixos.git" installs git if I'm not mistaken.
<{^_^}> [nixpkgs] @vbgl opened pull request #101552 → ocamlPackages.mirage-net: init at 3.0.1 → https://git.io/JTVp6
<{^_^}> [nixpkgs] @Mic92 opened pull request #101553 → Nextcloud: fix ldap integration → https://git.io/JTVp1
marc2 has joined #nixos
ilmu has quit [Ping timeout: 260 seconds]
fendor_ has joined #nixos
fendor has quit [Ping timeout: 258 seconds]
malook has quit [Remote host closed the connection]
orivej has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101554 → dpic: 2020.06.01 -> 2020.09.15 → https://git.io/JTVhD
zopieux has joined #nixos
gnidorah has quit [Quit: Connection closed for inactivity]
cole-h has joined #nixos
<{^_^}> [nixpkgs] @meutraa opened pull request #101555 → androidStudioPackages.{canary,dev}: 4.2.0.13 -> 4.2.0.14 → https://git.io/JTVjo
lordcirth has quit [Read error: Connection reset by peer]
lordcirth has joined #nixos
<siraben> When building the remarkable-toolchain package, I end up with this in the result folder, http://ix.io/2BQf any indicators on how this can let me cross-compile?
dbmikus has joined #nixos
<siraben> It might be that I need to add the reMarkable tablet as a cross-compilation target.
dbmikus has quit [Ping timeout: 256 seconds]
tsrt^ has quit [Read error: Connection reset by peer]
Chiliparrot has quit [Ping timeout: 260 seconds]
ilmu has joined #nixos
<Ke> if I don't want to have updates restart containers. should I have systemd.services."container@".restartIfChanged = false or "container@name".restartIfChnaged ?
Chiliparrot has joined #nixos
zupo has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101556 → pantheon.elementary-calendar: 5.1.0 -> 5.1.1 → https://git.io/JTwe6
zupo has joined #nixos
tsrt^ has joined #nixos
multun has quit [Quit: WeeChat 2.8]
astro has quit [Quit: leaving]
ddellacosta has quit [Ping timeout: 260 seconds]
astro has joined #nixos
ericsagnes has quit [Ping timeout: 260 seconds]
werner292 has joined #nixos
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
davidv7 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @stigtsp merged pull request #98338 → firefox-bin/update: fix → https://git.io/JUuqA
<{^_^}> [nixpkgs] @stigtsp pushed 3 commits to master: https://git.io/JTwJy
<{^_^}> [nixpkgs] @mvnetbiz opened pull request #101557 → home-assistant: pythonPackages.zigpy-znp: init at 0.2.2 & update other zigpy-* modules → https://git.io/JTwJ9
Somelauw has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101558 → dos2unix: 7.4.1 -> 7.4.2 → https://git.io/JTwJ5
<{^_^}> [nixpkgs] @basvandijk opened pull request #101559 → rocksdb: 6.10.2 -> 6.12.7 → https://git.io/JTwJd
<Somelauw> I'm trying to get qutebrowser 1.14, however nix -i qutebrowser installs version 0.9 If I search on search.nixos.org/packages?query=qutebrowser I see it should install version 1.14
<Somelauw> perl: warning: Setting locale failed.
<Somelauw> perl: warning: Please check that your locale settings:
<Somelauw> LANGUAGE = "en_CA:en_UK:en",
<Somelauw> LC_ALL = (unset),
<Somelauw> LC_TIME = "en_DK.UTF-8",
<Somelauw> LC_MONETARY = "en_IE.UTF-8",
<Somelauw> LC_COLLATE = "C.UTF-8",
<Somelauw> LC_MEASUREMENT = "en_DK.UTF-8",
<Somelauw> LC_NUMERIC = "es_MX.UTF-8",
<Somelauw> LANG = "en_DK.UTF-8"
<Somelauw> are supported and installed on your system.
Baughn has joined #nixos
<Somelauw> perl: warning: Falling back to the standard locale ("C").
<infinisil> ,paste Somelauw
<Somelauw> I'm on unstable ^^
<{^_^}> Somelauw: Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
Baughn has quit [Client Quit]
<siraben> What's that project that lets you run any Linux executable and will fetch the dynamic libraries with Nix and so on?
<siraben> The repo name is `nix-...`
ericsagnes has joined #nixos
<infinisil> siraben: It doesn't really fit your description, but maybe you're thinking of https://github.com/matthewbauer/nix-bundle?
<MichaelRaskin> It sounds more like something autopatchelf
alp has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
<Dandellion> Patchtools?
<tilpner> nix-autobahn
<siraben> MichaelRaskin: yes, thanks
<siraben> infinisil: ah, that project is interesting too
<Somelauw> ironically, I've managed to break qutebrowser. When trying to upgrade I get: error: the group 'nixbld' specified in 'build-users-group' does not exist
<Somelauw> ironic, because nix was supposed to prevent your system from ending up in a broken state, whereas now nix itself ended up in a broken state
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101560 → liberfa: 1.7.0 -> 1.7.1 → https://git.io/JTwTO
<Somelauw> I tried: curl -L https://nixos.org/nix/install | sh
<Somelauw> also "sudo sh" doesn't work
<MichaelRaskin> I suspect your Nix never reached a fully configured state, though
<Somelauw> i don't know. It's at least a year ago I installed it. I don't know how it was configured exactly. It did mostly work
<MichaelRaskin> A lot of stuff just works from binary cache, I guess
<Somelauw> anyway, I need to get it back to work somehow
<MichaelRaskin> Creating a nixbld1 user and nixbld group containing nixbld1 is likely to help
<Somelauw> I'm willing to do that, but it's not in the instructions on https://nixos.org/download.html
Baughn has joined #nixos
<siraben> MichaelRaskin: Nah, my cache works fine. I remember seeing this interesting concept before but forgot it
<siraben> Oops wrong reply
<MichaelRaskin> Somelauw: the installer does some random automagic, and it is supposed that the build users will be created if they are needed in the mode of use that the installer automagically picks
werner291 has quit [Remote host closed the connection]
<MichaelRaskin> So this is not in installation instructions… I guess unfortunately
<patagonicus> Ok, found the commit that's causing artifacts in google-chrome-stable for me: https://github.com/NixOS/nixpkgs/commit/4a39f290842#diff-9c3786e7819f654e2b7dae1208f5516226d980b4185694f132f7b4db5ec1277b Which is a version bump for Chromium (I'm guessing the chrome package is sharing stuff with the chromium one?). Should I report this to nixpkgs and/or
<patagonicus> upstream?
<Somelauw> ok, sudo useradd nixbld1
<bqv> MichaelRaskin: oops, yeah was asleep. Hopefplly was productive
<MichaelRaskin> Yea, I looked up your TZ
<MichaelRaskin> The resulting pull request is cross-linked with both Lisp PRs you were participating in
<bqv> I did see, gonna have a play now
<Somelauw> error: could not set permissions on '/nix/var/nix/gcroots/per-user' to 755: Operation not permitted
<Somelauw> MichaelRaskin: the automatic isn't really working for me. Can I sudo rm -rf /nix and do a clean install or something?
<Somelauw> and maybe remove ~.nix as well?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101561 → dgraph: 20.07.0 -> 20.07.1 → https://git.io/JTwkd
<Somelauw> the nixbld1 and nixbld user and group have been created as you instructed
sangoma has joined #nixos
<MichaelRaskin> Do you have nix-instantiate in your path now? Does it work?
<LnL> what's the owner of /nix/var/nix/db?
<Somelauw> MichaelRaskin: it gives the same warning
<Somelauw> error: could not set permissions on '/nix/var/nix/gcroots/per-user' to 755: Operation not permitted
<MichaelRaskin> Hm, what OS it is?
<patagonicus> Ah, don't need to report upstream since someone has already done so: https://bugs.chromium.org/p/chromium/issues/detail?id=1140606&q=youtube&can=2 :)
<Somelauw> Debian GNU/Linux 10 \n \l
ilmu has quit [Ping timeout: 260 seconds]
superherointj has quit [Quit: Leaving]
ilmu has joined #nixos
<MichaelRaskin> Hm. Do you run nix-instantiate with sudo or as ordinary user?
<Somelauw> ordinary user, I'll try sudo
<Somelauw> it says 'command not found'
<MichaelRaskin> sudo $(which nix-instantiate) /path/to/nixpkgs -A hello
<Somelauw> what should /path/to/nixpkgs be? something in root or something in homedir?
<MichaelRaskin> Hmm
<Somelauw> /nix/store ?
<MichaelRaskin> echo $NIX_PATH
<MichaelRaskin> Ah right
<Somelauw> It's ~/.nix-defexpr/channels/nixpkgs:~/.nix-defexpr/channels
<MichaelRaskin> sudo $(which nix-instantiate) -I "$NIX_PATH" '<nixpkgs>' -A hello
acarrico has quit [Ping timeout: 258 seconds]
berberman has quit [Quit: ZNC 1.7.5 - https://znc.in]
<Somelauw> warning: Nix search path entry '/home/laurent/.nix-defexpr/channels/nixpkgs:/home/laurent/.nix-defexpr/channels' does not exist, ignoring
<Somelauw> error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
berberman has joined #nixos
<Somelauw> both locations do exist,maybe I should only use one of them?
<MichaelRaskin> Hmm, and if you just drop '<nixpkgs>'
<Somelauw> error: getting status of '~/default.nix': No such file or directory
<MichaelRaskin> Oops, right
<MichaelRaskin> I forgot too much about all the channel stuff
<MichaelRaskin> Hmm
<MichaelRaskin> I am stupid
<MichaelRaskin> you are right
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101562 → cpuid: 20200427 -> 20201006 → https://git.io/JTwtU
<MichaelRaskin> sudo $(which nix-instantiate) /home/laurent/.nix-defexpr/channels/nixpkgs -A hello
sangoma has quit [Ping timeout: 258 seconds]
<supersandro2000> I have 3 nix files. The first defines a variable, the second does things based on that and the third consumes it. I tried various let .. in constructs with the following:
<supersandro2000> fork = import ~/src/nixpkgs/default.nix { };
<supersandro2000> I am doing something wrong but I have no clue what. Anyone any idea?
<supersandro2000> But I always get: ``The option `fork' does not exist. Definition values:``
<supersandro2000> imports = [ ./home-common.nix { inherit sources fork; } ];
<Somelauw> MichaelRaskin: warning: you did not specify '--add-root'; the result might be removed by the garbage collector
<Somelauw> /nix/store/5rj29hp44c8p6281imxz9h1klqa23ijs-hello-2.10.drv
<MichaelRaskin> Aha cool
<MichaelRaskin> sudo $(which nix-store) -r /nix/store/5rj29hp44c8p6281imxz9h1klqa23ijs-hello-2.10.drv
<MichaelRaskin> (what I ask you to do is kind of workable Nix use, but only kind of; I just want to check whether the basics are actually working before trying to fix the next level)
<Somelauw> MichaelRaskin: No idea what I'm doing, but it worked and it copied some paths
<MichaelRaskin> Oh cool
<viric> hallo
<viric> what happened in 20.09 in font rendering?
<MichaelRaskin> sudo nohup $(which nix-daemon) > /dev/null
<Somelauw> still the GC warning: warning: you did not specify '--add-root'; the result might be removed by the garbage collector
<MichaelRaskin> That's completely fine and expected
<MichaelRaskin> Hopefully that was about nix-store
<viric> ah font rendering has lcd subpixel things but all looks bigger/thicker in my screen than 20.03
<MichaelRaskin> fontconfig options are too numerous, I guess some defaults could have changed somewhere
Baughn has quit [Quit: ZNC 1.6.2+deb1 - http://znc.in]
<Somelauw> MichaelRaskin: to me? 'nix-deamon not found'
<MichaelRaskin> OK, I should learn to type, it was nix-daemon
<viric> MichaelRaskin: ah ok.
<MichaelRaskin> Afterwards export NIX_REMOTE=daemon
<MichaelRaskin> And you might be able to use Nix without sudo afterwards
<{^_^}> [nixpkgs] @worldofpeace opened pull request #101563 → nixos/lightdm: make lightdm user shell bash → https://git.io/JTwqU
Baughn has joined #nixos
<Somelauw> ok, deamon is running in the background
<Somelauw> MichaelRaskin: try nix-instantiate again?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #100225 → [20.09] [dontmerge] gnome3.mutter334: 3.34.5 -> 3.34.6, update patches → https://git.io/JTTC2
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-20.09: https://git.io/JTwqu
<Somelauw> error: could not set permissions on '/nix/var/nix/gcroots/per-user' to 755: Operation not permitted
<MichaelRaskin> Hm. Just do a sudo chmod 755
<Somelauw> MichaelRaskin: on which file?
<MichaelRaskin> On the directory in the complaint
<Somelauw> I get: error: getting status of '/home/laurent/default.nix': No such file or directory
<MichaelRaskin> With what command?
MmeQuignon has joined #nixos
<MichaelRaskin> nix-shell -p hello --run 'hello'
<Somelauw> after export NIX_REMOTE=deamon I get the default.nix error again
<MichaelRaskin> daemon
<Somelauw> yes 'daemon', otherwise I get error: don't know how to open Nix store 'deamon'
<MichaelRaskin> What command complains about default.nix?
<Somelauw> nix-shell -p hello --run 'hello' works and prints hello world
<Somelauw> MichaelRaskin: nix-instantiate complains about default.nix
<{^_^}> [nixpkgs] @jojosch opened pull request #101564 → dbeaver: 7.2.2 -> 7.2.3 → https://git.io/JTwq9
<{^_^}> [nixpkgs] @worldofpeace merged pull request #100199 → nixos/tools: add desktopConfiguration option (to seed configuration into configuration.nix) → https://git.io/JTU1X
ATuin has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed 6 commits to master: https://git.io/JTwq7
<MichaelRaskin> With no parameters?
<MichaelRaskin> It kind of should!
<Somelauw> yes
<Somelauw> without parameters
marc2 has quit [Quit: WeeChat 2.8]
marc2 has joined #nixos
noudle has joined #nixos
<MichaelRaskin> nix-shell -p nix-info --run nix-info
Spiney has quit [Ping timeout: 258 seconds]
<Nazral> Hello, I am having a problem with Clojure and Leiningen. They keep using java 8 when I'd like them to use java 11
<{^_^}> [nixpkgs] @worldofpeace opened pull request #101565 → [20.09] nixos/tools: add desktopConfiguration option (to seed configuration into configuration.nix) → https://git.io/JTwqj
<Nazral> I found https://discourse.nixos.org/t/select-a-default-jdk-implementation-in-a-nix-shell-derivation/3208/2 but when trying this I get the error "error: attempt to call something which is not a function but a set"
<Somelauw> MichaelRaskin: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.8, channels(laurent): "nixpkgs-21.03pre246624.cfed29bfcb2", channels(root): "nixpkgs-21.03pre246624.cfed29bfcb2", nixpkgs: /home/laurent/.nix-defexpr/channels/nixpkgs
<MichaelRaskin> That sounds like a successful use of nix-shell
<MichaelRaskin> So now you can go back to whatever you wanted to do with qutebrowser
hmpffff has joined #nixos
<MichaelRaskin> Note that you might want to do something, so that nix-daemon is launched as root and NIX_REMOTE is set next time…
<Somelauw> yes, it seems to be working
<Somelauw> MichaelRaskin: can i somehow configure systemd to launch nix-daemon automatically?
<Somelauw> or does the install script already do that?
<MichaelRaskin> Writing a systemd unit for nix-daemon is quite easy
<MichaelRaskin> I guess under some circumstances installer does it automagically
Spiney has joined #nixos
<Somelauw> i don't know anything
<Somelauw> i know less than john snow
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101566 → cppcheck: 2.1 -> 2.2 → https://git.io/JTwmD
<Somelauw> i'm not even sure if my nix is currenly installed user-wide or on a user level
<viric> niksnut: the first think I wanted to use flakes/develop for is not in git, but 'bzr'
<viric> thing
marc2 has quit [Quit: WeeChat 2.8]
mananamenos has joined #nixos
<Somelauw> not sure if my problem is still nix-related, but now I get https://paste.ee/p/apjZh
<Somelauw> something with GLX
zupo has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #101567 → pantheon.switchboard-plug-about: patch some bugfixes → https://git.io/JTwYw
zupo has joined #nixos
<MichaelRaskin> you might want to look at nixGL
<Somelauw> hmm, i don't even have nvidia
<Somelauw> but this problem is nix related?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #101563 → nixos/lightdm: make lightdm user shell bash → https://git.io/JTwqU
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JTwOT
<Somelauw> can't i use install nixGL using nix?
malook has joined #nixos
<Somelauw> or tell nix to just use my system drivers
<{^_^}> [nixpkgs] @worldofpeace pushed 6 commits to release-20.09: https://git.io/JTwO8
<{^_^}> [nixpkgs] @worldofpeace merged pull request #101565 → [20.09] nixos/tools: add desktopConfiguration option (to seed configuration into configuration.nix) → https://git.io/JTwqj
<Somelauw> well, thanks for helping so far, bit of a pity it doesn't work yet
<MichaelRaskin> You can install nixGL through Nix
<bqv> MichaelRaskin: am i doing something fundamentally wrong to be getting this?:
<bqv> Examining system cl-prevalence
<bqv> Fatal condition:
<bqv> The assertion (EQUAL QL-TO-NIX::ARCHIVE-MD5 QL-TO-NIX::STATED-MD5) failed with QL-TO-NIX::ARCHIVE-MD5 = "99d2ce5415beee64df404d77d924db76", QL-TO-NIX::STATED-MD5 = "7615cb79ec797a5520941aedc3101390"
<MichaelRaskin> Ouch ouch ouch
<MichaelRaskin> Not everything is in Nixpkgs
neiluj has joined #nixos
neiluj has quit [Changing host]
neiluj has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #101569 → Fixing some URLs → https://git.io/JTwOD
<neiluj> hello
<MichaelRaskin> bqv: it looks like you downloaded a tarball with md5 different than promised by Quicklisp
<Somelauw> so nix-env -f ./ -iA nixGLIntel
dbmikus has joined #nixos
<bqv> hang on, does ql-to-nix use the quicklisp in my home directory?
xd1le has joined #nixos
<neiluj> gave flakes an other go for system configuration
<MichaelRaskin> bqv: I hope it does not
<neiluj> but i got an error: infinite recursion encountered
<bqv> im not sure how that happens, otherwise
<MichaelRaskin> Somelauw: if you generally use nix-env, yes, in a nixGL checkout
<neiluj> i passed the inputs attribute to each nix file
<MichaelRaskin> bqv: it builds its own copy
<{^_^}> [nixpkgs] @primeos merged pull request #101555 → androidStudioPackages.{canary,dev}: 4.2.0.13 -> 4.2.0.14 → https://git.io/JTVjo
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JTwOh
<bqv> MichaelRaskin: i havent done anything special, just 'quicklisp-to-nix .', which i presume you did recently
<Somelauw> nixGL checkout?
<Somelauw> oh, I do need to clone
<MichaelRaskin> bqv: yeah… might be something interesting with the network I guess
<{^_^}> [nixpkgs] @Ma27 merged pull request #101541 → coursier: 2.0.4 -> 2.0.5 → https://git.io/JTVyx
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JTw3k
kalbasit__ has joined #nixos
zupo has quit [Ping timeout: 260 seconds]
kalbasit_ has quit [Ping timeout: 240 seconds]
dbmikus has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101570 → duktape: 2.5.0 -> 2.6.0 → https://git.io/JTw3Y
<bqv> MichaelRaskin: that being the case, would you be able to add these: chanl cl-containers moptilities osicat trivial-package-local-nicknames
<{^_^}> [nixpkgs] @Pamplemousse opened pull request #101571 → [WIP] radare2-cutter: Allow to use Python plugins → https://git.io/JTw30
<Somelauw> MichaelRaskin: thanks, finaly I got nixGLIntel qutebrowser to work
<Somelauw> next reboot, I'll probably have to mess with nix-deamon again all over
<Somelauw> nix isn't the easiest thing yet
<{^_^}> [nixpkgs] @B4dM4n opened pull request #101572 → [20.09] nixosTests.certmgr: fix systemd test → https://git.io/JTw3D
<MichaelRaskin> Running a single command should not be hard via systemd unit
<MichaelRaskin> But yeah
pr06lefs has joined #nixos
<matthewcroughan_> Anyone around? :D
<{^_^}> [nixpkgs] @Ma27 merged pull request #101566 → cppcheck: 2.1 -> 2.2 → https://git.io/JTwmD
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JTw35
<matthewcroughan_> So, with Nixos, are you supposed to enable/disable services with systemd?
<matthewcroughan_> Or are you supposed to completely avoid manually setting systemd with nixOS
zupo has joined #nixos
<supersandro2000> Can anyone recommend a good guide for nix that is not that lengthy and shows things in practical examples? Sometimes I have the feeling I have no clue what I am doing.
<matthewcroughan_> Yeah I'm in the same boat supersandro2000 :)
<matthewcroughan_> There's nothing that good that I've found, other than the official latest 20.03 manual.
<{^_^}> [nixpkgs] @worldofpeace merged pull request #101572 → [20.09] nixosTests.certmgr: fix systemd test → https://git.io/JTw3D
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-20.09: https://git.io/JTwse
<matthewcroughan_> It has examples for tons of services, so it's only a matter of time before it sinks in.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101573 → dstask: 0.21 -> 0.22 → https://git.io/JTwsk
<{^_^}> [nixpkgs] @worldofpeace merged pull request #101567 → pantheon.switchboard-plug-about: patch some bugfixes → https://git.io/JTwYw
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JTwsY
<{^_^}> [nixpkgs] @Ma27 merged pull request #101564 → dbeaver: 7.2.2 -> 7.2.3 → https://git.io/JTwq9
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JTwss
<{^_^}> [nixpkgs] @B4dM4n opened pull request #101574 → [20.09] nixosTests.ferm: fix network timeout → https://git.io/JTwsR
<{^_^}> [nixpkgs] @Ma27 merged pull request #101558 → dos2unix: 7.4.1 -> 7.4.2 → https://git.io/JTwJ5
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JTwsa
<supersandro2000> Finally solved my issue: imports = [ (import ./home-common.nix { inherit pkgs sources fork; }) ]; 🤯
<supersandro2000> matthewcroughan_: I am more searching for things to better understand nix. I do most of my stuff with home-manager and normally I know what I want to do but the syntax is just wrong
<matthewcroughan_> Well, I know that it's all just bash syntax, mostly..
Somelauw has quit [Quit: WeeChat 2.3]
<matthewcroughan_> Yeah, I think a syntax lookup table would be good
<MichaelRaskin> bqv: started
<bqv> MichaelRaskin: <3
<matthewcroughan_> bqv: You must know. Systemd manual intervention on nix? Yes or no? :P
<bqv> thats a no
<neiluj> so the root of the problem is this import in one of my nix files: inputs.home-manager.nixosModules."home-manager"
<bqv> Enable/disable will likely not even work
<matthewcroughan_> Oh really? let me try it hmm
<neiluj> home-manager is defined as input in flake.nix
<matthewcroughan_> systeWarning: Stopping docker.service, but it can still be activated by:
<matthewcroughan_> Nope, seems to work bqv
<bqv> That's stop, not disable
<matthewcroughan_> ah, sorry
<matthewcroughan_> Failed to disable unit: File /etc/systemd/system/docker.service: Read-only file system
<matthewcroughan_> :D
<MichaelRaskin> bqv: fortunately, I still have the cache from the morning\
<bqv> Awesome :)
Izorkin has quit [Quit: ZNC 1.8.2 - https://znc.in]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101575 → debianutils: 4.11.1 -> 4.11.2 → https://git.io/JTwG6
h0m1 has quit [Quit: WeeChat 2.9]
<{^_^}> [nixpkgs] @7c6f434c opened pull request #101576 → lispPackages: more stuff (for Nyxt) → https://git.io/JTwGS
h0m1 has joined #nixos
Izorkin has joined #nixos
<supersandro2000> > Well, I know that it's all just bash syntax, mostly..
<supersandro2000> Bash has not really a concept of data types. You just chain everything together and it just works.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):345:5
<MichaelRaskin> bqv: waiting for Ofborg
<bqv> You are my hero
<matthewcroughan_> cole-h: so I'm going through your nixos-config now, what are these default.nix files?
<matthewcroughan_> why are they needed? Are these like entrypoints?
<bqv> If you have ./some/dir/default.nix, you can just `import ./some/dir` and it'll load the default.nix
<matthewcroughan_> Yes, but should it be called entrypoint.nix?
<matthewcroughan_> Should I think of it like an entrypoint script?
<bqv> no, it just functions as I said
Izorkin has quit [Ping timeout: 260 seconds]
<matthewcroughan_> Yes, but what loads the default.nix in the first place?
<cole-h> `import` or `imports` will load default.nix if you give it a path to a folder
<matthewcroughan_> So it is an entrypoint.
<cole-h> Yes. But if you name it as such, it won't work.
<cole-h> It's special-cased.
<matthewcroughan_> That's really a bit frustrating, but meh :D
<matthewcroughan_> I don't mind, as long as I know what it is now.
<cole-h> matthewcroughan_: And that users/default.nix is so I can extensibly add users if I ever need to (https://github.com/cole-h/nixos-config/blob/ecc99cd73eed7ba41e10bfc8f80b507794a8d2f4/flake.nix#L91)
<matthewcroughan_> There's only two mentions of "vin" is that really all I have to change to have this work on my system?
<matthewcroughan_> home.username, home.homeDirectory
dbmikus has joined #nixos
<cole-h> and the folder name
<cole-h> or the reference in users/default.nix
<{^_^}> [nixpkgs] @jonafato opened pull request #101577 → kind: 0.8.1 -> 0.9.0 → https://git.io/JTwny
<matthewcroughan_> Right, so just 3.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101578 → dar: 2.6.10 -> 2.6.12 → https://git.io/JTwn7
<{^_^}> [nixpkgs] @worldofpeace pushed to release-20.09 « pantheon.switchboard-plug-about: patch some bugfixes »: https://git.io/JTwnb
<matthewcroughan_> (dwarf-fortress-packages.dwarf-fortress-full.override { enableSound = false; enableFPS = true; })
<matthewcroughan_> :O
<matthewcroughan_> what's this then
mananamenos_ has joined #nixos
<cole-h> I disable sound because I use soundsense (plays music/sounds based on events from the game log) and it's annoying to turn down the default music on every launch
<cole-h> and I enable FPS so I can see how slow stuff is going
<matthewcroughan_> I mean can you explain exactly what that line does?
<cole-h> It overrides the dwarf-fortress-full package to disable sound and enable the FPS counter
<matthewcroughan_> enableSound is an environment variable you want to be set when you call `dwarf-fortress` right?
<matthewcroughan_> or is it not an environment variable?
<cole-h> no?
mananamenos has quit [Ping timeout: 260 seconds]
<matthewcroughan_> Right, so what is enableSound, and where is it defined?
xd1le has quit [Read error: Connection reset by peer]
<cole-h> This is `override`, which overrides top-level attrs, not `overrideAttrs`, which overrides attributes (or sets them) inside of the derivation
xd1le has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @ryantm merged pull request #101562 → cpuid: 20200427 -> 20201006 → https://git.io/JTwtU
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JTwca
hnOsmium0001 has joined #nixos
thelounge812 has joined #nixos
<veleiro> how do you remove this? /nix/var/nix/profiles/per-user/(user)
<veleiro> i have a user that doesnt even exist anymore
<veleiro> and nix 2.4 wont run with it
<neiluj> hum, now i get a new error: attribute 'inputs' missing
<neiluj> i made sure it is defined in flakes.nix
growpotkin has joined #nixos
dbmikus has quit [Ping timeout: 240 seconds]
Izorkin has joined #nixos
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #101576 → lispPackages: more stuff (for Nyxt) → https://git.io/JTwGS
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JTwCj
<bqv> MichaelRaskin: apologies, I think I missed some off the list, are these availale too?: cl-cffi-gtk cl-webengine cl-webkit2 enchant trivial-main-thread
<cole-h> neiluj: Your `outputs =` needs to look like `outputs = inputs:` or `outputs = { ... } @ inputs:`
<bqv> (borg succeeded though)
<MichaelRaskin> I have some bad feeling re: cl-webkit2 and cl-webengine
<cole-h> neiluj: If you're trying to access the inputs in another file, this won't work unless you change the module args with `_module.args.inputs = inputs;` inside the flake.
<bqv> MichaelRaskin: how's that?
<{^_^}> [nixpkgs] @bhipple merged pull request #101546 → redkite: 1.0.3 -> 1.1.0 → https://git.io/JTVQ8
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JTwWL
<bqv> MichaelRaskin: actually you're right, can safely ignore those
<bqv> Sorry for the bother 😅
* bqv forgot that nyxt uses some submodules
qyliss has quit [Quit: bye]
veleiro has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @worldofpeace opened pull request #101579 → pantheon.wingpanel-indicator-session: 2.2.8 -> 2020-09-13 → https://git.io/JTwWa
<{^_^}> [nixpkgs] @worldofpeace merged pull request #101579 → pantheon.wingpanel-indicator-session: 2.2.8 -> 2020-09-13 → https://git.io/JTwWa
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JTwWr
<{^_^}> [nixpkgs] @worldofpeace pushed to release-20.09 « pantheon.wingpanel-indicator-session: 2.2.8 -> 2020-09-13 »: https://git.io/JTwW6
qyliss has joined #nixos
<neiluj> cole-h: yes, that was that
<neiluj> added specialArgs={inherit inputs;}; to nixosConfiguration
<neiluj> seems to fix this, thanks
<cole-h> That works.
<cole-h> Happy to help :)
<neiluj> but i do get an other error: cannot look up '<nixpkgs>' in pure evaluation mode
<neiluj> oops :)
<cole-h> You can't use <nixpkgs> anywhere :P
<cole-h> NIX_PATH is impure, and flake strives to be as pure as possible.
<{^_^}> [nixpkgs] @stigtsp merged pull request #101550 → perlPackages.TestPerlTidy: 20200412 -> 20200930 → https://git.io/JTVbj
<{^_^}> [nixpkgs] @stigtsp pushed 3 commits to master: https://git.io/JTwWb
<neiluj> hum i looked well and did not found any reference to <nixpkgs>
<cole-h> If you can't survive without this, you can do `--impure`, but this will bust the evaluation cache (so everything will have to be evaluated every time)
<cole-h> If you paste the full error somewhere, maybe someone (or I) can help.
<cole-h> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<cole-h> (With and without `--show-trace`, if possible)
<neiluj> thanks: here it is:https://tpaste.us/kkZ6
<neiluj> (with show trace)
<cole-h> Ah, I think this is from home-manager. Can you confirm you're using home-manager?
<neiluj> i am, yes
<evalexpr> neiluj: you can set `_module.args.pkgs = pkgs.lib.mkForce pkgs;` to fix it
<cole-h> You'll need to either set `_modules.args.pkgsPath`;
<cole-h> Don't even need to mkForce it
<cole-h> It's `mkDefault`, which allows overriding without `mkForce`, I believe
<evalexpr> Iirc, when I added that to my configuration I had to use `mkForce`
<evalexpr> ymmv ofcourse :)
<{^_^}> [nixops-aws] @glittershark opened pull request #116 → Add t3a instance types → https://git.io/JTwlh
Chiliparrot has joined #nixos
ATuin has quit [Ping timeout: 260 seconds]
Izorkin has quit [Ping timeout: 272 seconds]
alp has quit [Ping timeout: 272 seconds]
<mica[m]> Can I just import a derv. that isn't in nixpkg yet?
<neiluj> ok, so got my system generated :) with --impure because adding _module.args.pkgs = pkgs.lib.mkForce pkgs; yields a new 'infinite recursion encountered' error
<cole-h> Not pkgs.lib, nixpkgs.lib
<neiluj> mica[m]: do you mean using a custom package?
<cole-h> nixpkgs is the nixpkgs input, which has a lib output which exposes the lib/ stuff from the Nixpkgs repo
<mica[m]> neiluj: yes
<mica[m]> I will submit it to nixpkg, but I want to use it now and it isn't packaged.
<neiluj> mica[m]: you can do with an overlay, i give you an example
<MichaelRaskin> bqv: I wonder how much of gtk libs cl-cffi-gtk needs
<mica[m]> neiluj: yes please & thank you
<bqv> MichaelRaskin: I'm sure I'll find out soon...
<MichaelRaskin> Yeah, I am also in the process
txt_file has quit [Ping timeout: 260 seconds]
<neiluj> mica[m]: here you go :) https://tpaste.us/OQ18
<neiluj> it's as a plain git diff
<grfn> how do I install NixOS/nixops-aws?
<grfn> Im looking for documentation on installation and can't find any
<cole-h> (If you don't get a satisfactory answer here, you can also ask in #nixops)
<neiluj> so, you create an overlay (extra-packages.nix), add your packages in it, and import this overlay in nixpkgs.overlays
<neiluj> then you can add this package like you do as usual
<mica[m]> neiluj: thanks! That is more or less what I'd thought :)
<neiluj> happy to help :) and the wiki page gives other examples too indeed
Izorkin has joined #nixos
ATuin has joined #nixos
<MichaelRaskin> bqv: not _that_ bad
<neiluj> cole-h: hum, i do not have nixpkgs defined
<neiluj> but inputs.nixos now
<cole-h> neiluj: It's from the `inputs`.
<cole-h> Oh, if you renamed it to `nixos`, then use that.
<cole-h> Whatever is pointing to NixOS/nixpkgs (even if it's a nixos-* branch)
<neiluj> hum, i did this https://tpaste.us/wPja
<neiluj> i'm not sure what i'm doing ^^
<neiluj> my reference for a flake system config is https://github.com/colemickens/nixcfg
exco has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c opened pull request #101581 → lispPackages: more Nyxt deps → https://git.io/JTwRn
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
andybkof2001 has joined #nixos
<andybkof2001> made your area like quebec and speak german, in the frontier méxico with texas,the flag is in the frontier, in horizont orange almost dark like brick in up, in half gray aluminum, and in down blue sky day, with letter L red shinning thick, no very thick just 1 cm and 4 mm with red fire in the right side in line like shadow the same red shinnig 9 mm right, at the left side 1 mm of shadow,
<andybkof2001> and in down 3 mm of shadow red shinnig all the shadows stiked at the L the L no with waves in line 9 mm of fire 1 left and 3 in down , the L in the center of the new german flag occupying the entire gray strip with the shadow, the name is Deutcsh, coin deutsches. let the giants play baskectball with the browns.learn german https://app.memrise.com/course/920/5000-german-words-top-87/1/ copy
<andybkof2001> the adress of the page, and paste somewhere, for read it later, go at the bookseller and ask for the diccionary english german and read it verbatim, https://www.youtube.com/watch?v=Y6DNjM4s-zw
<cole-h> srhb:
<cole-h> or gchristensen
andybkof2001 has quit [Remote host closed the connection]
<srhb> cole-h: That was atypical :P
<cole-h> Definitely... strange
<cole-h> lol
<supersandro2000> wrong channel
malook has quit [Remote host closed the connection]
<evanjs> so, project with multiple sub-projects, all yarn -- is there anything that currently handles something like this in nixpkgs already?
<evanjs> I wonder if it might _somehow_ make sense to add it to nodePackages... I do see some things in there that have git repos explicitly specified
* evanjs tries adding to node-packages.json and running generate.sh
<{^_^}> [nixpkgs] @Luflosi opened pull request #101582 → hdparm: name -> pname → https://git.io/JTw0f
<evanjs> I get the feeling it's going to die either at the lerna or the vue-cli-service invocation again
<evanjs> Package in context: https://github.com/imtbl/hyve
ddellacosta has quit [Ping timeout: 264 seconds]
<evanjs> Otherwise, I have the build patched until it runs `vue-cli-service`, which tries to go online and etc
<MichaelRaskin> bqv: scratch that, cl-webkit2 sounds fine
<MichaelRaskin> cl-webengine is bundled with nyxt, though
<{^_^}> [nixpkgs] @lsix opened pull request #101583 → gdb: 9.2 -> 10.1 → https://git.io/JTw04
alp has joined #nixos
<bqv> Ah, okay
<MichaelRaskin> Ouch
<MichaelRaskin> sb-in:with-float-traps-masked
<bqv> I am not familiar enough with sbcl to know the implications of that :D
<MichaelRaskin> Actually not much
<MichaelRaskin> It's just that they need to change the floating-point settings to run QtWebEngine code in the same thread as Common Lisp
pr06lefs has quit [Ping timeout: 260 seconds]
<MichaelRaskin> But yeah, cl-webengine needs some actual build process and stuff
mananamenos_ has quit [Ping timeout: 256 seconds]
<bqv> Oh I see
<bqv> Afaik the webengine build of nyxt is broken anyway so I honestly don't care too much for that
<MichaelRaskin> Heh
<bqv> At least until it works again
<MichaelRaskin> Makes sense
<supersandro2000> Did you try the link above already?
<evanjs> supersandro2000: yeah, that's the thing
<supersandro2000> doesn't work or what do you mean?
<evanjs> I can generate a yarn2nix for the main project easily, and that seems to get things moving. But there are several build tools used
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101584 → dnsdist: 1.5.0 -> 1.5.1 → https://git.io/JTwEk
<evanjs> so I can patch eg some of them to refer to cached dependencies, but some have proven more tricky
<evanjs> like `vue-cli-service build`, for example
<cole-h> >> several build tools used
<cole-h> yuck
<evanjs> yeah...
addcninblue has quit [Ping timeout: 260 seconds]
<supersandro2000> Can you give an example?
<evanjs> so far: yarn, lerna, `vue-cli-service build`, etc
<evanjs> sure, let me revert to that state real quick
<supersandro2000> cant you avoid lerna by fetching from npmjs?
<evanjs> Currently I do that with "substituteInPlace package.json --replace 'lerna bootstrap' 'lerna bootstrap --registry ${yarnCache}'"
<evanjs> and that part does work
<evanjs> Oh wait, or does it :P
<supersandro2000> So you goal is to avoid lerna fetch everything again and use your nix store?
<evanjs> "/bin/sh: vue-cli-service: not found" - I wonder if I was just misreading that last night...
<evanjs> supersandro2000: I mean, generally speaking, yeah, I want everything to use the locally available stuff
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 2.4.3 -> 2.4.4 »: https://git.io/JTwEW
<pumpy> 20.09 released
<evanjs> Using the yarnCache approach in e.g. whirlpool-gui and code-server
<jasom> does qt5.full build succesfully on 20.09 yet?
<supersandro2000> evanjs: then you probably don't get around writing some wrapper that auto patch things for you
<{^_^}> [nixpkgs] @danieldk merged pull request #101449 → radeon-profile: 20190903 -> 20200824 → https://git.io/JT2Se
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JTwE0
<supersandro2000> the example you gave is missing a shebang patch and that vue-cli-service thingy
xd1le has quit [Read error: Connection reset by peer]
<evanjs> well yeah. I do have patchShebangs node_modules/ but not sure if that's in the right stage atm
<{^_^}> [nixpkgs] @danieldk merged pull request #101483 → birdtray: 1.8.1 -> 1.9.0 → https://git.io/JTaKT
<{^_^}> [nixpkgs] @danieldk pushed 2 commits to master: https://git.io/JTwEg
<evanjs> no it's getting done it seems. well, just patching "node_modules" at least lol
<cole-h> pumpy: Not yet.
<evanjs> derr well it's either expecting vue-cli-service to be in the PATH or something else provides it
xd1le has joined #nixos
ericsagnes has quit [Ping timeout: 272 seconds]
<evanjs> I wonder if adding @vue/cli-service to nodePackages might help
<evanjs> (side note: it is _not_ fun querying the "@" packages... they're more or less invisible from most mechanisms like `nix search` and even `nix-env -qaPA nixpkgs.nodePackages`, IIUC)
<evanjs> or maybe @vue/cli can be used in the same way
<evanjs> (that one _is_ in tree)
<{^_^}> [nixpkgs] @7c6f434c merged pull request #101581 → lispPackages: more Nyxt deps → https://git.io/JTwRn
<{^_^}> [nixpkgs] @7c6f434c pushed 3 commits to master: https://git.io/JTwEN
<MichaelRaskin> bqv: if you have working nyxt package, feel free to send the .nix file for ijntegration in lisp-packages.nix, or mention me on a PR
dbmikus has joined #nixos
<bqv> MichaelRaskin: I've been getting pulled away from my attempt again and again, ill have one by later I'm sure
<evanjs> Ah. Command vue build requires a global addon to be installed. Please run undefined @vue/cli-service-global and try again.
<evanjs> Well then :P
<MichaelRaskin> I mean, we had this 2-hour call this morning, and 2 hours were needed
<MichaelRaskin> To unblock various basic infra stuff
<MichaelRaskin> Hopefully now you should have an easier time
<m1cr0man> Hey folks. What's the correct way to build a conditional around system.stateVersion? I need to guard a change in acme.nix against old releases.
ericsagnes has joined #nixos
berberman_ has joined #nixos
pr06lefs has joined #nixos
berberman has quit [Ping timeout: 260 seconds]
seku has joined #nixos
davidv7 has joined #nixos
dbmikus has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixpkgs-20.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a26e92a67d8 (from 10 hours ago, history: https://channels.nix.gsc.io/nixpkgs-20.03-darwin)
ddellacosta has joined #nixos
orivej has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101585 → ephemeralpg: 3.0 -> 3.1 → https://git.io/JTwzJ
<{^_^}> [nixpkgs] @marsam merged pull request #101448 → terragrunt: 0.25.4 -> 0.25.5 → https://git.io/JT21Z
<{^_^}> [nixpkgs] @marsam pushed 4 commits to master: https://git.io/JTwzU
<bqv> MichaelRaskin: yeah, thanks
werner291 has joined #nixos
<MichaelRaskin> bqv: should we close the issue about Nyxt deps?
pr06lefs has quit [Ping timeout: 246 seconds]
<bqv> Feel free, actually. I
<bqv> MichaelRaskin: If theres anything else wrong its a separate issue
<bqv> but I imagine its fine now.
<bqv> Gonna try a build in a sec
<{^_^}> [nixpkgs] @quyse opened pull request #101586 → open-sans: fix revision: remove URL encoding → https://git.io/JTwzE
<jdnixx-M1> ,channels
<{^_^}> Largest Nix channels: #nixos, #nixos-dev, #nixos-chat, #nixos-aarch64, #nixos-security, #nixcon, #nixos-officehours, #nixops, #haskell.nix, #nix-darwin, #nixos-de, #nixos-emacs, #nixos-on-your-router, #nixos-nur, #nix-lang, #nixos-fr, #nixos-systemd, #nixos-borg, #nixos-wiki
<infinisil> What if nixpkgs provided pkgs.distros.ubuntu, which gives you a runner for ubuntu in a vM
<jdnixx-M1> do you have to be invited to some of the nixos-* channels?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101587 → croc: 8.5.1 -> 8.5.2 → https://git.io/JTwzD
<jdnixx-M1> like -dev, -security? can't find it. Not sure if it's because I'm on matrix/element
<etu> jdnixx-M1: I don't think so
<MichaelRaskin> Or in
<MichaelRaskin> a container
<MichaelRaskin> I believe there are invite-only channels, and they are not listed
<jdnixx-M1> <infinisil "What if nixpkgs provided pkgs.di"> yeah I've wondered about something like that
<jdnixx-M1> <MichaelRaskin "I believe there are invite-only "> o ok
<jdnixx-M1> anyone else using irc here through matrix? I'm new to it and am a dum dum
<jdnixx-M1> but yeah MichaelRaskin
<jdnixx-M1> or whoops sorry lol infinisil I already use ubuntu in gnome-boxes to try & do stuff that steam-run doesn't work for
<qyliss> jdnixx-M1: none of the channels you listed are invite-only
<jdnixx-M1> so yea I've been like.....why can't I just run a one liner to download the whole honkin' ubuntu tree & toss 'er on my system
<qyliss> Matrix is just sort of broken
<supersandro2000> the bridge is sometimes a bit whanky
<jdnixx-M1> lol great
<qyliss> I believe the solution is something like, go into your "Freenode IRC Bridge" or whatever chat, and post e.g. !join #nixos-dev
<jdnixx-M1> ooh ok
<supersandro2000> when 250 people leave this is probably cause of matrix
<jdnixx-M1> i'll try that
<qyliss> But I say that as a non-Matrix user so I might have got the specifics wrong
<{^_^}> [nixpkgs] @marsam merged pull request #100537 → sonobuoy: 0.16.1 -> 0.19.1 → https://git.io/JTOz5
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JTwgf
<jdnixx-M1> I mean it found nixos, nixos-chat and nixos-aarch64 just fine
<qyliss> Yeah, some channels have corrupt metadata or something on the matrix side
<jdnixx-M1> so idk weird. I think my homeserver on matricks is kde.org tho so idk if that's why.......iiiiidk
<jdnixx-M1> what's nixos's irc URL again
<supersandro2000> #nixos on freenode
<jdnixx-M1> I mean like the server address
<supersandro2000> irc.freenode.net ?
<jdnixx-M1> oh nvm sorry got it
<jdnixx-M1> sweet it worked. forgot the #
<{^_^}> [nixpkgs] @worldofpeace merged pull request #101586 → open-sans: fix revision: remove URL encoding → https://git.io/JTwzE
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JTwgC
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101588 → easyrpg-player: 0.6.2.1 -> 0.6.2.3 → https://git.io/JTwg4
xd1le has quit [Read error: Connection reset by peer]
gentauro has quit [Read error: Connection reset by peer]
<jdnixx-M1> how come syslogd won't output basically any log messages on /var/log/messages?
gentauro has joined #nixos
<MichaelRaskin> I guess, systemd and journald
<jdnixx-M1> I enabled the nixos services option, default config, but since turning it on last night it's literally got like 10 lines of just the timestamp + "JNIXX -- MARK --"
xd1le has joined #nixos
dxtr has joined #nixos
<jdnixx-M1> I thought the . argument in the default syslog.conf would mean all logs go to the messages file
<jdnixx-M1> whoops *.*
<bqv> MichaelRaskin: ugh, cl-enchant is still required too
<bqv> I'm gonna patch it in manually for now
<matthewcroughan_> cole-h: Alright, so, I've created users/matthew/modules/all-my-apps
<MichaelRaskin> Wait, is it different from enchant
<matthewcroughan_> what else do I need to do in order to rebuild and end up with a good home-manager setup?
<bqv> Yes, apparently
<MichaelRaskin> bqv: the package / QL system is enchant, and it is in lispPackages
<bqv> Oh
<MichaelRaskin> cl-enchant is not in QL
<bqv> Oh I just haven't updated, mb
<MichaelRaskin> Of course on Debian there is no namespacing so they have to call that cl-enchant
neiluj has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @ryantm merged pull request #101570 → duktape: 2.5.0 -> 2.6.0 → https://git.io/JTw3Y
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JTwgy
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101589 → auctex: 12.2 -> 12.3 → https://git.io/JTwg5
exco has quit [Ping timeout: 265 seconds]
<pumpy> matthewcroughan_ i had configuration.nix install home manager. i got it working with a per-user install but i think systemwide makes more sense
<pumpy> i also use a dynamic import that imports any .nix files in ./conf.d
<jdnixx-M1> could anyone point me in the right direction for making my own new derivations. I'm new to it and a little while ago was trying to package up Klogg (fork of glogg) to maybe submit to nixpkgs, but was in wayyyy over my head & pretty much gave up for now
<jdnixx-M1> but I just found a really stupid simple little plasma applet with a 6-line install script basically, think I could use that for practice
sss2 has joined #nixos
<cole-h> matthewcroughan_: Ping me again in ~7 hours -- gtg work
<{^_^}> [nixpkgs] @quyse opened pull request #101590 → ctags: fix sha256 → https://git.io/JTw2k
<jdnixx-M1> the only thing in it that has to change to be nix-specific is it copies an extra file to /etc/sudoers & chmod's it
<jdnixx-M1> other than that I guess I should be good to just stick the git repo's contents in a .nix file and do something to handle that little bit, but I'm super confused on what all boilerplate is always/sometimes required for different types of derivations
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101591 → cproto: 4.7p -> 4.7q → https://git.io/JTw2Z
cole-h has quit [Ping timeout: 272 seconds]
<bqv> MichaelRaskin: is it possible to use buildLispPackage directly? Thinking of the cluffer submodule nyxt has, which is not in QL
<MichaelRaskin> Look at clx-truetype
<MichaelRaskin> It is not in recent QL anymore, so it is in lisp-packages.nix directly
<bqv> Ah
multun has joined #nixos
cjpbirkbeck has joined #nixos
orivej has joined #nixos
jumper149 has joined #nixos
<jumper149> Is there a good way to find the source code for nix functions (mkDerivation for example)?
xd1le has quit [Read error: Connection reset by peer]
<matthewcroughan_> How do you guys figure out what exists?
<matthewcroughan_> e.g services.xserver.displayManager.lightdm.enable
<matthewcroughan_> How do I figure out what else is in services.server?
<lassulus> man configuration.nix
<jumper149> matthewcroughan_: nixos-option with tab-autocomplete is nice
Neo-- has quit [Ping timeout: 260 seconds]
xd1le has joined #nixos
<lassulus> jumper149: i just grep in the source
<matthewcroughan_> source?
<matthewcroughan_> like nixpkgs?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jumper149> I guess he means the nixpkgs repo
<{^_^}> [nixpkgs] @omasanori opened pull request #101593 → maintainers: add omasanori to the list → https://git.io/JTwaH
<jumper149> my problem with that is that I find a whole lot of wrong matches :(
<lassulus> thats sadly true, but grep 'mkDerivation =' works good enough for me
zupo has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #101594 → x265: fix aarch64 build → https://git.io/JTwaF
zupo_ has joined #nixos
marc2 has joined #nixos
alp has quit [Ping timeout: 272 seconds]
zupo has quit [Ping timeout: 240 seconds]
<bqv> MichaelRaskin: acclimation and clump, are the last ones needed, if you're feeling generous?
<bqv> Acclimation is easy to do manually but I can't find clump's source
<bqv> Quicklisp is so mysterious
<bqv> Scratch that, found it
<bqv> Offer remains, thougt
<MichaelRaskin> Yeah, the cache is still hot…
<{^_^}> [nixpkgs] @7c6f434c opened pull request #101595 → lispPackages: more Nyxt deps → https://git.io/JTwVc
<{^_^}> [nixpkgs] @delroth opened pull request #101596 → chiaki: 1.2.1 -> 1.3.0 → https://git.io/JTwVC
<aasg> ,locate glib-compile-resources
<{^_^}> Found in packages: glib.dev, glib.debug
gxt has quit [Remote host closed the connection]
gxt has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
<matthewcroughan_> Right, can someone give me a high level overview of what Home Manager is?
<matthewcroughan_> I can already install things as a user. That's what nix is. A package manager for the user.
<MichaelRaskin> Home manager is a package collection of special highly parametrised packages that produce configuration files
<matthewcroughan_> Hmm.. As opposed to what?
<matthewcroughan_> What does it let me do, that I could not do using my config.nix?
ilmu has quit [Ping timeout: 260 seconds]
<MichaelRaskin> Well, if you want to use Nix to build your vimrc…
<matthewcroughan_> Right, I saw some of that in cole-h's repo
<matthewcroughan_> what is the benefit of doing this?
ilmu has joined #nixos
<MichaelRaskin> (also it uses module system like NixOS does to propagate a single option into multiple configuration files)
<MichaelRaskin> If you have to ask, none
<matthewcroughan_> Well, can you maybe give me one example of a benefit? :D
<MichaelRaskin> It's a stylistic preference, whether you prefer to write configs and keep them under a VCS, of if you want to write all choices in Nix syntax, and have a consistent set of configs generated for you
<matthewcroughan_> e.g, this repo foregos dotfiles, in order to use home-manager, defines everything inside.
<matthewcroughan_> can you produce dotfiles from this though? Should you want to share your dotfiles with people who do not use nixos?
<MichaelRaskin> Sometimes there is a single option that controls a larger chunk of config that is usually tweaked as a whole
<MichaelRaskin> Yes, this is intended to produce dotfiles
justanotheruser has quit [Ping timeout: 260 seconds]
<matthewcroughan_> See, that's what I was worried about. I was worried that by using this, I have to make everything non-standard, unsharable and un-portable.
<matthewcroughan_> So this is not true? I can only gain by using this feature?
<MichaelRaskin> Well, your dotfiles are now symlinks into /nix/store
endformationage has joined #nixos
<matthewcroughan_> Well, I can't tell you how annoyed I was when I found out I had to maintain my dotfiles in /etc/nixos/dotfiles :D
<matthewcroughan_> so I guess this fixes that
<{^_^}> [nixpkgs] @ryantm merged pull request #101587 → croc: 8.5.1 -> 8.5.2 → https://git.io/JTwzD
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JTwwT
<matthewcroughan_> MichaelRaskin: Okay, so when I use homemanager, does this mean my configuration.nix no longer includes `users.users.Username =` ?
<MichaelRaskin> Why? user list is a system-wide thing
<neothefox> So, I made changes to a module and it's is now in my local repo, but can I build it specifically withou making my poor 4 core Intel m3 compile firefox from upstream along with the rest of the system?
Chiliparrot has joined #nixos
<matthewcroughan_> what about environment.systemPackages? MichaelRaskin
<MichaelRaskin> Home manager manages what user can write freely
<bqv> MichaelRaskin: am I missing something? Is ASDF::USER/FSET a package separate to asdf somehow?
ATuin has quit [Ping timeout: 258 seconds]
<MichaelRaskin> The name looks like just not a package
<bqv> It seems to be lacking, one way or another
<MichaelRaskin> Not sure what exactly is lacking there
ilmu has quit [Ping timeout: 260 seconds]
<bqv> specifically, the error i'm looking at is thus:
<bqv> lisp-nyxt-f744af52> Unhandled ASDF/FIND-COMPONENT:MISSING-DEPENDENCY in thread #<SB-THREAD:THREAD "main thread" RUNNING
<bqv> lisp-nyxt-f744af52> {10008B80D3}>:
<bqv> lisp-nyxt-f744af52> Component ASDF/USER::FSET not found, required by #<SYSTEM "nyxt/keymap">
<MichaelRaskin> Yeah, none of the ASDFs seem to contain a mention of fset
<MichaelRaskin> Oooh
<MichaelRaskin> It is just fset
<bqv> oh!
<MichaelRaskin> Let me see if it is in quicklisp
<bqv> it's in nixpkgs already
<bqv> not to worry
<MichaelRaskin> Ah
<{^_^}> [nixpkgs] @7c6f434c merged pull request #101595 → lispPackages: more Nyxt deps → https://git.io/JTwVc
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JTwwg
<{^_^}> [nixpkgs] @andir opened pull request #101598 → nixos/tests: follow-up to the closure reduction PR → https://git.io/JTwwV
ilmu has joined #nixos
<supersandro2000> Just searched for at least 2 hours the missing { } ....
<MichaelRaskin> bqv: OK, next batch passed eval-check
<MichaelRaskin> Or I guess you can enable trating lispPackages as highlighting you in this chat
<bqv> MichaelRaskin: found one more that's missing - hu.dwim.defclass-star (it's in quicklisp, not in nixpkgs)
<{^_^}> [nixpkgs] @puffnfresh closed pull request #95805 → Androidenv update → https://git.io/JJAGS
<bqv> but i feel like that'll not be the only one, now
<MichaelRaskin> He
<MichaelRaskin> Heh
<MichaelRaskin> Is Nyxt ASDF-built or is there more special fun?
<bqv> it is asdf, i had the same thought
<bqv> that's why i'm migrating my derivation to buildLispPackage
b has joined #nixos
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
<bqv> it's just hard to tell the deps because it's all so modular...
<MichaelRaskin> I mean, if it is a straightforward buildLispPackage, with a hot cache I could see the missing deps and add them pretty quickly
spacefrogg has joined #nixos
<MichaelRaskin> Did you try to find all the .asd files?
<bqv> I can pass you what i've got, if you like
<bqv> yeah, i'm going through them now, some were package.lisp, not asd
<bqv> because it does dynamic loading, afaict
<MichaelRaskin> Modular means you need to write a lot of packages?
<bqv> no, just the behaviour of the program is quite modular (extensions, libraries, etc)
<MichaelRaskin> Hmm, that might also mean that buildLispPackage will be a pain to force sufficient precompilation
<bqv> there i have next-gtk as what i was originally using, but nyxt using buildLispPackage instead
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bqv> all using pkgs and messy for now cause I was merely testing
<{^_^}> [nixpkgs] @quyse closed pull request #101590 → ctags: fix sha256 → https://git.io/JTw2k
<MichaelRaskin> Cluffer looks fine when transplanted into lisp-packages.nix
<bqv> fab
<bqv> MichaelRaskin: i'm not sure that derivation would run correctly, fwiw, because my local nyxt build has a few other things, i was just testing the lisp part
cjpbirkb1 has joined #nixos
<MichaelRaskin> I mean, that's Robert, I wouldn't expect his cluffer to bring any surprises
<bqv> oh, i mean nyxt
<MichaelRaskin> Nyxt is another story maybe
<MichaelRaskin> Hm, you want to shaorter user.name in git, should I reference you by it or by nickname?
astronavt has joined #nixos
numkem has joined #nixos
cjpbirkbeck has quit [Ping timeout: 258 seconds]
<bqv> nickname is fine, if i understand you correctly
<MichaelRaskin> Hmm, But basically that package is about preparing the build for Lisp, and generating icons, right?
<bqv> i was thinking the GST stuff and gapps wrapping
cjpbirkbeck has joined #nixos
<MichaelRaskin> Hmm, true
<MichaelRaskin> Maybe this could be just a wrapper package
<bqv> likely, yeah
<bqv> as long as nyxt.asd builds, that's pretty trivial
<MichaelRaskin> I am not buying rev prefixes in version… putting dates there, because versions that are mostly comparable are nice to have…
<bqv> that's fine
cjpbirkb1 has quit [Ping timeout: 240 seconds]
<MichaelRaskin> Yeah, you do include timestamps elsewhere in comments, so no effort needed to fix
<bqv> that's a feature of emacs's nix-update-fetch :)
<MichaelRaskin> Never expanded my shell scripts to cover git branches
dbmikus has joined #nixos
cjpbirkb1 has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #99718 → suil-qt5: remove from aliases.nix → https://git.io/JUNFf
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/JTwoJ
<{^_^}> [nixpkgs] @ryantm merged pull request #101573 → dstask: 0.21 -> 0.22 → https://git.io/JTwsk
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JTwoL
xd1le has quit [Read error: Connection reset by peer]
cjpbirkbeck has quit [Ping timeout: 240 seconds]
<astronavt> is there some way to move all the nix config files to $XDG_CONFIG_HOME instead of keeping them as "dotfiles"?
cjpbirkbeck has joined #nixos
<astronavt> e.g. `~/.nix-defexpr` and `~/.nix-profile`
xd1le has joined #nixos
tilpner has quit [Remote host closed the connection]
cjpbirkb1 has quit [Ping timeout: 258 seconds]
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
cjpbirkb1 has joined #nixos
zupo_ has quit [Ping timeout: 260 seconds]
<bqv> i don't think they're movable, but i could be wrong
cjpbirkbeck has quit [Ping timeout: 240 seconds]
<MichaelRaskin> In the meantime, nyxt reminded me to unpin old serapeum
zupo has joined #nixos
<bqv> oh yes
<{^_^}> [nixpkgs] @7c6f434c opened pull request #101599 → Nyxt deps → https://git.io/JTwoH
<MichaelRaskin> Some version of nyxt.asd compilation succeeds…
zupo has quit [Client Quit]
<bqv> hooray. that's something
BoxWithAHat has joined #nixos
<BoxWithAHat> Hello. Anyone currently online?
cjpbirkbeck has joined #nixos
<MichaelRaskin> bqv:
<bqv> github says you committed that "in 4 minutes"
<bqv> interesting
<bqv> BoxWithAHat: many!
<MichaelRaskin> it doesn't compile the binary, though
<MichaelRaskin> It is a position I hold for many years, that my laptop clock should be ahead by 7 minutes
<bqv> that should be fine, because now the wrapper derivation can call asdf:make
<BoxWithAHat> I'm considering getting NixOS. How is it different from, say, GoboLinux?
cjpbirkb1 has quit [Ping timeout: 240 seconds]
<MichaelRaskin> Any system that breaks due to interaction with a 7 minutes off clock should be broken
<bqv> curious. I like it
<MichaelRaskin> I think Gobo has less granularity
<astronavt> ah :( its a shame that a newer application still isnt using xdg home dirs
<BoxWithAHat> granuwhat?
dbmikus has quit [Ping timeout: 260 seconds]
<BoxWithAHat> I'm kind of new-ish to Linux
<MichaelRaskin> My motivation is not really to stress-test systems against clock asynchronicity, but for Reasons I prefer that clock to be a bit ahead
<BoxWithAHat> I've only ever really used two desktop distros
<BoxWithAHat> Mint and Raspbian
<MichaelRaskin> Well, in Nix you can have available two copies of the same application, but built against different dependencies
<MichaelRaskin> I think Gobo goes by name and version only
<MichaelRaskin> I might be wrong about Gobo, though
<BoxWithAHat> I'm still a bit confused
knupfer1 has joined #nixos
<MichaelRaskin> Frankly, if you do not have confidence in terms of generic Linux things, you might suffer a bit too much from Nix* learning curve
knupfer1 has quit [Client Quit]
<BoxWithAHat> Shame
<chpatrick> BoxWithAHat: nixos is kind of alien because every package is installed in a separate immutable store and then linked together to get the system you actually run
bvdw has joined #nixos
<chpatrick> which is great because if this re-linking is really cheap so if you mess something up you can just go back to an earlier one
<BoxWithAHat> I'm lost again...
<MichaelRaskin> Well, Gobo also does the first half
<chpatrick> on normal distros you have a big filesystem and every time you install something the new package gets copied over whatever is there
<chpatrick> but you can't really undo it
<BoxWithAHat> Yeah
<chpatrick> and if you make a mistake you might be in trouble
<BoxWithAHat> I'm just wondering where the learning curve part comes in
<BoxWithAHat> It sounds simple to me
<chpatrick> BoxWithAHat: it's just that on top of the normal linux stuff you might have to learn there's also the weird nix stuff :P
<MichaelRaskin> BoxWithAHat: from understanding the hundreds of small things where people assume FHS
<BoxWithAHat> FHS?
<chpatrick> which you can sometimes only get on IRC or reading the source
<MichaelRaskin> Standard layout of everything in the system
justanotheruser has joined #nixos
<exarkun> If you're just trying to use NixOS and pre-packaged NixOS software then I don't think NixOS is any harder than your average Linux distro to learn.
<MichaelRaskin> Well, and there are thing that you are expected to learn from reference manuals
<exarkun> All Linux distros are bizarre and quirky, they're just mostly bizarre and quirky in a different way than NixOS is.
tilpner has joined #nixos
<bqv> it stands for Filesystem Heirarchy Standard, btw
<BoxWithAHat> Oh, that makes sense
<BoxWithAHat> Well, I don't really have time for manuals, I just want to computer
<MichaelRaskin> exarkun: make a step to the side, hit a gotcha, and suddenly we ask for a ton of context in the terms mostly used by experienced sysadmins, though
<BoxWithAHat> i did an bad englishes
<bqv> BoxWithAHat: it's likely you'd suffer with nixos, then
<exarkun> MichaelRaskin: I gave my caveat.
<BoxWithAHat> I'm just wanting to try out unique operating systems
<BoxWithAHat> Since I have some unused SD cards
<MichaelRaskin> Well, uniqueness almost always imlplies relearning
<exarkun> BoxWithAHat: So you're going looking for trouble but you don't want any trouble?
<exarkun> good luck with that
<BoxWithAHat> Nix seems like it'd be better as an OS to "settle down" with (sorry for the weird terms). It sounds like it's very stable for its learning curve.
<chpatrick> BoxWithAHat: lots of manuals though
<BoxWithAHat> Right
<chpatrick> but once you learn it it really keeps working
<BoxWithAHat> Which is outweighed by the fact that, being stable as it is, you don't really feel the need to move on to different operating systems
<BoxWithAHat> Whoops
<BoxWithAHat> I was trying to newline
<chpatrick> I went slackware -> linux from scratch -> gentoo -> arch -> nixos
<chpatrick> and I'm pretty happy
growpotk- has joined #nixos
<BoxWithAHat> I pretty much went to Mint and stuck with it for good
<BoxWithAHat> And I use Raspbian on my Pi
<MichaelRaskin> BoxWithAHat: if you want basic appliance-level stuff from your OS, Debian or Ubuintu will serve you well in almost-default configration
<BoxWithAHat> Also, LFS, Gentoo, *and* Arch? There's some bragging rights
<BoxWithAHat> Oh, I know that, hence Mint
<bqv> MichaelRaskin: looks like asdf reached the final stage, so yeah, no more deps
<BoxWithAHat> I tried Ubuntu before, but I preferred Mint
<bqv> thanks!
<bqv> now it's just getting the build to work completely...
<MichaelRaskin> Gonna merge once eval-check is done, even though it's all cargoculting
<bqv> heh
<MichaelRaskin> In the sense that I know these changes _should not be able_ to break anything given the kind of changes and the kind of local testing
<MichaelRaskin> But should not be able to break anything sounds like famous last words
<BoxWithAHat> Ha, agreed there
<bqv> :D
<BoxWithAHat> "This probably shouldn't break anything."
<{^_^}> [nixpkgs] @7c6f434c merged pull request #101599 → Nyxt deps → https://git.io/JTwoH
<{^_^}> [nixpkgs] @7c6f434c pushed 3 commits to master: https://git.io/JTwKS
justanotheruser has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Lassulus merged pull request #101536 → opustags: init at 1.3.0 → https://git.io/JTVoU
<{^_^}> [nixpkgs] @Lassulus pushed 2 commits to master: https://git.io/JTwKA
<MichaelRaskin> I wonder if it is actually feasible to build Nyxt as a pure wrapper starting from what I merged and not touching the lispPackages.nyxt but using it as a library
<MichaelRaskin> (depends on what exactly their application build does)
__monty__ has quit [Quit: leaving]
<bqv> that's what i'm attempting. it is, i think, but asdf:make wants to put the result in the lispPackages.nyxt path
<MichaelRaskin> Obviously, it is fine to build some binary in a Lisp package.
<MichaelRaskin> I blatantly abuse my position to keep a query-fs package that only I use (and I am the upstream), and it builds a binary
<bqv> nyxt-gtk> ; wrote /build/.temp-nixbld-home/.cache/common-lisp/sbcl-2.0.8.nixos-linux-x64/nix/store/pshkhgw87f81szb75wmh2xc6xkxqyr3s-lisp-nyxt-2020-10-23/lib/common-lisp/nyxt/source/renderer-gtk-tmpUWBX3JKB.fasl
<bqv> nyxt-gtk> ; compilation finished in 0:00:00.266
<bqv> nyxt-gtk> /nix/store/pshkhgw87f81szb75wmh2xc6xkxqyr3s-lisp-nyxt-2020-10-23/lib/common-lisp/nyxt/nyxt: Permission denied
<bqv> is what i mean. it tries to put the binary in the library's storepath
<MichaelRaskin> YEajh, I know
<MichaelRaskin> I think it could be overridable
<bqv> i imagine so
<MichaelRaskin> What they use? asdf:make ?
<bqv> yep
bvdw has quit [Quit: The Lounge - https://thelounge.chat]
BoxWithAHat has quit [Remote host closed the connection]
bvdw has joined #nixos
<MichaelRaskin> I guess you could play with output translations, but then it is easier just to build in the lispPackages package
<bqv> well, there's no part of the wrapping that would change the binary
pr06lefs has joined #nixos
<bqv> so in fairness you could have the asdf:make as part of the lispPackages package and still have a wrapper
<MichaelRaskin> True
<MichaelRaskin> You just need the binary, right?
<bqv> yep
<bqv> common-lisp.sh --eval "(require :asdf)" \
<bqv> --eval "(require :nyxt)" \
<bqv> --eval '(asdf:make :nyxt/gtk-application)' \
<bqv> --quit
<bqv> just need that, somewhere part of the build
<bqv> as i said, the QT one doesn't even work right now, so it's not worth worrying about
<bqv> *Qt
alp has joined #nixos
growpotk- has quit [Ping timeout: 240 seconds]
<bqv> MichaelRaskin: oh, dontStrip = true;, if buildLispPackage doesn't already add it
<bqv> sbcl craps out with stripped bins
<{^_^}> [nixops-aws] @glittershark opened pull request #118 → Allow Route53 recordsets to point at EIPs → https://git.io/JTw67
<MichaelRaskin> I hope it does
<MichaelRaskin> I do not only know SBCL doesn't like stripped binaries, I even have a vague idea why
<{^_^}> [nixpkgs] @zowoq opened pull request #101602 → haskellPackages.trifecta: dontCheck on darwin → https://git.io/JTw6N
<Raito_Bezarius> I heard that there was a way to perform local changes under a NixOps deployed host, is there instructions somewhere?
<neothefox> can someone check if everything is ok here?
dbmikus has joined #nixos
<matthewcroughan_> bqv: I've searched high and low for an explanation deconstructing the default configuration.nix, but I can't find it.
<matthewcroughan_> The very first line of the file. I can't explain it, and I cannot find anyone explaining it.
<bqv> you mean the line that looks something like `{ blah, ... }:`
<matthewcroughan_> yeah
<bqv> that's a lambda
<matthewcroughan_> You'd figure this would be important to explain.
<bqv> > a: 1
<{^_^}> <LAMBDA>
<MichaelRaskin> Functions are indeed explained in the Nix manual
<bqv> that expression is a function that takes the input a, and outputs 1
<MichaelRaskin> (distinct from Nixpkgs and NixOS manuals)
<{^_^}> [nixpkgs] @jonringer merged pull request #101574 → [20.09] nixosTests.ferm: fix network timeout → https://git.io/JTwsR
<bqv> your files are simply very large lambdas
<{^_^}> [nixpkgs] @jonringer pushed commit from @B4dM4n to release-20.09 « nixosTests.ferm: fix network timeout »: https://git.io/JTwiG
<matthewcroughan_> MichaelRaskin: not in the way I'm asking about.
<matthewcroughan_> I cannot read the manual and discover that the first line in configuration.nix is a lambda.
<bqv> > ({ pkgs, ... }: "i am not a package") {}
<{^_^}> anonymous function at (string):345:2 called without required argument 'pkgs', at (string):345:1
<bqv> > ({ pkgs, ... }: "i am not a package") { pkgs = null; }
<{^_^}> "i am not a package"
<matthewcroughan_> Maybe I could. But it needs to be deconstructed, not constructed. Nobody learns like that.
shibboleth has joined #nixos
<bqv> nix documentation is presumptuously lacking, that is known
<matthewcroughan_> Is there no deconstruction of the default nix file anywhere online?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101603 → pdd: 1.4 -> 1.5 → https://git.io/JTwiC
<matthewcroughan_> yes, I am not complaining. I just am asking if something I desire exists :)
werner291 has quit [Remote host closed the connection]
<bqv> it doesn't, but probably should
<matthewcroughan_> bqv: Well, what does it do?
<bqv> to soften the learning curve
<matthewcroughan_> What does the first line in configuration.nix, as generated by nixos-install, do?
naivettes has joined #nixos
<bqv> matthewcroughan_: do you understand what a lambda, or function, is?
<matthewcroughan_> Roughly, so what is it doing?
<matthewcroughan_> { config, pkgs, ... }:
<bqv> that.
orbekk has joined #nixos
<matthewcroughan_> > { config, pkgs, ... }:
<{^_^}> error: syntax error, unexpected ')', at (string):346:1
<naivettes> Hello! Beginner here. I'd like to add support for add-ons to the tome4 game. Add-ons are meant to be downloaded to into a directory within the game, but it's in the nix store. https://github.com/NixOS/nixpkgs/tree/master/pkgs/games/tome4Could anyone recommend a good example of how this might be done?
<bqv> what programming languages are you familiar with?
<MichaelRaskin> It _starts_ defining a function
<matthewcroughan_> Python, Bash.
<Raito_Bezarius> did anyone tried nixops with flakes?
<bqv> let me translate that into python
<Raito_Bezarius> seems like there is a --flake stuff
<MichaelRaskin> This first line is argument list
<bqv> { config, pkgs, ...}: is equivalent to defun unnamed(config, pkgs, **kwargs):
<matthewcroughan_> I'm not so familiar with python that I understand that, to be honest.
<bqv> sorry, s/defun/def
<matthewcroughan_> You still haven't told me what the first line of configuration.nix that everyone starts out with does :P
<bqv> i've been fiddling with a lot of lisp today...
<matthewcroughan_> I get it
<Raito_Bezarius> matthewcroughan_: it just creates a function
<bqv> matthewcroughan_: i get the feeling you're intentionally being belligirent here
<Raito_Bezarius> if the question is more like: what is the purpose?
<Raito_Bezarius> then, the answer is: a configuration.nix abstract over the pkgs and the configuration you give it
<bqv> i'm not going to answer any more questions, ask someone else
<Raito_Bezarius> the reason why you want to have a function is that your configuration depends on a certain set of packages and you could just replace the pkgs by another set which implements what you want
<matthewcroughan_> If I remove it, how am I breaking it?
<matthewcroughan_> What am I removing.
<Raito_Bezarius> if you remove it, the nixos-rebuild will try to call the function
<Raito_Bezarius> but there won't be any function
<Raito_Bezarius> so it will fail
<matthewcroughan_> The function is defined inside of {} ?
<Raito_Bezarius> no
<Raito_Bezarius> more like
<Raito_Bezarius> { x, y, z}: value
<ehmry> well in some cases you can remove that line but then you will have free variables in the file
<Raito_Bezarius> x, y, z are the arguments of the function
<Raito_Bezarius> value is the return value
<matthewcroughan_> So, in my case: `{ config, pkgs, ... }:`
<matthewcroughan_> what is ... btw?
<Raito_Bezarius> it's basically a variadic marker
<Raito_Bezarius> it means : I accept any argument
<Raito_Bezarius> so that if I call you with config, pkgs and foo
<Raito_Bezarius> you won't fail
<matthewcroughan_> So I'm still so incredibly confused what happens and why it's there at the top of the file :D
<multun> matthewcroughan_: are you familliar with lambda functions ?
<matthewcroughan_> no.
<Raito_Bezarius> I think you might be confused with the NixOS model matthewcroughan_
<Raito_Bezarius> But assuming you ignore the first line
<Raito_Bezarius> Do you understand the rest?
<matthewcroughan_> Pretty much yes
<Raito_Bezarius> So, for example
<Raito_Bezarius> You're using a NixOS at a certain version
Darkmatter66 has quit [Ping timeout: 260 seconds]
<Raito_Bezarius> If you do update, you realize that the pkgs variable will have to change, right?
<matthewcroughan_> system.stateVersion = "20.03";
<Raito_Bezarius> That's not the NixOS version
<Raito_Bezarius> That's the state version
<Raito_Bezarius> It's something else
naivettes has quit [Remote host closed the connection]
Darkmatter66 has joined #nixos
<matthewcroughan_> Well that's certainly not intuitive :P
<Raito_Bezarius> The NixOS version is handled outside of the configuration.nix
<Raito_Bezarius> matthewcroughan_: it would be called version otherwise :p
<multun> a lambda function is a function without a name. myfunc = lambda a: 42 does just like def myfunc(a): return 42
<multun> in nix, it would be { a }: 42
<matthewcroughan_> the pkgsvariable has to change?
<matthewcroughan_> where can I read the variable pkgs?
<Raito_Bezarius> If you do an update, then yes
<matthewcroughan_> pkgs is defined inside this file, no?
<Raito_Bezarius> It's a complicated thing for a beginner :p but basically there is something called nix-channel
<multun> matthewcroughan_: nix isn't an intuitive language if you have an imperative language background
<Raito_Bezarius> Do you see pkgs = xxx somewhere?
<Raito_Bezarius> If you don't, then pkgs is not defined there
<matthewcroughan_> No, there is no definition inside my configuration.nix that defines pkgs =
<Raito_Bezarius> So, pkgs is not defined in your configuration.nix
<matthewcroughan_> so why's it there?
<Raito_Bezarius> it's not there
<matthewcroughan_> did I copy and paste something? Probably :D
<Raito_Bezarius> and it won't be there
<matthewcroughan_> `{ config, pkgs, ... }:` exists as the first line of my file
<evanjs> is there any way to run node-packages' generate.sh for only the packages added in my WIP branch?
<evanjs> or single packages, idc
<matthewcroughan_> it is there, maybe not when it is evaluated, but should I get rid of it? Can I get rid of it?
<Raito_Bezarius> You cannot get rid of it
<{^_^}> [nixpkgs] @NeoTheFox opened pull request #101604 → implement fscrypt for PAM → https://git.io/JTwid
<matthewcroughan_> How do I determine whether I can get rid of it?
<evanjs> It's just not fun running it and waiting 15mins for it to fail because of another missing dep, etc
<multun> matthewcroughan_: the content of the file isn't a program, it's a function
growpotk- has joined #nixos
<matthewcroughan_> My configuration.nix contains `{ config, pkgs, ... }:`
<Raito_Bezarius> The rules says that configuration.nix is a function eating config, pkgs and maybe other arguments and outputting a NixOS configuration
jumper149 has quit [Ping timeout: 246 seconds]
<multun> it's a function that takes config and pkgs as an argument
<Raito_Bezarius> So you cannot get rid of it
<matthewcroughan_> we have determined that `pkgs` is not defined in configuration.nix
<Raito_Bezarius> Yes, it's not
<multun> indeed
<matthewcroughan_> `{ config, ... }:`
<matthewcroughan_> why can I not replace it with this?
<Raito_Bezarius> Because you wrote pkgs after :
<Raito_Bezarius> at some point
<multun> you absolutely can
<Raito_Bezarius> for example, environment.systemPackages = with pkgs; [ vim wget ];
<multun> but then you can't access pkgs anymore
<Raito_Bezarius> what said multun
<matthewcroughan_> later in the file
<matthewcroughan_> hardware.opengl.package = (pkgs.mesa.override {
<multun> which you probably wanna do, if you need packages
<matthewcroughan_> environment.systemPackages = with pkgs; [
<Raito_Bezarius> that's it, matthewcroughan_
<Raito_Bezarius> you understand why pkgs must remain in the list of arguments?
<matthewcroughan_> because I'm later defining pkgs.something?
<Raito_Bezarius> you're not defining
<Raito_Bezarius> you're referring
<multun> you're using
<multun> pkgs.a is like pkgs["a"] in python
jumper149 has joined #nixos
<matthewcroughan_> so the point of the first line of the default configuration.nix `{ config, pkgs, ... }:` is to allow me to choose from this list of arguments?
<Raito_Bezarius> matthewcroughan_: I suggest you to do the full tutorial here: https://nixcloud.io/tour/
<Raito_Bezarius> it'll help you
<Raito_Bezarius> well
<Raito_Bezarius> the "allowing you to choose" is a consequence
<matthewcroughan_> so why can't I just have { ... }:
<evanjs> mmmm.... love how generate.sh leaves the node-packages folder in a bad state if it fails to resolve a dep in node-package.json :P
<evanjs> node-packages.json*
<Raito_Bezarius> if you do use { ... }: it will bind no argument in your scope
<evanjs> it deletes node-env.nix so you have to checkout again :P
<Raito_Bezarius> I think you need to check out what means (lexical) scopes in programming languages and what are closures
<multun> matthewcroughan_: if you have { ... }:, nix will have no idea what you're talking about when using the variable "pkgs"
<matthewcroughan_> Wow that nix tour :O
<matthewcroughan_> just like the golang tour
dbmikus has quit [Ping timeout: 240 seconds]
<matthewcroughan_> multun: so where do I go if I want to "search" higher with my eyeballs?
<matthewcroughan_> how do I see what nix sees when it sees pkgs defined in my file { pkgs }
<matthewcroughan_> how do I see what's in pkgs?
<multun> oh yeah right
<matthewcroughan_> how do I see what's in ... or in config?
<multun> well you can use the shell for that
<multun> I mean the repl
<matthewcroughan_> so that's all coming from channels right?
<multun> yup
<matthewcroughan_> "pkgs" and "config" get their contents from channels?
<Raito_Bezarius> matthewcroughan_: nix repl
<Raito_Bezarius> :l <nixpkgs>
<multun> pkgs does, config is something else
<Raito_Bezarius> then you can do pkgs.xxx
<Raito_Bezarius> to see the contents
<matthewcroughan_> so how do I determine the TYPE of what the things I put in { } are?
<Raito_Bezarius> but warning, evaluating the pkgs attrset is not a very good idea
<Raito_Bezarius> there are no types in NixOS matthewcroughan_
<Raito_Bezarius> well
<Raito_Bezarius> there are, but those are dynamic
<matthewcroughan_> things are different from eachother
<Raito_Bezarius> pkgs is an attrset
<Raito_Bezarius> config is an attrset too
<multun> run "nix repl", then type "pkgs = import <nixpkgs> {}"
<matthewcroughan_> ok, how do I know whether I can look inside?
<Raito_Bezarius> if you want to know the full contents of an args
<Raito_Bezarius> { ... }@args: args
<Raito_Bezarius> that will print you everything that gets passed
<Raito_Bezarius> those kind of things can be learnt in the Nix tour and in the docs, also, https://github.com/tazjin/nix-1p is relevant
<matthewcroughan_> multun: empty response
<multun> indeed
<Raito_Bezarius> matthewcroughan_: then do "pkgs"
<matthewcroughan_> { AAAAAASomeThingsFailToEvaluate = «error: Please be informed that this pseudo-package is not the only part of
<matthewcroughan_> lol
<Raito_Bezarius> normal, you cannot evaluate the whole pkgs
<multun> pkgs is a variable with all the packages nix can evaluate
<multun> nix is a lazy language
<Raito_Bezarius> you should try pkgs.vim for example
<Raito_Bezarius> or pkgs.[TAB]
<matthewcroughan_> «derivation /nix/store/i3hrb25fynqpdza5kpci1srag7s2z1qa-vim-8.2.1522.drv»
<multun> here we go
<Raito_Bezarius> now you see
<Raito_Bezarius> https://search.nixos.org/packages the simplest way to checkout what is there in pkgs is in the link
<matthewcroughan_> > pkgs = import <nixpkgs> {}; pkgs
<{^_^}> error: syntax error, unexpected ';', expecting '.' or '=', at (string):208:34
<matthewcroughan_> ah how do you do a newline?
<matthewcroughan_> why wouldn't this work ?
<evanjs> generate.sh like -- "http 200 https://registry.npmjs.org/vue-loader-v16 Cannot resolve version: vue-loader-v16@undefined"
<evanjs> wot
<multun> > let pkgs = import <nixpkgs> {}; in pkgs.vim
<{^_^}> "<derivation /nix/store/hazp415rx6cbqg6gx5fg6jpsjwkjl2n9-vim-8.2.1522.drv>"
<multun> matthewcroughan_: nix is a functionnal language
jabster28 has quit [Ping timeout: 265 seconds]
<multun> there's no such thing as ;
<evanjs> 16.0.0-beta.5 -- I wonder if beta versions and etc are killing it
<multun> your whole program is a single value you evaluate
<Raito_Bezarius> multun: in your file, though yes, but in the repl, no
<multun> yeah right x3
<multun> the repl is kinda special
<Raito_Bezarius> it's more imperative-like
<multun> matthewcroughan_: If you wanna learn more about functional languages, I'd suggest checking out ocaml https://ocaml.org/learn/tutorials/
<matthewcroughan_> Well, I actually don't ;)
<multun> gee
<matthewcroughan_> I just want to learn Nix. Then maybe I'll care.
<matthewcroughan_> nix1p does it for me. Thank you Raito_Bezarius
<multun> you'll have a hard time learning a functionnal language if you don't give a shit
<matthewcroughan_> I do give a shit. Just not about genericism.
<matthewcroughan_> I want to learn this to accomplish something. Setting up my new laptop.
<Raito_Bezarius> Well, when the time comes, you will cross the bridge, hopefully :)
<matthewcroughan_> One does not learn by staring at a page of definitions.
<matthewcroughan_> One learns by doing.
<MichaelRaskin> es one does
<matthewcroughan_> At least I do..
<Raito_Bezarius> Understanding how works fixed point mechanisms will require a bit of lurking into functional languages
<multun> alright
<matthewcroughan_> > purely functional. It has no concept of sequential steps being executed, any dependency between operations is established by depending on data from previous operations.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):345:72
<multun> Raito_Bezarius: that's probably not needed
<matthewcroughan_> So, does this mean that there is no concept of "Do X, store X's out put in memory, then do Y, using some value that X put in memory" ?
<matthewcroughan_> Or have I missed the point?
<Raito_Bezarius> multun: well, when I'm chasing about why is it doing infinite iteration :D…
<multun> matthewcroughan_: that's right, it's why you can have a variable containing all packages. as long as you don't need any, none will be built
<Raito_Bezarius> matthewcroughan_: if you accustomed to mathematics, it means that everything boils down to a giant big compositions of functions
<Raito_Bezarius> with some initial values
<Raito_Bezarius> +are
thelounge8127 has joined #nixos
<multun> matthewcroughan_: every value is defined as a function of some other stuff. this way, you can delay the computation until you need it
<matthewcroughan_> So nix decreases my cpu usage? :Pp
<multun> ahah
<multun> if only
<matthewcroughan_> If everything was functional, would that be the case?
<multun> I don't think so
<Raito_Bezarius> Well, functional improves a lot of things and performance research under functional programs is actually a thing
<multun> you can achieve the same with both functional an imperative languages
<Raito_Bezarius> But it's not a silver bullet
Rusty1 has joined #nixos
<matthewcroughan_> So if we can achieve it with imperative, why not? Imperative seems easier to understand.
<matthewcroughan_> i.e Dockerfile and OCI format
<multun> matthewcroughan_: if you tried to get a dictionnary with all packages you can get inside with an imperative language, you would need a lot more cpu usage
<Raito_Bezarius> matthewcroughan_: functional has saner properties other than performance
<multun> with functions, you can apply changes to your code more easily, compose it
<bqv> MichaelRaskin: https://termbin.com/j6zk
<bqv> it works, at a light test
<matthewcroughan_> More brain = less pain
<matthewcroughan_> I understand
thelounge812 has quit [Ping timeout: 246 seconds]
<multun> for example, many nix packages have different variants available, with different source, patches or build options
thelounge8127 is now known as thelounge812
<matthewcroughan_> Is putting your hardware configuration on github a bad idea?
<multun> matthewcroughan_: it's not, I do that
<Raito_Bezarius> matthewcroughan_: there is a whole repo of nixos hardware conf on internet
<matthewcroughan_> Is that particularly useful for anything Raito_Bezarius?
<MichaelRaskin> bqv: why you load nyxt.asd like that?
<multun> matthewcroughan_: you can share hardware tweaks with other users
<multun> matthewcroughan_: it's just nice, this way people can have a look at the cool shit you did
<bqv> MichaelRaskin: because at that stage, require doesn't seem to work for :nyxt
<bqv> (it's also how the nyxt folk do it in their makefile)
<matthewcroughan_> multun: got a link to that repo?
<matthewcroughan_> powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
<matthewcroughan_> there is no `{ powerManagement }` at the top of the file
<matthewcroughan_> how is `powerManagement` getting resolved?
<multun> heheh
<matthewcroughan_> from `...` ?
<multun> nop !
<bqv> MichaelRaskin: it may even be more sensible to keep it as this, and not have a stray binary in the default lispPackages variant
<multun> it's not a variable being read from
<Raito_Bezarius> matthewcroughan_: it's not a variable
<bqv> this being that overrideAttrs
<multun> matthewcroughan_: in nix, you can make dictionnaries like that: { a = b; c = d; }
la-jesystani has joined #nixos
<MichaelRaskin> Nah, I think having a binary there makes sense
<multun> matthewcroughan_: { a.b = c; } is a shortcut for { a = { b = c; }; }
<MichaelRaskin> Although maybe I can fix the path-patching
<matthewcroughan_> So then config, lib, pkgs or modulesPath. One of those contains `powerManagement.cpuFreqGovernor` ?
<Raito_Bezarius> No
<bqv> feel free
<Raito_Bezarius> It's not a variable matthewcroughan_
<Raito_Bezarius> It's a declaration if you prefer
<la-jesystani> howdy, im trying to convert some of my files to use flakes, and i have one that uses fetchFromGithub to grab vim plugins, that is passed to pkgs.vimUtils.buildVimPlugin, will i need to convert these to be flake inputs?
<matthewcroughan_> I know that powerManagement.cpuFreqGovernor is not a variable.
<matthewcroughan_> But where does it come from?
<matthewcroughan_> What allows me to make the declaration?
<bqv> la-jesystani: no
<multun> matthewcroughan_: powerManagement.cpuFreqGoernor is a value in a configuration dictionnary
<multun> you can add anything you like in that dictionnary
hmpffff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewcroughan_> Well I don't see any dictionaries :D
<multun> you should!
<matthewcroughan_> Oh, the whole line
<matthewcroughan_> powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
<multun> kind of
<multun> this is a value in a dictionnary
<multun> at the top of the file, the dictionnnary starts
<multun> you should see an opening { on its own line
<matthewcroughan_> Right, so everything inside of my {} is a dictionary?
<multun> yes
<matthewcroughan_> The whole file is effectively this though..
<multun> the code inside your configuration is a function that takes external configuration, the package set (pkgs), and returns a dictionnary of configuration
<matthewcroughan_> {config, foo, barr}: {some-more crap: fuck}
<multun> yes !
<multun> that's correct
<matthewcroughan_> I don't get it, still.
shibboleth has quit [Quit: shibboleth]
<{^_^}> [nixpkgs] @andir merged pull request #100456 → treewide: De-inline uses of lib.boolToString → https://git.io/JTmL0
<matthewcroughan_> > : { a.b = c; } is a shortcut for { a = { b = c; }; }
<{^_^}> error: syntax error, unexpected ':', at (string):345:1
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/JTwXq
<matthewcroughan_> You said this. But that is not {stuff}:{thing}
ManiacOfMadness has quit [Ping timeout: 272 seconds]
<multun> there are two type of uses for {}
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101605 → zfs-replicate: 1.1.14 -> 1.2.3 → https://git.io/JTwXs
<multun> the first one is creating dictionnaries, like in python: { a=b;}
justanotheruser has joined #nixos
virus_dave has quit [Quit: virus_dave]
<multun> the other one is making functions: { a }: a + 1
<{^_^}> [nixpkgs] @aanderse merged pull request #100063 → nixos/powerdns: use upstream systemd unit → https://git.io/JTwXc
<{^_^}> [nixpkgs] @aanderse pushed 5 commits to master: https://git.io/JTwXC
whald has quit [Remote host closed the connection]
<multun> > ({a}: a + 1) { a=41; }
<{^_^}> 42
<matthewcroughan_> Neither of those are {}:{}
<multun> indeed
<multun> this is both
<multun> this is a function returning a dictionnary
<matthewcroughan_> what is the function?
<matthewcroughan_> left or right?
<multun> left is the arguments of the function
<multun> right is the dictionnary
<matthewcroughan_> so where is the function?
<multun> hm, the function encompasses both I guess
<matthewcroughan_> {}:{}
<samueldr> the function is on the left
<matthewcroughan_> {{}}:{}
<matthewcroughan_> these are two different things?
<samueldr> the function call is the "whitespace" between them
<multun> the second one isn't valid
<samueldr> > (x: x) 1
<{^_^}> [nixpkgs] @aanderse merged pull request #101032 → libcec: 4.0.5 -> 4.0.7 → https://git.io/JTlFP
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JTwX0
<{^_^}> 1
<matthewcroughan_> See this stuff is getting too complex, can you tell me this in a nix context with no numbers?
<matthewcroughan_> It's too abstract, I need to see what it does to packages
<matthewcroughan_> powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
<matthewcroughan_> how is this line able to come to be?
<samueldr> ah, that's uh... a long story :)
<matthewcroughan_> -_-
<matthewcroughan_> so nobody knows
<matthewcroughan_> it's special
<multun> we know
<samueldr> nah, just saying that it will take some time to describe
<multun> unfortunately, some things are complicated
dbmikus has joined #nixos
<samueldr> it's not part of Nix itself, but a system built _using_ Nix that was made for NixOS
<samueldr> it's the NixOS Modules system
<{^_^}> [nixpkgs] @utsl42 opened pull request #101606 → Fix hardening default for pkgsMusl to reenable -pie → https://git.io/JTwXa
<samueldr> the relevant documentation is here: https://nixos.org/manual/nixos/stable/index.html#sec-writing-modules
<samueldr> but it might be a bit thick to read through
<matthewcroughan_> omg
<matthewcroughan_> so it comes from modulesPath ?
andymandias_ has joined #nixos
<samueldr> not really
<bqv> oh frabjous day, i'm running a nyxt package that i didn't have to break the sandbox to build!
<multun> this system looks for powermanagement.cpublabla in the configuration dictionnary you write, and build you os using what you asked for
<matthewcroughan_> multun: my eyes can't find where it IS in that dictionary
<samueldr> it will have evaluated all existing options in (possibly) multiple locations first
<matthewcroughan_> if my eyes were nix, I'd be like "can't find it"
la-jesystani has quit [Quit: Lost terminal]
andymandias has quit [Ping timeout: 260 seconds]
<matthewcroughan_> samueldr: It's only allowed to search 5 locations
<matthewcroughan_> { config, lib, pkgs, modulesPath, ... }:
<samueldr> matthewcroughan_: there's one trick you haven't considered
<samueldr> you are not manipulating a set of values
<multun> matthewcroughan_: http://paste.awesom.eu/hmBK&ln
<samueldr> you are making a set of desired configurations that will be merged as a whole
<Raito_Bezarius> does anyone know the rationale for nixops to not have a --flake parameter for create and only for modify?
<multun> matthewcroughan_: this is some python 3 code, which is translated from { lib, pkgs }: { powermanagement.cpufreqblabla = "powersave"; } in nix
<samueldr> the configuration file's expression is used by the modules system and merged and evaluated all at once
<matthewcroughan_> well what's lib.mkDefault ?
<matthewcroughan_> Can you not just help me transcribe this one line/word at a time? :D
dbmikus has quit [Ping timeout: 272 seconds]
<multun> well, no :)
<MichaelRaskin> It's pointless out of context
<matthewcroughan_> Well I'm sorry then.
<multun> it's not something that can be done
<multun> you wouldn't get anything
<MichaelRaskin> You need to learn the pages of definitions to be able to understand what is going on
<matthewcroughan_> I have failed, so far, to understand even one thing you've explained to me.
jabster28 has joined #nixos
<matthewcroughan_> I am going to try the tour
<samueldr> mkDefault and friends are methods to resolve conflicts when options are _defined_ multiple times https://github.com/NixOS/nixpkgs/blob/a5061c6f87901b39a52bea67a65cb51fab0db9ad/lib/modules.nix#L652-L660
<multun> matthewcroughan_: nix is a programming language like others, but it's used to build operating systems. learning nix isn't that hard, but learning both nix and how it's used to build you os is harder
<{^_^}> [nixpkgs] @WolfangAukang opened pull request #101607 → signumone-ks: init at 3.1.2 → https://git.io/JTwXA
<multun> matthewcroughan_: it would be a bit like learning python reading django code, there's a lot abstracted away
<multun> matthewcroughan_: just like django created abstractions for models using python, nixos's module system creates abstraction over configuration using nix
<multun> matthewcroughan_: that's why you're having a hard time understanding this stuff, you're reading framework code
<matthewcroughan_> If I am writing a configuration.nix file, I need to understand every line in it.
<matthewcroughan_> Otherwise, I'm just copying other people's configs and I might as well use an imperative distribution.
<matthewcroughan_> I need to have a reasonable, non academic understanding of this.
<matthewcroughan_> You have thus far academacised it with numbers and irrelevant abstraction.
<matthewcroughan_> I do not want to learn the language academically. I want to learn it practically.
fendor_ has quit [Remote host closed the connection]
<matthewcroughan_> I'm going through the tour and leaving you alone now, but I want you to be aware that this is why kids fail math :)
alp has quit [Ping timeout: 272 seconds]
<Raito_Bezarius> kids do not fail math because they start with type theory I believe
<Raito_Bezarius> there a lot of resources out there, we provided you with pointers and explained you in different ways stuff
<multun> you can't both want to understand everything before starting, and want to learn it practicaly
<Raito_Bezarius> nix has some kind of requirements, it's not your super beginner OS, especially if you want to know everything on the first time without knowing a bit on functional language
<multun> you'll have to pick a side
Neo-- has joined #nixos
<bqv> matthewcroughan_: i understand your drive to understand the details, but just as with learning the grammatical system of a natural language, most of these things are utterly meaningless without context, which is why structured learning is required
andymandias has joined #nixos
andymandias_ has quit [Ping timeout: 272 seconds]
<matthewcroughan_> Kids fail math because they don't feel a drive to learn, because they feel it's useless.
<matthewcroughan_> If you told a kid "You can use trigonometry.. TO 3d print an amazing thing that lets you do something"
<matthewcroughan_> yeah, maybe they'd listen.
<matthewcroughan_> Similarly, if you gave me examples that included packages instead of numbers, I'd understand.
<multun> matthewcroughan_: nixos isn't yet in a state where it's easily understandable. kids better stay away for now
<bqv> then i would counter with the fact that knowing the exact meaning of `{ config, pkgs, ... }:` will be absolutely useless to you with regards to doing anything to your system configuration
<matthewcroughan_> I don't know what 42 represents.
<bqv> it's not practical knowledge, it's a context-sensitive detail
<matthewcroughan_> I know what dwarf-fortress-packages.dwarf-fortress-full.override represents
<matthewcroughan_> you're trying to tell me 42 instead of dwarf-fortress-packages.dwarf-fortress-full.override
<{^_^}> [nixpkgs] @zowoq opened pull request #101608 → qemu: use shared libslirp → https://git.io/JTw1B
<matthewcroughan_> therefore it's not making sense, at any stage
<matthewcroughan_> it's too arbitrary
<samueldr> I'll say that I missed the start of the discussion, but when I got involved, it looked like you wanted to know _how_ things worked, and not how to achieve a specific result
<samueldr> so that coloured my explanations
<multun> you asked for the internals, you got it
<matthewcroughan_> I wanted to know, more or less, when/why you would add or change something in your configuration.nix's opening lambda.
<MichaelRaskin> Well, a person who wants to know what every line does, _and_ only understands «what does» in imperative terms
<matthewcroughan_> I didn't want the internals. I just wanted to know why it was there.
<matthewcroughan_> Rather than blindly assume I never need to modify it
<MichaelRaskin> But why _is_ internals
<samueldr> right, the arguments from the set-pattern functions can all be removed until needed; most likely `lib` and `pkgs` are the ones you'll need at first
<MichaelRaskin> The header is like that so that it matches the expectations of what calls it
<matthewcroughan_> You know. When I understand this a bit more clearly, I'm sure I won't be explaining it like this :P
<samueldr> `config` is needed when you want to start affecting results in an expression depending on other configurations
<samueldr> the `...` I don't think is needed to be explained; but yeah, removing it will break the eval :)
<multun> matthewcroughan_: have you even taught in a class ? you'd be surprised to see how hard that is
<matthewcroughan_> I've taught kids how to use the command line in a matter of hours.
<matthewcroughan_> Because they found it fun to send files to eachother's IP addresses using scp.
<multun> indeed
<multun> I've taught kids how to make games in python in a week
<matthewcroughan_> What isn't fun is being told 42 represents a package, keep it in mind and follow along with my impossible to follow along with explanation on functional languages.
<matthewcroughan_> or 42 represents something arbitrary that you're not sure of, because the explainer is not putting packages or anything practical in place of numbers in their explanation.
<bqv> matthewcroughan_: it might help you more to play around in the nix repl for a bit
<bqv> that way you'll get a feel for the language, and can explore nixpkgs a bit, interactively
<matthewcroughan_> To whoever sent me this: http://paste.awesom.eu/hmBK&ln
<matthewcroughan_> I get it. I get it. It's defined behavior.
<matthewcroughan_> I just don't know where it's defined.
Neo-- has quit [Ping timeout: 264 seconds]
<multun> inside a super huge framework: the nixos module system
<MichaelRaskin> A lot of kids find purely abstract board games also fun
<samueldr> depends, you could get by for a while without understanding nix
<samueldr> but that would be true when taking things at face value and not questioning any of the patterns observed in the wild
<MichaelRaskin> Which allows them (and past us) to learn functional programming just fine
<bqv> it's fair to want to understand it up front, it's just very much not easy
<multun> matthewcroughan_: this behavior is really defined in the manual, you can look up the configuration values in https://search.nixos.org/options
<matthewcroughan_> > This line makes the current Nix expression a function. The variable pkgs contains Nixpkgs, while config contains the full system configuration. This line can be omitted if there is no reference to pkgs and config inside the module.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):345:90
<MichaelRaskin> Not even always hard, but has some amount of playing abstract board games first
<bqv> matthewcroughan_: when you're getting familiar with a large new codebase, how do you normally do it?
<matthewcroughan_> Earlier, you were telling me this is not a variable.
<matthewcroughan_> Yet the manual states explicitly that this is a variable.
<matthewcroughan_> My intuition told me this was a variable.
<matthewcroughan_> I kept asking about it as if it was a variable. The manual agrees. You disagree?
<bqv> variable is the incorrect term
<bqv> because it literally doesn't vary
<matthewcroughan_> > The variable pkgs contains Nixpkgs
<{^_^}> undefined variable 'The' at (string):345:1
<bqv> this is a functional programming language, there can't be variables
<matthewcroughan_> Who wrote this then?
<matthewcroughan_> Can we ring them up?
<bqv> probably :D
<bqv> but pedantry aside, you get what they were going for
<matthewcroughan_> I even used the term "contains"
<matthewcroughan_> someone said it doesn't contain anything.
growpotk- has quit [Ping timeout: 258 seconds]
<matthewcroughan_> I don't know what to believe :D
<bqv> the more accurate sentence would be "the value `pkgs` is ..."
<matthewcroughan_> is what?
<matthewcroughan_> > This line makes the current Nix expression a function. The variable pkgs contains Nixpkgs, while config contains the full system configuration. This line can be omitted if there is no reference to pkgs and config inside the module.
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):345:90
<multun> variable help people familiar with imperative languages feel at home though
<matthewcroughan_> Correct this whole paragraph please :D
pr06lefs has quit [Ping timeout: 260 seconds]
<matthewcroughan_> If it's not a variable, what is it instead?
<matthewcroughan_> A function?
<bqv> the value `pkgs` contains nixpkgs, while `config` is a reference to the full system configuration
<matthewcroughan_> An argument to a function? It's on the left, so it must be an argument, right?
<matthewcroughan_> Based on what you said earlier, pkgs is an argument
iceypoi has joined #nixos
<matthewcroughan_> "the argument pkgs is ..."samueldr
<MichaelRaskin> bqv: yay, unwrapped nyxt runs
<bqv> pkgs is indeed a value, and that's all it is
<multun> pkgs is an argument to a function, to it's also a value
<matthewcroughan_> samueldr: sorry! Accident
<samueldr> yeah, I'm no pkgs argument :)
<bqv> MichaelRaskin: oh? how did that work
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
<MichaelRaskin> We-ell
<matthewcroughan_> multun: to WHAT function?
<MichaelRaskin> Included a bit of fixing cl-wrapper
<matthewcroughan_> It's amazing that there is not even one mention of "function" in the whole damned modules section
<matthewcroughan_> wtf
lunik17 has joined #nixos
<matthewcroughan_> who do I believe!
<MichaelRaskin> By this section, just seeing {}: tells you it is a function
<multun> matthewcroughan_: the whole file contains a function :) it has no name, it's a lambda function, an anonymous function. the first line defines the arguments, and the rest is the return value
<bqv> matthewcroughan_: is there mention of "lambda"? because that would be interchangeable
<multun> matthewcroughan_: it's a manual about nixos, not about the nix language
<matthewcroughan_> Only one mention, in a completely different section bqv
<matthewcroughan_> in "syntax summary" 5.3
<bqv> better than nothing...
<matthewcroughan_> 5.4*
lunik1 has quit [Ping timeout: 240 seconds]
lunik17 is now known as lunik1
icey_ has quit [Ping timeout: 256 seconds]
Gh0ul has joined #nixos
<Raito_Bezarius> anyone knows how to define a devShell and nixosConfigurations in a flake?
<Raito_Bezarius> I'm trying many things but each time the devShell.buildInputs gets never loaded
<multun> matthewcroughan_: have you ever learnt any python framework?
<Raito_Bezarius> 'nix flake show' shows me the devShell and the nixosConfiguration but I don't understand why deps are not loaded
<matthewcroughan_> No, I regret saying I'm familiar with Python because I'm really not in the way that you think I am.
<matthewcroughan_> I'm a noob.
<matthewcroughan_> Just assume all I know is shell.
<bqv> Raito_Bezarius: take a look at the nix wiki article on flakes
<multun> hm
<Raito_Bezarius> bqv: I did
<Raito_Bezarius> the output schema didn't help me that much
<Raito_Bezarius> let me paste the stuff
<bqv> should have said how both of those don't take any top-level attrs except systems
<neothefox> I have a simple question - what is the best way to add an arbitrary file that can be embedded into the .nix script itself to a filesystem during build? I have to check a variable in config.nix and then either create it or not
<Raito_Bezarius> https://clbin.com/5s4jY bqv
<Raito_Bezarius> I'm using eachSystem for the devShell
<bqv> oh, sorry, not nixosConfigurations. devShell however, needs systems as toplevel attrs
<bqv> ah, ok
<Raito_Bezarius> and I'm using explicit system for nixop(s)Configurations
<{^_^}> [nixpkgs] @7c6f434c opened pull request #101609 → lispPackages.nyxt: build a binary → https://git.io/JTwMG
<matthewcroughan_> bqv: multun: Raito_Bezarius: "The variable pkgs contains Nixpkgs"
<matthewcroughan_> This is the absolute truth.
<MichaelRaskin> bqv: so I guess now it is just about wrapping
<matthewcroughan_> You had me try this in the repl earlier. It's true.
<matthewcroughan_> What's wrong about this statement?
<multun> it's pretty much truc
<multun> true
<bqv> matthewcroughan_: pkgs can never change during execution
<bqv> it doesn't vary
<bqv> therefore it isn't really a variable
<matthewcroughan_> pkgs = import <nixpkgs {}>
<bqv> but that is a pedantic comment
<Raito_Bezarius> whatever floats your boat matthewcroughan_
<matthewcroughan_> so.. what tells my nix file that pkgs = import <nixpkgs>
<matthewcroughan_> In the repl, I define that.
<matthewcroughan_> In my nix file, I don't. So what tells it that?
<Raito_Bezarius> with this kind of shallow remarks, you'll encounter a lot of discrepancies in the future on Nix
<bqv> when you run nixos-rebuild, nix starts with nixpkgs, not your config
<bqv> your config is an argument to a nixpkgs function
<matthewcroughan_> where can I read the nixpkgs function?
<bqv> hmm
<bqv> it might interest you to look at a flakes config, actually, where that bit is more exposed
dbmikus has joined #nixos
<bqv> look at the link Raito_Bezarius posted earlier
<bqv> at the bottom, he calls nixpkgs.lib.nixopsSystem
<matthewcroughan_> https://clbin.com/5s4jY ?
<bqv> yes
<bqv> the `modules` argument there is basically a list of configs
<matthewcroughan_> I see that line.
<bqv> `{ lib, config, pkgs, ... }:` should look familiar
<bqv> this is exactly what nixos-rebuild would do, but with flakes it's more exposed for <reasons>
<{^_^}> [nixpkgs] @r-ryantm opened pull request #101610 → urh: 2.8.8 -> 2.8.9 → https://git.io/JTwMR
<matthewcroughan_> When raito was writing this, why was it decided that lib, config or pkgs would be present or not?
<matthewcroughan_> why not remove that line entirely
<matthewcroughan_> why not just have ...
<matthewcroughan_> is there a list of what lib, config and pkgs do?
<bqv> MichaelRaskin: i have no idea how any of this stuff you've done works :p but if it goes, it goes
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<MichaelRaskin> I mean, you will still need to update your wrapper for stuff to work properly
<MichaelRaskin> Like sounds etc
<MichaelRaskin> But LD_LIBRARY_PATH should be fixed now
<bqv> yeah
<MichaelRaskin> And also you can just take ${lispPackages.nyxt}/bin/nyxt
<bqv> matthewcroughan_: so, that lambda constructed, takes an attrset as an argument
<bqv> that attrset is kinda the "nixpkgs default attrset" so to speak
<bqv> which contains lib, pkgs, config, and some other things
<bqv> you can choose which ones you need
<bqv> the rest will be inside the "..."
<{^_^}> [nixpkgs] @stigtsp opened pull request #101611 → firefox-bin: 81.0.2 -> 82.0 → https://git.io/JTwMo
dbmikus has quit [Ping timeout: 258 seconds]
<bqv> if you don't need them, don't specify them. it's just syntax sugar
<matthewcroughan_> {}: is the lambda? lib/config/pkgs are the attrset?
<bqv> `{}: <expression>` is the lambda, `{ lib, config, pkgs, ...}` is the attrset
<matthewcroughan_> No you're misunderstanding me. I have no idea what lib, config or pkgs do.
<matthewcroughan_> I've tried, but everyone has told me it's too complex to bother learning.
<matthewcroughan_> Whilst they've attempted to teach me.
<bqv> they're also values. you can experiment with them in the repl, they hold standard things
<bqv> > lib
<{^_^}> { __unfix__ = <LAMBDA>; add = <CODE>; addContextFrom = <CODE>; addErrorContext = <CODE>; addErrorContextToAttrs = <CODE>; addMetaAttrs = <CODE>; all = <CODE>; and = <CODE>; any = <CODE>; appendToName ...
<bqv> > pkgs
<{^_^}> { AAAAAASomeThingsFailToEvaluate = <CODE>; AMB-plugins = <CODE>; ArchiSteamFarm = <CODE>; AusweisApp2 = <CODE>; CoinMP = <CODE>; DisnixWebService = <CODE>; EBTKS = <CODE>; EmptyEpsilon = <CODE>; FIL-p...
<matthewcroughan_> O m g
<matthewcroughan_> > The variable pkgs contains Nixpkgs
<{^_^}> undefined variable 'The' at (string):345:1
<matthewcroughan_> What is wrong with the nixos manual's definition then?
<bqv> config is difficult, because this repl won't have one
<bqv> i mean, aside from the variable/value distinction, it's right?
<matthewcroughan_> So. With NixOS, there is no such thing as "getting to the bottom of it" in Nix?
<matthewcroughan_> There are defaults set up all over the place that you will never be able to find on github/source
<matthewcroughan_> such as the default for pkgs set up by nixos-rebuild ?
<bqv> just gonna go with "yes" for that one, tbh
<matthewcroughan_> And it is a variable.
<matthewcroughan_> It **IS** a variable.
<matthewcroughan_> I don't care what any of you over-academicisers tell me it is. It's a god-damned variable.
<multun> it is
<matthewcroughan_> The manual calls it one. Nixos-rebuild sure defined it as one by default for me.
<matthewcroughan_> Yet for the past hour, y'all have been trying to teach me it's not a variable.
<multun> I didn't
<multun> bqv said it's technicaly not, but that it's just being pedantic (which implies it's kind of a variable)
<bqv> MichaelRaskin: that's a whole lotta rebuilds...
<matthewcroughan_> Okay, so the manual also says > while config contains the full system configuration
<matthewcroughan_> bqv: the system config really *IS* variable.
fendse has quit [Ping timeout: 240 seconds]
<matthewcroughan_> So what's functional about that? Nothing.
<multun> :DD
<MichaelRaskin> bqv: Common Lisp rebuilds are surprisingly cheap
<bqv> fair enough
<multun> laughting hard
<bqv> matthewcroughan_: your config can't change during evaluation, so what's the part that varies?
<MichaelRaskin> And I had to fix some asdf:make uses
<MichaelRaskin> Because ASDF previously said it is the same as load-system and recommended way of loading stuff… then policy changed
<matthewcroughan_> bqv: can we call it a constant?
<bqv> legitimately, yes
<matthewcroughan_> a constant.. set by nixos-rebuild
<matthewcroughan_> or whatever binary is interpreting your .nix files?
<bqv> but in a functional language everything is a constant so that's kinda pointless
<matthewcroughan_> Can we call these things magic words?
<matthewcroughan_> magic constants.
<matthewcroughan_> magic numbers :D
<bqv> call them whatever you like to help yourself understand them, but i'll be sticking with "value" for my own sanity
<matthewcroughan_> { config, pkgs, aslkdjwer ... }:
<matthewcroughan_> How do I define aslkdjwer ?
<matthewcroughan_> What will nixos-rebuild do when it encounters aslkdjwer?
<bqv> in the context of a configuration.nix, you may not.
<MichaelRaskin> Say it is not passed to your function and error out
<bqv> the function that is called with those arguments, is not in your control, it's part of nixpkgs
<bqv> so you can't arbitrarily add a new one
<bqv> because nixpkgs won't give it to you
<matthewcroughan_> is this what flakes fix?
<bqv> flakes ...are a can of worms i'd like to avoid right now :D
<matthewcroughan_> are flakes flakey?
<bqv> exceedingly
* colemickens squints
<matthewcroughan_> Listen. I'm 22, but Nix makes me feel like this: https://www.youtube.com/watch?v=LV0wTtiJygY
<{^_^}> [nixpkgs] @7c6f434c merged pull request #101609 → lispPackages.nyxt: build a binary → https://git.io/JTwMG
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JTwDO
<MichaelRaskin> bqv: I guess now you can pare down your wrapper and declare it top-level nyxt the application package
<bqv> in progress
thelounge812 has quit [Ping timeout: 265 seconds]
lazylambda has joined #nixos
<lazylambda> Hello functional friends, I'm trying to build the src of openid-client and before was trying to use it as a dependency. But it fails on 2/18 test cases then stops building the derivation. However when I install with "cabal build" none of these test cases fail.
<lazylambda> Does anyone know why that might be? I haven't modified anything from the project including its' .nix files
<bqv> hot take: you can always disable the tests and avoid that entirely
<lazylambda> True, just wondering if there's checks in nix to see if a repository passes it's test cases
<lazylambda> Or what would cause the difference leading to the failures, when using nix
<bqv> it's entirely possible that the tests failing has 0 bearing on runtime behaviour
<bqv> depends on how it was packaged
pr06lefs has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
pr06lefs has quit [Client Quit]