2020-02-02

<wedens[m]> I'd gladly just change cache's priority so that it serves only something that is not in the default cache
<Hunterkll> if i can get to 75% of how I use BE's at work, that'll be something that'll be worth pitching to ditch more oracle products
<Hunterkll> i figure if there's something close to what I do with solaris (which we also use) and powershell DSC it's worth looking into
<Hunterkll> i might be missing something that'll make it easy here, of course
<Hunterkll> howdy! I was just told by someone that NixOS has something similar to Solaris's boot environment management, IE I can run a BE clone on solaris and have two grub entries that are identical OS boots, but i can modify both independantly without it affecting the other, is that the case?
<slack1256> The error said it couldn't find something on such inode table etc
<adisbladis> Something like this (app.py still needs a shebang)
<adisbladis> Something along these lines:
<{^_^}> If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<evanjs> okay, here's a fun one. trying to get list of fonts minus the big guys, so I'm doing something like this: `lib.lists.filter (f: f.name != "nerdfonts") config.fonts.fonts`

2020-02-01

<worldofpeace> that is something we really should have in the release, dnscrypt-proxy v1 needs to be removed also for the longest time now
<evanjs> aaa_: sounds more like it might be the client terminal emulator or something. hrm
<evanjs> and then just make something in ~/bin like `nixos-lite` or blah because I am lehzy
<evanjs> which would be something like this http://dpaste.com/12EP9N1
<evanjs> aaa_: something like this (untested) http://dpaste.com/3GN11E2
<evanjs> aaa_: did you make sure to include the overlays bit at the bottom? it might make more sense to replace the `let` block with something like the one found here https://github.com/mozilla/nixpkgs-mozilla#using-in-nix-expressions
<OmnipotentEntity> I don't have a standalone example, but if you look into python packages they seem to be largely analogous. This is something I haven't done personally though, so it's outside of the area where I can confidently guide you, sorry :(
<needthemes> What is a fixed output derivation like described in https://github.com/NixOS/nixpkgs/blob/a21c2fa3ea2b88e698db6fc151d9c7259ae14d96/pkgs/data/themes/adapta-kde/default.nix#L16 ? I think if I wanted to customize this expression for another theme I'd need to change that to... something?
<{^_^}> needthemes: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<needthemes> function that has an argument without a default value ('stdenv')`. How can I make this "default.nix" something that works with "nix-build" and be able to nix install it? My end goal is to customize the github repo stuff and see if that simple change will allow me to install the sweet kde theme. Eventually I'd like to put it in my overlays or
<wedens[m]> I wonder why we're stuck with libvirt 5.4.0. anyone tried to update it? they seem to have changed something in the build process and I can't build the latest version
<aanderse> ToxicFrog: run something like this in a shell: nix-shell -p 'perl.withPackages (p: with p; [ DataDumper DBDmysql DBI TermReadKey ])' then inspect it
<aanderse> ToxicFrog: IIRC you'd do something like `let perlEnv = perl.withPackages (p: with p; [ ModuleBuild LWP etc... ]); ` then just pass `perlEnv` to `buildInputs` and everything will automagically be taken care of
<morket> Trace/breakpoint trap (core dumped)`. Aren't all dependencies supposed to be installed by the script? Am I missing something? I'm new
<ivan> something is setting it to 131072

2020-01-31

<LnL> something like this but dropping permissions after the daemon instead of just exec should work
<four> Alright so I was able to get past the sha hurdle, but now I'm running into an error while building. Here is my expression if anyone sees something I'm doing wrong. https://pastebin.com/5v5a54uv
<talqu> hi, i've installed nixos on my virtualbox in windows. I have virtualisation.virtualbox.guest.enable = true; as well as latestkerner, however, i cannot make this nixos guest get fullscreen (something wrong with guest additions?)
<zeta_0> rycee: I am getting an error, attribute 'nur' missing? am I supposed to import something as well? https://gist.github.com/zeta-00/1fa6a39fcc823d1cd21b8dad9d18483e
<Henson> is there some way to make NixOS place a particular file in etc? I know of the environment.etc set in configuration.nix. I'm trying to put something at /etc/systemd/system/systemd-nspawn@foo.service.d/override.conf but it gives me build problems with nixos-rebuild
<jared-w> https://nixos.org/nix/download.html basically right after the "as any user other than root" verbiage, just adding something along the lines of "for a multi user linux or macOS installation..."
<drew__b> and if it is isolated to certain distros or something
<evelyn> hmm, is there something like $storePath to get the final store path, so I can whitelist it?
<peelz> is this an error with the makefile or am I doing something wrong?
<mudri> ddima: Part of the problem is that there's no mention of it at the start of the Python section. It says something like “there's a difference between installing applications and installing libraries”, and then proceeds to explain libraries in great detail. It'd be good to have a forward reference to where applications are explained.
<karantan> I actually have one python package that I'm hosting (in private) packagecloud.io. So atm on ubuntu I do `apt-get install <my-package>`. Can I do something similar in NixOS?
<jtojnar> California has something like that too

2020-01-30

<infinisil> I occasionally need it when running something that takes a bit too much memory
<lovesegfault> I can't think of something other than SWAP that I want unencypted on my box
<lovesegfault> I mean, it does seem like something that is easy to remedy, even though from that ticket it's unclear to me whether you need to send WITH -L or WITHOUT -L for it to work
<qyliss> It's certainly not something that's been considered in-scope up to this point, AFAICT
<qyliss> Is avoiding /bin/sh something we generally try to do?
<Ankhers> I just switched to using sway. I have networking.networkmanager.enable = true in my configuration.nix. However, my wifi networks are not automatically being connected to. Should I be installing a separate package or something in order to connect automatically?
<candicelove[m]> Hi, are you already on a free sex dating site? This is something incredible! Registration is just a couple of minutes and most importantly everything is free, try http://bit.do/sosaty
<infinisil> Oh that might be something yeah
<hyper_ch2> what makes you think I know the location of something that you are looking for?
<mudri> My question: has something been done to fonts recently on nixos-unstable? I'm having difficulty debugging why Firefox has started resolving bold Japanese to shit.
<mudri> xa0[m]: Are you talking about the namespace management or something? I can't think of so many differences between Nixlang and Scheme, other than the macro system.
<peelz> ok thanks lol, thought I was doing something really wrong
<peelz> hmm well strings is something I use every now and then
<peelz> petersjt014[m]: not sure if I did something wrong but it's not even showing up in the systemd one
<petersjt014[m]> here, do something like
<petersjt014[m]> Enzime: try something like `types.str or types.null`. I can't test that rn but it seems like the intuitive answer.
<petersjt014[m]> <thongpv87 "Does anyone use Thinkpad X1 Extr"> If you're following exact instructions and not getting the expected results I'd submit an issue to the github page. Might be that you missed something, but hardware is picky so maybe not.
<lovesegfault> Something like that

2020-01-29

<dashkal> I'm currently running that. What incantation do I need for clipboard integration? Something in keybinds I suppose.
<dashkal> Hrm, suppose I could rig something so most of everything stays in a copy-on-write to ramdisk except for /etc/nix*
<dashkal> How sane is it to setup nixos on a usb disk? Context here is I want something not my main hard drive to contain the experiments until I find a configuration that works with this laptop. Something persistant between reboots.
<drakonis> because on average, if something breaks, everyone will see it break when they upgrade
<aiverson> How would I get lorri daemon to stop building things unless something has changed?
<astk> ok, well, thanks for the help anyway, getting 99% of the way there is still something i guess
<astk96> should i use stack or something to try and get the correct versions?
<astk_> clever: could it be something to do with needing to tell nix which dependency to use?
<astk> i dont know how to tell it to use haskell-ci instead of multi-ghc-travis, since it does not have something to swap
<astk> which should be something like 198... and its 127..
<astk> do i need a --configPath option or something?
<astk> i cant seem to do nix-build, it says something about; nixpkgs.config.allowUnfree = true;
<astk> is it saying something like "the cabal.project file is pointing to packages that are via .cabal files, replace these with the nix version generated by callCabal2nix" ?
<srk> for add-hoc environments you can also do something like nix-shell -p "haskellPackages.ghcWithPackages (pkgs: with pkgs; [ cryptonite ])"
<astk> is there something like cabal init for nix?
<astk> i was having difficulty using virtualbox because of something to do with bridged addaptors and ssh, is there an alternative?
<turion> should I chroot or something??
<turion> Is there any way how I can debug this better? Run something with lots of -vvv
<LnL> something something dos
<__monty__> Hmm, does buildPythonApplication set the SOURCE_DATE_EPOCH to something different from 0?
<pingiun> should I add myself to a group or something?
<samueldr> I guess that's not really something the bot is ready for?
<worldofpeace> I will probably mention it because it's actually something I'm seeing too much, and I've been seeing people's feedback recently that it's a turn off to contributions sometimes
<samueldr> though I think it was automated on his side, IIRC, but manually activated or something of the sort
<pmyjavec> Something is working though because the video performance of X is 1000% better
<b7j0c> hello. when I install perl with `nix-env -iA nixos.perl`, and then install something like the the JSON package with `nix-env -iA nixos.perl530Packages.JSON`....I cannot load the package with `perl -e 'use JSON'`
<noonien> clever: i'm building a language evaluator, something similar with https://github.com/tilpner/qeval, it would have been great to know the full dependencies in nix, then perhaps i could create a base squashfs with the common dependencies between all images i need, and then only have extra ones in their own image

2020-01-28

<{^_^}> If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<pikajude> and i guess something must be configured incorrectly
<pikajude> could i run something behind openvpn without affecting the rest of the container
<mehlon> just froze up my system by trying to build something in gentoo
<drew_b> sandbox = false did something
<makefu> ah that was not the first but the ... third or something
<cransom> right. that sounds fine. i assume something looking for /usr/bin/bash is a problem, maybe it's not allowed in sandboxing? is it listed in sandbox-paths in /etc/nix/nix.conf? i know nothing about the nix bundled for other distros, but thats my only thought.
<drew_b> maybe this is something I want to look into?
<Guest50319> i think that's trying to CALL /usr/bin/bash on something
<AmandaC> Oh goddesses above, I remember being asked to do something in a tech school class, but I needed to updatemy USE flags to be able to communicate with the hardware I was asked to messwith, and spent the whole class with a heater on my lap whileI rebuilt the world.
<clever> grin[m]: for non-efi installs, you must set something like boot.loader.grub.devices = [ "/dev/sda" ];
<grin[m]> It's also not clear whether `nixos-install` uses the config or the already built system (eg. do I have to rebuild every time I change something in the config).
<aveltras> oh, seems it was due t something else in the file
<wedens[m]> btw, will doing something like `pulseaudio = symlinkJoin [ pkgs.pulseaudio myconfig ]` in an overlay, where 'myconfig' contains modified files work? I'm not sure how symlinkJoin handles existing files
<blumenkranz> I think I will wait it out. It's something that's happening to everybody, isn't it?
<zeta_0> noonien: i want to install ruby with some ruby packages in home.nix, since those instructions are for something else i am not sure how?
<four2206> After adding the line here https://nixos.wiki/wiki/Vim#Python_3_support_for_vim to my packages list (not 100% this is where I should have put it), I get an error when building the configuration. error: attempt to call something which is not a function but a set, at /.../nixos/lib/customisation.nix

2020-01-27

<{^_^}> attempt to call something which is not a function but a string, at (string):277:18
<{^_^}> attempt to call something which is not a function but an integer, at (string):276:16
<kamadorueda> Hello ladies and gentlemen, maybe someone knows a way to speedup nix-build's ? like running it on ramdisks or something ?
<noonien> something external, that you call using nix perhaps
<Yaniel> something something hammer & nails
<simpson> noonien: I mean, which language would you pick instead? I guess something like Dhall might have better string parsing.
<noonien> tbh, that's probably something you should do outside of nix
<simpson> fresheyeball: Sure, I guessed something like that. Nix *does* have the types that would be needed for the numerical work of color blending, but the string-parsing bits are tough.
<noonien> hmm, if i have a function with a set pattern as its argument, can i do something like {name as tname}?
<adisbladis> noonien: You could always stick something like `export PATH=${lib.makeBinPath [ pkgs.somePkg ]}:$PATH` in your script
<notgne2> anns: it's a little harder for me to sum up how to make Nix derivations, but that's something worth looking into
<gustavderdrache> not sure if that's something to address or not
<gustavderdrache> i've tried adding cacert to the image but it doesn't seem to be working - is there something i'm missing to get openssl to pick up on the cacert bundle?
<astk> do i have to run the exes on the remote machine using something like cabal v2-run ?
<astk> is there a bin dir or something it uses to do this?
<astk> or is it something to do with running nix also on the remote server, to bypass the OS there
<infinisil> gchristensen: The idea would be to not have that by not using an overlay, but something like `pkgsWithAllOverlays // { systemd = config.systemd.package; }`
<infinisil> qyliss: It might actually be possible to have something like an overlay (but not quite) to set pkgs.systemd to systemd.package
<NemesisD> i must be doing something else wrong. i'm trying to install this derivation i wrote in my system packages: https://github.com/MichaelXavaier/filebot-nix/blob/master/default.nix but when it builds i get `error: creating a garbage collector root (/nix/store/4m4yn1vmfi1v4lndqvd7cvl938pbgj7b-filebot-4.8.5/result) in the Nix store is forbidden`

2020-01-26

<jakubgs> or is there something more clever?
<jakubgs> do I have to run :r and then :p every time I change something? or is there some way for the repl to reload and run something on file change?
<tomberek> gchristensen: the idea might work as a subcommand to nixpkgs-review. "suggest-pr" or something that shows you a list of PR titles that match things you have on your local system or profile.
<tilpner> But if you don't have a line similar to that, that's probably something you want to try
<NoctisLabs> Something odd happened, I rebooted my PC and my left audio channel was decreased to 18%, I thought my headphones were broken for a moment there :P
<bhipple> sondr3: not all packages in the nix store have to be directories. If you wanted to, you could make your json file just == $out at the top-level, e.g. something like /nix/store/<hash>-pkgs.json

2020-01-25

<ryantm> gchristensen: That sounds like something useful to look into. Here's the service configuration https://github.com/nix-community/infra/blob/d4d477fc123a35e7a6a727c2eb3184681e0396d7/build01/nixpkgs-update.nix#L48
<gchristensen> ryantm: it sounds like it is WantedBy multi-user.target or something, but is not RemainAfterExit?
<infinisil> kraem: data/enc is a dataset within the 'data' pool. There's no such thing as a subpool (unless something changed and I'm out of date)
<ongy[m]> Hey, is there something special to do on nixos for firmware loads? I added linuxFirmwareNonfree to the system.environment list, but searching for them on the filesystem they are only in the store (And aren't loaded). If I copy them over to /lib/firmware manually they are loaded on firmware load
<tilpner> philipp[m]: Is there something you're trying to do, are is it just curiosity?
<evanjs> Looking over some examples... this looks far easier than I expected. Especially with my current setup. Something like ` emacs23Packages = recurseIntoAttrs (emacsPackages emacs23 pkgs.emacs23Packages);` that’s easy, then 😄
<ar> if it lists it with url first for you, something went wrong
<wedens[m]> or reference it directly like `config.Cmd = [ "${something}/bin/something -c ${./myconfig}" ];`
<epl692> Having issues with getting nixops to run, it makes the virtual machine, starts configuring it, then dies with an error. Is there something I should be doing differently? https://nixos.org/nixops/manual/#idm140737322662048 <=following this tutorial, copyed and pasted the files exactly

2020-01-24

<zeta_0> i included haskellWithPackages in both the let and in parts, as well in the environment variable, am i missing something?
<infinisil> quiet_laika[m]: It doesn't. Only when you add something like `nativeBuildInputs = [ cmake ]` it should use cmake
<NemesisD> hmm something else must be going on then
<pie_[bnc]> i didnt think to search it because "why would anyone ever do something like that"
<sondr3> zeta_0: I think something like this might work https://hastebin.com/idolujojop.bash, it's close to how I've done it previously with Python + packages
<zeta_0> sondr3: that did not work either, i am guessing that it has something to do with the syntax because the whole thing is not being highlighted as a string?
<sondr3> and I'd import those package like `pkgs = import ./default.nix { inherit pkgs; };` and run something like that over it infinisil ?
<infinisil> Something like that
<sondr3> sigwinch28: most of the files in nixpkgs _declare_ how to get, build and install them, they are in a sense a recipe for building packages/services. AFAIK everything that declares how to build something is a derivation
<sigwinch28> sondr3: I got the gist of that from some googling (it reminds me of enabling extra repos with apt and then pinning specific packages in distros like debian), but I'm looking for some understanding here about why I can't use this nix expression to build a deriviation and use it in my system. Is this something I can learn from the Nix pills?
<tlater[m]> zeta_0: You'd use something like ${pkgs.ghc}/lib/ghc-*
<DigitalKiwi> https://myfriendshate.me/files/glirc-otr/default.nix I recently made this; in the installPhase I'd like to put the glirc-otr.so somewhere static as I have to put the location in a config file so I'd like it to be the same no matter the version; I was thinking something like /var/lib/glirc-otr/glirc-otr.so might be appropriate. So a. would that be ok and b. how do I do that? what bash commands go in installPhase? is it just a mkdir cp?
<qyliss> And that would mean that an administrator would have to run nixos-rebuild every time a user changed something in their home.nix.
<Shoubit> NemesisD, fwiw you can also use `fetchTarball` for Github, their URL format is something like: https://github.com/<owner>/<project>/tarball/<branch or commit sha256>
<evanjs> is this something you're packaging?
<tlater[m]> MasseR: I've experienced similar things while playing around with `gpg --homedir` - I suspect it has something to do with running gpg-agent as a systemd unit vs manually invoking it
<nihh> Looking for a name or something s.t. I can look up the available constructs
<bhipple> with the nix ecosystem and do something like python.withPackages(p: [p.numpy])
<tooeasy2do> I tried just installing the package but when i want to install something using pip i get an error for setup tools
<tooeasy2do> Hey guys, i kinda need help with something, i am very new to nixos
<iqubic> If you include python as build input, you might be able to add something to the prebuild hook.
<pie_[bnc]> clever: something about autogen templates https://stackoverflow.com/questions/46055110/makefile-def-vs-makefile-am
<pie_[bnc]> like, maybe it builds everything but fails at runtime if its not linked against libzfs or something
<evanjs> noonien: might be something with nixpkgs.hicolor-icon-theme. If I don't have that installed, for example, taffybar will crash when I open chrome or etc
<pie_[bnc]> clever: something weird is going on, setting zfs = null in an override doesnt even fail the assert
<pie_[bnc]> what do you mean <clever> pie_[bnc]: why not name your custom module something unique?
<clever> pie_[bnc]: why not name your custom module something unique?
<qyliss> I really need to do something to stop me doing that
<infinisil> But I don't know of an example of something like this

2020-01-23

<jgt> clever: I needed to do something like services.ejabberd.package = pkgs.ejabberd
<jgt> I'm doing something like services.ejabberd.enable = true;
<veleiro> would have to use something like this https://github.com/hercules-ci/arion
<simpson> veleiro: I have `docker build` working at home on my NixOS laptop, I think. I'm not sure what extra effort I did to set it up; there might be something in configuration.nix? But I think I just added the userspace tools to my user environment and that was enough.
<samueldr> then the next word is the channel for the release, either something like nixos-XX.YY or nixos-unstable
<Shoubit> Simerax, maybe it would help if you showed us how you're trying to use it in a gist or something
<Simerax> is there some tutorial out there how to customize sddm under nix? i found that you apparently have to write some .nix files but i dont really know what to do. I would really appreciate a short and concise explanation on how to do something like that and not the just all of the nix documentation on how to build stuff
<evanjs> and then something like `pkgs = pkgsFn { overlays = [ mozOverlay ]; };`
<evanjs> yeah rather than import the nix file you can just do something like `mozOverlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);`
<evanjs> sondr3: sounds like something an overlay might help with https://nixos.wiki/wiki/Overlays
<evanjs> before I was unable to retrieve modules (at least via nixos-option or eval) that were in xUserConfig and userConfig, I think it had something to do with mkAliasDefinitions?
<tlater[m]> Very much not nix-ey, but having something create files in $HOME in uncontrolled ways feels so dirty...
<gchristensen> that number is TOO stable. something must have gone wrong.
<Rovanion> I'm having trouble getting muli-user nix working. I ran the setup script with --daemon as a flag, but when I then run nix-env -iA something as a normal user I get the error that a number of files/folders are only readable/writeable by root; for example /nix/var/nix/{profiles,gcroots}, and /nix/var/nix/db/.
<rauno> ikwildrpepper, so basically something like nix-store --add-root $(nixops dump-nix-paths -d deployment_name) ?
<ikwildrpepper> nixops dump-nix-paths or something like that
<jw358> is there a section of nixpkgs manual or something that i'm missing?
<jgt> or is the problem perhaps not reading the file, but something else?
<ikwildrpepper> at least, I see a progress bar and it is doing something
<ikwildrpepper> robocopobobo: something like this should work: https://pastebin.com/LVmH5WhV
<infinisil> rizary_: Ah, the problem is that other packages in nixpkgs use something like pkgs.gnupg.override { bzip2 = ...; }
<buckley310> fresheyeball: something like this: extraConfig = '' location /static/ { add_header Cache-Control 'max-age=31536000'; } '';
<adisbladis> re systemd: I do think we're in the interesting position were we _could_ potentially make systemd optional since in theory at least we generate our own systemd units and that could be turned into something backend agnostic

2020-01-22

<some_random_dude> And I'm not using something like dnsmasq either
<some_random_dude> Question. I added a bunch of hosts to block through the extraHosts option. I verified that they populate /etc/hosts. However, when I do something like `ping facebook.com`, it doesn't block them. What gives? :(
<patrl> Simerax: I typically just browse through the nixos options until I find something that looks relevant
<patrl> I have `services.upower.enable = true`, in my config but the upower service is inactive (dead) until I manually run something like `upower --monitor`
<alienpirate5> i would need to name it something else though as the entire package is unfree
<adisbladis> alienpirate5: Something like `{ dataZip ? pkgs.fetchurl {...} }: stdenv.mkDerivation { ... }`
<infinisil> nbp: I just thought about this earlier, and I think using something like the NixOS module system for all packages would solve this in a nice way
<chagra> oh yeah I know, that's why I have it for this specific little thing. I'd never not pin the version of the tarball I'm downloading for something I consider critical
<infinisil> cyris21260: Something like `let pxlib = import ./pxlib; in` in the pxwrite file
<hpfr[m]> Isn’t that based on nix or something? I can’t use similar logic with the nix CLI?
<infinisil> This should answer your earlier "Oh ok, I’m guessing linuxPackages includes headers and docs or something"
<hpfr[m]> Oh ok, I’m guessing linuxPackages includes headers and docs or something
<hpfr[m]> infinisil: you have to name something to .overrideAttrs, and I’m curious how I figure out what I’m naming when it’s not obvious by the metadata in the derivation or something
<hpfr[m]> You couldn’t do something like src.sha256?
<iqubic> Is there something special we need to do get grahamcofborg to re-run the checks, or is that automatic?
<clever> simplest way to avoid confusion from `with pkgs;` is to just name your thing something else
<iqubic> Or would I have to do something else, because I have that with pkgs part?
<iqubic> So, I guess something isn't working properly.

2020-01-21

<hpfr[m]> I put fetchFromGitHub in the arguments in my configuration.nix and I get attribute missing when I try to use it, is there something else I have to pass in?
<trevthedev> cfdisk, haha. Would use fdisk but I'm hyper anxious so I'd end up accidentally hitting the wrong thing or something and not noticing, haha
<neeasade> now I get something interesting -- error: undefined variable 'out' at /etc/nixos/expr/default.nix:19:52
<zeta_0> evanjs: i configured all the things they told me on the #xmonad channel, but it has still not fixed my issue, maybe this is a nix problem and i am missing something that provides that functionality
<hpfr[m]> Can someone more familiar with Nix build paradigms suggest where I could find something to overlay?
<hpfr[m]> I found this https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel/manual-config.nix which appears to be where the patches are applied. I can’t find a patch command or even some kind of patchFlags option, so applying patches must be completely contained in mkDerivation or something.
<Raito_Bezarius> so I think I'm the one who has done something wrong
<digash> clever: hmm, am i missing something mxml is repeated twice in your question?
<{^_^}> digash: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<evanjs> I have to wonder if I’m doing something wrong, as many of the example shells don’t mention setting ANDROID_HOME. For context, I al trying to build a gradle package.
<evanjs> Is needing to invoke hash misses something we'll always have to do when testing packages like this?
<srid-irccloud> something I think `ii` would be more interesting with tmux panes. you can't spread irssi windows across tmux panes.
<srsrsr> I'm stuck with something and did not find where to find for the error. On nixos I'm trying to install a package with opam but this one failed because it could not find the library gmp
<Raito_Bezarius> I see something: janv. 21 12:47:23 konpasu hydra-queue-runner[4053]: loading build 2 (track:.jobsets:jobsets)
<Raito_Bezarius> now I have something like
<pmiddend> I'm guessing something is set up wrong there?
<pmyjavec> NinjaTrappeur: Ok, mauye I did something wrong. I thought I flashed 20.03 to a USB stick and it till had the 4.x kernel.
<turbo_MaCk> arianvp: that's weird... something has to tell linker about that glibc from nix/store.. Let me think
<NoctisLabs> Yeah, something lightweight written in C that nix already has a module for.
<hpfr[m]> Just tried some other terminal emulators with nix-shell. Alacritty and kitty have the lag issue, st, urxvt, and termite do not. Is this something with GPU acceleration? I’m on Nvidia
<fuzen> The distros that Linode has pre-configured have systemd as well, so it should be something NixOS has configured by default
<infinisil> evanjs: oh hn that might be something to fix with all-hies actually
<evanjs> infinisil: yeah, figured as much. hies problem earlier was just that it needs ghc _somewhere_ derr derr derr - I either need to add a shell.nix to my x/wm folder or something -- would rather not add it systemwide

2020-01-20

<infinisil> YellowOnion: So something like `system.build.squashfsStore = mkForce (pkgs.callPackage (pkgs.path + "/nixos/lib/make-squashfs.nix") { storeContents = config.isoImage.storeContents; comp = "..."; });`
<AmandaC_> or is that something I'm supposed to do some other way
<Tjowers> Yaniel I was just looking into hash functions yesterday. That is something I want to solve
<Tjowers> I want something exciting to work on
<lovesegfault> You don't need to do something illegal to do something that sucks
<lordcirth_> lovesegfault, sure, but it doesn't hurt to ship something sane
<Tjowers> NixOps is something I want to look into
<Tjowers> I might start writing something like that
<kraem> ddima: thank you for catching the url. everything built fine with the wrong url for some reason but when i tried to execute ./result/bin/.. i got something along the lines "unrecognized symbol". after retyping the url the help msg is printed when executing :) thanks!
<DigitalKiwi> would it be --with-unrar ${unrar} or something
<tlater[m]> So the solution is to use something like this: https://github.com/TLATER/dotfiles/blob/master/nixpkgs/home.nix#L76
<tilpner> tmplt: Does adding -p pkgconfig to your nix-shell line change something?
<tlater[m]> __monty__: So, I suppose my question is, is there something to force out what I thought `propagatedBuildInputs` does? Or do I need to try and rewrite things so that my configuration file depends directly on those packages?
<__monty__> The propagated doesn't mean it's available at run-time. It has something to do with cross-builds. According to docs: "This would be called `depsHostTargetPropagated`..."
<kraem> looking at modules/services/networking/ssh/sshd.nix: Protocol 2 is written by default to the config file, but it's not there doing `cat /etc/ssh/sshd_config`. am i missing something?
<kini> So I guess I should think of `config = ` as the canonical form, and not writing `config = ` as something that will be transformed somehow into the `config = ` form... but only if the module is simple enough to do so
<zeta_0> gchristensen: could you help me with something real quick?
<infinisil> Valodim[m]: Yeah something like that should work :)

2020-01-19

<selfsymmetric-pa> I've noticed that lately more of my NixOS rebuilds have been reporting that the daemon is busy. Running the job again seems to fix it. Has something changed with the behavior there?
<noonien> what does `'` mean after it's appened to something, i don't know what to search in the manual for
<infinisil> noonien: You mean something like {^_^} does here?
<eyJhb> Would be nice with something that could automatically generate them (if wanted)
<aanderse> do you have any concept if it would be possible to extend the type system to make a type like attrsOf that keeps context in the keys? i see attrsOf is defined in types.nix, but something tells me that might need tob be changed in the c++ code... no idea
<symphorien> if you think you corupted something, maybe run nix-store --verify
<juhe> Even though it didn't lead to resolution of my problem, I've learnt something new :)
<colemickens> Dagger: unless the goal is to make many devices visible to each other rather than just exposing a single local port outward. I think the multi-device VPN warrants something likeWG
<hpfr[m]> Well as long as you’re here I’ve got a dumb networking question. I’m behind CGNAT at home and I want to be able to access my home network while away. I can’t just set up a VPN because of CGNAT and also because my ISP doesn’t support IPv6 >:(. Do I get a small VPS and do site to site and connect to the VPS? Or something else?
<colemickens> I wish I had something more useful to suggest. Most of my attempts to package non-source builds have ended in failure
<danderson> the fact that autoPatchelfHook isn't inserting the glibc rpath suggests to me I'm doing something wrong and using the wrong libc package as input or something, but looking at other unfree packages, they seem to do fine without further tweaking...
<danderson> I'm sure I'm missing something obvious... I just don't know what :(
<danderson> okay so... does `ldd` not resolve rpath correctly or something?
<infinisil> michalrus: Here's an operator reference if you meant something else: https://nixos.wiki/wiki/Nix_Expression_Language#Operators
<michalrus> Hi, how is this `isNull` operator called? I remember something like `a = b ? c`, and then `a == c` if `b` was null
<worldofpeace> evanjs: I'm confused, "any ideas as to why gdm might not initialize mtrack/touchpad", is mtrack something else?
<ajs124> I don't even remember why I use the legacy driver, tbh. There was/is some reason though. Maybe acceleration curves or scrolling or something.

2020-01-18

<hpfr[m]> jackdk: yeah I know, I was hoping there was a mirror or something
<mkg20001> <DigitalKiwi "mkg20001: did you see https://lo"> yes, but I don't see how it relates to the changes in the PR. or did I miss something?
<Guest85327> could this be due to something I've inadvertantly screwed up?
<wnklmnn[m]> tilpner so its usual that it uses that much memory. I just wasn't sure if I did something unusual
<evanjs> would file an issue, just unsure if it's something dumb I'm doing :D
<myskran> DigitalKiwi: IIRC you can do it by putting `history -a` in your prompt or something
<clever> o1lo01ol1o: it also depends on luck, and if you deleted something that somebody needed
<emily> dconf-editor is pretty hard to use in gnome because the schemas of most applications aren't in scope by default unless you add them to services.xserver.desktopManager.gnome3.sessionPath, so the settings don't show up unless they're edited and even then have no documentation/etc... am I missing something that makes it work better?
<k0ral> trying to create a derivation for a python library + application that builds/installs using poetry + pyinstaller: https://github.com/pawamoy/aria2p/blob/master/Makefile ; am I supposed to write the complete build/install steps manually, or is there something from nixpkgs I can re-use ?
<gwen> Valodim[m]: I guess you could also try to install nix 2.0 from the newest repositories, maybe something like `nix.package = (with import <nixos-new> {}).nix;` in `configuration.nix` (where you would have one nixos channel for 16.09 and one nixos-new channel for 19.03)
<wedens[m]> if you do something like "${./dir}/file", then the whole dir will be in the store and youl'' have a path to a "file" in the store
<evanjs> I need something that updates my nix search and nix-index daily...
<clever> kreisys: try adding a name="something"; to your lib.cleanSource call
<clever> kreisys: you would need to use a postUnpack in something like fetchzip, to edit it before the hashing
<clever> hpfr[m]: it stops something like nixos-rebuild from making a total mess all over an ubuntu machine
<clever> in this case, you can just blindly `chown +w -R $out` each time you copy something
<Raito_Bezarius> I tried to use symlinkJoin but I need hard links because I cd into one of the folder and use it with something which refers to the path and do some ../folder from the joined symlink stuff and it does not work because of soft linking

2020-01-17

<NoctisLabs> I'm kind of a NixOS noob so I'm probably missing something simple, but this used to work last I tried ~4 months ago.
<aanderse> oh yeah maybe they split the nixops backends into a different repo or something at some point?
<Shouou> How am I supposed to specify dependencies with haskell.lib.buildStackProject? Do I still pass in a ghc.withPackages? Do I add ghc as an argument that stack passes in, which maybe has the appropriate libraries? Something else? I assume not buildInputs.
<jonreeve[m]> infinisil: Thanks. Although I can't quite seem to get it to work. Am I missing something here? https://gist.github.com/JonathanReeve/98dc517ef74ba0ed6323eea524bc67fe
<dalto5> I think last time it happened when was I wanted to try the version of kodi from nixos-unstable but something was bringing kodi in from 19.09. I ended up with both installed.
<thomashoneyman> there's like a --requisites command or something
<thomashoneyman> ...if I'm on the right track with that understanding then I must be doing something else wrong
<thomashoneyman> then i would expect to be able to something like
<thomashoneyman> If I use `pkgs.fetchFromGitHub` on something like this: https://github.com/moretea/yarn2nix/blob/9e7279edde2a4e0f5ec04c53f5cd64440a27a1ae/default.nix#L2
<thomashoneyman> I think I'm fundamentally misunderstanding something about imports
<Ankhers> shell. And do I really need to do something like that?
<Ankhers> I am trying to build something and I am getting an error about not being able to find libclang.so. Fair enough, I make a shell.nix with stdenv.mkDerivation and pass llvmPackages.libclang into the buildInputs. I enter the nix-shell and when attempting to build it, I still get the error that it is unable to find libclang.so. The error says I can use LIBCLANG_PATH variable to point to it, but I really do not know how to do that with a nix

2020-01-16

<erasmas> there's either something very special about the environment hydra runs builds in, or it's doing some magic with the pkgs set
<lovesegfault> infinisil: Oh, no; I have something more like this
<lovesegfault> Any ideas? Something more Nix-y
<kraem> I changed the the rev in pkgs/os-specific/linux/facetimehd/default.nix but it didn't seem to build any new derivation of the pkg upon `nixos-rebuild -I nixpkgs=path boot`. Is there something I'm missing?
<catern> right now I'm thinking about maybe explaining fundamental Nix philosophy stuff, basic Nix language and packaging stuff, how to declaratively manage packages, how to do basic overriding, but maybe there's something else that would be higher priority? and maybe I can't fit all of those...
<Guanin> gchristensen, do you use something to redirect the output of dragon to your host? My problem here is that the system is used by a non-tech person (classical case of family tech support), so it needs to be at least somewhat intuitive or scriptable
<TheCommieDuck> do I have to set my locales to en_US or something?
<evanjs> I'm just glad it was something so simple, and I didn't need to rework half of my config :D
<evanjs> yeah I think it was something like new-modules/something -> ../../config -> new-modules, etc
<evanjs> So the infinite recursion only happens when I switch nixos to something other than 19.09, e.g. https://nixos.org/channels/nixos-unstable. Hrm....