2020-04-11

<thibm> The unpack phase should be something like "dpkg -x $src ./"
<pie_[bnc]> or writing a patch that tells the user there are unupdated channels or something because they belong to another user
<pie_[bnc]> nixos manual or something
<energizer> it's doing something
<energizer> am i missing a channel or update or something?
<pie_[bnc]> ok i think i just ran across the thing ignoring some phases or something
<pie_[bnc]> error: attempt to call something which is not a function but a set, at /nix/store/f4ayff5y71cv9vd5jbw9d0bapa2574hs-nixpkgs-channels-9b0d2f3/pkgs/stdenv/generic/make-derivation.nix:318:55
<jtojnar> freeman42x looks llike they are pinning something https://github.com/fairy-tale-agi-solutions/haskell-editor-setup/blob/master/default.nix
<zeta_0> clever: i found something similar to my issue, but i'm not able to change it without a syntax error being thrown: https://nix-dev.science.uu.narkive.com/V2IFp1vA/attempt-to-call-something-which-is-not-a-function-but-a-set
<vika_nezrimaya> it looks like with nixFlakes, nix build flake#something --store $mountPoint requires nixFlakes first to be copied onto the target Nix store...

2020-04-10

<zeta_0> clever: the online example i found looks like it's for something else: https://stackoverflow.com/questions/27728838/using-hoogle-in-a-haskell-development-environment-on-nix
<energizer> i'm following these instructions https://nixos.org/nixos/manual/index.html#sec-installation-partitioning-UEFI and `parted /dev/sda -- mkpart primary linux-swap -8GiB 100%` leaves me with a swap partition that's 512B (yes, B). did i do something wrong?
<simpson> I don't know enough, but IMO I would consider choosing something like GNU Parallel for this, rather than Nix, if you have a really flat dependency graph and you want to have fine-grained control over a massively-parallel "build" not-really-a-build process.
<thibm> (To give more context, each derivation try to do something at X frequency. The main derivation gathers result and extracts the best one. So it's fine to keep 50% of dependency)
<pie_[bnc]> ixxie: also i think nixpkgs-ustable is newer, but this is dangerous to use for system stuff because i think it doesnt go through CI or something
<pie_[bnc]> zeta_0: also considering that its the nix-shell command, its probably an argument that nix shell takes. if you check the source you might see something like -A, which would make sense for consuming an attribute
<pie_[bnc]> zeta_0: looks for examples, check the source code, attr sounds like attribute so its probably just something like nixpkgs.hello or whatever
<pie_[bnc]> vika_nezrimaya: psiperator[m]: idk but nixos does some stuff with the XDG variables, so something might be happening through that
<psiperator[m]> <vika_nezrimaya "psiperator: home-manager does th"> Thanks, ive put off using home manager so i guess this is an excuse to check it out. I assume theres no easier way where i just declare a pathsToLink or something?
<glittershark> again, this feels like something that needs recursive nix
<pie_[bnc]> glittershark: that sounds like something that might exist already
<pie_[bnc]> youd need (?) the sqlite database to be synced up and you could maybe just mount the dataset in or something
<glittershark> I wonder if it'd be feasible to build something into nix to read something out of a remote store without directly substituting it
<pie_[bnc]> maybe you can do something where its just a pointer
<pie_[bnc]> 500TB? do you work for google or something
<pie_[bnc]> wish we had something to deal with this <clever> for example, you may find yourself unable to nixos-rebuild a simple 1 line config change, because virtualbox needs 2 hours to compile
<evanjs> Would still be nice to get some hydra channels or something set up for getting kernel drivers and etc to install in less time
<clever> peelz: it should generate a file something like `{ runCommand, fetchzip, fetchgit ....}: let sources = ...`
<clever> peelz: so i had to edit something, re-download 30gig, and re-fail, 10+ times in a row
<clever> Guest1: press and hold control, then press and hold left/middle/right, release to activate something
<nschoe> Hey, what´s the trend as a terminal these days? I´ve been using urxvt for years. Haven bothered to check if something else has taken the heat?
<peelz> clever: you were saying earlier something about gclient about downloading its own dependencies? should I try to run `gclient` and let it set itself up during the installPhase or something?
<clever> peelz: but, when the product is 30gig in size, it becomes a pain to re-download when one piece changes, so you want to do something more like yarn2nix, where it uses pkgs.fetchurl to fetch each piece, and puts it all together
<clever> nschoe: something about you could use the wrong compile flags, and give firefox a bad name
<Yaniel> sounds more like total drive failure than something of windows' doing
<Guest1> Hello; something very strange has happened with my nixos install a few minutes ago and I'm wondering what the problem is. A few minutes ago, whenever I open a shell, I get the following output:
<alj[m]> Hello friends, I spent the last 8 hours figuring out distributed builds, and now I see nixbld1 doing stuff on my server, but only that one user. I expected it to start more builders and use more cpu as I am far from maxed out even tho I specified my maxJobs. Does anyone have a clue how I can make my build use start more builders? (I already tried to send this but apparently i wasnt registered then or something)
<nschoe> I´ve run ps aux | grep xfce but its empty. **But** I have the XFCE wallpaper image, so.. something set it
<clever> yeah, you could mkFore the extraPackages, and undo something that was being added to systemPackages
<thibm> I may have done something wrong. I'm trying to use a package from the tarball
<srk> something like a week to get to Xorg
<evertedsphere> for something less ambitious i'd love just a way to rebuild/deploy that autorollbacks on health check failure
<evertedsphere> i would love to do something like a "build it in a vm, run some health checks on it, and if it passes we switch to it"
<evertedsphere> gchristensen: since you're around, something i always wanted to ask you: are there any plans to support nix on BSDs or any weird experimental microkernels (genode etc), and has anyone ever proposed making some sort of super-containerised/secure Qubes-like OS on top of nix/nixos
<bqv> originally i was using a modified version of nrdxp's script (which used switch-to-configuration directly) but i switched to something based on nixos-rebuild
<bqv> either way you end up with *something* in the nix store, is my point
<vika_nezrimaya> One possibility is to provide a function that expects a set of secrets and then injects them into the network definition, returning a complete network armed with secrets. But can Nix accept something like `nix build vika-flake#nixopsConfigurations.home --arg secrets "import ./secrets.nix"? Will I need --impure for that or not?
<vika_nezrimaya> good morning #NixOS :3 Exploring a little bit more of what flakes offer; a bit puzzled around secrets handling. E.g. a flake providing a NixOps network; I want to make it public except for secrets (e.g. an access token or a password managed as a NixOps secret). Flakes are completely self-contained and disallow using something like an import of an arbitrary path outside the flake, so how can I inject secrets into a flake without
<thibm> asbachb: is there something else on the partition when the store resides?
<nschoe> sshow, you can edit the bootloader line and use something like `init=/bin/sh` which allows you to boot as root
<jtojnar> schmittlauch you can branch of from either staging or something that is already in staging (e.g. common parent of staging and master), otherwie you will be pushing unmerged commits from master to staging
<pjt_014> prolly wanna do something with nix-shell to use libraries while developing

2020-04-09

<freeman42xx> I would like something with a GUI
<ekleog> dunno, just know that the won is like 0.001€, maybe there's something the opposite
<cole-h> I'm looking through the nixpkgs repo to see if that's something people do
<immae> gchristensen: Is it something that would have its place in the wiki if I find a good way to do it?
<cole-h> Are you trying to configure something that expects a list and setting it to `[]` gives an error?
<clever> zeta_0: you could modify line 22 to do the `env { something}` for you
<zeta_0> clever: i need that piece of code to keep the terminal path shortened, can i just rename the `env` variable to something else on line 22 to fix the error?
<zeta_0> the default.nix is throwing another error: error: attempt to call something which is not a function but a set , https://dpaste.org/xYx7
<zeta_0> clever: it's throwing an error, i'm guessing something is wrong with the syntax? https://dpaste.org/z8nZ https://dpaste.org/ywX3
<mdash> anyone know if there's something like `runInLinuxVM` for nix on macos?
<mdash> energizer: and upload something else instead
<numkem> clever: that does sounds like magic. I guess I'll use that in the future. I recall seeing something about it in the default configuration.nix so maybe it's aready working
<vika_nezrimaya> when I was starting to commit into NixOS I thought something like "you're not serious on your NixOS development unless you dogfood your own changes"
<infinisil> Does NixOS have something nice and simple to limit network bandwidth?
<DamienCassou> I read on nixos-rebuild man page something about flakes. But I can't find it in any manual
<simpson> srk: It's a nice solution to the question of where to put something so that everybody can read it, most people can't write it, and NixOS won't manage it.
<lordcirth> srk++ been looking for something like that. Can that work for nixops?
<chloekek> Alright, maybe I will try something different then.
<vika_nezrimaya> Won't you need something like crossSystem.stdenv?
<bdju> immae: is there somewhere I can view the progress or something?
<bdju> how often do merges to master hit nixos unstable? I see something was fixed 3 days ago but doesn't look like it's hit my machine yet
<exfalso> Hi, I'd like to wrap builtins.fetchGit invocation with a sha256-checking derivation, is there something existing for this?
<srk> if you want types for function arguments that's a bit harder but you could do something like
<jjwatt[m]> and, if by any chance you decide to try to flash with something besides their bin flasher (or flash qmk :)), qmk usually uses dfu-programmer, avrdude or teensy-loader: all of which are in nixpkgs! And, I'm betting one of those can flash your ergodox, considering it's likely very similar hardware and/or the exact same microproc as my ergodoxes (ergodoxen? ;))
<simpson> cole-h: Oh, don't worry, it'll get more fun if your goal is to actually do something like invoke gdb. In that case you'll need to locate the debug info. I think that it's in the manual.

2020-04-08

<terlar`> Is there a way to do something similar to nix-instantiate but from with Nix? I want to get the derivation path with two potentially different sources to compare if they produce the same thing, it would be neat if there was a function to calculate the hash of a derivation without building it
<bqv[m]> overlays are something you'd use WITH flakes
<vika_nezrimaya> ohhhhh it locks nixpkgs in flake.lock :c will I be able to override it with something like inputs.home-manager.inputs.nixpkgs = <...>?
<zeta_0> hey guys, i would like to contribute to nixpkgs haskell infrastructure, but i'm not sure where to start, could you send me a link or something that shows where to get started?
<Brandon__> Is there a way to access default phases? I'd like to do something like `phases = remove "unpackPhase" phases;`, but the phases on the RHS isn't defined
<gchristensen> vika_nezrimaya: I get the impression you're worried abou tthinsg without having a clear ideaabout why you're worried about them, and so we're inventing more and more complicated solutions for something we haven't fleshed out
<ZaraChimera> Following the curl -L command to install nixpkgs it has me run a . /home/user/.nix-profile etc command. I am running zsh as the default shell, and I appear to be missing something. I found a search result that mentioned sourcing the profile to .zshenv, but didn't mention the specific command for that.
<vika_nezrimaya> gchristensen: Last time I installed NixOS on something was... this winter! I got an RPi 4 and proudly flashed NixOS onto the SD card
<srk> something like that should be doable easily with NixOSes rollbacks as well
<vika_nezrimaya> NixOS geekiness is when the first place you go to learn how to configure something isn't Nixpkgs/NixOS documentation, it's the Nixpkgs repository itself
<Amit[m]> Oh i see that, thank you. Odd, I must have done something incorrect locally
<evelyn> I am a bit confused - I've customised a package, and I can do something like `nix-build -I ./pkgs -A nixpkgs.$pkg`, but I can't work out how to install the result into my nix-profile in ~/.nix-profile. I get the output in ./result, but I can't see an obvious option in `nix-build`
<evertedsphere> can i somehow run the code on a vm or something?
<bqv[m]> dsx: something like that, yeah, but i've been fiddling with similar for hours and getting nowhere...
<srhb> adrielus: Which may be what niv is giving you, unless you specifically requested something else.
<zeta_0> yesterday i configured smsmpt in home.nix but when i try to test it out it's throwing errors, am i missing something? https://dpaste.org/iSeU
<betaboon> lewo: I'm having issues using the overlay.nix of nix-container-images. i dunno if I'm doing it wrong or if something is broken
<jonge[m]> hey there, i use `pkgs.recurseIntoAttrs` on my attrsets to make `nix-instantiate` and `nix-build` recurse into them. but now i realized that hydra doesn't like that. hydra emits evaluation errors like `in job ‘initrds.recurseForDerivations’: unsupported value: true`. is that something that i need to filter out before letting hydra look at it?
<mojjo> I've built this '*2nix' tool for purescript: https://github.com/thought2/spago2nix-ree My main motivation was that dependency resolution is done by nix - so that only actual project sources have to be rebuilt if something changes. Once one of its dependencies is built it's in the nix store and you never have to build it again. It works! But there's
<thibm> I noticed something strange: command-not-found.pl hardcodes the channel as `nixos' in the output messages. The database is configurable and defaults to root's nixos channel database
<pjt_014> you *may* need to make that pkgs.lib.mkOverride or something too. Sorry, I've only ever done this like twice. :\
<pjt_014> but anyway if you know how to define something (for example as foo = "bar";) you change that to foo = mkOverride 0 "bar";
<sevanspowell> I'm wanting to do something maybe a little unusual: get the packages/haskellPackages specified in an overlay.
<srhb> What you're doing is unnecessary. Something else is up if it's not working.
<srhb> peelz: eval of nixos works something like this: nix eval -f '<nixpkgs/nixos>' config.environment.etc.bashrc.text
<cole-h> Something to look for
<oranginal> is it? Most things I find say to set something in .inputrc
<srhb> steell: Depending on the module it _may_ be possible by overriding just an ExecStart or something in the systemd service, if it's only used there, say.
<selfsymmetric-mu> Or do I need like `services.users.<my_user>.plex-mpv-shim` or something like that?
<evils> selfsymmetric-mu: unless there's something about `--user start` that's not covered by that
<tA_> ok update: i have libssl.so.1.1 and i need libssl.so.1.0.0 in order to run this, is there a way to symlink one to the other or something?
<energizer> what software do you use to avoid having to re-enter ssh-key dencryption passwords? gnome-keyring, ssh-agent, something else?

2020-04-07

<niso> selfsymmetric-mu: i think you are looking for something like this:
<notgne2> niso: oh, I must've missed something, because `(import "${builtins.fetchTarball { url = "https://github.com/urbit/urbit/archive/master.tar.gz"; sha256 = "1zbq094gmwj62a0arph2hmchw03hy4j4xchmd03bx2syhbi9bxjk"; }}/nix/release.nix").linux64.urbit` seems to work actually
<notgne2> I don't think that should use the makefile unless I'm missing something
<notgne2> something like that probably
<evils> add a comment on the PR saying something like "works for me"
<niso> zeta_0: you want to configure your account with something like this: https://dpaste.org/pUra
<energizer> does vscode do something more than that?
<cransom> replacing a drive doesn't mean you remove something from the pool
<clever> gchristensen: simplest option i can see is to just encode all of that metadata as json (or hnix it into nix), and then have a nix file in /etc/nixos/ that sets something like hardware.packet.metata = builtins.parseJSON (builtins.readFile ./metadata.json);
<atemu12[m]> qyliss: Indeed lol but that does look like something that could protect against Evil maid attacks reasonably well
<clever> srid: its so you can do something like `nix-env -E 'channels: (import channels.nixos {}).hello' -i` i believe
<srid> error: attempt to call something which is not a function but a set, at undefined position
<lovesegfault> Is there an analogue of pythonWithPackages to PHP? like phpWithExtensions or something
<jared-w> Really wish we had something a weeee bit more usable than ovirt at work. The API is there, but nothing interfaces naturally with it, so it ends up being super annoying to integrate it with any other tooling.
<bqv> or something of that flavour at least
<evertedsphere> imagining something like a disnixos-based qubes os minus the tor stuff
<niso> how would i run `something = pkgs.nixosTest ./mytest.nix` interactively? reimplement nixosTest to override makeTests driver? or is there a better way?
<jjwatt[m]> I noticed some neat settings in configuration.nix that could probably help with something like that the other day, too: to automatically grow partitions
<clever> vika_nezrimaya: basically, you make an install media with justdoit included, boot it on something, type justdoit into the shell, and it does it
<jjwatt[m]> bsima: but if you're going to build something, you'll need to do it in the shell and likely make your own shell with any extra needed C stuff. When packages are built, you specify which dependencies they need, it's possible that just `python3` wouldn't have everything you needed, but you can probably also get around that without writing a nix file by passing the packages you want in the shell to `nix-shell -p` along with
<bqv[m]> is there something wrong with just `with import <nixpkgs> {}; `
<ij> ottidmes, I'm modifying the nixos live iso creation config to suit my needs and I've imported something that changes autoLogin
<bdju> okay I guess I did say grub but I'm thinking now that I'm not actually using grub, rather systemd-boot or something
* Orbstheorem is pretty certain something of the sort exists x)
<andydarcyjewell2> thibm: is there something I can read that discusses how to approach that?
<psy3497_> Perhaps there is something more compilcated inside my build where a different hslogger is being referenced I wonder? I admit I did not try to build hslogger in isolation
<evertedsphere> i think its like <hash>-(<hash-(<hash>-(<hash>-name))) or something?
<evertedsphere> i had to actually once use builtins.path or something like that to shorten the name so as to not hit the filename length limit
<energizer> you can do something similar with windowManager and desktopmanager
<hyper_ch> hmmm, something has changed in samba since 20.03 git
<evertedsphere> discovered something called kmonad today that i'd love to set up but i have a work deadline for today evening
<evertedsphere> huh. is there anything wrong with just using zfs's native send feature + a cronjob or something then
<evertedsphere> can't you just rsync zfs snapshots or something
<evertedsphere> i've managed to crib together something that boots and runs but that's about it
<monokrome> is there a default "usb" group or something?
<Kyndig> oh man; I borked something up. I did a nix-garbage-collect -d and now it looks like a corrupt database of some kind (help please):
<blibberblob> although it was still pretty low framerate, it was more like i'd expect back in 2005 or something haha
<colemickens> uh, video4linux2 or something. It's the webcam infra in linux
<colemickens> Oh, weird. I know some certain older, non-USB3 webcams that do high resolutions have usb bandwidth trouble too. I think v4l2 tries to quirk around it, but it was something else I'd discovered.

2020-04-06

<simpson> Might be. A lot of folks have worked on Haskell environments. It seems to be something of a rite of passage.
<logand> hmm /run/current-system/sw/share/emacs/site-lisp/elpa does not exist anymore after rebuild-switch, something is wrong with emacsWithPackages
<jjwatt[m]> ratsclub: weird. the build for 0.18.0 is failing. It could have been something in hy's dist! ```ERROR: Could not find a version that satisfies the requirement colorama (from hy==0.18.0) (from versions: none)
<simpson> (And TBH I've been in that position too, where I'm fixing something in the Python tree but I don't really care about what it is that I'm fixing or why it's broken.)
<ratsclub> I'll try something here
<jjwatt[m]> I was working on my own private package for it, but was probably going to move on to something else.
<jared-w> If I just wanted a VM I'd use something else lol
<peelz> Is there a way to transparently wrap something that gets `callPackage`'d ?
<srhb> dminuoso: So you can nix eval -f thatName lib.version or something like that
<AmandaC> or something running as you did
<dminuoso> Right, cheers. Still though, does nix have the necessary tools to explicitly tell me why something is installed?
<blackriversoftwa> How can I get cmake packages to put exported `.cmake` files somewhere in their output? I am trying to build something that depends on `protobuf` but expects to find it via CMake's `find_package`, and the nixpkgs derivation for `protobuf` does not install the `.cmake` files for protobuf anywhere
<raboof> would it be crazy to have something like 'nix-shell' but with isolation features? Like being able to toggle network access, read or read-write access to (parts of) /home, things like that? or is there already another more convenient tool for this? 'docker' alone isn't really it :D
<blackriversoftwa> Hi, does anyone know of an example in nixpkgs of a package where `CMakeLists` is under `cmake/` or something like that in the fetched source rather than in the root of the source?
<srhb> ok, then that particular example won't work (because that option doesn't exist) but something like it.. :)
<srhb> NemesisD: Why not set the values conditionally? if config.networking.hostName == foo then something else someotherthing
<NemesisD> srhb: yeah its very possible i'm doing something stupid. so i'm following a pattern for home-manager/nixos where the system's configuration file and just imports files from a git repo on disk. there are modules i want to reuse like one that sets up my terminal, but on systems i need to override some aspects of those imports
<srhb> NemesisD: Something like `{ customArg, ... }: { config, pkgs, .... }: ...` -- to be clear
<ij> is copy_bin_and_libs something I get by default?
<srhb> cjpbirkbeck: Reading about the differences between the two might be helpful. But you'll want something like `st.overrideAttrs (oa: { src = ...; })` in this case.
<evertedsphere> something like myproject.env.extendWith [ pkgs.this pkgs.that ]
<srhb> evertedsphere: It sounds like you may be searching for something like shellFor
<evertedsphere> something like stdenv.mkDerivation { ... buildInputs [ myhaskellpackage.env pkgs.cabal-install ] } fails
<FRidh2> with stdenv.mkDerivation you would need dontUnpack = true; dontBuild = true; dontInstall = true; or something like that. Maybe easier to just use runCommandNoCC
<srhb> exarkun: Presumably you have an overlay or something modifying it.
<jakobrs> How do I add something to an option without overriding the default?
<evertedsphere> i've just done something i think is cursed: i put unstable = import <unstable> {}; in my config.packageOverrides, so now i can do home.packages = with pkgs; [ normal-pkg-1 unstable.scary-pkg normal-pkg-2 ]
<srhb> leonardp: The correctest way is probably to make upstream do something less crazy, but I realize that's often not a very plausible solution
<gchristensen> yeah, I think there is something about a systemd generator for zfs mountpoints, but we don't use systemd for mounting anyway -- so we'd need some special jazz in our stage-1
<bqv> evertedsphere: my code will mostly be irrelevant to you, since i'm using nixFlakes. the gist is to set nixpkgs.overlays = [ (self: super: { unstable = something; }) ]
<evertedsphere> i think i need to add an unstable=something there but does anyone have an example of how that is done? perhaps a local relative path to a submodule?
<evertedsphere> and having substituteAll error if i do something like refer to @thing-i-did-not-pass@ in the script
<bqv> definitely gonna try something like that
<clever> leons: pkgsCross.riscv32-embedded.stdenv.mkDerivation { name = "something"; } in your shell.nix
<clever> energizer: you would need to copy the drv over, and start building it under something like screen
<wedens[m]> does something in nixos-rebuild ignore NIX_CONF_DIR?
<energizer> something doesn't add up
<energizer> so something's wrong
<evertedsphere> and all state that _is_ being used should be something i pass explicitly, i guess
<clever> evertedsphere: you can always name it something else like <mypkgs>
<pjt_014> didnt know that. Is there no wrapper command that does something like this?
<Parra> I would need something like that
<pjt_014> just a friendly reminder: if you're about to do nix-collect-garbage -d while trying to fix something, consider instead doing nix-env --delete-generations +3 to keep the last 3, THEN do nix-collect-grabage without -d.

2020-04-05

<liminal18> or something like that
<liminal18> in javascript this would be the spread operator ...pkgs in nix can I do something like that?
<bqv[m]> tek: the ordering might matter. if something used x509-validation before your overlay, it wouldn't have any effect
<bqv[m]> the point is, this is something you should learn to do
<bqv[m]> it means nix is assuming that you've given it a string, so it's trying to turn what you gave it into a string. as it happens, what you've given it is not something it knows how to coerce (turn into) a string (functions aren't very string-y) so it's throwing it back to you because it's not right
<theduke[m]> Eg I have something that needs `libfontconfig.so.1`. But adding `fontconfig.dev` as a dependency in `shell.nix` does not seem to make libfontconfig.so available in the shell, eg by adding the path to `LD_LIBRARY_PATH`
<morgrimm> Out of curiosity, anyone know if there's a big difference between running makeWrapper vs just symlinking something from $src to $out/bin?
<ottidmes> > ''test''\n''+"something"
<eyJhb> > ''test\n''+"something"
<eyJhb> Also, does \n work in ''test\n''+"something"
<eyJhb> Where can I put a writeScript, so that it is available in my path? Something dead simple
<drakonis> i heard something about valve updating the steam installer
<evertedsphere> so NIX_PATH can point to something that is out of sync with what i actually think <nixpkgs> points to
<evertedsphere> i see, i've always feared something like that
<evertedsphere> why is it not using a binary cache or something
<clever> numkem: that happens any time something downloads a pre-compiled ELF, you must patchelf all the things
<vika_nezrimaya> asbachb: I never saw something like this but it's possible, since the data is public
<hpfr[m]> i'm getting an error trying usb redirection with virt-manager `g-exec-error-quark: Could not redirect [Device] at 1-24: Failed to execute child process "spice-client-glib-usb-acl-helper" (No such file or directory)`. That seems like nix has something to do with virt-manager not finding a usbredir dependency. Can you guys use USB redirection with virt-manager? Or does anyone know a way to fix this?
<clever> evertedsphere: or you can write a nix function, that takes the name of something, and calls runCommand, inserting ${something}s everywhere
<evertedsphere> and i have to do something like that for every single script i want to refer to. huh.
<evertedsphere> here's the deal. i have something like
<evertedsphere> so something like, er. #! @pkgs.bash@/bin/bash ...?
<evertedsphere> should i change it to a nix thing and use ${pkgs.bash} or something
<evertedsphere> do i need to, like, manually set up the unit's PATH or something
<vika_nezrimaya> asbachb: if it wasn't updated in some time, it might be a sign that someone commited something that breaks Hydra channel builds. If Hydra fails the job, the unstable channel (or any channel) doesn't advance.
<evertedsphere> i think just defining something like my-system-config = copyPathToStore ./. and then referring to relative paths as "${my-system-config}/wallpaper.jpg" might work?
<evertedsphere> something like <my-system-config/wallpaper.jpg> or whatever
<munksgaard> clever: That seemed to do something. `file` now points to the new interpreter, though ldd still can't seem to find libgmp. However, trying to run the executable gives this error: /home/munksgaard/src/willoughby/node_modules/elm-format/unpacked_bin/elm-format: error while loading shared libraries: libgmp.so.10: wrong ELF class: ELFCLASS32
<Orbstheorem> Also, I like managing my terminal sessions and windows independently since I organise terminals by topic and fork very often to check something quick, such a repl or an isolated experiment
<pjt_014> you still may wanna do timeout 2h or something in front
<pjt_014> ideally you should a huge drop in mem usage, either that or something else's up
<pjt_014> Bunogi: when do you get the error? boot? login? something else?
<ZaraChimera> pjt_014 I will probably dualboot at some point once I know my way around NixOS enough. Or I may wait till I upgrade the main computer and use the older hardware for the NixOS system for something. Possibly personal hybrid server-desktop setup or something.
<Bunogi> Accidentally made infinite recursion in my configuration.nix yesterday which caused me to run out of memory, freezing my computer when I ran nixos-rebuild switch so that probably has something to do with it
<ZaraChimera> I can only think that something I did borked the CA certs stuff. But I am not really sure. I uninstalled and reinstalled opensuse WSL and then added the nix.conf to work around known bugs (disable sandbox and sqlite-wal) and then ran the curl command with no issues.
<pjt_014> First one I've ever packaged--glad I didn't try to go for some huge thing with a gui or something
<srhb> using nixpkgs) or something like that.
<srhb> mlatus[m]: I think there are too main categories of reasons to reach the nix manual. 1) you're implementing something like nixpkgs, and 2) you want to configure nix for use with nixpkgs. I've seen both cases in the world, but the latter is way more common. Perhaps a pointer near derivation (note: this is not mkDerivation from nixpkgs, which is likely to be what you want to use, if you're already

2020-04-04

<cole-h> If it's newly updated, not necessarily. If you've overlayed it and changed something, it definitely won't be.
<bqv[m]> doesn't apply directly to me cause i'm on a flake, but yeah thats mostly my intention now. i just hate having to declaratively do something so hacky
<cole-h> Maybe it's something to investigate so there doesn't have to be a fourth time...
<bqv[m]> how does the code owner thing work? is it that it can't be merged without code owner's permission or something?
<cole-h> Without being completely confident or knowing if it will actually work, that maybe sounds like something that SymlinkJoin could help with?
<colemickens> we could have ,sri wired up or something.
<colemickens> I'm signing up for docs work today, need coffee, but if I had answers I'd make a new wiki page or something
<__monty__> It's a bit like opting to adhere to the `{ pkgs ? import pinned-nixpgks {} }: something` convention.
<__monty__> Haven't heard of a convention. I'd be partial to haskell's signatures. But I suspect you'd need something more like Purescripts to express extensible record-like things.
<clever> mudri: something like: pkgs.runCommand "name" {} "cp -vir ${oldPkg} $out; cp ${./foo} $out/bin/foo"
<clever> mudri: something along the lines of replace dependencies
<mudri> Is there any way at all to edit Nix store files without rebuilding the entire package that produced it? I'm not looking for anything reproducible, just a quick something to help with debugging. I'd expect to, maybe, be able to generate a new package based on the output of another (the one I'm trying to edit).
<sullyj3> So is this something I'd need to talk to a maintainer about then?
<sullyj3> is that a configuration.nix option or something?
<peelz> the_pumpkin_man[: something like this: https://termbin.com/o3li
<alexgood> Oh interesting, maybe it's something specific to my setup
<clever> alexgood: oh, but also dont forget the name = "something";, oops
<stevenroose> Can I add something to configuration.nix to have a permanent swap file?
<ZaraChimera> Something is definitely different between the way WSL sets up opensuse leap and ubuntu. nix install was not working under WSL opensuse, but no issues under ubuntu WSL.
<clever> eyJhb: and builtins.listToAttrs is a single primop, to turn a list of { name = "foo"; value = "something"; } into { foo = "something"; }
<simpson> stevenroose: This isn't specific to NixOS, but is a general behavior of the Nix language. The idea is that it's likely a programmer mistake to declare something twice in a single scope.
<ZaraChimera> Clearly I haven't defined something in the right way for this to work.
<jahor> Hello, Nix. I've been using NixOS for a long time but I'm wondering how I would install packages from a defined list with just Nix on other GNU/Linux distribution. So I'd like to define something like environment.systemPackages and run nix-env -i environmentWithPackages to install everything I've added in this file. Is it possible?
<pjt_014> and in order to actually use something you'll need to do nix-env -i /nix/store/dfsdf4fu094f4-program-name
<pjt_014> I just thought of something: what does Arch Linux's AUR use?
<ZaraChimera> The php.ini might have had something to do with something like wordpress.
<pjt_014> but yeah you have a missing file or something somewhere. unless php stands fopr something other tham Pretty Hellish Programming lanuage
<pjt_014> idea: what about a 'null licence' whose sole legal property is that it must be replaced with something else before being used
<xfix> IMO nur-template should use something like CC0, because I don't think it will be able to realistically protect against copyright violations
<colemickens> or is there an easy way to convert them or something?
<pjt_014> actually I just thought of something: why does there need to be a default?
<ottidmes> morgrimm: I think the best solution is to use something like stow for your static dotfiles folder and HM for generated ones
<Pwnna> ah ok i was under the impression that nix only pulled down things when it's in something like buildInput

2020-04-03

<bqv[m]> ok nevermind, found something that works. "lib.fix lib.mergeAttrsWithFunc" -> "lib.fold lib.recursiveUpdate {}"
<bqv[m]> yeah, why does that fail, is there something about mergeAttrs i'm not seeing
<cole-h> Ping worldofpeace: I think you did something with gsettings stuff recently? Maybe you can help ottidmes ^
<ottidmes> I am using i3 as my window manager, and thought maybe something changed causing the breakage, but even when I enable xfce with no window manager and desktop, it still fails with the same error, so it does not seem like I am missing any fundamental desktop manager related
<colemickens> Hi. I have `nix`, same version on two machines. But it seems that `--experimental-features` is only recognized on one? Am I doing something obviously wrong?
<bqv[m]> i think i used something i bastardised from nixos-infect
<cole-h> You could also wait for that one RFC to allow us to switch to something not-XML-based ;)
<worldofpeace> cole-h: I have lots of notes whenever I have to do something. So, if my brain permits me to write docbook, or I can find someone, it could be added to the manual.
<cole-h> Except for Debian, RedHat, etc, where, for official inclusion, you need to get a sponsor or something
<armin> considering how much i LOVE fractals and that i have quite some complex setup with remote rendering and such, that's probable something i like to change.
<scoates> now I'm seeing `failed to mount /rpool`… pretty sure I'm doing something *different* dumb.
<jjwatt[m]> scoates: something like `networking.interfaces.ens9.useDHCP = true;`? Did you try that yet?
<ryantm> bsima: Unfortunately, it doesn't work like that, so you'll have to make something more complex. Maybe you could use lib.splitString
<ornxka> do a lot of packages use that or something?
<ornxka> maybe either try unsetting it or setting it to something that makes more sense
<ekleog> uhhh :( did you need to configure something special for it, aside from what's in the docs?
<mlatus[m]> jonge: should be something like `system.build = lib.mkAfter { installBootLoader = <value>; }
<simpson> bqv[m]: Lucky 10000: Something like $(NIX_PATH=nixpkgs=... nixos-rebuild) will work to temporarily use a local checkout. You can use this to cheaply switch between configured channels and a local nixpkgs checkout.
<ratsclub> As you posted an IPFS link, lemme ask you guys something? How can I upgrade my ipfs version? I'm at 0.4.21 and I feel like I'm not connecting to as many nodes as I should
<pjt_014> mokasin_: Importing it as described would probably be correct. If it modifies the kernel, also something like "boot.kernelPackages = pkgs.linuxPackages_hardended" in the config file unless it already does that.
<OrangeTetra> evils: I only got the message starting with "though" did you send something before that? I look like you might have.
<jlv> Either I'm missing something or `services.xserver.inputClassSections` isn't working.
<davidak[m]> DigitalKiwi is it something like this https://en.wikipedia.org/wiki/Ethernet_crossover_cable ?

2020-04-02

<lovesegfault> gchristensen Ah, I think I recall andi- bragging to me about having something like that working :P
<qyliss> (infinisil: might be worth editing to add something to that effect at the top -- I've seen people get confused by that)
<oranginal> ottidmes: So, when I look at the wiki it didn't mention that it was modifying nixpkgs.config Is there something that could tell me about how that works?
<oranginal> ottidmes: I was going with these instructions. https://nixos.wiki/wiki/Vim Have something that instructs how that works?
<Ankhers> Is there some way to delete lorri's cache or something? I seem to be stuck at an old version of a package within one of my projects. If I `nix-shell', it gives me the proper version.
<ottidmes> tilpner: Ah, makes sense that they have something for enterprise, I will add it to my TODO, after a quick google I also saw a few extensions and tips, but it looked rather complicated (many sources where settings can be stored)
<bqv[m]> ottidmes: i think rycee had something going to declaratively add extensions to firefox
<ottidmes> bqv[m]: yep, I would do something like you suggest, have an activation script copy it in place
<symphorien> also it's intertwined with systemd. systemctl will try to use polkit if you are not root and try to do something priviledged
<chrisaw> Basically what I want is to use something like: uwsgi = pkgs.uwsgi { plugins = "python3" };
<cole-h> buildFHSEnv or something
<ottidmes> fusion809: did you not do something special to make audio work in your Arch chroot, could that be affecting it?
<adisbladis> Hm, I thought the bot had something for that
<adisbladis> It should point at something looking like /nix/store/f6gmqcxy0cyww8qy82frrgs4rablz02j-python3-3.8.2-env/bin/python3
<typetetris> Using vncserver from tightvnc gives me `vncserver: couldn't find "Xvnc" on your PATH.`, is this a known bug, or did I do something wrong? `nix-env -iA nixos.tightvnc; vncserver`.