Ross has joined #nixos
<jtojnar> yegortimoshenko: nothing much happened, I have been working on gnome cleanups
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] richardipsum closed pull request #30930: lua-scrypt: init at 1.2 (master...init-luascrypt) https://git.io/vFLYy
NixOS_GitHub has left #nixos []
Ross has quit [(Ping timeout: 265 seconds)]
Ross has joined #nixos
aarvar has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
digitus has quit [(Quit: digitus)]
<azdle> Is there some way to query the version of currently installed packages that were installed declaratively with nixos-rebuild?
kp__ has joined #nixos
pingveno has quit [(Quit: leaving)]
<jtojnar> azdle: maybe something like nix-store --query --tree /nix/var/nix/profiles/system
<jtojnar> or something like nix-store --query --references $(nix-store --query --references /nix/var/nix/profiles/system/ | grep system-path)
<jtojnar> not sure how universal that is
jsgrant has quit [(Remote host closed the connection)]
<azdle> That gets me what I wanted, thanks!
jb55 has quit [(Ping timeout: 272 seconds)]
<azdle> Unfortunately, that means I did upgrade it, but it didn't fix the segfault. :/
<fpletz> jtojnar: done, thanks for the reminder… having pinenty built with gtk3 would be great :)
<jtojnar> hmm, that is weird is not there a dbus session running on i3?
wak-work has joined #nixos
<jtojnar> or DISPLAY variable?
<fpletz> jtojnar: the dbus user service is inactive
pie_ has joined #nixos
<fpletz> there is a dbus-daemon runing as my user though
vidbina has quit [(Ping timeout: 265 seconds)]
<fpletz> it has the DISPLAY variable because it works with gtk2 :)
<fpletz> jtojnar: are you using lightdm or gdm?
<jtojnar> GDM
erasmas has quit [(Quit: leaving)]
zzamboni has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko opened pull request #32731: graphviz: cleanup, source from GitLab (master...graphviz/src) https://git.io/vboza
NixOS_GitHub has left #nixos []
<jtojnar> when exactly does this happen?
mizu_no_oto has joined #nixos
<jtojnar> when you SSH into the machine?
<jtojnar> or try to sign something?
<fpletz> in that case after login when I try to ssh into a box
<fpletz> but that should trigger pinentry in the same way, just with another message
<fpletz> jtojnar: are you using the dbus user service?
<fpletz> there is an interesting line in dbus.socket
<fpletz> ExecStartPost=-/nix/store/dq33ar4qk4fvxx5ji4fg99nw282f08ia-systemd-234/bin/systemctl --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus
pingveno has joined #nixos
<jtojnar> fpletz: I am actually not sure
<fpletz> maybe gdm and/or gnome/gnome-session also does this when starting dbus
<fpletz> I'll try with the more modern display managers :)
<jtojnar> Apparently yes, according to `systemctl status --user dbus`
<fpletz> interesting \o/
<jtojnar> but I think the session bus is required for most of modern applications
<Lisanna> Why can't I use the output of writeScript as the builder in a derivation?
<fpletz> jtojnar: oh, I don't have services.dbus.socketActivated set, that seems to activate only the user dbus.socket unit
<Lisanna> error is "Exec format error" ):
<fpletz> do you have that enabled by any chance?
dan_b has joined #nixos
<yegortimoshenko> Lisanna: missing shebang
<yegortimoshenko> Lisanna: add #!${stdenv.shell}
<jtojnar> fpletz: I do not have that, unless it is activated by some other module
altphi has joined #nixos
<Lisanna> yegortimoshenko: thanks, that fixed that problem. I'm wondering if there's an easier way overall to do what I'm trying to do though?
<Lisanna> I want Nix to see a raw /nix/store path as a "derivation"
<yegortimoshenko> Lisanna: sure, what are you trying to do?
<yegortimoshenko> i don't think i understand, could you elaborate?
<yegortimoshenko> (Lisanna: ^)
<fpletz> jtojnar: with services.dbus.socketActivated=true, it will find dbus but fails with another error \o/
<Lisanna> ehh, I need to think about this actually... what I'm trying to do ultimately is find a way to allow users to interactively switch environments built with buildEnv in a Nix environment
<fpletz> org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
<fpletz> jtojnar: does is use gnome-keyring in that case? o.O
drakonis has joined #nixos
<yegortimoshenko> Lisanna: interactively, as in, having buildEnv environment as one of Nix function arguments?
<Lisanna> The closest I've gotten is that nix-shell -p <environment> will start a shell with <environment> loaded into the environment, but <environment> has to be something in <nixpkgs>
<Lisanna> No, interactively as in, from a shell
sbjorn has quit [(Ping timeout: 265 seconds)]
<yegortimoshenko> if you add `buildInputs = paths;` to the bottom of `buildEnv`, you can switch to buildEnv environment
<jtojnar> fpletz: not really sure, it uses gcd
<jtojnar> gcr
<Lisanna> The best I can do so far is build environments and have them show up in /nix/store, and on the target platform I can get a direct raw path to them in the target's /nix/store, but I'm not sure how that's useful to a user in the target environment
<Lisanna> what do you mean?
<yegortimoshenko> Lisanna: hold, on, preparing a gist
<fpletz> jtojnar: well, that's gnome-keyring :)
<fpletz> jtojnar: oh, and just noticed… it's called gnome3 and not gtk3 :>
<fpletz> probably only works in gnome3, it uses gnome-keyring for prompts
<jtojnar> maybe it would be better to make the curses interface default and override the gnome3/qt5 via nixos module
<Lisanna> yegortimoshenko: okay, I understand what you mean, I need to think about how I could use something like that to get what I want
<fpletz> yeah, but changing pinentry unfortunately triggers a rebuild of gnupg
<Lisanna> my target here is to have some .nix file with a dozen environments or so in a top-level attrset, and they can tab-complete through to the one they want, and then they get an interactive shell
<fpletz> the curses interface wouldn't work for my use case though, because the pty from my terminal is not sent via the ssh socket to gpg-agent ;)
<fpletz> so I'm basically stuck with the gtk2 interface
<yegortimoshenko> Lisanna: if file is called `default.nix`, you can do `nix-shell -A env1`, and it would spawn a shell with the environment, given that `env1` has `buildInputs` attribute.
alexteves has quit [(Quit: My Mac Mini has gone to sleep. ZZZzzz…)]
<yegortimoshenko> Lisanna: so that it doesn't have to be specified in every env, you can map through all environments and add buildInputs attr
drakonis_ has joined #nixos
<yegortimoshenko> Lisanna: also, is there some specific point in using buildEnv? if you just want nix-shell sessions, you might specify such environment as `stdenv.mkDerivation { name = "env-name"; buildInputs = [ hello ]; }`
<jtojnar> fpletz: the relationships between these security components are over my head at the moment
<Lisanna> yegortimoshenko: not particularly, it's just the thing that seemed the most natural to do
<yegortimoshenko> then just `nix-shell -A env1`, `nix-shell -A env2`...
<Lisanna> yegortimoshenko: would something like this work? default.nix: { env1 = buildEnv { buildInputs = [ /nix/store/...-environment ]; env2 = buildEnv { buildInputs = [ /nix/store/...-environment ]; }, and then nix-shell -A env1
<yegortimoshenko> Lisanna: buildEnv won't, it needs `paths` attr (and `name` attr), but stdenv.mkDerivation will (provided that `name` is specified)
<Lisanna> well, yeah, I ommitted those for brevity
<yegortimoshenko> then, sure, it will work.
<Lisanna> and okay, stdenv.mkDerivation could also work
<Lisanna> would I need to convert those /nix/store raw paths into "derivations" before I could pass them as buildInputs?
<Lisanna> they're products of buildEnv, copied to this machine
<ison[m]> Are there specific times of day when updates are propagated to cloudfront.net mirror?
<yegortimoshenko> Lisanna: yeah it works, just checked
<fpletz> jtojnar: just investigated some more, the problem is that gnupg is hard-wired to a specific pinentry binary path
<jtojnar> yes, we would have to override it with the NixOS module
<fpletz> we could use /run/current-system/sw/bin there and install the pinentry needed via environment.systemPackages
Lisanna3 has joined #nixos
<fpletz> rebuilding gnupg and having two versions in the system is not a good idea imho
<jtojnar> it is possile to change it in $HOME/.gnupg/gpg-agent.conf
<Lisanna3> cool, thanks !
<jtojnar> so maybe there is also /etc/gnupg/gnupg-agent.conf
<fpletz> oh, great idea
<yegortimoshenko> fpletz: gnupg agent api is rather stable, it will even work somewhat if you're running v1.x and v2.x together
<fpletz> jtojnar: there is --pinentry-program
<fpletz> we can just set that in the gpg-agent user service \o/
<yegortimoshenko> in this case it'd be backwards compatible but not forward-compatible (i.e. newer gnupg should run agent for compat)
<fpletz> problem solved? :)
oleks_ has quit [(Remote host closed the connection)]
<fpletz> yegortimoshenko: that's not the issue, it just isn't nice that depending on the context, gnupg will behave differently (i.e. uses another pinentry in our case)
<fpletz> but setting the correct pinentry just for gpg-agent should solve the problem
<yegortimoshenko> fpletz: oh, ok
Lisanna3 has quit [(Read error: Connection reset by peer)]
<fpletz> jtojnar: I'm gonna work on this now :>
aarvar has quit [(Ping timeout: 248 seconds)]
<jtojnar> okay, thanks
<jtojnar> oh, this is a neat site http://manpages.org/pinentry-gnome3
<Lisanna> yegortimoshenko: thanks, just tested that, and it works!
<yegortimoshenko> Lisanna: :-)
<Lisanna> You don't happen to know if nix-shell sets some variable or something to the root of the environment that it makes for itself, do you?
<Lisanna> The environment I've switched into includes some things in /libexec, and I'm not sure how to get at those without knowing the full path in the /nix store
<aanderse> will running nixops deploy update my deployments?
<yegortimoshenko> Lisanna: it doesn't have any root, check $PATH
<Lisanna> aanderse: not in the strict sense. it will "deploy" your deployments. To modify / create / remove deployments, use nixops modify / create / delete
CMCDragonkai1 has quit [(Ping timeout: 256 seconds)]
<yegortimoshenko> Lisanna: if you need these executables to be available at PATH, i think a good bet would be to symlink required executables to bin/
<Lisanna> yegortimoshenko: I guess this is something about Nix environments that I've never quite understood... I know how it handles /bin (it adds them to $PATH), but what about other directories, like /lib, /include, and /libexec?
<aanderse> Lisanna: reading the help there isn't anything that jumps out as a system update... just run nixops modify?
sary has quit [(Ping timeout: 265 seconds)]
ma27 has quit [(Ping timeout: 272 seconds)]
<aanderse> hmm... no that doesn't update it...
<yegortimoshenko> Lisanna: it doesn't do anything with these directories, but if executables need them, they know their location
<Lisanna> yegortimoshenko: "they know their location"? you mean, how things built with Nix will have hard-coded rpaths to locations in /nix/store?
Supersonic112 has joined #nixos
<yegortimoshenko> Lisanna: if you want FHS-style prefix with include/, libexec/ and all that easily navigatable you could try buildFHSUserEnv
sary has joined #nixos
<yegortimoshenko> Lisanna: yes, i mean rpaths, prefixes, etc. all hardcoded at build time
<yegortimoshenko> Lisanna: or nix-env that also has something like that (in ~/.nix-profile)
<Lisanna> I mean, I was just thinking that maybe there were other things that could be done, like wrap the linker to search in the environment's /lib directory first, or set LD_LIBRARY_PATH
<joepie91> Lisanna: so there are a few paths that are linked into the environment 'globally' (like eg. GTK themes), using the... pathsToLink option? but the vast majority of paths is hardcoded on build time based on build paths of dependencies
<joepie91> Lisanna: one approach to linking libraries, used particularly for proprietary stuff, does indeed involve setting LD_LIBRARY_PATH, but normally library paths are just compiled into the dependency
<joepie91> as exact paths
<yegortimoshenko> Lisanna: you mean, setting linker inside interactive environment? it will handle that by itself
<Lisanna> and, yeah, I guess you don't really need to do much *in practice* other than set PATH=$env/bin,
<Lisanna> was just thinking it would be cool if someone called gcc from inside a nix environment and it *just worked*
<yegortimoshenko> Lisanna: it will just work
jb55 has joined #nixos
<yegortimoshenko> s/will/does/
<Lisanna> i.e., gcc --lfoo, where libfoo.so only exists in the /lib directory of the currently active environment (i.e., does not exist at the root /lib/libfoo.so)
<Lisanna> -lfoo*
ledankmeme has quit [(Ping timeout: 265 seconds)]
<yegortimoshenko> Lisanna: also, all attributes set in derivation are available as environment variables when you run nix-shell
<Lisanna> oh yeah, I could use that
<yegortimoshenko> Lisanna: this use-case does just work
<Lisanna> it could literally be $env/lib
<Lisanna> yegortimoshenko: how?
nol_ has quit [(Read error: Connection reset by peer)]
<Lisanna> the linker that gcc invokes would search in /lib, /lib64, etc. and not find it, and it doesn't know about $env/lib
<Lisanna> unless you go out of your way and do LD_LIBRARY_PATH=$env/lib gcc -lfoo
<Lisanna> (or whatever the correct way to pass that to the gcc linker is)
<yegortimoshenko> Lisanna: open nix-shell and print 'echo $NIX_LDFLAGS'
<Lisanna> oh, that's cool... but, those have NIX_ prepended to them, how would a gcc straight from nixpkgs know about those?
<yegortimoshenko> Lisanna: gcc is wrapped in gcc-wrapper
Arcaelyx has quit [(Quit: Textual IRC Client: www.textualapp.com)]
<Lisanna> and gcc-wrapper automatically pulls in NIX_LDFLAGS etc?
<yegortimoshenko> it's actually a generic cc wrapper
<Lisanna> okay, so as long as you use compilers that have been cc-wrapped, all that will just work.
<Lisanna> that's cool.
<yegortimoshenko> yeah, and even if they are not, you can wrap it with NIX_LDFLAGS yourself, could be as trivial as LDFLAGS="$NIX_LDFLAGS $LDFLAGS" in some cases
<yegortimoshenko> Lisanna: but if you want to define some search path yourself, see makeSearchPath in lib/strings.nix
Sonarpulse has quit [(Ping timeout: 264 seconds)]
ilja_kuklic has quit [(Quit: ilja_kuklic)]
<jtojnar> fpletz: would the GNOME3 pinentry work with --no-allow-external-cache?
acarrico has quit [(Ping timeout: 272 seconds)]
dan_b has quit [(Ping timeout: 248 seconds)]
marsam has joined #nixos
<jtojnar> oh, neat pinentry was actually updated two weeks ago
thc202 has quit [(Ping timeout: 240 seconds)]
CodeWarrior has quit [(Ping timeout: 248 seconds)]
noobineer has joined #nixos
noobineer has quit [(Max SendQ exceeded)]
usr_ has joined #nixos
hotfuzz has joined #nixos
hotfuzz_ has quit [(Ping timeout: 265 seconds)]
markus1199 has joined #nixos
markus1189 has quit [(Ping timeout: 263 seconds)]
Lisanna has quit [(Quit: Page closed)]
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
orbekk has joined #nixos
aarvar has joined #nixos
Judson1 has quit [(Ping timeout: 240 seconds)]
lambdamu has joined #nixos
lambdamu_ has quit [(Ping timeout: 265 seconds)]
<neonfuz> a package I'm writing builds when I do nix-shell and then genericBuild, but not with nix-build
ertes has joined #nixos
<neonfuz> is that weird?
aarvar has quit [(Quit: Leaving.)]
rogue_koder has quit [(Ping timeout: 256 seconds)]
marsam has quit [(Ping timeout: 272 seconds)]
<Ralith> nix-shell --pure?
pie_ has quit [(Ping timeout: 265 seconds)]
Supersonic112 has quit [(Disconnected by services)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #32733: pinentry: 1.0.0 → 1.1.0 (master...pinentry-1.1) https://git.io/vborB
NixOS_GitHub has left #nixos []
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
oida has quit [(Ping timeout: 248 seconds)]
oida has joined #nixos
rogue_koder has joined #nixos
<andromeda-galaxy> I'm writing a nixos module for a daemon, where some runtime-necessary data is expected to be in a directory /etc/<pkgname> (and is present in ${pkg}/etc/pkgname). I can easilly copy the directory into /etc using environment.etc.pkgname.source = "${pkg}/etc/pkgname". However, I also need to add another file /etc/pkgname/other-config that should be generated by the module. Simply adding this to
<andromeda-galaxy> etc."pkgname/other-config".text doesn't work, failing with a permission denied error when the file is linked into the relevant place /etc. Is there a standard way to fix this?
<andromeda-galaxy> (inserting extra files into directories copied into /etc)
<yegortimoshenko> andromeda-galaxy: patch the program
<andromeda-galaxy> yegortimoshenko: can you elaborate on that? a bunch of other nixos modules for daemons do put some config files in /etc
<yegortimoshenko> andromeda-galaxy: ... or build a custom source that is deeply (recursively) symlinked which allows to add a file in it
<gchristensen> the issue is, I'm guessing, isenvironment.etc.pkgname.source = "${pkg}/etc/pkgname" links /etc/pkgname to /nix/store/....
<gchristensen> which means when it tries to add /etc/pkgname/foo it tries to add it to /nix/store/.../etc/pkgname/foo, which is impossible
<andromeda-galaxy> yegortimoshenko: yep, I did try that but I just wanted to check if there was a "standard" way of doing it (lib function or whatever). if no other packages need it then I'll just roll my own here
<andromeda-galaxy> gchristensen: that does seem to be the issue
<andromeda-galaxy> gchristensen: however if I add 'mode = "0700"' to the directory, which my understanding indicates should make it a copy instead, the issue still appears
<yegortimoshenko> andromeda-galaxy: this is rather rare, i believe, so there is no standard way. also, it might be easier to just patch the program.
<andromeda-galaxy> gchristensen: ah I see the copying only happens in setup-etc.pl
<andromeda-galaxy> yegortimoshenko: okay, makes sense. thanks!
<neonfuz> Ralith: ill try that soon
<jtojnar> but during evaluation which is not a good idea
<andromeda-galaxy> jtojnar: hmm, thanks. the discussion on that was informative
<andromeda-galaxy> yegortimoshenko: I assume that the program patching route should only apply to files that either should not be configured by the end user/module or are not used by command-line utilities that talk with the daemon?
<yegortimoshenko> andromeda-galaxy: probably. what are you trying to wrap in a module?
<andromeda-galaxy> yegortimoshenko: lirc
nuncanada has quit [(Quit: Leaving)]
<yegortimoshenko> andromeda-galaxy: oh, i see. i would generate the directory with files if i were packaging lirc. is it just lirc_options.conf and config files inside lircd.conf.d? i've never used lirc.
<andromeda-galaxy> yegortimoshenko: and lircmd.conf. the default version has some structure around lircd.conf.d also which is why I was originally recursively copying, but after looking at it more I think it would be better to generate the individual remote confs straight from nix in a different hierarchy, which means that isn't necessary
dieggsy has joined #nixos
<yegortimoshenko> andromeda-galaxy: that would probably make it more configurable.
<andromeda-galaxy> yegortimoshenko: yep, I think I'm going to do that. thanks for the help/suggestions!
iyzsong has joined #nixos
<neonfuz> Ralith: I don't think it's a pure / non pure thing though, it fails on the install step because it can't find a directory
dieggsy has quit [(Remote host closed the connection)]
rogue_koder_ has joined #nixos
rogue_koder has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 5 new commits to master: https://git.io/vboKe
<NixOS_GitHub> nixpkgs/master ba67110 Jan Tojnar: pinentry_qt: merge into pinentry
<NixOS_GitHub> nixpkgs/master 7ea74f4 Jan Tojnar: pinentry: 1.0.0 → 1.1.0
<NixOS_GitHub> nixpkgs/master 49993be Jan Tojnar: pinentry: clean up
NixOS_GitHub has left #nixos []
laggy_wifi has quit [(Read error: Connection reset by peer)]
<neonfuz> building with --pure still worked
<neonfuz> only nix-build fails
Acou_Bass has quit [(Ping timeout: 265 seconds)]
<clever> neonfuz: --pure only wipes the environment, but it doesnt block access to hard-coded paths
<clever> neonfuz: what path is it not finding during nix-build?
ilyaigpetrov has joined #nixos
iyzsong has quit [(Ping timeout: 248 seconds)]
schoppenhauer has quit [(Ping timeout: 264 seconds)]
schoppenhauer has joined #nixos
altphi has quit [(Quit: altphi)]
jmeredith has quit [(Quit: Connection closed for inactivity)]
boxofrox has quit [(Ping timeout: 248 seconds)]
<neonfuz> it errors at "/tmp/nix-build-.../source/include", which should be "/tmp/nix-build-.../source/Externals/cubeb/include"
<neonfuz> and the error line is CMake Error at Externals/cubeb/cmake_install.cmake:44 (file):
<clever> neonfuz: can you gist the nix expression?
<neonfuz> sure
<neonfuz> it's wip
<neonfuz> it's based on dolphin-emu which is in nixpkgs
<clever> nothing immediately stands out as wrong
<clever> but it is possible those sed commands can fail silently
<clever> try making a diff and adding it to patches?
<neonfuz> yeah I think it might be a bug in the upstream
<neonfuz> yeah I should do that
<neonfuz> also testing this is so irritating because it fails at the last step possible :/
<neonfuz> it builds but then fails at the installing step
<clever> :S
<yegortimoshenko> --keep-failed helps a lot with install-related errors
<yegortimoshenko> probably upstream error
<yegortimoshenko> in that case, you could define installPhase manually
boxofrox has joined #nixos
<yegortimoshenko> neonfuz: ^
<neonfuz> ah yeah tru
altphi has joined #nixos
iyzsong has joined #nixos
usr_ has quit [(Ping timeout: 260 seconds)]
<andromeda-galaxy> in a module option declaration, what does passing a list to submodule mean?
<andromeda-galaxy> system/boot/systemd.nix does this, for example
<clever> andromeda-galaxy: i think it just merges the options defined in each item in the list
<clever> so all options defined under unitConfig, can be set on mounts, paths, timers, sockets, services, and targets
<andromeda-galaxy> clever: unitConfig and friends are functions, though. Where do the sets passed into them come from?
<clever> the module system will pass unitConfig a subset of the options
<andromeda-galaxy> ah. Maybe what I was missing was what functions passed to submodules do/are for
<clever> so if i set systemd.services.foo.description, it will pass { description = "something"; } to unitConfig
<andromeda-galaxy> that makes more sense now
<clever> and then unitConfig can map that to systemd.services.foo.unitConfig.Description
<andromeda-galaxy> does passing functions to submodule ever make sense when not passing a list with one thing that defines the actual option schema?
<clever> id say you need to pass a function any time you want to set config based on other config
<clever> and then it works basically the same way as top level modules
<andromeda-galaxy> right. but basically submodule arguments can do two different things: (1) define keys for a user to set, (2) define keys based on the ones the user set according to one of the other arguments
<andromeda-galaxy> and I think it doesn't make sense to do (2) (= pass a function) when you haven't also done (1)
<andromeda-galaxy> is that right?
<clever> in the case of unixConfig, the options like .description and unitConfig are being defined elsewhere
<andromeda-galaxy> right, in targetOptions/serviceOptions/etc.
<clever> unit*
<andromeda-galaxy> the 1st argument in the last passed to submodule
<clever> with import ./systemd-unit-options.nix { inherit config lib; };
<andromeda-galaxy> my point is more that I think that 'submodule unitConfig' by itself wouldn't be meaningful
<clever> unitConfig could define both options and config at the same time
<clever> but the author of systemd choose to not do that
altphi has quit [(Quit: altphi)]
<clever> the systemd module that is
<andromeda-galaxy> ahh that makes more sense. but what options would be passed to the unitConfig function when it was being used to get the permissible option definitions, which are needed to compute the options to pass?
<clever> thats the fun thing with nix and lazyness
<clever> its being passed the config that it defines the options for
<clever> and other top-level modules, are being passed their own return value
<andromeda-galaxy> oh yeah, fair enough
<andromeda-galaxy> haskeller at heart but have been writing too much idris
<andromeda-galaxy> and coq
kp__ has quit [(Quit: WeeChat 2.0)]
<clever> ive also read the source behind how nix handles lazyness
<clever> all expressions and function calls are initialy of type thunk, which contains a function pointer and argument pointer
<clever> if you attempt to read it, the type will be temporarily changed to black hole, then the function ran
<andromeda-galaxy> nice. sounds pretty similar to the ghc rts
<clever> and after it returns, the type it changed to a base type (int, string, set, list, bool)
<clever> if it encounters a blackhole while recursively doing that, it knows it has circled around and will cause infinite recursion
<clever> so it throws a c++ level exception
<clever> and then restores things back to thunk type as it goes up the call chain
drakonis_ has quit [(Ping timeout: 272 seconds)]
drakonis has quit [(Ping timeout: 272 seconds)]
<clever> andromeda-galaxy: oh, and there are some other fun tricks in nix involving lists
<clever> every value in nix is stored as a union of many things, along with an enum for its type
<clever> because of that union, all values are 2 pointers long, plus a type tag
<clever> so, internally, it has 3 types for lists
<clever> for lists of length 1, 2, or n
astronavt has joined #nixos
astronavt has quit [(Remote host closed the connection)]
<clever> list1 and list2 directly store the first 1 (or 2) items into the union
<clever> while listn stores a pointer to the list
<andromeda-galaxy> hah, that's nice
<clever> oh, and line 125, strings are special
<andromeda-galaxy> will have to keep that in mind next time I want to shave a few bytes off an rts ;)
<clever> every string in nix, has a list of derivations the string refers to
<andromeda-galaxy> makes sense
<clever> and when you call the builtins.derivation function with a string, the derivation it creates will auto-magically depend on the derivations the strings refered to
<andromeda-galaxy> but also... feels a bit off
<clever> so just doing buildPhase = "${cmake}/bin/cmake"; will make sure cmake is built before your thing
<clever> and will include cmake in the sandbox
mizu_no_oto has joined #nixos
<clever> i also just noticed, there is no special type for lists of size 0
<clever> i'm guessing that would be listn, with the elems set to null
<clever> so it has the same size as list1 and list2
<andromeda-galaxy> interesting
<andromeda-galaxy> one other quick Q on understanding the systemd thing: unitConfig and friends take 'name' as one of the arguments, but serviceOptions and friends don't declare it. where does it come from?
orivej has quit [(Ping timeout: 264 seconds)]
<clever> andromeda-galaxy: i think thats the foo in systemd.services.foo
<andromeda-galaxy> it is... but where is the special handling that makes that happen?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
Isorkin has quit [(Read error: Connection reset by peer)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/15d3d68a5ea (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
Isorkin has joined #nixos
<clever> andromeda-galaxy: deep within the bowels of the module framework
boxofrox has quit [(Ping timeout: 256 seconds)]
<andromeda-galaxy> fair enough. I think maybe mergeModules' inherit name?
<andromeda-galaxy> or applyIfFunction?
<clever> applyIfFunction just decides if its a function or not, and calls it with the args if it can
<clever> so passing a set doesnt fail with an error, and just ignores the args
rotaerk has quit [(Ping timeout: 255 seconds)]
<andromeda-galaxy> applyIfFunction also appends extraArgs, though, which contains "inherit name"
<andromeda-galaxy> oh wait nevermind I missed the listToAttrs there
<andromeda-galaxy> the same is true of mergeModules'
<clever> line 158 queries the function to get its arguments
<clever> so { a, b, ... }: returns a { a=false; b=false; }
<clever> and the attrNames turns it into [ "a" "b" ]
<andromeda-galaxy> right
<clever> the map on 160 then fetches the a and b from args or config._module.args
jtojnar has quit [(Quit: jtojnar)]
CMCDragonkai1 has joined #nixos
Tobba has quit [(Read error: Connection reset by peer)]
<andromeda-galaxy> I should really PR adding all this stuff to the manual, which afaict doesn't explain (1) passing lists to submodule, (2) passing functions to submodule, (3) passing config = ... to submodule, or (4) the special behavior of name when bound by a function passed to submodule inside of attrsOf
CMCDragonkai1 has quit [(Read error: Connection reset by peer)]
jtojnar has joined #nixos
Tobba has joined #nixos
<clever> i often say, docs can lie, the source cant
<andromeda-galaxy> yep ;)
<andromeda-galaxy> that's why I was looking for the name= thing in the source
boxofrox has joined #nixos
jtojnar has quit [(Quit: jtojnar)]
jtojnar has joined #nixos
<fpletz> jtojnar: then is fails with: No Gcr System Prompter available, falling back to curses
<jtojnar> weird
fresheyeball has joined #nixos
<fresheyeball> hey out there
<fresheyeball> a friend of mine just installed nixos on a lonovo thinkpad
<fresheyeball> and copy and paste commands do not function
<fresheyeball> any idea where to look?
<fpletz> jtojnar: well, it's designed to delegate the prompting to gnome-keyring, so that seems fair :)
* fpletz does not want to use gnome-keyring for now though
<fpletz> I've refactored the pinentry expression and made gnupg use only the curses pinentry by default
<jtojnar> fpletz: I also refactored it
<fpletz> :)
<jtojnar> I would expect that it will only show the dialogue when external cache is disabled
<jtojnar> it seems to do that when running the pinentry program manually
<fpletz> jtojnar: nice changes, also wanted to merge the qt5 expression
<fpletz> I've experimented with using multiple outputs for each pinentry program
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vboPW
<NixOS_GitHub> nixpkgs/master 4062700 John Wiegley: coq_8_7: 8.7.0 -> 8.7.1
NixOS_GitHub has left #nixos []
<fpletz> and use those in a new nixos-option programs.gnupg.agent.pinentryFlavour to configre which pinentry is desired
<fpletz> if gnome3 is enabled, it could set that to gnome3 by default
<fpletz> and stil let the user override it if desired
<fpletz> if it's unset, the default (curses) or whatever is configured in gpg-agent.conf is used
MP2E has quit [(Remote host closed the connection)]
<fpletz> I'll open a PR shortly, have to clean it up and rebase after your changes :)
endformationage has quit [(Quit: WeeChat 1.9.1)]
<jtojnar> sounds nice
<fpletz> this also solves the dependency cycle in gcr
<fpletz> gcr currently builds its own gnupg :)
dj_goku_ has quit [(Quit: Lost terminal)]
gm152 has joined #nixos
<jtojnar> very nice
MP2E has joined #nixos
rotaerk has joined #nixos
<fpletz> jtojnar: just noticed one bad thing about using multiple outputs here… when building pinentry now, all prerequisites are needed, so qt and gcr has to be built first to get i.e. gtk2
<fpletz> the dependencies are correct though, the gtk2 version does of course not depend on qt or gcr, they are just build dependencies to get the other outputs
<jtojnar> bless binary cache
fresheyeball has quit [(Quit: WeeChat 1.9.1)]
<fpletz> jtojnar: oh no, the qt4 and qt5 versions can't be built simultaneously
<jtojnar> oh, right
<jtojnar> do we even still need qt4?
<fpletz> right, let's remove it
coot has joined #nixos
yegortimoshenko has quit [(Ping timeout: 248 seconds)]
babs__ has quit [(Quit: Leaving)]
jb55 has quit [(Ping timeout: 256 seconds)]
coot has quit [(Quit: coot)]
<johnw> if I have gc-keep-outputs = true, gc-keep-derivations = true, env-keep-derivations = true, shouldn't nix-collect-garbage -d leave my downloaded tarballs alone for any active derivations that were built from them?
CMCDragonkai1 has joined #nixos
ssmike has joined #nixos
CMCDragonkai1 has quit [(Quit: WeeChat 1.8)]
dywedir has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #29491: remove openstack (master...openstack) https://git.io/v5dbf
NixOS_GitHub has left #nixos []
<sphalerite> johnw: I think so
<johnw> however, they get collected :(
<johnw> after cleaning (freeing 82G), all my sources are gone, only the .drv files and the outputs remain
<johnw> but none of the outputs of the tar.gz.drv's
simukis has joined #nixos
<johnw> for example, I see in the garbage collection output "deleting ‘/nix/store/ixchqlz9pxbijzkbgwfm412hxqlxikfk-zsh-5.4.2-doc.tar.gz’", when I still have ./kgalb2mj2nrbd86mdhsrfwxn9j2cdrfq-zsh-5.4.2-doc.tar.gz.drv afterward that names this file
<johnw> but doing nix-store -qR on the .drv doesn't mention the .tar.gz file
<johnw> hmm.. even the Wiki says "all these fetched tarballs are not referenced anywhere and removed on GC"
<johnw> peti had the same question: https://nixos.org/nix-dev/2009-December/003618.html
<johnw> too bad the thread contains no answer
<sphalerite> Aww
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vboMy
<NixOS_GitHub> nixpkgs/master 2733530 Yuriy Taraday: chromium: 63.0.3239.84 -> 63.0.3239.108...
<NixOS_GitHub> nixpkgs/master 0c5f5ba Vladimír Čunát: Merge #32718: chromium: 63.0.3239.84 -> 63.0.3239.108
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #32718: chromium: 63.0.3239.84 -> 63.0.3239.108 (master...chromium-update) https://git.io/vbrAa
NixOS_GitHub has left #nixos []
Itkovian has joined #nixos
MP2E has quit [(Remote host closed the connection)]
aarvar has joined #nixos
laggy_wifi has joined #nixos
vidbina has joined #nixos
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 256 seconds)]
Taneb has joined #nixos
<Taneb> How can I install a GHC that isn't 8.0.2? (In particular, 8.2.2)
<neonfuz> you could override the version
iyzsong has quit [(Ping timeout: 265 seconds)]
<neonfuz> this would be in ~/.config/nixpkgs/config.nix
<neonfuz> but make it for ghc instead of qbittorrent lol
<neonfuz> oh wait, there are actually packages made for 8.2.2
<Taneb> neonfuz, it turns out what I wanted was "nix-env -iA nixos.haskell.compiler.ghc822"
<neonfuz> yeah I was just going to say actually you can use the full path
<Taneb> Thanks anyway though! :)
<neonfuz> I assumed there wasn't a package because I did 'nix-env -qaP | grep ghc' and didn't see it lol
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<neonfuz> then when I went to see how to make an override I saw it lol
<neonfuz> np
<neonfuz> so back on gentoo there was some sort of tag on the packge manager you could do like --fetchonly, which only got the sources but didn't build anything, is this possible with nix?
<neonfuz> I can't really think how it would be
simendsjo has joined #nixos
b has quit [(Quit: Lost terminal)]
boxofrox has quit [(Ping timeout: 256 seconds)]
ssmike has quit [(Read error: Connection reset by peer)]
<dhess> nix-prefetch-url --unpack
<neonfuz> true
<neonfuz> but you can't do that to many packages, just to certain resources right
gm152 has quit [(Ping timeout: 264 seconds)]
<dhess> I don't know what you mean. You give it the same URL that the package uses for its src attribute, and it will download it and unpack it.
<neonfuz> in gentoo you can just do 'emerge -u --fetch-only' to fetch all the new sources, so if you were, say away from internet you could rebuild
<dhess> oh I see.
<neonfuz> the only way that would be possible is if it could take an attribute and instead of calculating the actual attribute, recursively go through it and fetch all the sources
<neonfuz> sorry my terminology is bad lol
<dhess> I understand what you mean now. Unfortunately I don't know how to do that.
<neonfuz> I actually got stuck the other day because I did a nixos rebuild and broke my wifi drivers, and I think I did a GC becasue I ran out of root space lol
<neonfuz> I don't remember how I fixed it
boxofrox has joined #nixos
ssmike has joined #nixos
laggy_wifi has quit [(Ping timeout: 240 seconds)]
ssmike has quit [(Ping timeout: 255 seconds)]
sary has quit [(Ping timeout: 272 seconds)]
<sphalerite> neonfuz: catern made something like that the other day
sary has joined #nixos
boxofrox has quit [(Ping timeout: 260 seconds)]
<neonfuz> oh sweet
jacob_ has joined #nixos
magnetophon has quit [(Ping timeout: 265 seconds)]
<sphalerite> https://github.com/NixOS/nix/issues/1734 the issue they filed about it
vidbina has quit [(Ping timeout: 265 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #32734: mutt: 1.9.1 -> 1.9.2 (master...update-mutt) https://git.io/vboSt
NixOS_GitHub has left #nixos []
jensens has joined #nixos
sary has quit [(Ping timeout: 272 seconds)]
vcunat has joined #nixos
ssmike has joined #nixos
sary has joined #nixos
ssmike has quit [(Ping timeout: 255 seconds)]
hiroshi- has joined #nixos
jensens has quit [(Ping timeout: 255 seconds)]
hiroshi has quit [(Ping timeout: 256 seconds)]
hiroshi- is now known as hiroshi
aarvar has quit [(Ping timeout: 264 seconds)]
ma27 has joined #nixos
sbjorn has joined #nixos
tobiasBora has quit [(Quit: WeeChat 1.6)]
mahalel_ has joined #nixos
mahalel_ has left #nixos []
akamaus has joined #nixos
<Li[m]> is anyone checking the nixos.org binaries for authenticity?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] the-kenny closed pull request #32734: mutt: 1.9.1 -> 1.9.2 (master...update-mutt) https://git.io/vboSt
NixOS_GitHub has left #nixos []
<sphalerite> Li: for authenticity, nix checks the signatures on everything it gets from a binary cache
<sphalerite> as for build verification, not sure if anyone's doing that. Would be good though
ebzzry has joined #nixos
akamaus has quit [(Ping timeout: 255 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
ssmike has joined #nixos
<Taneb> If I install SDL2 with nix-env, how can I get pkg-config to pick it up?
<sphalerite> !library
<LnL> if you use nix-shell that happens automatically
phreedom has quit [(Ping timeout: 264 seconds)]
<CrazedProgrammer> fpletz: spl-kernel-0.7.3-4.14.5 is still marked as broken. i switched to zfsUnstable though so no worries :)
<sphalerite> grahamc: the factoid isn't appearing :(
<sphalerite> Taneb: Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ#I_installed_a_library_but_my_compiler_is_not_finding_it._Why.3F for details."
<CrazedProgrammer> i'm on the latest nixos-unstable channel
<sphalerite> !cloudfront
<sphalerite> (just seeing if factoids are working at all or if it's just mine. Looks like they're not showing at all)
<Taneb> sphalerite, thanks :D
<LnL> gchristensen: {^_^} is a bit shy today :)
iyzsong has joined #nixos
simendsjo has quit [(Ping timeout: 265 seconds)]
pie_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vbo7Y
<NixOS_GitHub> nixpkgs/release-17.09 68a4c07 Vladimír Čunát: Merge #32718: chromium: 63.0.3239.84 -> 63.0.3239.108...
NixOS_GitHub has left #nixos []
erictapen has quit [(Ping timeout: 240 seconds)]
vcunat has quit [(Ping timeout: 255 seconds)]
<neonfuz> flashplayer is failing to download from adobe with the nixos package :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vbo71
<NixOS_GitHub> nixpkgs/master 12c5fe3 Vincent Laporte: ocamlPackages.cairo2: 0.4.6 -> 0.5
NixOS_GitHub has left #nixos []
<sphalerite> neonfuz: I think hyper_ch put a fix in for that the other day
<Li[m]> are the builds done in the cloud or on physically secure hardware?
<hyper_ch> sphalerite: no, my fix got rejected :(
<neonfuz> rip
<neonfuz> what was your fix?
<hyper_ch> becuase someone else supplied a PR that not only fixes it in chromium but also ff and other places
<hyper_ch> neonfuz: new version number and sha256 for flashplayer
nix-gsc-io`bot has joined #nixos
<hyper_ch> it got upgraded, old version not available anymore
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0c5f5ba61d1 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
sbjorn has quit [(Ping timeout: 265 seconds)]
<sphalerite> Li: there's a number of machines, I think some of them are AWS EC2 instances, others are physical machines in the Netherlands, there's a physical aarch64 one at packet.net which I think is in the US. Basically a mix. If you're very paranoid I'd recommend building everything yourself (and publishing the results somewhere so others can use it to cross-check)
<sphalerite> https://hydra.nixos.org/machines here's a list of machines, but it doesn't contain a huge amount of information about them
<sphalerite> oh, some are at rackspace too
<neonfuz> hyper_ch: it's currently failing when I try to install firefox, trying to fetch version 27.0.0.187
<Li[m]> yes I will, but I wanted to know
<sphalerite> neonfuz: 27.0.0.187 is outdated
<sphalerite> update your channel
<neonfuz> I just did
<sphalerite> actually not sure if it got backported
<neonfuz> I mean I can do it again
<neonfuz> backported from where?
<sphalerite> it's fixed in master, I don't think it was cherry-picked to 17.09
<sphalerite> if you're on unstable, it might not have updated yet as well
<neonfuz> I'm on unstable
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] themoritz opened pull request #32736: pkgs.emacs25: backport patch to fix vfork issue (master...emacs-vfork) https://git.io/vbo5E
NixOS_GitHub has left #nixos []
<neonfuz> I'm gonna make an override lol
<sphalerite> yeah it seems it hasn't updated yet
<Li[m]> Linus: thanks
<sphalerite> Li: no problem. I don't really know that much about hydra's setup though, so if you want more details best to ask someone else. Not sure exactly who though
<sphalerite> neonfuz: you could also use unstable-small, which has updated :p
pie_ has quit [(Remote host closed the connection)]
<evangeline> hi, is anybody using fcrontab, I'm getting the following error when trying to run "fcrontab -l" as fcron user: " User "fcron" is not allowed to use fcrontab. Aborting." ?
Harpalus has joined #nixos
<sphalerite> evangeline: I don't know about your specific problem unfortunately, but would using systemd timers instead of fcron maybe be an option?
<sphalerite> That way you can configure it in your configuration.nix as well
<ebzzry> Why won’t anything work now: https://pastebin.com/Wgz6Vr4N
<ebzzry> Both installing and uninstall does NOT work.
<ebzzry> Ok. 'nix-env --rollback' worked
<evangeline> sphalerite: I just straced it, you need to add the fcron user to the fcron.allow.
<evangeline> This is so that the fcron user can use fcrontab; now I need to trace what to add so my user is able to execute command as fcron, possibly I need to add an entry into the sudoers
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #32737: Tidy up the Coq package sets (master...coq-packages-filter) https://git.io/vbo5b
NixOS_GitHub has left #nixos []
<sphalerite> ebzzry: it's a bug in nixUnstable. I've fixed it but it's not in nixpkgs yet
<ebzzry> Wait. The rollback doesn't work.
<ebzzry> What tree can I pull from?
<ebzzry> What is the current course of action?
<sphalerite> ebzzry: run your nixos-rebuild within nix-shell -p nix
<LnL> nixos-rebuild will rebuild nix for you
<ebzzry> Just `nixos-rebuild` or the one with `switch`?
<sphalerite> ^ the PR that fixes it
<ebzzry> Ok
<sphalerite> ebzzry: whatever fails
<ebzzry> Who do we shoot?
<sphalerite> Nobody preferably :)
<neonfuz> sphalerite: ooh, maybe that is better for me, I used to be a gentoo-unstable user lol
<neonfuz> so I'm used to recompiling things
<neonfuz> and am finding myself doing anyways as I start making overrides and stuff
<sphalerite> neonfuz: usually the regular channels won't be more than a day or two behind, but sometimes that day or two can be painful so yeah it could help
ylwghst has quit [(Ping timeout: 256 seconds)]
<ebzzry> Wait, wait. Why am I getting 'sudo nixos-rebuild, No manual entry for nixos-rebuild'
<ebzzry> That is inside `nix-shell -p nix`
<LnL> it takes a command like switch
<LnL> and it probably can't find the manpage because of sudo
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vbodO
<NixOS_GitHub> nixpkgs/master 352399e Markus Kowalewski: airspy: fix installation of udev rules for USB access
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #32719: airspy: fix installation of udev rules for USB access (master...airspy-udev) https://git.io/vbrxU
NixOS_GitHub has left #nixos []
<ebzzry> LnL: How should I resolve it?
<LnL> sudo nixos-rebuild switch should work
<sphalerite> sudo nix-shell -p nix --run 'nixos-rebuild switch'
<ebzzry> spacefrogg: Thanks. Is a reboot needed?
<ebzzry> sphalerite: Thanks. Is a reboot needed?
<sphalerite> ebzzry: no. It won't fix the issue though, unless you disabled nixUnstable
orivej has joined #nixos
<sphalerite> The nix-shell workaround should work consistently though, until the bugfix is in nixpkgs
<ebzzry> Ok. How should one use commands like nix-env? Using channels or the git checkout?
<sphalerite> Up to you
<sphalerite> Depends on how you want to use it. I use a checkout for my user profile stuff most of the time as it makes testing changes easier
<ebzzry> I tried to run an example command `nix-env -iA nixos.libmtp`, however I still get `error: unexpected EOF reading a line`
<sphalerite> But for the system I almost always use a channel
<ebzzry> sphalerite: I do the same.
<sphalerite> You need to use the stable version of nix for nix-env to work right
<ebzzry> sphalerite: I will try that now.
<ebzzry> With `nix-env --install nix`
<sphalerite> Also, you probably don't want to install libmtp
<ebzzry> sphalerite: why?
<sphalerite> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ#I_installed_a_library_but_my_compiler_is_not_finding_it._Why.3F for details.
<sphalerite> Also: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ#Why_not_use_nix-env_-i_foo.3F for details.
* sphalerite wants {^_^} back
<ebzzry> sphalerite: Yes. Using -A prevents the evaluation of the whole expression, by selecting the attribute directly.
<ebzzry> sphalerite: 'nix-channel --update' gives me 'error: imported archive of ‘/nix/store/5s5nxqmhl4syga1pmqgwpff8l0g8cahj-nixos-17.09’ lacks a signature'
pie_ has joined #nixos
<ebzzry> Additionally, 'nix-env -iA nixos.nix' still gives me that EOF problem
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 3 new commits to master: https://git.io/vbodp
<NixOS_GitHub> nixpkgs/master 237cf9e Luke Adams: edk2: 2014-12-10 -> 2017-12-05...
<NixOS_GitHub> nixpkgs/master 08ff546 Orivej Desh: edk2 add short-circuit-the-transfer-of-an-empty-S3_CONTEXT.patch...
<NixOS_GitHub> nixpkgs/master 3501d81 Orivej Desh: Merge pull request #32724 from lukeadams/edk2-update...
NixOS_GitHub has left #nixos []
drakonis_ has joined #nixos
drakonis has joined #nixos
<sphalerite> ebzzry: comment out nix.package = pkgs.nixUnstable in your configuration.nix, then sudo nix-shell -p nix --run 'nixos-rebuild switch'
<ebzzry> sphalerite: I don’t have that value.
<sphalerite> Do you have nixUnstable in your user profile then?
<sphalerite> In that case do nix-shell -p nix --run 'nix-env -e nix'
<ebzzry> sphalerite: Yes, I do. However, I can’t uninstall it or override it with nixStable.
thc202 has joined #nixos
ssmike has quit [(Ping timeout: 240 seconds)]
drakonis_ has quit [(Quit: Leaving)]
<sphalerite> Yes, which is why you need to use nix-shell -p nix
<sphalerite> > In that case do nix-shell -p nix --run 'nix-env -e nix'
altphi has joined #nixos
sbjorn has joined #nixos
<ebzzry> sphalerite: Ok. I’ll do that.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vboFW
<NixOS_GitHub> nixpkgs/master b2d90f1 Michiel Leenaars: ocamlPackages.cohttp: 0.99 => 1.0.0...
NixOS_GitHub has left #nixos []
<ebzzry> sphalerite: Done. What should I run next?
<sphalerite> ebzzry: did it uninstall nixUnstable?
<sphalerite> If yes, then everything should work now (besides nixUnstable-only commands)
<sphalerite> If you rely on nixUnstable features, I suggest using it in a nix-shell (nix-shell -p nixUnstable) until the bug fix is merged
<ebzzry> Running `nix-shell -p nix --run 'nix-env -e nix-unstable'` fixed it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl closed pull request #31807: ocamlPackages.cohttp: 0.99 => 1.0.0 (master...cohttp) https://git.io/vFHCT
NixOS_GitHub has left #nixos []
<ebzzry> sphalerite: Thanks. That did it.
<sphalerite> Great
Harpalus has quit [(Quit: Leaving)]
ssmike has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
Mateon1 has quit [(Remote host closed the connection)]
Mateon1 has joined #nixos
toppler` is now known as toppler
altphi has quit [(Quit: altphi)]
altphi has joined #nixos
<gchristensen> LnL: ack!
mizu_no_oto has joined #nixos
yegortimoshenko has joined #nixos
yegortimoshenko has quit [(Changing host)]
yegortimoshenko has joined #nixos
yegortimoshenko has left #nixos []
<gchristensen> seems I forgot to give the factoid process a proper home
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to staging: https://git.io/vbob7
<NixOS_GitHub> nixpkgs/staging dbeffe3 Gabriel Ebner: perl generic builder: recognize #!/usr/bin/env perl
<NixOS_GitHub> nixpkgs/staging 700e789 Orivej Desh: Merge pull request #32717 from gebner/perl-builder-env-perl...
NixOS_GitHub has left #nixos []
nallar has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32717: perl generic builder: recognize #!/usr/bin/env perl (staging...perl-builder-env-perl) https://git.io/vbrN0
NixOS_GitHub has left #nixos []
Ross has quit [(Ping timeout: 264 seconds)]
nallar is now known as Ross
yegortimoshenko has joined #nixos
{^_^} has quit [(Remote host closed the connection)]
{^_^} has joined #nixos
{^_^} has quit [(Changing host)]
{^_^} has joined #nixos
ma27 has quit [(Ping timeout: 272 seconds)]
<gchristensen> !library
Itkovian has joined #nixos
<gchristensen> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ#I_installed_a_library_but_my_compiler_is_not_finding_it._Why.3F for details.
<gchristensen> sphalerite, LnL ^ ok, factoids now has a proper home and should continue working :) thanks for the ping / sorry about that
<yegortimoshenko> !steam
<sphalerite> !factoids
<{^_^}> Have a helpful Nix factoid? Send a PR! https://github.com/grahamc/ofborg/blob/master/factoids.toml
<sphalerite> yegortimoshenko: ^ there aren't many factoids there yet
<gchristensen> oops I'll update that URL.
<sphalerite> oh it's broken haha
vcunat has joined #nixos
vcunat has quit [(Client Quit)]
<gchristensen> !factoids
<{^_^}> Have a helpful Nix factoid? Send a PR! https://github.com/grahamc/ofborg/blob/released/factoids.toml
boxofrox has joined #nixos
<toogley> does nix still depend on perl? because https://nixos.org/nix/manual/#sec-prerequisites-source says so
<toogley> i thought that has been removed
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to staging: https://git.io/vboN4
<NixOS_GitHub> nixpkgs/staging 0f2a1e9 Gabriel Ebner: biber: remove sed workaround...
NixOS_GitHub has left #nixos []
<sphalerite> toogley: 1.11.x still depends on perl, and 1.12 isn't released yet
<toogley> sphalerite: aah, okay
ssmike has quit [(Ping timeout: 240 seconds)]
tmaekawa has joined #nixos
ssmike has joined #nixos
drakonis has quit [(Ping timeout: 272 seconds)]
tmaekawa has quit [(Quit: tmaekawa)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner pushed 3 new commits to master: https://git.io/vboAX
<NixOS_GitHub> nixpkgs/master d6137df Gabriel Ebner: perlPackages.UnicodeCollate: 1.14 -> 1.25
<NixOS_GitHub> nixpkgs/master d3b918a Gabriel Ebner: perlPackages.UnicodeLineBreak: 2015.07.16 -> 2017.004
<NixOS_GitHub> nixpkgs/master 0e37c90 Gabriel Ebner: biber: add missing dependencies
NixOS_GitHub has left #nixos []
<Ankhers> gchristensen: What command are you using to build my erlang PR? I just did a nox review on my mac and nixos VM.
<gchristensen> which PR?
<gchristensen> (link?)
marsam has joined #nixos
<gchristensen> hrm weird
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
dywedir has quit [(Ping timeout: 256 seconds)]
<Ankhers> What is?
<LnL> Ankhers: the darwin failure might be sandboxing, the timeouts are probably unrelated
<Ankhers> Thanks. I will take a look at that in a bit.
<gchristensen> maybe I should increase my builder's timeouts to like 1hr?
<gchristensen> it is annoying they fail for qemu and erlang, while I definitely don't want to be stuck building chromium right now
ssmike has quit [(Ping timeout: 264 seconds)]
mizu_no_oto has joined #nixos
b has joined #nixos
<Ankhers> gchristensen: Out of curiosity, does your bot only build on a single machine, or do you have a cluster?
<gchristensen> back in 20 to describe
<Ankhers> Thanks.
aloiscochard has joined #nixos
drakonis has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
<Baughn> https://github.com/NixOS/nixpkgs/pull/21930 <- I think the only thing this PR is missing is tests, but I honestly don't know how to test this.
<seequ> Is there a good way to use a specific version of qt 5.9 (I think I need qt 5.9.1) for a package? Running into https://github.com/NixOS/nixpkgs/issues/30551
<Baughn> I'd argue this is Qt's fault and a breach of semantic versioning, but sigh.
<seequ> Yes, but that doesn't make it any less of a problem.
marsam has quit [(Ping timeout: 240 seconds)]
<Baughn> Tried `nix-env -u --always`?
ssmike has joined #nixos
<Baughn> It seems like making sure *everything* is on 5.9.2 would also fix it.
<gchristensen> Ankhers: both :)
<Ankhers> I assume there is more of an explanation incoming?
<gchristensen> yes
<aanderse> when github says "merged 1 commit into NixOS:release-17.09 from ...." this means if i update my system i'll have this update on my system, right?
<aanderse> nixpkgs pulls straight from github right?
<gchristensen> aanderse: no
<gchristensen> aanderse: http://howoldis.herokuapp.com/ "how does channel update"
<aanderse> oh.... /me deletes github comment
<aanderse> thanks
<gchristensen> :)
<seequ> Aha. The culprit was a custom package I had installed a while back. Which obviously had no update route.
<Baughn> aanderse: If you *want* a particular commit, then the simplest way is to run nix-channel --update, take note of the commit ID in the update message, check out that version from git, cherry-pick on top of that and finally rebuild your system from the result.
<gchristensen> Ankhers: there is a cluster of ofborg build machines, run by different members of the community. however, a single ofborg build is run on a single machine.
<Baughn> There are ways to automate that, of course. Building straight from head is unlikely to work.
<Ankhers> Gotcha.
<Ankhers> Thanks.
<aanderse> well steam is broke and someone fixed it... i just wanted to game out tonight because i've been so busy lately
<aanderse> dang
<aanderse> oh well, thanks for letting me know
<Baughn> aanderse: So you can do what I suggested. ;-)
<Baughn> aanderse: Alternately, 'nixos-rebuild switch --rollback' until it works.
<gchristensen> Ankhers: https://events.nix.gsc.io/stats.php for stats about how many machines and how loaded they are
<aanderse> Baughn: i have time to either game out, or do what you said
<aanderse> rollback won't work as steam released a new version which broke nixos
<aanderse> it wasn't a nixos dev which broke steam
<Baughn> Ah.
b has quit [(Quit: Lost terminal)]
<Baughn> gchristensen: Why is nixpkgs usually so old, nowadays? Is it still a capacity issue, or is the build frequently broken?
<gchristensen> aanderse: maybe we can get a channel update before "tonight", when is that?
<aanderse> currently 9:38 am
<aanderse> so
* aanderse crosses fingers :)
aloiscochard has quit [(Ping timeout: 240 seconds)]
* Baughn looks at this SMR HDD and finds it slow.
<Ankhers> gchristensen: Just out of curiosity, why the choice of PHP to build it? Also, is this the reason you were testing out rabbit?
<aanderse> ok, thanks again everyone
acarrico has joined #nixos
<gchristensen> aanderse: link to the PR?
* aanderse heads out
<aanderse> oh
Acou_Bass has joined #nixos
<gchristensen> Ankhers: because I knew I could get the first draft working and out the door in less than a day :)
<gchristensen> Ankhers: but, it is almost all Rust now
spietz has joined #nixos
<aanderse> gchristensen: thanks for taking a look
<yegortimoshenko> aanderse: what's the problem?
<aanderse> yegortimoshenko: i want your fix :)
<aanderse> ps. thanks for fixing
<Ankhers> Oh okay. Cool.
<yegortimoshenko> aanderse: https://github.com/NixOS/nixpkgs/pull/32723, it's in release-17.09 branch, merged
<aanderse> i didn't realize commits to github weren't applied to stable for a few days
<aanderse> gchristensen linked me to http://howoldis.herokuapp.com/ which let me know nixos-17.09 was last updated 2 days ago
<aanderse> yegortimoshenko: oh yeah? well thank you again then :)
<aanderse> hmm... how to run that system wide?
<yegortimoshenko> aanderse: nixos-rebuild -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/release-17.09.tar.gz switch
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LambdaP opened pull request #32738: neovim: add viAlias argument (master...neovim-viAlias-option) https://git.io/vbohc
NixOS_GitHub has left #nixos []
drakonis has quit [(Remote host closed the connection)]
drakonis has joined #nixos
<aanderse> mhm mhm
<aanderse> yegortimoshenko: you're my hero :)
<gchristensen> aanderse: note that last command can be a bit dangerous
<aanderse> any specifics on that?
<gchristensen> !which channel
<gchristensen> ^ this has some words about why, and what testing goes in to the channel but doesn't happen if you just fetch the branch directly
erictapen has quit [(Ping timeout: 264 seconds)]
ssmike has quit [(Ping timeout: 255 seconds)]
<aanderse> that command just switched me to the testing channel?
<yegortimoshenko> if you have any problems, you can always roll back
<aanderse> yeah, nixos + zfs is great
<yegortimoshenko> realistically, you'll be fine, release-17.09 only gets backported changes
<aanderse> i can screw up as much as i want
iqubic has joined #nixos
<gchristensen> no, but you're using a version of nixpkgs which isn't vetted to keep your system working
<aanderse> and i'm just a rollback away from being ok
<gchristensen> that is not true
<iqubic> Which package provides make?
<aanderse> so in a few days, after this fix makes it into the normal channels, how do i go back?
<Yaniel> iqubic: gnumake I think
<yegortimoshenko> aanderse: you don't have to do anything, just nixos-rebuild switch
<aanderse> fantastic
<gchristensen> using an unvetted version of nixpkgs isn't tested to not rm -rf /, or ruin your bootloader by mistake. there are real risks to using an untested version of nixpkgs for nixos that are not handled by rolling back, aanderse
<aanderse> gchristensen: thank you for letting me know. so release is just like a quick peer review on github, where the normal channel is more carefully vetted?
<gchristensen> right
<gchristensen> and this is not a vague risk, it has happened that people used an untested version of nixpkgs that made their system unbootable. it was from the master branch, not a stable release, but still
<aanderse> well i'll be sure to never run that on the desktop then
<yegortimoshenko> gchristensen: i don't see any commits that are not backported in release branch
<gchristensen> sorry?
<yegortimoshenko> what i mean is, all commits in release-17.09 branch are backported from master. i think you said "that is not true" in regards to that
<yegortimoshenko> also, changes to release branches tend to be very minor
<gchristensen> no, I said "that is not true" to "i can screw up as much as i want" and ""and i'm just a rollback away from being ok"
<yegortimoshenko> it is true, if boot is from zfs, barring new zfs corrupts filesystem, which is very unlikely
<gchristensen> yes I know, but it is unsafe to assume it is always fine to build from an untested commit and it is always going to be possible to roll back in that circumstance
<aanderse> well, again, i appreciate all the help and information
<aanderse> a malicious commit could bork my zfs
<gchristensen> no, it is not true, because it assumes other software doesn't corrupt ZFS by mistake
<aanderse> mhm
<gchristensen> or on purpose
<aanderse> like when i upgraded from nixos 17.03 to 17.09 that upgraded the zfs version
<aanderse> i was a bit nervous about that
<yegortimoshenko> most software is fs-agnostic
<aanderse> but it worked great
<aanderse> anywho
<aanderse> kids are running around... gotta go
<aanderse> thx again
<yegortimoshenko> see you
<gchristensen> it doesn't make it universally true or a safe statement to make to someone who doesn't know the specifics
<gchristensen> it is critical we keep people trusting that the channel won't break their system, and telling people to leave the channel without the caveats that it lacks the normal safety checks is not good
<gchristensen> Baughn's recommendation to use the channel commit + a cherry-pick of the specific bump is much safer advice
<yegortimoshenko> gchristensen: i understand your point, but risk of breaking the system, considering the context (zfs, + release branch) is negligible.
<yegortimoshenko> and passing nixos/nixpkgs tests don't entirely negate that possibility. system can break at any time.
<gchristensen> yes, the risk is low, and there don't appear to be risky changes unreleased, however there are 698 other people in #nixos who may follow that advice another time in riskier cases
<yegortimoshenko> s/don't/doesn't/
<gchristensen> aanderse: fwiw it looks like the channel will include the steam change by this after noon
<gchristensen> of course they don't
ssmike has joined #nixos
<yegortimoshenko> s/doesn't/don't/
<gchristensen> :D
<yegortimoshenko> heh, i misread my own message
<yegortimoshenko> or... wait...
<yegortimoshenko> s/don't/doesn't/
altphi has quit [(Quit: altphi)]
<gchristensen> haha.it is okay
<yegortimoshenko> ...
<gchristensen> the tests do though at least validate the bootloader will be properly written
<iqubic> Trying to get stack working on NixOS, and not having much luck.
vidbina has joined #nixos
<iqubic> Anyone know how to help me get stack set-up for Haskell development on Nixos
<gchristensen> yegortimoshenko: thank you for helping aanderse, it wasn't unreasonable to have them rebuild from the branch
<gchristensen> yegortimoshenko: I'm sorry I reacted strongly
<yegortimoshenko> gchristensen: it's ok! i get it.
b has joined #nixos
acarrico has quit [(Ping timeout: 256 seconds)]
Arcaelyx has joined #nixos
<gchristensen> <3
<yegortimoshenko> :-)
ssmike has quit [(Ping timeout: 272 seconds)]
proteusguy has joined #nixos
betaboon has joined #nixos
<sphalerite> I feel like half my time on the chromebook is spent micromanaging builds
<LnL> whoops, scrollback
<sphalerite> LnL: plus the whole issue was that the channel wasn't up-to-date enough
<tilpner> LnL - s/release/nixos/?
usr_ has joined #nixos
<LnL> right, it uses the channel names there
<betaboon> good evening. reporting back on running nixos on rpi-zero-w using the armv6 image. didnt succeed. i just checked with a raspbian image which boots fine. the ACT-led blink pattern seems to indicate that the sd-card cannot be read. any ideas ?
<usr_> I have this error: "SSL certificate problem: unable to get local issuer certificate." while running stack build (while cloning git extra dependency network-transport-tcp ) in buildCommand of derivation. Is anyone familiar with this?
<LnL> you could also run some of the nixos tests yourself if you really want to be safe
Acou_Bass has quit [(Ping timeout: 265 seconds)]
<yegortimoshenko> look at arch people, they run the newest and the latest and can't even roll back
Judson has quit [(Ping timeout: 255 seconds)]
ssmike has joined #nixos
<yegortimoshenko> (and it works most of the time without breakage)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #32739: libpcap: increase maximum snapshot length for dbus (master...libpcap-nolimit) https://git.io/vbKvL
NixOS_GitHub has left #nixos []
<sphalerite> does anyone happen to know if it's possible for me to remove the write protection that's on part of the eMMC in my chromebook?
acarrico has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #32731: graphviz: cleanup, use autoreconfHook, source from GitLab (master...graphviz/src) https://git.io/vboza
NixOS_GitHub has left #nixos []
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<samueldr> betaboon: this means then that there is no serial output at all, right?
<betaboon> samueldr: yep nothing on the tty. the led blink pattern is 1xlong->1xshort->dark which seems to mean sd-cannot-be-read
<samueldr> I'm guessing you don't have a raspbery pi 1 B to double-verify that the sd-image-armv6 is properly installed
<betaboon> samueldr: good idea. i do. gonna check after writing the nixos image back onto the sd-card
<samueldr> :)
<joncfoo_> When using `buildStackProject` in a default.nix file I notice that Stack always tries to download GHC and subsequently fails - is there something that I'm specifying incorrectly? - http://sprunge.us/KHdY
<samueldr> this'll at least let us know the image is good
* samueldr is looking into getting both raspberry pi zeroes
phdoerfler has joined #nixos
DeaDSouL has joined #nixos
<joncfoo_> shouldn't `buildStackProject` be forcing Stack to use the --nix flag and thus use GHC provided by nix?
marsam has joined #nixos
catears has quit [(Quit: Connection closed for inactivity)]
erictapen has joined #nixos
<joncfoo_> I "fixed" it by specifying: buildPhase = "stack --no-install-ghc build"
<joncfoo_> seems odd that stack would require that flag
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
<betaboon> samueldr: same behavior on two rpi-1-b
jb55 has joined #nixos
<samueldr> can you confirm the name of the image file you're using?
<betaboon> sd-image-armv6l-linux.img
<samueldr> okay, should be the one
<samueldr> I'm loading the latest one to check on mine, maybe there's something wrong with the image? (I wouldn't bet on it)
<samueldr> have you verified the sha256sum of the image to be 6b76d7e1d9acc57ec2b1c0503d01ebcc085566f5b4211a423ff016e19bc0229b ?
michaelpj has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
iyzsong has quit [(Ping timeout: 256 seconds)]
michaelpj has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
<betaboon> samueldr: yep shasum is correct (of the downloaded file)
usr_ has quit [(Ping timeout: 260 seconds)]
acarrico has quit [(Ping timeout: 255 seconds)]
proteusguy has joined #nixos
<betaboon> samueldr: i ran dd with bs=4M and conv=fsync (which worked fine with the raspbian image)
jmc_fr has joined #nixos
CodeWarrior has joined #nixos
<jmc_fr> Hi. Doing `[root@nixos:/run/media/jmc/VBox_GAs_5.2.2]# ./VBoxLinuxAdditions.run' I get the error `Verifying archive integrity... All good.
<jmc_fr> Uncompressing VirtualBox 5.2.2 Guest Additions for Linux........
<jmc_fr> VirtualBox Guest Additions installer
<jmc_fr> Unable to determine correct library path.
<jmc_fr> ./VBoxLinuxAdditions.run: line 402: /bin/rm: No such file or directory'
<jmc_fr>
acarrico has joined #nixos
<grahamc> Hmm 404 pbogdan
<jmc_fr> => How to install correctly the VBox additions
<jmc_fr> ?
<clever> jmc_fr: 00~https://nixos.org/nixos/options.html#virtualbox.guest.enable
<betaboon> samueldr: sha-sums of the files on partition1 are correct aswell
<clever> jmc_fr: that option will install and configure it all for you
<samueldr> betaboon: I'm currently downloading the image
<jmc_fr> clever: I already have in my config : `virtualisation.virtualbox.guest.enable = true;' but I fail at sharing a folder with the host
<betaboon> onlything i noticed is the (unusually) large offset of part1 !? (16384)
<clever> jmc_fr: are the commands for sharing folders in $PATH/
<betaboon> samueldr: figured. just sharing the information :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #32686: nodejs: 9.2.0 -> 9.3.0, libuv: 1.16.1 -> 1.18.0 (staging...nodejs_9_3_0) https://git.io/vbwCs
NixOS_GitHub has left #nixos []
<jmc_fr> clever: $PATH/ => `/home/jmc/bin:/run/wrappers/bin:/etc/per-user-pkgs/jmc/bin:/home/jmc/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin/:' - what am I missing ?
<jmc_fr>
<clever> jmc_fr: there should be vbox utils in /run/current-system/sw/bin
<jmc_fr> clever: OK, thanks !
<gchristensen> pbogdan: hopefully I fixed it, but I've got to go, hopefully it doesn't cause too many issues
<gchristensen> pbogdan: I need to move those checks to a bigger box
<samueldr> betaboon: the large offset is because the image is generic
<samueldr> the raspberry pi boot process directly reads the first(?) FAT partition and searches for a file
<samueldr> whilst most other boards will read from after the MBR at a specific offset, to get the bootloader
<samueldr> offsetting partitions this way makes the images universal
<clever> yeah
<yegortimoshenko> pbogdan: btw, what's the problem? is it specific to cdemu/libmirage?
<clever> in both cases, the dram is offline, and that first stage goes into the L2 cache of the cpu
<samueldr> (it really depends on the hardware though, pine64 as an example loads a FIRST part off a flash chip, which then loads from an offset, but technically the whole bootloader can be on the flash chip if wanted and if it fits)
<clever> yeah, the allwinner line loads an SPL (secondary program loader) from a given offset on many media
<clever> and the SPL that comes with u-boot is concated to u-boot itself, and expects u-boot to follow
<jmc_fr> Btw, is it a good idea to git /etc/nixos/configuration.nix, I mean locally, to follow the changes. Or is thre a way to diff it with previous versions
acarrico has quit [(Ping timeout: 268 seconds)]
<clever> jmc_fr: i tend to put a git repo at /etc/nixos/nixcfg/
<clever> jmc_fr: then configuration.nix just contains the bare minimum to boot, and imports = [ ./nixcfg/hostname.nix ];
<clever> each host has its own unique file that is added to imports, and all can share nixcfg
<sphalerite> Couple of questions about remote builders… Can I get them to fetch paths from a binary cache rather than copying them over from the machine requesting the builds when possible? Or even from each other?
<clever> jmc_fr: the hostname.nix can then have something like ./core.nix added to imports, to share config between several systems
erictapen has quit [(Ping timeout: 240 seconds)]
<clever> sphalerite: i know nix-copy-closure can make the remote system use a binary cache, but i dont know if hydra/nix-daemon can trigger that automatically
<sphalerite> or can I "chain" remote builds, i.e. get one machine to handle build requests by passing them on to others?
<clever> i have chained by mistake
vcunat has joined #nixos
<sphalerite> hm, nix-copy-closure isn't really what I want
<clever> yeah, but the remote end does support it
<clever> so nix-daemon needs to just send the right flag
<sphalerite> Also, can I change the compression used on a binary cache? xz is heavy and I'd rather save the CPU time than the bandwidth and storage space, and use gzip or something instead
aloiscochard has joined #nixos
<clever> sphalerite: how is the the cache being served?
<sphalerite> via HTTP
<sphalerite> I'm copying into it using nix copy and sshfs
<clever> what server at the other end?
<sphalerite> nginx
<clever> ah, is it a new `nix copy` that generates a directory of .nar.xz's ?
himmAllRight has quit [(Remote host closed the connection)]
himmAllRight has joined #nixos
<sphalerite> nix copy can copy between various kinds of store, including a binary cache (using a file:///path/to/cache/dir URL), a local nix store via chroot (using a /path/to/root "URL"), a remote host's nix store (using a ssh://foo@example.com URL), etc
<sphalerite> so yes, in the case of a file:// URL it will create narinfos and nar.xz's
<clever> ah, then the compression would have to be changed within nix
aloiscochard has quit [(Ping timeout: 240 seconds)]
thblt has quit [(Remote host closed the connection)]
<sphalerite> hm snooping around the source code suggests that it supports other compression as well
thblt has joined #nixos
ebzzry has quit [(Ping timeout: 260 seconds)]
<samueldr> I'll try with another sd card, betaboon, but I had output on serial on my raspi1, u-boot did start: https://gist.github.com/samueldr/8e438b7bad05a389127f3682f31c1ad5
<samueldr> (I'm hoping this sd card isn't kaput, it's basically new)
orivej_ has joined #nixos
orivej has quit [(Ping timeout: 272 seconds)]
<samueldr> but I think it might, it feels like I have seen that exact same problem while testing with another board earlier on
ebzzry has joined #nixos
b has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to staging: https://git.io/vbKTR
<NixOS_GitHub> nixpkgs/staging 07d3bfc Vladimír Čunát: libjpeg(-turbo): 1.5.2 -> 1.5.3
<NixOS_GitHub> nixpkgs/staging 21ba964 Vladimír Čunát: mesa: maintenance 17.2.6 -> 17.2.7
<NixOS_GitHub> nixpkgs/staging fc5756e Vladimír Čunát: cairo: bugfix 1.14.10 -> 1.14.12
NixOS_GitHub has left #nixos []
b has joined #nixos
d3vnu77 has joined #nixos
<ison[m]> Hello, I'm having a problem with steam on NixOS. It looks like the problem was fixed here https://github.com/NixOS/nixpkgs/pull/32723 18hrs ago but I still get no changes when I --upgrade my system. Am I misunderstanding something? Or is there something I need to do to gain access to these kinds of bug fixes? Or do I just need to wait longer before the fix propagates to me?
<sphalerite> ison: the channel just hasn't updated yet
<vcunat> +1
<yegortimoshenko> ison: nix-build https://github.com/NixOS/nixpkgs/archive/release-17.09.tar.gz -A steam
<yegortimoshenko> result/bin/steam
<sphalerite> ^ that will fetch the not-yet-tested updated nixpkgs version (where the fix is included) and build the steam package from there
<ison[m]> Ok, I see. Thank you
<samueldr> betaboon: I can confirm that the image works on my raspberry pi 1, (when using a good known working sd card)
alexteves has joined #nixos
<samueldr> hmmmmmmmmmm, or I shared successs too soon
<samueldr> ah, there's no loglevel parameters
<samueldr> sorry, serial output parameter to the kernel
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dylex opened pull request #32740: slurm: 17.02.6 -> 17.02.9 for CVE-2017-15566 (master...slurm) https://git.io/vbKTp
NixOS_GitHub has left #nixos []
marsam has quit [(Ping timeout: 240 seconds)]
<samueldr> with HDMI plugged-in, I can finally confirm that yes, the armv6l image does boot to login prompt
zarel has joined #nixos
<sphalerite> samueldr: console=/dev/ttyS1?
<samueldr> something like that, but that was because I assumed the sd-image had it by default
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vbKkl
<NixOS_GitHub> nixpkgs/master 9846d74 Tim Steinbach: linux: 4.4.105 -> 4.4.106
<NixOS_GitHub> nixpkgs/master 5850e74 Tim Steinbach: linux: 4.9.69 -> 4.9.70
NixOS_GitHub has left #nixos []
<samueldr> sd-image-aarch64 has that: `console=ttyS0,115200n8` by default
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vbKk8
<NixOS_GitHub> nixpkgs/release-17.09 13c8775 Tim Steinbach: linux: 4.4.105 -> 4.4.106...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vbKkB
<NixOS_GitHub> nixpkgs/release-17.09 d14c63d Tim Steinbach: linux: 4.9.69 -> 4.9.70...
NixOS_GitHub has left #nixos []
d3vnu77 has quit [(Remote host closed the connection)]
d3vnu77 has joined #nixos
erictapen has joined #nixos
d3vnu77 has quit [(Remote host closed the connection)]
d3vnu77 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vbKkD
<NixOS_GitHub> nixpkgs/master a192ac5 Tim Steinbach: linux-copperhead: Fix hash
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vbKkS
<NixOS_GitHub> nixpkgs/release-17.09 32b6911 Tim Steinbach: linux-copperhead: Fix hash...
NixOS_GitHub has left #nixos []
nuncanada has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #32741: rambox: allow user to disable tooltips (master...rambox) https://git.io/vbKkQ
NixOS_GitHub has left #nixos []
<contrapumpkin> I was going to read the iohk site but their front page was so mesmerizing that I'm now just playing with it
sary has quit [(Ping timeout: 265 seconds)]
sary has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.9.1)]
balsoft[m] has joined #nixos
<sphalerite> How can I remove something from systemPackages? Specifically in this case I don't want xterm in systemPackages but I do want services.xserver.enable = true
<sphalerite> Is the only option copying the whole module and removing the xterm line?
ma27 has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] afldcr opened pull request #32742: gitea: 1.2.3 -> 1.3.2 (master...master) https://git.io/vbKIo
NixOS_GitHub has left #nixos []
<tilpner> sphalerite - services.xserver.desktopManager.xterm.enable = false;
<sphalerite> tilpner: no. The xserver module still puts xterm in systemPackages
<contrapumpkin> I wish we'd just kill systemPackages :)
ma27 has joined #nixos
<contrapumpkin> but I don't know of a good way, sorry :/
<tilpner> Oh, you're right, I have it too :/
<tilpner> Right way would be to edit xserver.nix then?
<sphalerite> Well I was hoping that wouldn't be necessary
<vcunat> packageOverrides defining xterm as null?
<vcunat> :-)
<sphalerite> Hah nice
* contrapumpkin weeps
<yegortimoshenko> and below
<sphalerite> Hm. Maybe rather than nix copy, we need nix send and nix recv
civodul has joined #nixos
<sphalerite> http://sprunge.us/GaYW so much to copy :(
ebzzry has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever> sphalerite: there is import and export
<clever> those manage whole closures
<sphalerite> clever: can they be manipulated, e.g. injecting signatures?
<clever> not sure
<sphalerite> Can they even contain signatures?
<clever> dump and restore are much simpler, and cant
<sphalerite> Yeah those don't contain any metadata at all, right?
<clever> yeah, dump is basically tar
<clever> it doesnt even have the name of the root node
<sphalerite> And work with the nar format
Arcaelyx has quit [(Ping timeout: 240 seconds)]
<clever> yep
<sphalerite> Iirc
Arcaelyx_ has joined #nixos
<sphalerite> So what's the format produced by --export and consumed by --import?
<sphalerite> Does it have a name?
<clever> import/export include the full storepath of each nar
<clever> but not the closure
<clever> so you have to -qR and pass the closure to export yourself
<clever> dump/restore ^^
<clever> export/import follow
<clever> ah
<clever> export includes the list of deps for each path, and the hash of the nar, along with its storepath
m0rphism has joined #nixos
<clever> but no signature
fendor has joined #nixos
mahalel_ has joined #nixos
oida has quit [(Ping timeout: 240 seconds)]
Oida has joined #nixos
phreedom has joined #nixos
endformationage has joined #nixos
drakonis has quit [(Ping timeout: 255 seconds)]
<betaboon> samueldr: sorry for not responding, something came up xD
<betaboon> samueldr: on the rpi1 did you have keyboard and screen connected while booting? I'm trying to boot without any of those, maybe that can be a source of problems (not likely i guess).
<betaboon> samueldr: what confuses me: the same sd-card works with raspbian so i would consider this sd-card to be good. all the shasums on the sd-card seem to match the shasums in the img (i checked by mounting the img and comparing shasums)
<samueldr> betaboon: serial console isn't in the kernel command line parameters on the image, if you see u-boot, and it says "starting kernel", you're okay
<samueldr> with hdmi I was able to assert that yes, I booted to prompt
sary has quit [(Ping timeout: 265 seconds)]
ebzzry has joined #nixos
drakonis has joined #nixos
cmiles74 has joined #nixos
aloiscochard has joined #nixos
aarvar has joined #nixos
fenedor has joined #nixos
jb55 has quit [(Ping timeout: 272 seconds)]
fendor has quit [(Ping timeout: 248 seconds)]
aloiscochard has quit [(Ping timeout: 240 seconds)]
cmiles74 has quit [(Quit: WeeChat 1.9.1)]
m0rphism has quit [(Quit: WeeChat 1.9.1)]
alexteves has quit [(Quit: My Mac Mini has gone to sleep. ZZZzzz…)]
python476 has joined #nixos
<lejonet> Hmm, to install virt-manager, don't I just have to specify virt-manager in environment.systemPackages? nixos-install is whining about undefined variable "virt-manager" even tho I can find the package in applications/virtualization/virt-manager in nixpkgs and I have "with pkgs;" infront of the list that I define systemPackages in
<lejonet> do I have to do virt_manager or something like that?
<samueldr> environment.systemPackages wants attribute names, which is sometimes different from the name of the package
<samueldr> looking here: https://nixos.org/nixos/packages.html#virt+manager
<lejonet> ah, so where wwould I find that?
<samueldr> the attribute name is `virtmanager`
<lejonet> I see, makes sense, - in anything that is a variable is usually not accepted
cmiles74 has joined #nixos
<samueldr> with nix, it is
<samueldr> see `virtmanager-qt`
<samueldr> I'm not sure why sometines applications have unneeded differences in the attribute name and the package name fields
<lejonet> interesting, but how would I find this attribute name, as in where should I look if I ever get into a similar situation?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vbKmp
<NixOS_GitHub> nixpkgs/master 4c8447b Vladimír Čunát: liferea: 1.12-rc3 -> 1.12.0
NixOS_GitHub has left #nixos []
<samueldr> in the source, the attributes are found in `<nixpkgs>/pkgs/top-level/all-packages.nix`
<samueldr> but it's unwiedly to use to find stuff
<lejonet> I see, that is where I was going to guess it was, but wondered if there might be an easier place to find em :P
<samueldr> on the CLI, `nix-env` can print attribute names when searching
<samueldr> e.g.: `nix-env -qaP '.*virt.?manager.*'
j has joined #nixos
<samueldr> there are other helpers that can helpe find stuff, like nox
<lejonet> Good to know
j is now known as Guest76527
spietz has quit [(Ping timeout: 248 seconds)]
<samueldr> I personally often default to looking at the packages page on nixos.org
<samueldr> nox is generally used to install locally for the user
<samueldr> but can still give the correct results
<samueldr> as a small bonus, it caches things for a small while, making the next searches faster
verite has joined #nixos
<lejonet> ah yeah, got hinted that nox was a good thing a while back, but haven't done that much with nixos lately, I've got one server deployed with nixops, but that is as far as my nixos fiddling has taken me so far :P
<samueldr> fiddle some more then! :)
<lejonet> I'm trying to :P
<lejonet> but time has been short :(
<lejonet> I still need to figure out why I can't login locally on that server that I deployed, just because I enabled sssd xD
<lejonet> ssh and all that works as intended but even root isn't allowed to login locally xD
Guest76527 has quit [(Remote host closed the connection)]
<lejonet> Kindof wanna solve that issue before I go bonkers and convert my entire server env :P
Acou_Bass has joined #nixos
alexteves has joined #nixos
zzamboni has joined #nixos
vcunat has quit [(Quit: Leaving.)]
verite has left #nixos ["Textual IRC Client: www.textualapp.com"]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
ebzzry has quit [(Ping timeout: 272 seconds)]
<sphalerite> uuuugh C++ is the worst
Gohla has quit [(Ping timeout: 248 seconds)]
clonne101_ has joined #nixos
jb55 has joined #nixos
verite has joined #nixos
<sphalerite> How do I check if there are any elements equal to a `string` in a `Strings`…
<sphalerite> (with `using std::string; using std::list; typedef list<string> Strings;`)
<clever> sphalerite: oh, one min
<clever> does that help?
<sphalerite> clever: actually what I'm trying to do is to port exactly that to nixUnstable haha
<clever> heh
<clever> that would explain why the problem felt familiar, lol
<sphalerite> actually maybe I can make it a Setting<StringSet> rather than a Setting<Strings> and it will magically work?
<clever> i dont remember how the new Setting stuff worked
<clever> and i left that patch laying around far far too long
<clever> coming up on 2 years old
<clever> and this even older variant
<sphalerite> I wish I could just do ```platform `elem` platforms```
romildo has joined #nixos
<sphalerite> yay, the StringSet thing seems to have workeD!
Gohla has joined #nixos
zarel has quit [(Quit: Leaving)]
<sphalerite> clever: will send a PR shortly if it works :)
<clever> +1
justbeingglad has joined #nixos
justbeingglad has left #nixos []
Itkovian has joined #nixos
clonne101_ has quit [(Quit: Leaving)]
<betaboon> samueldr: i will have to check tomorrow. no access to hdmi screen right now
betaboon has quit [(Quit: WeeChat 1.9.1)]
m0rphism has joined #nixos
hotfuzz has joined #nixos
fenedor has quit [(Read error: Connection reset by peer)]
hotfuzz_ has quit [(Ping timeout: 240 seconds)]
fendor has joined #nixos
fendor has quit [(Remote host closed the connection)]
fendor has joined #nixos
nallar has joined #nixos
Ross has quit [(Ping timeout: 264 seconds)]
nallar is now known as Ross
fendor has quit [(Remote host closed the connection)]
sigmundv has joined #nixos
jb55 has quit [(Ping timeout: 265 seconds)]
Arcaelyx_ has quit [(Quit: Textual IRC Client: www.textualapp.com)]
aarvar has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] woffs opened pull request #32744: pulsemixer: 1.3.0-license -> 1.4.0 (master...pulsemixer-1.4.0) https://git.io/vbKs6
NixOS_GitHub has left #nixos []
nallar has joined #nixos
Ross has quit [(Ping timeout: 264 seconds)]
nallar is now known as Ross
<sphalerite> is it possible to get feedback on remote builds?
<clever> sphalerite: the only feedback i know if, is that the normal stdout stream continues to work
<sphalerite> huh. I'm not seeing anything
<clever> there will be a long delay of nothing at the start, as it copies deps
<sphalerite> no it's finished copying the deps
<clever> check network activity and "ls -ltrha /nix/store" on the remote end, there should be hidden files
<sphalerite> (and I'm using nixUnstable so I got feedback for that bit)
<clever> can you gist the remote "ps -eH x"
<sphalerite> I ended up catting the output FD of the builder on the remote end, which works
<sphalerite> but surely there's a way to get the builder's output sent back to the initiating host?
magnetophon has joined #nixos
<clever> that should happen by default
<clever> but maybe something else has changed in unstable, i havent given it root yet
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbKGV
<NixOS_GitHub> nixpkgs/master 074a43f gnidorah: rambox: allow user to disable tooltips
<NixOS_GitHub> nixpkgs/master f6dd6a4 Orivej Desh: Merge pull request #32741 from gnidorah/rambox...
NixOS_GitHub has left #nixos []
* seequ has now unified his configs between devices. Yay.
* sphalerite needs to do that
<seequ> It's great, as I can now just scp new configs in from any machine.
<sphalerite> eww
<sphalerite> git!
<seequ> They're gitted.
<sphalerite> then why scp?
<seequ> Because I haven't bothered wit... huh, I can just git push them.
<clever> push wont like pushing ti working directories
<clever> pull is fine
zzamboni has quit [(Quit: Leaving.)]
Judson has joined #nixos
<seequ> Hm. I usually prefer pushing. And then scp is simpler.
Judson is now known as Guest7754
johnw has quit [(Quit: ZNC - http://znc.in)]
<sphalerite> eeeeeh okay :p
MocroBorsato has joined #nixos
<woffs> ssh machine "cd dir && git pull" :-)
<sphalerite> clone in this case, no?
<seequ> Hah. Let's switch that to nixos hype; couldn't have a unified config on debian!
<MocroBorsato> hello
<woffs> sphalerite: haven't read the conversation in detail ;)
<MocroBorsato> does anyone know how you can have wayland with gnome?
jonas_ has joined #nixos
jonas_ is now known as Guest46109
Guest46109 has quit [(Client Quit)]
jnugh has joined #nixos
MocroBorsato has quit [(Client Quit)]
fendor has joined #nixos
ottidmes has joined #nixos
<seequ> Also, whoever implemented services.xserver.dpi, thanks!
aloiscochard has joined #nixos
JosW has joined #nixos
<ottidmes> Is it possible to modify things defined in NixOS through my config instead of actually modifying my local nixpkgs checkout? I tried e.g. systemd.units."getty@.service".text = builtins.replaceStrings [" --noclear"] [""] config.systemd.units."getty@.service".text; But unsurprisingly this causes infinite recursion. Is there a way to achieve this, our is there no way around having to assign the text directly (not
<ottidmes> using the old value)?
MocroBorsato has joined #nixos
<sphalerite> ottidmes: not really. Your best bet is (unfortunately) copying the default value and making the change yourself :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbKne
<NixOS_GitHub> nixpkgs/master bb02a14 Frank Doepper: pulsemixer: 1.3.0-license -> 1.4.0
<NixOS_GitHub> nixpkgs/master f0a8a4e Orivej Desh: Merge pull request #32744 from woffs/pulsemixer-1.4.0...
NixOS_GitHub has left #nixos []
<ottidmes> sphalerite: I expected as much, otherwise I probably would have seen it before, but I imagine this would have made ordering imports and such very tricky and more expensive
<seequ> Btw, what's the policy on PRing alpha/beta software to nixpkgs?
<sphalerite> ottidmes: yeah. I feel like generally the module system isn't really an ideal solution for the problem
jnugh has quit [(Remote host closed the connection)]
MocroBorsato has quit [(Ping timeout: 260 seconds)]
nickdshsadhkas[m has joined #nixos
zzamboni has joined #nixos
JosW has quit [(Quit: Konversation terminated!)]
fendor has quit [(Remote host closed the connection)]
fendor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32557: zynaddsubfx: 3.02 -> 3.03 (master...zynaddsubfx) https://git.io/vbRFc
NixOS_GitHub has left #nixos []
jmc_fr has quit [(Ping timeout: 248 seconds)]
<yegortimoshenko> hi, i want to package electron, but i can't realistically build it on any hardware that i own. can someone setup a hydra jobset for me?
Mateon3 has joined #nixos
<sphalerite> yegortimoshenko: what's the limitation?
vidbina has quit [(Ping timeout: 265 seconds)]
<sphalerite> yegortimoshenko: because chances are that won't reduce your latency
<yegortimoshenko> sphalerite: its build time is roughly chromium build time + nodejs build time * 2
Mateon1 has quit [(Ping timeout: 265 seconds)]
Mateon3 is now known as Mateon1
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbKnb
<NixOS_GitHub> nixpkgs/master 0b8ec31 Bart Brouns: yoshimi: 1.5.4.1 -> 1.5.5
<NixOS_GitHub> nixpkgs/master 6dac265 Orivej Desh: Merge pull request #32606 from magnetophon/yoshimi...
NixOS_GitHub has left #nixos []
<yegortimoshenko> sphalerite: it also needs at least 8GB RAM and 25GB disk space to build
<sphalerite> yeah chances are a hydra jobset won't really improve the build time by a useful amount. What makes hydra able to build all of nixpkgs fairly fast is the number of machines, but only one machine will be able to build electron at a time
<yegortimoshenko> sphalerite: i see
<sphalerite> You might be better off using an EC2 instance or something
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] davidak opened pull request #32745: [WIP] elementary-xfce-icon-theme: init at 2017-11-28 (master...elementary-xfce) https://git.io/vbKcR
NixOS_GitHub has left #nixos []
<yegortimoshenko> yeah, i have some gcp credit. by the way, is there a nixos gcp image? i couldn't find one
<yegortimoshenko> i know i probably could use nixops
<sphalerite> no, nixops won't help you magically get nixos on a machine unfortunately
zzamboni has quit [(Quit: Leaving.)]
<sphalerite> I don't know if there's a GCP image, but you don't necessarily need a nixos machine, you can just install nix on debian or whatever
<yegortimoshenko> sphalerite: i've previously deployed to gcp via nixops and it is almost certainly results in nixos running on a gcp instance
<yegortimoshenko> maybe via nixos-assimilate, i don't know details
<sphalerite> ah right nixops specifically supports gcp
<sphalerite> then yeah there must be a GCP image, or a way to build one :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbKcD
<NixOS_GitHub> nixpkgs/master 2d3700e Bart Brouns: rkrlv2: b1.0 -> b2.0
<NixOS_GitHub> nixpkgs/master a1b5785 Orivej Desh: Merge pull request #32633 from magnetophon/rkrlv2...
NixOS_GitHub has left #nixos []
<joepie91> yegortimoshenko: hmm, isn't electron already in nixpkgs?
cmiles74 has quit [(Quit: WeeChat 1.9.1)]
<yegortimoshenko> joepie91: patchelf'd
magnetophon has quit [(Ping timeout: 248 seconds)]
<joepie91> right
<joepie91> you're looking for a source build instead...?
<yegortimoshenko> joepie91: yes
<joepie91> any particular reason?
* sphalerite has just started a big EC2 instance :D
magnetophon has joined #nixos
<yegortimoshenko> for the same reasons nixos is a source-based distribution
<yegortimoshenko> patchelf'd builds are hard to maintain, architecture-specific, can't be patched
Isorkin has quit [(Read error: Connection reset by peer)]
<pie_> sometimes its annoying when nix decides it needs to rebuild an env...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32740: slurm: 17.02.6 -> 17.02.9 for CVE-2017-15566 (master...slurm) https://git.io/vbKTp
NixOS_GitHub has left #nixos []
Isorkin has joined #nixos
<verite> New to Nix and the idea of package managers in general (ie: I'm used to package managers just blowing up my machine upon installation). Just installed Nix on my Mac. Starting with the Nix manual and the Nix pills (blog series from 2014 http://lethalman.blogspot.it/2014/07/nix-pill-1-why-you-should-give-it-try.html). Are there any other good resources for Nix beginners using Mac's?
<pie_> well we have a wiki again now....i think?
<pie_> ##nix-darwin ?
<yegortimoshenko> pie_: nix-darwin is not very active, and i think is mostly for LnL's declarative configuration tooling
cmiles74 has joined #nixos
<pie_> ah.
<pie_> i wouldnt know
<LnL> we mostly discuss darwin specific issues there
jb55 has joined #nixos
verite has quit [(Quit: Live long and prosper.)]
verite has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #32746: haskellPackages.bustle: build icons and metadata (master...bustle) https://git.io/vbKCj
NixOS_GitHub has left #nixos []
<LnL> verite: for most things there's not really a difference, the nix pills are a great starting point
<LnL> verite: hey have been moved to a separate project and updated a while back https://nixos.org/nixos/nix-pills/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbKWT
<NixOS_GitHub> nixpkgs/master f856f3b Jan Tojnar: libpcap: increase maximum snapshot length for dbus...
<NixOS_GitHub> nixpkgs/master ee03ae2 Orivej Desh: Merge pull request #32739 from jtojnar/libpcap-nolimit...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbKWt
<NixOS_GitHub> nixpkgs/master 15c4b78 Patrick Lambein: neovim: add viAlias argument...
<NixOS_GitHub> nixpkgs/master 8dc107b Orivej Desh: Merge pull request #32738 from LambdaP/neovim-viAlias-option...
NixOS_GitHub has left #nixos []
joelpet has quit [(Remote host closed the connection)]
drakonis has quit [(Read error: Connection reset by peer)]
jacob_ has quit [(Quit: Lost terminal)]
<verite> Thank you, LnL. I was wondering how much 2014 instructions might have changed in 3 years.
joelpet has joined #nixos
joelpet has quit [(Remote host closed the connection)]
<seequ> Asking again from earlier: what's the policy on PRing alpha/beta software to nixpkgs?
<seequ> Is it ok to PR something that will change in a day or two?
<yegortimoshenko> seequ: it's usually frowned upon, releases are heavily preferred
zzamboni has joined #nixos
<LnL> depends, but channel updates can take a couple of days to a week
hiratara has quit [(Ping timeout: 265 seconds)]
cmiles74 has quit [(Quit: WeeChat 1.9.1)]
<seequ> Good to know. I'll wait for the first stablish release then.
grantwu has joined #nixos
<grantwu> Hi, I'm kind of in a bad spot
<grantwu> Wait, hold in...
<grantwu> Hold on...
<grantwu> Nvm, ZFS issue
hiratara has joined #nixos
joelpet has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
bobvanderlinden has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
fendor has quit [(Remote host closed the connection)]
fendor has joined #nixos
alexteves has quit [(Quit: My Mac Mini has gone to sleep. ZZZzzz…)]
fendor has quit [(Remote host closed the connection)]
python476 has quit [(Remote host closed the connection)]
fendor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #32747: ocamlPackages.sexplib: 0.9.3 -> 0.10.0 (master...ocaml-sexplib-0.10.0) https://git.io/vbKlO
NixOS_GitHub has left #nixos []
* sphalerite uploaded an image: 2017-12-16-220258_3834x2108_scrot.png (1209KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/KmWggQYbaeNXPawaHvlguWZY>
<sphalerite> clever: ^ :D
grantwu has left #nixos ["WeeChat 2.0"]
aarvar has joined #nixos
<sphalerite> Hmm needs more max-jobs
<sphalerite> and more build users
vidbina has joined #nixos
<infinisil> whew, i put all my home-manager config in my system config, now I can build both my server's and local machine's nixos config and their home-manager config with a single command :D
aarvar has quit [(Ping timeout: 265 seconds)]
thblt has quit [(Ping timeout: 265 seconds)]
fendor has quit [(Remote host closed the connection)]
joelpet has quit [(Remote host closed the connection)]
hiratara has quit [(Quit: ZNC - http://znc.in)]
<sphalerite> yegortimoshenko: I'm building Chromium on an ec2 m4.16xlarge to see how long it takes, I'll let you know
<sphalerite> (with the store on a tmpfs for all the fasts)
<yegortimoshenko> sphalerite: thanks
joelpet has joined #nixos
joelpet has quit [(Changing host)]
joelpet has joined #nixos
hiratara has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbK8A
<NixOS_GitHub> nixpkgs/master 32ac626 Vincent Laporte: ocamlPackages.sexplib: 0.9.3 -> 0.10.0
<NixOS_GitHub> nixpkgs/master b33af2f Orivej Desh: Merge pull request #32747 from vbgl/ocaml-sexplib-0.10.0...
NixOS_GitHub has left #nixos []
<gchristensen> how do I fix "error: cannot start daemon worker: setting synchronous mode: unable to open database file" again?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32736: pkgs.emacs25: backport patch to fix vfork issue (master...emacs-vfork) https://git.io/vbo5E
NixOS_GitHub has left #nixos []
sigmundv has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32727: riot-web: 0.13.1 -> 0.13.3 (master...riot-web-0.13.3) https://git.io/vboRd
NixOS_GitHub has left #nixos []
<sphalerite> gchristensen: are you out of space?
<gchristensen> I shouldn't be: /dev/disk/by-label/nixos 110G 75G 30G 72% /
yegortimoshenko has quit [(Ping timeout: 256 seconds)]
<symphorien> is it possible to do an impure nix build having access to internet ? gradle doesn't seem to be able to build anything without internet
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbK4R
<NixOS_GitHub> nixpkgs/master f06c031 Yegor Timoshenko: ccd2iso: init at 0.3
<NixOS_GitHub> nixpkgs/master 2f44fbc Orivej Desh: Merge pull request #32696 from yegortimoshenko/ccd2iso/init...
NixOS_GitHub has left #nixos []
<sphalerite> symphorien: yes, but you have to know the hash of the output
<symphorien> let's hope the build is deterministic then
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbK42
<NixOS_GitHub> nixpkgs/master 7eabf44 Yegor Timoshenko: qrencode: 3.4.4 -> 4.0.0
<NixOS_GitHub> nixpkgs/master 7751507 Orivej Desh: Merge pull request #32691 from yegortimoshenko/qrencode/4.0.0...
NixOS_GitHub has left #nixos []
<gchristensen> sphalerite: any other thoughts? :)
<LnL> sounds kind of familiar
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbK46
<NixOS_GitHub> nixpkgs/master 7d3eb47 Yegor Timoshenko: garcon: fix issues 10967, 12700...
<NixOS_GitHub> nixpkgs/master 6d6ca9c Orivej Desh: Merge pull request #32689 from yegortimoshenko/garcon/fixes...
NixOS_GitHub has left #nixos []
<LnL> that isn't the nix-store --serve --write error right?
<sphalerite> yeah sounds familiar to me too but I can't put my finger on it
<symphorien> well I did that with a bogus hash, but I still get a name or service not known error
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32674: texlive: fix use of xdvi: add hashes and don't orphan it (master...fix/xdvi-hash) https://git.io/vbV5e
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 2 new commits to master: https://git.io/vbKBf
<NixOS_GitHub> nixpkgs/master fcffee2 Will Dietz: texlive: fix use of xdvi: add hashes and don't orphan it...
<NixOS_GitHub> nixpkgs/master 24a85f9 Orivej Desh: Merge pull request #32674 from dtzWill/fix/xdvi-hash...
NixOS_GitHub has left #nixos []
sigmundv__ has joined #nixos
yegortimoshenko has joined #nixos
<sphalerite> ```
<sphalerite> nix-build -E 'with import <nixpkgs> {}; runCommand "test" { outputHashAlgo = "sha256"; outputHash = "0000000000000000000000000000000000000000000000000000"; buildInputs = [ curl cacert ]; } "curl http://sphalerite.org"'
<sphalerite> ```
<sphalerite> symphorien: ^ works for me
<sphalerite> it resolves sphalerite.org successfully
<symphorien> ah sorry made a typo ^^"
<sphalerite> of course it doesn't produce the output path, but yeah, I suspect you're doing something wrong :p
<sphalerite> lol
tmaekawa has joined #nixos
sigmundv has quit [(Ping timeout: 265 seconds)]
romildo has quit [(Quit: Leaving)]
romildo has joined #nixos
romildo has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32662: pythonPackages.XlsxWriter: init at 1.0.2 (master...add-xlsxwriter) https://git.io/vbVJs
NixOS_GitHub has left #nixos []
joelpet has quit [(Remote host closed the connection)]
Danishman has joined #nixos
joelpet has joined #nixos
joelpet has quit [(Changing host)]
joelpet has joined #nixos
<gchristensen> solution to my problem: delete 1G of stuff, I guess at 70% full it _is_ "full"??
obadz has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32625: minikube: fix wrong path for localkube (master...minikube) https://git.io/vbggY
NixOS_GitHub has left #nixos []
obadz has joined #nixos
<sphalerite> computers work in mysterious ways…
<samueldr> I remember reading about something similar, I think it was with btrfs
<sphalerite> I also need to work out why gnutls builds fine on my chromebook but not on Scaleway's C1 servers
romildo has joined #nixos
joelpet has quit [(Remote host closed the connection)]
<samueldr> IIRC, ext4 has a soft limit (configurable) too
joelpet has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sphalerite> yegortimoshenko: it took 44min
<sphalerite> also…
<sphalerite> error: derivation '/nix/store/xxrrk2ls8b8jxs7f2hpy05pq5wqz8h9a-chromium-63.0.3239.84.drv' may not be deterministic: output '/nix/store/vk8lvg8v2q3x0yai3wypjilxhhfqa65s-chromium-63.0.3239.84' differs
<sphalerite> :(
<LnL> gchristensen: inodes?
jmc_fr has joined #nixos
<yegortimoshenko> sphalerite: i see, thanks
<gchristensen> OH!
ivanivan has joined #nixos
ivanivan has quit [(Client Quit)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
ma27 has quit [(Ping timeout: 240 seconds)]
<jmc_fr> now installing physically (after successful test in VBox) : however it fails with "Failed to check file system type of "/boot": no such fileor directory ... yet I followed carefully the manual
<gchristensen> probably inodes, LnL :)
alexteves has joined #nixos
phreedom has quit [(Ping timeout: 240 seconds)]
srdqty has quit [(Quit: WeeChat 1.9.1)]
romildo has quit [(Quit: Leaving)]
<samueldr> jmc_fr: installing using bios boot, legacy on uefi or using uefi? Which bootloader?
dan_b has joined #nixos
<samueldr> (using virtualbox, you most probably installed for bios boot, on real hardware using UEFI there will be minor differences)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbK0v
<NixOS_GitHub> nixpkgs/master c9f7197 Tuomas Tynkkynen: make-disk-image.nix: Remove write permissions from /nix/store...
NixOS_GitHub has left #nixos []
drakonis has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vbK0k
<NixOS_GitHub> nixpkgs/release-17.09 a8cbb19 Tuomas Tynkkynen: make-disk-image.nix: Remove write permissions from /nix/store...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32726: WIP! dropbox: fix IOError (master...fix/dropbox) https://git.io/vbo4V
NixOS_GitHub has left #nixos []
romildo has joined #nixos
<jmc_fr> samueldr: new install as dualboot with windows 8 (? - I dunno anything on windows, but must keep it). In my config I have boot.loader.systemd-boot.enable = true, but I have not installed grub, I thought nixos-install would do it
<samueldr> then you're booting with UEFI (good to know)
sigmundv__ has quit [(Ping timeout: 272 seconds)]
<samueldr> grub won't be installed if you're using systemd-boot
<jmc_fr> I have checked that there is a bios (version )
<jmc_fr> I have checked that there is a bios (version 2012)
<jmc_fr> OK so I do not need grub.
<sphalerite> clever: looks like the logs for remote builds don't even get saved in /nix/var/log on the remote build host :(
<samueldr> when booting using UEFI, the bootloader is installed in what is called the ESP (EFI System Partition)
<samueldr> nixos assumes this partition will be mounted at /boot/ for UEFI booting
<samueldr> you will need to mount it at /mnt/boot for the installation process
<jmc_fr> OK, trying this
romildo has quit [(Ping timeout: 265 seconds)]
<samueldr> (if windows 8 came installed on the computer, I do not know for sure how the ESP is formatted or configured, I've not kept windows around for years)
erlandsona has joined #nixos
moet has joined #nixos
phreedom has joined #nixos
<erlandsona> Hey y'all what's the latest nixos lts channel at the moment? I'm currently using nix-unstable but I just tried upgrading after a few months and it broke a bunch of stuff... I wanted to try a less drastic upgrade to see how that worked.
<sphalerite> erlandsona: there is no LTS
<sphalerite> erlandsona: what's broken specifically?
jmc_fr has quit [(Quit: ERC Version 5.3 (IRC client for Emacs))]
<infinisil> Well there's 17.09, which is more stable than nixos-unstable
<erlandsona> Ardour wouldn't build :shrug:
jmc_fr has joined #nixos
<sphalerite> infinisil: it's not LTS though
<erlandsona> Rather is v18 out? or where do I find the channels list again?
<sphalerite> erlandsona: which version did you try to upgrade from and what broke?
DeaDSouL has quit [(Read error: Connection reset by peer)]
<erlandsona> It's still 17.09?
<sphalerite> erlandsona: no, the stable version numbers are based on dates like ubuntu's. 18.03 will be out in (or shortly after) March 2017
<sphalerite> 2018z
<sphalerite> Yes, 17.09 is the current stable version
<erlandsona> Ah alright, sounds good. I'll give 17.09 a shot again then.
<sphalerite> yegortimoshenko: I'm also building webkitgtk on the machine to see how long that takes btw
<sphalerite> erlandsona: I suggest reading the release notes for all the versions that came out since you last used it. They should cover all the breaking changes, anything else that breaks is likely to be a bug
pie_ has quit [(Ping timeout: 256 seconds)]
<orivej_> erlandsona: ardour builds in the current master, but it was broken for about 20 hours, and the last channel update must have happened at that time
orivej_ is now known as orivej
dan_b has quit [(Ping timeout: 272 seconds)]
iyzsong has joined #nixos
pie_ has joined #nixos
<erlandsona> orive_j: thanks! Maybe I'll try it again in a bit...
joelpet has quit [(Remote host closed the connection)]
jb55 has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Remote host closed the connection)]
joelpet has joined #nixos
joelpet has quit [(Changing host)]
joelpet has joined #nixos
erictapen has joined #nixos