<clever>
fn+f4 will also cycle thru the keyboard backlight levels
<gchristensen>
oh one of those
<clever>
f1&f4 are clearly marked on the keyboard
<gammarray>
clever: i typically use tap to click, but just tested setting one finger taps to "no action" and now taps are disabled, but clicks still work
<ottidmes>
hmm, after updating to 2.0 from 2.0pre and using nix.nixServe instead of doing those set there myself, I am getting the error message: nix-daemon[1543]: error: executing 'nix-store --serve --write' on 'nix-ssh@server': No such file or directory
<clever>
interesting!, it claims to have a 2 axis "wheel" but only 1 axis exists
<Acou_Bass>
ahhh crazy
<clever>
the buttons are also not fully labeled
<jbetz>
http://lpaste.net/363172 <-- haskell question: how do I tell ghc to trust a package in a nix derivation?
<clever>
in total, it has 5 buttons, 2 switches, and a 1 axis wheel
<clever>
the power button actually registers as a key over HID, and will turn off the headset if held
<Acou_Bass>
this device has all manner of inputs
<clever>
jbetz: are you using ghcWithPackages?
<jbetz>
lambdabot uses safe haskell, so I need to flag all of it package dependencies as safe
<jbetz>
clever: no, just using what I have in that paste
<clever>
jbetz: ah, thats the haskell mkDerivation, that one should also work
<clever>
jbetz: what is the actual error?
<clever>
jbetz: and have you tried cabal2nix?
<clever>
ottidmes: what happens if you `ssh nix-ssh@server nix-store --help` ?
<abathur>
is there a way to use the service.* model to configure and run services in association with a nix-shell, or do you have to set them up manually/with shellHook? Or does the phrasing of this question suggest I'm barking up the wrong tree in the first place? :)
<mkaito>
would anyone be able to tell me why the script defined in `services.postgresql.initialScript` would not be running?
<clever>
abathur: not really
BlessJah has joined #nixos
<jbetz>
clever: error message is 'mueval-core: GhcException "cannot satisfy -trust lambdabot-trusted\n (use -v for more information)"'
<clever>
jbetz: i dont think that has to do with nix, thats the trust system within ghc for restricted io modes
<Acou_Bass>
check my xinput --list --long :D crazy
<mkaito>
gchristensen: syntax error. I'm too tired lol
<gchristensen>
=)
<jbetz>
clever: hmm, okay. so that can't be configured by nix?
<gammarray>
clever: have you tried adding `services/xserver.synaptics.tapButtons = false;` to your nix config?
<clever>
jbetz: if you check ghc-pkg list, is lambdabot-trusted available?
<clever>
gammarray: yeah, and several variants
<clever>
gammarray: but it just works when using the xfce gui
<abathur>
clever: ty
<jbetz>
clever: it's not listed
<clever>
jbetz: check the cabal file for lambdabot, does it have a seperate -trusted thing you have to enable?
gammarray has left #nixos ["Leaving"]
xeji has joined #nixos
TheMente has quit [Quit: Leaving]
<jbetz>
clever: ha, adding lambdabot-trusted to my build-depends and now it's working :o
<jbetz>
*buildDepends
<jbetz>
maybe it's automatically trusted when it's explicitly specified as a build dependency?
<clever>
no, it depends on 2 packages, lambdabot, and lambdabot-trusted
<abathur>
clever: is there a better pattern/example I should crib from to set up something complex-ish that depends on multiple running services configured in a specific way?
<clever>
jbetz: and the trust actually allows "unsafe" haskell to run in restricted contexts when you said no unsafe stuff
<jwynn6>
heyall, trying to install on zfs and getting that i need to set netwoking.hostid. I see some old issues about this but I'm not sure what to do to fix it
xeji has quit [Quit: WeeChat 2.0]
<jbetz>
clever: weird, none of the lambdabot docs mentioned lambdabot-trusted
<clever>
ottidmes: the config forces it to always run nix-store --serve, so you can never change the params or gain a shell
<clever>
and it lacks --write, so i think you are also limited to read-only store access
<ottidmes>
clever: Yeah, I am using that config, did not know it existed at first, and then I had it working, but with that module you linked, I no longer seems to work, so I am now trying to revert to figure out what is going wrong here
<ottidmes>
clever: That could be it, I am not that familiar with ForceCommand, but considering it allows giving arguments, you mean it only allows nix-store --serve without the --write
<clever>
yeah
<clever>
it will entirely ignore the command that the ssh client asks for
<clever>
which is why my --help trick didnt work
MP2E has joined #nixos
<ottidmes>
clever: Unfortunately it seems not to work with --write either. I will just remove the ForceCommand, then I will be sure it has to do with that and nothing else
<ottidmes>
Without it, it still gives the error
<clever>
also, which version of nix is the other end using?
<ottidmes>
clever: Both are running 2.0
<ottidmes>
clever: I removed the whole Match User block and it still errors, while I can login with root myself just fine, so as root: ssh nix-ssh@server works
katona has quit [Quit: Connection closed for inactivity]
<ottidmes>
the bit "No such file or directory" seems to be a big clue
babyflakes has quit [Quit: Connection closed for inactivity]
<ottidmes>
clever: ssh nix-ssh@server nix-store --serve --write and --help works fine as well
<clever>
dont know then, but i should probably play with that on my own machines
<clever>
ive been a bit weary of enabling nix-serve in combination with some secrets in my store
justan0theruser has joined #nixos
justan0theruser has quit [Client Quit]
justan0theruser has joined #nixos
<ottidmes>
clever: The frustrating thing is that I finally had it working, but somehow upgrading seems to either have broken it, maybe I should just downgrade
justanotheruser has quit [Ping timeout: 260 seconds]
<ottidmes>
clever: Is there some hook that is called when something is about to be added to the nix store, would be nice if there was, then you could create a blacklist of things you definitely do not want there by accident, like private keys
<clever>
not that i know of
jbetz has left #nixos [#nixos]
randallb has joined #nixos
<ottidmes>
clever: If dry-build shows those paths as well, you could write a wrapper for nixos-rebuild that would check for that
<ottidmes>
clever: I get the same error with root, so nix-daemon somehow does not have access to nix-* binaries, I will downgrade to 2.0pre, maybe being on 17.09 with 2.0 is problematic
Arcaelyx has joined #nixos
pxc has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<ottidmes>
clever: Nope, same error with 2.0pre (which is fortunate, although I would not mind having it solve my problem)
pxc has joined #nixos
aarvar has quit [Ping timeout: 265 seconds]
<ottidmes>
clever: The only thing I can still think of is that some regression happened after updating, I reverted my config, but I still get the error
sconybeare has joined #nixos
pxc1 has joined #nixos
<ottidmes>
The error happens in nix-daemon, and my tests all work with SSH, so it seems unrelated to SSH, it is also unrelated to user permissions
<elvishjerricco>
What is "context" in Hydra's GitHub status stanzas?
raynold has quit [Quit: Connection closed for inactivity]
pxc1 has quit [Ping timeout: 252 seconds]
<sconybeare>
Can anyone help with the following: installing chromium on my (nixos 17.09) laptop via "nix-env -iA nixos.chromium" seems to ignore binary caches, opting to build from source instead. Other packages use the binary caches just fine.
<NixOS_GitHub>
[nixpkgs] yegortimoshenko created yegortimoshenko-patch-1 (+1 new commit): https://git.io/vA5T2
<NixOS_GitHub>
nixpkgs/yegortimoshenko-patch-1 5905fe0 Yegor Timoshenko: tt-rss: use proper user and package for MySQL
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #36367: tt-rss: use proper user and package for MySQL (master...yegortimoshenko-patch-1) https://git.io/vA5T1
<coconnor>
sconybeare: does your nixos config set any nixpkgs.config options for chromium?
<sconybeare>
coconnor: I don't think so. I initially suspected that certain python overrides could be causing the problem, so I added the line "chromium = super.chromium" to my packageOverrides definition. I've just confirmed that there are no other occurrances of the string "chromium" anywhere in my .config/nixpkgs directory.
sconybeare has quit [Read error: Connection reset by peer]
schoppenhauer has quit [Ping timeout: 240 seconds]
schoppenhauer has joined #nixos
grenade has quit [Ping timeout: 240 seconds]
chrios_ has joined #nixos
sconybeare has joined #nixos
chrios has quit [Ping timeout: 260 seconds]
<cbarrett>
I'm going to try and finally understand what's supposed to go in nix-defexpr x_x
hiroshi- has joined #nixos
grenade has joined #nixos
hiroshi has quit [Ping timeout: 260 seconds]
hiroshi- is now known as hiroshi
<eacameron>
When I reboot my NixOS DigitalOcean droplet it spends 1.5 minutes trying to start a service named something like esn01 network or somesuch.
<eacameron>
What's going on there? How can I fix this to make it bootup fast?
orivej has quit [Ping timeout: 256 seconds]
<myskran>
does the config specify an interface like that?
<abathur>
eacameron: I think I recall some annoying stalls like that while I was first getting set up when, for reasons I don't grok, one of my ethernet ports wasn't properly activating
<clever>
and this one lists all "packages" installed in the current generation
<clever>
nix-channel treats each channel as a seperate package that can be installed within that profile
<clever>
and ~/.nix-defexpr/channels/ is just a symlink to that profile
<clever>
and ~/.nix-channels is just a text file, that contains the URL's nix-channel will download
<clever>
in the example .nix-defexpr/test/foo/default.nix above, and any custom ones you make, you just need to ensure the default.nix returns a set of packages
<clever>
how it gets nixpkgs, and if its even using nixpkgs, is up to you
<cbarrett>
Neat!!
<cbarrett>
Thank you
<cbarrett>
That's so clear
<clever>
it could return an entirely custom set of packages via: with import <nixpkgs> {}; { foo = callPackage ./foo.nix; }
pxc1 has quit [Ping timeout: 256 seconds]
<clever>
or it could builtins.fetchurl a revision from github
acertain has quit [Ping timeout: 256 seconds]
muzzy__ has joined #nixos
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
<eacameron>
Ok it's sys-subsystem-net-devices-enp0s3 that tries to start for 1.5 minutes
<eacameron>
I don't know what that is.
<abathur>
enp0s3 looks like an ethernet interface, which is why I asked if your configs specify such an interface
loonquawl has joined #nixos
gillmanash has joined #nixos
<eacameron>
abathur: Ah, I don't think they do. I'm just using whatever nixops sets up
<abathur>
for example, my config specifies networking.interfaces.enp6s0.ip4 = ...
<abathur>
still getting my sea legs, I just recall seeing similar stalls early on when my config was specifying an interface that wasn't actually available
<abathur>
iirc it was waiting for a timeout to see if the interface turned up so that it could apply the specified config
<abathur>
does the droplet eventually boot to something you can use?
<vaibhavsagar>
is every package that depends on haskell-src-meta broken?
<vaibhavsagar>
on 17.09 I mean
<elvishjerricco>
What's the easiest way to serve Haddocks in NixOS as a systemd service?
<eacameron>
abathur: Yes it does eventually boot up and have networking
<elvishjerricco>
Hm. That generates docs with `file://` links
<eacameron>
How can I look at the configuration.nix for a nixops machine?
<elvishjerricco>
eacameron: I don't think that sits on the machine anywhere. It just builds the `system` and copies the closure up. The nixops state remembers a path to the file that was used to make the system though
<eacameron>
elvishjerricco: That's what I thought, but I was wondering if there was an easy way to "look" at that config.
<elvishjerricco>
eacameron: You can always look at the closure of the system :P `nix-store -qR /nix/var/nix/profiles/system` on the machine
<eacameron>
elvishjerricco: That might work if I can somehow trace it to a root config?
<elvishjerricco>
eacameron: Well the `configuration.nix` used won't be in the closure
<elvishjerricco>
it won't be on the machine at all
<eacameron>
elvishjerricco: :(
<elvishjerricco>
eacameron: What's the actual problem?
<elvishjerricco>
dalaing: You said something about hosting haddocks on NixOS once, didn't you?
<eacameron>
elvishjerricco: I want to see why a particular systemd unit is part of bootup which apparently has to do with my network config on this machine?
<eacameron>
It's failing.
<elvishjerricco>
eacameron: But why don't you already know where the `configuration.nix` is?
<eacameron>
elvishjerricco: For my nixops server?
<elvishjerricco>
Yea
<dalaing>
I use the standard nix/haskell stuff to generate haddocks and a hoogle database
<elvishjerricco>
dalaing: Just `ghcWithHoogle`?
<dalaing>
and I've got support for getting to that in my spacemacs config
<dalaing>
more or less
<eacameron>
elvishjerricco: I assume it's my nixops config, but it must be pulling in some defaults or something elsewhere and I don't know where to look.
<elvishjerricco>
dalaing: Hm. That's giving me haddocks with links to `file://`, which doesn't work with `hoogle server`
<dalaing>
are you using firefox?
<elvishjerricco>
dalaing: Yea. But the point is to try to publish these docs on a public server
<dalaing>
you can ignore my rambling prior to posting that link :)
<eacameron>
elvishjerricco: enp0s3 is apparently the "old" name? But I never specified a name for the network devices so I don't know why it's trying to use this. I built a brand new server on 17.09 that has this problem too.
<elvishjerricco>
dalaing: Looks like I gotta bump hoogle then?
<tnks>
so... do the "netrc-file" field in nix.conf even work?
kaychaks has joined #nixos
<tnks>
man... I'll go in the C code... but I wish I didn't have to to answer questions like this.
<eacameron>
elvishjerricco: I think that commit was merged recently (Jan 17th or so)
<eacameron>
Ah and the latest tag is from Oct 2017
<eacameron>
:/
<kaychaks>
am behind a corporate proxy which pushes a MITM certificate and hence `nix-channel --update` is failing with error `warning: unable to download 'https://nixos.org/channels/nixpkgs-unstable': Peer certificate cannot be authenticated with given CA certificates (60);`
zzamboni has joined #nixos
hamishmack has joined #nixos
<kaychaks>
Is there someway I can escape the certificate validation ?
<dalaing>
elvishjerricco: looks like it
babyflakes has joined #nixos
<eacameron>
So my next question: How do you fix this with *existing* deployments?
<eacameron>
I'm assuming nixops doesn't change network config on the fly
* elvishjerricco
knows very little about networking
<elvishjerricco>
eacameron: but why would you assume that?
<eacameron>
It just seems...dangerous?
<eacameron>
I'll try upgrading nixops alone for my staging server.
<tnks>
okay, I don't think nix.conf#netrc-file obsoletes Nixpkgs's usage of NIX_CURL_FLAGS.
alloo has joined #nixos
<alloo>
hi, could someone enlighten me about why the wiki was shut down?
<eacameron>
elvishjerricco: How do I use a master build of nixops?
<fearlessKim[m]>
alloo: spam I think
<fearlessKim[m]>
eacameron: you run ./dev-shell
<eacameron>
fearlessKim[m]: I mean from hydra
<elvishjerricco>
eacameron: No idea :P `nixops.overrideAttrs (old: { src = getNewSrc; })` usually works for most things
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<fearlessKim[m]>
with nix 2, I now see lots of paths starting with `/build` as in `build/source/build/include/config/has/iomem.h'`. I see no /build folder in my system, is this some kind of virtual folder ?
<coconnor>
how can a channel be built? I don't see a description of how the manifest can be constructed
<Izorkin>
How to build custom iso with nix 2.0 ?
dkao has quit [Ping timeout: 260 seconds]
tkral_ has joined #nixos
* tkral_
tkral
aarvar has joined #nixos
<kaychaks>
from https://github.com/NixOS/nix/issues/1477 I get the `verify-https-binary-caches` but when I use it with nix 2.0 I get the error `warning: unknown setting 'verify-https-binary-caches'`
tkral has joined #nixos
muzzy__ has quit [Ping timeout: 265 seconds]
<kaychaks>
what can be used in place of this setting to ignore SSL validation during nix-channel updates
<eacameron>
There must be a better way to concat paths than `${path}/folder`
jtojnar has quit [Ping timeout: 256 seconds]
<elvishjerricco>
eacameron: Usually `path + /folder` works
<eacameron>
REALLY
<elvishjerricco>
Heh yea I learned that one recently. The great part about it is that if `path` is a path literal, the the result is still considered a path literal
<elvishjerricco>
So it can be `filterSource`'d, etc.
<eacameron>
Holy cow that's awesome. Why am I just learning this?
<elvishjerricco>
is there a way to check if a package is marked broken in a nix expression?
ma27 has quit [Ping timeout: 245 seconds]
<clacke[m]>
I'm trying to do some quick and dirty nix expression generating and I'm adding a reference to a variable that may or may not be bound. It seems tryEval was "improved" to not be able to catch this. Is there some other way I can work around this without improving my generator (for now) to not emit that code unless that variable name is there?
<adisbladis[m]>
clacke: If what you are looking for is an attribute you could use `lib.hasAttr`
spear2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
<clacke[m]>
no, but maybe it's a good time to make it one. Thanks for the suggestion!
pjan has joined #nixos
<eacameron>
elvishjerricco: Heh...you were right. Upgrading nixops *does* change the network config.
<elvishjerricco>
eacameron: NixOS makes dangerous things safe... or something :P
<eacameron>
Heh...I doubt that!
<eacameron>
This got me thinking though. Nixops is held back by compatibility to *so* many things.
<elvishjerricco>
how so?
<eacameron>
It really needs to be broken up into backend modules that can be versioned separately
<eacameron>
Like why should DO fixes be held up by new features for AWS?
<eacameron>
I'm sure that would be an enormous amount of work to do though.
<eacameron>
And nixops is already "understaffed"
<fearlessKim[m]>
justan0theruser: remove the unpackPhase line and use `src=./.` instead. Nix will install the package in develop mode (setup.py -e )
orivej has quit [Ping timeout: 255 seconds]
<justan0theruser>
fearlessKim[m]: that brought it to a new error, thanks.
<justan0theruser>
now it's complaining error: package directory 'beautifulsoup4' does not exist, even though default.nix has buildInputs = (with python36Packages; [ beautifulsoup4 ]);
<justan0theruser>
aactually stract that. Thanks for your help
<fearlessKim[m]>
justan0theruser: did you solve it ?
<justan0theruser>
It was a python issue, yes I did, thanks :)
pie___ has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Read error: Connection reset by peer]
mbrgm_ is now known as mbrgm
<fearlessKim[m]>
justan0theruser: from the manual you can only have one package in develop mode, not sure how true it is though
<infinisil>
It shouldn't be too hard to adapt it to Nix 2.0
<infinisil>
(and all the commands of Nix <2.0 work in 2.0 too)
<mfiano>
I can't seem to figure this out, but `mount` shows that my /nix/store partition is mounted twice. nothing odd about my config, and i'm using the same config on another pc and that doesn't happen
<clever>
mfiano: what cant you figure out?
<mfiano>
clever: Why it's mounted twice, how to prevent it, and why it doesn't occur on another pc with the same config
<clever>
mfiano: do both of them have a dedicated /nix/store partition, or a /nix partition?
<Izorkin>
infinisil: here through nix-build, need adapt to build with "nix build"
<mfiano>
clever: both of them are using 1 partition for /, /nix/store, and /home, but have separate btrfs subvolumes for them
siel has quit [Read error: Connection reset by peer]
siel has joined #nixos
<clever>
mfiano: if you run "sudo touch /nix/store/test" on the system with only 1 mount, what happens?
<mfiano>
clever: it creates a 0 byte file at /nix/store/test
<clever>
mfiano: that double-mount is a safety to stop you from doing such things
<clever>
you must have turned that safety off on that system
<mfiano>
to be honest i have 3 other systems with 1 mount for /nix/store. 1 is an oddball with 2 mounts
asuryawanshi has quit [Remote host closed the connection]
<clever>
yeah, cant find anything fishy anywhere
asuryawanshi has joined #nixos
<mfiano>
odd part is the double mount is on 1 of 4 machines ha
<mfiano>
and i'm doing basically the same thing across them all
<clever>
about all i can say, is that i always put /nix on its own partition, not /nix/store
<mfiano>
Oh ok
<clever>
but i dont see how that is actually causing the issue
<mfiano>
interesting
<mfiano>
Now I'm curious to the point where I want to reinstall with a minimal config and try to repro
siel has joined #nixos
zzamboni has quit [Remote host closed the connection]
pie___ has quit [Ping timeout: 245 seconds]
zzamboni has joined #nixos
<mfiano>
clever: is it possible to merge strings. not concatenate
<mfiano>
I have file-a.nix that declares services.xserver.displayManager.sessionCommands = ''line 1\nline 2\n'', and then I have a file-b.nix that imports this file, and it would like to append to that option with a ''line 3\n''
<NixOS_GitHub>
[nixpkgs] dotlambda pushed 2 new commits to master: https://git.io/vA5Bn
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Client Quit]
<sphalerit>
OK workaround found - run tmux as root and su - myuser in it
zzamboni has joined #nixos
<etu>
Uhm, that doesn't sound like a good workaround.
<etu>
Trying with sudo is not a proper solution unless it's supposed to be an admin task thing.
chocopuff has quit [Quit: WeeChat 2.0.1]
Itkovian has joined #nixos
crooksey has joined #nixos
humanoyd has joined #nixos
siel has quit [Remote host closed the connection]
siel has joined #nixos
jensens has joined #nixos
<LnL>
it's been fixed on master right?
pkill9 has joined #nixos
<mpickering>
a package is looking for "SpatialIndex.h" but the header file is actually at "include/spatialindex/SpatialIndex.h" in the package it comes from. I fixed this by moving the contents of "spatialindex" into "include/" directly but this seems to be the wrong way to fix it
<mpickering>
it also works on NixOS already but not darwin
<clever>
mpickering: does the package have a pkg-config file?
<mpickering>
libspatialindex?
gour__ has quit [Quit: Leaving]
__Sander__ has joined #nixos
<mpickering>
I'll have a look
<clever>
mpickering: yeah
gour__ has joined #nixos
gour__ has quit [Remote host closed the connection]
gour has joined #nixos
<clever>
mpickering: pkg-config should spit out the right -I flag you need to add to CFLAGS, and the build system for your package may automatically use that if you add pkgconfig to the buildInputs
sconybeare has quit [Remote host closed the connection]
gour is now known as gour_
<mpickering>
It has "lib/pkgconfig/libspatialindex.pc"
<mfiano>
sphalerit: Yeah that is definitely not a good workaround. Obtaining a root shell with sudo is very bad security. The whole idea of sudo is to control which commands a user can execute with elevated privileges WITHOUT gaining a root shell.
<clever>
mpickering: check to see what happeks if you just put pkgconfig into the buildInputs of your thing
<mpickering>
how does this already work on nixos?
<mpickering>
The build is quite long and seems to be succeeding so far with my hack, I'll try again in a little bit
<mpickering>
thanks
<clever>
mpickering: how are you building it when it fails?
<mpickering>
I modified it so in postInstall I move the contents of spatialindex into include
<mpickering>
You're right that in this pkg-config file it has "Cflags: -I${includedir}/spatialindex -Wall -Wno-long-long -pedantic "
<clever>
ive also been anoyed at how all of the gnome/glib stuff puts its headers in include/glib-1.0 and such
<clever>
its trying to solve the same problem nix solves, but it breaks all nix builds in the process :P
<mpickering>
nativeBuildInputs I assume?
<mpickering>
or buildInputs?
<clever>
nativeBuildInputs is best for build-only tools
<clever>
when cross-compiling, nativeBuildInputs will be built for the host arch, and buildInputs for the target arch
edwtjo has joined #nixos
<sphalerit>
mfiano: I know, hence "workaround" and not "solution" :)
<mfiano>
hehe
<sphalerit>
But I didn't use sudo to get a root shell, I used ssh with my pubkey :p
<mfiano>
even worse
<mfiano>
PermitRootLogin = false;!
<clever>
mfiano: it has to be enabled for nixops to work, i prefer just turning password login off
<clever>
good luck guessing my 2048bit key :P
<clever>
youll have better luck just finding my house and breaking in
<mfiano>
also chellenge auth off
anton__ has quit [Quit: No Ping reply in 180 seconds.]
<sphalerit>
Not really. If someone somehow gets their hands on my private key (which lives in my yubikey) I've got a lot more to worry about than someone getting a root shell on my chromebook
<sphalerit>
And they can log in as me on one of my machines and just wait for me to use sudo in tmux to intercept my password or whatevrr
<clever>
also, most of my machines are in the house, so you already have physical access by that point
anton_ has joined #nixos
<mfiano>
Yeah, although 2048 isn't that strong, especially if not one of the elliptic curve implementations not developed by the NSA
atu1 has quit [Ping timeout: 268 seconds]
<infinisil>
Damnit this stupid url verifier is more difficult than i expected
risci has joined #nixos
<infinisil>
There's a large space of "what should it do when X occurs" that doesn't have a nice solution
<mpickering>
clever: adding pkgconfig doesn't seem to work on its own
<risci>
i am looking to add some rules to my hosts file from https://github.com/StevenBlack/hosts/, how would you guys go about implementing such a feature?
atu1 has joined #nixos
<clever>
mpickering: in the preBuild for the problem package, set CFLAGS="$CFLAGS $(pkg-config --cflags libspatialindex)" i think
<clever>
mpickering: you can double-check the pkg-config invocation if you run nix-shell against the failing .drv file
<etu>
risci: Could probably be done as a "service" like "networking.hostsBlacklisting.enable = true;" or something. I'm not sure how to actually build this.
<clever>
the man page may also help correct any typos i made
ixxie has joined #nixos
<infinisil>
risci: I suggest cloning the repo, then doing networking.extraHosts = "${builtins.readFile /path/to/the/hosts.txt}";
<risci>
it's a pretty interesting problem i think, ie. how to deal with state that is constantly changing. Yeah you could just download the list and keep updating the url and hashes but that is not so elegant.
<risci>
infinisil that is what i thought i might do
<clever>
risci: nix doesnt really deal with things changing on their own, you have to either manualy update the file with `git pull`, or update the rev and sha256 of the result and use fetchFromGitHub
<infinisil>
risci: you could use builtins.fetchTarball github.com/... to get an always up to date variant, but this will fetch it almost everytime you rebuild
<infinisil>
it will only cache it for an hour, so 1 download every hour at max
zzamboni has quit [Quit: Leaving.]
<risci>
things don't change on their own yes but there is a breed of software that likes to have updates as soon as they are available i think.
zzamboni has joined #nixos
<risci>
and there must be other cases too, it's really interesting if we can solve it in a general way
atu1 has quit [Ping timeout: 252 seconds]
<vaibhavsagar>
what is the protocol for bumping Stackage LTSs in Haskell?
<vaibhavsagar>
I see we recently upgraded to LTS-9.21
<infinisil>
risci: While you could use builtins.fetchTarball, I think the "correct" solution would be to use a script that periodically uses nix-prefetch-git to update the hash it uses
<vaibhavsagar>
but can anyone initiate these or is it just peti?
<risci>
infinisil again, no offense but i wouldn't consider it a very elegant solution.
<infinisil>
risci: Considering how Nix works, I totally consider this a good solution, admittedly not very elegant though
<ij>
Today I found out that nix thinks that "[^]]" is a valid regexp. :(
atu1 has joined #nixos
<Lisanna_>
risci yeah, nix isn't really designed for what you're trying to use it for unfortunately
<Lisanna_>
there's a clear delineation between things on your local system and things not on your local system
<risci>
but it
<risci>
is a really interesting question i think
sigmundv has joined #nixos
<infinisil>
risci: The goal of nix is to make everything pure and reproducible, and the only way to have something that constantly updates while still maintaining this is to have something update the expressions (or something the expressions import, like with nix-prefetch-git)
<infinisil>
then you'll be able to build an old derivation no problem
civodul has quit [Ping timeout: 256 seconds]
<infinisil>
whereas with fetchTarball you wouldn't be able to
<Lisanna_>
You use Nix to implement the "untrusted code" part of your program, and then you will perhaps need some small overhead of "trusted code" (like a bash script) to do the one part that Nix can't
<Lisanna_>
in general, the goal of designing such systems is to minimize the amount of trusted code that you need to make your think work
<Lisanna_>
you can't always eliminate all of it
jensens has quit [Ping timeout: 240 seconds]
<Lisanna_>
make your thing work*
<risci>
why not? :) no one just gave it a crack yet doesn't mean it can't be
<infinisil>
risci: Well you can try it, but it won't fit into Nix at all
<Lisanna_>
risci plenty of Nix users have run up against problems like this, heck even Hydra has to deal with this. For problems like this, there's always going to be some amount of "trusted code" required. TO be clear: just because you can shoehorn Nix into doing it doesn't mean the Nix solution is better, or "untrusted code" levels of good. Nix has holes in it, but they're pretty obvious ones
<risci>
no i am not that ambitious
<vaibhavsagar>
actually, this should be a systemd service
<Lisanna_>
vaibhavsagar this
<vaibhavsagar>
so you can have a constantly updated file in /var/wherever
<vaibhavsagar>
and then all the updating logic goes in your unit file
<vaibhavsagar>
problem solved
* vaibhavsagar
pats himself on the back
<Lisanna_>
"`exportReferencesGraph' contains an invalid path" I'm getting this error randomly ):
jensens has joined #nixos
<Lisanna_>
in theory this shouldn't be possible...
tkral has quit [Ping timeout: 256 seconds]
<infinisil>
vaibhavsagar: yeah i was also thinking of a systemd service (but one that updates a json file used by nix)
<infinisil>
I guess both variants have their usecases
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 3 new commits to master: https://git.io/vA5u5
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 91a2ad2 Nikolay Amiantov: gtkmm2: enable parallel building
<NixOS_GitHub>
nixpkgs/master 8529e0b Nikolay Amiantov: gnome3.gtksourceview: enable parallel building
<NixOS_GitHub>
nixpkgs/master fe708a3 Nikolay Amiantov: twemoji-color-font: include recommended fontconfig configuration
<risci>
i don't recall whose quote it is but Simon Peyton Jones once told this 'Do not try to assume the state of the system, that is pretty hard. Only the World knows what state it is in. Pro tip: import the state as a variable"
<risci>
the state in this case would be the file and the hashes, and we are trying to be deterministic about it
<risci>
the old hosts file also is of not very much use unlike old software which is very useful and will always be
alex`` has joined #nixos
<risci>
now i don't know whether that works with nix or not?
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar opened pull request #36371: Update fontconfig and freetype (staging...fonts-update) https://git.io/vA5zO
NixOS_GitHub has left #nixos [#nixos]
<infinisil>
risci: My reasonning is that one always wants to keep their system deterministic. Because if something breaks it, you can just check out an older commit and figure out what broke it, which is only possible if you check out the updated hashes every time
<risci>
you are very correct.
<risci>
It is the underlying system which is based on state and effect.
<risci>
Above which nix tries to present a very elegant and functional system
<infinisil>
Nix can achieve this by having the /nix/store read-only
<infinisil>
you can't modify anything in the store yourself
<infinisil>
but everything outside the store is state indeed
<infinisil>
that's why a lot of things have symlinks into the store to make it as immutable as possible
<infinisil>
(but you could change the symlink itself in theory, but you wouldn't do this on purpose of course)
<triangles42>
If I ssh into the nixos machine, I get dropped into bash (as I should), but my .bashrc isn't sourced for some reason.
<pareidolia>
clever: Wonderful. Thanks!
<mfiano>
clever: Are you experienced with systemd services?
<clever>
mfiano: mostly
<mfiano>
I have been debugging an error for 2 days now and I can't get any good information
<clever>
mfiano: what error?, and have you read things like `man systemd.service` ?
<infinisil>
mfiano: there's #systemd
<triangles42>
The other problem I have is that I can't get the VirtualBox Guest Extensions to work: `builder for ‘/nix/store/3r7a50mksv4lkw7j7ip03qykjvhzw6qi-Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.vbox-extpack.drv’ failed to produce output path ‘/nix/store/6dq7gw9a87kwa2k6d9q2x0xf8y7cgh1c-Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.vbox-extpack’
<triangles42>
`
davidlt has quit [Ping timeout: 240 seconds]
<infinisil>
mfiano: with over 500 users
<clever>
triangles42: what was printed above that?
<mfiano>
clever: I have a backup script that runs fine on other devices, but is failing on 1 device. journalctl on the client says that ssh is failing with pubkey auth, but normal ssh usage works fine
<mfiano>
clever: on both machines, working and non-working, $SSH_AUTH_SOCK in a shell is /run/user/1000/ssh, and in the script it's not set
pie_ has joined #nixos
<clever>
mfiano: and what about the key, is it encrypted?
<mfiano>
I don't know what you mean by encypted
<clever>
mfiano: does ssh ask for a passphrase for the ssh key?
<mfiano>
Oh, yes
<mfiano>
Until the agent caches it
<clever>
mfiano: there may be an ssh client difference that makes it not find the agent automatically
<clever>
mfiano: but you can try export SSH_AUTH_SOCK=/run/user/1000/ssh in the script to fix it
<symphorien>
Does /run/user/1000 still exist when the service runs ?
michiel_l_ has quit [Ping timeout: 252 seconds]
gour has joined #nixos
<mfiano>
clever: That did work. I'm curious why one machine doesn't work. I'm also debating on using unencrypted keys so I don't have to use an agent or worry that backups might fail if the machine is rebooted and I haven't connected with a passphrase for the agent to cache it.
<clever>
mfiano: you can use the ssh config to set it to use a different key for a certain host, and then use an un-encrypted one for that
gour_ has quit [Quit: Leaving]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vA5VP
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 1f8d30f Nikolay Amiantov: avidemux: restrict platforms
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to release-18.03: https://git.io/vA5VD
<NixOS_GitHub>
nixpkgs/release-18.03 a2037bb Nikolay Amiantov: avidemux: restrict platforms...
NixOS_GitHub has left #nixos [#nixos]
<mfiano>
That works. I'll probably make a backup user so my normal user isn't affected
ciil has quit [Quit: leaving]
<mfiano>
thank you
MP2E has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra closed pull request #36360: nix: fix conditional so brotli is used w/2.0 builds, needed for logs! (master...fix/nix-use-brotli-for-sanity) https://git.io/vA75f
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 2 new commits to master: https://git.io/vA5Vx
<NixOS_GitHub>
nixpkgs/master 7dafa09 Will Dietz: nix: fix conditional so brotli is used w/2.0 builds, needed for logs!...
gour has quit [Quit: Using Circe, the loveliest of all IRC clients]
zzamboni has quit [Quit: Leaving.]
magnetophon has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidlt_ is now known as davidlt
zzamboni has joined #nixos
zzamboni has quit [Ping timeout: 260 seconds]
zzamboni has joined #nixos
ottidmes has joined #nixos
<ij>
How will this code get cached and its hash computed? Will it execute git every time? : runCommand "foo-src" { buildInputs = [git]; } "cd ${toString ./.}; git checkout-index -f -a --prefix $out/";
<ottidmes>
Has anybody gotten Nix 2.0 working on 17.09 with SSH substitutors? I thought I had it working, it gave no errors on dry-build, but I get error: unexpected end-of-file
zzamboni has quit [Ping timeout: 240 seconds]
simukis has joined #nixos
gour has joined #nixos
<clever>
ij: the hash is based on the hash of its inputs (git), and the script in the quotes
<clever>
ij: so nix will only run that command once
<clever>
ij: you want builtins.fetchgit ./.
<gour>
eqyiel: just to inform you that in the meantime i was able to make circe-notifications work on my desktop. thank you for the package!
peacememories has joined #nixos
<ottidmes>
It could very well be that I am trading one bug for another, because when I updated yesterday I kept getting error: nix-daemon: executing 'nix-store --serve --write' on 'root@server': No such file or directory
Phillemann has joined #nixos
zzamboni has joined #nixos
<ij>
clever, Ha, that's right! So /u/guibou's solution doesn't do quite the same thing! I felt something was off about it. https://redd.it/824xg0
<Phillemann>
I'm trying to get "libflac.so". ${pkgs.flac}/lib/libflac.so doesn't seem to work.
<Phillemann>
The path that "pkgs.flac" points to only contains bin/
<Phillemann>
I don't get it.
gour has left #nixos [#nixos]
<clever>
Phillemann: you want flac.lib
<Phillemann>
Oh
<clever>
ij: yeah, that will only work once, and it wont notice changes to the dir
<Phillemann>
clever: ${pkgs.flac.lib} doesn't work either.
<Phillemann>
It's a little confusing because the rest of the stuff in my derivation is just ${pkgs.libogg}/lib/... and ${pkgs.libopus}/lib/...
<Phillemann>
But okay, thanks for the help
<clever>
thats a result of the split-output changes
zzamboni has joined #nixos
<ottidmes>
Meh, I am just going back to Nix 1.11 using nix-serve again, Nix 2.0 is simply to bleeding edge for me at this point
<srk>
nix2 build ouput is so nice!
<srk>
need to build more stuff so I can watch that thing
<clever>
ottidmes: nix-serve still works with 2.0
<ottidmes>
clever: But my trust in 2.0 is gone at this point, I'd rather wait a bit longer for it to mature a bit more and it probably does not help to be on 17.09 with Nix 2.0, so I probably will give it a shot in a month and a half
jensens has joined #nixos
zzamboni has quit [Ping timeout: 252 seconds]
<mfiano>
How would I specify my own openssh host key file instead of using the default value of services.openssh.hostKeys which is to generate them? I want the known_hosts file of all my machines to have persistent keys even if a machine is reinstalled
<ottidmes>
mfiano: Set that option to be the empty list (i.e. do not generate)
<ottidmes>
mfiano: And then write your own in environment.etc."ssh/ssh_host_rsa_key"
<ottidmes>
At least I guess that would work, I setting up my known_hosts file as well before I kept running in these Nix issues
<clever>
mfiano: this pre-configures known-hosts system wide
<mfiano>
clever: I have that as well however my issue still stands
<ottidmes>
mfiano: Wouldn't what I suggest work then?
<clever>
yeah, without the answer to what you asked, you have to update the nix file and rebuild every other machine
<ebzzry_>
Why am I getting 'cannot copy /nix/store/ppgsz8ndsyp4wv4ic00ff4qihmbpg1zx-linux-4.9.85/bzImage to /boot/kernels/ppgsz8ndsyp4wv4ic00ff4qihmbpg1zx-linux-4.9.85-bzImage.tmp'?
<mfiano>
hard-coding the known hosts like that is only valid if the machine is not going to be reinstalled and thus generating a new /etc/ssh/ssh_host_*.key file
<ottidmes>
ebzzry_: Your /boot is full
zzamboni has joined #nixos
<clever>
mfiano: i dont reinstall that often, so its not an issue
<ottidmes>
ebzzry_: Unfortunately by default it will just keep all previous initrd/kernel's in /boot
<ottidmes>
ebzzry_: If you use grub you can specify how many generations you want to keep
<mfiano>
Thanks
<ottidmes>
ebzzry_: The easy fix for now is to just remove a few, they should be re-added
<ebzzry_>
ottidmes: thanks!
<avn_>
yep. I finally come to configuration, where /boot/efi is EFI partition, contain only grub, and kernels come from / (ext4 or zfs)
zzamboni has quit [Ping timeout: 248 seconds]
<mfiano>
Well NixOS is a pretty big success for me. After a week and a half, I migrated 5 machines over to it, and I only have 2 issues left to find a fix for
nixer101 has joined #nixos
zzamboni has joined #nixos
<nixer101>
Hello! Has anyone tried putting store on reiser4? As you may possibly know, it supports transparent compression, the operations are atomic and is more efficient with small files than ext4. Is it viable alternative to ext4 and btrfs?
hyper_ch2 has quit [Ping timeout: 260 seconds]
<clever>
nixer101: i use zfs for everything here, and it also supports compression
<mfiano>
If you think btrfs was moving slow, reiserfs is standing still.
Phillemann has left #nixos ["WeeChat 2.0.1"]
<mfiano>
coupled with hardly any users, I'd say use btrfs or zfs.
<nixer101>
clever: well, this is understandable. ZFS also requires more space as Btrfs, but the two are completely different beasts. I meant more a better choice for those who still use ext4.
<avn_>
don't forget enable copyKernels, if your /boot on zfs
<nixer101>
"if it may be a better choice"* - like this.
<avn_>
grub unable to read /nix/store
<clever>
avn_: that will depend on if the store is in its own zfs dataset or not
<clever>
avn_: i happen to keep /nix on its own dataset, so i can disable snapshots there
<avn_>
clever: correct.
<avn_>
grub unable to traverse store due amount of hardlinking
<clever>
i thought it was due to the sheer size of /nix/store itself
<nixer101>
I became eager to try it, because everything indicates it might be much better choice for "store" than ext or xfs.
<clever>
just the number of entries in that directory
<avn_>
clever: hardlinks, is a ticket about it somewhere (in grub or zfs github)
<crooksey>
Its been a while since I used nixos, can I extend the build script to include other things like custom x11/vim environments? (I dont see any reason why not) so I could simply run my nixos build script and have a complete working development environment etc. Makes new machines, virtualbox environments a lot easier.
* etu
still have hopes for bcachefs
<etu>
Any decade now
<mfiano>
crooksey: Yes, you can specify your desktop/window manager and everything in nix expressions
<crooksey>
Perfect
<crooksey>
Thanks
sphalerite has quit [Ping timeout: 276 seconds]
mg- has joined #nixos
sphalerite_ has joined #nixos
magnetophon has quit [Remote host closed the connection]
<crooksey>
Just keeps everything in sync, office workstation, work laptop, personal laptop, home workstation etc
Lisanna_ has quit [Quit: Lisanna_]
pie_ has quit [Ping timeout: 255 seconds]
<mfiano>
my nix-repl stopped working all of a sudden :(
<mfiano>
error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<clever>
mfiano: nix-repl is linked against nix1.11, and you need to `export NIX_REMOTE=daemon` for it to work
<genesis>
nixer101 : i prefer xfs over ext4 since it's very stable.
<clever>
mfiano: it can also happen if you just unset NIX_REMOTE somehow
<mfiano>
I'm not sure what I did. I just did a switch and rebooted
<clever>
mfiano: nix-store --version
<srk>
how come I can
<srk>
can't use nix search?
<mfiano>
Hmm 2.0
<mfiano>
So nothing in nix is setting that env var and I have to do it myself?
<srk>
do I have to switch something on master so nix2 recognizes my nixpkgs? NIX_PATH="/etc:nixos-config=/etc/nixos/configuration.nix"
pkill9 has quit [Ping timeout: 240 seconds]
risci has left #nixos [#nixos]
<etu>
Hmm, nix 2.0 still say "Note: this program is EXPERIMENTAL and subject to change." at the bottom if you just run "nix". Yes it's nix 2.0.
pkill9 has joined #nixos
<ottidmes>
etu: The API is still subject to change, hence the note
<etu>
ottidmes: I just thought it would be considered stable when 2.0 was out :)
<eqyiel>
gour: great!
guibou has joined #nixos
<nixer101>
genesis: yes, but both ext and xfs do not offer compression or are as efficient for small files as reiser4. I never had issues with ext, its just that I noticed store consists of many small files that are often src code or text. It should be ideal for compression.
<guibou>
Hi. On which occassion a "runCommand" is re-run ?
<ottidmes>
etu: Too bad I cannot find a source quickly, but I remember being said that 2.0 is not feature complete with 1.11 and that in part is the reason why they want to make sure people know some things might still be changed
<nixer101>
genesis: ofc Btrfs and Zfs are solid options too, perhaps even better ones because they are COWs.
<mfiano>
The only issue I have left is my 2 laptops aren't able to middle click with 2 fingers on the touchpad anymore...that does a right click now
<mfiano>
probably some libinput magic incantation needed
pkill9_ has joined #nixos
pkill9 has quit [Ping timeout: 240 seconds]
hyper_ch2 has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes>
I trust btrfs for its compression, subvolumes and local snapshots, and am using it on most of my systems without issue, but I read that sending snapshots still had potential bugs, so I am using ZFS for that use case instead
rindvieh has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
<mfiano>
I use btrfs for everything too, because zfs is stuck in the past
<nick_l>
mfiano: except btrfs loses data on exotic platforms.
<mfiano>
yeah exotic as in older kernel versions and RAID
<nick_l>
At least that's my reason for not using btrfs; it only runs under "favorable conditions".
xcmw has joined #nixos
<nixer101>
Another question - I noticed that if using another tree to inject individual expressions(packages), nix also uses dependencies from that tree, which leads to much more parallel packages. This is understandable and it works well, but is it possible to instruct nixos-rebuild to prefer expressions in main channel when evaluating expression from additional channel. I could be wrong here, please don't throw mud at me (if possible :) )
<clever>
nixer101: use callPackage to load the package you want
<nixer101>
clever: but this is on individual basis, right? I was looking for a global switch that changes priorities.
<clever>
nixer101: how is nix going to know which programs to use from the 2nd set, and which library to not use from the 2nd set?
<Guest89025>
etu: I was surprised by that too
Guest89025 has quit [Changing host]
Guest89025 has joined #nixos
<nixer101>
clever: yes, I noticed that nix does not supply version limits and hoped it would figure it using dependency tree resolution.
Guest89025 is now known as TweyII
knupfer has joined #nixos
<clever>
nixer101: it figures it all out, within the nixpkgs the package came from
<TweyII>
etu: But that's the truth of it. The ‘nix’ command still has some operations it can't do for which you need to fall back to the old interface.
peacememories has joined #nixos
<clever>
nixer101: you need to use callPackage if you want to mix things together
<TweyII>
etu: Because the whole point of the nix command is to provide a nice clean interface, so it shouldn't be prematurely stabilized and then grown on top of
<etu>
TweyII: Yeah,
<etu>
TweyII: Yeah, I like that :)
<clever>
mfiano: i think i just set the +C flag it says to set, but i dont use btrfs anymore
<TweyII>
It makes sense but I would have expected that to happen before the ‘2.0’ release… I guess there were other pressing things that needed to be released quickly
<etu>
Because the current one are a bit messy
<etu>
"current" as in "old"
<TweyII>
Yeah
<mfiano>
clever: I know you use zfs. What got you to switch?
<clever>
mfiano: a hydra based job took over an hour to generate just the .drv files
<clever>
mfiano: then it took another hour just to GC those .drv files
<clever>
mfiano: and the machine falsely detected write failures, and went into a panic mode, remounting the rootfs read-only
<mfiano>
jeez, what compression scheme/level were you using, and did you disable CoW on the store?
<clever>
all with btrfs
<clever>
dont remember the details
<nixer101>
I noticed that Teamviewer uses Nixos (https://www.reddit.com/user/TeamNix). Perhaps, there is a good chance for someone registered on reddit to approach them and ask for dedicated package repository that does not constantly vanish with 404?
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
nixer101: in the past, i remember looking at how teamviewer worked, and it was just an exe file with wine bundled along-side it, and a special wine library to give linux screen-capture support to an exe file inside wine
<clever>
nixer101: but i think it had a redesign since then, it looked different when i was fixing the nix package once
romildo has joined #nixos
<nixer101>
clever: this is correct, but I am adressing the conflict in how current teamviewer package is fetched. Currently it fetches binary from URL that is not guaranteed to exist, leading to situation when stable tree fails to evaluate. This is because they simply move the package away, causing 404. I am sure there is better, more reliable way which can be worked out.
<clever>
nixer101: yeah, thats also anoying, and they should stop doing that
<nixer101>
I mean, if they use nix, they should understand the importance of making their package to build reliably.
<clever>
nixer101: though they also block old versions from working, so it doenst really help much
rauno has quit [Ping timeout: 240 seconds]
<nixer101>
there is also an option that they assign someone to personally fix the package in stable and nixpkgs (and possibly unstable), so that it does not block the evaluation... since they use nixos themselves. it should be a win:win.
<clever>
yeah
orivej has joined #nixos
<nixer101>
I am newbie in nixos, but already encountered their breakage. I am also not registered on reddit, although I plan to do so. I brought this on IRC, because perhaps there is someone with reputation weight on reddit, who is also interested in them not screwing stable tree, who could approach them in this way. Ultimately I will also attempt this even if I am private user, but I am not sure if they will take me seriously.
<mingc>
but I need to build chromium myself if I use nix-env -iA nixos.chromium
<ottidmes>
mingc: Ah, yeah, makes sense, my response about the .drv assumed it was the chromium source, but you pointed of course to the nixpkgs of the last nixos-unstable, my bad
<mingc>
Oh, sorry, nevermind
<Synthetica>
@nick_l Yep, doesn't work
<Synthetica>
I'd open an issue if I were you
<mingc>
It seems I changed my channel to nixos-unstable-small but I did not remembered... I'm so dumb
<mingc>
ottidmes: thanks for your help anyway
<ottidmes>
mingc: But if you ever run into this problem when you install as part of your systemPackages nix-diff can really help you out, you just need to get the .drv file you were expecting (which you can easily get via the hydra website)
thblt has joined #nixos
Itkovian has joined #nixos
xcmw has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peacememories has joined #nixos
<mingc>
ottidmes: Oh, didn't know that tool before. It indeed looks useful
Lisanna has quit [Ping timeout: 268 seconds]
<mfiano>
clever: rebuilt all my machines with latest unstable commit and now i have the read-only store mount everywhere. strange
pie_ has joined #nixos
Excape has joined #nixos
nico202 has joined #nixos
<Excape>
question: I have a deployed nixops instance with postgresql and postgresqlBackup. The backup cron tries to execute pg_dump as root, but since the superuser for postgresql is now "postgres", it fails to authenticate
<Excape>
is that an incompatibility of postgresqlBackup and postgresql in nixpkgs?
<nico202>
nixos-rebuild switch is freezing for me on unstable, nix-build starts using 100% cpu and that's all, it's only me?
<ottidmes>
I know I could reproduce a build locally via the script you can download from hydra, but what if I just want the .drv file? Is there a way to download .drv files directly if you have the path/hash?
knupfer has quit [Ping timeout: 256 seconds]
<etu>
nico202: might have to do with the nix 2.0 update, i aborted it and ran a nixos-rebuild boot earlier today and it was fine
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has joined #nixos
ryanartecona has joined #nixos
Excape has quit [Ping timeout: 260 seconds]
<Profpatsch>
How do I import a NAR file into the store?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Profpatsch>
Or better: How do I re-import a --dump-ed NAR file so that it produces the same store path?
zzamboni has quit [Quit: Leaving.]
xcmw has joined #nixos
zzamboni has joined #nixos
<tnks>
is it just me or is the output of 'nix build' too concise? I kind of want to see my build steps.
<tnks>
at least give me a switch, otherwise I find I'm just going back to nix-build.
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
Ankhers has quit [Ping timeout: 256 seconds]
adamCS has quit [Ping timeout: 256 seconds]
Ankhers has joined #nixos
adamCS has joined #nixos
gammarray has joined #nixos
rauno has joined #nixos
zzamboni has quit [Client Quit]
knupfer has quit [Remote host closed the connection]
<gammarray>
trying to install toggl desktop client (not listed in nix pgk repo). can i install the deb with dpkg or is there another preferred method?
zzamboni has joined #nixos
andrew_k has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
<andrew_k>
hi, i'm installing nixos, but it fails on downloading bootstrap-tools.tar.xz: couldnt resolve hostname
alexteves has joined #nixos
<andrew_k>
has anyone else had this issue?
pie_ has quit [Ping timeout: 240 seconds]
<gammarray>
andrew_k: are the other deps downloading and only bootstrap fails?
<ottidmes>
gammarray: You will still need to repackage it, because the location of things will differ in NixOS, so it will need to be patched, there are plenty examples of this to be found in nixpkgs
zzamboni has quit [Remote host closed the connection]
<gammarray>
ottidmes: thx, i'll probably need to save this task for later then...
<ottidmes>
andrew_k: Seems like a DNS issue on your end, can you resolve other host names? Check /etc/resolv.conf
<andrew_k>
the preceeding packages seem to download fine
<andrew_k>
i've set up internet with nmcli dev wifi connect <name> password <password>
<andrew_k>
but maybe its not the best option?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #36367: tt-rss: use proper user and package for MySQL (master...yegortimoshenko-patch-1) https://git.io/vA5T1
NixOS_GitHub has left #nixos [#nixos]
<ottidmes>
andrew_k: Not sure, I have never setup WiFi on a machine running NixOS
<ottidmes>
andrew_k: But if you can ping website just fine, then I doubt it is your connection itself
<gammarray>
andrew_k: it's a lot easier to just plug into ethernet for the install
<andrew_k>
maybe you're right
alex`` has joined #nixos
<goibhniu>
andrew_k: you could try changing the DNS servers in /etc/resolv.conf and restaring nscd
<goibhniu>
e.g. you could use google's DNS: 8.8.8.8
gammarray has quit [Quit: Leaving]
asuryawanshi has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] thefloweringash opened pull request #36378: gdb: Flexible target matching for darwin (release-17.09...fix-gdb-darwin) https://git.io/vA5N8
NixOS_GitHub has left #nixos [#nixos]
pie_ has joined #nixos
andrew_k has quit [Ping timeout: 260 seconds]
rindvieh has quit [Remote host closed the connection]
acertain has joined #nixos
devsteff has joined #nixos
<xnaveira[m]>
so whats the best way of getting oracle java in nixos?
<makefu>
andrewrk: ah you are already beyond this point :)
<hyper_ch2>
why do you want oracle java?
<xnaveira[m]>
well for one to be able to run a shitty applet that gives me remote console through the ipmi
<xnaveira[m]>
and to write microservices and shot
<xnaveira[m]>
shit* :)
<romildo>
My derivation for gsettings-qt is installing tests to /nix/store/zj9ms8l43862g2d2pm153wd9n3rrl0sa-qtbase-5.10.1-dev/tests. How do I fix it so that it installs into $out?
<mfiano>
Is it just me or does networking.firewall.allowedTCPPorts not merge with previously declared lists like other list options do?
<mfiano>
nix-repl says tht it is not what i assign to it
nick_l has quit [Ping timeout: 260 seconds]
<devsteff>
hey guys, started with nixos a few weeks ago and am very satisfied but there is one point that is bothering me and i just dont understand it through reading. Should one have an additional copy of nixpkgs besides the default? And why is that? Cant i just change the nixpkg checkout in .nix-defexpr/channels? Also cant find an explanation for this in the manual
<hyper_ch2>
you can put them into configuration.nix or you can write your own overwrite nix expressions and include them
<mfiano>
clever: I see you specify a list or firewall udp ports for your eeepc. For some reason my list of ports is not being merged in.
<mfiano>
however it works in an earlier file
<gchristensen>
clever: my postgresql-in-nix-shell has just received hall-of-fame worthy feedback from Fuuzetsu: "do you ever wish you didn't click something because I just did"
<devsteff>
Yes it is but not supported on all my servers
nick_l has joined #nixos
<hyper_ch2>
devsteff: but you did say "nixos" :)
<devsteff>
Youre right my fault but thanks anyway
devsteff has quit [Quit: Page closed]
<hyper_ch2>
clever: the question before wasn't answered as far as I can say... what made you start using zfs?
<xnaveira[m]>
goibhniu: sure but my main problem is that for some reason the oraclejdk package doesnt install javaws which is what i need to run the jnlp applets
<goibhniu>
is the plug-in enabled?
<xnaveira[m]>
and the icedtea thingy doesnt work
<clever>
hyper_ch2: btrfs just didnt perform that well, and it falsely read-only'd the machine after a write timeout because of how bad the perf was
<ottidmes>
I am baffled, the error: unexpected end-of-file, I was experiencing with Nix 2.0 went away on its own, I just tried to run nixos-rebuild again to log the error in my notes and it simply worked
<hyper_ch2>
clever: btw, I still have the issue, that zfs clobbers up all the ram and when I try to start a qemu vm it complains about lacking memory... I then clear it all using: echo 3 > /proc/sys/vm/drop_caches but I'm sure you know of a better way
nick_l has quit [Ping timeout: 260 seconds]
<clever>
hyper_ch2: there is a min-free thing somewhere in /proc
<hyper_ch2>
why doesn't qemu drop caches as much as it needs?
<clever>
hyper_ch2: i think the issue, is that qemu tries to allocate a huge amount all at once, more then what the kernel has free normally
<hyper_ch2>
:(
<clever>
hyper_ch2: though i also have 64gig of swap and i havent played with my overcommit settings, so the kernel is more willing to give me ram i dont yet have
<mfiano>
It's strange because it's only not working in a later file than when firewall turned on
<hyper_ch2>
I have 0gig of swap
<hyper_ch2>
and 16gig of ram
<hyper_ch2>
and vm gets 4gig of ram
<clever>
mfiano: i dont see 20 listed in any of the configs
<mfiano>
22 i mean
<mfiano>
because sshd is enabled
xcmw has quit [Ping timeout: 256 seconds]
<clever>
/sys/module/zfs/parameters/zfs_arc_max
<clever>
hyper_ch2: this file is the max number of bytes the arc can use
<clever>
echo any number to adjust it
<clever>
zfs.zfs_arc_max=1234 on the kernel cmd line to set it at bootup
<mfiano>
clever: my point is 8080 is ONLY being added when declared in network.nix where the firewall is enabled, and not machines/djinn.nix
<clever>
hyper_ch2: some are very special purpose, this line for example disables dpms on a headless machine, so if it ever has a kernel panic and locks up, the gpu remains on and can render the panic
<clever>
the panic output is rather unreadable if the machine is frozen and cant wake up the gpu
rindvieh has quit [Ping timeout: 268 seconds]
<hyper_ch2>
I managed to kill my home server :(
<hyper_ch2>
when running nixos-rebuild switch
<clever>
hyper_ch2: i have 5 machines in my house that run 24/7
<hyper_ch2>
after trying to add some "volatile" folders in zfs
<hyper_ch2>
like seperate /tmp that doesn't need backup and some other stuff
<clever>
and i was able to upgrade the router from nixos to nixops, without loosing my internet, then upgrade it from 16.03 to 17.09, without going offline
<LnL>
clever: hmm, something related to compression but it's not exactly clear what the value means
andrew_k has joined #nixos
<LnL>
clever: ah! Percentage of CPUs to run an IO worker thread
<clever>
thats over a year worth of upgrades being applied to an active machine, without it going offline or loosing its public ip
<andrew_k>
hello again and thanks for the help!
<andrew_k>
the plugging in seem to have done the trick))
<clever>
LnL: ah, ive had problems in the past where zfs would deadlock, every core stuck in a spinlock waiting for more ram, and no cores able to release ram
mkoenig has quit [Ping timeout: 252 seconds]
<hyper_ch2>
I lose my public ip at home very few months
<clever>
anyways, its getting pretty "late" here, i should get to bed before i pass out
<hyper_ch2>
clever: you just need more coffee
<clever>
hyper_ch2: as long as i dont drop the dhcp lease, and dont go offline for over an hour, it doesnt expire, so i could keep it for years
<hyper_ch2>
(don't you usually go to be like 6h ago?)
<clever>
yeah, lol, but its out of whack again :P
* clever
heads off to bed
<hyper_ch2>
well, 6h sleep so it's like your normal time to get up again ;)
<hyper_ch2>
no point in heading to bed now
cement has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vAdvF
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 96ebf61 volth: chromium, google-chrome: fix escaping of commandLineArgs
<NixOS_GitHub>
nixpkgs/master da97c73 Michael Raskin: Merge pull request #36375 from volth/commandLineArgs-escaping...
rindvieh has joined #nixos
Excape has joined #nixos
cross has joined #nixos
<gchristensen>
hah, some clocks in Europe have lost 5 minutes over the last six months because of changes in the frequency of the AC power
<Synthetica>
At the top of my file and be done with it, but that might not be viable for larger projects
xeji has joined #nixos
Myrl-saki has joined #nixos
<xeji>
join #nixos-devel
<gchristensen>
probably want #nixos-dev
xeji has quit [Client Quit]
<kaychaks>
how to skip tests while installing `nixpkgs.python3Packages.jupyterlab` in OS X ? It's failing in to install while running tests
pkill9_ has quit [Ping timeout: 260 seconds]
xcmw has quit [Ping timeout: 256 seconds]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
hyper_ch2 has quit [Quit: Page closed]
rupert has joined #nixos
<rupert>
Hey all
<Synthetica>
kaychaks: `doCheck = false;` is already set?
<rupert>
One of the devs in my team is running OSX and I can't figure out how to get them deploying via NixOps
peacememories has joined #nixos
<kaychaks>
Synthetica: then why is it running all the tests and failing with some weird error. - `OSError: Insufficient access privileges for operation`
<TweyII>
I'm not sure how true that is — types.nix is theoretically more general than Nix configuration, so it doesn't necessarily make sense to flip the arguments there
knupfer has joined #nixos
<srhb>
__monty__: Not recently, no.
<TweyII>
OTOH it's tightly enough tied that the argument that represents the default configuration is named `def`, so
<TweyII>
srhb: How does the user override a default if conflicting attributes are disallowed?
Lisanna has joined #nixos
<srhb>
Allow conflicting attributes of different priorities, and prefer the higher priority. Like it works with other mkOverrides already. :)
<Lisanna>
how do I use nix-channel --rollback? Where do I get the "channel generation number" from?
<makefu>
andrewrk: ha! okay yes i thought andrewrk == andrewr_k
<jwynn6>
coconnor: yeah that is throwing me off. its my first whack at getting nixos running.
<coconnor>
jwynn6: see what the UUID actually is. (Tho I don't have a md array anymore so that's the extent of my help haha)
<srhb>
when you mkDefault some, say, int, it'll have a very low priority and there will be no merge error.
<TweyII>
Hmm.
[0x4A6F] has joined #nixos
<TweyII>
I'm afraid of numerical priorities. :) Too many flashbacks from CSS z-index days (z-index: 1000; /* just in case we want to define a lower priority later */ … z-index: 10000; /* the race is on */)
<jwynn6>
coconnor: interesting, so when i run what you suggested, i get data. when i run --detail --scan, theres no metadata, name or uuid for the array.
<srhb>
TweyII: Agreed. But having some, not-really-well-defined value is terrifying.
<Lisanna>
hey, it's better than "low" "medium" "high" :/
niklob has joined #nixos
<srhb>
Lisanna: At least you know which end of the scale is high and which is low :-P
<TweyII>
I feel like ‘definition order’ is nice and well-defined.
<Lisanna>
srhb this is true
<Lisanna>
isn't it a low priority value = high priority?
<srhb>
TweyII: Definition order across modules? :o
<disasm>
well, good news is my macbook pro is repaired. bad news is they wiped my nixos partition :( At least it's nixos, so getting it back to a working state should be fairly simple :)
<srhb>
Lisanna: low numerical value, high priority, yes.
<TweyII>
srhb: Well, the module include order is well-defined *somewhere* ;)
digitus has joined #nixos
<srhb>
TweyII: What if you've imported a module multiple times?
<TweyII>
disasm: That's pretty rude
<srhb>
I don't find it satisfactory :-P
<TweyII>
srhb: In the same place? Then there's no effect
<coconnor>
jwynn6: hrm I would have thought that would echo the UUID. What's your configuration.nix btw?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] volth opened pull request #36382: check-varnish-syntax: make error visible (master...patch-114) https://git.io/vAdWJ
NixOS_GitHub has left #nixos [#nixos]
<TweyII>
(modulo non-idempotent merge types…)
<srhb>
TweyII: I only believe in idempotency if it also commutes :-P
<TweyII>
In fact you can deliberately import multiple times, or use a fixpoint, to get various priority and self-reference effects
<genesis>
lewo : do u receive software notification on my push -f after rebase ?
<disasm>
TweyII: yeah... why apple cared there was an extra partition on there they couldn't get into is beyond me...
<coconnor>
jwynn6: did you happen to clone a disk that was using mdadm raid?
<coconnor>
ah ok!
<jwynn6>
coconnor bout halfway down the page is a walkthrough, only thing i changed is setting a hostId, because the installer refuses to move on without one.
crooksey has quit [Ping timeout: 240 seconds]
<coconnor>
jwynn6: gotcha. thanks. I have a ZFS setup as well. Comparing
<srk>
something with how nix store is populated before vm is created?
<srhb>
(Which also has a fun new invalidNetworkPointer bug)
<srhb>
Dezgeg: I'll check right away :)
<srhb>
Dezgeg: nobody:nogroup
<Dezgeg>
huh
sanscoeur has joined #nixos
<srhb>
My reaction as well. :-)
sirkha has joined #nixos
<ottidmes>
Anyone seen this error yet: nix-daemon[7483]: unexpected Nix daemon error: unexpected end-of-file
<thoughtpolice>
gchristensen: Borg works pretty well, it does have some overlapping features with ZFS in a sense. Things like encryption are maybe a bit better in Borg (e.g. no LVM setup due to lack of native encryption on the block device, portable), and Borg also dedupes (resource intensive in ZFS) while something like compression might be better in ZFS (block vs file encryption). Might just have to try a few workloads!
<gchristensen>
indeed! cool, thank you a lot for that feedback :)
<mfiano>
thoughtpolice: Aye, I've been using borg for a few years and it just works.
zzamboni has quit [Quit: Leaving.]
<mfiano>
As far as compression, you have a few choices with borg, like gzip, zstd, lzma, etc.
<thoughtpolice>
The first point (encryption) will be smoothed out a bit once the open source ZFS releases with a native encryption layer. Borg does still have the advantage of simplicity/portability though (e.g. you can just copy the borg archive off your server onto a flash drive, and use meatspace to transport it somewhere trivially, etc)
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
<gchristensen>
thoughtpolice: what encryption option did you select?
<gchristensen>
s/did you select/do you recommend/?
zzamboni has joined #nixos
bpa has joined #nixos
<sirkha>
hi, using nixos-17.09 for my system, trying to get a windows 10 partition on an NVMe to boot as a VM, and I can't figure out what revision of the EDK II binary is installed. I saw a comment here (https://github.com/NixOS/nixpkgs/issues/27568) saying it is edk2-2017-12-05, but ls /nix/store | grep edk gives me edk2-2014-12-10, edk2-2014-12-10.drv, and edk2-vUDK2017-src.drv, so it seems like edk2-2014-12-10 is the one installed
<mfiano>
What I really like about borg is the purge command. I can tell it to keep the last x hours, last y days, last z weeks, etc etc up to years, while garbage collecting anything that isn't required
<halfbit>
so if I have a one off default.nix outside of nixpkgs but want to use functionality from nixpkgs like fetchFromGitHub how would I do that
<sirkha>
I have pass through set up and ovmf shows that it sees the nvme device, but gives me no file systems
<halfbit>
er nvm, I have a typo, lemme try fixing that first
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nlewo closed pull request #36343: soulseekqt: init at 2016-1-17 (last official stable) (master...soulseekqt) https://git.io/vAQ17
NixOS_GitHub has left #nixos [#nixos]
<thoughtpolice>
gchristensen: Personally, I use the repokey mode -- which keeps the key inside the repository, but you still need the passphrase to decrypt it. This is fine for me because my server is a big thing sitting in my room so I'm _pretty sure_ nobody is going to lift my disk/archive containing the key and like, store it for 30 years until Quantum Computers are around
<infinisil>
thoughtpolice: With zfs it's also rather simple to just copy something over with zfs send/recv
<thoughtpolice>
infinisil: That's true, I mainly meant Borg is nice from the POV that it's "just" a simple directory and is otherwise portable and the tooling is mostly platform agnostic (e.g. if I want to copy it to OS X). That said ZFS is fairly portable, but I think Borg is a bit more lightweight if you're going for encrypted archives, is all :)
<gchristensen>
I selected the authenticated scheme, which uses no encryption :(
<infinisil>
thoughtpolice: i haven't looked into borg much, so I'm not sure what it does
<TweyII>
halfbit: Does it define a derivation? Or is it just for interactive use?
<halfbit>
defines a derivation
<thoughtpolice>
infinisil: Think of it like Super Rsync -- but only for backups (I'd say rsync falls more under just "general file transfer"). Incremental upload, dedupe, encryption, etc etc. Like duplicity or whatnot, if you've heard of that.
<mfiano>
Also `borg mount` to remotely mount any point in history and copy what you want, although FUSE may be a bit of a bottleneck for massive data transfers
<halfbit>
I fixed that issue, I missed the capital H is GitHub in the usage of src = fetchFromGitHub
knupfer has joined #nixos
<TweyII>
halfbit: Take a nixpkgs argument like you would for a derivation in nixpkgs, then invoke it: nix-shell -p 'callPackage ./. { }'
<TweyII>
Yeah, I do that a lot :)
<infinisil>
thoughtpolice: and it needs borg to read the backups or is it some standard format?
<thoughtpolice>
gchristensen: :( TBH I'm surprised they even _offer_ an authenticated no-encryption mode, but I guess it kinda makes sense... But yeah looking at the docs, you probably want `repokey-blake2` or whatever.
<sirkha>
okay, i have definately figured out that OVMF is pointing to 2014-12-10... how do i change that?
<mfiano>
infinisil: It needs borg, but it uses standard git packfiles
<gchristensen>
thoughtpolice: maybe later I can copy form authenticated to encrypted
Tehnix4 has quit [Ping timeout: 245 seconds]
asuryawanshi has quit [Remote host closed the connection]
timokau_ has joined #nixos
asuryawanshi has joined #nixos
<infinisil>
mfiano: huh, isn't git terribly inefficient? Or are git packfiles something special?
timokau has quit [Ping timeout: 240 seconds]
<mfiano>
You can't encrypt an unencrypted repository after the fact
<infinisil>
Doesn't seem like git was made for backups at all
<mfiano>
You must supply the -e parameter at time of `borg init`
thblt has quit [Remote host closed the connection]
mizu_no__ has joined #nixos
<gchristensen>
mfiano: yeah, but I could restore then backup the restore, no?
<halfbit>
I got it goin, good stuff
<gchristensen>
so it doesn't have to go over the network again... or should I just cancel this backup and start over
<thoughtpolice>
Yeah, but you can't avoid the intermediate copy...
<mfiano>
gchristensen: With a new repository, losing all your history, sure why not?
mizu_no__ has quit [Client Quit]
<gchristensen>
I have no history :)
<mfiano>
Fair enough :)
<gchristensen>
and it wouldn't have to go over the internet
<gchristensen>
s/network/
<mfiano>
infinisil: You can look at their reaosning but there's nothing wrong with git packfiles for storing binary data
jtojnar has quit [Quit: jtojnar]
<gchristensen>
wait ... borg is based on git pack files?
<mfiano>
borg is actually a fork of git-annex, which was a fork of git to support binary files
zzamboni has quit [Quit: Leaving.]
jtojnar has joined #nixos
<mfiano>
so yes, it has git in its history :)
* gchristensen
is feeling less sure about all this
<thoughtpolice>
infinisil: Packfiles are basically an on-disk format for having A) a bunch of files stored in one file and B) an index into that file, pointing where things are. Sort of like a Tar archive -- though Packfiles have a notion of 'deltas' so that Git only stores the deltas between 'similar' files. I'm not actually sure if Packfiles meaningfully contribute at all to Git's general slowness with huge objects.
<infinisil>
It seems kinda werid
TheMente has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mfiano>
gchristensen: I don't see why
<gchristensen>
uninformed paranoia probably
<thoughtpolice>
There's nothing /really/ about Packfiles that are specific to version control in any way, from what I can tell. It's just a nice way of rolling multiple files into one, while accounting for "this file is a slightly modified copy of this one, so save some space"
<mfiano>
borg is a set and forget method that has saved my butt multiple times over the last 2 years or so
<infinisil>
Its max as efficient as the underlying filesystem
<ottidmes>
It is hard to reproduce, but I solved my "nix-daemon: unexpected Nix daemon error: unexpected end-of-file" error message, by only keeping one of the ssh substituters in the list, then it worked, then I re-added the removed substituters, and now it works with all of them. I gc'ed one package that failed to download before with all substituters, and now it downloads just fine
<gchristensen>
mfiano: any chance you'd like to write a nixos service for it?
<mfiano>
gchristensen: I'm too new to know how, but I did write this for it...
<thoughtpolice>
mfiano: You could use my Tarsnap module as a good starting point.
<thoughtpolice>
I imagine a Borg service would look similar in practice
<mfiano>
thoughtpolice: Thanks but I backup to B2 using rclone
<gchristensen>
cool, thanks mfiano
<mfiano>
Actually I borg backup all my machines to my local backup server in 1 repository for deduplicating all machines together, and then rclone the full borg repo to B2
<halfbit>
beacuse configure.py wants to be run in the git repo
<halfbit>
its expecting a .git and whatever else, it actually does some submodule bs
<halfbit>
would love some help packaging this
<thoughtpolice>
mfiano: No, I meant if you wanted to write a Borg service for NixOS -- which you already have the starting point for, clearly! -- you could just copy/paste my tarsnap module for it
<nick_l>
gchristensen: is it then just that my version of nixpkgs is too new?
<thoughtpolice>
mfiano: It takes care of some things like having multiple archives (e.g. I can do `systemctl start tarsnap@home` for `/home` or `tarsnap@nixos` for /etc/nix and /etc/nixos, etc)
<thoughtpolice>
And other stuff like waiting around for network, etc.
rogue_koder has joined #nixos
<mfiano>
thoughtpolice: Oh ok. I'm very much a Nix/NixOS newbie still having only used it for less than 2 weeks, so I don't know where to begin still :)
<nick_l>
Is there no continuous integration for features like that? It seems that nix-shell is being encouraged everywhere, but then it doesn't actually work.
<thoughtpolice>
(Though, honestly the Tarsnap module is a little bit overdone, so)
<nick_l>
One should be able to count on tools.
<gchristensen>
nick_l: what version of nix are you on? run nix-info
<thoughtpolice>
mfiano: Might be a good first thing to try. It's pretty easy to add modules luckily. I always develop mine privately, and upstreaming them from there when they work is easy
<thoughtpolice>
(Just copy/paste the file, basically)
<nick_l>
gchristensen: nix-info is not a command on my system, but you might want to know 1.11.6?
zzamboni has joined #nixos
<mfiano>
thoughtpolice: Cool. I'll check it out later. THanks
<gchristensen>
nick_l: there is testing, but you seem to have an older nix
<gchristensen>
nick_l: I'm on 1.11.16
<nick_l>
gchristensen: 1.11.15, sorry
<gchristensen>
where did you come up with .6?
<nick_l>
gchristensen: meat hardware.
<gchristensen>
ah, mine is extremely buggy as well.
leothrix has joined #nixos
zzamboni has quit [Client Quit]
<nick_l>
gchristensen: but you would find it likely that upgrading to 1.11.16 would work?
<gchristensen>
I would not, that would be surprising to me
<gchristensen>
but also I tested it with nixpkgs master and nixpkgs 17.09 stable
<nick_l>
gchristensen: I am using the nix-shell from my system.
<gchristensen>
so I'm a bit lost as to why it doesn't work for you
<nick_l>
gchristensen: but I use nixpkgs master.
<mfiano>
I wonder when nix-repl is going to be fixed
<mfiano>
nix-repl not working unless you prepend an env var is slightly annoying, and I wouldn't have even known that given the unintuitive error message had I not asked about it here
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
ramuda has joined #nixos
TweyII has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
<ramuda>
I wonder has anyone ever built a custom iso then run that successfully on virtualbox here? Specifically, I don't know how to get the iso installed on virtualbox
<fyuuri>
Is using pip and all these script managers the of installing stuff in nixof or should I rather only use nix-env and the declarative way?
<catern>
fyuuri: nix-env and declarative mechanisms are preferable, so use them whenever you can
xcmw has quit [Ping timeout: 265 seconds]
<fyuuri>
thank you :)
Judson has joined #nixos
Judson is now known as Guest52462
fendor has quit [Ping timeout: 276 seconds]
<sonarpulse>
where did amixer go?
<sonarpulse>
I can't adjust volume
murlocks has joined #nixos
<sonarpulse>
(or brightness with `light` for that matter)
shoogz has joined #nixos
shoogz has quit [Max SendQ exceeded]
shoogz has joined #nixos
Neo-- has quit [Ping timeout: 265 seconds]
ramuda has quit []
knupfer has quit [Ping timeout: 245 seconds]
rauno has quit [Remote host closed the connection]
<nick_l>
gchristensen: how do I run a 1.11.16 as part of systemPackages? I have reason to believe it is fixed in that version.
<gchristensen>
nick_l: are you on NixOS 17.09?
<fyuuri>
I installed python36Packages.neovim using the declarative way, but it is not available to python3.
fresheyeball has quit [Ping timeout: 256 seconds]
<__monty__>
fyuuri: You'll have to install python36.withPackages (ps: with ps; [ neovim ]) instead.
<gchristensen>
the best-worst part about the first backup is you realize all the files you forgot you have and don't want backed up
aborsu has joined #nixos
<nick_l>
gchristensen: yes
<hyper_ch>
sphalerite: sphalerit: tmux runs again with latest unstable small, didn't test unstable
<gchristensen>
nick_l: just do nixos-rebuild switch --upgrade
<fyuuri>
@__monty__ Thank you. But why? I am new to nixos.
<nick_l>
gchristensen: I don't use channels in that way. I check out the 17.09 branch, but perhaps I shouldn't be doing that?
<nick_l>
gchristensen: since that seems to be stuck somewhere in September 2017.
<fyuuri>
thank you!
<gchristensen>
nick_l: that is fine, update to the latest version of the nixos-17.09 branch on git@github.com:NixOS/nixpkgs-channels.git
<gchristensen>
then rebuild based on that
sonarpulse has quit [Remote host closed the connection]
<__monty__>
fyuuri: Basically python36Packages.neovim is just a neovim package, what you want is a python package with a neovim package on the pythonpath. (Disclaimer: I'm still learning myself.)
<nick_l>
gchristensen: I was using nixpkgs.git, so there is a difference between the two apparently.
tmaekawa has joined #nixos
<gchristensen>
nick_l: git@github.com:NixOS/nixpkgs-channels.git is updated when tests pass properly, otherwise it is the same repo
rupert has quit [Quit: WeeChat 2.0]
<logzet>
Hi, is it possible to add some commands to the fixup phase of a package in configuration.nix via override?
<nick_l>
gchristensen: the branch name for nixpkgs.git is called release-17.09.
<nick_l>
gchristensen: and that one has commits from Feb 2018.
<nick_l>
gchristensen: your suggestion is still better, though.
<gchristensen>
yeah, nixpkgs.git's release-17.09 is the input to the test process
<gchristensen>
when the tests pass, they get pushed to nixos-17.09 on the nixpkgs-channels.git repo
<nick_l>
gchristensen: unfortunate that the branches aren't named the same.
<gchristensen>
well they're different branches
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nioncode opened pull request #36387: conky: provide option to build with pulseaudio support (master...conky-pulseaudio) https://git.io/vAdrZ
NixOS_GitHub has left #nixos [#nixos]
<gchristensen>
different channels*
<nick_l>
gchristensen: yeah, I suppose it's a good tag.
qmm has quit [Remote host closed the connection]
<nick_l>
It could also have been called "tests_have_been_run_on_this_branch".
<nick_l>
Self-documenting :)
<gchristensen>
the criteria for release-17.09 becoming nixos-17.09 is different from the criteria for nixos-17.09-small and nixpkgs-17.09-darwin
<gchristensen>
the HEAD of each branch on nixpkgs-channels has passed a corresponding test suite
Itkovian has joined #nixos
<nick_l>
I am just hoping nobody installed a keylogger on my system with all the holes I have in my system since essentially not updating from September.
sonarpulse has joined #nixos
<gchristensen>
me too. what made you skip the standard channel?
xcmw has joined #nixos
<srk>
I've stopped using channels on my desktop a while ago and it works well so far. only deployments use channels until I figure out pinning
<nick_l>
gchristensen: I use specific hashes for everything.
<nick_l>
gchristensen: and for my main system I wanted something stable.
<gchristensen>
the risk, of course, is not having an established update process
<nick_l>
gchristensen: so, call it human error.
<srk>
nick_l: master is surprisingly stable :)
<gchristensen>
omg srk noooo
<srk>
:D
<srk>
living on the edge!
<sonarpulse>
has the 2.0 migration fix landed on unstable yet?
<nick_l>
srk: Oracle hashes change all the time there.
<gchristensen>
nick_l: just do try to track updates on the nixos-17.ranch at least :)
<nick_l>
srk: I don't have time for that stuff.
<gchristensen>
nick_l: just do try to track updates on the nixos-17.09 branch at least :)
<nick_l>
gchristensen: yes, I changed my configuration to do that now.
<gchristensen>
cool
<srk>
nick_l: I do rebase like once in a month or when there's a window between work
<nick_l>
gchristensen: I just love how casual upgrading my operating system is. Sure, it requires 100Mbit interent.
<nick_l>
internet*
<nick_l>
But then I have the most boring setup one can imagine.
<nick_l>
I can't think of a single reason why other people run other systems.
tmaekawa has quit [Quit: tmaekawa]
<gchristensen>
nick_l: me either
<gchristensen>
nick_l: I know of some systems way far away from civilization with slow network access, and they run NixOS too because of how stinking safe it is to upgrade
<nick_l>
gchristensen: how slow? I also have something in that domain.
<gchristensen>
pretty slow, slow satellite I think?
<nick_l>
gchristensen: that's still 1Mbit/s?
<gchristensen>
I dunno
<gchristensen>
my understanding is it takes a couple weeks to physically get to the place, is the thing
<nick_l>
gchristensen: but isn't ipmi invented for that?
<gchristensen>
I don't know anything more to say :P
<nick_l>
gchristensen: for USD 350 you are done.
<__monty__>
I thought satellite uplinks were high bandwidth? Just high latency too.
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to release-18.03: https://git.io/vAdi3
<nick_l>
gchristensen: I cannot switch my configuration without getting an exit status 1.
<nick_l>
gchristenseoutput path ‘/nix/store/a6c7fzp814q6d407rp3d30ch2r7jjmzy-font-lock+.el’ has sha256 hash ‘0197yzn4hbjmw5h3m08264b7zymw63pdafph5f3yzfm50q8p7kp4’ when ‘0iajkgh0n3pbrwwxx9rmrrwz8dw2m7jsp4mggnhq7zsb20ighs30’ was expectedn:
<gchristensen>
annoying
<nick_l>
gchristensen: I guess the only way in which that error could be avoided is caching everything.
alex`` has joined #nixos
<nick_l>
gchristensen: some people don't call NixOS a distribution because of that.
xcmw has quit [Ping timeout: 240 seconds]
<nick_l>
gchristensen: since no code is actually being distributed.
<gchristensen>
we do cache a lot of code and binaries
<gchristensen>
some "lighter" ones, though, we don't
<nick_l>
I would gladly fill up my ISPs bandwidth limit by running ipfs.
<nick_l>
But that still is vaporware, AFAIK.
<gchristensen>
/!\ we're in danger of starting a new P2P yak shave convo
<gchristensen>
but we've tried using ipfs for nixos distribution, and essentially ipfs can't handle all of the write traffic we perform
<infinisil>
I'm actually using this in my nixpkgs url checker to measure how different the replacement url is
dgpratt has quit [Ping timeout: 240 seconds]
cbarrett has quit [Ping timeout: 240 seconds]
p_l has quit [Ping timeout: 240 seconds]
mgttlinger has quit [Read error: Connection reset by peer]
<nick_l>
hyper_ch: it's pretty funny for a particular class of people.
kaychaks has quit [Read error: Connection reset by peer]
feepo has quit [Read error: Connection reset by peer]
mgttlinger has joined #nixos
kaychaks has joined #nixos
dgpratt has joined #nixos
cbarrett has joined #nixos
feepo has joined #nixos
p_l has joined #nixos
<nick_l>
I remember the time when compiling your own kernel was considered "cool".
<nick_l>
Now, it just happens by accident.
<nick_l>
"Oh, right, I was using latest."
murlocks has quit [Remote host closed the connection]
<gchristensen>
I remember being a Gentoo user thinking "there is no way any other OS compiles more than this!" boy howdy have I been proven wrong
<BlessJah>
gchristensen: on the other hand with NixOS you do only compile once unless you could've downloaded stuff from cache
atu1 has quit [Quit: WeeChat 2.0]
<gchristensen>
yeah
<gchristensen>
I don't actually compile all that often, thankfully
rawtaz has joined #nixos
nick_l has quit [Ping timeout: 260 seconds]
nick_l has joined #nixos
<rawtaz>
hi. im curious, seems like there's still no installation program for nixos. is there any in the works? ive heard a few times people not trying out nixos due to the lack of an installer
alexteves has quit [Remote host closed the connection]
cstrahan has joined #nixos
<nick_l>
gchristensen: I lost wifi during the upgrade, which caused another failure of nixos-rebuild switch.
zzamboni has quit [Quit: Leaving.]
<nick_l>
gchristensen: running nixos-rebuild switch again did work.
zzamboni has joined #nixos
<nick_l>
gchristensen: I now use 1.11.6, but the problem discussed before still persists.
<cstrahan>
Wow. So, apparently IRCCloud thought it'd be a great idea to silently disconnect from this channel for the past week or so -- hope no one needed to get a hold of me here :/
<nick_l>
gchristensen: I now use 1.11.16, but the problem discussed before still persists.
<NixOS_GitHub>
nixpkgs/master 0c7b893 Jan Malakhovski: firefox-bin: fix pulseaudio references
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 7966e0e Jan Malakhovski: telegram/tdesktop: fix pulseaudio references
<gchristensen>
BlessJah: I was assuming that problem was because of slow wifi ...
<gchristensen>
BlessJah: I just bought a brand new USB-C to Ethernet adapter for this :P
<BlessJah>
do you have same problem?
<gchristensen>
yeah, it is transferring macOS install disk images at 15MiB/s exactly
<BlessJah>
I had less than 5MiB/s on OVH to OVH, while I could do 150MiB/s to local repo and ~120MiB/s with cat foo.dd | ssh other -- dd of=/dev/null
<BlessJah>
It wasn't disk that was bottleneck, it wasn't network, it must have been borg
<gchristensen>
at this rate I'll be done next century. nothing like your first backup to show you all the files you don't care about.
<BlessJah>
gchristensen: I've tried nixos to nixos with 1.1.4 on both nodes, via directly attached ethernet (yeah, actually via switch)
<gchristensen>
I would go delete them but experience shows that when taking your first backup is when you're most likely to accidentally rm -rf ~
knupfer has quit [Remote host closed the connection]
rauno has joined #nixos
<BlessJah>
gchristensen: I do always do several initial runs while including additional files, e.g. borg create /home; borg create /home/ /data/foo etc
<mpickering>
any ideas how to debug a linker error happening in cmake? I checked the NIX_LD_PATH and the right lib directory is in there. Then I used nm to check the dylib and the right symbol is in there but the build fails with an undefined reference error
<gchristensen>
BlessJah: I went right for the kill: backing up /etc/nixos and /home
<BlessJah>
mpickering: make VERBOSE=1 iirc will show exact commands
pxc1 has joined #nixos
pxc1 has left #nixos [#nixos]
pxc has joined #nixos
rauno has quit [Ping timeout: 240 seconds]
<BlessJah>
gchristensen: I think I'll check some past versions to see if they perform better
<mpickering>
BlessJah: That is producing much more output thanks, should be useful to see
<sonarpulse>
grahamc: the darwin installer no longer saves your sudo password?
<gchristensen>
Sonarpulse: the darwin installer never saved your password. if you only had to enter it once, it was because of sudo's caching. are you referring to a GUI popup?
<sonarpulse>
gchristensen: ah ok. All i know is one machine my coworker entered it once
<mfiano>
first backup showing you things you forgot you had that you don't want backed up...so true
<gchristensen>
well I don't know Sonarpulse, but the sysadminframework authentication thing doesn't cache creds, and the installer creates like 30 users
nick_l has quit [Quit: Page closed]
alunduil has quit [Ping timeout: 268 seconds]
<ottidmes>
There is no equivalent of Haskell's $ in Nix, right?
<sonarpulse>
gchristensen: ok
<sonarpulse>
gchristensen: how about just running as root?
<gchristensen>
Sonarpulse: sysadminframework requires separate auth, if it is that
<BlessJah>
mpickering: back when I've been into C/C++ development I wrote sth like this
<sonarpulse>
gchristensen: as root or not as root, it does?
<gchristensen>
yeah, it doesn't care about your puny UID
<NixOS_GitHub>
[nixpkgs] volth opened pull request #36390: check-varnish-syntax: make error visible (master...patch-114) https://git.io/vAdyV
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<BlessJah>
mpickering: find was wrapper around find and grep_expr used to build grep -e ${1} -e ${2} -e ${3}... command
TheMente has quit [Quit: Leaving]
<BlessJah>
very useful for finding libraries providing symbol that linker complained about
<halfbit>
anyone take a look at my gist for scylla?
<halfbit>
try tinkering at all?
GiGa has joined #nixos
<halfbit>
does fetchFromGitHub remove the .git directory or something? not sure where the source for that function is
<symphorien>
fetchfromgithub downloads gz archive without .git
<symphorien>
there may be an option to keep it though
fendor has joined #nixos
rauno has joined #nixos
<gchristensen>
fetchFromGitHub uses fetchzip to fetch the zip archive of the ref you specify
<gchristensen>
which has no .git dir
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] tiramiseb opened pull request #36391: nodePackages vue-cli and @vue/cli: init at 2.9.3 and 3.0.0-beta5 (master...vue-cli) https://git.io/vAdSd
NixOS_GitHub has left #nixos [#nixos]
<halfbit>
is there a fetch that keeps .git?
<halfbit>
scyllas current build system is... interesting
<gchristensen>
it is risky because the .git isn't reliably consistent, so the hash can change
<halfbit>
they have a custom python script that fetches submodules and what not
<gchristensen>
fetchgit can fetch submodules
alex`` has joined #nixos
<halfbit>
I mean, its what this huge project is doing in their 200+ line custom py script to build it
<halfbit>
I get that .git may not be the same...
fendor_ has joined #nixos
<gchristensen>
that isn't going to work, it won't be able to fetch submodules
<gchristensen>
you'll need to figure out how to sidestep their fetcher
<halfbit>
looks like if I get all the submodules for them, its not a problem maybe?
<NixOS_GitHub>
[nixpkgs] peti pushed 3 new commits to master: https://git.io/vAd9k
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master ebfecf3 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub>
nixpkgs/master f4b757b Peter Simons: haskell-changelogged: add override to fix the build
<NixOS_GitHub>
nixpkgs/master 68fd23f Peter Simons: hackage: update database snapshot to latest version
<BlessJah>
gchristensen: but what if github dies and we want to prefetch from other git repo?
<gchristensen>
then you won't want fetchFromGitHub anymore ;)
<BlessJah>
yep, I'd prefer to fetch from git, not github
fendor has quit [Ping timeout: 255 seconds]
<gchristensen>
the zip fetcher has big benefits though
Arcaelyx has joined #nixos
<gchristensen>
namely, it doesn't download all of the history, so it is much faster and much less bandwidth
<mfiano>
isn't that what clone --depth 1 is for?
<gchristensen>
maybe that would work
<mpickering>
BlessJah: It is compiling using clang, and the dependency is passed using the -framework flag. Do you know how to find what -framework points to/means or should I try using gcc instead?
<mpickering>
I guess the CMAKE_FRAMEWORK_PATH is something to do with it..
zzamboni has quit [Quit: Leaving.]
babyflakes is now known as zbyzsek
<BlessJah>
I don't know clang, you'll need to google your path from now on
mounty1 has quit [Ping timeout: 248 seconds]
zzamboni has joined #nixos
zbyzsek is now known as babyflakes
<mpickering>
thanks anyway you got me further
nico202 has joined #nixos
zzamboni has quit [Client Quit]
<mpickering>
Perhaps LnL knows about frameworks?
<LnL>
o/
<LnL>
what's up?
contrapumpkin has joined #nixos
<garbas>
Anybody has an idea how to run nix in multi user mode inside dockers? Or already has a docker image I could reuse
<lassulus>
z
<lassulus>
ups
<halfbit>
nice, its doing the submodule bit now
<halfbit>
thats an improvement
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
<nico202>
Hi, I'm running the first nixos-rebuild after nix-2.0 upstream upgrade (I think mine is still outdated) and nixos-rebuild siwtch does not show any output after "Building paths...." while it keeps the processor to 100%. Running manually nix-build '<nixpkgs/nixos>' --no-out-link -A system shows that things are indeed going on, is it expected?
<infinisil>
BlessJah: halfbit: Actually fetchFromGitHub uses fetchzip when fetchSubmodules is true
<mpickering>
clang is trying to link some libraries by passing the -framework flag, (-framework GDAL specifically). I am assuming now that as GDAL is not in the CMAKE_FRAMEWORK_PATH that I need to do something different to set up a framework or build gdal differently somehow, can you give me any pointers?
<infinisil>
And gchristensen ^^
<BlessJah>
infinisil: that's still difrerent from any other git repository
<mpickering>
Is that already defined in nixpkgs? I couldn't find something like it.
<LnL>
the cmake setup-hook should take care of everything for you
niklob has quit [Ping timeout: 260 seconds]
<mpickering>
gdal is defined but I assumed the GDAL framework was something different
<infinisil>
BlessJah: fetchFromGitHub with fetchSubmodules = true; is just fetchgit with fetchSubmodules = true; if github dies you can just use fetchgit with another git repo
<garbas>
LnL: I've looked at ur images but none of them is multi user installation. What I'm after is sandbox mode.
<BlessJah>
infinisil: and without fetcSubmodules = true?
<fyuuri>
__monty__ : thank you :). It works when I install it temporarily using nix-shell. But globally adding it to system packages with (python36.withPackages(ps: with ps; [ neovim ])) does not work. It does not cause an error, but just seems to have no effect.
<LnL>
yeah, I hacked that part ontop
<garbas>
LnL: is it something I can help clean it up?
<infinisil>
BlessJah: then it's fetchurl with a single revisions being fetched only, which is a lot faster, but the content won't be different than with fetchgit
<infinisil>
fetchFromGitHub is pretty much just a wrapper around github's nice feauture of providing tarballs of every single revision
<LnL>
mpickering: what about something like -DCMAKE_FRAMEWORK_PATH=${qwt}/lib
<BlessJah>
so it'll hash the content (unpacked), not the tarball?
<LnL>
mpickering: err with gdal ofcorse :)
<garbas>
LnL: I was even thinking about wrapping all nix binaries and starting daemon if not already running
<mpickering>
I will try that..
<infinisil>
BlessJah: Yeah, ah and i meant fetchzip instead of fetchurl
<gchristensen>
garbas!
nico202 has quit [Remote host closed the connection]
<infinisil>
(fetchurl would hash the tarball itself)
nico202 has joined #nixos
<BlessJah>
infinisil: I stand corrected.
<garbas>
gchristensen!
<gchristensen>
garbas: nice to see you around ~(˘▾˘~)
<garbas>
gchristensen: this docker stuff is killing me :)
<infinisil>
BlessJah: Well I'm 99% sure with what I said here because it makes the most sense, I didn't test it though
<infinisil>
Well and the fetchFromGitHub source is super simple, what i said about that is correct
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NixOS_GitHub>
[nixpkgs] rycee opened pull request #36394: screen-message: clean up icon-theme.cache (master...fix/sm/icon-cache) https://git.io/vAdQo
NixOS_GitHub has left #nixos [#nixos]
<LnL>
garbas: let me check if I can throw an example together that's not super horrible
TheMente has joined #nixos
<mpickering>
LnL: I think I see the problem now, configure is picking up GDAL from my system - Found GDAL: /Library/Frameworks/GDAL.framework (2.1.3)
<__monty__>
fyuuri: That's odd. I'm not familiar with nixos, just nix so I'm afraid I can't help with that. I'm sure someone else'll jump in and help out.
<garbas>
LnL: tnx. I'm also ok with horrible :)
niklob has joined #nixos
mguex has quit [Ping timeout: 248 seconds]
<fyuuri>
__monty__ thx :) I will ask
mguex has joined #nixos
<fyuuri>
I put (python35.withPackages(ps: with ps; [ numpy toolz ]))
<fyuuri>
(python35.withPackages(ps: with ps; [ numpy toolz ]))
<BlessJah>
gchristensen: I cannot get reliable numbers when testing ssh, sometimes it 100MiB/s on local ethernet and then I start second connection which brings it down to 20MiB/s
<BlessJah>
having Compression yes in ssh_config doesn't help either
<__monty__>
fyuuri: Just the obvious thing first, you did rebuild your system, right?
<fyuuri>
in my configuration.nix and still python3 can not see the packages.
<fyuuri>
yes :)
<infinisil>
fyuuri: Do you have another python installed? what does `which -a python3` say?
<fyuuri>
__monty__ may I ask on which system do you use nix?
<fyuuri>
no only the one python3
<fyuuri>
it shows /runs/current-system/sw/bin/python3
Itkovian has joined #nixos
<__monty__>
I'm still on arch. Been gradually moving stuff over to nix. Just a couple things left so it's basically a matter of laziness now.
<fyuuri>
ok. I am also on arch an moving now :)
<__monty__>
fyuuri: So you added that to systemPackages and you ran nixos-rebuild switch?
<fyuuri>
yes
<infinisil>
fyuuri: during rebuild, are there any collision warnings?
<infinisil>
or something other suspicious
<fyuuri>
no I just rebuilt it again to be sure
<fyuuri>
using nix-shell with this installation expression works fine
vidbina has joined #nixos
<mpickering>
So the next question, how can I sandbox the build so that it doesn't pick dependencies in /Library/Frameworks/? Is that even possible?
hamishmack has quit [Quit: hamishmack]
<fyuuri>
nix-shell -p '(python36.withPackages(ps: with ps; [ neovim ]))' works fine
hamishmack has joined #nixos
nico202 has quit [Quit: Leaving]
<sonarpulse>
cstrahan: left a comment
<sonarpulse>
NIX_HARDENING_ENABLE
<ottidmes>
fyuuri: What does nix-env -q show? Maybe that is overlapping your python installed via systemPackages, or just check which python/python3
<sonarpulse>
or NIX_{BINTOOLS,CC}_WRAPPER_HARDENING_ENABLE is fine with me
<gchristensen>
well I guess the sender just isn't very good at it then
<BlessJah>
yep, but ssh sucks as well
<BlessJah>
ugh
<infinisil>
fyuuri: Why are you using python3.5 for one and python3.6 for the other? I suggest using python3 instead, which will always be the latest python 3 and won't require building the packages yourself
<BlessJah>
I'm so dumb
<gchristensen>
oh?
TheMente has quit [Quit: Leaving]
<BlessJah>
ControlPersist, multiple ssh is actually one ssh
<cransom>
my favorite command i used this week is `mbuffer` for the io spikey loads (also includes network support)
<gchristensen>
oh?
<cstrahan>
Sonarpulse: thanks! will have some more commits here in a sec
<infinisil>
BlessJah: Oh yeah that has tripped me up too in the past
<sonarpulse>
cstrahan: did you decide on an approach re those env vars?
<sonarpulse>
it affects other things
<BlessJah>
I don't have it configured on server on which I started debugging, but on laptop I do have it
<fyuuri>
infinisil thank you. I did not know you could just use 3 instead of 36
<cstrahan>
Sonarpulse: maybe leaning towards the two split variables
<infinisil>
fyuuri: Run `realpath $(which python)` and `nix-build --no-out-link '(import <nixpkgs> {}).python3.withPackages (ps: with ps; [ numpy toolz ])'` (with the python version you're using for the installation). These should have the same /nix/store/... path
<sonarpulse>
cstrahan: cool
<sonarpulse>
yeah I think that's easier
logzet has joined #nixos
alex`` has quit [Quit: WeeChat 2.0.1]
<sonarpulse>
conceptually I understand the one request for hardening which different interfaces act on, but that's harder to implement
<sonarpulse>
cstrahan: also, then we can be more rigid re unknown hardening flags
<sonarpulse>
I had to remove that when I split the wrapper
nico202 has joined #nixos
<sonarpulse>
but that was unfortunate
<sonarpulse>
it would be good to add it back
<nico202>
Ok I was able to switch, now I get error: cannot open connection to remote store 'daemon': executing SQLite statement 'alter table ValidPaths add column ultimate integer': SQL logic error (in '/nix/var/nix/db/db.sqlite')
<BlessJah>
gchristensen: now I tested it properly, single borg-create runs at (up to), 50MiB/s, four of them up to 80 MiB/s
<infinisil>
um, why are there a dozen channels nico202 ?
Itkovian has quit [Ping timeout: 256 seconds]
<gchristensen>
yeah something is very weird there
<BlessJah>
no, all my previous test were skewed because ControlPersist
<sonarpulse>
cstrahan: join #nixos-dev
zzamboni has quit [Quit: Leaving.]
<nico202>
infinisil: those are installed packages .-.
logzet has joined #nixos
<infinisil>
nico202: those aren't installed packages, those are channels, output through the nix-channel command for the specific user
<cstrahan>
Sonarpulse: oh, what's the distinction between #nixos and #nixos-dev? (Is our intent to make #nixos more for usage/help, and #nixos-dev for dev discussions, so the two don't get mixed up?)
<infinisil>
nico202: Usually people only have a single channel, sometimes 2, that's all that's needed
<sonarpulse>
cstrahan: exactly :)
<cstrahan>
Gotcha.
<gchristensen>
nico202: yeah ,can you paste the output (in to a pastebin or gist) nix-channel --list as your user, and as root?
<infinisil>
nico202: alright try running `nix-channel --update` as the IITaudio user, then run nix-info again, hopefully the lots of channels disappear
Itkovian_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
fyuuri: never mind then, the second command (the nix-build --no-out-link) should work though
<nico202>
infinisil: eheh, cannot open connection to remote store 'daemon' ...
<infinisil>
hmm
<infinisil>
nico202: you're on nixos?
<nico202>
yes
<fyuuri>
infinisil: just for clarification: the root in the path means that I installed the stuff systemwide?
ryanartecona has quit [Quit: ryanartecona]
<infinisil>
fyuuri: the /nix/store doesn't belong to anybody, and it doesn't track what is installed
<infinisil>
fyuuri: installation profiles are in /nix/var/nix/profiles, which contains stuff like per-user, and system
<infinisil>
fyuuri: ah, but yeah, the root channel is used by default for all users
* LnL
hides
<infinisil>
At least i thought so
<fyuuri>
thank you!
[0x4A6F] has quit [Ping timeout: 260 seconds]
<infinisil>
nico202: Unfortunately I have no idea how to reset the nix database or something of that sort
romildo has joined #nixos
<nico202>
infinisil: I think I need to boot from an usb and reinstall.. right?
<ottidmes>
I have never used netboot, but is my understanding correct that I could use it to have an in-memory version of NixOS?
<infinisil>
nico202: That might work, given that nix recreates the database on install, which I have no idea if it does it
<ottidmes>
nico202: "The operation --verify verifies the internal consistency of the Nix database, and the consistency between the Nix database and the Nix store."
<fyuuri>
infinisil: I somehow cannot make this second command work, but when I execute (import <nixpkgs> {}).python3.withPackages (ps: with ps; [ neovim ]) it yields a different path than realpath did
<nico202>
infinisil: same error
<fyuuri>
WHen execute it in the nix-repl
<nico202>
both as root and as IITaudio
<fyuuri>
It says derviation and the path ends with -env.drv
<iclanzan>
If I have a derivation `foo`, I can refer to its path by interpolating `foo` in strings, but if I map over a list of deriations this doesn’t work. Does anyone have a clue why?
<infinisil>
nico202: If you have the time I suggest writing a detailed as possible issue here https://github.com/NixOS/nix/issues , collecting as much possible info as you can before trying to reinstall it
<nico202>
infinisil: ok
thblt has joined #nixos
<BlessJah>
gchristensen: I think there is something very wrong with my server (the one I try to debug)
<BlessJah>
gchristensen: with 6x borg-create in paralel I get 20-40MiB/s, but 6 cores are utilized in 100%
<rawtaz>
should i make my NixOS guest VM have SCSI or IDE disks?
<BlessJah>
I'd say scsi, unless you have to use ide (old windows?)
<infinisil>
nico202: nix-info -m output, the channels of all users, the error, what you upgraded from, the contents of /etc/nix/nix.conf
<rawtaz>
either is fine, the host is a mac
<infinisil>
nico202: just some stuff i can think of right now
<garbas>
LnL: tnx... Exactly what I needed
zzamboni has joined #nixos
<infinisil>
fyuuri: Ohhhhh, my mistake, i must've missed pasting this, there's an -E missing in the command
mounty1 has joined #nixos
<ottidmes>
romildo: You are asking how to quote the $, so it becomes a string rather than that Nix tries to evaluates ${QT_HOST_DATA}? If so, you can do so with ''$, so I guess it becomes "''$''${QT_HOST_DATA}"
<rawtaz>
BlessJah: thanks
<infinisil>
fyuuri: after --no-out-link, before the quoted nix expression, an -E should be there
dan_b has joined #nixos
<fyuuri>
infinisil: thx! now it says "only one operation may be specified"
<infinisil>
fyuuri: huh, well whatever, these giving you different paths is probably another symptom of the problem
fendor_ has quit [Ping timeout: 256 seconds]
<infinisil>
fyuuri: can you gist your config? and what's the output of nix-info?
<nico202>
if you think of something missing let me know
<infinisil>
nico202: Thanks a lot!
hamishmack has joined #nixos
<nico202>
infinisil: thank _you_
vaninwagen has quit [Quit: Connection closed for inactivity]
thblt has quit [Ping timeout: 256 seconds]
pkill9 has quit [Ping timeout: 260 seconds]
pkill9_ has joined #nixos
MichaelRaskin has joined #nixos
chisui has quit [Ping timeout: 260 seconds]
niklob has quit [Ping timeout: 268 seconds]
<logzet>
Is there any special reason that nixos-rebuild does output a progress bar or similar like other package managers?
<romildo>
ottidmes, yes, quotation of $ in the literal string. What worked is: '' "\$\''${QT_HOST_DATA}" ''
hiratara has quit [Ping timeout: 245 seconds]
<MichaelRaskin>
lozget: Hopefully with new nix build it will give you a progress indicator with package count
<snajpa->
nice
pkill9_ is now known as pkill9
<logzet>
MichaelRaskin: is nix part of nix 2?
<MichaelRaskin>
Of course, it will just count the packages. Build progress is a complicated thing (worse than just downloading and unpacking)
<MichaelRaskin>
Yes, and it is currently the nix package at master
<logzet>
Over the time you get a feeling how much time it will take based on which major packages are left (former Gentoo user ;) )
<logzet>
So this would more than enough :)
<MichaelRaskin>
Of course, there is a question of making nixos-rebuild use the new commands, as the old one are also available and are needed in many cases
hiratara has joined #nixos
<snajpa->
MichaelRaskin: to see the build progress, will it require a --verbose or something similar? or will the progressbar be redrawn on the last line?
<snajpa->
not like this is anything vital, just curious
<MichaelRaskin>
lozget: Har har har. Especially for you, we have both source-built Chromium, and one-line scripts that also count as packages
<logzet>
snajpa-: I assume via \r
<MichaelRaskin>
snajpa: actually, it just hides the build log.
<MichaelRaskin>
And updates the statistics in-place via terminal control sequences.
simukis has quit [Ping timeout: 240 seconds]
<snajpa->
I sometimes wish there was something like STDPROGRESS :D
<snajpa->
in addition to STDERR/OUT
<logzet>
MichaelRaskin: Nix is currently rebuilding half of my system, that gets me in this Gentoo mood
<MichaelRaskin>
logzet: you can install Nix 2.0 and do a nix-build of your system before nixos-rebuild
<logzet>
snajpa-: I think progress on stdout and another terminal with tail -f is a decent workaround
<snajpa->
I've been meaning to ask, is there any way how to globaly enable --with-dtrace for configure step of packages, which do have it?
<rawtaz>
when setting up partitions, do i have to create a boot partition or is it enough to just make a swap and an LVM partition?
<MichaelRaskin>
That makes nixos-rebuild fast, and the actual build gets a progress meter
<fyuuri>
infinisil: I found the reason. I was because I had python3 in my configuration.nix... I thought I first need to intall python and then the libs. But the command creates the whole environment so I had 2. Thx again for you help!!!
pkill9 has quit [Ping timeout: 268 seconds]
<snajpa->
or more generally, is there any mechanism similar to Gentoo use flags?
<ottidmes>
romildo: Right, I forgot that that quoting of $ only works like that within the context of '' strings, but wouldn't you want: ''''$''${QT_HOST_DATA}''
<infinisil>
fyuuri: ah yes, that's what i meant by do you have another python installed heh
<logzet>
MichaelRaskin: That sounds like a cool idea, how do I get the packages to build? nixos-rebuild dry-build?
Itkovian has joined #nixos
<logzet>
snajpa-: <pkg>.override?
<infinisil>
fyuuri: glad you found it out though :)
<MichaelRaskin>
Well, when I was still using literally NixOS, I think I used -f <nixpkgs/nixos>
<symphorien>
and add the configure flags accordingly
<i-am-the-slime>
Hello there
<ottidmes>
__monty__: Why? If you do not mind me asking. Just curious, so far I have always been using Grub. I have only used syslinux for small disk images.
<i-am-the-slime>
I would like to try this fork of xf86-input-mtrack:
<__monty__>
MichaelRaskin: Don't have any issues with systemd.
<snajpa->
yeah; now if I wanted to enable that for all packages which will have enableDtraceProbes or like, do we have to keep an array of such packages, or can that parsed out easily from nixpkgs?
<snajpa->
bingo!
<snajpa->
thanks
fendor_ has quit [Ping timeout: 248 seconds]
<symphorien>
otherwise you have to use blah.override {enableFoo = true} on an individual basis
<ottidmes>
i-am-the-slime: Package it an overwite the existing package with overrides/overlay?
<logzet>
snajpa-: I dont know this flag, do want to enable it for a specific set of packages?
<__monty__>
ottidmes: When I still used it grub gave me issues from time to time, it's also way too complex for my needs. Syslinux is maintained as part of the kernel so I figure why bother with grub.
<snajpa->
logzet: it would need to be implemented
pkill9 has joined #nixos
<snajpa->
symphorien: so stdenv.config.enableDtraceProbes or something like that would be a-okay?
<i-am-the-slime>
ottidmes: I'm still not too sure about it. I would also have to refer to that package from within my configuration.nix to see if it works.
<symphorien>
snajpa-: but be aware that there ave very few of such flags exist
<logzet>
You should actually be able to alter the configureFlags for the specific packages to add it yourself without the need of extra flags
<logzet>
snajpa-: As a temporary workaround
<symphorien>
so I cannot guarantee you that upstream will be happy if you want to add one
<ottidmes>
__monty__: Yeah, I very much prefer the simplicity of syslinux, but NixOS is doing the work for me, so I cannot complain about that
<symphorien>
snajpa-: on nixos: nixpkgs.config.foo = true
<symphorien>
in configuration.nix
<sonarpulse>
do `nix build` and `nix repl` have the same convention re `-f` defaults?
asuryawanshi has quit [Ping timeout: 240 seconds]
<sonarpulse>
I feel like they don't...
<__monty__>
Anyone have experience booting the nixos live iso with syslinux+memdisk by any chance?
jtojnar has quit [Ping timeout: 252 seconds]
jtojnar_ is now known as jtojnar
<ottidmes>
i-am-the-slime: Is there no option for this that uses this package, or has it not been packaged yet at all (the original, since you talked about a fork)
<snajpa->
symphorien: the question is, which is more appropriate now that recent kernels with bcc tools and all are able to use dtrace probes built into userland software
<rawtaz>
question; in the default configuration.nix, there's a bunch of config items commented out. if we have e.g. # foo = true , does this indicate that foo is considered true by default (and that if i want to disable foo, i should add a line like foo = false ), or is it an example of what i'd put in there if i wanted to enable foo?
<snajpa->
symphorien: global config option, or just enable it for packages which do have it
<snajpa->
as a default
<symphorien>
honestly I don't know
<rawtaz>
its not uncommon for config files to show what's default if not configured explicitly.
<symphorien>
for example ssh has x11 support by default
<ottidmes>
i-am-the-slime: And overwrite xf86_input_mtrack in your nixpkgs overrides/overlays with your newly packaged fork
<snajpa->
symphorien: I would think that, but I'll have more concete numbers when I convert the interpreters we use :)
<symphorien>
nixpkgs has a tendency to take the "on by default" approach
timon37 has joined #nixos
<ottidmes>
__monty__: Let me check, I believe I did something like that on one of my USB sticks
digitalmentat has joined #nixos
<snajpa->
symphorien: now the question is, whether nixpkgs are used on any platform, where default on true wouldn't make sense
<digitalmentat>
has anyone experienced an issue with the hydra-queue-evaluator in which it wedges?
<i-am-the-slime>
But what does it mean to package the fork? Do I do it locally on my system?
<digitalmentat>
we've also seen it crash horribly with malloc() errors when it uses the default db concurrency setting
<__monty__>
ottidmes: Thanks. So far I've only gotten the arch iso to boot. I'm not sure whether the other's are just not compatible or whether I lack the ram (2GB).
<symphorien>
as far as I know nixpkgs is used on darwin, linux, and used to have a now unmaintained fork on a bsd
<snajpa->
all that has use for dtrace probes, awesome
<symphorien>
also some people have tried to use it on cygwin
<snajpa->
ah :D
<symphorien>
but is it not supported at all
<symphorien>
so policy wise, you can overlook it
<pxc>
I think Sander van der Burg used a Windows machine in his demo of Disnix at NixCon 2015 iirc
<symphorien>
regardin linux version, it follows the glibc: 3.4 is the least version supported iirc
<pxc>
it was a trivial example, so it doesn't say much about how much work it would be to actually use Nix for Windows
<MichaelRaskin>
Well, with WSL…
<pxc>
I don't know the current state because I don't have any Windows machines in my life, but the last time I tried it (several months ago, before WSL was released as stable), Nix also worked under the Windows Subsystem for Linux
<pxc>
MichaelRaskin: haha you got me. I shoulda typed something shorter :-)
greglearns has joined #nixos
nico202 has joined #nixos
<nico202>
infinisil: my problem is fixed :) do you know how to get rid of the wrong channels now?
<greglearns>
when I nix-build a rust project, it is always using an OLD rust registry (/nix/store/vz1s9v4k0cypr7y6w10qwcmy202k9iwp-rustRegistry-2017-08-27) How do I update things to use something recent?
<symphorien>
greglearns: on 17.09 ?
<snajpa->
symphorien: we'll see when I get to my first PR with something tangible for a first package
pkill9 has quit [Quit: WeeChat 2.0.1]
<snajpa->
symphorien: thanks for the advice! :)
<greglearns>
I just installed Nix 2.0 today on my mac
pkill9 has joined #nixos
<greglearns>
I was using an older version of nix this morning (before I install nix 2.0)
<symphorien>
greglearns: rust packaging is much better on unstable
<greglearns>
ok. how do I point to unstable?
<symphorien>
now it used the version specified in the Cargo.lock
<ottidmes>
__monty__: Found the relevant USB stick, I did use memdisk from syslinux, but within Grub (heresy, I know... :P), I had gotten many distributions to work, including Windows 10, but not NixOS, but I learned some more about NixOS in the meantime, so I could give it another shot if you would like that
<infinisil>
nico202: Nice!
<rawtaz>
question: why is it that the manual says to use `useradd` to create a normal user after installation, instead of it suggesting you do it in configuration.nix? i did use `useradd` and configuration.nix is not changed to reflect the user. i thought the entire point of NixOS was to do everything in a declarative way.
<symphorien>
if you are on darwin, sudo -i nix-channel --update I guess
<rawtaz>
greglearns: fed up with homebrew?
<infinisil>
nico202: I think just going to /nix/var/nix/profiles/per-user/<theuser>/channels and deleting the weird ones should work
<infinisil>
nico202: or try nix-channel --update first
<infinisil>
nico202: with the relevant users, TTI audio and root
<greglearns>
nix-channel --list returns empty. sounds like I need to add a channel
<symphorien>
greglearns: with sudo
<__monty__>
ottidmes: What distributions did you get memdisk to work with?
<greglearns>
rawtaz I use Nix for development, love it!
<symphorien>
greglearns: nix-channels are not the same for all users, and if a user doesn't have one, root's ones are used
jensens has joined #nixos
<MichaelRaskin>
rawtaz: you can manage users in a declarative way, but fully declarative user management means that password changes need to update hashes in the configuration (and can be rolled back)
<infinisil>
Sonarpulse: johnw: That doesn't sound very good.. Tools shouldn't sacrifice feautures for a nicer interface
<sonarpulse>
as long as I can opt back in to "give me everything" mode
<fyuuri>
I just saw that some neovim plugins expect python3 to be at /usr/bin/python3 ... Is there a more elegant way than a manual symlink?
<rawtaz>
MichaelRaskin: makes sense.. so perhaps it's recommended to manage users the regular way rather than declaratively (mostly to avoid password rollback issues)?
<i-am-the-slime>
thanks
<johnw>
in my environment right now, I use "nix build" as the first-cut, to build what it can, and then I use nix-build
<sonarpulse>
infinisil: see the second part :)
<greglearns>
symphorien I did the ` sudo -i nix-channel --update` ... now what? nix-build still references the old rustRegistry
<infinisil>
yeah
<johnw>
Sonarpulse: I also want -K
<symphorien>
fyuuri: patch them or install them with nixpkgs
<logzet>
MichaelRaskin: <nixpkgs/nixos> did throw some error, "nix build --dry-run $(nixos-rebuild dry-run 2>&1 | tail -n+3)" is a dirty hack, but it's output looks good. I'll try it when the current nixos-rebuild has finished gcc
<ottidmes>
__monty__: Well... I should not have said many, I remember I found examples for many distributions, for me there are only 3 interesting distributions, NixOS (obviously), Arch Linux (my second choice), and Ubuntu (if I want something complete out of the box)
<sonarpulse>
johnw what happend to that and -k ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vAFez
<NixOS_GitHub>
nixpkgs/master 53f057f Joachim Fasting: electrum: 3.0.6 -> 3.1.0
NixOS_GitHub has left #nixos [#nixos]
<nico202>
infinisil: nix-channel --update fails with error: getting status of '/nix/store/xvl178x4nk128mh3ivklfvxylw9wh8mp-virtualbox-5.1.14/bin/VBoxBFE': No such file or directory
<johnw>
Sonarpulse: dunno
<johnw>
all my most used options
<logzet>
MichaelRaskin: I am too lazy to debug the error with <nixpkgs/nixos> ;)
<MichaelRaskin>
rawtaz: in general, /etc/passwd is the user database, and databases are managed as stateful.
<sonarpulse>
i wish i knew who to ping besides nixnut
<sonarpulse>
johnw: at least all these new interfaces are very provisional
<MichaelRaskin>
logzet: maybe it needs -I nixos-config=/etc/nixos/configuration.nix
<sonarpulse>
2.0 is more about the internals than the new CLI
kitemikaze has quit [Remote host closed the connection]
<rawtaz>
MichaelRaskin: in practice that means it's recommended to do it the regular way instead of declaractively, or am i misunderstanding you?
<__monty__>
ottidmes: And you got ubuntu to work with memdisk? Any special options?
<fyuuri>
symphorien: that sounds like quite the hassle.
<nico202>
infinisil: ls /nix/var/nix/profiles/per-user/root/channels/ : binary-caches manifest.nix nixos
kitemikaze has joined #nixos
<MichaelRaskin>
rawtaz: in practice it means that usage patterns and needs vary a lot. If you are reading the installation walkthrough, you are probably new to NixOS, and it is better to play it safe
<symphorien>
in my experience, mixing non nixpkgs things and nixpkgs this often leads to headaches
<nico202>
infinisil: ls /nix/var/nix/profiles/per-user/IITaudio/channels/ : a lot of garbage
<infinisil>
nico202: try deleting this garbage yourself
<ottidmes>
__monty__: I have since removed that one, so I am afraid I couldn't say anymore, but you should be able to find plenty of examples, the problem was that my GPU on my desktop did not run the Ubuntu installer, so I just removed it
<rawtaz>
MichaelRaskin: i am. right, and playing it safe means `useradd`, right? i also found a chapter in the manual now..
<symphorien>
(and besides, this lists packages for 17.09, some other ones are available on unstable)
<MichaelRaskin>
rawtaz: yes. Because messing up password hashing with mutableUsers=false is really annoying.
<nico202>
infinisil: ehm, is it right that channels is a symlink to user-environment? .-.
<i-am-the-slime>
So it seems like the file needs to look very different outside of the context of nixpkgs.
<sonarpulse>
gchristensen: I feel like you would know this; isn't there a way to view log of currently-built thing with `nix build`?
<rawtaz>
MichaelRaskin: totally :D thanks for your input, appreciate it!
<sonarpulse>
like wasn't that part of eelco's talk?
<logzet>
MichaelRaskin: It complains that it does know how to build some paths (maybe because another build process is running or I tried it inside a nix-shell)
<infinisil>
nico202: there's ~/.nix-defexpr/channels/manifest.nix which i think holds the state for nix-channel, try recreating that by moving it somewhere else and updating
<sonarpulse>
and something you'd use for ofborg too?
<__monty__>
ottidmes: Ok, I'll just keep looking into it. Let me know if you ever get nixos working.
<logzet>
MichaelRaskin: Anyway, I'm going to finally go to eat something ;)
<MichaelRaskin>
logzet: that doesn't sound too good, actually, but maybe I miss something about channels
<MichaelRaskin>
Have a nice meal.
<logzet>
I'll look into this another time
zzamboni has quit [Quit: Leaving.]
<infinisil>
nico202: you mean /nix/var/nix/profiles/per-user/IITaudio/channels/ is a symlink? to where?
<logzet>
Enough nixos hacking for today
<logzet>
MichaelRaskin: And thanks
<ottidmes>
__monty__: Could be that I only got Ubuntu working with loopback, here is a big list of distributions with Grub though, some of them are with memdisk though and kernel params remain the same regardless of boot loader, so might be relevant: https://github.com/mgedmin/bootable-iso/blob/master/grub.cfg
<nico202>
infinisil: symbolic link to channels-14-link, that is in turn a symlink to /nix/store/c2rl7zk6qzc6p2fkbxryc2nhk7hb13jm-user-environment
<sonarpulse>
also (shlevy ping you maybe?) the dev machine that doubled as our cache is now done
<sonarpulse>
*down with nix 2.0
<sonarpulse>
something tells me whatever perl thing we were running is not the 2.0 way
<ottidmes>
i-am-the-slime: You should not use with import nixpkgs when you define a package, just use callPackage when you include it in your overrides/overlays
<rawtaz>
how come theres users.extraUsers? why not just use users.users directly? the default configuration.nix file uses the former for some reason
<symphorien>
rawtaz: they are legacy aliases
bitmapper has joined #nixos
bitmapper has left #nixos [#nixos]
<ottidmes>
i-am-the-slime: It builds fine for me (untested, but builds)
<greglearns>
symphorien: one thing strange is that my default.nix needs a "depsSha256" value in it, otherwise nix-build won't build... but yours doesn't have a depsSha256? Also, I just tried rebuilding (I even pasted your cargoSha256, but it seems to be ignored, and the old rustRegistry was still used.
<i-am-the-slime>
weird
<rawtaz>
symphorien: the config file generator probably needs updating then, to use users.users instead
<rawtaz>
symphorien: actually the manual online suggests extraUsers too. it seems to be the preferred one, is that what you meant?
<symphorien>
it really seems that you are using an old nixpkgs
<rawtaz>
symphorien: exactly; users.extraUsers is an alias of users.users. then one would think that users.users is the primary one that should be used - i havent seen anywhere that says why everything points to using users.extraUsers, have you? it seems to be a redundant alias without explained use
<MichaelRaskin>
Too old, mentioned in too many places.
<rawtaz>
okay. but moving forward, if one want to use the "right" one, users.users is it?
<gchristensen>
yep
<i-am-the-slime>
ottidmes: Thank you!
<rawtaz>
ok cool. the other one should be marked deprecated :)
__monty__ has left #nixos [#nixos]
spear2 has joined #nixos
<greglearns>
symphorien: nix (Nix) 2.0
<i-am-the-slime>
but it says: error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
<symphorien>
greglearns: I mean, can you execute: "nix-shell -p nix-info --run nix-info"
<ottidmes>
i-am-the-slime: (pkgs.callPackage ./xf86-input-mtrack { }) in your systemPackages (or better add it in your nixpkgs overrides/overlays)
szicari has quit [Quit: szicari]
<ottidmes>
i-am-the-slime: Ehh, you want it in your nixpkgs anyway in your case, if you want to reuse the multitouch module that is, so you would have to name it the same: xf86_input_mtrack = pkgs.callPackage ...
iMatejC has quit [Remote host closed the connection]
<rawtaz>
will users.users.?.group override the .group="users" that .isNormalUser=true sets?
<gchristensen>
it will append I think
iMatejC has joined #nixos
<i-am-the-slime>
I would do it without the multitouch module I think
<rawtaz>
hm but its the primary group so there's only room for one
<rawtaz>
ah well ill just try it and see :)
<BlessJah>
gchristensen: I've pinpointed the issue btw
iMatejC has quit [Remote host closed the connection]
logzet has quit [Ping timeout: 265 seconds]
<symphorien>
greglearns: well it seems recent enough; I have no explanation for you then, sorry
logzet_ has joined #nixos
<greglearns>
symphorien: any idea who I could follow up with, or how I could proceed?
<i-am-the-slime>
ottidmes: Don't I have to supply a version somehow?
<symphorien>
can you build my default.nix ? If yes, start from my expression to adapt you sources ?
<symphorien>
*your
<ottidmes>
i-am-the-slime: You already did, in your config
iMatejC has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
aszlig has quit [Quit: leaving]
aszlig has joined #nixos
aszlig has quit [Client Quit]
aszlig has joined #nixos
<ottidmes>
i-am-the-slime: nixpkgs does not like versioning pinning, there are a few, but they are exceptions, so that part is basically up to you and how you manage your particular nixpkgs checkout. If it allowed version pinning you would get an explosion in the amount of packages that would have to be build
chisui has quit [Ping timeout: 260 seconds]
<i-am-the-slime>
I see. It works!
<i-am-the-slime>
I probably shouldn't put the file in my home folder though, right?
<i-am-the-slime>
Give me a minute, I want to try it out, will have to restart X. I hope I will be back.
i-am-the-slime has quit [Remote host closed the connection]
<greglearns>
symphorien: thank you for your help. Your having me check the channels I was on (and for root) was what solved it. I hadn't used channels before.
<rawtaz>
when setting users.mutableUsers=false, what do i need to add to retain the root user the same way it is in a completely new install? do i add it in users.extraUsers and with just a hashedPassword, or do i need to put it somewhere else and/or give it more properties?
achambers has joined #nixos
<achambers>
Hi there, is there a way to print the dependencies of a nix package in your store?
<achambers>
and what is it :) , I'm struggling to find it in the docs atm.
<symphorien>
nix-store --query
<symphorien>
See the man page
sanscoeu_ has joined #nixos
<symphorien>
There is --tree iirc
<achambers>
oh thank you
sanscoeur has quit [Ping timeout: 256 seconds]
<rawtaz>
lol i already kinda love nixOS :P even though all i did was fiddle with the configuration.nix. but what i love so far is `nixos-rebuild test` and how it instantly lets me try things out
<achambers>
my favourite thing was when i was trying graphics drivers and i could rollback every time my screen went black
michas_ has joined #nixos
<rawtaz>
yeah that sounds like a great feature :) i think that's pretty doable with opensuse too though but yeah
sanscoeu_ has quit [Ping timeout: 268 seconds]
<MichaelRaskin>
I guess before you mess with mutableUsers, you should also learn build-vm…
xcmw has joined #nixos
MP2E has quit [Remote host closed the connection]
dkao has joined #nixos
<rawtaz>
MichaelRaskin: will do, thanks
MP2E has joined #nixos
halfbit has quit [Quit: WeeChat 2.0.1]
<rawtaz>
so, first snag question, so to speak: was looking at the astroid package at https://nixos.org/nixos/packages.html#astroid , and it's pretty outdated in terms of release version. same goes for other package i checked. if i wanted to run a newer version than this 0.9.1, whats the best way forward - build my own "recipe" for a package of my own, or contacting the maintainer to see if they can update it (if they do, is it a lengthy process to get it updated
i-am-the-slime has joined #nixos
<rawtaz>
this will surely happen every now and then, so im trying to get a feel for what options there are and which one is most effective to get things running. perhaps it's best to contact the maintainer for updating AND just do a local quick compile instead of a full package?
<i-am-the-slime>
hi!
<rawtaz>
hi there
<i-am-the-slime>
it worked but sensitivity was too high
<ottidmes>
i-am-the-slime: If your tests were successful the best thing you could do is to add it to nixpkgs, if the previous version is really broken, replace it, or if it really should be considerd a fork, you could create a new folder for it, or add my-fork.nix in the same folder as the original. Then add it to pkgs/top-level/all-packages.nix and create a pull request, so the community as a whole can benefit from your
<ottidmes>
work.
<ottidmes>
i-am-the-slime: Congratz!
<ottidmes>
i-am-the-slime: Isn't the sensitivity configurable?
greglearns has quit [Quit: Page closed]
michas_ has quit [Ping timeout: 252 seconds]
<i-am-the-slime>
Yes, that's what I did before coming back here
<rawtaz>
so now it's good?
<i-am-the-slime>
I need to go to bed now. Thank you so much ottidmes
<i-am-the-slime>
Yes, now it's good
<ottidmes>
i-am-the-slime: Goodnight!
<i-am-the-slime>
a little too low maybe but I wanted to say thank you and I need to go to bed
<rawtaz>
what did he/she install? a trackpad?
michas_ has joined #nixos
niklob has joined #nixos
i-am-the-slime has quit [Ping timeout: 265 seconds]
tertle||eltret has joined #nixos
<tazjin>
what could cause a NixOS machine to randomly activate old configurations again while unattended?
<tazjin>
I'm slightly spooked :|
<lassulus>
cat on keyboard?
<lassulus>
lucky cat*
michas_ has quit [Quit: No Ping reply in 180 seconds.]
taktoa has joined #nixos
<ottidmes>
rawtaz: yeah, a new driver for the trackpad, the existing one was a bit outdated and did not work properly with the machine in question
michas_ has joined #nixos
<tazjin>
lassulus: unlikely unfortunately, it's a remote VM and it seems to do it at irregular intervals, and to a specific generation
<tazjin>
journalctl mentions that the nix-daemon stops with exit code 1, but nix-daemon's logs don't have any errors 🤔
aszlig has quit [Quit: leaving]
aszlig has joined #nixos
<ottidmes>
tazjin: If you are using grub, you can define to which configuration you want to boot the next boot, maybe something like that is still there and it now keeps loading that particular generation
<tazjin>
ottidmes: the thing is that it does it at runtime, without rebooting
<NixOS_GitHub>
[nix] dtzWill opened pull request #1955: rand() -> random(), since we use srandom(). (master...fix/rand-random) https://git.io/vAFtB
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<ottidmes>
tazjin: I have that error too with nix-daemon whenever it stops
<ottidmes>
tazjin: Maybe auto-upgrade is on?
jensens has quit [Remote host closed the connection]
<tazjin>
ottidmes: not enabled anywhere in the config and it defaults to false, so I think it shouldn't be
<tazjin>
gonna dig around a bit in logs to see if I can find something more useful