2019-01-09

<dmj`> clever: I want something like this: nix-build '<nixpkgs>' -A ipopt && cat ./result/lib/pkgconfig/*.pc
<duairc> ToxicFrog: Aha, I knew there was something that was like a systemd version of pstree, but I couldn't for the life of me remember what it was
<pbb> Hi, does anyone know how I can find out what module/package pulls in something, in this case xterm into my user profile?
<arianvp> maybe something with threads?
<wedens> yeah. `readFile` seems to cut off dependency graph or something like that
<wedens> let me try something ...
<srhb> But anyway, the fact that manual garbage collection removes it is sufficient to tell us that something is up.
<srhb> Something else is going on. Time to share your code :)
<b1000101> sphalerite: sure, that's what I'm doing at the moment, but I still think a GUI would help. At least to understand (very easily/graphically) how channels work and what packages are currently in the system, etc., etc. ...purely for visualization purposes. But I guess if that's something that I'm concerned with, the best way to address it would be to do it myself :).
<gchristensen> anyone with an ext4 root and docker enabled available to test something?
<sphalerite> b1000101: yeah… but it's not something any particular company has needed or anything, so all the attempts have been hobby projects that their respective authors got bored of
<b1000101> sphalerite: I noticed there was a NixOS assembly when leaving :) ...isn't there a plan/need for something like the nixui or not really?
<b1000101> hi! is there something similar to nixui or a followup project like it? I'm trying to push NixOS to common linux users as I absolutely despise Mint and a nice GUI "software installer/channel switcher" would be extremely helpful.
<AK> symphorien: what if desired font isn't in nixos repos. how can I install something from github repo?
<symphorien> AK: something in the lines of fonts.fonts = [ pkgs.font-awesome_5 ];
<das_j> Is there a way to dynamically build $NIX_PATH imports? Something like <nixpkgs/ + ${packagePath}> ?
<clever> psy3497: then you may just want something like `nix copy` or `nix-copy-closure`
<clever> psy3497: let me double-check something
<pie___> wedens: im not an expert but if its part of your configuration it shouldnt be gc-d? also i dont think theres a gc by default. maybe /tmp gets cleared or something and some things in /etc may get rebuilt, i dont remember exactly, but i dont think theres much more than that
<wedens> why `zsh-files` disappear from the store after reboot? https://paste.ee/p/BFlNe (minified configuration) they're referenced in zshrc by substituting `@my_zsh_files@`. am I missing something ovsious?
<pie___> Mic92: i think there are some long standing gripes with qt things, would be super nice if someone managed to do something about it ;P
<paulvictor> Looks like something's messed up with my home-manager config
<das_j> So I need to call nix-env with something -I <helsinki>/4pkgs
<das_j> Something like buildInputs = [ <nixos-config> ];
<paulvictor> Looks like something's messed up with my home-manager config
<porrifolius> something like "ghc-mod-core = self1.callCabal2nix "ghc-mod-core" (self.fetchgit { ... }"? But what goes in the url and revision for the fetchGit expression?
<srhb> While sandboxing is obviously preferable it's probably not something you can rely on..
<porrifolius> elvishjerricco: maybe I need to take a step back, am I trying to do something stupid? I was trying to use ghc844 to set up a generic development environment (hlint, haskell-ide-engine, ghc-mod, etc), but now I'm down to problems with versions of base. Not good.
<elvishjerricco> porrifolius: Nah what you're doing is something I find myself doing from time to time for sure
<ottidmes> duairc: me neither :P just looked it up, thinking the makeScope used to define libsForQt5 probably had something to make overrides like mkDerivation has
<duairc> At the moment I'm doing something like libsForQt5 = super.libsForQt5 // {qgpgme = super.libsForQt5.gpgme....}, but it doesn't seem to work
<ottidmes> or it probably is, but not something external its available like normally in nixpkgs
<duairc> srk: Yeah, I'm actually using overlays as well in another place, but I'm just trying to quickly and dirtily test something really
<duairc> Perhaps I'm doing the override wrong such that something else that depends on gpgme is not picking up my overrided version, and it's still trying to build the normal one?

2019-01-08

<Baughn> mgdm: I'd recommend using something else for a base OS. Or alternately, not using kubernetes -- minikube works fine, and K8s is rarely the best option for a personal system of any kind. NixOS does have some very good alternatives.
<porrifolius> elvishjerricco: Something new to learn! :) I'll have a look at doJailbreak... having not done anything like this I guess I'll end up with something in the myHaskellEnv expression in my config that wraps memory/polyparse with a doJailbreak over base... something like that?
<elvishjerricco> porrifolius: Something like this should do the trick https://www.irccloud.com/pastebin/nZiR2IoK/
<porrifolius> elvishjerricco: I don't believe I'm using any nix expressions but what comes in from the channel... so I'll have to set up some overrides or something for failing packages? After figuring out what version of base ghc863 actually provides?
<duairc> One of the tests, something about ToFU
<__monty__> Huh, I'd expect them to stack. Unless you're pinning nixpkgs or something.
<fendor> __monty__, I dont know, something like ghc-mod not necessarily, right?
<__monty__> Though really, shouldn't something that works with 8.2.1 work with 8.2.2?
<wedens> perhaps I should add it to activation scripts or something. if there is no alternative
<AK_> ivan: so I have to add this line to /etc/nixos/configuration and do something like nixos-install again?
<mikky> should't the --store be something like '/nix/store' or '/mnt/nixroot/nix/store' ?
<leotaku> Is that something one should do with disnix, or would that be overkill/not what it was intended for?
<betaboon> is there something like a "who is hiring" list for nix-related jobs ? :D
<mikky> nothing changed. I'm new to Nix* so it's quite possible I'm missing something obvious here... Installing from Arch Linux following this guide (no lustrate, installing to a different partition, leveraging ZFS): https://nixos.org/nixos/manual/index.html#sec-installing-from-other-distro
<wedens> and it's quite small incompatibility. imagine dealing with something bigger
<mr_noobs> Also, the ssl thingie, I can connect to a irc server using ssl, but I mean like using an encrypted relay (with letsencrypt, or something)
<gagbo_work> the config dance being exporting KDEWM in a .config/plasma-workspaces/env.sh file or something]
<appleclusters> jtojnar: is there something I should run to ensure this, or is this pathological?
<appleclusters> clever: sorry to keep bothering you, I set those options and it didn't work on reboot. Something I noticed is that the existing hardware device file systems are namespaced as "rpool/root/nixos" and "rpool/home", which seems to be zfs's namespace, not the absolute sdaxx namespace?
<clever> something like that should do it
<tobiasBora> dtz: actually it's possible that it takes time... but I don't see why something as simple as manpages take that much time ^^'
<dtz> freezes? maybe add "-vvvv" to see if it's doing something (huge eval for w/e reason?)

2019-01-07

<appleclusters> I'm following this https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134 for a LUKS-encrypted root, but I want to use zfs instead of ext4. I can't find anywhere in the wiki that advises how to do this properly, I'm assumign it has something to do with "zfs create ..." but are there any special options I should be wary of?
<clever> Myrl-saki: ive done something sorta related in my iscsi rootfs stuff
<trevthedev> im trying to get unity3d on nixos (stable), but after taking 751123 years to unpack and all that, i get an error about rpath refrencing /build or something
<samueldr> though looks like something might not be right :/
<wedens> is there something wrong with recursion in overlays (via self) when using overlays-compat thing from https://nixos.wiki/wiki/Overlays page. I've stopped using it and decided to just symlink overlays to ~/.config/nixpkgs/overlays.nix, but I'm still curious to know what was wrong
<makefu> nix build will show something useful then
<srhb> cyris212: Still can't reproduce. At this point I'd suspect pollution in ~/.ghc or something. It'd try nuking any x86_* dirs contained therein
<mr_noobs> Ans I saw that they offer a docker image also, so I was wondering, how well does docker mix with nixos? Probably would use docker-compose to have something declarative as well that I can take with me on a github repo
<spacekookie> I assume it has something to do with my bash environment or maybe the completions but I'm really not sure what exactly
<Myrl-saki> sphalerite: I need to pass something to luksFormat, and it should be human-writeable.
<Myrl-saki> Yeah, determinism is something I'd rather not have anyway.
<sphalerite> Myrl-saki: oh, in that case I'd probably export the public key with gpg, then use gpg within the build to import the key and encrypt something for it
<Myrl-saki> What's the best current practice for putting something encrypted on /nix/store?
<Guanin> etu, I guess I have to dig into the FHS wrapper deeper then. Only managed to get something else running as a shell.nix with it, so far
<drager> If I want to install something that's not present in nixpkgs? For example the "lightdm-webkit2-greeter" Do I need to follow this to do that? https://nixos.org/nixpkgs/manual/#chap-quick-start
<clever> expert mode changes the command set, so `n` does something different
<clever> ottidmes: yeah, something about zfs not properly handling the new kernel seeing the "uncleanly shutdown" fs, before the old kernel has its state restored
<jasongrossman> Anyway, use something other than gparted when it can't find your partitions!
<iqubic> something is really really wacky with my system.
<ottidmes> iqubic: for free space inspection I like ncdu, but that is not saying something about partitions
<iqubic> Well, turns out I was doing something rather stupid and didn't realize it at all.
<iqubic> Can some help me change my set-up into something better? Currently I'm using a zvol for swap.

2019-01-06

<clever> WilliamHamilton[: something likely has changed in recent nixpkgs versions, to make it complain about the null it previously ignored
<WilliamHamilton[> did something change in the haskell structure on nixos? This works fine:
<samueldr> jD91mZM2: maybe something with udev and swapon when it detects swap on an external device?
<fresheyeball> iqubic: I get a ton of support from this channel, and don't often have something to give
<jomik> nice. Learnt something new :D
<jomik> manveru: I am pretty certain it is true by default, but it doesn't recognize .deb as something to be unpacked?
<jomik> Unity? Is this Ubuntu something, or Unity3D?
<infinisil> The default nix installation should add something to your profile that sets up NIX_PATH
<LnL> wedens: I don't think you can select just the hash, but something like this should work drv: builtins.elemAt (builtins.match "${builtins.storeDir}/([a-z0-9]{32})-.*.drv" drv.drvPath) 0
<FRidh> only if you need to change something in / outside the store and/or your home
<wedens> can it be something related to this overlays-compat trick?
<wedens> https://paste.ee/p/cXt0z am I doing something stupid in this overlay? it seems to be stuck in infinite recursion or something
<simpson> worldofpeace: It's completely recent. The issue appears to be that asyncio's test utilities are looking for some sort of test certificate file, and that file isn't present in the Nix store alongside the tests, or something like that.
<simpson> sb0: Go back up to your ~/nixpkgs-unstable, and then something like $(nix-shell -p bloaty).

2019-01-05

<simpson> It would seem progressive/helpful to at least have a configurable optional parameter `pyqt` which defaults to pyqt5, or something like that.
<simpson> I'm not sure how the Python tree maintainers feel, but I'd think that that would be something that people could pick freely somehow. Annoyingly, the only current switch is `python27Packages` vs `pypyPackages` etc. which is not very multi-dimensional.
<babic> I'm not sure of the best way to package something. I want to add a program that depends on a library that depends on one of pyqt4/pyqt5/pyside.
<kyren> yl[m]: one thing that I'd like to do in the near future is use nix-prefetch-git or something similar to update small files which only contain git urls and versions and their sha, I forget how I planned it out but if there's not a tool I want to write one, where it just outputs a simple nix expression that is the latest git revision at a url, so you don't have to point to master all the time and can "revert" by using version control, almost like channels
<yl[m]> it did not work but I started to suspect something might be wrong in my nixos-rebuild wrapper since none of them seems to have worked. I need to dig in deeper, thx kyren!!
<shazow> wedens: thanks :) i'm definitely missing something, but sounds like it's best to just try it and worst case switch away from it later
<ambro718> FRidh: True, but I'm doing something a bit unusual. It's a script for a microcontroller SW project to program the device, and it would be nice if based on what type of device is used (several completely different families supported), it should use the right tool to do that (e.g. avrdude, bossac, teensy-loader-cli, openocd).
<wedens> etu: looks like something is wrong with empty lists and sets: {\n} or [\n]
<MichaelRaskin> nix-evaluation daemon sounds like something that should use unix domain socket and only accept requests from the same user
<exarkun1> seems to be something like that, yea :/
<pie_> or something :p
<pie_> nix-env ignores NIX_PATH or something, so how can I get it to install something like if i was passing -I
<samueldr> unless I misunderstood something
<samueldr> worldofpeace: if something breaks due to that, AFAIUI they're not os-release compliant :)
<jackdk_> I feel like I want a packagename.nix that stays like something that you can callPackage easily, but that's not a hard requirement (X-Y problem?)
<jackdk_> so I figure I can do something evil with builtins.runCommand but that's not really ideal. any thoughts?
<samueldr> it *looks* like the success state is good though, but cannot say 100% for sure, but something like 99% sure it's really succeeded
<samueldr> the main biggest limitation is that it will not print arguments of composed functions, but that's something that can't be done without executing the functions as some e.g. fetchFromGitHub are composed in different ways!
<makefu> something like this

2019-01-04

<etu> mgdm: on my system I usually need to add something like: boot.initrd.luks.devices."disk".device = "/dev/disk/by-uuid/BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB"; where that uuid is a symlink to /dev/sda2 which is my luks device of my root device
<exarkun1> maybe you can learn something from a traceroute to the affected machine (or some other similar diagnostic tool)
<catern> is there a way to do nix-store --import (or something similar) such that if there's a reference to a path which is not found in the store, Nix attempts to substitute that path, and only fails the import if it fails to substitute? that would allow distributing a small NAR which mostly pulls things from the binary cache
<goibhniu> prooftechnique: mentioned something like that earlier
<eacameron> It almost seems like something to do with how it prompts for passwords since I never get asked for one.
<prooftechnique> Church_: Much appreciated. I'm mucking about with things in my nix.conf to see if I can get something working
<goibhniu> ah no, it must be something else
<LnL> no you're fine then, just change NIX_PATH not to point to something that's only accessible by root
<exarkun1> Can I have a no-source derivation? Something that builds purely from other packages?
<Church_> kai_w: So looking at an override when I define it, self: super: { pythonOverrides = selfPython: superPython: { py.overridePythonAttrs (oldAttrs: {pname = "SOMETHING";});}; python36.pksg.override { packageOverrides = pythonOverrides;};} Would I just sub textfsm into pname?
<philipp[m]> I've got a strong feeling like I'm overlooking something painfully obvious :-D
<FRidh> ryantm: what do you think of grouping patch updates or commits (version is x.y.z where z updates) that each have less than 10 rebuilds in a single PR per day or so? Maybe it can reduce the overload of "noise" we get in the tracker. Also, because there's hardly ever something wrong with such updates it's convenient to merge them with a single click
<jacereda> something that logs "pulling dependency X due to Y"
<Myrl-saki> Maybe something changed over the months.
<jacereda> how do you know which package pulls a certain dependency? I'm trying to install a package that pulls something only valid on other platforms but I don't know who is pulling that...
<kai_w> can I get the values of the options from something in /run/current-system?
<Church_> samueldr: So running capsh --print on it gave me something interesting. https://paste.rs/Kxo
<samueldr> so in your case, you would want to add your ubridge(?) package as something like `self: super: { ubridge = callPackage ./path/to/ubridge {}; }` and *then* in the nixos configuration add a wrapper to it
<Church_> Are you trying to develope a rails app from scratch or do you have something to port?

2019-01-03

<Church_> samueldr: After I add something to my nixstore how would I make sure it gets picked up in the system path?
<gchristensen> Judson: is keepDotGit (or something like it) passed to fetchGit ?
<catern> is there a way to do nix-store --import (or something similar) such that if there's a reference to a path which is not found in the store, Nix attempts to substitute that path, and only fails the import if it fails to substitute?
<dgarzon> Doing `nix build '(with import ./default.nix {}; project.overrideAttrs (old: { version = "0.0.1"; }))’ my-package` yields `error: attempt to call something which is not a function but a set, at (string):1:7`
<sphalerite> Mic92: it's an OTP thing, something something FIDO
<Mic92> FRidh: nativeBuildInputs does perform something called splicing so you don't need to use buildPackages.foo
<ajs124> ezrakilty, do you mean something like boost155 vs. boost168?
<samueldr> not 100% confident in my makefile knowledge, but AFAIUI, $xyz is akin to $(x)yz, so ($out) is ($(o)ut) (or something along the ways)
<wedens> if I'm not missing something
<nbp> obadz: overlay works by adding something on top, and relying on Nixpkgs to query everything from the pile of overlay.
<ottidmes> obadz: I agree with wedens, that seems the most obvious way to do so, even something like this might work: (pkgs // { p2 = ...; }).callPackage ... (where the callPackage arguments will have to be looked up for p1 in most likely all-packages.nix)
<wedens> obadz: perhaps it can be overwritten for nixpkgs that'll be passed to the derivation? or something like that. I'm not sure
<mog> gchristensen, is that something that is easily parrelizable to infinity, or is there a real time cost to doing that?
<Twey> I could have sworn there was something like foo { paths = { "share/configs" = ./configs; }; }
<Myrl-saki> Maybe something happened with home-manager itself?
<Myrl-saki> wedens: I think it's something you added to home manager htough.
<m15k> Is there any details why a root container access has access to host system? Is that caused by systemd or has something todo with the way nixos-container is organized?
<wedens> and indent-region does something that makes sense
<siraben> how do I install something I built with nix-build ?
<siraben> Hmm something's not working
<samueldr> siraben: so `src = ...` is generally using a fixed output derivation of something that download a known source file
<samueldr> Church_: maybe if you share something to look at
<samueldr> no idea if urxvt has something like that, or if it's even urxvt who's at fault there
<simpson> No worries. I was quite ready to learn that there is a "quemu" package which is totally unrelated and does something like, I don't know, queue management for some database.

2019-01-02

<gwen> Aye, does anyone here know something (or know someone who knows something) about how to build Lisp packages with Nix?
<LnL> well, it can't be harder then fixing something in vim indentation
<cransom> gchristensen: any pit falls? there's no real anticipated write activity to speak of unless we happen to log in to troubleshoot something
<jD91mZM2> For future reference, if anybody is getting rust-lld: libstdc++.so.6 not found or something like that, you can use `patchelf --add-needed` to add stdlibc++ as a needed dependency, otherwise it won't actually resolve. Might also need to add gcc to the rpath
<goibhniu> hi fusion809, I suspect you have something more fancy in mind, but just in case ... you can also do: `nixos-rebuild -I nixpkgs=/path/to/nixpkgs switch`
<jomik> So I guess it shares something with my current one
<ottidmes> jomik: doesnt home manager have something?
<exarkun1> Something like `nix-build --expr 'with import <nixpkgs> { crossSystem = { system = "armv6l-linux"; }; }; binutils'` _does_ succeed, fwiw. That's another bit of evidence that makes me suspect nixpkgs' systemd expression.
<jomik> I am using nix-mode in emacs, indentation seems very odd. It seems to do something like 8 spaces per tab, any idea why?
<ottidmes> wedens: yeah I am trying something like that now, it should work, but I am not sure if it is idiomatic Nixpkgs, I guess I will hear that when getting feedback on the PR
<boothead> Happy new year folks. What are people using for email? I see several options. I'm after something that will let me interact with several gmail accounts, some with 2FA. I don't necessarily want or need to sync all the accounts.
<drager> Or am I missing something here
<Profpatsch> But yeah, normally something like that would be in lib/lists.nix
<fendor> when I want to install a program from a `default.nix`, i use something like `nix-env -iA ... -f default.nix`. This uses the stable channel on my system, how can I use the unstable one?
<Profpatsch> I’m working on something that auto-generates files in your source directory, I think direnv might be a great fit for that as well.
<ottidmes> Profpatsch: maybe something like this: nix-store --add-root result --indirect --realise $(nix-store --query --deriver /nix/store/xqyhpb67msmlnjlh3bg0yh8f2i3kxj2z-gitit-0.12.1.1)
<jomik> Ah, so have something like `let emacsclient = writeScript ...`
<wedens> it probably tries to match guest dpi with host or something like that
<wedens> chris|: https://github.com/NixOS/nixpkgs/issues/45500 looks like it's something that is supposed to be fixed
<wedens> there is extraConfig option, if there is no specific option for something
<iqubic> siraben: Is there something you can't do with these options: https://nixos.org/nixos/options.html#sddm
<ambro718> in Nix, how to check if a string ends with something, or alternatively get the file name extension?
<esmerelda> like add my local nixpkgs Git repo as a channel or something?
<tilpner> Does /mnt exist and have something mounted (Check outputs of "mount")?

2019-01-01

<pie_> huh. php72Packages.composer exists. I'm going to try to install something and if it works praise be to nixos
<s2mitrov> just wanted to make sure i wasn't breaking some unspoken rule or something lol
<ambro718> basically, the command line should look something like: nix-build -A myPackage ... path/to/config/file
<exarkun1> The former succeeds with something already in the store, the latter fails
<infinisil> gchristensen: i think something with cross comp
<tilpner> Hmm, why? Sure, it's a bit troublesome to configure from within the config, but that's because it wasn't designed to be easy, not because there's something intrinsically wrong with it?
<tilpner> gchristensen: I needed a way to refer to things in my configuration or the current nixpkgs. (path + /foo) gets annoying, and relative paths are tedious to change if you reorganise something, so mod (and a few others) are what I ended up with
<jomik> rycee: Your emacs configuration looks like something that'd be nice to have in home-manager! Is there a reason you haven't added it to HM? Just curious if you found any faults or anything so far.
<wedens> if it's a number or something, parse it like any other string
<jomik> Maybe you can set pwd first or something :P
<etu> I got something like that:)
<iqubi4> etu: exwm is awesome. I've been using for something like 6 months now.
<wedens> yeah. which works great until you hit something like network-online.target not being available for user's systemd
<pie_> which is to say i want to clean up something that looks like: x = import ./y.nix {inherit a; inherit b; inherit c; inherit d}
<pie_> related topics iirc: fixed output derivations, using secrets (like key files or something), i think there was some variation of readFile or something
<pie_> so you can just call it in postinstallphase or something?
<wedens> something like runCommand, but it doesn't let me do patchShebangs as it modifies inplace
<wedens> also, is bumblebee still the best we have for switchable graphics? I've heard that it's deprecated or something
<ivan> does anyone have something better than https://nixos.wiki/wiki/Using_X_without_a_Display_Manager for making `startx` work, I don't really like display managers because sometimes I want two Xorgs running
<Church-> Just need to fix something with minio + nginx and I'm good
<exarkun1> How so? FWIW I started off trying to build on a QEMU nixos machine but it looks like I might have to build a custom kernel before that works or something (I don't entirely understand the problem but it seems like the armv6l kernel I found is not good enough for nix).

2018-12-31

<exarkun1> seems to me I should be able to tell nixops to cross-compile a whole system by doing something like https://gist.github.com/exarkun/8b903b7f08b5856e120a32820344c535 but it fails, anyone help me understand why?
<obadz> what's the state of the art of open source remote desktop? something hopefully faster than vnc and where I can just remote into an existing X session…
<Baughn> Thra11: It's not C++-specific, but here's *something*: https://github.com/Electrical-Age/ElectricalAge/blob/develop/shell.nix
<infinisil> But yeah something might be wrong with it
<infinisil> It's probably something with my X setup, I'm just using bare xmonad
<pbb> okay, but I would have to retrive the result manually? is there some way to make nix fetch it by adding something to the configuration?
<wedens> yeah. that's why I'd like to do something about it
<wedens> a list of inputs that caused changes downstream or something like that
<schopp0r> hm. how can I search for packages containing certain filenames? (I think I can remember there was something like that)
<Twey> countingsort: nativeBuildInputs are things available to the build process itself, i.e. the thing doing the build, but not to the built program/in the built environment. buildInputs are things that can be used alongside the build product. The difference is chiefly different when cross-compiling: nativeBuildInputs might be something like a cross-compiler or source transformation tool (that runs on the build
* aristid mumbles something about opensmtpd 6.4 breaking all configs
<wedens> so... what's the solution for some binary needing something from /run/wrappers/bin in runtime?
<jgt> can I do something like nix-store --delete /nix/store?
<clever> siraben: nix-env -f . -iA something
<siraben> something switched branched
<wedens> can I do something like `:doc lib.xyz` in the repl?
<clever> wedens: something along the lines of runCommand "name" {} '' mkdir -pv $out/bin/ ; makewrapper ${./input} $out/bin/output --prefix PATH : ${hello}/bin''
<siraben> clever: Hm. Doesn't seem to have CLI args that allow me to print the state or something
<siraben> Maybe we should move this off channel to PM or something
<das_j> Something like system.nixos.isUnstable
<ldlework> even without context, that doesn't allude that I'm the doing something lol

2018-12-30

<ldlework> something like that
<gchristensen> seems like I should time between booting the installer to doing a deploy or something
<shazow> going to assume it's something to do with how arch packages nix or something, and try the curl-bash installer instead -_-
<jchw> I suppose it would probably be wise to just setup nix on some ARM hardware sometime. I might have something that can run it.
<blumenkranz> I am sure I must have done something weird during the configuration
<blumenkranz> I have found something interesting, but I can not read it
<nDuff> It's certainly something you *can* do.
<infinisil> Well there's lots of different parts that work together for something being built in the end, the enable option is only one part of this
<pbb> is mkEnableOption something nix-internal?
<infinisil> pbb: Once you find the file (something starting with nixpkgs/nixos/modules/...), you can find your path to that file by running `nix-instantiate --find-file nixpkgs/nixos/modules/...`
<tilpner> You don't need to make it nix specific. Just call the env var something like BINDGEN_EXTRA_INCLUDE_PATH instead of NIX_
<countingsort> tilpner: that doesnt sound like i can easily do it without modifying the project, which would be favorable, since its a dependency in something else im doing
<hoijui> should it fit into 80 chars or something like that?
<jomik> hoijui: It contains a lib folder, right? It's probably "installed" as a dependency of something.
<jomik> Uh, if something unfree is being installed without allowUnfree being true, then you should probably create an issue.
<ottidmes> its something to keep in mind when handling security sensitive files, like files containing passwords, you generally do not want to have them end up in the store, so you would have to make sure to explicitly call toString on those paths
<ottidmes> jomik: of course you can import in a file that is being imported via the imports attribute, you are probably doing something that cause the file you passed to imports to be copied over to the store, hence the working directory for it changed to /nix/store
<clever> pie_: do you want to reference it from nix or something else?
<siraben> Yeah, for some reason it's complaining about flash page 0x41 not existing, must be my ROM's fault or something, but it has worked on at least two other emulators
<wedens> siraben: try something like this https://bpaste.net/show/61d050906ac8
<simpson> wedens: ^^ something like this, I think. Haven't tested, very messy, just an idea.
<nDuff> If I want to be able to use a file within the output from another derivation anywhere I'd use a derivation, is there any nixpkgs standard-library tooling or builtin that's appropriate? I'm thinking of something like fileFrom: source: path: runCommand (baseNameOf path) { inherit source path; } 'ln "${source}/${path}" "$out", but that seems awfully silly, plus it doesn't actually work unless I can strip the context off of (baseNameOf path).
<iqubic> Oh. But now you do something else?
<psy3497> Anyone knows if there is a way to force nix-build to build something even though it already exists in the nix-store?
<iqubic> Like it throws a red line under the import and says: module not found or something like that.
<samueldr> iqubic: let's try something: can you tell me what's the type of the nix expression `(import ./.)` (so without .env) in your shell.nix?
<ghostyy> how do i override a setting? i want to override something defined in a package: error: The unique option `services.xserver.displayManager.job.execCmd' is defined multiple times, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/x11/display-managers/slim.nix' and `/etc/nixos/configuration.nix'.
<pie_> ^thisis after chmoding the "work" directory 777 as a horrible hack because i read something somewhere that permissions on that might cause problems

2018-12-29

<infinisil> I think the only way to manage this is to just set NIX_PATH to something different
<timokau[m]> I could swear it was 800 something just yesterday
<infinisil> It has to do something with that
<jomik> Which points at something in emacs-with-packages.
<jomik> Ah, no, it still happens without it. It is something with the emacs-packages-deps
<jomik> I haven't a clue where to start with that though. As this happens with home-manager. I guess I'd have to isolate it and import <nixpkgs> or something.
<tilpner> shazow: strace if you're really desperate, -vvvv might do something, but I never tried that on nixos-install. Also paste "mount" and your config
<wedens> when I try to `import` a module I get something like `error: The option `x.imports' defined in `/etc/nixos/configuration.nix' does not exist.`
<tilpner> Something that has "imports" is likely a module. Modules are functions, which can be "import"ed
<wedens> why I can't `import` something that has `imports`?
<elvishjerricco> wedens: It's possible to create the Haskell file from Nix. But more conventionally, you'd make a config file with Nix and have the Haskell file read that with aeson or something
<samueldr> you may need to rebase on master if you e.g. started on something based off of release-18.09
<pie_> avn, finally ran into something odd :P
<pie_> i just caused something weird https://bpaste.net/show/8ac6d3731d78
<samueldr> at least, if it were to happen, something would need to be figured out here
<samueldr> (going from memory, but udisks has /media hardcoded or something along the lines)
<msuperdock> Thanks eadwu, I'm happy to try creating a derivation (I've done it for a package providing an executable before), but am not really sure where to start for something like this.
* pie__ goes to try something
<pie__> oh true if they log out from your thing or whatever then yeah that basically means its fine :P unless there needs to be some files saved implicitly or something
<samueldr> though I guess there's something about multiple systems where having the same UIDs GIDs for a given service is good
<samueldr> ah, if it's something that somehow changed nvram things (maybe reset it), it's possible the system's boot menu has been emptied at the same time
<samueldr> while you didn't reset the options, maybe *something* made a mess of the UEFI options :/

2018-12-28

<ghostyy> will anything bad happen if i dont have a filesystems.* defined? i have a manual shell script in bootpostcommands that does the mounting, i just want to know if nixos will try to do anything "clever" like notice that i have supportedFilesystems set to ["zfs"] and think it doesnt need to load the zfs module or something
<infinisil> ottidmes: Yeah it's got something to do with filesystem ordering
<Church_> I feel like there was something before that...
<Church_> samueldr: Was I going to show you something? Feel like I was?
<samueldr> I *think* xiaomi has a windows utility for their phones; which apparently works for phones with the same CPUs with modified files, but that's something I cannot really explore
<exarkun1> samueldr: I managed to get something fairly automatic working for armv7l (by copy/pasting stuff from the internet, I don't really know what any of it means)
<samueldr> exarkun1: I did something you could get inspiration from for armv7l: add the .img as a loopdevice, mount the FAT32 partition, and then in there you should see the kernel + initrd you can copy and use
<simpson> ldlework: Huh, it appears to be grabbing no-longer-stored DEB packages from Valve's repo. Maybe something in the Steam derivation is outdated?
<psy3497> symphorien: it shows me the derivation file path, but it does not help me if it does not exist anymore. Or am I missing something?
<manveru> something like optimus?
<psy3497> Perhaps something to do with locale configuration...
<pie__> (which is to say: how much i will possibly need to work to come up with something reasonable if i might end up going down thesame path)
<pie__> now that you mention it that sounds a little bit familiar. is the docker layers thing something nixos did or is it a docker thing
<pie__> the whole thing is probably ill conceived anyway but i want to give it a shot. i had the "great" idea that when installing multiple applications (say something + plugins later), i could require the wine prefix of the previous one, copy it into the build directory, and then run the install there
<pie__> having something mounted is a runtime thing, and not a static filesystem thing
<Church_> samueldr: It's up and running but something is fracky with unicorn
<jackdk_> I may have set something up wrong
<exarkun1> I seem to have forgotten something important about packaging python for nix: https://gist.github.com/exarkun/d9e532ee98f8888e39793da70e28ea83

2018-12-27

<kyren> no, it's just slightly cleaner if you're not producing something designed to be instantiated / installed whatever
<duairc> and replace most occurences of "nsd" with "nsd.local" (or something) where it makes sense
<kyren> in the past when I've used libGL I've used something like glew or libglvnd, libglvnd has libGLX.so and libEGL.so in it and would maybe work?
<kyren> oh, hey LnL since you're right here, I am doing truly horrible things to get the 'nixPath' checks in https://github.com/LnL7/nix-darwin/blob/master/modules/system/checks.nix not to abort, I'm fine doing this, but I was thinking of opening an issue detailing my use case and why that check is not welcome, is this something that you'd like to hear about or for me to open an issue?
<aristid> shapr: i was briefly considering getting an x1 extreme and running it in purely-discrete mode too, but then i was like... dropping 3 grand on something that i'm not even sure how well it will work is a bit of a tough call :D - and i guess that's why you're asking too
<kyren> I am trying to convince nix-darwin to do something that it doesn't really want to do, so the following questions may sound very weird
<ottidmes> and you cannot expect people to analyze the systemd graph to figure out they have to use what I ended up using to do something before the ZFS pools are imported
<ottidmes> infinisil: https://gist.github.com/ottidmes/686eda279f6e9729491c8a58c787673b but its not really a bug, more like an assumption made on my side that was wrong, its more of a feature request, because doing something to make the disks ready for ZFS import seems not uncommon to me
<Greaka> dont forget to make a pr if you happen to find something useful :D
<ottidmes> network-online.target). How do other people deal with such things in systemd (waiting on something for which is no good callback in systemd)? The two workarounds I could think of are to use a delay in Samba or make it depend on a service that keeps checking for ZeroTier to be ready, any better ways?