2021-03-21

<remexre> am I supposed to do something weird to get opengl applications installed w/ nix, not on nixos, to work?

2021-03-20

<colemickens> gchristensen: thanks for the hydra tips, I stole the machine text generation file so I could have something nice in my config: https://github.com/colemickens/nixcfg/blob/6a720ebef88a229afb21f38342a97f89f9f5badc/hosts/slynux/hydra.nix. One more question - do you know if there's issues hydra (with nixUnstable) utilizing builders that are running stable nix?
<Orbstheorem> You can probably do something like `pkgs.salt.override {extraInputs = [];}`
<simonpe^^> maralorn: I was hoping as an alternative to do something like `mkOption { type = oneOf [ (submodule { type = strMatching "A"; }) (submodule { type = strMaching "B"; }) ]; }` but the behavior is not what I expect
<Guest1> I tried looking for something like xprofile xession
<gchristensen> matthewcroughan_: also, no, there isn't -- but I'd really like that to be possible. you could use ldap or something if you're super facny.

2021-03-19

<clever> viric: ive had to use something related over at https://github.com/cleverca22/tox_decoder/blob/master/src/logkeys.c#L38
<unclechu> hi, can i parse some yaml from Nix? is there something like `builtins.fromJSON` or `builtins.fromTOML`?
<PIE_> leex: is home manager on nixpkgs-unstable while your system is on nixos-unstable or something?
<PIE_> should be sufficient to do the rebuilds and maybe tell systemd to refresh or something
<PIE_> unless it needs a specific verison or something
<PIE_> not sure whats weird about that,but maybe it means something<leex> PIE_: weird it's mentioning 13.0
<pie_> i dont know anything specific relating to home manager but i could see that setting up something with the user services
<pie_> which might actually explain it if anything in your user environment depends on your user channel. maybe say,PATH hash stuff from the wrong channel , that could lead to the user servie resolving the wrong libc or something
<pie_> tbf that libc issue looks like something that would be something people on nixos would know about but i dont know offhand wha tthe problem is
<Guest43> Something is off
<Guest14> Ke simpson I uninstalled xfce and installed standalone xfce-session package. it works with it. something in xfce-session. checked processes, "xfconfd" xfconf-4.14.3 is running.
<supersandro2000> or someone somewhere overlooked something
<supersandro2000> Guest14: at least something in unstable breaks every day
<Guest96> cole-h hey cole, so I finally found something about firefox freezing. I am amazed. running xfce-session fixes it, I don't know why, need to find out. Any ideas?
<supersandro2000> radvendii: should be something similar to
<Guest78> lovesegfault simpson any of you guys up? I finally found something, firefox freeze issue resolved in XFCE!!! Now gotta figure out what exactly and port to other de/wms
<noonien> and now, i'm trying to build something, it seems to take a LOT of time after downloading stuff
<matthewcroughan_> I want it to be that people can use cachix.croughan.sh or something, for this one output.
<acowley> I wish I had something insightful to offer to help with the unstable breakage. Seeing so much red on the status page is unfortunate.
<pie_> if it doesnt, something is wrong, probably in the configuration
<ToxicFrog> Under what circumstances does something need to read /etc/nixos/configuration.nix? I was under the impression that it was only needed by `nixos-rebuild`, but I'm trying to run `nix-shell` here as a service user and it dies with "getting status of /etc/nixos/configuration.nix: permission denied"
<simonpe^^> I read something about that on reddit but it might not be released yet
<simonpe^^> Ke: yes that would be the naive option but I think it's very hard to make something that considers every tool, every scm, and gets it right
<Guest14> supersandro2000 I upgraded to unstable and tried to install something with home manager (added something to it), then now it's reinstalling/upgrading everything in home manager packages list
<qq_pls> cole-h that seemed to have worked, at least built so thank you. Because I want to understand this better, why is it we needed to let the value into a new variable? Is it something to do with the change in scope and if so why would rec and then calling it by it's original name not work?
<qq_pls> I'm glad to see you suggest this, It makes me feel like I'm learning. I tried something similar but gave up on it too soon. Let me try your suggestion, thank you!
<dramforever> It's just you're doing something more advanced than what I'm used to :)
<cole-h> qq_pls: Regardless, I don't think that's something that's going to work... The sops secret will be decrypted on the local machine. It won't be available in the container unless you bind mount it
<dramforever> Though a two-level nested module is something I have *not* seen before
<dramforever> If not, and it's just an attribute set, something like: rec { a = 3; b = ... use a here ...; }

2021-03-18

<redmp> clever: i'm deploying an integrated distributed system so --include isn't something i'll ever use
<clever> matthewcroughan_: those offsets are something internal to setup.sh in the stdenv, ive not figured them out either
<sparogy> matthewcroughan_: something like { username, sha256 }: fetchurl { <stuff> }
<matthewcroughan_> clever: a friend and I want to make a function that pulls keys from Github, it will be something like fetchSshPubKeyFromGithub
<Guest40> simpson what is libpci, is it something in nouveau missing/
<Guest40> lovesegfault I checked irc logs, I think some guy reported this starting from 70 something version of firefox
<redmp> sterni: both options seem somewhat substandard.. the first works, but it's a bit of action at a distance.. what if something overwrites my shellenv before i call nixops?
<ajs124> Athas: which kind of problems are you seeing? I seem to remember somebody using something else there.
<redmp> sterni: ok, thank you.. i'll use the shell.nix approach as a workaround until i find something better..
<sterni> redmp: can't get a path for something that isn't a path but a value
<bb_> did something change with pkg-config?
<supersandro2000> but what I wanted to tell you is that I don't do any special and something is wrong with the nix part
<infinisil> Is this on a 32bit system or something else special?

2021-03-17

<colemickens> unless im missing something again -_-
<clever> you can just do something like `daedalus = import sources.daedalus { cluster = "mainnet"; };` in an overlay, and toss it into systemPackages
<colemickens> I was looking for something to put in my configuration.nix. I did run the bin just now and I see it did a bunch of stuff, but then seems to have just exited.
<aanderse> talyz: for reference, you should be able to tweak something like this to get inbound email working: `services.postfix.extraAliases = '' test: "|${pkgs.curl}/bin/curl --data-binary @- https://${cfg.hostName}/api/email" '';`
<lobre> Hi, I just switched to the unstable channel of NixOS and I am trying to build with NVIDIA drivers (services.xserver.videoDrivers = [ "nvidia" ];) but it fails with error "The required package gtk+-3.0 was not found on your system". I am not sure if the problem comes from my configuration or if it something wrong with unstable...
<extrowerk> Ah, yet something: please consider to not use dotfolders and dotfiles in the $HOME. Thats unacceptable on Haiku, even for ported programs. It is just bad practice.
<extrowerk> ok, i achaived what i wanted, built nix on Haiku, it seems to doing things, i is enough for me, i can't debug something i am never used.
<extrowerk> matthewcroughan_: it does something: http://0x0.st/-N_O.png
<extrowerk> we can live with something like /boot/home/config/non-packaged/nix
<lassulus> if you want to boot something which depends on nix (like nixos) it should be persistent
<tpw_rules> on macos where writing to / is impossible too, the installer creates a separate logical volume to hold everything under /nix . can you not do something similar in haiku?
<jmercouris> must I do something like this? https://nixos.wiki/wiki/Nix_Cookbook
<ambro718> This issue can be found by googling for something like "linux lenovo Y720 wifi not working" and seeing suggestions to blacklist ideapad-laptop module.
<ambro718> This line is supposed to be something like: if (!priv->has_hw_rfkill_switch || read_ec_data(...))
<andoriyu> Maybe I don't understand something about linux or nixos, but: I'm tracking unstable nix channel and running linuxPackages_5_11. `uname -a` shows that I'm running 5.11.0, while master is 5.11.6? Why?
<fuzzypixelz> you must be doing something :0
<nschoe> I've just tried tune2fs and e2label to change it, but I keep being hit with "bad superblock" or something :/
<pie_> ldlework: id open an isuse somewhere wondering about the include ordering issue or something
<pie_> ldlework: well, the short of it all is I added NIX_CFLAGS_COMPILE = "-DSTDC_HEADERS=1"; and it seems to be fine but something is still fucky
<pie_> can you do -j1 or something? --cores 1 --max-jobs 1 i think?
<pie_> ldlework: why are there things about sdl2? i think i read something about only supporting sl1?
<jboy> building succeeds, it's the install phase that fails because it is trying to copy something to /etc
<pie_> idk off hand how i would have checked that but maybe something like looking what zfs derivation was getting added
<pie_> hyper_ch: something i would also have checked is maybe using nix show-derivation to figure out if things were coming from the right channel
<pie_> ldlework: so it looks like something that comes from autocon
<pie_> hyper_ch: haha yeah i was gonna ask something like are you running the right iso
<pie_> ldlework: that looks like something google might help with though?
<pie_> so either i did something wrong, or you actually_have_ to pass them separately. TIL, and that will remain an open queastion
<pie_> i used mktemp because apparently it checks if the file exists or something and errors otherwise
<Miyu-saki> TL;DR, it is stored in like ~/.nix/cache or something
<Miyu-saki> So in the "usual use-case", you'll have something like `with import <nixpkgs> {}; callPackage ./. {}`. And when you override that with `-I` it will instead use the nixpkgs from your /nix/store, with no regards to any other nixpkgs installed in your systme.
<pie_> because it sets <nixpkgs> , sure, but something has to resolve what it's using as the overall nixpkgs context
<pie_> i get the pieces but i always manage to majorly wrongthink something :P
<pie_> hyper_ch: Idk offhand how things get put into the iso, but for building the iso youd probably do something like -I nixpkgs=channel:nixos-unstable to set the <nixpkgs> value which is used by impure.nix, if I recall correctly, to set the pkgs thats in scope, and such
<remexre> did something change how sh (the python module) interacts with python recently? A build that does pkgs.python39.withPackages(p: [ ... p.sh ...]) is now trying to build python from source...
<Yaniel> did something happen with the default build steaps?
<matthewcroughan_> Windows 10: Something happened.
<matthewcroughan_> "To something else".
<matthewcroughan_> clever: " # Function that converts the option value to something else."
<matthewcroughan_> If default = {}, then apply = { something } is ignored, no?
<matthewcroughan_> "Function that converts the option value to something else."

2021-03-16

<Miyu-saki> colemickens: FWIW, if you're developing this for NixOS, can't you do `callPackage ./foo.nix { kernel = boot.kernelPackages.kernel; }` or something?
<Miyu-saki> I just realized something, seems like IFD cannot be controlled by `max-jobs`?
<matthewcroughan_> Miyu-saki: Latter would mean that you are building something, are you sure about that?
<Miyu-saki> Something something, you cuold always build it yourself though.
<shla> I think I installed traceroute from inetutils some time ago using nix-env, now when i'm installing it via environment.systemPackages it says something about the collision, how can I troubleshoot this problem? according to nix-env --query there are no packages installed.
<kiwi23> but maybe I'm not understanding something
<kiwi23> i have, i didn't really like 800 line long files, for something that's as simple as otherwise a 25 long file..
<abathur> someone more familiar with direnv may be able to say something smarter :)
<s1341_> sterni: i swapped the runCommand with a stdenv.mkderivation... but that doesn't return the attributes or something? what are the return values of runCommand and mkDerivation
<supersandro2000> but something with reference I think
<f00860> Did not find any breaking bugs in the issue tracker, so I don't see any reason to hold version 1.6 back. Do I miss something?
<sterni> s1341_: there's a workaround having something like source ${autoPatchelfHook}/nix-support/setup-hook in your command
<Rovanion> Just running `nix-build nixos/tests/prometheus-exporters.nix -A driver` doesn't work. I don't see driver declared in login.nix so I guess its something automatically inherited?
<Miyu-saki> angerman: FWIW, you can always use something like `builtins.trace lib.version`
<coyotechords> I'm trying to package something for nix

2021-03-15

<supersandro2000> thats already something not everyone achieves
<matthewcroughan_> I feel I may learn something if I find out why this error occurs in the first place.
<notgne2[m]> you currently have 240 seconds to SSH into the new host, and delete the confirmation canary file, it will be something like `/tmp/deploy-rs-canary-y8x8zf511cd9x1kask5ds2bs744w883s`
<matthewcroughan_> I saw you just got a PR in on deploy-rs and since serokell isn't here I'd like to asks something. Is it possible in deploy-rs to activate a configuration temporarily?
<georgyo> Something to note that inside a '' '' block, ${foo} references a variable in nix, while $foo references an environment variable passed to the script.
<rubm> which does not work, because `reflex-platform-func` is not a function anymore. Is there something like this in nix:
<Rainy> is there something up? my nix-channel --update is hanging atm
<supersandro2000> try it on something more linux like ext4
<pie_> wow the client cant use a nonstandard port or something
<pie_> something about mumble failing to rebuild because QT
* pie_ mumbles something about pinning

2021-03-14

<clever> colemickens: daedalus is creating something similar to appimage, but more custom (based on nix-user-chroot and nix-bundle), which allows it to ship a nix closure to a non-nix machine
<jesystani> hello, im trying to run `stack new myproject` and im getting an error about a missing ghc version, even though `ghc --version` is showing the version its asking for. is there something special i have to do to get stack running? thank you
<stteevveen> @clever okay so i have something broken else where, thx
<stteevveen> Hi! I installed my configuration on another machine, and something get broken when they rely on other channels. I notice that on the original machine I have "home/user/.nix-defexpr/channels:" prepended to an other wise similar $NIXPATH env variable. Is it something that needs to be done by hand, or are there commands that would correctly set the
<veleiro> pip2nix maybe but shame there's not something more up to date
<kenran> veleiro: https://pastebin.com/Swdqy9qH something like this
<gchristensen> imho having a nix-shell mutate something when you enter it is an antipattern
<stteevveen> @_jv_ I'm not sure what you mean something "fully declarative"   . It depends on the presence of a file with correct value filled. What other way would you expect ? What operation would you declare so as to the the variables ?
<peterstorm[m]> Yeah, can't believe it was something like that... but thanks for the help, wouldn't have gotten there without your guys anyway :D
<peterstorm[m]> Oh damn, that helped! Windows 10 has a setting in Power Settings turning something called Fast Startup on, that apparently messes with the wifi in Nixos!
<peterstorm[m]> Oh, just read something about dual booting and fastboot being enabled...
<peterstorm[m]> anyone know if I'm missing something? I read about the problems on ubuntu saying you need some firmware installed?
<Yaniel> and I guess it makes sense to install nixos on something that normally won't have network connectivity
<kenran_> clever: I thought I might have mixed up something with the channels (nixos/nixpkgs/home-manager), and updated everything to latest, but still. Maybe there's a switch "missing" somewhere that I'm not knowing about.
<kenran_> It's probably got something to do with the evil-magit being in "emacs-modes/melpa-packages", but I don't really know what that is. I'll dig around that a bit.
<Ke> unless it was something like nix* crashing while processing certain file on certain arch
<Ke> it's like something crashed in the middle of writing that drv
<DigitalKiwi> (i know it's `rg` but something is failing because it wants `ripgrep`)

2021-03-13

<supersandro2000> figgyc: set the log lines setting to something crazy high
<supersandro2000> ece: I think there is something wrong on your end. wget was cached on my machine already.
<Ke> generow: do you have network manager enabled or something
<__monty__> Ke: Build-time only deps aren't but stdenv contains bash so it'd at least take effort not to depend on it at run time. Is this a custom stdenv for building a specific project only or something?
<yaymukund> oo, duh, autojump itself has something like this. I could try modeling it off of that: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/autojump.nix#L25
<veleiro> so it says "Be aware that container management is currently only possible as root" why is this? something to do with the nix store?

2021-03-12

<adisbladis> Something like that
<exarkun> Okay. So your system config pulls in something that depends on it.
<cole-h> ambroisie: You probably want to do something like `lib = lib // { my = { ... }; };`
<kaletaa> i'm trying to build something, just tinkering with it rn
<genevino> tazjin: i'm getting 2.29.2 after a nixos-rebuild switch --upgrade, am i overlooking something?
<yaymukund> I keep getting "the option programs.neovim defined in configuration.nix does not exist". Does this mean I've misconfigured something?
<redmp_> tpw_rules: ah yeah, i'm doing something like `import inputs.nixpkgs { overlays = inputs.foo.overlays ++ self.overlays; }` .. did you see anything wrong with what i was doing?

2021-03-11

<ar> could it be that something tries to populate /etc/shadow before /persist gets mounted?
<drozdziak1> I'd love something in the spirit of nix why-depends
<leo60228-> i recall seeing something (don't remember where) with guidance on pname/version values for unreleased versions
<clever> nixnewbie: using something like pkgsCross.aarch64-multiplatform.stdenv should give you an env where $CC and $LD target aarch64 for example
<damjan> (I bet I'm missing something easy/obvious)
<redmp_> i guess to override haskell.packages.ghc8101 i need to call something on haskell.packages to override the ghc8101 attribute and then call ghc8101.override within that
<matthewcroughan> I thought this was just arbitrary metadata, like the person's github username or something, do I have to do something more?

2021-03-10

<redmp> FreeVariable: perhaps are you using something like home-manager to manage these applications?
<redmp> when i used the workaround, i encounter this issue: https://github.com/NixOS/nixpkgs/issues/108246 .. that is, something does nix-prefetch-url and fails running an executable which is not in path
<Gregory> simpson no luck. maybe i'm doing something wrong though
<Gregory> how can I install the clang development packages, e.g. to get access to libclangAST, etc?  they don't seem to be installed with clang_11, and i don't see something like a clang-dev package
<heck-to-the-gnom> does it just happen every time I install something?
<__monty__> jdelStrother: Why not override at the use site though? Something like `bundler-env.override { bundler = myBundler; }`.
<jdelStrother> Hi! I submitted a PR, then realised my changes broke everything. https://github.com/NixOS/nixpkgs/pull/115582/files I think there's something I'm not understanding with how callPackages works. Before my change, the bundlerEnv function used the top-level bundler package (defs.bundler). After my change, it can be overridden by passing in a different
<nh2[m]> eadwu: are you still using https://github.com/jscinoz/optimus-vfio-docs/issues/2#issuecomment-635415836 for your VFIO passthrough config, or something different by now? I'm struggling with the `code 43` error currently with my GeForce 940MX (Optimus in Thinkpad T25) currently

2021-03-09

<redmp> if i need to apply my flake's overlay inside defaultPackage, would i do something like { self, nixpkgs }: let pkgs = import nixpkgs {overlays = [self.overlay];}; in ... use pkgs to make drv ...;
<a_green_thing> Anyone have something hidden in their bag of tricks?
<evanjs> Got something I'd been having issues compiling before actually cross-compiling the other day. Step 2... is there an easy way to make things static? I tried just adding pkgsStatic into the expression but I can't seem to get it building that way
<veleiro> ok im understanding most nix-* commands that are something new in unstable
<bhipple> Heh, I'm trying to do something similar to what impure.nix in nixpkgs is doing: I have a default that fetches nixpkgs by a pure, deterministic, git pinned builtins.fetchGit, but if the user set NIX_PATH, I want to use that instead (rare case, not normal)
<lassulus> is there something like nix-store -q --graphml but with json as output?
<sterni> something with nix run probably rather
<KarlJoad> Why would a nixpkgs derivation I'm writing have `chmod: cannot access '/nix/store/qbasrjgz4fh57f10gfrgrd8zl1jbz4wm-source': No such file or directory` be returned when using fetchFromBitbucket? The download works perfectly fine when I manually use the URL nix uses, so it's something in the unpack phase. I checked, and the downloaded item _is_ a tarball.
<supersandro2000> you need to enable and start a service with the name service@something
<daphnis> using nix without nixos, do i have to do something special to use it from a new user? i get complaints about bad permissions and missing directories

2021-03-08

<jared-w> cole-h: ah so if I just switch to nixUnstable or something, it'll work? I tried using a nix-shell with nixUnstable and then doing `--experimental-features` but that didn't work
<mananamenos_> hi, https://github.com/NixOS/nix/pull/3988. How do i use this? Adding something like this in .bashrc `export NIX_SHELL_PRESERVE_PROMPT="whaever.."` hasn't helped
<jared-w> qbit: sounds like you want something like nix eval
<qbit> to allow someone to do something like: 'export SHELL_VAR=$(fancycommand "${pkgs.package.thing.stuff}")'
<clever> angerman: that happens if something in /nix/store was modified after building, you must either `nix-store --delete` it, or `nix-store --repair-path` it
<za1b1tsu> Hi, so I notice some apps (hexchat e.g.) are not setup as desktop app. Do I have to add something in the configuration.nix or something like that?
<veleiro> maybe something flake-related?
<infinisil> Heh, I was expecting something like that lol
<infinisil> Suspecting that something went wrong in the system activation

2021-03-07

<kini> Looking at the code for the `udev` nixos module, it seems like that configuration should have been written to `/etc/udev/hwdb.d/99-local.hwdb`, but there's no `/etc/udev/hwdb.d` in any of my recent system generations (including ones where the scancode mapping was working), so I must be misreading something
<clever> Miyu-saki: this is something ive used before
<supersandro2000> nix-build -A something-uncommited
<kenran> simpson: Do you know of a smarter way to go about wrapping the package with nixGL that wouldn't mean I have to create a full derivation? It feels like it has to be something people are doing all the time, but maybe they are all on NixOS (where I'd love to be too on this machine, but cannot).
<cinimod> I'd hoped I'd just be able to say to github actions something like `nix-build`
<clever> viric: the iso filesystem starts something like 32kb into the image, plenty of room to shove in either an mbr or gpt header
<Ke> cole-h: does that mean something else apart from making setup being a function from nixpkgs to results, which is also pure?
<cole-h> I think the community wiki page has a decent explanation -- https://nixos.wiki/Flakes or something?
<Ke> you can just fetchFromGithub, but I guess nowadays people use flakes or something
<supersandro2000> hexa-: can I help you with something?

2021-03-06

<jtojnar> drozdziak1: I would expect there to be the beef.rb or something
<mindtree[m]> <vulpine "is there a way to put a package "> I think this should work, as long as the file is an expression that evaluates to a derivation. That said, it seems to be more common to declare packages as a function that evaluates to a derivation, in which case you might need to use `callPackage /path/to/local/pkg.nix { }` to produce the actual derivation. At least I think it's something along these lines, I'm still new!
<munksgaard> mindtree: Have you considered looking at something like niv?
<ronthecookie> sigh, my nix-shell got gc'ed out of the store so when i tried to use a binary that links with something built in it it broke
<prsteele> thanks infinisil. I'll report back when I find something that works... should probably go update some stackoverflow questions that ask this same quesetion without a satisfactory answer
<prsteele> okay, I think I have a better mental model now. I think I actually want to shove something in buildInputs (my linter) and inputsFrom (my package derivation that I want to lint)
<gchristensen> huh is that something with CA derivations
<avn> looks like something new
<viric> maybe they do LTO or something crazy by default
<viric> But likely we can tell the linker to do something better
<ehmry> viric: its not really possible, the tradeoff is you get something that is probably fast but you can't have a distributed operating system
<viric> ehmry: and linux cannot translate the mmap to something of the network fs?
<clever> viric: in theory, just do fileSystems."/" = something; and it will just work
<clever> and you just never notice, if your not using something like xfs on a huge disk
<viric> I wondered more of something in the lines of https://github.com/willscott/go-nfs
<clever> viric: you would build a config using fileSystems."/" = { device = "UUID=whatever"; iscsi = { enable = true; host="1.2.3.4"; lun = "something"; }; };
<viric> clever: I did something wrong and 750MB initrd uncompressed. let's see if it boots .)
<clever> path + "/foo" creates a new path, identical to having just done something like ./path/foo
<clever> CFS: that looks like something did /nix/store/hash-foo/../../dashboards
<monokrome> Probably something dumb but I'm a bit confused about it
<nh2[m]> I solved my question above: Indeed `/dev/disk/by-uuid/` doesn't work either on my new system config, so it's something else that breaks it overall.

2021-03-05

<colemickens> I bet it's some nix process trying to do the download, gets stuck and then jams everything up. maybe there's a missing http timeout or something
<kakakakak> Hi folks, I am on nixos stable  20 09 and I see that update builds coreutils,openssl,curl, etc, but nothing else. Is that a graft or something?
<Ke> if something is not maintained, it's should not be used
<veleiro> simple thing but i'm missing something. i thought providing a nonstring path would move things defined in a derivation to the nix store
<xwvvvvwx> awesome so I can just drop something in /etc/systemd/system-sleep with envrionment.etc
<xwvvvvwx> How can I write a file that lives under /usr with nix? I would like it to work something like the environment.etc module where a symlink into the store is added to the filesystem under /usr/lib/systemd/sleep.
<clever> ixxie: if boot.supportedFilesystems contains either ntfs or ntfs-3g, then this module will do something
<aforemny> How can I query the value of the argument `system` in my NixOS configuration? Ie. if I pass `--argstr system aarch64-linux`, how can I access that value? `config.system` appears to be something different.
<angerman> clever: it also means we can probably try to hack hydra and improve IFDs or something, but that will largely depend on how much time we have for it.
<CMCDragonkai> should something like electron-forge/cli be packaged up in nix?

2021-03-04

<rmcgibbo[m]> i would like to do something like https://pastebin.com/jqmuxLw9, but it doesn't work
<Ke> something other than just starting?
<ar> i'm pretty sure that something went wrong between linux reading the cpu clocks, and cpu reporting its frequency
<bbigras> Is there a way to run something when a package updates? I would like to clear a cache when one of my webapp updates.
<ma27[m]> will take a look. Something similar was reported in the nextcloud21 PR IIRC
<Mic92> etu: I can point fingers in your direction, but you were the last person that modified something in php. Any ideas?
<mananamenos_> hi, I'm using configuration.nix. When some package does not build from the unstable channel im subscribed to, I can do something like `(let stablePkgs = import <stable> { }; in [ stablePkgs.some-package ])` and concat these to unstable packages. Now, can I solve in a similar way the issue that the combination of `boot.kernelPackages = pkgs.linuxPackages_latest;` and `virtualisation.virtualbox.host.enable = true;` does not
<andoriyu> well something is building
<tpw_rules> for real though, didn't someone set up a ripgrep instance or something for nixpkgs?
<prsteele> no, I don't think I want callPackage --- I think I need to provide a bunch of arguments to get something I can pass to callPackage
<prsteele> is there a way to point to the derivation of a package? Take something like irrsi that can be installed --- can I ask nix for the expressions that built it? (I'm trying to reverse engineer how something is built)
<sterni> redmp: if you do something like newNixpkgs = nixpkgs // { b = nixpkgs.b.override { … }; } a will not pick up on the change (how would it, you are just changing a set)

2021-03-03

<sterni> redmp: note that you have to use haskell.lib.overrideCabal to achieve something like overrideAttrs for haskellPackages
<samueldr> .overrideAttrs gives you the current attributes, as otherwise it would be awkward to get append to e.g. buildInputs or something along the line
<eyJhb> Trying once more, might have written something wrong
<jared-w> But yeah, between that, the various bits of sprinkled formatting logic, etc., it seems like there *should* be something better...
<levels> Yeah, but either I'm missing somehting obvious or something is broken, it just doesnt work for me
<RyuKurisu[m]> You know what's awesome about Nixos? That if you wonder if something can be easily installed then you probably can **and** in multiple configurations!
<sterni> since nix-shell exists it usually takes quite some time until I want to install something new globally etc
<kenran> I found out about Distributed Builds, but those seem to be for when the remote machine actually builds the stuff. I'd be looking for something that's "just a cache".
<kenran> Is the following scenario achievable? : I build something locally via nix-build, then "put" it on a remote machine. When I (or my colleagues) need to build the same thing again, I'd like to get a "cache hit" and use the built one from the remote machine.
<pinpox> It should be something like "use the official cache + my cachix cache to find as much as possible prebuild. If both caches miss, build yourself"
<adisbladis> pinpox: So your secret is still in the drv file, but at least it becomes painfully obvious that you have done something wrong
<pinpox> domenkozar[m]: Secerts should all be in env files or in /secrets (outside the nix store).. I'm a bit concerened to misconfigure something though and accidently put a secret into the store in the future
<pinpox> domenkozar[m]: thanks. Will work through that, I just wanted to make sure I was understanding this correctly and not doing something stupid
<pinpox> I'm thinking about setting up a build cache for my nixos hosts. Not sure if I should follow https://nixos.org/manual/nix/unstable/package-management/sharing-packages.html or setup cachix. Are there any security considerations? Can I "trust" the cachix service to not inject something into my servers?
<eyJhb> Ie. move a card or something
<mvnetbiz_> I like the idea of functional languages. besides nix I haven't programmed in much, besides some toy programs in haskell or lisp. give specific algorithm to implement, I can figure it out, but I don't understand well how to make programs that actually do something with outside state
<redmp> i'm trying to change out a use of `defaults = { ... };` with something that will override instead
<simonpe^^> clever: I'm not sure how patchelf --print-needed works but I do that AND something like `strings $binary | grep /nix/store` to find all the store refs, so it could maybe be something else than a .so dependency
<mvnetbiz_> I was hoping I could do something like this in a flake.nix, but I get infinite recursion.
<redmp> hoping to find a generic way to do this, or at least something that works in both virtualbox & ec2

2021-03-02

<immae> (I’m not sure if you’re talking about something that works in arch and not in nixos, or something that doesn’t work in either of them)
<immae> vldn: your default.nix should be staritng with something like '{ python3Packages }: python3Packages.buildPythonPackage rec { ...}`
<vldn> hey, i'm trying to build my default.nix via "nix-build -E 'with import <nixpkgs> { }; ( callPackage ./default.nix {} )'" but with buildPythonPackage rec { } ... it complains about "error: attempt to call something which is not a function but a set, at ... customisation.nix"
<srhb> Hmm, I want something to tell nix to replace NIX_PATH lookups with something deterministic in flaky pure eval mode. I don't suppost that's a thing uet, right?
<jess> but yeah, nixos is definitely something i've thought about
<dusty73> Yaniel,  seems to have something to do with the DRM. People mentioned libdrm. I can run it fine if I kill the xserver, but that's not necessary in any other setups. I get the following errors in the Kodi log:
<srhb> clime: Okay, then you'll need something like what the wireguard module does; boot.extraModulePackages = optional (versionOlder kernel.kernel.version "5.6") kernel.wireguard;
<srhb> clime: Not that it can't be done, but loading something from an arbitrary nix store path, even if you succeeded, is bound to eventually go wrong through garbage collection or reboots or whatnot.
<mkaito> I think you can inputs.banana.inputs.nixpkgs.follows = 'strawberry.nixpkgs' or something along those lines
<mkaito> I don't suppose anyone happens to be running libvirt VMs on hetzner bare metal servers? I'm having the worst time trying to get the routed network to work. I suspect the nixos firewall might be doing something to interfere with the rules libvirt inserts, but I'm pretty lost.
<aei> sorry for repeated message, ... i hit something new i weechat and do not get feedback for myself, what a comedy, i see myself (hplar)
<maralorn> supersandro2000: Yeah, I hadn‘t really thought about multiple nom instances. I can make that saver easily I’ll probably do that next weekend or something …
<kenran> sterni: In my pkgs.nix, I add a package with the unique name lbfgsb to `pkgs`, but doing `nix search -f nix/pkgs.nix lbfgsb` and it doesn't hit anything. Going in a repl there finds it though, so I'm thinking something's wrong with the nix search usage.

2021-03-01

<wunderbrick> When packaging something for inclusion in nixpkgs, is there a way to use Rust nightly or is that just a no go? ofborg doesn't like when I use the official Mozilla overlay per https://github.com/NixOS/nixpkgs/pull/114777
<lambda-11235> How do I remove entries from /nix/store? I was trying to cross-compile binutils, so I copied gmrun's default.nix and just changed the src. Something went wrong, and now I have a /nix/store/*-binutils-2.36.tar.x which contains gmrun's code.
<numkem> I have an option I've defined that is a list. I have 2 places that I'd like to append to it. When I try doing something like `services.listOption = config.services.listOption` I end up with an infinite recursion... what would be the proper way to do it?
<cinimod> sterni: I am assuming it tries to build with clang - I am trying to recall how to tell nix to build with gcc - something like `myShell = mkShell.override { stdenv = overrideCC stdenv gcc; };`
<gchristensen> I guess I just need to specify something stronger than a default
<gchristensen> srhb: have you seen this error, or something like it, with morph before? The option `networking.hostName' has conflicting definitions, in `/nix/store/ddl67nlk27q5lv5mrq8si7ppxxgwdh00-ci00h76wb09lgqf0bjjkqvva1nfvxc22-nixpukgsw/nixos/modules/virtualisation/amazon-image.nix' and `<unknown-file>'.
<madonius[m]> is there something comfortable?
<aforemny> Hi, I am following https://mobile.nixos.org/devices/pine64-pinephone.html , flashing mobile-nixos-boot.img to /dev/mmcblk0p1 fails with 'no space left on device'. Indeed that image is 55M big, but /dev/mmcblk0p1 is only 16M big. Am I doing something wrong?
<ronthecookie> the docs are so all over the place that i am scared to venture out every time i have to do something unusual
<drozdziak1> srid home-manager does, otherwise rofi is probably something you don't want to manage systemd-wide

2021-02-28

<mep1911> not supported yet or am i missing something to configure?
<paniash> something like runit or openrc
<tad-lispy[m]> Ah, wait. Something is wrong.
<tad-lispy[m]> I have a feeling that it has something to do with nixpkgs channel.
<__monty__> Propagated build inputs probably means something different from what you expect. Read the definitions in the manual really carefully.
<Reventlov> trying to package something that depends on ghostscript (camelot, a python package) that I added to the propagated build dependencies, and it seems the dependencies are not working for the python package (which seems weird)
<tomberek> hrm....  you can do something with /dev/disk-by-label maybe. I'm not grok'ing clever's proposal.
<abathur> but maybe you tried that and something in the expression breaks

2021-02-27

<manveru[m]> redmp_: i think it was something like `config.networking.privateIPv4`
<pie_67> i get the feeling nicos or the grub install scripts might be doing something funky
<viric> collares: let's see if I learn something :)
<tomberek> nly: hrm.....   `ls ~/.nix-profile/bin -alh` or something like `nix-store -qR ~/.nix-profile`
<tomberek> nly: do you mean something in your PATH or profile?
<nly> how do i find where something is installed?
<le0taku> I have noticed that something on NixOS resets my home directory permissions on every reboot. Does anyone here know what could be the cause?
<apteryx> so there's something with my package cache
<tomberek> ok, i presume  you have looked at bubblewrap issue 297. Strace your application, but i'd suspect it is looking for something at /run/opengl-driver
<moonloo> tomberek : maybe it's something specific to docker because with bubblewrap all i have to do is bind /dev/nvidia-modeset /dev/nvidia[0-9] /dev/nvidiactl in addition to /dev/dri and /sys/dev/char + /sys/devices/pci0000:00

2021-02-26

<praduca> don't know if it is something with my installation, but nix is all about this being not relevant, so... if someone confirms that it is broken, i will fill an report
<tpw_rules> oh sure, if this is just to use it personally then something like that would work
<jonreeve[m]> I think it should be something like `myCryptopp = getItFromGitHubInstead http://github.com/cryptopp/old-version-here`, no?