barrucadu has quit [(Quit: Rebooting for kernel upgrade...)]
jb55 has quit [(Ping timeout: 276 seconds)]
akaWolf has quit [(Ping timeout: 250 seconds)]
jb55 has joined #nixos
barrucadu has joined #nixos
<catern> hmmmmmmmmmmm
rosa has quit [(Quit: rosa)]
rosa has joined #nixos
<rosa> does nix os use ptrace to help redirect?
<catern> rosa: no
<rosa> Ok
rosa has quit [(Quit: rosa)]
rosa has joined #nixos
erasmas has quit [(Quit: leaving)]
rosa has quit [(Client Quit)]
rosa has joined #nixos
rosa has quit [(Client Quit)]
fendor has quit [(Quit: Leaving)]
rosa has joined #nixos
rosa has quit [(Client Quit)]
rosa has joined #nixos
rosa has quit [(Client Quit)]
<Lisanna> Hey, if I have 50 nix-build processes launched from e.g. bash, but I specify that I can only have 10 builds running at a time, then will 40 of those block until they get a free "slot" to run in?
<Lisanna> e.g. for i in `seq 1 50`; do nix-build -A "package-$i"; done
markus1199 has joined #nixos
mariav has joined #nixos
gerschtli has quit [(Quit: WeeChat 1.9.1)]
markus1189 has quit [(Ping timeout: 248 seconds)]
<catern> hey #nixos
<manveru> Lisanna: that will still do one build at a time, since nix-build waits until the build is done
<Lisanna> what do you mean "still do one build at a time"? I'm assuming that I have build-max-jobs set to 10
erictapen has quit [(Ping timeout: 264 seconds)]
<manveru> yes, but nix-build is synchronous
<catern> I have a package manager "mypkg" full of packages to import into Nix, and I have some options of which approach to take. I can either expose the package locations on a colon-separated path like MYPKGPATH, or I can list the packages in a file and identify that file with MYPKG_INDEX, or I can list the packages in a file and have that file be looked up relative to the executing file or something like that, or...
<manveru> replace the `nix-build -A` part with `sleep 1` and it's the same
<catern> what do you think? which is better, a MYPKGPATH or a database full of package locations?
<Lisanna> ...you're telling me that build-max-jobs is always per-invocation of nix-build, and that if two users e.g. invoke nix-build at the same time on the same system, one of them will be completely blocked?
<catern> database/index
<Lisanna> regardless of what the other is building?
<manveru> Lisanna: no
<Lisanna> I'm confused then
<manveru> for i in `seq 1 50`; do nix-build -A "package-$i" &; done
<manveru> this would work
<Lisanna> that would have 10 builds running?
<manveru> but without doing the nix-build in the background, your shell will block :)
<Lisanna> and 40 waiting?
<manveru> yes
<Lisanna> oh, yeah, sorry, forgot to include &
<Lisanna> I know that:)
<manveru> :D
<Lisanna> okay, good
<Lisanna> had me worried for a second
<manveru> catern: generally i like env vars better...
<manveru> catern: or you could make a directory with links to each package
<catern> manveru: a directory with links to each package seems a lot worse?
<manveru> don't think an actual "database" brings much
<catern> sure sure, it would be a plain-text file
<manveru> well, that's how we do it with ruby and yarn packaging
<catern> but I guess links would be equivalent-ish
<catern> oh, I guess ruby and yarn need some kind of specific directory structure, and you recreate that structure using symlinks?
<manveru> we build each package separately and then symlink them together
<manveru> yeah
<catern> I have no constraints on directory structure myself
<manveru> any more details about that "mypkg" thing? :)
<catern> it's a proprietary package manager at my job that I want to replace with Nix :)
<manveru> for python?
mariav has quit [(Quit: mariav)]
<catern> it's for Python, C/C++, and Java
<catern> but it also has some crazy random databases inside various packages
<catern> which are currently loaded through a bespoke mechanism, which I guess ideally I would keep that bespoke mechanism working inside Nix
<catern> but it's a really sucky mechanism, and I could just make a new one, and add a backwards compatible wrapper :)
<sphalerite> Why do I get "you are not privileged to add signatures" when I try to use nix sign-paths? Surely there shouldn't be a problem with allowing all permitted users to add signatures to paths, provided they can read the key?
<catern> so that's why I have a decent amount of freedom: I only need to figure out how to reference these random pieces of data inside packages, and I can invent whatever mechanism I want to do so
<manveru> catern: i'm not sure anyone can help you much in figuring out your design...
<catern> well, I effectively have complete freedom, though :)
<manveru> yeah, but that's the problem :)
<catern> surely people have some idea about what the ideal package manager to integrate with Nix would be :)
<catern> or, maybe in other terms: the ideal programming language? hmm
<manveru> well, have you heard about nix? it's my ideal package manager ;)
<catern> :)
<manveru> just put stuff into buildInputs and you're fine
<catern> unfortunately I guess the issue is that I need to provide support for loading these pieces of data, from many different languages
<sphalerite> builtins.toJSON?
<catern> sphalerite: it's a different kind of problem than can be solved by that I'm afraid :) it's big binary blobs, not anything that the Nix language is touching, just shuffling them around
<catern> but I need to load them from, say, Python, which doesn't support baking-in paths, so it absolutely needs to be an environment variable... I guess?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] dtzWill opened pull request #1703: linenoise -> linenoise-ng ? (master...feature/linenoise-ng) https://git.io/vbfgd
NixOS_GitHub has left #nixos []
<dtzWill> weeee
<Ralith> catern: or you could write a list of paths to a file, or do any number of other things
<Ralith> pass it on the command line via a wrapper script; substitute it into the source
thc202 has quit [(Ping timeout: 255 seconds)]
<catern> Ralith: if I write a list of paths to some database file, how do I find that database file, from an arbitrary executing Python file?
<catern> passing it on the command line is no better than an environment variable, since it still requires a wrapper script
<catern> substituting into the source requires either a specially prepared file for substitution, or a file that I create, which is difficult to locate.
<catern> I guess a specially prepared file could be okay though
<catern> hmmm...
<Ralith> catern: build the python thing with nix
<catern> sure, of course, I am doing that already?
Ross has quit [(Quit: ZNC - http://znc.in)]
<Ralith> then what's the problem?
isaac__ has quit [(Excess Flood)]
Ross has joined #nixos
isaac__ has joined #nixos
<Ralith> you can generate the file adjacent to the source, or substitute the paths directly into the source
_ris has quit [(Ping timeout: 264 seconds)]
<Ralith> python must have *some* way to access the prefix you installed to or at least the physical location of the current file
<gchristensen> is vbgl on IRC?
<Ralith> even if not a static one, and even if you don't want to substitute in the static path via nix
drakonis has joined #nixos
<catern> I don't think Python has a way to access the prefix I installed to
<catern> it can certainly access the location of the current file
<Ralith> the latter is a predictable function of the former, so
<catern> but that function is unique for each individual file
<Ralith> so?
<Ralith> you only need it once
<catern> if I have /nix/store/hash-pkg/foo/bar/a.py and hash-pkg/foo/b.py and hash-pkg/.index_file, then how do I generically find index file from both a and b?
jb55 has quit [(Ping timeout: 240 seconds)]
ilja_kuklic has quit [(Ping timeout: 268 seconds)]
<Ralith> generate c.py at a well-known location relative to the prefix, import it as needed
<catern> also, more concretely, how would this kind of index file work for programs run under nix-shell, before building? I don't think it would work
<catern> for the same reason
<catern> (as that it doesn't work when running under nix-shell)
<catern> also, again, then how do I find c.py??
<gchristensen> github is down right?
<Ralith> the same way you find any file?
<Ralith> o_O
<catern> if c.py is at a well-known location, that's no better than .index_file being at a well known location...
<Ralith> gchristensen: works for me
<gchristensen> huh
<catern> works for me too
<gchristensen> double huh...
<Ralith> catern: python allows you to access code written in other files, I am given to understand
<Ralith> something to do with 'import' statements
<catern> (for what it's worth, there is a convenient site "downforeveryoneorjustme.com" which you can use to check these kind of things)
<Ralith> there is nothing magically difficult to import about a generated file
<Ralith> as far as the rest of the code is concerned it is no different than any other part of the source
<catern> so how do I import the c.py you mentioned, from both a.py and b.py from my example above?
<Ralith> the same way you would if it wasn't generated
<Ralith> pretend there is a c.py in your source distribution
mumux has quit [(Remote host closed the connection)]
<catern> okay fair enough
<Ralith> it sounds like you also need to make up your mind as to whether you want this data to be compiled-in or fetched dynamically from the environment; both are feasible but they're semantically different
<catern> but even in normal Python, that is a pain, because you use different paths to import c.py in each file {a,b}.py
<Ralith> gchristensen: yep
<gchristensen> ???
<catern> same
<Ralith> gchristensen: I saw some reports of issues elsewhere, perhaps they're having issues on just a few of their servers
Mateon1 has quit [(Quit: Mateon1)]
<Ralith> catern: nontrivial projects in any programming language involve spreading code between many files and doing whatever import-analogous thing
orivej has joined #nixos
<Ralith> this should not be a barrier
<Lisanna> heya, if I have some test binary that depends on a library via dynamic linking, both built with Nix, and if I have 100 different builds of that library, won't I need 100 different builds of that test?
Mateon1 has joined #nixos
<Ralith> I'm sure you can re-export it from some utility module or whatever if you want to minimize impact
<catern> alright alright... hmmmm
<Lisanna> even if the test itself never changed?
<Ralith> wait
<Ralith> why are we even talking about this as if it needs to be generated anyway
<catern> regardless, that is still really inconvenient in Python
<Ralith> just go to whatever utility or root module you put other simple helper functions in and jam it in there
<catern> to do "import c" in one file and "import ../c" in another
<Ralith> this is literally no less convenient than any other routine programming task
<manveru> Lisanna: you could use patchelf to change the link location before running the test, but usually yes
<Ralith> like, IANA pythonista, but if using code from other files is unbearably onerous then python is fatally broken and would never have reached meaningful adoption
<Lisanna> manveru: or LD_LIBRARY_PATH?
<manveru> or that :)
<manveru> depends on how you run the test
<Lisanna> because if I use patchelf then I'd still end up with 100 different binaries
<Lisanna> each the output of patchelf
<manveru> true
<manveru> if your test is huge... you could optimize that way, but if you want to package the test + the lib in one, then you need 100 different builds
<catern> Ralith: so there is a variable list of dependencies at build time, the file that is being generated contains that list of dependencies
hyphon81 has joined #nixos
<catern> the API I want is from resource_lib import get_resource; get_resource(name_of_resource)
<Ralith> and the generated file is at a fixed location in the installed tree, and can hence be trivially referred to by whatever helper function parses it, which will only be in one file anyway
<catern> that is possible to do with an environment variable and not possible if there are any generated files at some location
<catern> er
<catern> not possible if it's done with some generated file at some location*
<Ralith> I can't tell you how to write pretty python APIs, but the information is there
<catern> hmm
<Ralith> perhaps resource_lib is c.py
<Lisanna> okay, but say I want to go and run the test against some version of the library. Since that dependency isn't being tracked in nix anymore, is there some pretty way I could package it so that I could have 100 small wrappers or whatever for the test that link agaisnt the correct thing, but all use the same base test binary?
<Ralith> if need be, nix likely trivializes the task of literally generating a different instance of an external python package for every dependency set
<Ralith> but if that's truly necessary it's only because python is dumb
<Ralith> which would not be my initial assumption
<catern> well, generating an external python package which contains the dependency set, would solve the problem because the location of that python package would be put on PYTHONPATH
<manveru> Lisanna: sure
<Lisanna> so if I ask Nix for a list of the dependencies of that wrapper, it would give me the base test binary and the correct library, and then if I install that somewhere and then run that wrapper, it links against the correct thing?
<manveru> Lisanna: basically, you write a derivation that outputs a shell file like `LD_LIBRARY_PATH=${pathToTheLib} ${pathToTheTest}`
<catern> i dunno, let me think about it, but I think that Python is indeed dumb, or at least Haskell and Idris are way smarter :)
<Lisanna> ...oh yeah, I guess that could work like that
<Lisanna> I was thinking to myself that it could be a bash script, but bash scripts don't have rpaths :)
<manveru> you'd have 100 scripts, but still way smaller than 100 binaries
<Lisanna> but just doing ${library} in the bash script in LD_LIBRARY_PATH would work
Arcaelyx_ has joined #nixos
<manveru> out of curiousity, why do you have so many versions of that lib? :)
<manveru> all built with different flags?
<Ralith> catern: presumably you could shortcut through whatever mechanism PYTHONPATH is being communicated through directly and reduce the faffery
<catern> Ralith: well, PYTHONPATH is communicated through a wrapper script
<catern> I could set another environment variable in that wrapper script, pointing to the generated file :)
<Ralith> given that the wrapper already exists, that seems pretty natural
<catern> Ralith: are you maybe familiar with bash enough that I could use it as an example of how doing this purely with a generated file is tricky?
<Ralith> I could understand wanting to avoid it if there wasn't one already
<Lisanna> manveru: different versions, different flags
<catern> yeah I mean
<catern> I am probably going to use an env var I guess
<catern> now I just need to decide how to format that env var... :)
<Ralith> colon-separated is traditional
<catern> key-value pairs like NIXPATH, or just a straight list like PATH?
<Ralith> do you need keys?
<catern> certainly colon-separated either way :)
Arcaelyx has quit [(Ping timeout: 276 seconds)]
<Lisanna> I'm writing a CI / build system basically
<catern> well, the keys are the names of the resources I'm exporting...
<clever> catern: with NIX_PATH, if you search for <nixpkgs>, it will check each bare path to see if it contains a nixpkgs
<catern> you could scan the directories to find out the names, since the name is in a well-known file under each directory
<manveru> Lisanna: oh, then you could even do fancy things like avoid making the shell scripts...
<catern> but it might be a nice optimization to have the names in the env var itself
<clever> catern: and anything in the form of nixpkgs=path, will strip the nixpkgs off the search, and directly use that path
<clever> catern: so an entry of /tmp/foo and <nixpkgs> will check for /tmp/foo/nixpkgs
<catern> clever: check each bare path to see if it contains a nixpkgs directory? oh, interesting
<clever> catern: but nixpkgs=/tmp/foo will map <nixpkgs> directly to /tmp/foo
<catern> that's pretty flexible
<clever> it also supports sub-directories
<clever> so <nixpkgs/foo.nix> will only return the nixpkgs that contains a foo.nix
<catern> woah
<clever> so you could have several nixpkgs within NIX_PATH
<Lisanna> manveru: what do you mean?
<catern> I had no idea about that :)
<Ralith> I think there's a finite size budget for environment variables, bear in mind
<clever> and it will return the full path to the foo.nix it finds
<clever> catern: and -I will prepend things to the search path
<catern> Ralith: yeah, that is true
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #32129: dfeet: 0.3.12 → 0.3.13 (master...dfeet) https://git.io/vbfVg
NixOS_GitHub has left #nixos []
<catern> I don't *think* I will run into it?
<clever> catern: which has a nasty side-effect, if you -I nixpkgs=/does-not-exist, it will fail to find it, and silently check the original $NIX_PATH
<manveru> Lisanna: if you have a json like `{flags:[["-a"], ["-b", "-c"]],versions:["1","2"]}` to configure your builds
<clever> catern: if you want to ensure purity, you want to set NIX_PATH, rather then use -I to prepend
<catern> clever: hah!
<Ralith> bouncing off disk may become prudent
<catern> that goes to show, fancy features, you don't need them :)
<Lisanna> manveru: I have a datastructure like that already actually, you pass it into the builder and the builder will build the package with that exact configuration
<Lisanna> version is one of the options
<catern> Ralith: prudent or imprudent? thinking about it, I am certain that I won't run into env var size limits
<Ralith> okay then
<manveru> Lisanna: then just iterate through them and run `LD_LIBRARY_PATH=$(nix-build --no-out-link build-my-lib.nix --arg flags "$flags" --arg version "$version") $(nix-build build-test-file.nix)`
<Ralith> presumably easy to change in the future if you need to
<Lisanna> manveru: yeah, basically my plan
<manveru> so you don't write the 100 bash files :)
<Lisanna> except I'll do the iteration in Nix itself
<Lisanna> most of the logic for this is written in Nix
<Lisanna> including a constraint solver :)
<manveru> nice
<catern> hmm, maybe I should put JSON in the environment variable?
<catern> no that's dumb, I'll stick to key=value:colon=separated
<clever> catern: also, you can do something like myconfig=/path/to/foo.json in the path
<clever> catern: then just builtins.fromJSON (builtins.readFile <myconfig>)
<clever> which will return a nix attrset
<catern> clever: these are nice tricks... though I think I could abuse that quite horribly :)
<catern> (in unrelated ways to my current dilemma)
<catern> Ralith: yeah I think I have figured it out, thanks for talking me through it
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
<Ralith> \o/
sigmundv__ has joined #nixos
Neo-- has quit [(Ping timeout: 240 seconds)]
lambdamu_ has joined #nixos
sibi_ has quit [(Quit: Connection closed for inactivity)]
lambdamu has quit [(Ping timeout: 268 seconds)]
drakonis has quit [(Quit: Leaving)]
taktoa has joined #nixos
dj_goku has quit [(Ping timeout: 240 seconds)]
dan_b has quit [(Ping timeout: 250 seconds)]
dj_goku has joined #nixos
<clever> catern: another thing thats neat
<clever> catern: <nixpkgs> is translated into a function call at parse time
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mdorman opened pull request #32130: gnucash26: 2.6.12 -> 2.6.18-1 (master...gnucash-fix-and-update) https://git.io/vbfoi
NixOS_GitHub has left #nixos []
<clever> catern: <nixpkgs> gets turned into __findFile __nixPath "nixpkgs"
<catern> oh wow...
<catern> lol
<clever> and you can eval that in nix-repl and get the same reply
<catern> yikes
<clever> but this also means, if you mess with the value of __nixPath (even a let block works)
<clever> you can effect all <foo>'s in that scope
<clever> and builtins.scopedImport lets you inject things into the "global" scope when you import a file
<clever> i have used those together, to make a nix file that messes with the search path, as seen by another file
<clever> catern: when fetchgit/private.nix tries to find <ssh-config-file>, it will find the file created in test4
dj_goku has quit [(Ping timeout: 248 seconds)]
dj_goku has joined #nixos
dj_goku has quit [(Changing host)]
dj_goku has joined #nixos
<catern> you are crazy in the coconut clever
<clever> just wait :P
<clever> catern: this generates a nixos image, then boots that image under qemu
<clever> the image contains the xen hypervisor
<clever> so that runs nixos, under xen, under qemu
<clever> you can now test xen unikernels without having xen installed, without using root
<samueldr> dunno if you saw, but sandboxed builds are fine just by including the qemu-user, the file corruption (?) only happened when adding the arm bash to the sandboxed paths
<samueldr> now that's a bit spooky, I don't know how I could prepare a standalone test case
samueldr has joined #nixos
<> changed the topic of #nixos to: Topic for #nixos is "Need help? Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, ##nix-darwin"
<> changed the topic of #nixos to: Topic set by gchristensen!~gchristen@unaffiliated/grahamc on 2017-10-18 23:09:41 UTC
<catern> it's basically the only way I install or upgrade Linux distros at this point
<> changed the topic of #nixos to: Channel #nixos created on 2008-04-25 12:32:07 UTC
<clever> and with the rescue boot option, you can auto-generate the whole ramdisk
mbrgm has quit [(Ping timeout: 276 seconds)]
<catern> because I don't have to screw around with thumb drivers or much less CD drives
<samueldr> the void of ping timeouts ate my messages!
mbrgm has joined #nixos
<samueldr> [21:27:32] <samueldr> dunno if you saw, but sandboxed builds are fine just by including the qemu-user, the file corruption (?) only happened when adding the arm bash to the sandboxed paths
<samueldr> [21:28:01] <samueldr> now that's a bit spooky, I don't know how I could prepare a standalone test case
<clever> samueldr: does the empty file persist after the build has ran?
<samueldr> the build didn't run because the file became empty, and yes, the empty file persisted
dj_goku has quit [(Ping timeout: 240 seconds)]
dj_goku has joined #nixos
dj_goku has quit [(Changing host)]
dj_goku has joined #nixos
srdqty has joined #nixos
srdqty has quit [(Client Quit)]
<clever> samueldr: was the file empty before the build started?
srdqty has joined #nixos
<samueldr> no
<clever> that is strange
<clever> and does nix-store --verify --check-contents complain about it being corrupt?
<samueldr> this was verified, during the build I tried "file" on it and it emptied after the fetches to the cache
<samueldr> didn't try that
<samueldr> let me do it
<samueldr> (first need to corrupt the file)
<samueldr> oh, the notes I took when repro-ing: https://gist.github.com/samueldr/d2b56134e194dfa9ae05c934547fe9e1
srdqty has quit [(Client Quit)]
Supersonic112 has quit [(Disconnected by services)]
dj_goku has quit [(Ping timeout: 240 seconds)]
sigmundv__ has quit [(Ping timeout: 240 seconds)]
dj_goku has joined #nixos
dj_goku has quit [(Changing host)]
dj_goku has joined #nixos
sigmundv has quit [(Ping timeout: 255 seconds)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
hyphon81 has quit [(Remote host closed the connection)]
pie__ has joined #nixos
pie_ has quit [(Remote host closed the connection)]
dj_goku has quit [(Ping timeout: 268 seconds)]
dj_goku has joined #nixos
dj_goku has quit [(Changing host)]
dj_goku has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbf6h
<NixOS_GitHub> nixpkgs/master ac7ec05 adisbladis: rpcbind: Patch for CVE-2017-8779
<NixOS_GitHub> nixpkgs/master 015e051 adisbladis: Merge pull request #32119 from adisbladis/CVE-2017-8779...
NixOS_GitHub has left #nixos []
<vaibhavsagar> how do I enable flash in chromium?
<vaibhavsagar> https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix#L14119 suggests the presence of a `chromium.enablePepperFlash` option but I tried that and it doesn't work
<vaibhavsagar> and the programs.chromium configuration module doesn't include these options
<ivan> I think chromium has a built-time define that enables the flash component only for the official google build
<ivan> you could try patching it
<ivan> see pepper_flash in ./chrome/browser/component_updater/pepper_flash_component_installer.cc
gm152 has quit [(Quit: Lost terminal)]
dj_goku has quit [(Ping timeout: 260 seconds)]
dj_goku has joined #nixos
dj_goku has quit [(Changing host)]
dj_goku has joined #nixos
<samueldr> clever: path ... was modified! expected hash '...', got '...'
<clever> samueldr: yeah, thats not right, its corrupting the nix store!
<samueldr> exactly
<samueldr> I'm having a thought
pxc has joined #nixos
<pxc> I don't really know/understand how /nix/store gets mounted as read-only/write-once, but I'd like to do a NixOS install where /nix/store is separate from the root partition. Is there anything I should know about mount options or will Nix just figure it out if during the install I mount it as a normal R/W partition?
<samueldr> happy to report that only the bash that will be used in the build process gets corrupted, not the gnu hello I added to the sandboxed paths
dj_goku has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bhipple opened pull request #32132: haskell docs: fix typo (master...docs-typo) https://git.io/vbfiA
NixOS_GitHub has left #nixos []
<samueldr> since that bash can be used without issue when adding qemu-user-arm to the sandbox, without putting that bash in, could it be corrupting itself when "mounting" it again over the already included bash?
dj_goku has joined #nixos
dj_goku has quit [(Changing host)]
dj_goku has joined #nixos
marusich has joined #nixos
<samueldr> I really don't know much about the sandboxing though
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbfPe
<NixOS_GitHub> nixpkgs/master 05c00a8 Benjamin Hipple: haskell docs: fix typo
<NixOS_GitHub> nixpkgs/master c8a60e3 adisbladis: Merge pull request #32132 from bhipple/docs-typo...
NixOS_GitHub has left #nixos []
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
remexre has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
dj_goku has quit [(Ping timeout: 276 seconds)]
dj_goku has joined #nixos
remexre has joined #nixos
<pxc> can /nix/store be on a separate partition while /nix is on the root partition?
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
hamishmack has quit [(Client Quit)]
proteusguy has quit [(Remote host closed the connection)]
dj_goku has quit [(Ping timeout: 248 seconds)]
pie__ has quit [(Ping timeout: 268 seconds)]
dj_goku has joined #nixos
dj_goku has quit [(Changing host)]
dj_goku has joined #nixos
dieggsy has joined #nixos
<pxc> I guess I'll just try it
dj_goku has quit [(Ping timeout: 260 seconds)]
dj_goku has joined #nixos
dj_goku has quit [(Changing host)]
dj_goku has joined #nixos
<eacameron> I just update my 17.09 server to newer commit of nixos, and now my haskell app has no logs in journal and it isn't recording any...
<eacameron> Do I need to configure something differently?
<eacameron> It's running via systemd
<eacameron> <facepalm> I misspelled the service.
<eacameron> Please ignore me.
henrytill has quit [(Ping timeout: 248 seconds)]
henrytill has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
dieggsy has joined #nixos
dieggsy has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yrashk opened pull request #32133: tlwg: init at 0.6.4 (master...tlwg) https://git.io/vbf13
NixOS_GitHub has left #nixos []
Gohla has quit [(Ping timeout: 240 seconds)]
pxc has quit [(Ping timeout: 268 seconds)]
uwap has quit [(Ping timeout: 248 seconds)]
Gohla has joined #nixos
hamishmack has joined #nixos
uwap has joined #nixos
dj_goku has quit [(Quit: leaving)]
dj_goku has joined #nixos
noobineer has joined #nixos
noobineer has quit [(Max SendQ exceeded)]
mizu_no_oto has joined #nixos
schoppenhauer has quit [(Ping timeout: 240 seconds)]
schoppenhauer has joined #nixos
CustosLimen has quit [(Ping timeout: 252 seconds)]
CustosLimen has joined #nixos
zzamboni has joined #nixos
endformationage has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/bc54631f4dc (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
proteusguy has joined #nixos
reallycooldude has quit [(Ping timeout: 258 seconds)]
reallycooldude has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
fragamus has joined #nixos
<MichaelRaskin> Rovanion: I think you can override services.xserver.xkbDir; which is initially taken from xkeyboard_config
Capprentice has quit [(Ping timeout: 264 seconds)]
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
reallycooldude has quit [(Ping timeout: 248 seconds)]
proteusguy has quit [(Read error: Connection reset by peer)]
amir has quit [(Ping timeout: 240 seconds)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
miko__ has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
cement has quit [(Ping timeout: 276 seconds)]
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
reallycooldude has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
miko__ has quit [(Ping timeout: 255 seconds)]
miko__ has joined #nixos
jsgrant has left #nixos ["Leaving"]
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
<fearlessKim[m]> pxc there is an entry on the FAQ to put large files into the store, it shows how to mount the stuff
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
zzamboni has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
zzamboni has quit [(Client Quit)]
proteusguy has joined #nixos
zzamboni has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
zzamboni has quit [(Client Quit)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
miko__ has quit [(Ping timeout: 264 seconds)]
justbeingglad has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
justbeingglad has left #nixos []
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbf78
<NixOS_GitHub> nixpkgs/staging 7393665 Vladimír Čunát: gnutls: fixup download URL after update...
NixOS_GitHub has left #nixos []
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
zzamboni has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
asuryawanshi has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
ssmike has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
periklis has joined #nixos
Ivanych has quit [(Ping timeout: 248 seconds)]
rogue_koder has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
asuryawanshi has quit [(Ping timeout: 268 seconds)]
proteusguy has quit [(Read error: Connection reset by peer)]
zzamboni has quit [(Client Quit)]
proteusguy has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
drdo has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
asuryawanshi has joined #nixos
proteusguy has joined #nixos
<drdo> How do I install haskell packages? They appear to install but ghc can't find them (e.g. don't show up in "ghc-pkg list")
<srhb> drdo: You generally don't, but see ghcWithPackages
<srhb> eg. nix-shell -p "haskell.packages.ghc821.ghcWithPackages (pkgs: with pkgs; [ split lens aeson ])"
proteusguy has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
<srhb> drdo: Also see section 9.5.2.2 underneath here: https://nixos.org/nixpkgs/manual/#how-to-create-a-development-environment
zzamboni has joined #nixos
reinzelmann has joined #nixos
proteusguy has quit [(Read error: Connection reset by peer)]
civodul has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
ssmike has quit [(Ping timeout: 240 seconds)]
<hyper_ch> weird thing: I just rebooted my server and it has 127.0.0.53 in the /etc/resolv.conf.... I can't ping any domains but pinging IPs works
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbfbo
<NixOS_GitHub> nixpkgs/master f8077b7 Orivej Desh: criu: fix build with glibc 2.26
NixOS_GitHub has left #nixos []
asuryawanshi has quit [(Remote host closed the connection)]
ckauhaus has joined #nixos
asuryawanshi has joined #nixos
zzamboni has joined #nixos
Capprentice has joined #nixos
reinzelmann has quit [(Ping timeout: 250 seconds)]
periklis has quit [(Ping timeout: 248 seconds)]
<Lisanna> Is there a better way to make the Nix garbage collector not delete certain builds than to manually add a symlink to /nix/var/nix/gcroots/bar?
asuryawanshi has quit [(Remote host closed the connection)]
<Lisanna> err, /nix/varr/nix/gcroots/
<srhb> Lisanna: Well, you don't have to manually create the roots, you can use nix-build to do it.
asuryawanshi has joined #nixos
<Lisanna> oh?
<srhb> Lisanna: It's what happens by default if you don't specify --no-out-link
dhess has joined #nixos
<ckauhaus> Lisanna: I've written a small tool which registers GC roots for _unmanaged_ builds (e.g., manual configure && make)
<ckauhaus> no need in case the build is managed via nix-build though
<Lisanna> wait, that makes a symlink in the current directory, and makes a gcroot to that "result" symlink, so it'll break if I remove "result" from the current directory
<ckauhaus> correct
<srhb> Lisanna: I tend to place those symlinks in ~/gcroots or something :)
<Lisanna> srhb: and the you have a permanent gcroot to ~/gcroots?
<ckauhaus> if you need something permanently, put it into your user-env
<srhb> Lisanna: No, the /nix/var/nix/gcroots just point to those.
<ckauhaus> like nix-env -i -f ...
<Lisanna> ..but the thing I said would also work, wouldn't it? since it traverses directories
Tucky has joined #nixos
<srhb> Lisanna: I suppose so, I never thought of that :)
<Lisanna> ckauhaus: for certain things, I'm not sure what it would even mean to add it to the user-env. like, a derivation which just produces a text file. would nix-env'ing that keep it from being GCd?
zzamboni has quit [(Quit: Leaving.)]
<Lisanna> since it doesn't fall under the regular categories of /bin, /share, /lib, etc.
dhess has quit [(Quit: ERC (IRC client for Emacs 25.3.2))]
<ckauhaus> if it is referenced from ~/.nix-profile, yes
reinzelmann has joined #nixos
dhess has joined #nixos
<Lisanna> okay, that seems a littttle bit hacky, since the user that builds it is now also responsible for maintaing a nix profile that keeps a reference to it...
townsend has joined #nixos
<ckauhaus> ...or just keep the symlink
<ckauhaus> you have to keep anything at least
<Lisanna> I'm liking the symlinked gcroots directory idea though, only issue is that you'd have to specify that with --out-link, which means you have to be careful to always choose a unique name
madknight has quit [(Ping timeout: 240 seconds)]
mrkgnao has joined #nixos
<Lisanna> ...something something mktemp --tmpdir=~/gcroots
<Lisanna> yeah, that sounds like it would work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbfAw
<NixOS_GitHub> nixpkgs/staging d70d5c9 Vladimír Čunát: gnutls: force rebuild...
NixOS_GitHub has left #nixos []
jensens has joined #nixos
zzamboni has joined #nixos
zzamboni has quit [(Ping timeout: 255 seconds)]
tomster has joined #nixos
zzamboni has joined #nixos
<Lisanna> what happens if --out-link already exists? will nix-build fail, or overwrite it?
<kevincox> I believe it overwrites it, but this should be easy to test.
madknight has joined #nixos
<kevincox> (I assume this because the default link is overwritten silently on a successful build)
zzamboni has quit [(Ping timeout: 240 seconds)]
<Lisanna> Answer: nix-build fails
<Lisanna> "cannot create symlink "..."; already exists"
<Lisanna> it works if it was the thing that made that symlink
zzamboni has joined #nixos
tomster has quit [(Ping timeout: 248 seconds)]
tomster has joined #nixos
<Lisanna> interesting... if it's a symlink not made by nix-build, it fails, but if it's a symlink made by nix-build, even if for a different derivation, it will overwrite it
thc202 has joined #nixos
<Lisanna> that's unfortunate, that means there's no safe way to do what I'm trying to do
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbfpy
<NixOS_GitHub> nixpkgs/master ff7be8f Orivej Desh: dgsh: fix build with glibc 2.26
NixOS_GitHub has left #nixos []
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
amir has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
MP2E has quit [(Remote host closed the connection)]
ssmike has joined #nixos
<aw> Hello, everybody. Anyone here who might be able to help me to set-up uwsgi with PHP?
<tomster> gchristensen: mornin! it's me again :)
<tomster> gchristensen: i was wondering what would be the best approach to use your upgraded expression for chefdk permanently?
<aw> Actually, uwsgi is already working with php, but I'd like to enable APCu (which is available from phpPackages) but I'm too dumb to understand how to get uwsgi/php-embed/<some arbitrary phpPackages package> married… Oo
davidak has quit [(Ping timeout: 260 seconds)]
<ertes-w> is there a way to make 'nix-env -u' default to '--always' without using an alias/wrapper?
<sphalerite> Can I use a chroot/bind mount nix store, as supported by nix 1.12, as a binary cache? That is, put it in the nix.binaryCaches option
<ertes-w> BTW, the current default is still --lt, and that's very unfortunate… i *strongly* suggest that the default becomes at least --leq
<ertes-w> imagine that there is an OpenSSL upgrade for yet another security hole, and that you have a program installed that depends on OpenSSL
<ertes-w> --lt will *not* update that program, so it will keep using the vulnerable version
davidak has joined #nixos
aloiscochard has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] AndersonTorres opened pull request #32136: higan: 105 -> 106 (master...upload/higan) https://git.io/vbJet
NixOS_GitHub has left #nixos []
pxc has joined #nixos
dan_b has joined #nixos
<sphalerite> ertes-w: I'd say just avoid nix-env -u in general, just like nix-env -i without -A
Thra11 has joined #nixos
<ertes-w> sphalerite: why? nix-env -u is fine with --always
<ertes-w> sphalerite: but if we're gonna have an upgrade feature, we might as well do it correctly
<sphalerite> ertes-w: it will still often do stuff you don't actually want it to because it searches by name
<ertes-w> sphalerite: in my case all the names start with "ertes-"
<sphalerite> Like upgrading mumble to its unstable version. It's better to have an expression that you just install again (with -r) to upgrade
<ertes-w> i have a bunch of package groups in my ~/.nixpkgs/config.nix
pxc has quit [(Ping timeout: 276 seconds)]
<sphalerite> Is there a particular way nix will prioritise binary caches if more than one has the same path available?
qqq has joined #nixos
antonv has joined #nixos
<antonv> hello, if I use nix package manager on Ubuntu, how can I install window managers / desktop environments?
<antonv> I did nix-env -i i3
<antonv> but the login screen doesn't suggest i3 as an desktop environment for the session
<adisbladis> antonv: Thats expected. Your display manager does not know of i3.
<adisbladis> antonv: You could use xsession
darlan has joined #nixos
<antonv> adisbladis: I understand it's expected, but not sure what is the best way to solve that
darlan has quit [(Client Quit)]
<antonv> googling about sxession
ThatDocsLady has joined #nixos
chaker has joined #nixos
ckauhaus has quit [(Quit: Leaving.)]
ilja_kuklic has joined #nixos
dan_b has quit [(Ping timeout: 260 seconds)]
ssmike has quit [(Ping timeout: 240 seconds)]
ssmike has joined #nixos
ssmike has quit [(Read error: Connection reset by peer)]
antonv has quit [(Ping timeout: 258 seconds)]
dhess has left #nixos ["ERC (IRC client for Emacs 25.3.2)"]
<sphalerite> anton__: if you have a script called .xsession in your home directory it will supersede any choice made at login time in the display manager
<sphalerite> anton__: you could symlink that to i3, or if you want to do more, make it a shell script that starts other stuff in the background and ends with exec i3
ilja_kuklic has quit [(Remote host closed the connection)]
ShalokShalom has quit [(Remote host closed the connection)]
sigmundv__ has joined #nixos
<sphalerite> clever: any idea about using qemu-system-arm for a similar purpose to your qemu-user magic? I want to have a virtual ARM builder that's isolated from its host machine rather than sharing everything
ilja_kuklic has joined #nixos
<fearlessKim[m]> well my nagging on kernel stuff doesn't passion the masses https://groups.google.com/forum/#!topic/nix-devel/FAjNtd3drZI, I am ready to do the work but I need some direction/confirmation that the work can be upstreamed
drdo has left #nixos []
<hyper_ch> hmmm, I tried to create udev rules to let me assign usb devices to a qemu vm: https://paste.simplylinux.ch/view/65ebb9d6 however it still complains about readonly... the only thing that works this far is chmod -R 0777 /dev/bus/usb
kuznero has joined #nixos
<kuznero> Hi All!
tomster has quit [(Ping timeout: 260 seconds)]
<adisbladis> kuznero: \o
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #32136: higan: 105 -> 106 (master...upload/higan) https://git.io/vbJet
NixOS_GitHub has left #nixos []
<kuznero> nixops is using ssh to connect to provisioned servers. Is there any way I can pass `-o "ProxyCommand=..."` to ssh that nixops is using? I am working behind the proxy and there is no other way to make ssh work other than to pass custom ProxyCommand to it...
ivan has left #nixos []
<pcarrier> this "error: unexpected EOF reading a line" confuses me.
asuryawanshi has quit [(Ping timeout: 250 seconds)]
asuryawanshi has joined #nixos
<sphalerite> pcarrier: it's a bug
<sphalerite> As a workaround, use nix 1.11.x by doing whatever you were going to do in a nix-shell -p nix
<fearlessKim[m]> kuznero: unknown parameters are forwarded to ssh, just append it it to 'nixops ssh <mahcine>'
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ff7be8f807d (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
tomster has joined #nixos
ilja_kuklic has quit [(Ping timeout: 240 seconds)]
SOO7 has quit [(Ping timeout: 258 seconds)]
marusich has quit [(Ping timeout: 240 seconds)]
marusich has joined #nixos
patrl has joined #nixos
iyzsong has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pstn opened pull request #32137: linux-testing 4.14-rc2 -> 4.15-rc1 (master...415rc1) https://git.io/vbJmp
NixOS_GitHub has left #nixos []
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
patrl has quit [(Ping timeout: 240 seconds)]
townsend has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Quit: Leaving.)]
<kuznero> fearlessKim[m]: thanks, will try. Another thing might be to use ~/.ssh/config as well which is what I am investigating now
patrl has joined #nixos
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
patrl has quit [(Client Quit)]
patrl has joined #nixos
<patrl> hi all. I'm struggling with the wireguard configuration module. I was wondering if anyone here has any experience and could help me debug
Khetzal has quit [(Remote host closed the connection)]
<patrl> here's my wireguard.nix which I import into my global nix config: https://gist.github.com/patrl/c9b0dfbe2d8879a5bbd3b0e74e4b679b
Thra11 has quit [(Ping timeout: 258 seconds)]
zzamboni has quit [(Ping timeout: 240 seconds)]
<patrl> when I run the unit generated by the above config - wireguard-wg0.service - I get the following error from ip: "Cannot find device "wg0""
<patrl> I can't figure out what the hell is wrong since the config should create the device wg0
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
Khetzal has joined #nixos
zzamboni has joined #nixos
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbJ3Z
<NixOS_GitHub> nixpkgs/master 7f8bc04 Orivej Desh: obliv-c: fix build with glibc 2.26...
NixOS_GitHub has left #nixos []
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
<hyper_ch> patrl: systemctl restart wireguard-wg0
<hyper_ch> patrl: does that now create the devices?
<patrl> @hyper_ch yeah I tried restarting the unit several times, and I get the same error
zzamboni has quit [(Ping timeout: 276 seconds)]
<hyper_ch> that's why I use and it work... just doesn't get autostarted for some reason
zetok has quit [(Ping timeout: 240 seconds)]
zetok has joined #nixos
Khetzal has quit [(Remote host closed the connection)]
tomster has quit [(Ping timeout: 240 seconds)]
ssmike has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #32139: jgmenu: 0.7.4 -> 0.7.5 (master...upd.jgmenu) https://git.io/vbJsI
NixOS_GitHub has left #nixos []
<hyper_ch> patrl: what does journalctl say?
Khetzal has joined #nixos
ssmike has joined #nixos
townsend has joined #nixos
patrl has quit [(Ping timeout: 240 seconds)]
Khetzal has quit [(Remote host closed the connection)]
patrl has joined #nixos
<patrl> @hyper_ch thanks, I'll try this
<patrl> I guess the "persistentKeepalive = 25;" line might make a difference
<ocharles> Is there anyway to change the type of a configuration option without forking nixpkgs? services.grafana.database.type won't let me use `postgres`
<ocharles> obviously I'm fixing that and pushing upstream
<ocharles> but in the meantime it would be nice to override it
<niksnut> don't think so
<ocharles> I don't think so either (
<ocharles> :(
ssmike has quit [(Remote host closed the connection)]
<ocharles> probably for the best, it's such a niche use case that would require a fair bit of engineering
Khetzal has joined #nixos
ssmike has joined #nixos
simukis has joined #nixos
Thra11 has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
tomster has joined #nixos
<hyper_ch> patrl: that shouldn't make a difference... just check journalctl
zzamboni has joined #nixos
<hyper_ch> patrl: sudo journalctl -u wireguard-wg0
takle has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ocharles pushed 1 new commit to release-17.09: https://git.io/vbJn9
<NixOS_GitHub> nixpkgs/release-17.09 a7e881f Ollie Charles: nixos/grafana: Fix type of database.type option...
NixOS_GitHub has left #nixos []
patrl has quit [(Ping timeout: 258 seconds)]
patrl has joined #nixos
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [(Read error: Connection reset by peer)]
<gchristensen> hi tomster (good morning)
pie__ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #32107: chefdk: 1.3.40 -> 2.3.4 (master...chefdk-bump) https://git.io/vbvJP
NixOS_GitHub has left #nixos []
patrl has quit [(Quit: WeeChat 1.9.1)]
Guest52155 has joined #nixos
patrl has joined #nixos
<patrl> guh, still getting "device not found" errors for wireguard
<patrl> does anyone have a confirmed working wireguard config on 17.09?
<patrl> looking at the log for the generated unit wireguard-wg_home, this is the relevant error i'm getting "ip link del dev wg_home (code=exited, status=1/FAILURE)"
nuncanada has joined #nixos
<hyper_ch> patrl: as sad, my config works :)
patrl has quit [(Ping timeout: 276 seconds)]
patrl has joined #nixos
<gchristensen> its a shame Jason isn't here :)
<silver_hook> Did anyone try installing and/or running Lutris <https://lutris.net/about/> on NixOS?
patrl has quit [(Ping timeout: 240 seconds)]
patrl has joined #nixos
amfl has quit [(Read error: Connection reset by peer)]
<gchristensen> silver_hook: I don't know, but you might want to look in to steam-run
Neo-- has joined #nixos
amfl has joined #nixos
<silver_hook> gchristensen: As in a) using it directly to run Lutris; or b) to base a nix expression/package for Lutris on the steam-run one?
<gchristensen> maybe both! I don't know, but I'd start with (a) and see how it goes :)
<silver_hook> gchristensen: Hmmm, I may take a stab at it. Lutris could actually be a pretty good solution for gaming on NixOS.
patrl has quit [(Ping timeout: 268 seconds)]
patrl has joined #nixos
ertes-w has quit [(Ping timeout: 240 seconds)]
bennofs has joined #nixos
<gchristensen> "output path ‘/nix/store/qv6mdc3hilbxsicjgn3sivhx3w8fl0qd-firefox-59.0a1.en-US.linux-x86_64.tar.bz2’ has sha512 hash ‘0d17ys3z2wvn72r24va5k8py4grrd6z23rszisf78j8srh8rfrli0j10cq6ppypzamcpffygdkvpp236vvqz883m4dbfyz5gacd6abs’ when ‘2kh572qsw9hpxjhaqyxw9vh8rw0620rpjh9p9wi0rc9cj4xc4pzybc3yiy8lv0i7h3zss7x9xasbl7dn6bbrrxdngdwsjf805x92fy9’ was expected" :( firefox still hasn't fixed the cache coherency on
<gchristensen> their CDN
asuryawanshi has quit [(Ping timeout: 240 seconds)]
paraseba has quit [(Remote host closed the connection)]
ertes-w has joined #nixos
bennofs has quit [(Quit: WeeChat 1.9.1)]
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vbJ84
<NixOS_GitHub> nixpkgs/master 3314e18 Yurii Rashkovskii: tlwg: init at 0.6.4 (#32133)...
NixOS_GitHub has left #nixos []
Thra11 has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] garbas pushed 1 new commit to master: https://git.io/vbJ8K
<NixOS_GitHub> nixpkgs/master 652842d Léo Gaspard: clamav module: make services.clamav.daemon.enable actually work
NixOS_GitHub has left #nixos []
sg2002 has joined #nixos
patrl has quit [(Ping timeout: 264 seconds)]
asuryawanshi has joined #nixos
ylwghst has quit [(Ping timeout: 252 seconds)]
patrl has joined #nixos
ilyaigpetrov has joined #nixos
ylwghst has joined #nixos
patrl has quit [(Client Quit)]
stphrolland has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<sg2002> Hello. Can someone point me at what lib.optional does?
<sg2002> What I actually need is to add a new option to a package and then use it to add some stuff to a couple of strings. Any good package definitions to steal that from? The manual points to https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/newsreaders/pan/default.nix and it uses stdenev.lib.optional.
periklis has joined #nixos
Thra11 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #32140: nano: 2.9.0 -> 2.9.1 (master...nano_2_9_1) https://git.io/vbJBn
NixOS_GitHub has left #nixos []
<stphrolland> Hi. I'm a little lost. I want to use fluxbox, which is considered a windowManager (like awesome) and not a desktopManager (like plasma5 or gnome3). However although I have enabled fluxbox, the fluxbox entry is not listed as available wm inside the lightdm choices. I have only listed plasma5 and gnome3. I can make fluxbox run, as if it was becoming a default, when I disable plasma5 and gnome3. Any idea what config marameter should
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yellowgh0st opened pull request #32141: compton: adding missing xr_glx_hybrid backend (master...compton) https://git.io/vbJBy
NixOS_GitHub has left #nixos []
Thra11 has quit [(Ping timeout: 276 seconds)]
paraseba has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 255 seconds)]
Mateon3 is now known as Mateon1
Khetzal has quit [(Remote host closed the connection)]
oida has quit [(Ping timeout: 252 seconds)]
Oida has joined #nixos
<sg2002> Another question from the tutorial - when I do "nix-build -A libfoo" in which folder should I do it? In the root, the one that contains README.md?
ylwghst has quit [(Ping timeout: 260 seconds)]
<mg_> is there any way to install a nix overlay globally for the whole nixos system? All guides I see tell you to put them in $HOME/.config/nixpkgs/overlays, but I guess that only works for a single user
townsend has quit [(Remote host closed the connection)]
Khetzal has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vbJ0Z
<NixOS_GitHub> nixpkgs/master acbaefa Tuomas Tynkkynen: Revert "linux-testing: 4.14-rc8 -> 4.15-rc1"...
<NixOS_GitHub> nixpkgs/master e8fcced Philipp Steinpass: linux-testing: 4.14-rc8 -> 4.15-rc1...
NixOS_GitHub has left #nixos []
patrl has joined #nixos
<gchristensen> Dezgeg: ^ that is a funny push
<Dezgeg> heh
<Dezgeg> yay for standardized commit message formats
<gchristensen> :)
<hyper_ch> why is it a revert?
<sphalerite> mg_: nixpkgs.overlays option
<sg2002> So I've added my own variable. Now I get "undefined variable". What should I do to define it?
<Dezgeg> I revert a non-working version and push the working version
pxc has joined #nixos
<sphalerite> sg2002: use a let binding, a function parameter binding or a with. We'll need some more context to be able to help you any more than that
<sg2002> sphalerite: Ok, my bad there - missed a comma.
<sg2002> sphalerite: Can you or someone else explain what does this block do - https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/newsreaders/pan/default.nix#L19 ?
qqq has quit [(Ping timeout: 260 seconds)]
<sphalerite> sg2002: it defines the buildInputs attribute in the set that's passed to mkDerivation
<sg2002> sphalerite: Yeah, I get the first part. What aout the ++ stend.lib.optional?
fendor has joined #nixos
<sphalerite> ++ is for list concatenation
pxc has quit [(Ping timeout: 276 seconds)]
ma27 has joined #nixos
<sphalerite> stdenv.lib.optional :: Bool -> X -> [X] in haskell syntax, does that help?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix closed pull request #32113: strongswan: 5.6.0 -> 5.6.1 (master...strongswan-5.6.1) https://git.io/vbvwo
NixOS_GitHub has left #nixos []
<sphalerite> it returns the empty list or a singleton list depending on the boolean
periklis has quit [(Ping timeout: 268 seconds)]
<sg2002> sphalerite: Sorry, not a haskell guy. Is spellChecking a boolean here and gtkspell a return value?
patrl has quit [(Quit: WeeChat 1.9.1)]
<sphalerite> yep, spellChecking is a boolean (see its default value at the top of the file)
<sphalerite> it evaluates to [gtkspell] if spellChecking is true, otherwise to []
Thra11 has joined #nixos
Lisanna3 has quit [(Ping timeout: 258 seconds)]
fendor has quit [(Remote host closed the connection)]
fendor has joined #nixos
<sg2002> sphalerite: Thanks. And the last question - whats the meaning of this line - https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/newsreaders/pan/default.nix#L6 ?
<sphalerite> assert that spellChecking implies gtkspell != null
<sphalerite> you may want to have a look at the nix pills https://nixos.org/nixos/nix-pills/ to get a detailed understanding of the language
<sphalerite> https://nixos.org/nix/manual/#ch-expression-language is also useful as a reference
<sg2002> sphalerite: Thanks.
<sg2002> sphalerite: Yeah, I got as far as the manual, it's just that I don't really get the point of that assertion.
<sphalerite> you need gtkspell for spellchecking to work
<sg2002> sphalerite: And the value of gtkspell would be truthy if that package is installed?
<sphalerite> nix doesn't have truthiness, just true, false, and non-boolean
<sphalerite> no, gtkspell just needs to be available
earldouglas has quit [(Quit: leaving)]
earldouglas has joined #nixos
ylwghst has joined #nixos
<mg_> sphalerite: thanks :)
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
fendor has quit [(Remote host closed the connection)]
fendor has joined #nixos
phreedom has joined #nixos
jluttine has quit [(Ping timeout: 240 seconds)]
<sg2002> So, I've set up my own version of a package that adds an extra parameter. How do I build it?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/a7e881fbe11 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<ylwghst> sg2002: how you did it?
<sg2002> ylwghst: I've added a new variable like in the pan package.
<ylwghst> sg2002: have you edited a package whithin your local nixpkgs repository ?
<sg2002> ylwghst: Yes.
Wizek_ has joined #nixos
<ylwghst> sg2002: You can build it with:
<ylwghst> nix-env -f /path/to/nixpkgs -iA nixos.yourpackage
<sg2002> ylwghst: What about setting the param?
<sphalerite> just got an electric shock from the case of a server I'm working with… I don't think that's meant to happen
asuryawanshi has joined #nixos
wizek[m] has joined #nixos
<ylwghst> sphalerite: If youre alive than we can stay calm about it
stphrolland has quit [(Quit: Page closed)]
<sphalerite> I think I am
<ylwghst> sg2002: which param ?
asuryawanshi has quit [(Remote host closed the connection)]
<sg2002> ylwghst: I've added a new variable to the package. For example let's say I'm trying to build pan with spellChecking set to true: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/newsreaders/pan/default.nix#L1
asuryawanshi has joined #nixos
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
nallar has joined #nixos
<ylwghst> sg2002: I see
<ylwghst> sg2002: There is better way to do it.
<ylwghst> sg2002: You should use override within configuration.nix
Ross has quit [(Ping timeout: 276 seconds)]
nallar is now known as Ross
<sg2002> ylwghst: I was thinking of, but how to install those to?
<WilliamHamilton> hi, I'm trying to install a haskell program in my user environment via `nix-env -iA nixos.haskellPackages.brittany`. I'm on nixos-unstable, and the build fails in the test phase, so I'd like to disable the test phase, with something like dontCheck, but I don't know how to do that on the command line
szicari has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<ylwghst> sg2002: teh nixos-rebuild switch
<ylwghst> sg2002: but I actually forgot how it should be done exactly. I haven't used it for long time. I can just remember I once built polybar with i3 support somehow this way.
<pcarrier> anybody configured qt and gtk to use breeze icons+theme with a window manager like i3?
<pcarrier> currently breeze-icons, breeze-qt5, breeze-gtk are in my env, but dolphin doesn't find icons for example
zzamboni has joined #nixos
<ylwghst> pcarrier: how you did installed it?
<pcarrier> logs a lot of "QPixmap::scaled: Pixmap is a null pixmap"
<sg2002> ylwghst: But would this work with an option that was just added in the local repo. Wouldn't this look into the nixpkgs channel and fail, not finding this option?
<pcarrier> ylwghst: all of them are in the buildEnv for my user that I nix-env -riA
<sg2002> ylwghst: That's why I need some kind of nix-build solution.
<pcarrier> ylwghst: not sure what's needed here.
jtojnar has quit [(Quit: jtojnar)]
<ylwghst> sg2002: this way you can completely override the original derivation so you can make it build it exactly how you want
bitchecker has quit [(Quit: bye!)]
<ylwghst> pcarrier: try build them system wide first by defining them in environment.systemPackages = with pkgs; []; in configuration.nix
<pcarrier> why do they need to be system-wide?
bitchecker has joined #nixos
<pcarrier> FWIW breeze-qt5 and breeze-icons are already system-wide for ssdm
<pcarrier> sddm sorry
<ylwghst> pcarrier: adn you can't use them?
<pcarrier> IDK, how would I use them?
<ylwghst> pcarrier: try lxapperance
<pcarrier> I can choose them in lxappearance, and apply, and dolphin still doesn't look themed and still doesn't have icons
cybrian has quit [(Read error: Connection reset by peer)]
<Neo--> hey all, how can you set a package as an alias? I have firefox-esr and pkgs-master.firefox in my conf (https://gist.github.com/uskudnik/996f2214f2282656914444e1def5a596), but for some reason firefox points to firefox-esr and I can't seem to find how to even access the master's firefox
<ylwghst> pcarrier: the problem is that they aren't in usual location and dolphin problem cant reach them
<ylwghst> pcarrier: so
<ylwghst> pcarrier: try this install them with nix-env
<ylwghst> pcarrier: and then
<pcarrier> how am I supposed to tell Qt which theme to use BTW? I don't think lxappearance wrote anything but gtk config
<ylwghst> pcarrier: ln -s ~/.nix-profile/share/themes/ ~/.themes
<ylwghst> wait this instead
<ylwghst> ln -s ~/.nix-profile/share/themes ~/.themes
<pcarrier> yeah got it. well I did ln -s .nix-profile/share/themes .themes but same diff
<ylwghst> pcarrier: I'm not sure, I have't used QT. I awlays stick with GTK
<ylwghst> pcarrier: dolphin still unthemed?
<ylwghst> sg2002: This way you can build with custom parameter even within nix-shell:
<ylwghst> sg2002: nix-shell -p 'nginx.override{ openssl = libressl; }' --run "nginx -V"
tobiasBora has joined #nixos
<pcarrier> ylwghst: so QT_STYLE_OVERRIDE=Breeze fixes Dolphin.
<tobiasBora> Hello,
<pcarrier> in that it has a theme now.
iyzsong has quit [(Ping timeout: 276 seconds)]
<pcarrier> but still no icons.
<ylwghst> pcarrier: ln -s ~/.nix-profile/share/icons ~/.icons
<ylwghst> just try if it will work, but propably it should work without it if they are already in system wide profile
<ylwghst> pcarrier: so there shold another env variable for qt icons?
<tobiasBora> I'd like to install cups to manage some printers on a newly created nix server, and as a nix newbie, I'm not sure how to do that. I saw that the github contains this a "cupsd.nix" package, but I'm not sure how I should use it. Should I copy paste it and modify it to fit my needs ? Or am I supposed to import it, and then, somehow, happened things to the configuration file ? For example, how could I change the
<tobiasBora> line "Listen localhost:631" if I don't do a big copy/paste ?
<sg2002> ylwghst: When I try to get nix-shell in my local git repo it crashes with "error: out of memory".
<ylwghst> sg2002: oh wait
<ylwghst> sg2002: look here https://github.com/NixOS/nix/issues/1401
<ylwghst> sg2002: you should use nix-build -E 'with (import <nixpkgs>{}); nginx.override { openssl = libressl; }'`
<ylwghst> instead
bfrog has joined #nixos
joepie91 has quit [(Quit: Konversation terminated!)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
cybrian has joined #nixos
Thra11 has quit [(Ping timeout: 264 seconds)]
Thra11 has joined #nixos
<sg2002> ylwghst: Yeah, found that too. Here it's not seeing my new variable.
<ylwghst> sg2002: can you paste how you run it exactly?
zagy has joined #nixos
<sg2002> ylwghst: nix-build -E 'with (import <nixpkgs>{}); lm_sensors.override { sensord = true; }'
zagy has quit [(Client Quit)]
zagy has joined #nixos
<sg2002> ylwghst: sensord is my new variable. Gonna gist the package definition in a sec.
<ylwghst> nix-build -E 'with (import /path/to/local/nixpkgs{}); lm_sensors.override { sensord = true; }'
<ylwghst> try this
<pcarrier> mmmkay there are almost no icons in ~/.nix-profiles/share/icons or /run/current-system/sw/share/icons despite my installing a lot of stuff there: https://github.com/pcarrier/config/commit/952172580453ddf9f2c46109c117e161173a6fb0
<sg2002> ylwghst: Thanks. This seems to have finally worked.
tomster has quit [(Ping timeout: 240 seconds)]
<ylwghst> sg2002: <nixpkgs> means the system nixpkgs
<ylwghst> if you wan't to use your own repository just refere them as /path/nixpkgs but not /path/nixpkgs/ with at / it wouldnt work
<ylwghst> refere it*
<ylwghst> with / at the end*
<ylwghst> pcarrier: in nix-profile there are only installed in your environment with nix-env -i
<sphalerite> sg2002: ylwghst : more precisely, <nixpkgs> means "nixpkgs on NIX_PATH". That may vary depending on context!
<ylwghst> sphalerite: thanks
<sphalerite> but yeah on nixos it'll be the nixos channel by default
<pcarrier> I don't want to use my own repository
<pcarrier> I want to use overlays though.
<pcarrier> oh sorry different issue :P
<ylwghst> pcarrier: yep ^^
<sphalerite> mumble mumble pathsToInstall
<sphalerite> or pathsToLink even
<sphalerite> idk exactly what it does but I think it may be related to your question pcarrier
zzamboni has quit [(Quit: Leaving.)]
oahong has quit [(Ping timeout: 240 seconds)]
<sphalerite> "Setting up apt (1.0.9.8.4)" wtf kind of version number is that o.O
jb55 has joined #nixos
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
zzamboni has joined #nixos
<sphalerite> 1.11.15 ftw
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #32140: nano: 2.9.0 -> 2.9.1 (master...nano_2_9_1) https://git.io/vbJBn
NixOS_GitHub has left #nixos []
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
phreedom has joined #nixos
* ylwghst brb
ylwghst has quit [(Quit: Lost terminal)]
ylwghst has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #32139: jgmenu: 0.7.4 -> 0.7.5 (master...upd.jgmenu) https://git.io/vbJsI
NixOS_GitHub has left #nixos []
<aminechikhaoui> /join #linux
<aminechikhaoui> oops again -_-
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
MarcWeber has quit [(Remote host closed the connection)]
erictapen has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
Guest52155 is now known as TweyII
TweyII has quit [(Changing host)]
TweyII has joined #nixos
<Wizek> Hello! How can I get a version for a (haskell) package in a given context of a default.nix?
<Wizek> I'm trying to find out what version of `directory` this repo uses: https://github.com/ElvishJerricco/reflex-project-skeleton
<TweyII> Why is the Mozilla overlay not a channel? Is there a channel available for it?
<Wizek> I've tried `nix-instantiate --eval -E '(import ./default.nix {})' which works but it outputs a big blob of text with <CODE> all over.
<Wizek> is there some way to see what kinds of keys it has?
<Wizek> or to pretty print the structure?
zzamboni has joined #nixos
bennofs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] berce opened pull request #32143: nixos/doc/manual/x-windows: update touchpad from synaptics to libinput (master...master) https://git.io/vbJDL
NixOS_GitHub has left #nixos []
<TweyII> Wizek: My usual way would be to run nix-repl and inspect it from there
dbmikus has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
<TweyII> Wizek: nix-repl> pkg = import ./default.nix {}; builtins.attrNames pkg
<Wizek> TweyII: that sounds like a great idea! checking
Thra11 has quit [(Ping timeout: 240 seconds)]
<TweyII> Wizek: There's probably something useful in there, though I don't know the structure of cabal2nix packages
zzamboni has joined #nixos
<TweyII> Or whatever the cool kids use these days :)
Thra11 has joined #nixos
<Wizek> TweyII: this is great! how have I not heard of or tried nix-shell before...
zzamboni has quit [(Ping timeout: 258 seconds)]
asuryawanshi has joined #nixos
<Wizek> actually, that gave me the idea to: `cabal list --installed | grep -4 directory`, TweyII
<Wizek> so it would seem 1.3 is used in there
<Wizek> which is odd
zzamboni has joined #nixos
<TweyII> Why's that odd?
himmAllRight has quit [(Remote host closed the connection)]
himmAllRight has joined #nixos
zagy has quit [(Quit: Leaving.)]
<sg2002> So, after I've build my version using "nix-build -E 'with (import /path/to/local/nixpkgs{}); lm_sensors.override { sensord = true; }'" I still get the basic version whenever I try to install the build package. Is there some place where I should also register my build version?
fusion809 has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
zzamboni has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
<sg2002> Is there some way to double check that the version that I install using nix-env -f . -iA lm_sensors is the same as my build?
<Wizek> TweyII: because when I try to use ghcid with that project, I get `canonicalizePath: does not exist (No such file or directory)` and a rapid, endless reload cycle
<Wizek> TweyII: and that seems to be a bug in directory, fixed in 1.2.3.0
<Wizek> attempting to upgrade ghcid
drakonis has joined #nixos
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Sonarpulse has quit [(Ping timeout: 248 seconds)]
<fusion809> Is there an equivalent to autoremove and autoclean features of apt for nix? I've searched the nixos.org website for the works "autoremove" and "autoclean" but no results.
<fusion809> no relevant results I should say in the case of autoclean search^
Thra11 has quit [(Ping timeout: 248 seconds)]
<maurer> fusion809: Those features don't make sense in nix - if you install a package, its dependencies are only visible to it, not the system
<sg2002> fusion809: nix-collect-garbage is probably what you're looking for.
<maurer> Yeah, if you're just trying to reclaim space, nix-collect-garbage
<fusion809> Ah thanks. I just want to clear up disk space taken up by packages I've uninstalled as du -sh /nix has shown no significant change in disk space usage.
apeyroux has quit [(Read error: Connection reset by peer)]
<Wizek> okay, upgraded ghcid, now I'm getting `/home/wizek/sandbox/reflex-project-skeleton/frontend/frontend/src/: can't watch what isn't there!: does not exist` Which is weird, but at least it seems to be less related to nix
<tobiasBora> Is there any stackexchange-like website for nix?
<fusion809> Not that I'm aware of, Unix & Linux StackExchange is probably the best you're going to get
sg2002 has quit [(Read error: Connection reset by peer)]
<fusion809> That's if you want just StackExchange / AskBot sites
sg2002 has joined #nixos
<tobiasBora> fusion809: ok thanks. And do you know any active forum ?
asuryawanshi has quit [(Ping timeout: 260 seconds)]
<Wizek> tobiasBora: I know of reddit.com/r/nixos, but it's not very active
asuryawanshi has joined #nixos
<TweyII> fusion809: Are you using NixOS?
<tobiasBora> ok thank you!
<fusion809> Not at the moment, I'm running Arch, but I was using Nix on it. I've decided to uninstall it. I used it as a way of running VLC when Arch had a major bug in it.
<TweyII> fusion809: You might need to ‘nix-env --delete-generations old’ to get rid of old roots
<TweyII> Mmkay
<tobiasBora> Do you know why I can't manage to get cups working ? The avahi just crash. https://zb.phyks.me/?fd2054dcb5748096#2WT6aFCwr7RdaP1tEY7WoNTStwVaOJcmIF7L5GgiEW0=
zzamboni has joined #nixos
<the-kenny> tobiasBora: Just a wild guess: Do you have networking.hostName set to something?
zzamboni has quit [(Client Quit)]
<tobiasBora> the-kenny: yes, it should be raspberrypi.lan
zzamboni has joined #nixos
<tobiasBora> networking.hostName = "raspberrypi.lan";
<Wizek> Some good news: after upgrading to ghcid-0.6.8, this works for me: `cd frontend; ghcid -W -c '../cabal new-repl' -T main
nuncanada2 has joined #nixos
<tobiasBora> (it's just in another file, and when I use "hostname", I get this
hdaugherty has joined #nixos
isHavvy has joined #nixos
<tobiasBora> should I put this in the same file ???
marusich has quit [(Ping timeout: 276 seconds)]
nuncanada has quit [(Ping timeout: 268 seconds)]
Havvy has quit [(Ping timeout: 268 seconds)]
zzamboni has quit [(Remote host closed the connection)]
ylwghst has quit [(Quit: Lost terminal)]
<tobiasBora> and also I don't understand "WARNING: No NSS support for mDNS detected, consider installing nss-mdns!", I installed pkgs.nssmdns
rogue_koder has joined #nixos
ylwghst has joined #nixos
chaker has quit [(Ping timeout: 248 seconds)]
fusion809 has quit [(Quit: Leaving)]
<srhb> tobiasBora: Is having a dot in your hostName even legal?
asuryawanshi has quit [(Ping timeout: 248 seconds)]
MarcWeber has joined #nixos
<tobiasBora> really?
<srhb> tobiasBora: You probably wanted "lan" in networking.domain or something.
<tobiasBora> makes sens
<tobiasBora> ok, I'll try that
<tobiasBora> thanks
chaker has joined #nixos
<srhb> tobiasBora: I guess it's *technically* legal, but I think it will cause all sorts of dns absurdities, possibly affecting avahi as well.
asuryawanshi has joined #nixos
<tobiasBora> ok, I'll try removing it, thanks
ylwghst has quit [(Ping timeout: 276 seconds)]
<srhb> Weird, I find totally conflicting information on whether to use FQDN or hostname there...
<srhb> But since yours isn't FQ anyway...
ylwghst has joined #nixos
erasmas has joined #nixos
<ij> I want to try to change something in nixpkgs. How do I test it out with by building some package? (I want to add an argument to pkgs/development/haskell-modules/generic-builder.nix.)
ylwghst has quit [(Client Quit)]
<srhb> ij: nix-build path/to/your/clone -A someAttribute ?
<ij> Duh! Thanks.
jb55 has quit [(Ping timeout: 276 seconds)]
<tobiasBora> srhb: Woa, that's just great, I removed the ".lan", and no problem anymore! Thanks!
szicari has quit [(Ping timeout: 248 seconds)]
<srhb> tobiasBora: Great! :)
patrl has joined #nixos
szicari has joined #nixos
pxc has joined #nixos
cybrian has joined #nixos
patrl has quit [(Client Quit)]
patrl has joined #nixos
pxc has quit [(Ping timeout: 260 seconds)]
ylwghst has joined #nixos
Tucky has quit [(Quit: WeeChat 1.9.1)]
Neo-- has quit [(Ping timeout: 258 seconds)]
seanparsons has quit [(Ping timeout: 248 seconds)]
<Wizek> New question: If I `nix-env -i gitg` and launch it on elementaryOS, how come I can't resize the window? And as it happens, many GUI apps I install with nix have this limitation
<Wizek> any ideas why and-or how I could overcome it?
<tobiasBora> And by the way, is it possible to have two drivers in cups, the Gutenberg and the Gutenprint and gutenprintBin ? I tried to put both of them and if told me that an assert failed in gutenprintBin.
seanparsons has joined #nixos
ylwghst has quit [(Ping timeout: 240 seconds)]
<tobiasBora> hum I meant Gutenprint and gutenprintBin.
<tobiasBora> (By the way, what is the difference between these two drivers ?)
reinzelmann has quit [(Quit: Leaving)]
cybrian has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbUeV
<NixOS_GitHub> nixpkgs/master 2e55aec Orivej Desh: altcoins.zcash: disable parallel building
NixOS_GitHub has left #nixos []
<tobiasBora> waou gutenprint is downloading so much stuf ! O_o
<tobiasBora> (and it compiles lot's of things also)
Lisanna2 has quit [(Quit: Page closed)]
<tommyangelo> nixops has a pubkey/privkey pair for a host, and the host has the pubkey in the /etc/ssh/authorized_keys.d/root file, but sshd log on the host says `failed publickey for root` and nixops cannot connect. Anybody seen this before?
orivej has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to release-17.09: https://git.io/vbUfk
<NixOS_GitHub> nixpkgs/release-17.09 f2eddb1 Orivej Desh: dict: disable parallel building...
<NixOS_GitHub> nixpkgs/release-17.09 c3d4871 Orivej Desh: altcoins.zcash: disable parallel building...
NixOS_GitHub has left #nixos []
orivej has joined #nixos
<tommyangelo> this was first set up of a host: I set an initial nixos on the VM with `services.openssh.permitRootLogin = "yes";` but not in the nixops config, so that it would be deactivated by the nixops deploy
dywedir has joined #nixos
akaWolf has joined #nixos
erictapen has quit [(Ping timeout: 255 seconds)]
<barrucadu> I'm having a bit of difficulty with containers. One of my containers almost always fails to start, saying it has timed out. According to the journal, it's making progress (printing out messages about services starting and suchlike), but I guess it just doesn't finish in time. Any idea how I can go about debugging this (or increasing the timeout?)
<barrucadu> fwiw I don't think the container should take a long time to start, it's just running a few servers
DerGuteMoritz has joined #nixos
cybrian has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
cement has joined #nixos
dan_b has joined #nixos
<barrucadu> It may just wishful thinking, but I think it tends to work better if I want a bit before trying to start it; rather than trying to stop and immediately start (or restart) the container.
fragamus has joined #nixos
civodul has quit [(Remote host closed the connection)]
sigmundv__ has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbUTe
<NixOS_GitHub> nixpkgs/staging addd20e Vladimír Čunát: Merge branch 'master' into staging
NixOS_GitHub has left #nixos []
hdaugherty has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/vbUTO
<NixOS_GitHub> nixpkgs/staging 93294fc adisbladis: pcre2: Patch for CVE-2017-8786
<NixOS_GitHub> nixpkgs/staging e6a7a2e Vladimír Čunát: Merge #32134: pcre2: Patch for CVE-2017-8786
NixOS_GitHub has left #nixos []
tommyangelo has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] strout opened pull request #32144: cnijfilter2: specify --datadir for cnijlgmon3 (master...cnijfilter2-fix) https://git.io/vbUTo
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] wizeman closed pull request #30790: kodi: downgrades kodiPlugin.joystick to compatible version 1.3.2 (master...master) https://git.io/vFe97
NixOS_GitHub has left #nixos []
Neo-- has joined #nixos
JosW has joined #nixos
patrl has quit [(Ping timeout: 258 seconds)]
dywedir has quit [(Remote host closed the connection)]
goibhniu has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] wizeman pushed 1 new commit to release-17.09: https://git.io/vbUkk
<NixOS_GitHub> nixpkgs/release-17.09 29a4d94 Stefan Huchler: kodi: downgrades kodiPlugin.joystick to compatible version 1.3.2...
NixOS_GitHub has left #nixos []
patrl has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
aloiscochard has quit [(Quit: Connection closed for inactivity)]
<WilliamHamilton> hi, I'm trying to install a haskell program in my user environment via nix-env -iA nixos.haskellPackages.brittany. I'm on nixos-unstable, and the build fails in the test phase, so I'd like to disable the test phase, with something like dontCheck, but I don't know how to do that on the command line
<ij> I have a haskell package, whose "src = ./.;" and whose nix files are in the src directory, so I'll have a cache miss even when I wouldn't have one beacuse of haskell files. How could I avoid that while keeping the nix files in the repo?
<ij> It also copies the .stack-work to the nix store, which is horrible.
<srhb> ij: src = ./somedir ?
<ij> I would really like to avoid that if I could. I'd basically have only two root repo directories at that point — nix and the_rest.
ambro718 has joined #nixos
jtojnar has joined #nixos
sg2002 has quit [(Ping timeout: 240 seconds)]
<tobiasBora> Hum, it's really strange, "wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.15.tar.xz " works great, but
dan_b has quit [(Ping timeout: 264 seconds)]
<tobiasBora> "curl ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/gnutls-3.5.15.tar.xz " does not work...
<tobiasBora> and because of that I can't download the software... Does it work for you? And if it does not, do you know if nix can use wget in place of curl ?
jgt has joined #nixos
<jgt> on MacOS, how should I store my list of installed packages?
<jgt> e.g., I can do nix-env -q to list packages I've installed
<jgt> and I'd like to version control that list
<srhb> jgt: That exact list? It may be less useful than you think, since those are just more or less arbitrary names and not the attributes used for installing packages.
sg2002 has joined #nixos
<srhb> WilliamHamilton: Why not just override it via an overlay or similar?
<WilliamHamilton> srhb: I was reading about overlays for a user in ~/.nix/overlays.nix or something; if that's the idea you're proposing, do you have an example of that?
<jgt> srhb: not necessarily exactly that list
<jgt> srhb: but I should be able to install all my stuff on a new machine in one go
<srhb> WilliamHamilton: Yes, something like: ~/.config/nixpkgs/overlays/brittany.nix containing: self: super { haskellPackages = super.haskellPackages.extend (selfHS: superHS: { myBrittany = self.haskell.lib.dontCheck superHS.brittany; }); }
<WilliamHamilton> srhb: thanks, trying that right away
<srhb> You can also just override the existing one instead of naming a new one, but for ease of understanding... :)
<srhb> Ugh, I typoed that a bit, hang on...
cybrian has quit [(Read error: Connection reset by peer)]
Ivanych has joined #nixos
<srhb> jgt: How about creating an overlay with the packages you want instead? Ie. one metapackage that contains them all
<WilliamHamilton> wow, that works; you're always so helpful srhb , thanks :)
<jgt> srhb: I don't know what that means. Is there any documentation on that?
<srhb> WilliamHamilton: You're welcome!
<srhb> jgt: Overlays are documented in the nixpkgs manual, but essentially, one file in ~/.config/nixpkgs/overlays/mybundle.nix containing: self: super: { mybundle = with super; [ vim git firefox ]; }
<srhb> Actually, that's probably less than useful...
<srhb> Scratch that
<srhb> Actually, hmm.
<srhb> It should work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbULh
<NixOS_GitHub> nixpkgs/master c06c2cd Orivej Desh: git-up: mark as broken
NixOS_GitHub has left #nixos []
<jgt> srhb: your example at least looks like the kind of thing I want
<srhb> I'm just unsure if it will remove things you take off the list.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to release-17.09: https://git.io/vbUtT
<NixOS_GitHub> nixpkgs/release-17.09 ecfcd0b Orivej Desh: git-up: mark as broken...
NixOS_GitHub has left #nixos []
<srhb> (ie when you upgrade it)
<jgt> ah, I see. I guess the real answer is "Use NixOS"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to master: https://git.io/vbUtm
<NixOS_GitHub> nixpkgs/master 2492f45 Andreas Rammhold: ffmpeg-3.4: apply fix CVE CVE-2017-16840...
<NixOS_GitHub> nixpkgs/master 64d8cc7 Andreas Rammhold: ffmpeg-full-3.4: apply patch for CVE-2017-16840
<NixOS_GitHub> nixpkgs/master c917950 Vladimír Čunát: Merge #32126: ffmpeg-3.4: fix CVE CVE-2017-16840
NixOS_GitHub has left #nixos []
mrkgnao has quit [(Ping timeout: 276 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
ambro718 has quit [(Ping timeout: 240 seconds)]
sbjorn has quit [(Ping timeout: 252 seconds)]
<srhb> But meh...
<catern> how can I add an additional Python package using overlays?
<catern> I see something in the manual about modifying existing Python packages, but how do I just add one?
dan_b has joined #nixos
<catern> is there an easier way?
<srhb> catern: The same way, but instead of overriding, create a new name and callPackage the derivation you have (or online the mkDerivation bit)
<srhb> Er, inline* not online
ssmike has quit [(Quit: ssmike)]
<catern> ok, will do that
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbUq1
<NixOS_GitHub> nixpkgs/master 6c60c6e Orivej Desh: snabb: disable parallel building...
NixOS_GitHub has left #nixos []
hoodoo_ has joined #nixos
SOO7 has joined #nixos
jb55 has joined #nixos
<hoodoo_> Hi, I have a kinda weird question. Is puppet packaged for nixos?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to release-17.09: https://git.io/vbUq9
<NixOS_GitHub> nixpkgs/release-17.09 0ed7328 Orivej Desh: snabb: disable parallel building...
NixOS_GitHub has left #nixos []
<hoodoo_> Not going to use it for management, I'd like puppet doc, puppet parser etc.
<hoodoo_> Can't deploy nixos everywhere just yet you know.
<catern> srhb: wait, but how do I add it for all Python versions?
ylwghst has joined #nixos
<hoodoo_> The problem is, it's _difficult_ to google for puppet nixos, for a reason you know. Maybe someone has a nix file around?
<hoodoo_> Or know a guy who does?
<srhb> catern: I *think* that's what 9.11.3.8 does?
<srhb> catern: Hm, clearly not..
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to release-17.09: https://git.io/vbUmI
<NixOS_GitHub> nixpkgs/release-17.09 043cbe5 Vladimír Čunát: Merge #31905: samba: security 4.6.8 -> 4.6.11...
<NixOS_GitHub> nixpkgs/release-17.09 db0bb7f Vladimír Čunát: Merge #32126: ffmpeg-3.4: fix CVE CVE-2017-16840...
<NixOS_GitHub> nixpkgs/release-17.09 3ac988a Vladimír Čunát: Merge #32134: pcre2: Patch for CVE-2017-8786...
NixOS_GitHub has left #nixos []
cybrian has joined #nixos
<srhb> catern: I guess you'll have to do it for both sets.
<catern> srhb: you mean all four sets :( there's Python34, 35, 36 and 27
<srhb> catern: OK. At this point my knowledge of the Python infrastructure is pretty much exhausted, sorry. :)
<catern> thanks for helping regardless :)
ssmike has quit [(Quit: ssmike)]
ssmike has joined #nixos
Wizek_ has quit [(Quit: Leaving)]
zunk has quit [(Ping timeout: 240 seconds)]
Isorkin has quit [(Ping timeout: 276 seconds)]
zunk has joined #nixos
dan_b has quit [(Ping timeout: 260 seconds)]
jensens has quit [(Ping timeout: 240 seconds)]
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #32145: ocamlPackages.reason: 3.0.2 -> 3.0.3 (master...reason) https://git.io/vbUYB
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vbUYN
<NixOS_GitHub> nixpkgs/master fe1f228 Andreas Rammhold: ffmpeg-full-3.4: apply patch for CVE-2017-16840
<NixOS_GitHub> nixpkgs/master fac570a Vladimír Čunát: Re-merge #32126: ffmpeg-3.4: fix CVE CVE-2017-16840...
NixOS_GitHub has left #nixos []
cybrian has quit [(Read error: Connection reset by peer)]
takle has quit [(Ping timeout: 276 seconds)]
kl1n3 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #32126: ffmpeg-3.4: apply fix CVE CVE-2017-16840 (master...ffmpeg34-CVE-2017-16840) https://git.io/vbf4U
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #32146: ocamlPackages.mlgmpidl: 1.2.4 -> 1.2.6 (master...ocaml-mlgmpidl-1.2.6) https://git.io/vbUOq
NixOS_GitHub has left #nixos []
davidak has quit [(Ping timeout: 240 seconds)]
kl1n3 has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vbUOz
<NixOS_GitHub> nixpkgs/master 574edcd Joerg Thalheim: awesome: fix LUA_PATH/LUA_CPATH to lgi...
NixOS_GitHub has left #nixos []
<Mic92> ^ one of these moment where I think, how did this ever work
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32145: ocamlPackages.reason: 3.0.2 -> 3.0.3 (master...reason) https://git.io/vbUYB
NixOS_GitHub has left #nixos []
tommyangelo has joined #nixos
JosW has quit [(Quit: Konversation terminated!)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c3d4871340a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
cybrian has joined #nixos
ylwghst has quit [(Quit: leaving)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2e55aec9d79 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
ylwghst has joined #nixos
antonv has joined #nixos
<antonv> strange thing with nix, I deleted a file and now even if I reinstall package the file does't come back
vincent_vdk has quit [(Read error: Connection reset by peer)]
<antonv> (when manipulating with xsession files I deleted ~/.nix-profile/share/xsessions/i3.desktop, and now I uninstall and reinstall i3, the file doesn't come back)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vbUs1
<NixOS_GitHub> nixpkgs/release-17.09 9baaf3a Vladimír Čunát: Re-merge #32126: ffmpeg-3.4: fix CVE CVE-2017-16840...
NixOS_GitHub has left #nixos []
chaker has quit [(Ping timeout: 276 seconds)]
chaker has joined #nixos
takle has joined #nixos
hoodoo_ has quit [(Ping timeout: 240 seconds)]
takle has quit [(Client Quit)]
jgt has quit [(Ping timeout: 248 seconds)]
antonv has quit [(Remote host closed the connection)]
miko__ has joined #nixos
rtjure has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
<srhb> anton__: Are you sure you're looking where you think you're looking?
<srhb> anton__: (Hint: The old profile still exists, but the symlink has been updated)
<srhb> Unless you manually manipulared the symlinks.
antonv has joined #nixos
rtjure has quit [(Ping timeout: 268 seconds)]
jgt has joined #nixos
<antonv> Could not resolve host: cache.nixos.org
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbUcv
<NixOS_GitHub> nixpkgs/staging 94cba39 Vladimír Čunát: systemd resolved: patch CVE-2017-15908...
NixOS_GitHub has left #nixos []
fendor has quit [(Ping timeout: 248 seconds)]
<antonv> 3 times of 10 I get this error
<antonv> of 10 attempts to install a package
<antonv> then I retry and it may work
<antonv> something wrong with DNS
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vbUcq
<NixOS_GitHub> nixpkgs/release-17.09 7d7a999 Vladimír Čunát: systemd resolved: patch CVE-2017-15908...
NixOS_GitHub has left #nixos []
<antonv> again!
<srhb> antonv: Can't reproduce that. Who's your DNS provider?
vcunat has joined #nixos
<catern> is there a function which takes a URL and a hash, and fetches a tarball from that URL and unpacks it?
<antonv> my ISP
<catern> fetchTarball doesn't take a hash
<catern> fetchurl doesn't unpack
<catern> I think I am forgetting something :)
<antonv> srhb: it doesn't happen always, but repeates often
darlan has joined #nixos
darlan has quit [(Client Quit)]
<srhb> antonv: Seems likely the problem is with the ISP.
mariav has joined #nixos
jgt has quit [(Ping timeout: 260 seconds)]
<ylwghst> Can I create/link this file in etc /etc/xdg/menus/applications.menu ?
<jeaye> ylwghst: environment.etc."xdg/menus/applications.menu".text = "meow";
<antonv> srhb: unlikely
<antonv> the above pastebing link shows
<ylwghst> jeaye: thx
<antonv> one file is downloaded sucessfully and another fails
<srhb> antonv: That's a completely different error.
<srhb> Oh wait, no.
<srhb> Sorry :)
<srhb> Still, why don't you think that's ISP related?
Isorkin has joined #nixos
<antonv> srhb: I use this ISP for years and never had that. Mayb cache.nix.org uses some smart load balancing DNS?
<antonv> Which doesn't always work
<srhb> antonv: I don't see how that's relevant, if you're using your ISP's DNS.
<clever> catern: why do you want a function that unpacks?
pierrebeaucamp has joined #nixos
chaker has quit [(Ping timeout: 248 seconds)]
<catern> clever: so I can import from it
<catern> from the resulting derivation
<clever> catern: to fetch nixpkgs or a normal nix file?
<catern> to fetch an overlay on nixpkgs
<antonv> srhb: I switched to google DNS, same problem
<clever> catern: ah, you may want to use (import <nixpkgs> { config={}; overlays={}; }).fetchzip
<catern> which I will then pass as (import <nixpkgs> { overlays = [ mything ]})
<catern> oh yeah, fetchzip :)
<srhb> antonv: Fun! No idea how that happens then.
<antonv> $ nslookup
<antonv> > server 8.8.4.4
<antonv> Default server: 8.8.4.4
<antonv> Address: 8.8.4.4#53
<antonv> > cache.nix.org
<antonv> Server:8.8.4.4
<antonv> Address:8.8.4.4#53
<antonv>
<antonv> Non-authoritative answer:
nix-gsc-io`bot has joined #nixos
<antonv> *** Can't find cache.nix.org: No answer
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3ac988a5eb0 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<antonv>
nix-gsc-io`bot has quit [(Client Quit)]
<srhb> antonv: cache.nixos.org
<catern> another question: is there a way to disable Nix from looking at tarballs.nixos.org?
<antonv> ah
<catern> I'm behind a firewall so Nix can't actually access that server
<clever> catern: /etc/hosts it to 127?
<catern> I also don't have root
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
<clever> catern: hmmm, not sure on that one
mariav has quit [(Quit: mariav)]
<joepie91> catern: https://github.com/figiel/hosts ?
ravloony has joined #nixos
cybrian has joined #nixos
wolfcub has joined #nixos
<catern> joepie91: well, I would also prefer to do it in pure Nix code rather than requiring my users to set an LD_PRELOAD :)
<catern> even if I did have root :)
tommyangelo has quit [(Ping timeout: 240 seconds)]
<catern> oh!
<catern> I know what to do!
hariel has quit [(Ping timeout: 240 seconds)]
<catern> I'll set NIX_HASHED_MIRROS
<catern> and point it to my own internal proxy
<antonv> Finally installed the package. What is the best way to integrate with LighDM? (how to make it see the desktop managers I install via nix)
zzamboni has joined #nixos
<antonv> I mean /use/share/xesssions/i3.desktop refers to i3 executeable which is provided by nix
<antonv> how to make LightDM to see the Nix's PATH
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #32148: mendeley: 1.17.11 -> 1.17.12 (master...update/mendeley-1.17.12) https://git.io/vbUls
NixOS_GitHub has left #nixos []
alexteves has quit [(Quit: My Mac Mini has gone to sleep. ZZZzzz…)]
jgt has joined #nixos
<Ralith> I just upgraded and now my fonts are even more broken than usual :|
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vbUlD
<NixOS_GitHub> nixpkgs/master e0368f5 Vladimír Čunát: gnutls: use mirror://gnupg (fix #32147)...
NixOS_GitHub has left #nixos []
<Ralith> I have fonts.fontconfig.defaultFonts.monospace = [ "Terminus" ]; but fc-match just turns up FreeMono
antonv has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vbUlQ
<NixOS_GitHub> nixpkgs/release-17.09 28647d3 Vladimír Čunát: gnutls: use mirror://gnupg (fix #32147)...
NixOS_GitHub has left #nixos []
<Ralith> even fc-match "Terminus" no longer works
<Ralith> though terminus_font is in my fonts.fonts
<catern> lol, NIX_CONNECT_TIMEOUT=0 doesn't set the timeout to 0
<catern> it sets it to infinite
<catern> so I've got to use NIX_CONNECT_TIMEOUT=0.000000001
patrl has quit [(Quit: WeeChat 1.9.1)]
jb55 has quit [(Ping timeout: 276 seconds)]
<catern> BLARGH
cybrian has quit [(Read error: Connection reset by peer)]
<Ralith> terminus is no longer showing up in fc-match -a at all
<catern> NIX_CONNECT_TIMEOUT=0.000000001 gets rounded down to 0!
<tobiasBora> Hello,
<catern> by insane curl!
<catern> oh well, glad I tested this
<Ralith> nor in fc-list
<tobiasBora> I don't know why, but I added cups & nssmdns, and suddently my raspberry pi began to rebuild everything, including grep !!!
ssmike has quit [(Ping timeout: 264 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
<tobiasBora> perl is also rebuild
digitalmentat has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hedning opened pull request #32149: nix-bash-completions: 0.5 -> 0.6, nix-zsh-completions: 0.3.5 -> 0.3.6 (master...nix-completions) https://git.io/vbUBG
NixOS_GitHub has left #nixos []
<samueldr> tobiasBora: which raspberry pi?
<samueldr> for 1/2, or 3 using armv7l, only a subset of packages are available in the binary cache
<Ralith> does anyone have terminus (or another PCF bitmap font) working on current 17.09?
<samueldr> for aarch64, sometimes there are issues preventing a complete build when channels advance
<samueldr> (I might be mistaken with aarch64 stuff)
fragamus has joined #nixos
<tobiasBora> it's model a, rasp 1
<tobiasBora> (so aarchv6 I think)
<samueldr> armv6l it is
<tobiasBora> ahah yes sorry
<tobiasBora> so it means that for now, all my system will be built ?
<samueldr> don't worry, arm platform names are confusing
<samueldr> everything depending on anything needing a rebuild, yes
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/vbUBy
<NixOS_GitHub> nixpkgs/staging 98e3af0 Vladimír Čunát: xorg.libXcursor: security 1.1.14 -> 1.1.15...
<NixOS_GitHub> nixpkgs/staging db6adec Vladimír Čunát: xorg.libXfont*: security update for CVE-2017-16611
NixOS_GitHub has left #nixos []
danimal has joined #nixos
<tobiasBora> samueldr: whooa. No way to avoid that? By the way, it's possible to help to build the packages for armv6 ?
<samueldr> I talk like I know what I'm talking about, but in reality I've only dipped my toes in arm stuff
sigmundv__ has joined #nixos
<samueldr> and to help build, Dezgeg would know, in fact, I'd also like to provide anything I can with the arm6l/arm7l efforts
dan_b has joined #nixos
MP2E has joined #nixos
berce has joined #nixos
erictapen has quit [(Ping timeout: 276 seconds)]
<tobiasBora> So all my system will need to compile from scratch every single package... The rasp won't like that (it's so slow to compile...), it's not possible to have several "trees", like "if you can install package A with prebuild binaries, even with different options, do that" ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to release-17.09: https://git.io/vbUR2
<NixOS_GitHub> nixpkgs/release-17.09 4f12cdf Vladimír Čunát: xorg.libXcursor: security 1.1.14 -> 1.1.15...
<NixOS_GitHub> nixpkgs/release-17.09 efe5a97 Vladimír Čunát: xorg.libXfont*: security update for CVE-2017-16611...
NixOS_GitHub has left #nixos []
lfam has joined #nixos
erictapen has joined #nixos
ravloony has quit [(Ping timeout: 248 seconds)]
<samueldr> tobiasBora: once built on one, it should be possible to copy the built result (e.g. with nix-copy-closure) thus needing a one-time build effort
<samueldr> but yet, I'm not even close to an expert with all that right now
ravloony has joined #nixos
FenTiger has joined #nixos
chaker has joined #nixos
<berce> tobiasBora: dezgeg has a arm channel with binary cache. See https://github.com/nixos-users/wiki/wiki/NixOS-on-ARM
<samueldr> (from his log, it looks like he's using it already)
acarrico has quit [(Ping timeout: 276 seconds)]
<tobiasBora> berce: yes, I use this one
<samueldr> and as documented: "A binary cache, containing a subset of the unstable channel"
lfam has left #nixos ["Leaving"]
civodul has joined #nixos
<samueldr> tobiasBora: have you updated your channels since the image was written?
<makefu> berce: the latest up-to-date wiki page is at https://nixos.wiki/wiki/NixOS_on_ARM
<samueldr> (oh, didn't even open the link, only looked at the end of the url, sorry)
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Isorkin_ has joined #nixos
<berce> Thanks all for correcting and improving my answer :-)
sbjorn has joined #nixos
<tobiasBora> samueldr: no, but I wrote the image maybe 2-3 weeks ago, it can cause the trouble?
ylwghst has joined #nixos
Sonarpulse has joined #nixos
Isorkin has quit [(Ping timeout: 276 seconds)]
<samueldr> Dezgeg's cache is long-lived, not sure when the cut-off is, but pretty sure it would still be cached
<tobiasBora> what do you mean ?
<Sonarpulse> thoughtpolice: pong
<Ralith> there doesn't even appear to be a terminus related conf file in /etc/fonts/conf.d/
<samueldr> asking since channels might advance before a new build is complete, iirc it takes about 2-3 days for a complete armv6l build
<samueldr> I mean that if you haven't updated the channel since you wrote the image, it should still pick up everything it can from the cache
<tobiasBora> samueldr: oh, you sayed that it may be because my raspberry pi just updated the channel todya ?
<tobiasBora> interesting
<samueldr> sorry, no, but if you manually did update the channel, it could cause even more rebuilds
_ris has joined #nixos
<samueldr> pretty sure you're simply falling outside of the subset
<samueldr> I'm now curious and wonder *what* the subset is
<tobiasBora> ok. But why did he recompile perl for example? I guess that perl is in the subset no?
fragamus has joined #nixos
joshuaks has joined #nixos
<samueldr> now this falls outside of my knowledge, for many reasons
<samueldr> 1) I don't know how perl is packaged
<samueldr> 2) don't know why it could need a rebuilt (if build already exists)
<joshuaks> Hey guys. I'm new to Nix and have a few questions.
<joshuaks> If I'm asking really broad/stupid things, just send me back to the documentation.
<samueldr> don't worry, it's better not to assume and ask broad/stupid things :)
<joshuaks> I'm using Nix on macOS 10.12.6. Moving away from homebrew. I really have a thing for clean systems :).
<joshuaks> Anyways. Everything has gone well except for oh-my-zsh and weechat (plugins specifically).
ylwghst has quit [(Quit: Lost terminal)]
<joshuaks> Both install. In the case of Weechat (I find this one more interesting), it's not reading my config files to install plugins.
<joshuaks> For OMZ, it seems like some required files (for example "
<tobiasBora> samueldr: ok thank you. Just, does that mean that all the next packages that would rely on perl will need to be rebuilt, even if there exists a binary version with "the old perl", or both perl version will co-exist on the system?
<joshuaks> (sorry) (for example "oh-my"zsh.sh") isn't where I'd expect it. It's in the root /nix dir under the hash dir, etc. Which is fine. But it feels wrong to point my zshrc to that "random" directory. Or is that ok?
<samueldr> tobiasBora: I can't answer since I don't know *why* there's a rebuild, but the way nix works, two concurrent thing can exist in the system and generally isn't an issue
bennofs has joined #nixos
<tobiasBora> samueldr: ok thank you. Hope I won't need to rebuilt everything from now ;) By the way, if you or Dezgeg have any idea how I could help the binary channel of armv6, please tell me!
Ivanych has quit [(Quit: Leaving.)]
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<samueldr> there's one detail I don't know much enough, and may be relevant to your issues
Ivanych has joined #nixos
<samueldr> I don't know if your log is showing complete failure from the binary cache or transient issues that were resolved
<samueldr> I often got those "still waiting" messages when playing around with arm[67]l stuff, but never was sure why, or how to fix them
<FenTiger> Is this the right place for Nix language questions?
<makefu> samueldr: it might be the problem that either the proxy is too slow or your arm device' IO is too slow
ravloony has quit [(Ping timeout: 240 seconds)]
<samueldr> in this case, I'm pretty sure that canada<->finland link + slower server is causing the issue
<samueldr> I'm juste unsure how to confirm that the "still waiting" resolved or they timed out
<Ralith> fontconfig bitmap font support seems totally broken in latest 17.09
<Ralith> trying to fix it by hacking localConf but that doesn't seem to actually be written anywhere :|
<berce> joshuaks: searching for weechat on github.com/nixos/nixpkgs showed some relevant documentation: https://github.com/NixOS/nixpkgs/blob/4bd9b3b7cffaa279e00e620f738eed35a641c67f/doc/package-notes.xml
<berce> I 'm not sure yet where that documentation is in a more user friendly format, but it's readable.
<joshuaks> berce thanks I'll check it out
<Ralith> seems like fontconfig penultimate, which is enabled by default, clobbers that somehow
<samueldr> it will be in https://nixos.org/nixpkgs/manual/ in the future
<berce> samualdr: that would be good, it's the first place I looked :-)
<tobiasBora> samueldr: ok thanks. Just, do you know if it's possible to disable the build of the tests and example ? I really don't mind, and because it will already take 2 days to compile, don't think it's relevant to include examples ^^'
drakonis has quit [(Read error: Connection reset by peer)]
<Isorkin_> How to need to merged pr ? 32075
miko__ has quit [(Ping timeout: 276 seconds)]
plakband has joined #nixos
<joshuaks> Looks like I'll be doing some research. Little in over my head. That documenation helped a ton though. Thanks berce
<plakband> I've just installed the nix package manager, and I'm reading through the manual. The manual has an example where they install firefox, but when I try to do the same, it says that there's no firefox derivation. Did I misconfigure something? I could install irssi and git just fine. I'm on OS X 10.13.
<berce> joshuaks: about the files in /nix: when you do things right, nix does it's magic and makes all files available to the programs that need them. Just like with real magic, you don't have to understand it to make it work.
<symphorien> plakband: how did you try to install it ?
<plakband> symphorien: nix-env -i firefox
<joshuaks> Yeah that's what I figured. It looks like (based off the other docs) I need to work on my config files a bit
<symphorien> try nix-env -iA nixpkgs.firefox
<joshuaks> "magic" has been the case for my other binaries so far. although, I can't help but look under the hood :)
stanibanani has joined #nixos
<plakband> symphorien: ah, that gives the error that firefox is not supported for darwin, is that the reason why nix-env -i did not work?
szicari has quit [(Quit: szicari)]
<symphorien> that is quite possible, yes. The difference is that nix-env -i looks for "derivations whose name is matching" whereas nix-env -iA is when you already know the exact attribute name.
davidak has joined #nixos
stanibanani has quit [(Ping timeout: 240 seconds)]
chaker1 has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
chaker has quit [(Ping timeout: 240 seconds)]
stanibanani has joined #nixos
ambro718 has joined #nixos
szicari has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 4 new commits to staging: https://git.io/vbUac
<NixOS_GitHub> nixpkgs/staging 994cb76 John Ericson: cc-wrapper: Don't leave CMD defined after setup hook...
<NixOS_GitHub> nixpkgs/staging f4cb1e2 John Ericson: cc-wrapper: Export env vars for objdump and readelf in setup-hook...
<NixOS_GitHub> nixpkgs/staging 43e1137 John Ericson: cc-wrapper: Define new- and old-style cross env vars...
NixOS_GitHub has left #nixos []
fragamus has joined #nixos
<pierrebeaucamp> hey, I hope I'm not disrupting anyones discussion, but I have a quick question: I'm experimenting with NixOS and I'm using EXWM as my wm. That means emacs gets installed as a system package. Is it possible that a user can run a different emacs with the same window manager?
<pierrebeaucamp> I mean Emacs seems to be initialized after login, but X server starts earlier (for the login prompt)
<pierrebeaucamp> This might also be too specific to EXWM, but I though I'd ask here
<jeaye> I don't know anything about EXWM, but my understanding is that your display manager, which shows your login, is not running X. Only once you log in does X start and your session is bound to X being alive.
<pierrebeaucamp> hm, interesting. In that case I could try to overwrite the exwm package from the user environment
sg2002 has quit [(Ping timeout: 276 seconds)]
<pierrebeaucamp> I suppose it is not possible to overwrite configuration.nix with something similar from the user env?
fragamus has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite> heh. sshfs with the reconnect option will happily try over and over again if it can't authenticate to the server… which will easily get it blacklisted by fail2ban >_>
gsmith has joined #nixos
<Ralith> okay, wildly flailed at my fontconfig setup and how it's somehow working without any apparent changes
<gsmith> allo, does anyone have any examples of a bridged bond configuration? for some reason the configuration that I have causes bonding to break badly to the point I sysfs is not functioning properly
* Ralith gives up
sg2002 has joined #nixos
<pierrebeaucamp> Ah, what I was trying to do should be able using ~/.config/nixpkgs. Sorry for asking so many beginner questions
Neo-- has quit [(Remote host closed the connection)]
Wizek_ has joined #nixos
Neo-- has joined #nixos
pierrebeaucamp has quit [(Quit: Leaving)]
acarrico has joined #nixos
<berce> Ralith: look at public dotfiles from other users: search for "configuration.nix fontconfig" and you 'll get several working examples.
acarrico has quit [(Max SendQ exceeded)]
<Ralith> berce: I have a working example; it does not cause me to be any less mystified as to why it broke itself temporarily.
<berce> Ralith: you might need to make the system reload the fonts, by logging out or even rebooting
<Ralith> it is currently working
<Ralith> hopefully it does not stop working when I next reboot, I guess
acarrico has joined #nixos
rihards has joined #nixos
asuryawanshi has quit [(Ping timeout: 252 seconds)]
hariel has joined #nixos
ssmike has joined #nixos
stanibanani has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vbUr9
<NixOS_GitHub> nixpkgs/master 55709e4 zimbatm: python3Packages.bash_kernel: allow different python interpreters
NixOS_GitHub has left #nixos []
wolfcub has quit [(Ping timeout: 276 seconds)]
TweyII has quit [(Ping timeout: 240 seconds)]
plakband has quit [(Quit: leaving)]
ma27 has quit [(Ping timeout: 255 seconds)]
<FenTiger> Any Nix language experts on here? Is there a way to find the dependencies of a package, or ideally compute its closure, from within the Nix language itself? A look at the source suggests not, because dependencies seem to be represented as Nix store paths rather than as references to the original derivation. Am I missing anything?
<clever> FenTiger: the runtime dependencies are not known at eval time
<clever> FenTiger: after the eval and build have finished, nix will basicaly grep the output, to see what build-time deps it still refers to, and those become the runtime deps
<joshuaks> Look into OMZ, I have another question
<joshuaks> On what is correct
<joshuaks> I see the install symlink at $HOME/.nix-profile/share/oh-my-zsh -- should my zshrc reference that or is that incorrect?
<FenTiger> OK. So let's say I use the exportReferencesGraph feature to get hold of the closure from within a derivation, and then read it into a file using builtins.readFile (playing around in the REPL suggests this'll work). Is it then possible to translate the resulting store paths into references to the original definition in nixpkgs or wherever?
<gsmith> I got the bridged bond working, thanks anyway!
gsmith has quit [(Quit: leaving)]
<joshuaks> that symlink seems like a reliable path
<clever> FenTiger: exportReferencesGraph creates a variable/file at build time, for the derivation its in, which i believe contains the runtime closure of the referenced thing
<clever> FenTiger: but the eval cant access it
<FenTiger> clever: Maybe I should try harder to prototype it, but from looking at the source and trying it in the REPL, doing "readFile (mkDerivation {...})" seems to be sufficient to "force" the derivation and leave its results in a file that can then be read back into the outer evaluation.
<clever> FenTiger: thats doing import from derivation, which causes nix to build some things at eval time, which generally ruins performance
bennofs has quit [(Ping timeout: 276 seconds)]
hiratara has quit [(Ping timeout: 276 seconds)]
<FenTiger> OK, but if I can do what I want with poor performance, that beats not being able to do it at all.
hamishmack has quit [(Quit: hamishmack)]
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vbUKI
<NixOS_GitHub> nixpkgs/master 6499c31 zimbatm: direnv: 2.13.1 -> 2.13.2
NixOS_GitHub has left #nixos []
<FenTiger> Maybe I should take a step back. I have a derivation that operates on an existing package in the Nix store and transforms it into a different format. I would like to apply this derivation to all the packages in the closure of a given package list. Any suggestions for how I should do this?
zraexy has quit [(Ping timeout: 240 seconds)]
<clever> FenTiger: do you want to generate a list of derivations, that each transform one dependency?
<FenTiger> clever: yes, that's right.
<clever> FenTiger: most things like the tarball generator just put the entire closure into a single output
<clever> FenTiger: but i think ive heard that https://github.com/awakesecurity/hocker generates a docker image, with 1 layer per derivation
<clever> so when you rebuild, the derivations that havent changed can reuse the layers they made before
<FenTiger> I can fall back on doing it like that, but it seems a bit unclean in a functional language ;)
<clever> and at runtime, docker puts all the layers back together
<FenTiger> Damn, that is exactly what I was trying to build! I'll take a look at what they've done.
ma27 has joined #nixos
vcunat has quit [(Ping timeout: 264 seconds)]
sigmundv__ has quit [(Ping timeout: 248 seconds)]
chaker1 has quit [(Ping timeout: 240 seconds)]
bennofs has joined #nixos
<FenTiger> Actually, on a closer look, I don't think hocker is what I had in mind at all. Oh well. I think you've answered my question, though: I need to do all the work in the main derivation - I can't realistically split it into smaller pieces. Thanks!
dbmikus has quit [(Quit: WeeChat 1.9.1)]
<catern> hey #nixos
<catern> so, I am a little confused about the proper usage of nix-support
<catern> I can build a derivation that has a nix-support/setup-hook
<catern> and any derivation B which has derivation A in its buildInputs, sources nix-support/setup-hook for each buildInput
<catern> right?
<catern> and if C is in propagatedBuildInputs somewhere in the dependency, then C/nix-support/setup-hook is sourced for *any* package above C, right?
<catern> all at derivation build time, specifically
<catern> right????
<clever> catern: yeah, i believe thats all right
<clever> catern: you could try adding echo's to the setup hook and confirm it all
sigmundv__ has joined #nixos
<catern> oh wait
<clever> catern: one anoying thing ive noticed, nixops has itself and python in the propagatedBuildInputs
<clever> catern: python's setup hook adds all inputs to PYTHONPATH
<catern> right right
<catern> the setup-hook does whatever it wants
<catern> it doesn't *have* to look at buildInputs
<clever> catern: so if you enter a nix-shell with nixops in the buildInputs, nixops gets added to PYTHONPATH as well
<clever> catern: if you then nix-build nixops, and run a new build via ./result/bin/nixops
<catern> it can look at propagatedBuildInputs instead or as well, and that's what Python does, right?
<clever> it obeys PYTHONPATH, and uses the old version
<clever> and silently ignores the rebuilds
<catern> it puts both propagatedBuildInputs and buildInputs on PYTHONPATH
acarrico has quit [(Ping timeout: 276 seconds)]
szicari has quit [(Quit: szicari)]
zzamboni has quit [(Quit: Leaving.)]
<danimal> Hi all. Question, what could cause Nixos to prefer an older version of a derivation, when installing the environment.systemPackages? `nix-channel --list` is empty, `system.stateVersion = 17.09`.
spietz has joined #nixos
berce has quit [(Quit: leaving)]
<danimal> The derivation in question is firefox, for which `nix-env -qaP | grep firefox` shows 22 offers. nixos.firefox is offered at 56.0.2, and this is what I got. What I was trying to install was nixpkgs.firefox at 57.
<sphalerite> danimal: nix-channel manages user-specific channels. Try sudo nix-channel --list
joshuaks has quit [(Quit: WeeChat 1.9.1)]
<danimal> Yeah, that's empty.
<sphalerite> actually, run nix-info and
<sphalerite> s/and//
<sphalerite> how are you managing nixpkgs then?
<danimal> Interesting. system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.15, channels(root): "nixos-17.09.2182.7f6f0c49f0, nixpkgs-18.03pre121255.45a85eaceb",
<danimal> nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
Ivanych has quit [(Quit: Leaving.)]
<sphalerite> so you deleted all your channels?
<danimal> I'm not actually sure :p I haven't cloned nixpkgs or anything, I'm on a recent nixos install.
<digitalmentat> do we have documentation in the manual for updating hackage-modules.nix??
mizu_no_oto has joined #nixos
<digitalmentat> I know it's updated automatically on a schedule, but I was curious
<danimal> I may have accidentally deleted a channel, while exploring that section of the manual. I think I tried to add a channel and then remove it, a week ago...
Ivanych has joined #nixos
<sphalerite> danimal: there should be a nixos channel
hiratara has quit [(Quit: ZNC - http://znc.in)]
<catern> hmm, so what kind of packages should have a setupHook? Is there a general rule for this?
<catern> I guess not many, but which ones?
nix-gsc-io`bot has joined #nixos
<catern> what is the situation that demands a setupHook?
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/9baaf3a605f (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
hiratara has joined #nixos
<catern> also, how do wrapper scripts for binaries get made??!
<sphalerite> catern: often setupHooks live in their own derivation. But for example cmake has one, which replaces the configurePhase
<sphalerite> catern: wrapper scripts are typically made using the (appropriately named 😉) makeWrapper function
<sphalerite> or wrapProgram which uses makeWrapper. You could say wrapProgram is a wrapper maker wrapper.
cybrian has joined #nixos
<catern> I see, I see
* catern investigates
jgt has quit [(Ping timeout: 276 seconds)]
fragamus has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
hamishmack has joined #nixos
ylwghst has joined #nixos
dhess` has joined #nixos
simukis has quit [(Ping timeout: 248 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
ssmike has quit [(Ping timeout: 255 seconds)]
cybrian has quit [(Read error: Connection reset by peer)]
<danimal> sphalerite: Thanks for the tips. In the end, I found that while my own user had no channels set, root had both nixos and nixpkgs channels set. With all user and configuration channels sychronized to nixos-unstable, the derivation query is much cleaner.
danimal has quit [(Quit: leaving)]
the-kenny has quit [(Ping timeout: 252 seconds)]
rihards has quit [(Quit: rihards)]
the-kenny has joined #nixos
kriztw has quit [(Remote host closed the connection)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/efe5a9770a8 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
ambro718 has quit [(Quit: Konversation terminated!)]
bennofs has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32148: mendeley: 1.17.11 -> 1.17.12 (master...update/mendeley-1.17.12) https://git.io/vbUls
NixOS_GitHub has left #nixos []
astsmtl has quit [(Ping timeout: 248 seconds)]
Neo-- has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbUSS
<NixOS_GitHub> nixpkgs/master 8bc74a9 Steve Trout: cnijfilter2: specify --datadir for cnijlgmon3...
<NixOS_GitHub> nixpkgs/master af0be16 Orivej Desh: Merge pull request #32144 from strout/cnijfilter2-fix...
NixOS_GitHub has left #nixos []
Neo-- has joined #nixos
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
gm152 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to release-17.09: https://git.io/vbU9G
<NixOS_GitHub> nixpkgs/release-17.09 c26342d Steve Trout: cnijfilter2: specify --datadir for cnijlgmon3...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbU9i
<NixOS_GitHub> nixpkgs/master 57475d1 Yell0w Ghost: compton: adding missing xr_glx_hybrid backend...
<NixOS_GitHub> nixpkgs/master 7d69f11 Orivej Desh: Merge pull request #32141 from yellowgh0st/compton...
NixOS_GitHub has left #nixos []
ylwghst has joined #nixos
Neo-- has quit [(Ping timeout: 264 seconds)]
spietz has quit [(Ping timeout: 268 seconds)]
ylwghst has quit [(Remote host closed the connection)]
ma27 has quit [(Ping timeout: 240 seconds)]
ylwghst has joined #nixos
ylwghst has quit [(Client Quit)]
ylwghst has joined #nixos
ylwghst has quit [(Client Quit)]
ylwghst has joined #nixos
Sonarpulse has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32130: gnucash26: 2.6.12 -> 2.6.18-1 (master...gnucash-fix-and-update) https://git.io/vbfoi
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32127: peek: init at 1.2.0 (master...package/peek) https://git.io/vbf4d
NixOS_GitHub has left #nixos []
erasmas has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32125: jenkins: 2.91 -> 2.92 (master...jenkins-2.92) https://git.io/vbfZc
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32124: rambox: remove comment with email address (master...patch-11) https://git.io/vbvjU
NixOS_GitHub has left #nixos []