gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
sanscoeu_ has joined #nixos
<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
TheMente has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36362: dbeaver: 4.3.3 -> 5.0.0 (master...feature/dbeaver-5.0.0) https://git.io/vA7dR
NixOS_GitHub has left #nixos [#nixos]
<clever> gammarray: *doh*, i never thought to look in the xfce settings, that does work
<gammarray> clever: i'm also using plasma5 and updated the settings input section under touchpad
<clever> applications->settings->mouse&touchpad, simple! lol
abathur has quit [Ping timeout: 240 seconds]
digitus has quit [Quit: digitus]
sanscoeur has quit [Ping timeout: 240 seconds]
<clever> Mar 05 20:03:35 system76 X[2659]: (II) config/udev: removing device Chicony USB 2.0 Camera
<clever> fn + f10 fully unplugs the webcam in the display
<clever> Mar 05 20:03:37 system76 X[2659]: (II) XINPUT: Adding extended input device "Chicony USB 2.0 Camera" (type: KEYBOARD, id 10)
<clever> X also thinks its a keyboard, lol
sanscoeu_ has quit [Ping timeout: 256 seconds]
<clever> Mar 05 20:03:37 system76 kernel: input: Chicony USB 2.0 Camera as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/input/input34
BlessJah has quit [Ping timeout: 240 seconds]
<clever> gammarray: i have a feeling xfce may have been turning it back on, every time i logged in, no mater what i set system wide
abathur has joined #nixos
<Acou_Bass> weird
cmcdragonkai1 has quit [Read error: Connection reset by peer]
<clever> gammarray: it has done similar with my resolution and monitor layotu before
cmcdragonkai1 has joined #nixos
<Acou_Bass> X sees two mouse's for me, check these for weird names
<joepie91> clever: maybe if you wave your arms at the camera in the right way it'll type letters for you?
<joepie91> :P
<Acou_Bass> ahh wait nevermind the first ones a virtual thingy
<abathur> meh
<clever> joepie91: i'm guessing its because some cameras have a button on them, but this one doesnt appear to have any
<Acou_Bass> ↳ Virtual core XTEST pointer ↳ Mouce for Android
<clever> Acou_Bass: is an android device plugged in?
<Acou_Bass> no
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #36250: ansible-lint: init at 3.4.20 (master...add-ansible-lint) https://git.io/vA94z
NixOS_GitHub has left #nixos [#nixos]
<clever> Acou_Bass: and how did you list those?
<Acou_Bass> xinput --list
<clever> odd
<clever> ↳ Eee PC WMI hotkeys id=11 [slave keyboard (3)]
<clever> ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
<clever> ↳ Logitech Logitech G930 Headset id=8 [slave keyboard (3)]
<Acou_Bass> theyre both under ⎡ Virtual core pointer
<clever> rest is fairly standard things
<clever> if i switch over to the laptop...
<clever> ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
<clever> ↳ Video Bus id=7 [slave keyboard (3)]
<clever> ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
<Acou_Bass> ill screenshot mine its quite long :D
<clever> both machines also have 2 power buttons, and the laptop also has a sleep button
<Acou_Bass> i wont complain it all works hehe just thought its interesting how xorg sees them
<clever> `xinput list --long` shows a lot more
jbetz has joined #nixos
<clever> for example, the G930 has Button labels: "Button 0" "Button 1" "Button 2" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right" "Button 3" "Button 4" "Button 5" "Button 6" "Button 7" "Button 8" "Button 9"
<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> nevermind
<mkaito> -_-
<gchristensen> mkaito: sorted?
<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
MP2E has quit [Remote host closed the connection]
MP2E has joined #nixos
<Acou_Bass> go btrfsck gooo
mahalel_ has joined #nixos
pxc has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 256 seconds]
xcmw has joined #nixos
<ottidmes> clever: It just hangs, no related output on either machine (other than (dis)connect messages)
MP2E has quit [Remote host closed the connection]
xcmw has quit [Client Quit]
<clever> ottidmes: even with the --help?, ah, check the /etc/ssh/authorized_keys.d on the server
<ottidmes> clever: even with the --help, and the authorization keys are correct (that would immediately kill it with permission denied (publickey))
<clever> ottidmes: look at the end of the ssh key
<clever> ottidmes: ah, its in the sshd config, one sec
<ottidmes> clever: Nothing there
<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
randallb has left #nixos [#nixos]
pxc has joined #nixos
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e02a9ba3670 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
phdoerfler has quit [Quit: Leaving.]
<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.
pxc1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill closed pull request #36303: kernel-headers: fix asm symlinks (staging...fix/kernel-header-asm-symlinks) https://git.io/vAHgW
NixOS_GitHub has left #nixos [#nixos]
pxc1 has quit [Ping timeout: 248 seconds]
hellrazo1 has joined #nixos
hellrazor has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36366: kernel-headers: remove deprecated and broken asm symlink fixups (staging...fix/kernel-header-asm-symlinks-remove) https://git.io/vA5eF
NixOS_GitHub has left #nixos [#nixos]
pxc has quit [Ping timeout: 256 seconds]
ottidmes has quit [Ping timeout: 252 seconds]
raynold has joined #nixos
<jmob> If you have a shellHook, is there a way to access the command that's passed in --run or --command?
pxc has joined #nixos
jtojnar has joined #nixos
thc202 has quit [Ping timeout: 240 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
shabius has quit [Remote host closed the connection]
shabius has joined #nixos
Lisanna has quit [Read error: Connection reset by peer]
d4g has joined #nixos
yegortim1 has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill pushed 2 new commits to master: https://git.io/vA5fM
<NixOS_GitHub> nixpkgs/master 527eb35 Will Dietz: Merge pull request #36361 from dtzWill/update/brotli-1.0.3...
<NixOS_GitHub> nixpkgs/master c1c502e Will Dietz: brotli: 1.0.2 -> 1.0.3...
NixOS_GitHub has left #nixos [#nixos]
d4g_ has quit [Ping timeout: 248 seconds]
pxc1 has joined #nixos
pxc has quit [Ping timeout: 276 seconds]
pxc1 has quit [Ping timeout: 240 seconds]
pxc has joined #nixos
mounty1 has joined #nixos
vikingman has joined #nixos
vikingman has left #nixos [#nixos]
pkill9 has quit [Ping timeout: 260 seconds]
markus1199 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #35868: meson: 0.44.0 -> 0.44.1 (staging...auto-update/meson-0.44.0-to-0.44.1) https://git.io/vAitD
NixOS_GitHub has left #nixos [#nixos]
markus1189 has quit [Ping timeout: 240 seconds]
pie___ has joined #nixos
pie__ has quit [Ping timeout: 256 seconds]
mbrgm has quit [Ping timeout: 240 seconds]
acertain has quit [Ping timeout: 260 seconds]
acertain has joined #nixos
mbrgm has joined #nixos
abathur has quit [Ping timeout: 260 seconds]
myskran has joined #nixos
NixOS_GitHub has joined #nixos
<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
NixOS_GitHub has left #nixos [#nixos]
lpsmith has quit [Quit: ZNC 1.6.5 - http://znc.in]
lpsmith has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/vA5kg
<NixOS_GitHub> nixpkgs/master 7f26c1b aszlig: nixos/tests/keymap: Remove OCR-friendly SLiM theme...
NixOS_GitHub has left #nixos [#nixos]
sima has joined #nixos
<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.
pxc has quit [Quit: WeeChat 2.0]
sima has quit [Quit: Leaving]
acertain has quit [Ping timeout: 252 seconds]
acertain has joined #nixos
lpsmith has quit [Quit: ZNC 1.6.5 - http://znc.in]
lpsmith has joined #nixos
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?
<myskran> bleh
myskran is now known as abathur
<cbarrett> OK this is relatively clear https://nixos.org/nix/manual/#files
<cbarrett> Not 100% what channels are though yet
<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
<cbarrett> OK this also makes a reasonable amount of sense https://nixos.org/nix/manual/#sec-channels
<cbarrett> I don't understand exactly how a channel is different from having my own checkout (which is what I have right now)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/07bc1ddaceb (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<clever> cbarrett: i already figured that out
<clever> [clever@amd-nixos:~]$ cat .nix-defexpr/test/foo/default.nix
<clever> import /home/clever/apps/nixpkgs
<clever> cbarrett: this generates a foo channel, so i can nix-env -iA foo.hello
<clever> nix will recursively search for either a <name>/default.nix or a <name>.nix, and then create a <name> channel
<cbarrett> neat
<cbarrett> what about /channels?
<clever> any other path elements are silently ignored, so test/channels/channels_root act a bit like namespaces
<cbarrett> some kind of symlink
pxc1 has joined #nixos
<cbarrett> Interesting
<clever> so channels/nixos/default.nix creates a nixos channel
<clever> channels is for the current user
<clever> channels_root is root's
<cbarrett> right
<cbarrett> but isn't the channels file a URL?
<cbarrett> and not a checkout?
<cbarrett> how's that work
<clever> its a nix-env profile
<cbarrett> Not following :(
<clever> nix-channel will call nix-env behind the scenes, to "install" an unpacked .tar.gz into the profile
gillmanash has quit [Ping timeout: 260 seconds]
<cbarrett> ah
<clever> nix-env -p /nix/var/nix/profiles/per-user/root/channels --list-generations
<clever> this tells nix-env to use a different profile, and to list the generations
<clever> nix-env -p /nix/var/nix/profiles/per-user/root/channels -q
<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?
rauno has quit [Ping timeout: 268 seconds]
<elvishjerricco> Oh there's just a module for hoogle. Cool :) https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/development/hoogle.nix
<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
<justan0theruser> Hey, anyone know why "error: syntax error, unexpected WITH, at /dir/shell/default.nix:5:26" using https://github.com/NixOS/nixpkgs/issues/31027 ?
<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
Rusty1_ has quit [Quit: Konversation terminated!]
<elvishjerricco> So `file://` at all is bad
<dalaing> ah
<dalaing> yeah, I can see how that would be bad
<elvishjerricco> eacameron: Ah. You should be able to track down stuff just based on the paths of services and stuff that are failing
<elvishjerricco> I guess I need to custom generate the haddocks or something?
<elvishjerricco> eacameron: Like if you can find a related etc file or something, you can probably track down which NixOS module generated that file
<eacameron> elvishjerricco: I see.
<dalaing> or create some NixOS module that has nginx at the front and hoogle + haddocks behind it, then nudge hoogle to point at those docs?
<elvishjerricco> dalaing: Don't think I understand...
<dalaing> elvishjerricco: https://github.com/ndmitchell/hoogle/issues/236 might be relevant
<eacameron> abathur: The service that's failing I think is mentioned in the upgrade docs for 17.09
<elvishjerricco> eacameron: What's the name of the service?
<eacameron> elvishjerricco: sys-subsystem-net-devices-enp0s3
<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.
jmob has quit [Quit: Konversation terminated!]
<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> elvishjerricco: FTR: nix-shell -p 'let pkgs = import <nixpkgs> {}; src = pkgs.fetchzip { url = "https://github.com/NixOS/nixops/archive/b7d549143451c9cfae6644db89a495de67df1407.zip"; sha256 = "02kj4mziz411zi06d3z65mrb4gv9lfacxxncv17dddhrvf1lmc4x"; }; in (import "${src}/release.nix" {}).build.x86_64-linux'
<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?
tkral_ has quit [Quit: Textual IRC Client: www.textualapp.com]
tkral_ has joined #nixos
rauno has joined #nixos
tkral has quit [Quit: issued !quit command]
tkral_ has quit [Client Quit]
tkral has joined #nixos
ma27 has joined #nixos
<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?
loonquawl has quit [Quit: loonquawl]
<justan0theruser> why am I failing to build? ~/p/bar has setup.py https://hastebin.com/raw/olebexotir
MercurialAlchemi has joined #nixos
<fearlessKim[m]> justan0theruser: do you use buildPythonPackage ?
orivej has joined #nixos
<justan0theruser> fearlessKim[m]: yes
<justan0theruser> nix-build bar
pjan has quit [Remote host closed the connection]
<fearlessKim[m]> justan0theruser: silly question but is there a setup.py xD ?
<justan0theruser> "~/p/bar has setup.py"
<fearlessKim[m]> what's the whole derivation ?
<justan0theruser> sorry noobie, what do you mean?
<justan0theruser> I'm a noobie*
<fearlessKim[m]> nix-build expects a package definition, sthg like https://github.com/teto/nixpkgs/blob/ns_merge/pkgs/applications/misc/khal/default.nix
<fearlessKim[m]> it won't work with just a setup.py you need to specify your dependencies
<justan0theruser> you mean what I pasted?
abathur has quit [Quit: abathur]
zzamboni has quit [Quit: Leaving.]
<fearlessKim[m]> justan0theruser what is your bar.nix / default.nix ?
pie___ has quit [Ping timeout: 256 seconds]
<justan0theruser> oh oops, I mixed up what I pasted
<justan0theruser> thats the default.nix
<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
<fearlessKim[m]> just be wary
<justan0theruser> thanks
zzamboni has joined #nixos
chisui has joined #nixos
reinzelmann has joined #nixos
hotfuzz has joined #nixos
mounty1 has quit [Ping timeout: 240 seconds]
jtojnar has joined #nixos
hotfuzz_ has quit [Ping timeout: 276 seconds]
siel has quit [Remote host closed the connection]
siel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #35844: jquery & jquery-ui: Move to nixos/lib/testing/ (master...jquery-mv) https://git.io/vA67P
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master a88a712 adisbladis: nodejs: Set correct meta.position attribute
<NixOS_GitHub> [nixpkgs] adisbladis pushed 4 new commits to master: https://git.io/vA5nO
<NixOS_GitHub> nixpkgs/master 43cf893 adisbladis: nodejs: Add updater script
<NixOS_GitHub> nixpkgs/master e1bd5b3 adisbladis: nodejs: Add release keys update script
NixOS_GitHub has left #nixos [#nixos]
aarvar has quit [Ping timeout: 240 seconds]
siel has quit [Ping timeout: 256 seconds]
siel has joined #nixos
Arcaelyx_ has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
taktoa has quit [Ping timeout: 260 seconds]
Arcaelyx has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 8f38b1c adisbladis: go-ethereum: 1.8.1 -> 1.8.2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vA5cO
gour_ has joined #nixos
siel has quit [Ping timeout: 265 seconds]
sigmundv has joined #nixos
<gour_> eqyiel: hello, if/when you have some time to help with circe-notifications...
siel has joined #nixos
mounty has quit [Ping timeout: 240 seconds]
leat has quit [Ping timeout: 248 seconds]
siel has quit [Ping timeout: 240 seconds]
mounty has joined #nixos
siel has joined #nixos
siel has quit [Changing host]
siel has joined #nixos
Itkovian has joined #nixos
jensens has joined #nixos
uptime is now known as robot
<chisui> Hey, I just tried to run stack2nix but it crashes on me. Running stack build produces a similar error. I have checked it with two different projects and both produce this error https://gist.github.com/chisui/b8faa111750b04947b2028d4b97b8d60#file-stack2nix
zzamboni has quit [Quit: Leaving.]
siel has quit [Ping timeout: 240 seconds]
Tucky has joined #nixos
zzamboni has joined #nixos
<infinisil> chisui: I think stack2nix got reworked into a better code base recently, you might wanna try with the latest version from master
<chisui> I'm guessing that the error will be there as well as long as they try to call stack internally
<infinisil> Pinging domenkozar as one of the main contributors of stack2nix
sigmundv has quit [Ping timeout: 248 seconds]
<clever> it no longer calls stack
siel has joined #nixos
<Izorkin> How to build custom iso with nix 2.0 ?
<infinisil> Izorkin: Have a look at https://nixos.wiki/wiki/Creating_a_NixOS_live_CD
<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
<clever> mfiano: https://nixos.org/nixos/options.html#nix.readonlystore
<mfiano> i am wondering how i managed to do that 3 out of 4 times
<clever> mfiano: 2 is normal, and id recomend you make sure its always 2, remove readOnlyStore from your configuration.nix
* etu is on nix 2.0 :o
<mfiano> I definitely did not set that. Just reading it now for the first time, and the configs are identical
<infinisil> Izorkin: I haven't played with nix 2.0, but I'm sure it shouldn't be too hard to figure it out how to adapt it with the man page
<clever> mfiano: can you double-check to confirm that?
<mfiano> clever: just grepped and it found nothing
<mfiano> I am positive I never set that myself
siel has quit [Remote host closed the connection]
civodul has joined #nixos
<clever> mfiano: can you gist the contents of /run/current-system/init from both the 1 and 2 system?
<mfiano> clever: I loaded my config in nix-repl and it says true for that option
<mfiano> sure
lewo has quit [Remote host closed the connection]
lewo has joined #nixos
zzamboni has quit [Quit: Leaving.]
cmacrae has joined #nixos
<alloo> /leave
<clever> mfiano: what is the output of `mount` on the system with 1 mount?
Mateon1 has quit [Ping timeout: 240 seconds]
alloo has quit [Quit: leaving]
Mateon1 has joined #nixos
<clever> mfiano: is that a raspberry pi?
<mfiano> no it's a desktop
<mfiano> oh sorry, no
<clever> rootfs on an sd card?
<mfiano> it's a laptop :)
<mfiano> yes
<mfiano> it has eMMC internal storage
<clever> still using grub?
<mfiano> yes
<clever> what is the output of `cat /proc/cmdline` ?
asuryawanshi has joined #nixos
<mfiano> BOOT_IMAGE=(hd0,gpt2)//kernels/28xyacziq8yaqprkxacpn3fbxicnw2gv-linux-4.14.23-bzImage systemConfig=/nix/store/zjwbp3x953rm37wvmx18xpks56is4acc-nixos-system-djinn-18.03pre130558.7270f2139ae init=/nix/store/zjwbp3x953rm37wvmx18xpks56is4acc-nixos-system-djinn-18.03pre130558.7270f2139ae/init loglevel=4
<clever> yeah, that should be working...
<clever> mfiano: what about `findmnt --noheadings --output OPTIONS /nix/store` ?
mounty1 has joined #nixos
leat has joined #nixos
<mfiano> rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=259,subvol=/nix-store
<clever> what about the configuration.nix section for mounting /nix/store at bootup?
zzamboni has joined #nixos
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''
siel has quit [Remote host closed the connection]
<clever> mfiano: thats what types.lines does
<mfiano> I'm not familiar...
zzamboni has quit [Ping timeout: 240 seconds]
<clever> mfiano: thats the type code for sessionCommands
<mfiano> I don't know what that means yet. I'll read a bit about that type
<clever> nix will automatically concat each of the strings, and seperate them with \n's
<clever> just use the imports list to refer to filea and fileb
<mfiano> hmm that has not been my experience
<mfiano> I'll play around, thanks
<clever> mfiano: the source behind types.lines
<mfiano> thanks
siel has joined #nixos
<mfiano> Thanks, looks like I was doing something wrong before. Works great now and this simplifies my config greatly
siel has quit [Ping timeout: 245 seconds]
chocopuff has joined #nixos
siel has joined #nixos
triangles has joined #nixos
hamishmack has quit [Remote host closed the connection]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nick_l has joined #nixos
hamishmack has joined #nixos
Itkovian has joined #nixos
thc202 has joined #nixos
knupfer has joined #nixos
Itkovian has quit [Client Quit]
jensens has quit [Remote host closed the connection]
zzamboni has joined #nixos
gour__ has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
<sphalerit> hyper_ch: do you know of a workaround for the tmux issue?
gour_ has quit [Ping timeout: 256 seconds]
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master eae4965 Robert Schütz: Merge pull request #36228 from tw-360vier/fix-linkchecker...
<NixOS_GitHub> nixpkgs/master 93752a8 Thorsten Weber: linkchecker: 9.3 -> 9.3.1...
<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
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
atu1 has quit [Ping timeout: 252 seconds]
<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)
Arcaelyx_ has quit [Ping timeout: 265 seconds]
<risci> some things cannot be deterministic
<risci> hmm
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/eae4965117a (from 67 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<risci> what are NIX devs currently working on
<risci> ?
<mpickering> clever: Thanks, the right flag to set was NIX_CFLAGS_COMPILE in preConfigure it seems
<risci> is there a roadmap
triangles has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
atu1 has joined #nixos
pareidolia has joined #nixos
triangles has joined #nixos
<pareidolia> I've been using Nix standalone for a while, can I reuse the /nix store when I start using NixOS or do I have to wipe it
<pareidolia> Is there an intented migration path?
TweyII has joined #nixos
TweyII is now known as Guest89025
triangles has left #nixos [#nixos]
<infinisil> pareidolia: you can totally do that, nix doesn't build paths that are already there, so it reuses as much as it can
triangles42 has joined #nixos
coconnor has quit [Ping timeout: 240 seconds]
<pareidolia> infinisil: What about permissions? Presently files aren't owned by root:root
coconnor has joined #nixos
<infinisil> pareidolia: the nix store doesn't have permissions
<clever> pareidolia: and you can just chown -R the whole thing over for the most part
<pareidolia> It's the "most part" I'm worried about
<infinisil> Ah I see..
<pareidolia> chown -R root:root /nix/store will be ok I guess
<clever> pareidolia: /nix/var/nix/gcroots/per-user/foo and /nix/var/nix/profiles/per-user/foo is the only parts that are not owned by root
<pareidolia> Okay!
<clever> drwxr-xr-x 2 clever users 2 Oct 11 2015 /nix/var/nix/gcroots/per-user/clever
<clever> drwxr-xr-x 3 clever users 18 Mar 1 10:07 /nix/var/nix/profiles/per-user/clever
<clever> those directories are owned by the user they are named after
<clever> drwxrwxrwt 6 root root 6 Apr 24 2016 /nix/var/nix/gcroots/per-user
<clever> drwxrwxrwt 8 root root 8 Jun 18 2016 /nix/var/nix/profiles/per-user
<clever> the directories are also 777
<pareidolia> I'll be able to reuse my environment as long as the UID matches between the systems
<clever> if /etc/passwd/shadow are left intact, nix will just keep them
<clever> though you can also delete them, and just set the uid setting in configuration.nix
<triangles42> Hi! First things first: `nix-shell -p nix-info --run nix-info` yields `system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.16, channels(tri): "", channels(root): "nixos-17.09.3129.1dcd022f01b", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`.
davidlt_ has joined #nixos
<triangles42> I've got two problems:
<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
<clever> mfiano: try manually running ssh as the same user the backup runs as
<mfiano> that's the thing...it is running as the same user
<triangles42> clever: Sorry. I didn't read that.
<clever> mfiano: and what is the exact error?
Synthetica has joined #nixos
<triangles42> I just tells me to run a `nix-prefetch-url` command if I comply with the license.
<mfiano> clever: Remote: mfiano@chimera: Permission denied (publickey).
<triangles42> Well...
<triangles42> clever: Thanks.
<mfiano> in the script i even did echo `whoami` to confirm it runs as mfiano, just as line 18 specifies
<clever> mfiano: ah, and if you run it normally with -v, what does it print?, can you pastebin that?
<Lisanna_> oh wow, 18.03 is out?
<clever> mfiano: and are you using an ssh agent?, is ~/.ssh/id_rsa encrypted?
<infinisil> Lisanna_: nah
<Lisanna_> nah?!
<nick_l> Lisanna_: it's just that no weird stuff is going to be done to it.
<Lisanna_> ...b-but there's a github branch for it ):
<infinisil> Lisanna_: it just got branched off, it will be released at the end of march
<mfiano> clever: i am running ssh-agent, and i am not using rsa keys, ed25519 in another location as specified in my ~/.ssh/config
<nick_l> Lisanna_: i.e. a process of making it ready for releas.e
<Lisanna_> awhh ):
<infinisil> Lisanna_: I mean, the version got changed, but not branched off yet
<clever> mfiano: are the keys encrypted?, the backup script is probably not connecting to the agent
<mfiano> clever: in a shell i am able to ssh fine to the same host using pubkey auth
<mfiano> ah hmm
<clever> mfiano: the value of $SSH_AUTH_SOCK likely doesnt match up, so it cant use your agent
<mfiano> I believe it, but I don't see why other pc's are working fine with the same setup afaik
<mfiano> How would I solve that?
<clever> mfiano: echo $SSH_AUTH_SOCK in the bash script on all machines, and in shells, and see if they diff or match up
triangles42 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<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!...
<NixOS_GitHub> nixpkgs/master 40f9a3e Eelco Dolstra: Merge pull request #36360 from dtzWill/fix/nix-use-brotli-for-sanity...
NixOS_GitHub has left #nixos [#nixos]
ciil has joined #nixos
ixxie has joined #nixos
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.
<ottidmes> Phillemann: This could help: https://github.com/bennofs/nix-index
<clever> Phillemann: ah, flac doesnt contain a libflac.so
jensens has quit [Ping timeout: 260 seconds]
<Phillemann> clever: Not directly at least. Scanning nixpkgs, I see some usage of ${flac.out}/lib/..., but I don't understand what that means.
<aminechikhaoui> Phillemann: seems it's in flac.out
<clever> Phillemann: thats the out output, rather then the default one
<clever> [clever@amd-nixos:~/apps/syncplay]$ ls /nix/store/f8f2jhfkn3jj3skdvs29zr8x9ilk21h9-flac-1.3.2/lib/
<Phillemann> Oh, indeed that works.
<clever> libFLAC.la libFLAC++.la libFLAC.so libFLAC++.so libFLAC++.so.6 libFLAC++.so.6.3.0 libFLAC.so.8 libFLAC.so.8.3.0
zzamboni has quit [Ping timeout: 240 seconds]
<clever> Phillemann: ah, its libFLAC, not libflac
<clever> and yeah, its in .out
<Phillemann> Yes, exactly :D
<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: nix 2.0 auto-detects that, so nixos stopped setting NIX_REMOTE
<clever> which broke the 1.11 nix libraries
<mfiano> I didn't think I was on Nix 2.0
<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
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] frontsideair opened pull request #36373: nodejs: 9.6.1 -> 9.7.1 (master...nodejs-9.7.1) https://git.io/vA5P0
NixOS_GitHub has left #nixos [#nixos]
<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
<nixer101> clever: I see, thank you!
alex`` has quit [Ping timeout: 265 seconds]
<TweyII> mfiano: services.xserver.libinput = { enable = true; additionalOptions = ''Option "TappingButtonMap" "lmr"''; }
<etu> TweyII: I would't say that adding features is a "change" in that way
<mfiano> TweyII: Thanks!
<TweyII> etu: I think it's more that the existing interface might get rearranged to fit them in
<etu> Well well :)
<etu> Doesn't matter too much
<etu> Just might confuse people
<mfiano> clever: Did you ever solve this? I get that in dmesg at times. https://botbot.me/freenode/nixos/2016-02-16/?msg=60146041&page=6
<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.
<nick_l> How do I install kalarm?
Rusty1_ has joined #nixos
Lisanna has joined #nixos
<nixer101> nick_l: then either put it into configuration.nix, or do $nix-env -i
<nixer101> nick_l: or #nix-env -i, if you prefer that its stored in global root profile.
<hyper_ch2> nixer101: life goes on even without being registered on reddit :)
nixer101 has quit [Quit: Konversation terminated!]
peacememories has joined #nixos
<srk> is it possible to tell nixops to only use nix-copy-closure instead of downloading stuff on target machines?
<srk> in case targets don't have internet access
Lisanna has quit [Ping timeout: 240 seconds]
<mingc> Is there no chromium binary for current nixos-unstable?
Lisanna has joined #nixos
<mingc> My machine started compiling chromium when I tried to nix-env -iA nixos.chromium
iyzsong has joined #nixos
<mfiano> Is there a fix in unstable for the tmux bug yet?
<LnL> that's possible
<LnL> mfiano: it updated a few hours ago, I think it should be in there
<mfiano> LnL: Ah do you know what commit added it, because I actually updated about 5 hours ago and didn't get fixed
<LnL> did you reboot?
<mfiano> yes
<mfiano> I'll update again
<LnL> mfiano: 88530e02b6f
<mfiano> Has anyone notied the download progress text is all garbled in some recent unstable update?
Lisanna has quit [Remote host closed the connection]
<Synthetica> Only on nix 1.x I believe
<Synthetica> Updated to 2 and the problem disappeared
<Synthetica> (Your mileage may vary)
<mfiano> Ok
<LnL> I know about an issue when using 2.0 client with a 1.11 daemon
<LnL> or the other way around, don't remember
Neo-- has joined #nixos
<Synthetica> mfiano: Yeah, that's the exact issue I also had
<mfiano> Ok hopefully fixed after this upgrade/reboot then
<ottidmes> mingc: Did you happen to overwrite nodejs in your nixpkgs overrides/overlay?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #36375: chromium, google-chrome: fix escaping of commandLineArgs (master...commandLineArgs-escaping) https://git.io/vA5SV
NixOS_GitHub has left #nixos [#nixos]
<mingc> ottidmes: I don't think so..
<nick_l> nixer101: package is installed, but it doesn't put kalarm* on my PATH
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 0e6fc5c Jan Tojnar: gnome3.bijiben: 3.27.1 → 3.28.0
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vA5SX
<nick_l> How do I install kalarm such that it ends up in $PATH?
<nick_l> I added kdeApplications.kalarmcal to my configuration.
<nick_l> But that was not enough.
<ottidmes> mingc: I know of a way to figure out what the cause is it diverging from the cache, but it takes some effort
<Synthetica> nick_l:
<Synthetica> What did you do exactly?
Lisanna has joined #nixos
<nick_l> Synthetica: add it to configuration.nix, nixos-rebuild switch
<nick_l> Synthetica: and the kalarm<tab>
<nick_l> Synthetica: and then kalarm<tab>
<nick_l> Synthetica: try it yourself; it won't work.
<Synthetica> Trying now @nick_l
<ottidmes> mingc: install haskellPackages.nix-diff and then go to https://hydra.nixos.org/search?query=pkgs.chromium if you are on 17.09 check https://hydra.nixos.org/job/nixos/release-17.09/nixpkgs.chromium.x86_64-linux
<mingc> ottidmes: I found I can successfully install chromium using `nix-env -f https://github.com/NixOS/nixpkgs/archive/cc4677c36ee8d880e881459ad114fd2224b3ac1c.tar.gz -i chromium`
<mingc> The commit hash refers current nixos-unstable
<ottidmes> mingc: Yeah, but that is its source
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ottidmes> mingc: You are interested in the .drv file (basically the low level description how to build a package)
<srk> heh, was wondering about the garbled output on nixos-rebuild
<ottidmes> mingc: Ow, so that worked for you?
<mingc> Yeah, I can install chromium using that command
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #36364: make-bootstrap-tools: preserve coreutils symlinks (master...fix/bootstrap-coreutils-symlinks) https://git.io/vA7Fe
NixOS_GitHub has left #nixos [#nixos]
<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
pie_ has quit [Ping timeout: 256 seconds]
thblt has quit [Ping timeout: 240 seconds]
fendor has joined #nixos
nico202 has quit [Quit: Leaving]
jtojnar has quit [Ping timeout: 256 seconds]
ajp has quit [Ping timeout: 260 seconds]
thblt has joined #nixos
ajp has joined #nixos
Jackneilll has joined #nixos
jtojnar has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] oxij opened pull request #36377: tree-wide: fix pulseaudio references; fix SDL expressions (master...pkgs/fix-pulseaudio-references) https://git.io/vA57X
Jackneill has quit [Ping timeout: 240 seconds]
pie_ has joined #nixos
ma27 has joined #nixos
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?
civodul has joined #nixos
<makefu> andrewrk: https://nixos.wiki/wiki/FAQ#I.27m_trying_to_install_NixOS_but_my_Wifi_isn.27t_working_and_I_don.27t_have_an_ethernet_port
<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> xnaveira[m]: no idea...
reinzelmann has quit [Quit: Leaving]
<hyper_ch2> devsteff: to change channel use like nix-channel --add https://nixos.org/channels/nixos-unstable nixos
<devsteff> I mean for package overrides
<devsteff> Where do they belong?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] limeytexan opened pull request #36379: perlPackages.Socket: 2.020 -> 2.027 (master...perlPackages-Socket) https://git.io/vA5pX
NixOS_GitHub has left #nixos [#nixos]
<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"
cmacrae has quit [Ping timeout: 256 seconds]
<clever> gchristensen: lol
<clever> mfiano: are you using mkForce in either file?
<mfiano> clever: no
<clever> mfiano: can you gist all involved files?
<goibhniu> xnaveira[m]: for development, check out nix-shell and nixos-container
<devsteff> hyper_ch2: and with only nix installed, not the whole os, there is no configuration.nix so where should i insert my package overrides
<clever> devsteff: ~/.config/nixpkgs/config.nix, { packageOverrides = pkgs: { ... }; }
<mfiano> clever: sec
<hyper_ch2> devsteff: no idea
<hyper_ch2> using nixos is just easier :)
<devsteff> oh thanx @all
<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
fendor has quit [Ping timeout: 260 seconds]
<hyper_ch2> ah :)
<mfiano> clever: with this line, nix-repl says the value is [ 22 ] and not [ 8080 20 ]. However if you check out cfg/network.nix in that repo it is correct if i uncomment that line there: https://github.com/mfiano/nixos-config/blob/master/machines/djinn.nix#L34
<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
fendor has joined #nixos
<clever> mfiano: what is in configuration.nix?
<mfiano> it's a link to machines/djinn.nix
<clever> mfiano: nix-instantiate --find-file nixos-config says what?
<hyper_ch2> clever: I guess that's also settable in the configuration.nix
<clever> hyper_ch2: boot.kernelParams = [ "zfs.zio_taskq_batch_pct=50" ]; for ex
<dtz> ottidmes: if you figure out why I'd be interested, haha :).
xcmw has joined #nixos
<hyper_ch2> clever: I'll have to try... setting it to 8Gig should be fine I guess
<clever> hyper_ch2: i think it defaults to half your ram
<clever> also
<clever> hyper_ch2: arcstat.py -f time,read,dmis,dhit,dh%,mrug,mru,mfu,mfug,mread,c,ph%,pm%,mm%,miss,hits,mhit,mh%,mmis,hit%,eskip,arcsz 10
<hyper_ch2> hmm, I'll read out
<LnL> clever: what's that task queue setting? Don't think I've messed with that before
<clever> hyper_ch2: c is the goal for how big the arc should be, respecting zfs_arc_max, arcsz is how big it currently is
<mfiano> clever: cancel that. the service was erroring and i had to reboot. thanks anyway
<clever> LnL: i forget what it does now, but thanks to nix, years worth of hacks just pile up, lol
rindvieh has joined #nixos
halfbit has joined #nixos
<LnL> heh
<clever> LnL: nothing gets lost, even if the hardware fails!
<hyper_ch2> clever: I'll have a look at it... not at my notebook currently
<clever> is that a good thing or a bad thing? lol
erasmas has joined #nixos
<clever> hyper_ch2: `arcstat.py -v` will also give a description of every column
acertain has quit [Ping timeout: 252 seconds]
<hyper_ch2> clever: not a good thing... being forced to use that os-you-shouldn't-name
<clever> hyper_ch2: was refering to how you dont loose years worth of hacks on nixos
<clever> hyper_ch2: also, ive been writing this util to monitor zfs better: https://github.com/cleverca22/arcstats
<clever> hyper_ch2: when combined with datadog, you get https://imgur.com/a/venfE
<hyper_ch2> loose years worth of hacks?
<hyper_ch2> not sure what you mean
<clever> 2018-03-06 11:05:05 < clever> LnL: i forget what it does now, but thanks to nix, years worth of hacks just pile up, lol
<hyper_ch2> :)
<clever> hyper_ch2: all the random tweaks you make to an os, that would normally have been lost after a reinstall
<clever> they just pile up and never go away :P
<hyper_ch2> you should merge them to nixpkgs :)
<hyper_ch2> btw, you do run quite some servers right?
<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
<hyper_ch2> old news :)
<hyper_ch2> europe is a bit slow in some things
mkoenig has joined #nixos
<gchristensen> evidently 5 minutes slow
romildo has quit [Quit: Leaving]
<fearlessKim[m]> well it's the old world :)
aminechikhaoui has quit [Ping timeout: 256 seconds]
cmacrae has joined #nixos
<Synthetica> That's soooo 5 minutes ago
aminechikhaoui has joined #nixos
<gchristensen> Synthetica: you must be not in central europe, then
michiel_l has joined #nixos
<Synthetica> gchristensen: As I understand it, it's all of continental Europe?
freeman42x]NixOS has joined #nixos
<gchristensen> oh, yeah probably :)
<Synthetica> In which case: "Wow, sci-fi from the future space year of five minutes from now"
nick_l has joined #nixos
loonquawl has joined #nixos
sphalerite_ is now known as sphalerite
<hyper_ch2> so, if you tell me the lotto numbers, because of the time delay in Europe I still can fill in the ticket and win the lottery?
<Synthetica> Basically
<Synthetica> Gonna be rich
babariviere has joined #nixos
babariviere has quit [Client Quit]
Excape has quit [Ping timeout: 260 seconds]
babariviere has joined #nixos
babariviere has quit [Client Quit]
<hyper_ch2> €€€ :)
<andrewrk> makefu, I think you meant to ask somebody else?
<andrewrk> I have nixos working fine
<andrewrk> it seems that andrew_k is my doppelganger
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] xeji opened pull request #36380: xen 4.8: add xsa security patches 252-256 (master...xen-4-8-xsa) https://git.io/vAdTi
NixOS_GitHub has left #nixos [#nixos]
atu1 has quit [Ping timeout: 256 seconds]
leat has quit [Ping timeout: 255 seconds]
phdoerfler has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin deleted yegortimoshenko-patch-1 at 5905fe0: https://git.io/vAdkg
NixOS_GitHub has left #nixos [#nixos]
fresheyeball has joined #nixos
<fresheyeball> anyone out there using nix for python development?
alex`` has quit [Ping timeout: 240 seconds]
<gchristensen> for sure, (but not me)
Myrl-saki has quit [Ping timeout: 256 seconds]
<fresheyeball> gchristensen: know anyone? I have never used python before (more of a haskell guy), and I could use advice.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 4bd69fd John Wiegley: coqPackages.bignums: Change expression to match other Coq packages...
<NixOS_GitHub> [nixpkgs] jwiegley pushed 2 new commits to master: https://git.io/vAdkh
<NixOS_GitHub> nixpkgs/master 9186aa1 John Wiegley: coqPackages.QuickChick: use fetchFromGitHub
NixOS_GitHub has left #nixos [#nixos]
<ixxie> fresheyeball: I kinda do I guess
<ixxie> although honestly not really because I still need to package a bunch of stuff to make my default.nix work xD
zzamboni has joined #nixos
sonarpulse has joined #nixos
<Synthetica> I mostly just put something like
<Synthetica> #! /usr/bin/env nix-shell
<Synthetica> #! nix-shell -i python -p "with python3Packages; [ephem python]" xorg.xbacklight
<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`
mkoenig_ has joined #nixos
aarvar has joined #nixos
<rupert> They used https://github.com/holidaycheck/nix-remote-builder to get a local VM
<rupert> But with Nix 2.0 they get the following
<kaychaks> what's the way to install jupyter via nix in OS X.
<rupert> $ nix build \
<rupert> > '(with import <nixpkgs> { system = "x86_64-linux"; }; runCommand "foo" {} "uname > $out")' \
xeji has joined #nixos
<rupert> > --builders 'ssh://nix-docker x86_64-linux'
<rupert> [1 copied (0.0 MiB), 0.0 MiB DL]
<rupert> error: a 'x86_64-linux' is required to build '/nix/store/ccgj29mvvafm36iymnihf5spc11znvqs-foo.drv', but I am a 'x86_64-darwin'
<kaychaks> should I try not using nix 2
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 346e68d Michael Raskin: Merge pull request #36380 from xeji/xen-4-8-xsa...
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vAdtl
<NixOS_GitHub> nixpkgs/master 73dbc73 xeji: xen 4.8: add xsa security patches 252-256
NixOS_GitHub has left #nixos [#nixos]
iyzsong has quit [Ping timeout: 255 seconds]
mkoenig has quit [Ping timeout: 256 seconds]
<rupert> Any ideas how to get remote builds working with Nix 2.0 on OSX?
<mpickering> Is "enableParallelBuilding" known to be broken on darwin?
cmacrae has quit [Remote host closed the connection]
zzamboni has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 1bd790d Michael Raskin: Merge pull request #36275 from oxij/lib/maintainers-list...
<NixOS_GitHub> nixpkgs/master 610b5b8 Jan Malakhovski: rename lib/maintainers-list.nix into maintainers/maintainer-list.nix...
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 3 new commits to master: https://git.io/vAdtN
<NixOS_GitHub> nixpkgs/master 1d4f3fa Jan Malakhovski: stdenv: check-meta: fix fallout from #36119
NixOS_GitHub has left #nixos [#nixos]
<mpickering> It seems that many cmake projects are missing files for me unless I turn it off
<Dezgeg> sounds like your project's cmake file has broken dependencies for parallel building
fendor has quit [Ping timeout: 268 seconds]
aminechikhaoui has quit [Ping timeout: 240 seconds]
Tucky has quit [Remote host closed the connection]
<mpickering> not my projects :P all things already in nixpkgs
<mpickering> it seems that they somehow work on nixos though
sonarpulse has quit [Ping timeout: 240 seconds]
pkill9_ has joined #nixos
mbrgm has quit [Quit: ZNC 1.6.5 - http://znc.in]
<Dezgeg> well it's possible there are some packages that break under a faster machine/more cpus with broken dependencies in makefiles
mbrgm has joined #nixos
dnovosel has joined #nixos
aminechikhaoui has joined #nixos
<das-g[m]> I'm trying to run Pentaho Data Integration (a.k.a. PDI, probably a.k.a. "kettle"). On Ubuntu, it requires `libwebkitgtk-1.0.0`.
<das-g[m]> And indeed, if I try on NixOS, it complains:
<mpickering> I will send some PRs if I eventually get qgis to build on darwin
<das-g[m]> WARNING: no libwebkitgtk-1.0 detected, some features will be unavailable
<mpickering> as it's a nightmare to install
leat has joined #nixos
mbrgm has quit [Client Quit]
<das-g[m]> Do I have any chance of getting PDI to run on NixOS or should I just default to a Ubuntu VM?
<goibhniu> das-g[m]: what's PDI?
<das-g[m]> (NixOS offers a 2.x version of libwebkitgtk.)
<das-g[m]> Pentaho Data Integration
<goibhniu> ah sorry, you said above
<das-g[m]> no problem
<srhb> das-g[m]: Assuming the issue is that it really does need a 1.0 version, you can package that and feed it that as a dependency.
mbrgm has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bgamari opened pull request #36381: kicad-unstable: Bump git commit (master...bump-kicad) https://git.io/vAdYC
NixOS_GitHub has left #nixos [#nixos]
<das-g[m]> How difficult might that be? I haven't yet packaged anything from scratch, only modified existing derivations.
<srhb> That must be *ancient* though...
<ottidmes> das-g[m]: If you look at https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pdi-ce they use webkitgtk 2.x as well
<srhb> das-g[m]: Tracing down ancient missing dependencies might be quite a bit of a rabbit hole.
<srhb> das-g[m]: I wouldn't say it sounds like a good first package project.
<srhb> If it can work with a newer one, that sounds much more reasonable :-)
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<das-g[m]> kinda though so
<das-g[m]> I'll just use a VM, then
<mbrgm> hey! is someone in here using zfs on nixos?
<srhb> mbrgm: Lots of people, yes.
<mbrgm> srhb: ok, so what I did is: add ` extraModulePackages = with pkgs.linuxPackages; [ zfs ];
sonarpulse has joined #nixos
<mbrgm> to my nixos configuration, then switched and rebooted
<srhb> mbrgm: Usually you'd use boot.supportedFilesystems = [ "zfs" ];
<mbrgm> srhb: ok, let my try this
<mbrgm> bouncer is going to be offline, as it's running on the nixos machine... brb
<das-g[m]> mpickering: are you packagin QGIS 3?
<mpickering> No I'm trying to build QGIS 2.x on darwin
<mpickering> If I succeed then I might package QGIS 3
<mpickering> as there are no other OSX binaries for it yet..
peacememories has joined #nixos
mbrgm has quit [Quit: ZNC 1.6.5 - http://znc.in]
<gchristensen> hmm I'm surprised we have a NixOS test for borg backup, but not a nixos module
<srhb> gchristensen: We do? Or we did, at least
andrew_k has quit [Ping timeout: 260 seconds]
<srhb> Or.. not. Maybe I'm mixing things up
<srhb> Huh..
<srhb> Well then I share your surprise :-)
mbrgm has joined #nixos
<mbrgm> srhb: seems to work. ty!
pkill9_ has quit [Ping timeout: 255 seconds]
__monty__ has joined #nixos
<__monty__> How do I find out which of the texlive schemes fits my requirements best?
raynold has joined #nixos
<johnw> __monty__: that's a great question; I use texFull just to avoid that question
<johnw> oops, that my own definition: https://gist.github.com/9ef80128bbb4783f0397caf42d840657
<johnw> so, scheme-full plus some other bits
<__monty__> I was afraid of that. Seems to usually be the answer when it comes to "How do I install latex?" questions.
<__monty__> I guess I'll go the same route.
<johnw> i never know when I'll be on a trip without Internet, and suddenly need to pull in some strange new package to get something done
<mbrgm>
deanman has joined #nixos
stqism has quit [Quit: Like 3 fire emojis lit rn 🔥🔥🔥]
stqism has joined #nixos
joncfoo has quit [Ping timeout: 260 seconds]
phI||Ip has quit [Ping timeout: 260 seconds]
phI||Ip has joined #nixos
joncfoo has joined #nixos
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mfiano> I don't understand this comment or what the solution is. Can someone translate in newb terms? :) https://github.com/NixOS/nixpkgs/issues/36282#issuecomment-370841835
fendor has joined #nixos
pkill9_ has joined #nixos
endformationage has joined #nixos
<TweyII> mfiano: danbst is saying that the merge is done the wrong way around in nixpkgs
jensens has quit [Ping timeout: 248 seconds]
<mfiano> wrong way as in my understanding or a bug?
<TweyII> As in a bug
<srhb> __monty__: I go the opposite route. Minimal and then add things.
<mfiano> I see. Ok
<TweyII> nixpkgs says `mergeAttrs def.value res`, but danbst claims it should say `mergeAttrs res def.value`
<TweyII> Uhh, other way around
sonarpulse has quit [Ping timeout: 256 seconds]
<__monty__> srhb: And what scheme do you start from?
<nick_l> gchristensen: #!/usr/bin/env nix-shell <newline>#!nix-shell ./terraformshell.nix -I nixpkgs=./nixpkgs-master -i sh<newline> terraform --version # shows terraform not found.
<srhb> __monty__: scheme-basic
<__monty__> Do you use pandoc?
<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
<mfiano> TweyII: Hmm
<jwynn6> any ideas why nixos-install keeps failing at install grub? I'm following the instructions on https://nixos.wiki/wiki/NixOS_on_ZFS#What_works
<nick_l> gchristensen: when I execute env instead of terraform nothing related to Nix shows up either.
<srhb> jwynn6: What's the error?
<jwynn6> disk 'mduuid/00000' not found
ryanartecona has joined #nixos
asuryawanshi has joined #nixos
<gchristensen> nick_l: can you paste your terraformshell.nix and your script?
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<srhb> TweyII: Is this simply a misunderstanding from def being shorthand for both definition and default? :P
logzet has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
<TweyII> srhb: Maybe on my part :)
<srhb> No, I meant.. Even supposing they were in the wrong order.
<srhb> Whatever that would mean.
<srhb> It's not like it's really sensible to merge if there's any conflict...
asuryawanshi has quit [Remote host closed the connection]
<nick_l> gchristensen: https://pastebin.com/6Drmxszb
electrocat has quit [Remote host closed the connection]
<TweyII> srhb: It is sensible for bash aliases at least
<jwynn6> its a two disk, zfs mirriored data, mdadm mirrored boot partition, system.
<srhb> TweyII: Given two like named aliases in two different modules?
<TweyII> srhb: The user configuration should override the default shellAliases, I think fairly uncontroversially
<srhb> TweyII: (Which one wins?)
rihards has joined #nixos
asuryawanshi has joined #nixos
<nick_l> jwynn6: I also did that, but then with more disks.
<mfiano> I think it's rather unintuitive that the defaults win over the explicitly defined user configuration
coconnor has quit [Ping timeout: 256 seconds]
<TweyII> Maybe we should just make sure that user configuration is folded in after programs/shell.nix
<jwynn6> nick_l: the wiki has a very clear and easy to follow instructions, but it always fails to install grub
<TweyII> Rather than changing the definition of merging
coconnor has joined #nixos
<nick_l> gchristensen: I will disconnect, but read the logs if you provide an answer, which I hope you do.
knupfer has quit [Remote host closed the connection]
<gchristensen> nick_l: so that works for me
orivej has quit [Ping timeout: 256 seconds]
<coconnor> jwynn6: are you using md raid?
<jwynn6> yes
sonarpulse has joined #nixos
<jwynn6> level 1
nick_l has quit [Ping timeout: 260 seconds]
<srhb> TweyII: I think the merge of types.attrs really should be changed, but yes, of course. Easily fixed with a submodule in this case.
<TweyII> srhb: Hmm, do you think so? Why?
<srhb> Because this is unfortunately legal...
<srhb> imports = [ { options.foo = lib.mkOption { type = lib.types.attrs; }; } { foo.bar = 43; } { foo.bar = 42; } ];
<coconnor> jwynn6: I read that error as "the MD array with UUID 0000 cannot be found". A UUID of 0000 is suspicious
<TweyII> srhb: I would find it confusing if types.attrs.merge worked backwards to normal attrset merge (a // b, mergeAttrs a b)
<srhb> I would just disallow conflicting attributes of the same priority entirely.
<coconnor> jwynn6: maybe try mdadm --misc --detail [device]
<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> (why is my desktop openning paste links in libreoffice....)
<TweyII> disasm: Probably they just do a destructive restore as SOP to rule out software corruption problems
<TweyII> coconnor: LibreOffice can open paste links?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy pushed 1 new commit to master: https://git.io/vAdWh
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nix/master e917c05 Will Dietz: logging: Don't throw from Activity destructor...
<coconnor> TweyII: no. it cannot. haha. which is why I'm a bit confused why it's even trying!
rindvieh has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy closed pull request #1944: Don't throw in destructor, happens in nix-daemon when client disappears. (master...fix/activity-destructor-exception) https://git.io/vA9Qp
NixOS_GitHub has left #nixos [#nixos]
<coconnor> jwynn6: can you post your hardware-configuration.nix as well?
<srhb> TweyII: I also think it's just confusing because other unique types really DO generate errors if defined multiple times.
<srhb> I think it's counterintuitive that attributes further down the hierarchy should behave differently..
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vAdlU
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 4134e62 Robert Helgesson: pythonPackages.pycdio: clean up patching...
<coconnor> jwynn6: that references a zfs pool for root. Which is independent of mdadm raid AFAIK
<jwynn6> right. i was following this guide https://nixos.wiki/wiki/NixOS_on_ZFS#What_works
<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
szicari has joined #nixos
szicari has quit [Client Quit]
clefru has quit [Quit: Leaving]
zzamboni has joined #nixos
knupfer has joined #nixos
<coconnor> jwynn6: here is the output for my mdadm --misc. Note the UUID https://gist.github.com/coreyoconnor/8dffbe555cc6fd62240027792fb857fa
<coconnor> jwynn6: I would expect yours to have 2 active devices as well as a name and UUID.
hotfuzz_ has joined #nixos
<coconnor> jwynn6: there is, fortunately, an option to modify the UUID using mdadm but no idea if that would actually resolve the problem
coconnor has quit [Remote host closed the connection]
hotfuzz has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36383: significantly reduce size of bootstrap gcc and binutils (master...feature/bootstrap-debloat) https://git.io/vAd4J
NixOS_GitHub has left #nixos [#nixos]
aarvar1 has joined #nixos
aarvar has quit [Ping timeout: 268 seconds]
fendor has joined #nixos
aarvar1 is now known as aarvar
sigmundv has quit [Ping timeout: 240 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
xcmw has joined #nixos
leothrix has quit [Ping timeout: 256 seconds]
coconnor has joined #nixos
jtojnar_ has joined #nixos
knupfer has quit [Remote host closed the connection]
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar_ is now known as jtojnar
atu1 has joined #nixos
pkill9_ is now known as pkill9
<gchristensen> clever: what would you use for remote backups? from my laptop (ext4) to a server nearby, with a zfs tank
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> I'm using borg right now, but wonder if its features are obviated by the zfs features
<srhb> Only if you zfsify your laptop, I'd say.
<srhb> (clever is sleeping! :-P)
<gchristensen> how can you tell? :)
<srhb> He said so :-)
<srhb> Well... You know what I mean.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar closed pull request #36371: Update fontconfig and freetype (staging...fonts-update) https://git.io/vA5zO
NixOS_GitHub has left #nixos [#nixos]
szicari has joined #nixos
<srk> hmm, new 17.09 nixops deployment won't start postgres for some reason. getting some sudo weirdnes when trying sudo su -..
<srk> sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
<srk> sudo: /nix/store/3mqha1naji34i6iv78i90hc20dx0hld9-sudo-1.8.20p2/libexec/sudo/sudoers.so must be owned by uid 0
rindvieh has joined #nixos
<gchristensen> oops, sure did, a couple hours ago.
<srhb> srk: Yeah that's a fun new bug. mount -o remount,rw /nix/store
<srhb> srk: then chown -R root:root /nix/store
<srk> huh :D
<srk> mkey :D
<Dezgeg> hmm, are there still bad permissions/timestamps/ownerships still happening somewhere?
<Dezgeg> thought all of it was fixed
<srhb> I haven't tried with the nixops I built today from master. Can do, it was 100% reproducible.
<srhb> At least on libvirt, which I thought was the problem, really.
rindvieh has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #36384: x86_64-musl bootstrap: refresh bootstrap tools package (master...musl-native-bootstrap) https://git.io/vAdRX
NixOS_GitHub has left #nixos [#nixos]
<srk> yeah, think only libvirt does it
<Dezgeg> so what's the UID that owns it then?
<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
nick_l has joined #nixos
<halfbit> so I'm running into an issue building this https://gist.github.com/bfrog/f394659482f3fe992e4f12b77c50aa7a
<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?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc opened pull request #36386: postgresql: 9.3.20 -> 9.3.22, 9.4.15 -> 9.4.17, 9.5.10 -> 9.5.12, 9.6.6 -> 9.6.8, 10.1 -> 10.3 (master...postgresql) https://git.io/vAdzV
NixOS_GitHub has left #nixos [#nixos]
<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?
<__monty__> fyuuri: You should read this section of the nixpkgs manual: https://nixos.org/nixpkgs/manual/#python
<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 has joined #nixos
<NixOS_GitHub> [nixpkgs] xeji opened pull request #36388: xen: 4.8.2 -> 4.8.3 (master...xen-4-8-3) https://git.io/vAdKi
NixOS_GitHub has left #nixos [#nixos]
<nick_l> __monty__: I guess it depends on how much you are paying.
<nick_l> __monty__: never used business sat.
<gchristensen> maybe the satellite was the expensive-emergency-fallback option. I don't remember the details.
<nick_l> gchristensen: well, release-17.09 doesn't work. I guess I should have used the channel.
<gchristensen> yes, release-17.09 is completely untested
Lisanna has quit [Remote host closed the connection]
phdoerfler has quit [Quit: Leaving.]
aborsu has quit [Quit: aborsu]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 5534322 Pascal Wittmann: yodl: 4.01.00 -> 4.02.00
<NixOS_GitHub> nixpkgs/master 458cce8 Pascal Wittmann: icmake: icmbuild uses tput
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/vAd6h
NixOS_GitHub has left #nixos [#nixos]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nick_l> gchristensen: release channel is broken too.
<gchristensen> what does broken mean?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-18.03 66a621d Eelco Dolstra: Merge pull request #36360 from dtzWill/fix/nix-use-brotli-for-sanity...
NixOS_GitHub has left #nixos [#nixos]
<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
contrapumpkin has quit [Quit: Textual IRC Client: www.textualapp.com]
orivej has joined #nixos
<hyper_ch> infinisil: you were also asking about arc size right?
<nick_l> gchristensen: is there something documented about that?
<infinisil> hyper_ch: i was not, why?
<nick_l> hyper_ch: someone with a j, perhaps?
<hyper_ch> infinisil: then it was sphalerite
<hyper_ch> infinisil, sphalerite - sounds all the same anyway :)
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 2372e93 Tuomas Tynkkynen: trinity: Fix 32-bit build
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vAdPD
<gchristensen> nick_l: some stuff in here https://github.com/nixipfs
<infinisil> hyper_ch: it's only a levenshtein distance of 9 after all!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cpages opened pull request #36389: Sdl2 and friends update (master...sdl2) https://git.io/vAdPj
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> infinisil: no idea what that is
<hyper_ch> infinisil: I did study some real sciences and not just made up stuff like IT, math, physics etc :)
<infinisil> It's a popular algorithm to measure distanced between strings
<gchristensen> usually I just use a ruler but ok
<nick_l> gchristensen: I was expecting a document with a conclusion matching what you said. I was aware of that set of repos existing.
<gchristensen> nick_l: I don't have anything better for you :)
<hyper_ch> yeah, you don't need an algorithm when you have a ruler
<infinisil> Ruler?
<infinisil> Ah lol
<nick_l> Like Nero.
<hyper_ch> (well, mostly I use a folding rule)
<nick_l> Anyone familiar with /r/wallstreetbets?
<hyper_ch> nick_l: no
<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.
<cstrahan> Sonarpulse: Can we sync up soon and push https://github.com/NixOS/nixpkgs/pull/28029 over the finish line?
<cstrahan> (fixing up hardening behavior, that is)
<hyper_ch> Mic92: when will sqlite hit master or unstable (small)?
<Mic92> hyper_ch: when staging is merged into master
<sonarpulse> cstrahan: yes
<hyper_ch> Mic92: and when does that happen?
<Mic92> hyper_ch: when vcuncat does it.
<hyper_ch> thx
knupfer has joined #nixos
humanoyd has quit [Quit: WeeChat 2.0.1]
<BlessJah> gchristensen: btw, it seems that borg is not able to upload new files faster than 15MiB/s
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 4 new commits to master: https://git.io/vAdMf
<NixOS_GitHub> nixpkgs/master 08049f4 Carles Pagès: SDL2_gfx: 1.0.1 -> 1.0.4...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 344bc9c Carles Pagès: SDL2: 2.0.7 -> 2.0.8
<NixOS_GitHub> nixpkgs/master 231f213 Carles Pagès: SDL2_image: 2.0.2 -> 2.0.3
alex`` has quit [Read error: No route to host]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 8 new commits to master: https://git.io/vAdMI
<NixOS_GitHub> nixpkgs/master d3c3364 Jan Malakhovski: SDL: add a patch to fix https://bugzilla.libsdl.org/show_bug.cgi?id=1769
<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> ok, in the meantime I'm preparing for my ultimate future of turning in to https://vignette3.wikia.nocookie.net/indianajones/images/6/68/OrellanaCrop.jpg/revision/latest?cb=20090514182011 while I wait for the backup to finish
<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
<sonarpulse> and now it's entered many times
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth closed pull request #36382: check-varnish-syntax: make error visible (master...patch-114) https://git.io/vAdWJ
NixOS_GitHub has left #nixos [#nixos]
<gchristensen> via GUI?
<sonarpulse> no cli
Itkovian has joined #nixos
<sonarpulse> this is a different machine though
<sonarpulse> so just some macos setting somewhere
<gchristensen> it might not be sudo
<gchristensen> but the sysadminframework auth
<sonarpulse> is the gui one?
<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: find_files '\*.so' '\*.a' | xargs --no-run-if-empty -0 nm -AC | grep --color=always $(grep_expr "${@}") | less -R
<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?
<gchristensen> maybe so
NixOS_GitHub has joined #nixos
<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
<infinisil> Why?
<LnL> garbas: at work I use and image with ssh/daemon based on this but it's kind of ugly https://github.com/LnL7/nix-docker
pmeunier has quit [Quit: leaving]
<BlessJah> infinisil: can I prefetch it from other git repository?
pmeunier has joined #nixos
zzamboni has joined #nixos
<LnL> mpickering: did you add the GDAL framework as a buildInput?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ElvishJerricco opened pull request #36393: Haskell: Added haskellPackages.shellFor (master...haskell-shell-for) https://git.io/vAdHS
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cpages pushed 2 new commits to master: https://git.io/vAdHQ
<NixOS_GitHub> nixpkgs/master f96dc50 Carles Pagès: qpid-cpp: 0.34 -> 1.37.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 5eb70d3 Carles Pagès: SDL2_gfx: update homepage
<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 has joined #nixos
<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
<BlessJah> gchristensen: cat urandom.10g.dd | nc $host $port, ssh $host -- bash -c "nc -l $port | borg create -"
<gchristensen> :o
<BlessJah> around 600Mbps
<gchristensen> :O
<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
hamishmack has quit [Ping timeout: 252 seconds]
<fyuuri> The manual says 35 thats why I used it
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<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')
<nico202> any help? I can't use nix anymore .-.
<infinisil> nico202: that looks bad
<infinisil> nico202: did you update from some ancient nix version or something like that?
<nico202> infinisil: nope, I upgrade at least once a week
<infinisil> nico202: what does nix-info output for a start?
Itkovian_ has joined #nixos
logzet has quit [Client Quit]
<nico202> system: "x86_64-linux", multi-user?: no, version: nix-env (Nix) 2.0pre5968_a6c0b773, channels(IITaudio): "nixos-18.03pre129076.831ef4756e3, telegram-cli-2016-03-23, machine-0.9.0, gitlab-runner-1.10.4, california-0.4.0, entr-3.6, tmuxp-1.2.2, keybase-20170209.17b641d, kbfs-20170209.d1db463, non-2016-12-07, go-sct-20160529-1d6b5e0, freecad-0.16, antimony-0.9.2, librecad-2.1.3, lemonbar-xft-unstable-2016-02-17, pencil-2.0.21,
<nico202> python3.5-qnotero-1.0.0, ruby-2.3.3, gimp-2.8.20, chromium-56.0.2924.87, nix-repl-1.11.7-2016-02-28, gparted-0.26.1, screen-4.5.1, vmpk-0.5.1, a2jmidid-8, platformio, teensyduino-1.6.12, teensy-loader-cli-2.1, blender-2.78c, unetbootin-613, mediainfo-0.7.91, xournal-0.4.8, zip-3.0, graphviz-2.40.1, ffmpeg-3.2.4, vlc-2.2.4, okular-16.12.2, pdfmod-0.9.1, green-pdfviewer-nightly-2014-04-22, android-sdk-25.2.3, android-studio-2.2.3.0,
<nico202> zathura-with-plugins-0.3.7, openjdk-8u121b13, android-ndk-r10e, virtualbox-5.1.14, R-3.3.2-wrapper, aspell-dict-en-2016.06.26-0", channels(gitlab-runner): "nixpkgs-18.03pre117013.aebdc892d6", channels(root): "nixos-18.03pre130932.cc4677c36ee", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<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?
<nico202> nix-channel --list: nixos http://nixos.org/channels/nixos-unstable
<nico202> same for root
<infinisil> gchristensen: well only his IITaudio user thing has this huge number of channels
<BlessJah> gchristensen: both iperf and netcat peak at 89MiB, 4x borg-create is close to that number
<infinisil> nico202: and for the IITaudio user?
<nico202> ininisil: the first one, same (whoami -> IITaudio)
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 15ddc6f Carles Pagès: maintainers: remove wrong info...
<NixOS_GitHub> [nixpkgs] cpages pushed 1 new commit to master: https://git.io/vAdFv
<fyuuri> infinisil : the second command just says no such file or directory. I ll try again.
logzet has quit [Client Quit]
<infinisil> fyuuri: hold on, what does `nix-instantiate --find-file nixpkgs` say?
MP2E has joined #nixos
logzet has joined #nixos
rihards has quit [Quit: rihards]
<infinisil> I need to check this nix-info script
logzet has quit [Client Quit]
<BlessJah> gchristensen: the issue is somewhere in our setup
logzet has joined #nixos
logzet has quit [Client Quit]
logzet has joined #nixos
<fyuuri> infinisil: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<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."
<ottidmes> nico202: nix-store --verify [--check-contents] [--repair]
<romildo> How should I quote $${QT_HOST_DATA} in the nix expression?
<romildo> ''substituteInPlace src/src.pro --replace "$${QT_HOST_DATA}" "$out"''
<ottidmes> nico202: No idea if it will help, but worth a shot
iclanzan has joined #nixos
<nico202> ottidmes: thanks, but I get the same " cannot open connection to remote store 'daemon': executing SQLite statement "
<infinisil> nico202: Oh, try `nix-store --verify --check-contents --readonly-mode`
<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?
<dtz> ~o~ evening folks
fendor_ has joined #nixos
<nico202> infinisil, gchristensen: https://github.com/NixOS/nix/issues/1954
<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> snajpa-: there are very few, such that https://nixos.org/nixos/options.html#xlibs
<symphorien> I doubt that a use flag for dtrace exists
<fyuuri> infinisil: sry for being slow^^. I am so used to the arch way of installing stuff
jtojnar has quit [Quit: jtojnar]
<logzet> snajpa-: I'd try overrideAttrs with configureFlags
<logzet> That should do what you want
<symphorien> you will have to configure packages on an individual basis
chisui has joined #nixos
jtojnar has joined #nixos
<infinisil> fyuuri: yeah, it's quiet different than most other distros
<romildo> ottidmes, the quotation I posted already works for me.
<fyuuri> But I really like it so far :)
Itkovian has quit [Client Quit]
<snajpa-> logzet: globally? for example, both ruby and python should have that, php as well
<snajpa-> and ton of other packages too
<__monty__> Can I use nixos with syslinux instead of grub?
<symphorien> snajpa-: well according to https://search.nix.gsc.io/?q=dtrace&i=nope&files=&repos= only ghc, glibc and darwin stuff have specific configuration for strace
<logzet> snajpa-: I just got into this mechanisms today (thats why nix rebuilds half of my system ;) )
<ottidmes> __monty__: yes, its called extlinux here
<symphorien> *dtrace
GiGa has quit [Quit: Leaving]
<__monty__> ottidmes: With the same integration as grub, updating the bootmenu, etc.?
iclanzan has quit [Quit: WeeChat 1.9.1]
<ottidmes> __monty__: Yep: https://nixos.org/nixos/options.html#boot.loader.generic
<logzet> snajpa-: If you find a way to iterate over all items in a set, I think there is a way
<__monty__> ottidmes: Sweet, that was most of what was keeping me from switching to nixos : )
<snajpa-> symphorien: yes it would need to be added, I'm asking to see the direction where I should look if I wanted to dig into it more
<symphorien> so:
<symphorien> what is standard is to add an argument to the derivation enableFoo
<MichaelRaskin> __monty__: just in case: systemd is non-negotiable right now if you want to use the real mainline NixOS
i-am-the-slime has joined #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.
romildo has quit [Quit: Leaving]
<i-am-the-slime> How do you think I could do this?
jtojnar_ has joined #nixos
<symphorien> snajpa-: then, if you really need a use flag, you can use the nixpkgs config system as in https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/mate/libmatemixer/default.nix#L3 to set the default value of the flag
<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)
<i-am-the-slime> The original is here:
nico202 has quit [Quit: Leaving]
<i-am-the-slime> I think it's from 7 years ago, though. There's a release of the fork from one month ago.
<symphorien> snajpa-: here is the relevant section of the manual https://nixos.org/nixos/manual/index.html#sec-customising-packages
<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.
<ottidmes> i-am-the-slime: If you look at this module, you can see the package being loaded: https://github.com/NixOS/nixpkgs/blob/release-17.09/nixos/modules/services/x11/hardware/multitouch.nix
<symphorien> if you think the increase in disk space is negligible, then put it to true by default
dnovosel has quit [Ping timeout: 256 seconds]
<ottidmes> i-am-the-slime: So just set these options as needed: https://nixos.org/nixos/options.html#multitouch
<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
<symphorien> rawtaz: nixos does not force you to manage users declaratively: https://nixos.org/nixos/options.html#mutableusers
<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)
<greglearns> greg files$ sudo -i nix-channel --list ⏎master ⬆ ✭ ✱ ◼ nixpkgs https://nixos.org/channels/nixpkgs-unstable
<sonarpulse> how can I make `nix build` as verbose as `nix-build` ?
<johnw> Sonarpulse: I know, right?
<johnw> Sonarpulse: I'm finding "nix build" to have a LOT less functionality
<sonarpulse> johnw: TT
<sonarpulse> I don't even mind the "casual user default"
<i-am-the-slime> so if I made a default.nix file how can I see if it compiles?
<rawtaz> symphorien: i see, makes sense.
<symphorien> i-am-the-slime: nix-build default.nix
<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> fyuuri: as long as all you want is in there https://nixos.org/nixos/packages.html#vimplugin try to stick with it
<infinisil> nico202: or hold on
<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
<infinisil> nico202: yeah that's right
<i-am-the-slime> So can you tel lme what is wrong about this: https://pastebin.ca/3994351 ?
<infinisil> nico202: ah right then you can't delete it just like this, maybe try the thing with ~/.nix-defexpr/channels/manifest.nix
<infinisil> nico202: Otherwise I'm out of ideas for now, and it's getting a bit late for me
<infinisil> Good luck and good night!
<symphorien> infinisil: remove lines 3-14
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #36388: xen: 4.8.2 -> 4.8.3 (master...xen-4-8-3) https://git.io/vAdKi
NixOS_GitHub has left #nixos [#nixos]
<infinisil> i-am-the-slime: this must be for you^^
<i-am-the-slime> I also think so.
<i-am-the-slime> It helps a bit
<i-am-the-slime> but then it complains about util macros?
<symphorien> ah sorry
<greglearns> symphorien: I did sudo -i nix-channel --update && nix-collect-garbage -d && nix-store --gc && nix-build and it is still using the old rustRegistry. I also pinned NixPkgs to https://github.com/NixOS/nixpkgs/archive/1dcd022f01b251b1656f349dcf749c0890de2799.tar.gz which is from Released on 2018-03-04 01:45:11
<symphorien> greglearns: well all I can tell is that I wrote that https://github.com/symphorien/nix-du/blob/master/nix-du.nix#L33 and on nixos-unstable it builds with a recent registry
<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
xeji has quit [Quit: WeeChat 2.0]
<symphorien> i-am-the-slime: it is xorg.utilmacros https://nixos.org/nixos/packages.html#utilmac
<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?
aszlig_ has joined #nixos
aszlig has quit [Quit: leaving]
aszlig_ has quit [Client Quit]
aszlig has joined #nixos
aszlig has quit [Client Quit]
<i-am-the-slime> Ah, prefixing some packages with xorg helped
aszlig has joined #nixos
<i-am-the-slime> And the thing compiled.
<symphorien> rawtaz: no see the decription of users.extraUsers https://nixos.org/nixos/options.html#extrauser
<i-am-the-slime> Now how do I reference it from configuration.nix?
<ottidmes> i-am-the-slime: https://pastebin.com/n1yKPzgb
<symphorien> greglearns: can you paste nix-info ?
<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
<gchristensen> oh group, yeah it'll replace it
<greglearns> symphorien: system: "x86_64-darwin", multi-user?: yes, version: nix-env (Nix) 2.0, channels(greg): "", channels(root): "nixpkgs-18.03pre130569.7a04c2ca296", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
<gchristensen> BlessJah: oh?
<BlessJah> gchristensen: cosmic radiation affects NFS performance
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: I solved it (I think). The problem was that I was pinning to the most recent "https://nixos.org/channels/nixos-17.09", when I should have been using https://nixos.org/channels/nixos-unstable
<symphorien> That would explain indeed
ryanartecona has joined #nixos
<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