<cocreature>
It seems like there is probably something like agdaWithPackages but I cannot find it
<srhb>
tobiasBora: Are you running ntpd or something similar?
<srhb>
nbp: Something like.. ID+username@users.noreply.github.com but come to think of it, I don't know how to get another user's ID.
<nbp>
This is not a maintainer, a user opened an issue and pasted something which definitely look like a real password.
<srhb>
realrokka: It should be something like: self: super: { opencv = super.opencv.override { enableGtk2 = true; }; }
<srhb>
Yeah, it's obviously something we want :)
<tobiasBora>
sphalerite: thanks. I get something like 18.03.133192.45f52f765cd
<srhb>
Then in the minimal case, your systemd service is something like... systemd.services.xok = { script = pkgs.writeScript ... ; }
<xok>
yeah, sounds something interesting...
<ekleog>
ok, so said issue will actually be “rename sandboxing to something else that doesn't imply that it's actually useful for security”
<elvishjerricco>
LnL: But I wonder if it's maybe something Nix should do on its own? Maybe Nix should detached codesign every single file in the store that has a valid Nix signature and has the executable bit set
<jonreeve>
Would there be a way to change my project's shell.nix file in some way so that it replaces the broken-tests `rdf4h` dependency with something like `dontCheck rdf4h`?
2018-09-09
<haslersn>
i.e. is there something like (import fetchgit { ... })
<rfold>
When I boot my computer I get a light blue screen with the NixOS logo and a password prompt. After logging in it opens my window manager. What keyword am I looking for if I want to customize this login screen? Is it part of X server, display manager, or something else?
<avn>
disasm: I just curious, if it possible to have `nixops` deploy, which can be switched to "non-nixops" in single command (for example I usually deploy my travel notebook from main build machine, but sometimes I need add something when I am travelling)
<etu>
I guess it's safe to remove the directory. And if something reference it at some point it will yell at you that it's missing and you'll probably get to know where.
<tomberek>
infinisil: thanks, gdb being a relatively base package I had hoped I was just doing something wrong.
<fyber>
I just want to compile something :(
<andrewrk>
did something change?
<camsbury>
the static config thing should work, but there might be something else missing... let me check
<fyber>
I found something interesting
2018-09-08
<rycee[m]>
infinisil: Hmm, I can't recall exactly but I think it was something that I wanted to express both an "after" and a "before" relationship and strings-with-deps only can express "after".
<rfold>
Also couldn't read the CPU temperature after enabling that kernel module. Something must be horribly wrong.
<gudea[m]>
Now all attempts to update or downgrade the system fail with something like this: https://pastebin.com/6twkTvfx
<ixxie>
xok: basically the directory structure you are used to is called Linux Standard Base (LSB), and the problem is Nix is something completely different than LSB
<xok>
can anyone point me to a documentation, or a manual or something like that to write modules for specific services?..
<xok>
I am trying to use something like this: resources.sshKeyPairs.ssh-key = {};
2018-09-07
<anon423432>
Hi guys, hope you're doing well, I would like to request your assistance for something "weird" about emacs on NixOS, I got a lot of "Invalid function: (win (frame-selected-window))" which completely broke emacs, I can't do M-x, C-x C-c or anything ... My config run well on other distro (Manjaro, Arch, Debian) so I wonder where it go wrong or how I can debug. If you could enlight me I would be gratefull, thank you in advance.
<ldlework>
Something like callPackage for substituteAll would be pretty cool
<Acou_Bass>
its something like fbconrotate:=1 or something?
<qyliss>
So probably something broken on my end
<sphalerite>
I mean, I think there is something in nixpkgs where it's super: self: instead
<mudri>
But I don't know whether it's possible in Nix to communicate to users that they need to do something.
<infinisil>
Something like `man systemd.directives` for Nix
<kandinski>
srhb: what I learnt is that there's something called "fixed-output derivations", where the hash that names it is taken from the artifact's content. In that case, we can verify the artifact's integrity after downloading it from the cache just by taking the hash. Correct? But for regular derivation, where the name is taken from the hash of the input expression to the derivation, we can't verify the
<kandinski>
I'll come back with the next round of questions. I learned something new, but not what I was asking :)
<jasongrossman>
Now someone else knows the syntax better than I do, but there is a way of trying to download something without checking the hash/checksum, which fails but gives you the correct checksum in the error message.
<clever>
why did you mount something to / ?
<emily>
I think the UEFI spec mandates it has to be at least 100 megabytes or something.
<v0latil3_>
I put 40gb swap or something dumb like that
<ldlework>
sophiag: i don't think so, i think adamantium thinks uefi is bad or something
<v0latil3_>
I must have not actually tried restarting the vm between my changes or something dumb. Or I didn't copy out of the terminal correctly and just launched an old config again idk
<adamantium>
or something not mentioned in the options?
<v0latil3_>
gchristensen, mutableUsers = false seemed to work unless i just mistyped before or something
<infinisil>
v0latil3_: Something like users.users.root.password = "" should work
2018-09-06
<tomberek>
While trying a cross-compilation ( nix build nixpkgs.pkgsCross.armv7l-hf-multiplatform.uhd ) I get an error: error: a 'armv7a-linux' is required to build '/nix/store/qpkw3c9fl059axsqbhwgl0qlr3548x6d-python-setup-hook.sh-armv7a-unknown-linux-gnueabihf.drv', but I am a 'x86_64-linux' This seems to stem from the runCommand function not understanding cross-compilation. Or is there something i am not understanding? Any suggestions?
<ldlework>
something like that?
<ldlework>
infinisil: would the right way to do the python overlays, would be to generate a complete whole python overlay for every python package I want to provide an overlay for? Something of the form:
<ldlework>
so if a lib function wanted to call fetchFromGitHub or something
<infinisil>
you previously tried something like pkgs.recursiveImport
<infinisil>
ldlework: I mean, it's not gonna be a problem unless you're overriding something multiple times, which overlays would normally handle perfectly fine (and they're intend to), but just concating multiple overlays into one won't do that
<ldlework>
i don't want to do something stupid :)
<infinisil>
This means your overlays won't work properly if 2 of them redefine something
<gchristensen>
Dezgeg: can you confirm something about a kernel option?
<cyraxjoe>
hello! quick question.. is there a nix function to obtain the name of the package from a nix store path? i.e func "/nix/store/c27wfq76sm29zav5a0kg0wzrxbjfiwqv-virtualenv-16.0.0.tar.gz" -> virtualenv-16.0.0.tar.gz? I kinda remember there was something like that already in the lib
<qyliss>
alternatively to remote builds, can I do something to reduce Nix's memory consumption? I'm using a Chromebook and literally do not have enough RAM + disk to be able to fit a GUI into my system configuration currently
<bigvalen>
Anyway. Byegones. I wonder would it be worth having nixos-enter run mount -a or something.
<qyliss>
What do I need to do to get things set up so I can `nixos-rebuild switch --build-host`? I gather I have to do something with keys but it doesn't seem to be documented very well...
<ldlework>
attempt to call something which is not a function but a set, at /nix/store/g26fs0jbfbvbcghr3vawi7ynpl5h3gaw-nixos-18.03.132405.ee80654b526/nixos/lib/fixed-points.nix:44:67
<ldlework>
Where would I stick an override if I wanted the override to show up inside "ps" relevant to something like: python = pkgs.python3.withPackages (ps: with ps; [
<selfsymmetric-pa>
Something to put in my editor to help me out with the syntax.
<infinisil>
"it breaks on detached heads" is not something non-programmers usually say lol
<andrewrk>
Where would be the correct place to find it? Is my nix configuration missing something? This used to work; maybe this is a regression in NixOS?
<phry>
is there a way to do an import that is conditional to something config? I'm always getting an infinite recursion
<Henson>
in a nix-shell, how does the NIX_LDFLAGS variable (and other library-related variables) get auto-populated? I see that NIX_CFLAGS_COMPILE magically has the appropriate include files in them, but NIX_LDFLAGS doesn't contain everything. I'm specifically concerned about libraries being included from my own derivations, which are split-derivations. I'm not sure if I'm missing something that is...
<ryantrinkle>
e.g. have a final thing that adds a 'version' file or something like that
<andrewrk>
where would be the correct place to find it? is my nix configuration missing something?
<redterd>
symphorien: There is no /etc/nixos folder on my machine right now. Should I create it? Or am I understanding something wrong? I use Arch Linux if this is important
<symphorien>
and each time you nix-build something, add -I nixpkgs=/path/to/checkout
<ixxie>
I wonder if its xserver or something else
<Shell>
clever: is there a way I can put it into bash debug mode or something?
<clever>
ixxie: something that is very handy, `curl https://github.com/cleverca22.keys` will output every ssh key you authorized to your github
<tobiasBora>
Hum... I'm curious to understand something
<adamantium>
i think its like 8300 or something isnt it
<clever>
wdanilo: /proc/self is a linux thing, so something must be broken with the --store based chrooting on darwin
<srhb>
adamantium: I'm curious, have you tried something like stress -m 1 --vm-bytes 1G And then stopping and increasing the vm-bytes until you see watch free dipping into your zvol swap?
<srhb>
adamantium: I'm not sure exactly how it works, but my setup is a two-way mirror, and every swap test I've done locks up the kernel hard after hitting loadavg 90 or something and the next boot will have errors on the disks.
<adamantium>
or something.
<v0latil3_>
something like haskell syntax is a little more intuitive to me
<v0latil3_>
that is something i've had to do on so many machines on other OSs. I didn't know you could do it like that in nix
<rauno>
seems like i have broken something in my nixos :|
<rauno>
woh, got something new shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
<v0latil3_>
teto, did you mean to link me something?
<v0latil3_>
Is the best way to make and test new nixpkgs to clone the whole repo? and then I can add the local repo to my channels to use with nixos-rebuild or something?
<Fare>
Something makes my NUC unstable with 18.03
<rotaerk>
did I do something wrong with that shell.nix?
<techtangents>
My shell.nix file has a "src = ./.;" in it. Do I need to escape this or something? Or will Nix just not handle the @ in the folder name?
<JonReed>
oscarvarto: Never used vscode on NixOS, so can't really help :( It seems to be something specific to it.
2018-09-05
<makefu>
wow something is really wrong with your store
<makefu>
tertl3: is your system an arm or aarch64? it seems something funny happened with your nixos-rebuild binary
<Growpotkin>
elvishjerricco: so how did you go about it? I think i'm just missing something subtle
<tobiasBora>
Does anyone knows here if nixos provides a way to boot from an ISO? Something like the iso-scan/filename=$isofile in ubuntu: iso-scan/filename=$isofile
<clever>
tokudan[m]: i also remember something about libffmpeg.so being just a different build mode, where it puts all the libs into one .so file
<clever>
cransom: i have had plans to just replace the entire board with something like a esp8266, and just make it purely wifi based :P
<elvishjerricco>
Issue is that sometimes, in unclear circumstances, my machine becomes unable to make bluetooth connections. I forget the precise error message. Something like "Protocol is unavailable"
<d1rewolf>
clever, I've verified that moving "node-" to the end as "-node" fixes the issue. I'm working up a patch now, but was curious...would it better to prefix, iyo, with something like "node:" or some other symbol nix doesn't treat specially, or should i just move to the end as I've already done?
<emily>
otherwise we'd probably be throwing around snippets of actual javascript or something.
<emily>
hodapp: *nods* but somehow I'm not sure that someone wanting something more mainstream than Nix would be satisfied with guix?
<d1rewolf>
clever: you'd think with something used as widely as node2nix that this would've come up before
<d1rewolf>
how would one track down where something like nodeEnv.buildNodePackage is defined?
<NickHu_>
Maybe I should be taking the path from something other than pkgs.utillinux?
<NickHu_>
clever: Yeah, I'll try something like that thanks
<srk>
clever: I've also addedd mac -> image mapping so when mac address is listed it boots the specified image right away - I will try to abstract that even further and add DHCP to the mix so there's something like (mac, IP, image) at toplevel config
<dhess>
clever: I think it was you who warned me a few months ago that running builds on a Hydra can cause deadlocks, something about using localhost as a remote builder. Any idea whether that's still a thing? I've seen a couple of PRs in the Hydra GitHub issues related to using localhost as a builder and it seems like maybe it's working now.
<dhess>
or maybe that's something I should take up in #nixos-dev?
<oscarvarto>
Baughn, it worked with something like this: http://ix.io/1m1D
<tobiasBora>
also, in gparted I can't find ZFS filesystem, did I miss something?
<tobiasBora>
I though it was something else
<srhb>
oscarvarto: If you want something like NixOS but for your user, take a look at home-manager.
<trevthedev>
error: attempt to call something which is not a function but a set, at (string):1:94
<Taneb>
rfold: I've seen something doing something similar
<thblt>
Myrl-saki: done multiple times, doesn't help. I've also ruled out state persistence issues, maybe it's something related to BinarySpacePartition (it's the only layout I use), I'll try later to change the layout.
<thblt>
A recent NixOS update broke my XMonad: tiled windows just disappear, only floating windows remaining on screen. Did someone else experience something similar?
<srhb>
tilpner: Would duplicating the default.nix with something that doesn't accumulate on top of super work?
<srhb>
Would something like this be possible instead
<tilpner>
(But I also tried in nix repl locally, and it did, so I must have done something wrong)
<infinisil>
Oh damn, maybe i broke something with my change lol
<marcinkuzminski>
srhb: the thing is we're using a custom store path, and there's a lot of packages. I was looking for something easier/global
<rauno>
srhb, you were great help yesterday but i have some new question, when my new package needs to put something to other package's datadir and gets permissions denyied, how such situations should be handled ?
<elvishjerricco>
Is there a good way to generate something like `man configuration.nix` for custom uses of `evalModules`?
<rrr>
Is docker something that could let one use software that currently doesn't really work fine on NixOS without the hassle of making it work? I never really understood what Docker does
<camsbury>
though I wonder if this is actually just a flag informing something inside pkgs.chromium...
<JonReed>
justan0theruser: No, because `builtins.readFile ./mifile` will simply read the file unlike `"${./myfile}"` which will automatically store the at nixstore. But yes, because you'll obviuosly use that password to build something and that something will be stored it /nix/store
2018-09-04
<mog>
can i prepend something to the old prebuild or just easier to type it in again
<mog>
i am installing a specific version of a package by using mkDerivation. and it would work but the preBuild script that is called fails because a file is no longer there in the newer version of the package. is there a way i can overrid the preBuild or do something before the preBuild so I can just touch the file in question
<LnL>
fendor_: that will use the system nixpkgs, if you want to pull in something else you have to add a separate channel and import it from there instead of self/super
<srhb>
fendor_: self: super: { unstable = import (self.fetchFromGitHub { ... nixpkgs } {}; }; or something like that
<glasserc>
I'm having trouble building flow 0.80.0. I'm trying to build it using something like this https://dpaste.de/AeNO but it seems to build 0.79.0 (the version in nixpkgs). Am I doing something wrong with overrideAttrs and src?
<maurer>
basically, you need something to shuffle root around somehow
<Orbstheorem>
Is there something like hoogle, but for nix? x)
<fendor_>
i wrote something like `myPython = self.python3.override { };`. I wanted to write `packages = []` but packages is an unknown attribute
<elvishjerricco>
Can't wait for nix-env to be replaced with something in the new `nix` command. nix-env is pretty gross
<Taneb>
"nix-env -u --attr 0" complains that something's a list rather than a set, for me
<srhb>
joebobjoe: Once something is installed, there is no way to go back and find the attribute from whence it came.
<wucke13>
I have trouble when connecting bluetooth sound device. Apparently, the problems do only occur after resume from suspend, not on a fresh boot. Did someone else encounter something similar?
<Phillemann>
I'd like to "append" something to python3.pkgs. Not sure on how to do that.
<das_j>
srhb: I'll probably do something like [ "message = 'mymessage'" "condition = 'whatever'" ];
<kandinski>
Would it make sense to try and clean up all debian.org urls, replace with canonical ones, and write something about picking better ones in the packaging guide?
<srhb>
etu: Maybe it has something to do with the recent breakage of targetPlatform?
<srhb>
etu: I think I saw something related to a GOARM variable
<kiloreux>
Something is happening is that both opencv versions are being downloaded now. original 3.2.0 and 3.4.3.
<srhb>
rauno: mkDerivation { name = "thing-wrapped"; buildInputs ] [ thing makeWrapper ]; phases = "installPhase"; installPhase = "mkdir -p $out/bin makeWrapper ${thing}/bin/thing $out/bin/thing --set FOO BAR" } -- or something like that
<kiloreux>
srhb, Possibly something wrong with my syntax or because of the toPythonModule function?
<srhb>
Or something else entirely
<srhb>
But you'll end up needing something like..
<boomshroom>
Usually, if you want something to run on startup, you'd use a systemd service.
<rauno>
seems like postStart is something that can be used for cli cmds
<clever>
i remember there being something more specific, but dont see it
2018-09-03
<symphorien>
ie patch something deep in the dependency tree ?
<v0|d>
I thought its something like ~/.nix-profile/bin/env.sh yet faild.
<clever>
elvishjerricco: looks like the tcsd service installs something, but not tpm-tools
<srhb>
Maybe the configure script is doing something wonky..
<elvishjerricco>
I'm trying to package something that expects to find some libs with pkgconfig, but those libs don't seem to ship with pkgconfig files in nixpkgs. Is there an automatic way to generate them?
<Thra11>
Is it possible to do something like using nixos/configuration.nix and nixos-rebuild when using nix on a foreign linux distro?
<hodapp>
anyone know of examples in nixpkgs of something like a CMake build calling a secondary CMake build in the same repo? are there cleaner solutions than just adding some project(...) calls to the top-level CMakeLists.txt?
<gchristensen>
so when nothing seemed broken and this was broken, I started with the assumption it was something in the command itself
<gchristensen>
dhess: look in nixos/maintainers/scripts/ec2 or something like that
<Lears>
I forget how, but you can inspect individual options in the running config. So presumably you could coax nix into dumping something like a config.nix.
<janiczek>
so, to clarify, I probably did something like `nix-channel --update && nix-env -u && nix-collect-garbage -d` (stupid in retrospect) after the upgrade
<LnL>
yeah, I assume that's when you noticed something wasn't right
<sphalerite>
can I get a non-native stdenv with nix-shell -p, something like nix-shell -p pkgsCross.raspberryPi.stdenv except working?
<clever>
lorilan: did the problem recently start when you changed something?
<infinisil>
I think I saw something like that recently
<infinisil>
I should set $HOME to something else
<clever>
something flashed red in the status bar momentarily, but it vanished and wont recreate
<infinisil>
clever: Do you have something with intero in your .emacs.d?
<infinisil>
Not something like that, hold on
<infinisil>
Yeah, but I'd like it to transparently work when somebody calls a command, it's for creating something reproducible
<colemickens>
yeah, I had thought about something similar. I'm playing with Packet right now and actually can't get userdata working at all, so I'll have a chat when gchristensen is available again about supporting something similar.
<colemickens>
sure, but that's just cheating and running as an init script or something, if I had to guess?
<lostman>
I have something like this in `shell.nix` `{ myDerivation = wrapper imported.myDerivation }` and then `nix-shell -A myDerivation --arg someArg true` is not passed to `myDerivation`
<emily>
gchristensen: you were complaining about something like that just before :p
<emily>
FWIW I think reStructuredText reuses DocBook's object model or something
2018-09-02
<aszlig>
infinisil: yeah, but how would you cross-reference something from an option to another page in the manual?
<aszlig>
i mean, if it's just some comment, something like markdown is okay, but for technical documentation i wouldn't recommend it =)
<aszlig>
gchristensen: i actually prefer docbook to something like eg. markdown
<aszlig>
gchristensen: well, docbook isn't bad per-se, but i think it has its own learning curve and i probably wouldn't call it beginner-friendly if you want to do something more substantial things than simple formatting
<gchristensen>
aszlig: I get tired of so much hate towards docbook, it was refreshing seeing something so constructive I guess.
<Orbstheorem>
when I search makewhatis on nix-locate, it's on man-old. Is it deprecated, or something?
<clever>
infinisil: i believe domen has also done something with hie
<gchristensen>
I should send her a sticker or something as a thank you
<clever>
johanot: i did try doing something similar, with the flag to disable modules, but it ran into dependency problems
<yegortimoshenko>
is there some way to do something like `nix-store --query --requisites`, or libstore's `computeFSClosure` from within a nix expression?
<Dezgeg>
ok the 'recursiveHash' wasn't something I expected :P
<nlyy>
symphorien, something weird is happening
<Thra11>
symphorien: Thanks, but I meant something that will list any duplicates, without me having to know which package to grep for.
<fgaz>
LnL: The third machine also does not work. So I must be doing something wrong...
<c15ade4>
MarkRBM_: there is something called home manager
<{^_^}>
attempt to call something which is not a function but a path, at (string):171:1
<p_l>
(tl;dr I'm currently seriously considering bootstrapping gentoo while having something to use while it sets up)
<gchristensen>
it would be _VERY_ nice if ofborg could label something with "from:maintainer"
2018-09-01
<elvishjerricco>
Basically, something defined in phase 1 can't be used in phase 1. Really it needs to be some sort of monadic thing, but I dunno how to do that without rewriting in C++ so that we can create "impure" thunks.
<infinisil>
Was hoping for something more specific :P
<symphorien>
are you on nixos or do you use nix on something else ?
<siers>
gchristensen, earlier were you replying to me when you said something about fetchgit?
<infinisil>
Now here's something I don't know (I'll test it though): Can the type of an option depend on an options value without infinite recursion?
<pie__>
also what do i do if something is being kept in the store by stuff like /nix/var/nix/profiles/per-user/paprika/profile-404-link
<infinisil>
gchristensen: Possibly /root if you're using it for something
<hodapp>
symphorien: mine is Intel-based graphics and some months back an update did something that gets it into a mode where it will render the first frame of an OpenGL scene and then it will never update
<symphorien>
hodapp: I have a T420 and I have never experienced any particular opengl issue. Do you refer to something specific ?
<c15ade4>
so far I manually make a file test.nix or something that imports nixpkgs, then does callpackage
<Dezgeg>
I guess that's something that should be fixed though
<Dezgeg>
something like nix-build -E 'with import ./. {}; [ foo bar ]'
<Dezgeg>
IIRC there are modules which are 'triggers'' as in modprobing them will cause something to happen
<clever>
and maybe something else to enforce only loading signed kernel modules
<colemickens>
I'm actually surprised it isn't better integrated. I'd love to try to spitball it in a GitHub issue or something.
<samueldr>
but I'm out of my element since I kind of think something is wrong?
2018-08-31
<ixxie>
I want something that lets me ensure the existance of a custom directory in a particular path owned by a particular user:group
<clever>
ixxie: the only time i see nixos containers being of use, is when a service is being dumb and expects something like a constant port or unix socket, and you cant run 2 of it
<wpcarro>
This doesn't happen when I call something like `nix-shell -p which`, though -- which works
<gchristensen>
which is fine, we can put those instructions in, but if you have something nicer :)
<infinisil>
wpcarro: Just because something evaluates does not mean it builds as well. Successful builds depend on many many things
<infinisil>
wpcarro: You can get a nix-shell with this emacs in $PATH by doing something like `pkgs.buildEnv { name = "emacsenv"; paths = [ (emacsWithPackages (p: ...) ]; }`
<infinisil>
This looks more like something you'd want to install globally
<teej>
Does Neovim have something similar?
<sphalerite>
le_jonge: right, in that case I'd suspect a hardware-specific qemu bug or something
<le_jonge>
any idea how to check if this is not supported at all on this machine or something?
<das_j>
Hey, is there a type that allows for a list of both strings and attrsets? I need this for my nftables-based firewall. Basically I want something like ports = [ "8080" { port = "ssh"; tcpOnly = true; } ]. Is there a type that allows for that?
<srhb>
Googling for hydra-build-products might allow you to extrapolate what the individual columns mean. It's something like.. Product type, product name, product path, Maybe (individual file in product path)
<srhb>
Taneb: Something like echo "doc coverage $out/share/hpc/html" >> $out/nix-support/hydra-build-products
<[Leary]>
GI libraries seem to be excluded from the hoogle index generated via ghcWithHoogle. Do I need to do something special for them?
<`_>
Even if they are a dependency of something else it doesn't make sense
<`_>
So, I may have overlooked something small here, but I have a box that I've set up nix-serve on. I then generated a keypair on it, ran `nix sign-paths -k /my/key --all`, then added its url and public key to my configuration.nix. Problem is that when I attempt nix-build locally, I'm seeing issues along the lines of "warning: substituter 'https://cache.example.io' does not have a valid signature for path
2018-08-30
<wpcarro>
infinisil: and that'll do the LTS emacs or something?
<infinisil>
wpcarro: Something like that, I don't know the details
<wpcarro>
might help if a base parser written using a PEG or something could be shared b/w the C++ codebase and the Rust project
<wpcarro>
I've tried searching online for a starter guide to porting something like a Vim config or Emacs config to Nix, but to no avail...
<Dezgeg>
diff the hexdump -C of it or something like that
<infinisil>
There was even some one-click install support for Nix packages, I wish we'd have something like that still
<ldlework>
(I have only ever tried to contribute to the thinking around nix's rough edges as a user, nix something I absolutely love and spend all my time on - no I'm just a bad faith actor trying to tear it down)
<maurer>
I just wanted to make sure you were going to get something for your configuration work
<maurer>
OK, yeah, if you want that kind of schedule, ZFS is actually buying you something
<kini>
probably on an exponential dropoff kind of schedule, i.e. daily for week, then weekly for a month, then monthly for a year, then yearly, or something like that
<JonReed>
johanot: Some packages will not have an `src` though (or can something else like `srcs`). Or the source can be already build somewhere previously and then passed to an expression. It can also be inside `let in` expression and be build there somehow before being passed to the mkDerivation.
<johanot>
any easy way of getting the sources of a package? something like "nix-build -A firefox.src"
<das_j>
mpickering: I thought so as well, but this results in error: attempt to call something which is not a function but a set
<das_j>
In particular, I'm trying to do something like environment.systemPackages = (manual.manpages.override { name = "my-manpages"; });
<emily>
hard to see how to go from node2nix(1) to something I can put in, say, systemPackages
<lezed1>
so it's something not set globally
<srhb>
(Just in case something else is on the path already)
<srhb>
It's not completely obvious. #nixos-dev is more about wide-ranging changes to the overall design, not single packages (unless perhaps it's about something deep like stdenv)
<etu>
So I got something good from it
<jasom>
iwakura0613: if you set the library as a dependency in your nix expression, the build environment should have the proper headers in the include path already. If you're doing a manual build of something, perhaps nix-shell will do what you want?
2018-08-29
<elvishjerricco>
eacameron: NixOS installs a variety of sessions, so something is just picking the wrong one. I know it has some sense of defaults for the desktop and window managers, but I don't think all login managers take them into account: https://nixos.org/nixos/options.html#desktopmanager.default
<Lisanna>
nix-env has a -iA channelname.package mode for install... but that doesn't work with -e. Is there a way to uninstall a package that came from something other than nixpkgs in the NIX_PATH without giving the fully-qualified /nix/store path?
<nefix>
Yeah, I always take notes when learning something new
<JonReed>
infinisil: I think I need to get over the laziness and just setup a blog. I have bunch of those posts laying around. But they are not in a wiki format, but rather as an exploration when something fails and how I approach to debugging and correcting it.
<cocreature>
das_j: not sure if there is something more succinct but you could use findFirst
<philippD>
nefix: can you provide an example input to the formatRules function? As it stands the input has to look something like `[{ instanceName = ""; className = ""; ....} {...} {...}]`
<infinisil>
Profpatsch: I guess you'd need something like pkgs.srcOnly
<srhb>
There's something to be said for one-config-one-system
<nefix>
attempt to call something which is not a function but a set
<nefix>
attempt to call something which is not a function but a set
<etu>
baimafeima: But if you're unsure, you can always try to set it up in Virtualbox or something :)
<baimafeima>
etu, and that it is independent, I don't like OSs which are based on something based on something, derivatives of derivatives
<emily>
I think you probably need at least a little programming background to be able to do non-trivial NixOS configuration, at least until someone makes a nice GUI configurator for NixOS modules or something.
<hyper_ch2>
clever: I did buy lifetime plex pass... it's not that much... $120 or something so if it saves me half an hour work, it's already paid off
<baimafeima>
is there something like a graphical software or app center
<ldlework>
probably to check there are no duplicates or something
<DenialAdams>
I'll poke around. Perhaps something is wrong with my configuration, not the help
<elvishjerricco>
DenialAdams: I pretty much always use the system configuration, unless I'm just messing around with something quickly and don't want to bother editing a file (but `nix run` is usually better in that case anyway)
2018-08-28
<ashkitten>
uh, idk if there's a fontconfig channel or something but i figured i'd just ask here: `<edit name="pixelsize" mode="assign"><name>size</name></edit>` gives me `Fontconfig warning: ... saw range, expected number` but i can't figure out why? it works just fine so i guess it doesn't matter, but yeah.
<Thra11>
clever: I assume they meant to bump the version and assumed the url contained ${version} or something
<leotaku>
When trying to deploy to my nixops-managed server I get an "unknown serve command 9" error, does anyone know how to fix something like that?
<booglewoogle>
trying to set something up that i can use for a while and ghc-mod was mentioned a lot when i researched useful plugins
<sphalerite>
timokau[m]: do you have to? Arguably you could use free or something to determine the amount available, but that will vary depending on other stuff running as well. In any case, nix doesn't have a facility for it
<timokau[m]>
Is there something like NIX_BUILD_CORES for available memory?
<Dezgeg>
I wonder how hard it is to extend something like doxygen
<Turion>
srhb: Maybe I've missed something there. What's the proposed solution? Execute as root? (That's what I'm doing now anyways, fingers crossed)
<srhb>
But now you have something to go on at least. :) Even a proposed solution (that has met some resistance)
<clever>
depends on if you want something that can be added to PATH or something to just run
<ekleog>
it'll tell you what systemd is currently seeing, and if it's not the correct one something likely failed in the switch
<clever>
something in nixos modifies the logind env vars to set that up
<ldlework>
clever: am I supposed to drop into a debugger or something?
<pie_>
restarting firefox because something seems to have broken...gonna try to see if i can get a listing of modified about:config options
<pie_>
i think i might have something disabled in about:config but i cant find what to look at
<Shados>
Well, that's something... although not documented it looks like?
2018-08-27
<samueldr>
emily: having something specifically for the shell be named shell.nix is perfectly right IMO
<primeos>
pie_: Yes, can I help you with something?
<aanderse>
srhb: the software is old and probably best suited to use something like systemd these days... but it would be good to have another option for people who want to migrate existing infrastructure when coming to nixos
<jtojnar>
selfsymmetric-pa: you will probably need something like `.override { withXwidgets = true; webkitgtk24x-gtk3 = pkgs.webkitgtk; }`
<jtojnar>
emily: you can do something like this: `with import <nixpkgs> { overlays = [(self: super: { glib = super.enableDebugging super.glib; })]; }; …`
<infinisil>
Also something like `pkgs = import ((import <nixpkgs> {}).fetchFromGitHub { owner = "NixOS"; repo = "nixpkgs"; ... }) {}` uses IFD, but only to get a nixpkgs version
<mkaito>
infinisil: for what it's worth, nix-instantiate --eval doesn't seem to do what I expected, it seems to spit out a non-forced AST or something rather than a store path.
<yorick>
gchristensen: I was wondering if there is something more resilient, that tries to reconnect