gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || 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://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<adamantium> hi, i don't use uefi, can someone tell me please if the output of ls /sys/firmware/efi/efivars reveals your system is uefi or not?
jperras has quit [Ping timeout: 244 seconds]
viric has quit [Ping timeout: 244 seconds]
carlosdagos has joined #nixos
<samueldr> I think existence stuff in it should be a pretty good indicator
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> otherwise, grepping for real-early efi messages I think is one too dmesg | grep -i '\] efi:'
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to release-18.03: https://git.io/fAOA8
<adamantium> samueldr: I am trying to find out if that directory exists for uefi users, do you know
<gchristensen> samueldr: ^
<samueldr> adamantium: I do have this directory on both my running uefi systems
<adamantium> thanks
<samueldr> 🎉 thanks gchristensen
<gchristensen> happy to debug docs stuff! :)
<samueldr> don't say that, you'll have more to do :)
<gchristensen> lemme have it
<{^_^}> [nixpkgs] @jtojnar merged pull request #45688 → granite: 5.0 -> 5.1.0 → https://git.io/fAOHc
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fAOAi
asymmetric_ has quit [Ping timeout: 272 seconds]
ericsagnes has quit [Ping timeout: 268 seconds]
ris has quit [Ping timeout: 252 seconds]
<Shados> samueldr: If the ? was for me, at one point the grub module's set of checks/assertions required you to specify 'boot.loader.devices' even if you had both 'boot.loader.efi.efiSysMountPoint' and 'boot.loader.grub.efiSupport', meaning you'd get a dual (MBR+EFI) installation of it. Which was kind of akward with a GPT disk, because then you'd need to add a BIOS boot partition... Anyway, I fixed it ages back, but then I think it got re-broken when mirrored boots were
<Shados> added, and I don't know if it was fixed since.
<samueldr> sorry Shados, yes it was about what you said
<samueldr> Shados: currently, it needs to be set to the special value "nodev" in that situation
<Shados> Well, that's something... although not documented it looks like?
<samueldr> Description:
<samueldr> The device on which the GRUB boot loader will be installed. The special value nodev means that a GRUB boot menu will be generated, but GRUB itself will not actually be installed. To install GRUB on multiple devices, use boot.loader.grub.devices.
<samueldr> Shados: though, is there anywhere else it could be found you think?
<samueldr> or, let me rephrase; were would you have expected to see it documented?
<Shados> Ah, I see, my search was just bad
blankhart has joined #nixos
<Shados> The documentation there is actually pretty confusing "a GRUB boot menu will be generated, but GRUB itself will not actually be installed" sounds like setting it to nodev would literally just create the grub.cfg, regardless of the values for efiSupport and efiSysMountPoint.
<samueldr> you're right, it's confusing
<samueldr> it's unclear that it means *installed to the partition*
<samueldr> and that `efiSupport` will make it install to the ESP + efivars
Fare has quit [Ping timeout: 252 seconds]
hellrazor has quit [Ping timeout: 264 seconds]
<Shados> (Unless you have efiInstallAsRemovable set, in which case of course it goes to the default-boot-file location on the ESP and doesn't set efivars...)
<samueldr> the rabbit hole is deep :)
<Shados> Honestly the whole `boot` section of the options feels like a bit of a clusterfuck
<samueldr> it's probably due to how booting is a clusterfuck itself?
ericsagnes has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/fAOxz
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #45493 → faustlive: init at 2017-12-05 → https://git.io/fAIYu
<samueldr> while there is disconnect between some options, they do make it convenient in the end
dbmikus has quit [Ping timeout: 268 seconds]
<Shados> I'd say they make it inconvenient, but flexible.
fzer0 has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fAOx6
rprije has joined #nixos
<{^_^}> [nixpkgs] @qolii opened pull request #45689 → linux-hardkernel: 4.14.55-146 -> 4.14.66-147 → https://git.io/fAOxM
fzer000 has quit [Ping timeout: 264 seconds]
goibhniu has quit [Ping timeout: 268 seconds]
Yaniel has quit [Excess Flood]
Yaniel has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
worldofpeace has joined #nixos
thc202 has quit [Ping timeout: 264 seconds]
<fzer0> any gotchas when setting up fingerprint authentication. I installed libfprint and set security.pam.services.<my user name>.fprintAuth =true; ?
jonreeve has joined #nixos
<jtojnar> fzer0: you might need dm to be built with support for it?
<jonreeve> Stupid question, but how can I install a Haskell package in configuration.nix?
<jonreeve> (The manual has a guide for how to install them using nix-env, but I just don't know the syntax for putting them in environment.systemPackages)
<fzer0> jtojnar: hm, i don't have a desktop manager, i am using i3
<Myrl-saki> jonreeve: Same thing.
<Myrl-saki> jonreeve: Oh wait.
<Myrl-saki> jonreeve: By a haskell package, you mean a library?
<jonreeve> Yep
<Myrl-saki> jonreeve: environment.systemPackages only modifies PATH, I believe.
<jonreeve> I don't think I understand
<Myrl-saki> jonreeve: You use `ghcWithPackages (hpkgs: with foo; [ ... ])`
<jonreeve> Ok awesome, thanks
<Myrl-saki> jonreeve: Basically, you can't install a library through environment.systemPackages, because it only adds executable files to the search path.
<Myrl-saki> (Correct me if I'm wrong anyone)
<Myrl-saki> jonreeve: Oh yeah, don't forget to add parentheses! `[ foo bar ] and `[ (foo bar) ]` are different.
_rvl has quit [Ping timeout: 260 seconds]
_rvl has joined #nixos
<jonreeve> I'm getting "undefined variable 'ghcWithPackages'
Xal has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @cdepillabout opened pull request #45690 → termonad: Add dontCheck and remove from dont-distribute-packages. → https://git.io/fAOht
<Myrl-saki> jonreeve: It's under haskellPackages
Xal has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0e9b83fb894 (from 66 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
Lears has joined #nixos
<pie_> anyone know how to get ?webrtc? video working in firefox
<pie_> i mean like, for video chat stuff
jperras has joined #nixos
hamishmack has joined #nixos
dbmikus has joined #nixos
<pie_> even when i allow it in the privacy settings it seems to fail
<samueldr> pie_: tried with a virgin profile?
<pie_> no i havent
<samueldr> (assuming it should work with the binary you are using)
dbmikus has quit [Ping timeout: 252 seconds]
<pie_> woah, firefox now has automation and headless mode? (going by firefox --help)
<samueldr> ooh, fancy
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<pie_> ok it works in vanilla
<pie_> i think i might have something disabled in about:config but i cant find what to look at
<samueldr> great, this gives a good baseline
<pie_> restarting firefox because something seems to have broken...gonna try to see if i can get a listing of modified about:config options
graphene has quit [Remote host closed the connection]
silver has quit [Quit: rakede]
graphene has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0f9e0e15fc5 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<pie_> well..pretty stumped so far, gonna try disabling mroe things
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/0e9b83fb894 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
sigmundv__ has quit [Ping timeout: 272 seconds]
phry has quit [Ping timeout: 272 seconds]
globin has quit [Ping timeout: 265 seconds]
rprije has quit [Remote host closed the connection]
jtojnar has quit [Ping timeout: 264 seconds]
rprije has joined #nixos
jonreeve has quit [Quit: WeeChat 2.1]
lassulus_ has joined #nixos
<pie_> well im stumped.
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
jtojnar has joined #nixos
sb0 has joined #nixos
phry has joined #nixos
drakonis_ has joined #nixos
johnny101 has joined #nixos
lassulus has quit [Ping timeout: 244 seconds]
lassulus has joined #nixos
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
orivej has quit [Ping timeout: 252 seconds]
orivej has joined #nixos
lassulus has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 272 seconds]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
lassulus has joined #nixos
timj1 has joined #nixos
timj has quit [Ping timeout: 268 seconds]
orivej has joined #nixos
<Enzime> what's the difference between meta.broken and disabled?
<Enzime> yorick: have you seen sshuttle?
grenade has quit [Ping timeout: 264 seconds]
grenade has joined #nixos
drakonis_ has quit [Remote host closed the connection]
dmj` has quit [Quit: Connection closed for inactivity]
<fzer0> Does anyone have experience using themes for sddm (desktop manager)?
<fzer0> I want to use this one https://github.com/gabretana/simplicity-sddm-theme but i don't know if I should try to package it up or use configuration.nix
<fzer0> It has a photo i want to override
<kalbasit[m]> so I have a derivation to make which downloads a bash script from online, make it executable and under bin/. The file itself is the script in clear text so nothing to unpack, how to disable the unpack phase?
fzer0 has quit [Quit: Leaving]
jperras has quit [Ping timeout: 244 seconds]
blankhart has quit [Quit: WeeChat 1.9.1]
<kalbasit[m]> nvm, it's `unpackPhase="true"`, it makes sense now that I think about it and why empty did not work
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
liori has quit [Remote host closed the connection]
DigitalKiwi has quit [Quit: DigitalKiwi]
phreedom_ has joined #nixos
phreedom has quit [Remote host closed the connection]
kendrick_ has joined #nixos
<kendrick_> Hi all, I'm trying to build pytorch using Nix on a ubuntu instance (with CUDA support). However at the end of the build it fails with the following error code: `impure path `/usr/local/cuda/lib64/libcudart.so' used in link`
<kendrick_> Any ideas? I did a quick googs and found one relevant link that points it to OpenCV, however I'm not familiar enough to get it working
<{^_^}> [nixpkgs] @vbgl opened pull request #45691 → obliv-c: 0.0pre20170827 -> 0.0pre20180624 → https://git.io/fA3kB
smolboye has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @adisbladis merged pull request #45689 → linux-hardkernel: 4.14.55-146 -> 4.14.66-147 → https://git.io/fAOxM
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fA3ki
gspia has quit [Read error: Connection reset by peer]
gspia has joined #nixos
<adisbladis> kendrick_: You might have success enabling sandboxing
<{^_^}> [nixpkgs] @adisbladis merged pull request #45678 → upx: 3.94 -> 3.95 → https://git.io/fAOcg
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fA3k1
smolboye has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #45543 → qpdf: 8.1.0 -> 8.2.1 → https://git.io/fAttP
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fA3kb
<kendrick_> adisbladis: Cheers I'll look into that
Izorkin has joined #nixos
lawlesseel has joined #nixos
BOSNA has quit []
<ldlework> Anyone have a service definition for twmnd ?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/18006f8edc7 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
rprije has quit [Remote host closed the connection]
<kendrick_> adisbladis: Ahh rip, still same error
rprije has joined #nixos
vmandela has joined #nixos
rct has quit [Quit: WeeChat 1.9.1]
<ldlework> I'm trying to create a simple systemd service
<ldlework> the twmn package comes with a ${twmn}/bin/twmnd binary
<ldlework> Aug 28 00:46:03 logos twmnd-start[22786]: /nix/store/9whnd269xj34wqv14kjaq47v1yywgn3d-unit-script/bin/twmnd-start: line 2: 22788 Aborted /nix/store/5ggw8>
<ldlework> Aug 28 00:46:03 logos systemd[1]: twmnd.service: Main process exited, code=exited, status=134/n/a
<ldlework> Aug 28 00:46:03 logos systemd[1]: twmnd.service: Failed with result 'exit-code'.
<clever> ldlework: line 16 only enables the service if the service is already enabled
orivej has quit [Ping timeout: 252 seconds]
<ldlework> clever: what's the right way to do it
<clever> ldlework: it sounds like the binary is crashing, try turning on systemd-coredump to get a coredump
<clever> ldlework: the if statement on 8 checks to see if enable is set, so you dont have to set it again
<ldlework> clever: if I just run the script directly it works as expected
rct has joined #nixos
<ldlework> clever, line 8 is my own guard
<clever> which is why we need a coredump
<ldlework> config.MINE.workstation.twmnd.enable
<ldlework> sure ok
<srk> also check out journalctl -n 100 -u twmnd.service
<Enzime> clever: do you know what the difference between using meta.broken and disabled in a derivation is?
<ldlework> clever: ok i enabled it and rebuilt and restarted the service - it crashed the same way
lostman has joined #nixos
<clever> Enzime: nope
<clever> ldlework: now run coredumpctl as root
<clever> it should list the coredumps and pid's
<clever> then run coredumpctl gdb <pid>
<clever> and bt
rfold has joined #nixos
<ldlework> no coredumps found
<lostman> hey folks. I'm setting up ccache in one of my derivations and need to find a cache directory. can I use nix for that somehow? to create a persistent directory that ccache can write to somewhere in /nix? otherwise it is a bit hard to do in platform/system agnostic manner
<clever> ldlework: you may need to add a `ulimit -c unlimited` to the script
<ldlework> to what script
<ldlework> twmnd's systemd script= ?
<clever> yeah
<ldlework> oh I got a coredump
<ldlework> clever: your command just spits out some information
<clever> pastebin the output of bt
<ldlework> bt?
<srk> lostman: there's also programs.ccache.enable and programs.ccache.packageNames
<ldlework> clever: am I supposed to drop into a debugger or something?
<ldlework> because it doesn't do that
<srk> backtrace :)
hyper_ch2 has joined #nixos
<clever> ldlework: did you run `coredumpctl gdb <PID>` ?
<ldlework> yes
<ldlework> it just prints some info
<ldlework> see picture
Cale has quit [Remote host closed the connection]
<clever> ldlework: is gdb in PATH?
<ldlework> no
<ldlework> lol
<lostman> srk: I'm just working with nix, not full nixos, so those won't work. I already have the wrapper for my project but the issue is that people using different distros might not have the same directory structure that I chose to follow for location of cache files (/var/cache/ccache)
<lostman> I'd like nix to create that directory for me somwhere
<srk> I see
<clever> ldlework: is this a GUI app?
<ldlework> clever: yeah, it is a notification daemon
<clever> ldlework: $DISPLAY isnt set, so the service cant connect to xorg
<ldlework> clever: is that just set somewhere in the systemd expression
<clever> ldlework: you probably want a systemd user service, not a system service
<ldlework> i'll try it
<ldlework> why's that
<clever> system services run even if xorg isnt open, and your not logged in
<clever> user services run per user, as the right user, wtih things like your DISPLAY set right
<ldlework> i see
<ldlework> is that as easy as systemd.services.twmnd = { -> systemd.user.services.twmnd = {
<clever> i think so
<clever> but i dont use them much
<{^_^}> [nixpkgs] @aneeshusa opened pull request #45693 → vagrant: mark bundler as system plugin → https://git.io/fA3tK
<emily> user services don't necessarily get your $DISPLAY. they often run outside of the logind session
<clever> something in nixos modifies the logind env vars to set that up
lawlesseel has quit [Ping timeout: 250 seconds]
<emily> hmm, there's "systemctl --user import-environment"... well, I wish it just worked for me at least :p
kendrick_ has quit [Ping timeout: 252 seconds]
<ldlework> how do I journalctl a user service?
<ldlework> oh nm
<ldlework> hmm
<ldlework> well it didn't core dump this time it just died
<ldlework> the daemon is a foreground process
<ldlework> do I need to do anything special...?
<ldlework> journalctl --user -n 100 -u twmnd.service ~
<ldlework> -- Logs begin at Wed 2018-05-23 17:04:58 CDT, end at Tue 2018-08-28 01:08:48 CDT. --
<ldlework> -- No entries --
<ldlework> the status is Active: inactive (dead)
hamishmack has quit [Ping timeout: 268 seconds]
<ldlework> nm looks like it coredumped
<ldlework> gar wtf
vmandela has quit [Quit: Leaving]
<srk> check out systemctl show twmnd.service if it really passes DISPLAY, you can also get more detailed backtrace out of gdb with 'bt full'
<srk> $ DISPLAY=:0 twmnd
<clever> you can also just "echo $DISPLAY" in the script
<srk> this works for me from nix-shell
<ldlework> srk: it isn't actually providing a core dump anymore
<ldlework> clever: it wont let me use a simple script form anymore
<ldlework> it is forcing me to use ExecStart now
<ldlework> when I switched over to user
<clever> ldlework: use writeScript to create your own script
<clever> > writeScript "name" ''#!/bin/sh .... '
<{^_^}> error: syntax error, unexpected $end, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at (string):171:22
<clever> > writeScript "name" ''#!/bin/sh .... ''
<{^_^}> "<derivation /nix/store/i939r0vhqi25s86p2hgqw6x2k4j3x98i-name.drv>"
<srk> nixos/modules/services/x11/display-managers/default.nix: ${config.systemd.package}/bin/systemctl --user import-environment DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS
<srk> looks good
periklis has joined #nixos
<ldlework> srk: ?
<srk> # Tell systemd about our $DISPLAY and $XAUTHORITY.
<srk> but
<srk> ssh still sets nixos/modules/programs/ssh.nix: environment.DISPLAY = "fake"; # required to make ssh-agent start $SSH_ASKPASS
<srk> hmm
<srk> nope, that's ok
<ldlework> srk: i don't know what you're saying to me!
<clever> ldlework: use writeScript to create your own script
<ldlework> I'm working on that
<srk> (I was just wondering how DISPLAY is passed to user units)
<ldlework> I feel like it isn't even reloading the new definition
<etu> srk: The emacs user unit may be interesting as well?
<ldlework> this is really frustrating
<etu> But I've had issues with that unit if I want a graphical client
rfold has quit [Ping timeout: 268 seconds]
<ldlework> I rebuilt, switched
<ldlework> Process: 19305 ExecStart=/nix/store/5ggw8skpcjyncfb9a4jy8zdvyawlg9yq-twmn-git-2014-09-23/bin/twmnd (code=dumped, signal=ABRT)
<ldlework> Main PID: 19305 (code=dumped, signal=ABRT)
<ldlework> why does it say the old package?
<ldlework> this is the thing in my nix expression:
<ldlework> ExecStart="${twmnd}/bin/twmnd-runner";
<ldlework> doesn't seem very reproducable, but i'm sure it is my fault
<ldlework> twmnd-runner being the writeScriptBin I made
<ldlework> systemctl --user reload twmnd ~
<ldlework> Failed to reload twmnd.service: Job type reload is not applicable for unit twmnd.service.
<ldlework> lol wtf
<ekleog> restart
<ldlework> does that reload the configuration?
<ekleog> that restarts the complete service
<ldlework> Active: failed (Result: core-dump) since Tue 2018-08-28 01:29:05 CDT; 7s ago
<ldlework> Process: 23490 ExecStart=/nix/store/5ggw8skpcjyncfb9a4jy8zdvyawlg9yq-twmn-git-2014-09-23/bin/twmnd (code=dumped, signal=ABRT)
<ekleog> to reload, you need to provide [I don't remember which command] for systemd to know how to reload
<ldlework> it still says the old execstart
<ldlework> but like
<ekleog> try systemctl cat twmnd.service
<ldlework> i've taken this line out of my nixcfg
<MasseR> daemon-reload?
<ekleog> it'll tell you what systemd is currently seeing, and if it's not the correct one something likely failed in the switch
<ldlework> doing the cat
<ldlework> ExecStart=/nix/store/5ggw8skpcjyncfb9a4jy8zdvyawlg9yq-twmn-git-2014-09-23/bin/twmnd
<ldlework> the old package
<ldlework> wtf
<MasseR> sudo systemctl daemon-reload
<clever> there is a special reload that is needed to make it re-read service files
<ldlework> jesus
<ekleog> hmm, maybe nixos forgets to daemon-reload upon switch the systemd --user? I know it does it for the global systemd, but…
<ekleog> can try systemctl --user daemon-reload, if that works it's a bug in nixpkgs, I guess
<clever> ekleog: pretty sure the problem is that nixos-rebuild doesnt want to iterate over every single user
<ekleog> clever: iterating over running systemd instances could make sense, though?
<clever> yeah, but it just never got implemented
<ldlework> it still says the same thing
<ekleog> ldlework: after sudo systemctl daemon-reload, or after systemctl --user daemon-reload?
<ldlework> the former - the latter doesn't work
<ldlework> says failed to connect to bus: No such file or directory
<ldlework> this is madness
<clever> thats why i avoid dbus :P
<ldlework> huh this is nixos saying
<ekleog> does cat /etc/systemd/user/twnmd.service give the old or the new thing?
<ldlework> no such file or directory
<ekleog> clever: that's why I avoided systemd… until I switched to nixos and was forced into it if I didn't want to rewrite all the modules :°
<ekleog> ldlework: twmnd.service* (made a typo)
trcc has joined #nixos
<ldlework> ekleog: the new thing
<ldlework> thank god
<ldlework> the unit file has not sign of DISPLAY being set btw
<ekleog> ldlework: ok, so that's just systemd being broken, business as usual. Logging out/in should hopefully refresh the daemon, if systemctl --user daemon-reload doesn't do it :)
* ldlework groans
<ekleog> the error in systemctl --user daemon-reload is quite weird, though (did you check you didn't sudo it?)
<clever> ekleog: yeah, i also tried to avoid systemd
<ldlework> I logged out
<ldlework> Logged in
<ldlework> same old thing
<ldlework> wrong unit file
<ldlework> ekleog: ah well, i did use sudo on the reload
<ldlework> not using sudo fixed it
<ekleog> oh :) and does it now display the right service with cat?
Tucky has joined #nixos
<ldlework> yeah
<ekleog> \o/
<ekleog> so if you don't want that happening to other people, it's likely possible to add an activation script that daemon-reload's the user systemd's at the same time as the master systemd is daemon-reload'd :)
<ldlework> sure but the service still doesn't even work
<ldlework> /nix/store/cab6j5v049rh7pnc3v6k96h7hv8cw2a6-twmnd-runner/bin/twmnd-runner works if I just run it directly
<ekleog> can you paste it and check it's chmod a+x?
<ldlework> echo "$DISPLAY"
<ldlework> /nix/store/5ggw8skpcjyncfb9a4jy8zdvyawlg9yq-twmn-git-2014-09-23/bin/twmnd
<ekleog> you're missing at least the shebang
<ldlework> i thought writeScriptBin added that
<ldlework> strange
<ekleog> wait, writeScriptBin? Don't know this one, always used writeScript
<clever> ekleog: writeScript puts it in $out, and scriptbin puts it in $out/bin/$name
<ekleog> oh 'k :) so that's not a difference from this point of view
<clever> depends on if you want something that can be added to PATH or something to just run
thc202 has joined #nixos
<ldlework> Aug 28 01:46:34 logos twmnd-runner[21494]: :0.0
<ldlework> Aug 28 01:46:34 logos systemd-coredump[21506]: Process 21496 (twmnd) of user 1000 dumped core.
<ldlework> well it prints the right DISPLAY
<ldlework> and still core dumps
<ldlework> maybe this is why there was a package but no service in nixpkgs
<ldlework> and there is still no corefile
<ldlework> oh I probably need that other thing
<ekleog> (tbh, I personally would likely start twmnd from my .i3/config, so that may be another reason why there would be no service in nixpkgs :°)
<ldlework> i'm pretty close to doing that because this is madness
<ldlework> clever: the coredump looks just like last time
<ldlework> oh well
<ldlework> how can I readFile a script that has ${nix-exprs} in it, and evaluate those like it was a string?
Ridout has quit [Quit: Lost terminal]
<makefu> ldlework: import ./path
<ldlework> makefu: neat!
<ldlework> makefu: that doesn't have to be formatted as a string or anything?
<ldlework> it can just be a raw text file?
<clever> it must be another nix file
<makefu> yes, exactly
Ariakenom has joined #nixos
<ldlework> well that's pointless, the idea is to get syntax highlighting and editor support
<makefu> but the nix file can only contain a string, like "abcde"
<ldlework> but still a cool trick, thanks
<ldlework> I will just do a substituteInPlace or somethin
<clever> > pkgs.substituteAll
<{^_^}> { __functor = <CODE>; override = <CODE>; overrideDerivation = <CODE>; }
<clever> ldlework: this is a function that calls substituteInPlace for you
<ldlework> Yeah, but now you need known tokens
<clever> check nixpkgs for examples
<ldlework> instead of it just evaluating all the ${} things
<clever> the all variant just uses env vars at build-time
<ldlework> ekleog: good idea on having the window manager start the daemon
hamishmack has joined #nixos
kisik21 has joined #nixos
thibm has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #45691 → obliv-c: 0.0pre20170827 -> 0.0pre20180624 → https://git.io/fA3kB
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fA33v
Yaniel has quit [Excess Flood]
Yaniel has joined #nixos
Xal has quit [Ping timeout: 272 seconds]
<ekleog> let pseudoTemplate = file: writeFile "''${builtins.readFile file}''"; import (pseudoTemplate ./my/file.notnix)
<ekleog> ^ wonder how far it is from a good idea
<ekleog> let pseudoTemplate = file: writeFile "''${builtins.readFile file}''"; in import (pseudoTemplate ./my/file.notnix)
<ekleog> (missing the in)
thc202 has quit [Ping timeout: 244 seconds]
<ekleog> cc ldlework (but please don't really use that, that sounds gross, at the very least)
<ldlework> lol
thc202 has joined #nixos
orivej has joined #nixos
<ekleog> you can pass arguments with let pseudoTemplate = file: args: writeFile "${args}:''${builtins.readFile file}''"; in import (pseudoTemplate ./my/file.nix "{arg1, arg2}") { inherit arg1 arg2; }
<ekleog> but that's just going down the stream of madness
<ekleog> actually it's even possible to remove that second argument \o/
Xal has joined #nixos
<ekleog> let pseudoTemplate = file: writeFile "args: with args; ''${builtins.readFile file}''"; in import (pseudoTemplate ./my/file.nix) { inherit arg1 arg2; }
* ekleog currently hesitating to use this for real…
logzet has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45693 → vagrant: mark bundler as system plugin → https://git.io/fA3tK
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3sM
civodul has joined #nixos
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45467 → alibuild: init at 1.5.3 → https://git.io/fAkWh
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3Gc
mayhewluke has quit [Ping timeout: 268 seconds]
DerGuteMoritz has quit [Ping timeout: 255 seconds]
mayhewluke has joined #nixos
Mateon3 has joined #nixos
<{^_^}> [nixpkgs] @Tomahna opened pull request #45695 → mopidy-iris: 3.24.0 -> 3.25.1 → https://git.io/fA3GM
sigmundv__ has joined #nixos
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
__monty__ has joined #nixos
goibhniu has joined #nixos
thibm has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @Mic92 pushed to master « libcpuid: restrict to x86 »: https://git.io/fA3Zf
trcc has quit [Ping timeout: 276 seconds]
trcc has joined #nixos
ejpcmac has joined #nixos
johanot has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45695 → mopidy-iris: 3.24.0 -> 3.25.1 → https://git.io/fA3GM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3ZB
asymmetric_ has joined #nixos
<adisbladis> That's where DISPLAY comes from
nioncode has quit [Quit: WeeChat 2.2]
orivej has quit [Ping timeout: 244 seconds]
thibm has joined #nixos
michalrus has left #nixos ["WeeChat 1.9.1"]
trcc has quit [Read error: Connection reset by peer]
Dedalo has quit [Ping timeout: 264 seconds]
trcc has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45600 → claws-mail: 3.16.0 -> 3.17.0 → https://git.io/fAqm1
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fA3cv
ThatDocsLady has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 pushed to master « enableDebugging: fix usage example »: https://git.io/fA3cL
ThatDocsLady has joined #nixos
Turion has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45555 → mblaze: 0.3.2 -> 0.4 → https://git.io/fAtGE
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3cs
<Turion> I'm trying to burn a cd, but k3b tells me that the cdrecord executable has the wrong file permissions
<srhb> Turion: Does this look familiar? https://github.com/NixOS/nixpkgs/issues/19154
<{^_^}> #19154 (by jagajaga, 1 year ago, open): K3b doesn't work
__Sander__ has joined #nixos
periklis has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45550 → openvdb: 5.1.0 -> 5.2.0 → https://git.io/fAtOK
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3cP
<{^_^}> [nixpkgs] @Mic92 merged pull request #45659 → Small nginx tweaks → https://git.io/fAmxV
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fA3cS
<Turion> srhb, yes, that's the issue! (Don't know why I didn't find it.) But it's not resolved yet, it seems?
rprije has quit [Remote host closed the connection]
<srhb> Turion: Indeed.
<srhb> But now you have something to go on at least. :) Even a proposed solution (that has met some resistance)
rprije has joined #nixos
<Turion> srhb: Maybe I've missed something there. What's the proposed solution? Execute as root? (That's what I'm doing now anyways, fingers crossed)
<srhb> Turion: Following along with this seems like it might work for either case. It looks like you can then override cdrtools with null and then make a security wrapper for it: https://github.com/NixOS/nixpkgs/pull/44268
<{^_^}> #44268 (by Yarny0, 3 weeks ago, open): k3b: separate wrapper derivation to easily override cdrtools (e.g. with cdrkit)
<srhb> Turion: I meant the PR in the bottom, linked above. :)
<Turion> Oh yes, that
<Turion> Maybe I'm too lazy or understand too little, but it feels like an enormous effort to me to build k3b from that PR
<srhb> It's certainly not cost-free compared to it just being in a channel. :)
<Turion> Ah well, I burn a CD every other month... and that one is burned now. Bless su. Maybe the next time I'm burning one the PR is already merged :P
<srhb> Turion: Feel free to push for its inclusion. 18.09 freeze is coming up very soon.
__Sander__ has quit [Ping timeout: 272 seconds]
__Sander__ has joined #nixos
asymmetric_ has quit [Ping timeout: 244 seconds]
<kisik21> What is a good example of Qt5 derivation in Nixpkgs that uses QtWebEngine and QtQuickControls2?
<kisik21> I'm too impatient, I wanna copypaste
<srhb> kisik21: Have you tried grepping through pkgs for those terms?
<kisik21> not yet
<srhb> kisik21: Looks like amarok, mendeley, monero-gui, zoom-us and calamares use both.
asymmetric has joined #nixos
goibhniu has quit [Ping timeout: 244 seconds]
asymmetric_ has joined #nixos
asymmetric has quit [Ping timeout: 264 seconds]
goibhniu has joined #nixos
<ldlework> I am importing this inside nix repl, https://gist.github.com/dustinlacewell/468fcde130a4d1a46496d57c38f36494
<ldlework> when I call getDir it says that getDir is an undefined variable at line 10
<ldlework> what gives?
alezost has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 1.3.10 -> 1.3.13 »: https://git.io/fA3lG
<ldlework> why can't getDir call itself?
<ldlework> srhb: any idea?
<alezost> hello, I have written an Emacs interface for Hydra <https://github.com/alezost/build-farm.el>. Is there any mailing list where I can send announcement for it?
<kisik21> By the way, does our QtWebEngine in nixpkgs have proprietary codecs enabled?
<pie_> alezost, im pretty sure there is
<alezost> pie_: thanks, I would like to know what it is :-)
<{^_^}> [nixpkgs] @kamilchm opened pull request #45698 → Show the filename on unsupported shebang error. → https://git.io/fA38e
<pie_> alezost, i dont use them so i dont know xD
eren has quit [Ping timeout: 272 seconds]
<pie_> hm weird, its not listed on the community page
<ldlework> how do I fully print a structure in nixrepl?
Turion has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b4c9f8d0358 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
asymmetric has joined #nixos
<alezost> pie_: yeah, I can't find anything on the nix website. Anyway, thanks for the help!
asymmetric_ has quit [Ping timeout: 264 seconds]
<manveru> ldlework: :p
<srk> ldlework: lib.traceValSeq
<srk> hmm :p is nice
nek0 has quit [Ping timeout: 268 seconds]
hydraz has quit [Quit: ZNC 1.7.1 - https://znc.in]
hydraz_ has joined #nixos
nefix has joined #nixos
<genesis> https://nixos.org/nixos/nix-pills/basics-of-language.html should it be updated to nix repl ?
asymmetric has quit [Ping timeout: 272 seconds]
nek0 has joined #nixos
asymmetric has joined #nixos
<ldlework> nix-repl> filteredFiles ["unstable.*" "default.nix"] "/nixcfg/overlays"
<ldlework> [ "clerk.nix" "qtile.nix" ]
<ldlework> yay
trcc has quit [Remote host closed the connection]
<hyper_ch2> is there somehow an easy howto on (a) forking a repo (b) cloning down the forked repo (c) creating branch in cloned down forked repo (d) push commits in branch to forked repo (e) pull updates on original repo to forked repo?
<srhb> hyper_ch2: Everything from a-d is just business as usual, exactly as you described
<srhb> hyper_ch2: e) just requires adding a remote to the original
<srhb> hyper_ch2: Using nixpkgs as an example, git remote add upstream git@github.com:NixOS/nixpkgs.git
<ldlework> srk: what does :p do
<hyper_ch2> srhb: and then suddenly when I want to push stuff it tries to add them to nixos/nixpkgs instead of my fork
<srhb> hyper_ch2: Only if you set the remote tracking branch to upstream instead of origin (if that's the name of your fork)
<hyper_ch2> srhb: I didn't set anything
<hyper_ch2> srhb: this seems to cause a lot of issues: git remote add upstream git@github.com:NixOS/nixpkgs.git
<srhb> hyper_ch2: I don't know exactly what you did, but _somehow_ you got the branch to track upstream instead of origin by default, for instance by checking out a branch that doesn't exist in origin.
<srhb> hyper_ch2: You can just push to origin explicitly to avoid it.
<srhb> hyper_ch2: eg. git push --set-upstream origin HEAD
<hyper_ch2> srhb: I need step by step commands
<srk> ldlework: :help
asymmetric has quit [Ping timeout: 252 seconds]
<srhb> hyper_ch2: I'm sure there's a git guide out there somewhere that describes the method in steps, but I don't have a link handy.
<srhb> The steps you described seem right to me.
<hyper_ch2> srhb: well, starting fresh now, forked nixpgks to my github account... cloning it down again now
<srhb> Sounds good.
carlosdagos has quit [Quit: Connection closed for inactivity]
<hyper_ch2> well, still deleting the borked local copy before cloning down
trcc has joined #nixos
trcc has quit [Read error: Connection reset by peer]
trcc has joined #nixos
<hyper_ch2> poor disks on home server are moving 200GB data around currently
<ldlework> how do you get a specific element of a list?
<ldlework> by index?
<srhb> ldlework: I don't think there's a helper for that. Remember that lists are immutable, so the basic method is to cut up the list and make a new one with that element replaced.
<ldlework> elemAt
<ldlework> ninjad
<srhb> Oh, is there?
thibm has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @Mic92 opened pull request #45700 → nodePackages: 6_x -> 8_x → https://git.io/fA3uB
alex`` has quit [Quit: WeeChat 2.2]
<nbp> ^ This should be an easy answer, I presume.
<tilpner> nbp - users.groups.media.members = [ ... ];
<tilpner> Or users.groups.media = {}; and then users.users.plex.extraGroups = [ "media" ];
simukis has joined #nixos
<nbp> tilpner: I was not aware of the first one, but feel free to answer there. I do not have an account on superuser.com
<nbp> tilpner: I am just forwarding the question.
<tilpner> Oh
<{^_^}> [nixpkgs] @7c6f434c pushed to master « Improve re-wrapping in case of GTK3 »: https://git.io/fA32Y
ij is now known as siers
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
Ariakenom has quit [Ping timeout: 252 seconds]
orivej has joined #nixos
grenade has quit [Ping timeout: 264 seconds]
grenade has joined #nixos
Ariakenom has joined #nixos
Fulcrum_Plus has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #45585 → clickhouse: 18.5.1 -> 18.10.3 → https://git.io/fAt9f
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3w0
Twey has joined #nixos
<Twey> Lots of posts, e.g. https://ariya.io/2016/06/isolated-development-environment-using-nix , suggest using `env = buildEnv …` to mkDerivation when building a development environment for use with nix-shell. Why is that? As far as I can tell `env` has no special meaning to mkDerivation, right?
<Profpatsch> Do we have a standard way of sourcing bash/fish… completions inside a nix shell?
<{^_^}> [nixpkgs] @Mic92 merged pull request #45616 → [WIP] cb2bib: 1.9.7 -> 1.9.8 → https://git.io/fAqKn
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master:
<Profpatsch> If not, would it make sense to automatically source them by default when entering a nix shell?
<hyper_ch2> srhb: still here?
<Mic92> completion is only loaded as part of nixos modules
<cmcdragonkai> Will we ever have go libraries brought into Nixpkgs similar to python packages, hackage... etc?
<Mic92> I would not try to load them by default, but when a special hook package is added.
thibm has joined #nixos
<Mic92> cmcdragonkai: I think we stepped back from that.
<srhb> hyper_ch2: On and off. Working now. :)
<cmcdragonkai> Mic92: Why was that?
<hyper_ch2> srhb: so, I did now create the branch and made changes to it... how do I push the branch to my fork now?
m0rphism has quit [Quit: WeeChat 2.0]
<srhb> hyper_ch2: git push --set-upstream remote-name-of-your-fork HEAD(/remote name of your branch)
<Mic92> cmcdragonkai: there is no libary sharing between go programs and go compiles fast. So the only advantage would be some override mechanism.
<etu> Is there any good way to show the options from home-manager in a man-page like "man configuration.nix"?
mayhewluke has quit [Ping timeout: 252 seconds]
<Mic92> nix2go also is less hassel then maintaining python packages.
<srhb> hyper_ch2: If you cloned your fork, the remote name is probably origin
<cmcdragonkai> Mic92: What do you mean by library sharing? And wouldn't there also be the advantage of having more deterministic builds, since right now it requires creating a custom fixed output derivation list that may fail due to upstream changing things.
<hyper_ch2> srhb: here they say it's sufficient to just use git push -u origin <branch> https://stackoverflow.com/questions/2765421/how-do-i-push-a-new-local-branch-to-a-remote-git-repository-and-track-it-too
<srhb> hyper_ch2: Same thing.
<cmcdragonkai> Mic92: I guess upstream changing things would still be a problem right now, since upstream can still be flaky in the current nixpkgs.
mayhewluke has joined #nixos
<srhb> hyper_ch2: -u is just shorthand.
<Mic92> cmcdragonkai: buildGoPackage is already deterministic as far as I know.
<Mic92> and sources are cached.
<Mic92> shared libaries instead of static libraries
<Mic92> cmcdragonkai: you mean applying patches?
<hyper_ch2> srhb: ok, that works.... so in a few days (well, less than that), there will be more commits to Nixos/nixpkgs. How do I get those now into my fork on github and my clone on the home server?
philippD has joined #nixos
<cmcdragonkai> Mic92: They are static only in the sense that all of their source code is composed together to be compiled.
<cmcdragonkai> Mic92: I mean that derivations that rely on upstream addresses like https://github.com is itself assuming the internet is reliable, which it isn't
<{^_^}> [nixpkgs] @sjau opened pull request #45701 → Plex: 1.13.5.5291 -> 1.13.6.5339 → https://git.io/fA3o8
<srhb> hyper_ch2: eg. git checkout master && git pull upstream master
<Mic92> cmcdragonkai: the latter one is already solved sources are cached in the same way as for other packages.
<hyper_ch2> srhb: so I first need to add upstream
<cmcdragonkai> Mic92: Where are they being cached?
<srhb> hyper_ch2: Yes.
<srhb> hyper_ch2: Also you should probably use --rebase for the pull if you don't have that set globally.
<hyper_ch2> srhb: what does that do?
<Mic92> cmcdragonkai: when a package like this is build on hydra all its dependencies will be cached as well: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/lf/deps.nix#L7
<srhb> hyper_ch2: In short, it prevents accidental merge commits.. But you shouldn't make changes to master anyway, probably.
iyzsong has joined #nixos
<Mic92> go also tries to rebuild packages, so pre-compiling and storing those in the nix store can also break things.
<cmcdragonkai> Mic92: Hydra caches upstream sources? I suppose it can, but if I try to evaluate the expression directly on my computer, it can still fail because the upstream source is gone.
<Mic92> cmcdragonkai: but this also happens, if your packages are not in nixpkgs.
<hyper_ch2> srhb: thx
orivej has quit [Ping timeout: 276 seconds]
<srhb> hyper_ch2: And remember, any changes you push to feature branches on your fork that has a PR already will be reflected on that PR. (Meaning, use one branch per PR)
<hyper_ch2> srhb: after merging I can just remove my custom branch, right?
<srhb> hyper_ch2: Yes, and github will give you a button to do just that.
<{^_^}> [nixpkgs] @Profpatsch opened pull request #45702 → bazel: add upstream patch of perl replacement → https://git.io/fA3Kf
alexteves has joined #nixos
rprije has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #45703 → e2fsprogs: fix w/musl, __GNUC_PREREQ is glibc-ism → https://git.io/fA3iU
Twey has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #45704 → twitterBootstrap: v2 -> v3 → https://git.io/fA3iB
Twey has joined #nixos
iyzsong has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #45558 → nagios: 4.4.1 -> 4.4.2 → https://git.io/fAtn2
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « nagios: 4.4.1 -> 4.4.2 (#45558) »: https://git.io/fA3iN
<hyper_ch2> srhb: can you review this? https://paste.simplylinux.ch/view/raw/1af1d9b0
<srhb> hyper_ch2: I think it's confusing to call it nixos-master. The repository is called nixpkgs. I could not recommend using git add -A or commit -a. Recommend actually adding the modified files explicitly. Explain <branchname>. No read opinion on deletion (I would skip those instructions). Remember --rebase in pull
<{^_^}> [nixpkgs] @manveru opened pull request #45705 → ruby: default to version 2.5 → https://git.io/fA3P1
<srhb> If this is a nixpkgs specific guide I would also recommend information on how to add a channels remote, like in our guide, since it's easier to build from nixos-unstable rather than master.
iyzsong has joined #nixos
johanot has quit [Quit: leaving]
liori has joined #nixos
<hyper_ch2> srhb: no, that's right for me
<hyper_ch2> srhb: it's for me in the future
<srhb> Okay. :)
<hyper_ch2> need to add the rebase
<hyper_ch2> srhb: ok, assume I run git pull --rebasse upstream master .... how would I now push it to my fork on github? git push origin?
<srhb> hyper_ch2: Out of curiosity, why do you want to do that?
<hyper_ch2> srhb: why do I want what?
<srhb> To push the changes from upstream master to your fork
<srhb> (But same method, use -u if it's not tracking that branch by default)
<hyper_ch2> srhb: why wouldn't I want to push changes from upstream master to my fork? Isn't that the sensible thing to do?
<srhb> Personally I have my local master branch tracking upstream rather than origin, because I don't care what's on my fork's master branch.
<srhb> I never use that branch
alex`` has joined #nixos
<hyper_ch2> srhb: but I do :(
silver has joined #nixos
<srhb> Yeah, hence my curiosity: What do you use it for? :)
asymmetric has joined #nixos
<{^_^}> [nixpkgs] @edolstra pushed to master « virtualization.growPartition -> virtualisation.growPartition »: https://git.io/fA31M
asymmetric_ has joined #nixos
<nefix> cannot coerce a list to a string
<nefix> formatStartupPrograms = n:
<nefix> let
<nefix> concat = x: y:
<nefix> in
<nefix> x + y;
<nefix> concat n map(" &");
<nefix> oof
<nefix> sorry for that
<nefix> But what does it mean?]
asymmetric has quit [Ping timeout: 264 seconds]
<srhb> > "${[1 2 3 4}"
<{^_^}> error: syntax error, unexpected '}', at (string):171:12
<srhb> > "${[1 2 3 4]}"
<{^_^}> cannot coerce a list to a string, at (string):171:2
<srhb> > "${builtins.toString [1 2 3 4]}"
<{^_^}> "1 2 3 4"
<srhb> Sorry about that first one
<nefix> hmm
Yaniel has quit [Ping timeout: 252 seconds]
<nefix> I want to append " &" in each list item
<nefix> And return this new list
<srhb> > map (s: s + " &") ["foo" "bar"]
<{^_^}> [ <CODE> <CODE> ]
<srhb> Bleh..
hyper_ch has quit [Remote host closed the connection]
<nefix> That worked!!! Thanks!
<gchristensen> > builtins.deepSeq "" (map (s: s + " &") ["foo" "bar"])
<gchristensen> > builtins.deepSeq "" (map (s: s + " &") ["foo" "bar"])
<symphorien> nefix: there is lib.concatStringsSep
hyper_ch has joined #nixos
<gchristensen> hrm.
<nefix> I'm stupid
<philippD> > builtins.toJSON (map (s: s + " &") ["foo" "bar"])
<{^_^}> nope
<gchristensen> infinisil...
<philippD> wat?
<nefix> I had an example of concatMapStringsSep right there
<gchristensen> not cool
<srhb> The bot is entering its teens, clearly.
<infinisil> Huh what that wasn't me
<gchristensen> haha, srhb
<gchristensen> > builtins
<{^_^}> { abort = <PRIMOP>; add = <PRIMOP>; addErrorContext = <PRIMOP>; all = <PRIMOP>; any = <PRIMOP>; attrNames = <PRIMOP>; attrValues = <PRIMOP>; baseNameOf = <PRIMOP>; builtins = { abort = <PRIMOP>; add =...
<gchristensen> > builtins.toJSON
<{^_^}> <PRIMOP>
<infinisil> Ohh lol, figured it out
<infinisil> > :v map
<{^_^}> map = f: l: builtins.map (x: throw "nope") l
<infinisil> Who did that lol
<philippD> oh man
<infinisil> > map = builtins.map
<{^_^}> map defined
<nefix> Now I just need one more thing
<nefix> Make a file executable
<nefix> How could I archieve that?
<philippD> chmod +x in the buildPhase script?
sigmundv__ is now known as sigmundv
<philippD> Is there a Haddoc or Javadoc equivalent for nix-expressions?
<nefix> philippD: I need to do that with xdg.configFile
<nefix> (Or at least I'd like to)
<nefix> It's not a package, I'm writting a module for home-manager
<symphorien> There has been a discussion about it but it died while bikesheeding about the flavor of markdown to use
<clever> ldlework: substituteAll accepts an isExecutable flag, no need for writeScript
<philippD> symphorien: Can you point me to that discussion?
<symphorien> Not what I thought about but: https://github.com/NixOS/nixpkgs/pull/27394
<{^_^}> #27394 (by grahamc, 1 year ago, closed): nixpkgs: poor mans doc blocks wip / rfc / etc
<gchristensen> that PR was a bad idea
jperras has joined #nixos
<Dezgeg> I wonder how hard it is to extend something like doxygen
<symphorien> But iirc there was another attempt in markdown
<symphorien> And nothing came of it
<nefix> Can you change the permissions of a type.path?
<symphorien> After build, the store is immutable
<nefix> Before
<philippD> nefix: you should do permission stuff in the buildPhase or installPhase.
<nefix> I think it's in buildPhase, but I'm not sure
<nefix> Or maybe it's in install
<{^_^}> [nixpkgs] @Mic92 merged pull request #45537 → setbfree: 0.8.7 -> 0.8.8 → https://git.io/fAtIE
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3yr
<nefix> The thing is that I have a type.path object, and I want to make it executable
<symphorien> Do it in the buildPhase of the path itself, not when you use it
<nefix> But how can I do that?
<philippD> or copy it and make the copy executable
ZoomZoomZoom has joined #nixos
<philippD> cp ${some.path} $out/localFile; chmod +x $out/localFile;
<nefix> The thing is that I'm creating a home-manager module, so I have no clue how to do that
alex`` has quit [Ping timeout: 244 seconds]
<nefix> Oh wait a sec
<ZoomZoomZoom> Hi everyone. Is bcachefs kernel broken for anyone? I think there was a bug that Kent seems to have fixed a few days ago, which prevents me from booting.
alex`` has joined #nixos
orivej has joined #nixos
<hyper_ch2> srhb: thx for the help
<philippD> Is there a way to detect the current verbosity level inside a buildPhase script?
<{^_^}> [nixpkgs] @dtzWill opened pull request #45706 → micro: 1.4.0 -> 1.4.1 → https://git.io/fA3Sx
acarrico has quit [Ping timeout: 272 seconds]
<nefix> Oh
<nefix> there was an option to make the file executable
<nefix> xD
WilliButz has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<Twey> Also do we have a way to set the shell prompt in a nix-shell?
<Twey> I think PS1 gets overridden
<gchristensen> do you have a shell.nix, or is it from `nix-shell -p`?
<Twey> shell.nix
<gchristensen> you can add your own PS1 variable I think there, or a shellHook = ''PS1="my-cool-ps1: "'';
<Twey> I'd like to be able to keep track of which shell I'm in. So the name of the derivation would be good
<Twey> Hmm
<philippD> Twey: If you are using zsh I wrote a oh-my-zsh plugin for that https://github.com/chisui/zsh-nix-shell
<Twey> philippD: I'm not :(
<Twey> gchristensen: Just setting PS1 = "my-cool-ps1: "; in the derivation doesn't seem to change anything
<gchristensen> how about inside a shellHook
<Twey> shellHook works though, thanks!
<gchristensen> great!
<philippD> If you want to define it more generally you could use $PROMPT_COMMAND and evaulate $IN_NIX_SHELL to set the prompt
acarrico has joined #nixos
<{^_^}> [nixpkgs] @jtojnar opened pull request #45707 → Drop libnm-gtk → https://git.io/fA37v
graphene has quit [Remote host closed the connection]
Yaniel has joined #nixos
graphene has joined #nixos
rtjure has quit [Ping timeout: 252 seconds]
trcc has quit [Remote host closed the connection]
rtjure has joined #nixos
trcc has joined #nixos
jD91mZM2 has joined #nixos
<Enzime> why is the commit different to
iyzsong has quit [Ping timeout: 272 seconds]
trcc has quit [Ping timeout: 264 seconds]
ilikeheaps has joined #nixos
jperras has joined #nixos
<ilikeheaps> Is there a way to nixos-rebuild for a different architecture? I want to swap CPU (i686 -> x86-64)
thibm has quit [Quit: WeeChat 2.0]
drakonis_ has joined #nixos
selfsymmetric-pa has quit [Ping timeout: 264 seconds]
<Dezgeg> not in that direction
orivej has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #45708 → boehmgc: 7.6.6 -> 7.6.8 → https://git.io/fA3NF
<ilikeheaps> It would be possible the other way?
<Dezgeg> yes since in x86-64 mode you can run i686 code but not the other way around
<{^_^}> [nixpkgs] @Mic92 merged pull request #45704 → twitterBootstrap: v2 -> v3 → https://git.io/fA3iB
<ilikeheaps> Oh right, makes sense. Although it would also make some sense to be able to `nixos-rebuild boot` for a different architecture but maybe it's too niche case
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3AA
<Dezgeg> you really can't since the grub configuration generator that needs to be run will be built for the new architecture
Tucky has quit [Quit: WeeChat 2.2]
graphene has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Profpatsch merged pull request #45702 → bazel: add upstream patch of perl replacement → https://git.io/fA3Kf
graphene has joined #nixos
<{^_^}> [nixpkgs] @Profpatsch pushed to master « bazel: add upstream patch of perl replacement »: https://git.io/fA3xm
<Enzime> what's the difference between libGL and libGLU_combined?
<nefix> Where can I find the nix types?
<{^_^}> [nixpkgs] @dtzWill merged pull request #45703 → e2fsprogs: fix w/musl, __GNUC_PREREQ is glibc-ism → https://git.io/fA3iU
<nefix> mv,
<nefix> nvm*
<{^_^}> [nixpkgs] @jyp opened pull request #45709 → Tf 1.10.1 → https://git.io/fA3xr
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fA3xK
foldingcookie has joined #nixos
thibm has joined #nixos
<philippD> Where is the nix file for texlive? Every texlive package just points to pkgs/build-support/trivial-builders.nix which doesn't help at all.
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<philippD> Ok, I found it at pkgs/tools/typesetting/tex/texlive/default.nix but why is the nixos.org package search point to trivial-builder.nix?
<{^_^}> [nixpkgs] @Mic92 merged pull request #45706 → micro: 1.4.0 -> 1.4.1 → https://git.io/fA3Sx
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA3h2
<Mic92> philippD: probably because meta is defined in trivial-builders
Yaniel has quit [Ping timeout: 244 seconds]
Yaniel has joined #nixos
revtintin has joined #nixos
timj1 has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @dezgeg pushed to master « nixos/zabbix-agent: Make the Zabbix package user-configurable »: https://git.io/fAsvv
<philippD> I have written a `mkPandoc` nix function that creates pdfs using pandoc. Where should I put that on my nixpkgs? Should I just stick it on the top level pandoc package?
timj has joined #nixos
globin has joined #nixos
<nefix> Where do you store your own nixpkgs tree? I'm trying to add a package, but I don't understand what's the point of having the whole custom tree if you want to be locked in a specific version of NixOS
graphene has quit [Remote host closed the connection]
<sphalerite> nefix: not sure what you mean. You can use overlays to somewhat decouple your stuff from nixpkgs, or you can have a git checkout with your own commits on top and rebase that on your upstream branch of choice to update
<sphalerite> (or merge the upstream branch in for better history preservation)
graphene has joined #nixos
graphene has quit [Remote host closed the connection]
MarkRBM has joined #nixos
graphene has joined #nixos
<nefix> Hmm, that's a lot of work for having just a package
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
nschoe has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
<sphalerite> nefix: an overlay isn't much work.
<nefix> I mean. I want to add a package that it's not in the "repo"
<sphalerite> yes
<nefix> I was following the manual and I'm clonning the nixpkgs repo
<sphalerite> make an overlay like self: super: {foo = super.stdenv.mkDerivation {…};}
<nefix> The thing is that then I need to point the "nix repo" to my nixpkgs
<genesis> why you don't let him contribute to nixpkgs ?
<sphalerite> then you'll have foo in your nixpkgs scope without touching the upstream nixpkgs stuff
<sphalerite> you only need to follow as it says in the manual if you want to contribute your package upstream, which is of course a good thing too
<nefix> Could you elaborate that a bit more?
<nefix> genesis: I want to contribute to nixpkgs too
<Lears> I'm building a haskell executable that uses ghc-paths, but it's not getting a ghc that has the correct libraries, even when those libraries are explicitly added to both libraryHaskellDepends and executableHaskellDepends. Does anyone know how to make ghc-paths and nix play nicely?
Twey has quit [Ping timeout: 268 seconds]
abueide has joined #nixos
timokau[m] has joined #nixos
Twey has joined #nixos
alezost has quit [Quit: I live in GuixSD <http://www.gnu.org/s/guix> and Emacs <http://www.gnu.org/s/emacs>]
<timokau[m]> Is there something like NIX_BUILD_CORES for available memory?
<Lears> Wait no, ghc-paths would be used indirectly through dyre, but looking at the patch for dyre on nixpkgs ghc-paths is replaced with $NIX_GHC...
<{^_^}> [nixpkgs] @globin merged pull request #45451 → systemd: ensure fsck Requires/After links are created in mount units → https://git.io/fATuT
<{^_^}> [nixpkgs] @globin pushed commit from @jerith666 to master « systemd: ensure fsck Requires/After links are created in mount units »: https://git.io/fAsTS
logzet has quit [Remote host closed the connection]
<sphalerite> timokau[m]: That would be amazing, but no. Memory usage is nondeterministic and unpredictable
silver_ has joined #nixos
endformationage has joined #nixos
silver has quit [Ping timeout: 244 seconds]
abueide has quit [Remote host closed the connection]
abueide has joined #nixos
abueide has quit [Remote host closed the connection]
booglewoogle has joined #nixos
graphene has quit [Remote host closed the connection]
<booglewoogle> hey, does anyone here use ghc-mod? I'm encountering errors trying to install it (https://pastebin.com/qzaCXYe4)
graphene has joined #nixos
xorkle has joined #nixos
jperras_ has joined #nixos
xorkle has quit [Client Quit]
jperras has quit [Ping timeout: 276 seconds]
xorkle has joined #nixos
jperras has joined #nixos
<timokau[m]> sphalerite: Most of the time yes. But in the sage docbuild you can actually configure the amount of memory available, so I was wondering if I can make use of that
<sphalerite> timokau[m]: do you have to? Arguably you could use free or something to determine the amount available, but that will vary depending on other stuff running as well. In any case, nix doesn't have a facility for it
lassulus has quit [Ping timeout: 244 seconds]
jperras_ has quit [Ping timeout: 252 seconds]
<timokau[m]> sphalerite: No, just would be nice. Especially since it uses tons of memory. Yeah just determining global memory wouldn't be as nice as having a nix variable. Anyways, probably not worth adding one.
<booglewoogle> okay, if nobody's using ghcmod: any haskellers here using vim and got some form of autocompletion engine working?
revtintin has quit [Quit: WeeChat 1.9.1]
<booglewoogle> trying to set something up that i can use for a while and ghc-mod was mentioned a lot when i researched useful plugins
<infinisil> booglewoogle: Check out https://github.com/haskell/haskell-ide-engine
<infinisil> I'm using it with emacs, but it's using LSP, so it should work with any editor that supports the protocol
<booglewoogle> infinisil: oooh, that looks promising, thank you!
erickomoto has joined #nixos
erickomoto has quit [Client Quit]
lassulus has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #45707 → Drop libnm-gtk → https://git.io/fA37v
<{^_^}> [nixpkgs] @jtojnar pushed 9 commits to master: https://git.io/fAsqV
ThatDocsLady has quit [Ping timeout: 252 seconds]
sigmundv has quit [Ping timeout: 272 seconds]
jperras_ has joined #nixos
<LnL> infinisil: do we have that in nixpkgs?
<infinisil> LnL: Not anymore, see #34447
<{^_^}> https://github.com/NixOS/nixpkgs/issues/34447 (by Infinisil, 29 weeks ago, closed): haskell-ide-engine broken
<infinisil> There's domenkozar's hie-nix you can use https://github.com/domenkozar/hie-nix
jperras has quit [Ping timeout: 252 seconds]
__Sander__ has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @samueldr opened pull request #45710 → dbeaver: 5.1.5 -> 5.1.6 → https://git.io/fAsmw
<{^_^}> [nixpkgs] @samueldr opened pull request #45711 → dbeaver: 5.1.5 -> 5.1.6 (18.03) → https://git.io/fAsm6
<viric_> hm I'm having troubles with nixos-install
viric_ is now known as viric
<viric> systemd.logind times out
<philippD> Is there a way to get a derivations src attribute from the command line? I know you can call `nix repl file.nix` and then `src` inside the repl but I want a single command that does that
<viric> and then I don't get any login
<viric> I enabled the systemd log debug in console and that's how I knew about the timeout
<viric> why logind times out, I don't know.
<{^_^}> [nixpkgs] @primeos pushed to master « sshfs: 3.4.0 -> 3.5.0 »: https://git.io/fAsmp
<booglewoogle> cachix isn't in nixpkgs either, huh?
<booglewoogle> alright then, seems like i can't avoid nix-env -i any longer :P
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/94a906b59a7 (from 52 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
MarkRBM has quit [Ping timeout: 244 seconds]
<manveru> probably stupid question, but is there some way that i can move /nix/store to another harddisk while the system is running?
<manveru> (on nixos)
drp has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<infinisil> philippD: nix-instantiate --eval file.nix -A src
<philippD> ahh thanks infinisil
<{^_^}> [nixpkgs] @Mic92 merged pull request #45710 → dbeaver: 5.1.5 -> 5.1.6 → https://git.io/fAsmw
<{^_^}> [nixpkgs] @Mic92 merged pull request #45711 → dbeaver: 5.1.5 -> 5.1.6 (18.03) → https://git.io/fAsm6
<ajs124> manveru, that depends on your setup. It's more or less like moving your root filesystem on any other linux distribution, while it's running.
<manveru> yeah...
<nefix> cannot coerce a list to a string
<nefix> map(s:
<nefix> "bscp monitor ${s.name} -d ${s.desktops}"
<nefix> ) n;
<nefix> n is a list of sets
<nefix> Why does that happen?
<elvishjerricco> nefix: Sounds like `s.desktops` is a list. Can't interpolate a list like that
<nefix> Oh
<nefix> Thanks!
<nefix> It worked
worldofpeace has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @primeos pushed to master « tdesktop: 1.3.13 -> 1.3.14 »: https://git.io/fAsOK
jperras_ has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAsOM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/fAsOD
redj has quit [Quit: No Ping reply in 180 seconds.]
nschoe has quit [Ping timeout: 252 seconds]
fresheyeball has joined #nixos
<fresheyeball> hey out there
<fresheyeball> so I am trying to use a private nix cache
jperras has joined #nixos
<fresheyeball> I am using nix.sshServe.enable = true
<fresheyeball> and have used nix.sshServe.keys
Ariakenom has quit [Ping timeout: 272 seconds]
<fresheyeball> then on my machine, I added `https://mycache.io` to nix.trustedBinaryCaches
<fresheyeball> and I run
<nefix> "bscp monitor" + if (s.name != null) then(s.name + " ") + "-d ${concatStringsSep " " s.desktops}"
<fresheyeball> nix-build --option binary-caches https://mycache.io
<nefix> What's wrong with the if?\
<Taneb> nefix: it needs a matching else, I think
<fresheyeball> and I get warning: unable to download 'https://mycache.io/nix-cache-info': SSL peer certificate or SSH remote key was not OK (51); retrying in 2052 msn
<fresheyeball> what could be wrong here?
<fresheyeball> I can ssh into the box with the cache no problem
<nefix> "bscp monitor" + if (s.name != null) then(s.name + " ") + "-d ${concatStringsSep " " s.desktops}"
<nefix> Fuck
<nefix> Not that
<nefix> "unexpected IF"
<Taneb> nefix: ah, wrap it in parentheses
kisik21 has quit [Ping timeout: 244 seconds]
<nefix> Yep, that worked. Also, the else was needed
<nefix> Thanks!
erasmas has joined #nixos
<fresheyeball> maybe I need to use ssh:// ?
<fresheyeball> is that a thing?
doyougnu has joined #nixos
<fresheyeball> ok, so ssh:// does not help
<fresheyeball> mightybyte: sup dude!
<fresheyeball> Oh yeah, I read this, but then forgot about it
kisik21 has joined #nixos
orivej has joined #nixos
exarkun_ has quit [Read error: Connection reset by peer]
ixxie has joined #nixos
<fresheyeball> mightybyte: so your method is using substituters
<fresheyeball> I want o use trustedBinaryCaches
<fresheyeball> to*
nschoe has joined #nixos
<mightybyte> I think everything I wrote there should still apply.
<ixxie> gchristensen: was it you who praised the virtues of nixopsing the machine you deploy from?
<gchristensen> I don't do that, no
<gchristensen> seems weird to me :)
<fresheyeball> I get `error: writing to file: Broken pipe`
<fresheyeball> when using ssh://root@mycache.io
Twey has quit [Ping timeout: 268 seconds]
<mightybyte> fresheyeball: Try using my method exactly as described, and then switch to trustedBinaryCaches after you get that working.
<elvishjerricco> mightybyte: trustedBinaryCaches -> trusted-substituters. This is not the best way to establish trust on a cache.
exarkun_ has joined #nixos
<fresheyeball> elvishjerricco: why? Its a private cache
<elvishjerricco> It's better to use binaryCaches (-> substituters), sign the paths on the cache, and add the public key to binaryCachePublicKeys (-> trusted-public-keys)
exarkun_ has quit [Read error: Connection reset by peer]
<elvishjerricco> If the server becomes corrupt, or worse, compromised, then the signature verification will catch it
<elvishjerricco> s/will/can/
Twey has joined #nixos
<elvishjerricco> fresheyeball: That said, I don't have any idea how to use nix.sshServe :P
ilikeheaps has quit [Ping timeout: 264 seconds]
baimafeima has joined #nixos
<elvishjerricco> I would have guessed you'd need `ssh://` rather than `https://`, but I dunno
orivej has quit [Ping timeout: 245 seconds]
<fresheyeball> elvishjerricco: yeah ssh://root@ is what mightybyte has in his tut
<fresheyeball> but really I want to understand why you are opposed to the trustedBinaryCaches approach
<elvishjerricco> fresheyeball: Because if a path is somehow corrupt, you won't know
<fresheyeball> elvishjerricco: what do you mean by corrupt, and why would I not know?
exarkun__ has joined #nixos
ZoomZoomZoom has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<elvishjerricco> Say a bit flips on the disk on the server, changing the path without Nix's permission. When you download that path, you won't know that it's wrong and that the program you just downloaded has an invalid instruction (or worse, a wrong instruction)
<fresheyeball> elvishjerricco: as the owner of the server, I am just not concerned about that
baimafeima has quit [Quit: Leaving]
jeschli has joined #nixos
<elvishjerricco> fresheyeball: Ok. There's still some security concern, e.g. in the event that someone gains non-root access to the server. It doesn't really seem any harder to me and you get some nice guarantees as a result.
<fresheyeball> elvishjerricco: ok then
<cocreature> you’re not concerned about disk failures on your server?
<fresheyeball> cocreature: how would that cause a wrong binary to download?
fzer0 has joined #nixos
<elvishjerricco> by corrupting the file?
<cocreature> exactly
<fresheyeball> ok, I see
<fresheyeball> signing prevents this
<elvishjerricco> So what's the error you get when trying to use `ssh://root@...` again?
<fresheyeball> broken pipe
drp has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @seitz opened pull request #45712 → nano: updated 'nixSyntaxHighlight' → https://git.io/fAsnk
<elvishjerricco> Odd
<gchristensen> try nix ping-store ssh://root@...
stanibanani has joined #nixos
<fresheyeball> gchristensen: no output
jonreeve has joined #nixos
<gchristensen> maybe try with -vvvv
<fresheyeball> no output
Ariakenom has joined #nixos
<jonreeve> If I have a python package downloaded locally with git, and it has a setup.py file, can I try it out real quick using nix-shell?
<{^_^}> [nixpkgs] @qolii opened pull request #45713 → nbd: 3.17 -> 3.18. Also, add which to buildInputs (needed by test pha… → https://git.io/fAsn0
<elvishjerricco> fresheyeball: I think that means it's working?
<fresheyeball> right I think so too
* gchristensen isn't sure
<elvishjerricco> I bet the problem is that the Nix daemon doesn't have SSH access to the machine. e.g. it either needs the private key, or it needs to add it as a known host
<mightybyte> Yes
<mightybyte> Read my tutorial
<mightybyte> On mac you have to set up an SSH key for the root user.
<elvishjerricco> Yea, because the daemon runs as root
<fresheyeball> mightybyte: oic
<fresheyeball> elvishjerricco: is there an "option" for adding known hosts to root?
<elvishjerricco> probably...
<mightybyte> I got around that be just sshing directly to the cache once.
<fresheyeball> ok I see
<fresheyeball> let me try that
<mightybyte> It automatically adds to known hosts
<mightybyte> It should all be there in the tutorial.
<fresheyeball> mightybyte: I think its different on nixos
<mightybyte> Ahh yes. I didn't test there.
<mightybyte> Only on Mac
<mightybyte> If you can give me the differences on NixOS I'll be happy to add that to the tutioral.
<mightybyte> tutorial
<fresheyeball> mightybyte: yeah, it would be even more awesome with nixos stuff
nschoe has quit [Ping timeout: 245 seconds]
stanibanani has left #nixos [#nixos]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/59171d4f7aa (from 56 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
timj has quit [Ping timeout: 276 seconds]
exarkun__ has quit [Ping timeout: 244 seconds]
rfold has joined #nixos
exarkun__ has joined #nixos
timj has joined #nixos
jonreeve has quit [Ping timeout: 244 seconds]
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/59171d4f7aa (from 66 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
thibm has quit [Quit: WeeChat 2.0]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<srhb> gchristensen: fresheyeball: The argument to ping-store needs --store if not the local store (and no output with return value 0 is just "success")
jperras has quit [Quit: WeeChat 2.2]
<fresheyeball> srhb: I used --store
Twey has quit [Ping timeout: 245 seconds]
<manveru> great... the live disk gives a kernel panic :|
exarkun__ has quit [Ping timeout: 264 seconds]
exarkun__ has joined #nixos
<fresheyeball> I can confirm the following does not error
<fresheyeball> nix-build --option trusted-binary-caches ssh://root@mycache.io
<fresheyeball> but I also don't see it download anything
<gchristensen> you would have to be root (or a trusted user) to use that option
<fresheyeball> gchristensen: is it possible I am not a trusted user on my own machine?
<fresheyeball> or do I need to be truested on the server?
<gchristensen> you are not trusted on your own machine unless you're root, or modified the default nix config
<manveru> any way to figure out why the live disk panics?
<gchristensen> manveru: can you edit the bootloader's commandline arguments?
<manveru> yeah
<gchristensen> try adding loglevel=7
<manveru> and can i make the messages scrollable?
<gchristensen> physical hardware?
<manveru> seems like some squashfs errors, but it's way too fast to read
<manveru> yeah
graphene has quit [Remote host closed the connection]
<manveru> my desktop broke today :(
<gchristensen> I think alt-pageup will work?
<gchristensen> squashfs errors sounds like the downloaded file might be corrupt?
kisik21 has quit [Ping timeout: 245 seconds]
<manveru> the sha256 matches
graphene has joined #nixos
<manveru> i can try a different usb stick
<ixxie> I need to have my ssh keys in root on a target in order to do nixops deployment?
<ixxie> or is a normal user on wheel sufficient somehow?
<clever> ixxie: nixops always uses root
<manveru> gchristensen: yeah, probably the stick is broken
<manveru> new one works
<gchristensen> good to hear
kisik21 has joined #nixos
b has joined #nixos
johanot has joined #nixos
kenshinC1 has joined #nixos
pikajude has quit [Remote host closed the connection]
pikajude has joined #nixos
<joko> Hey, is there a way to make "nix build" output the building phase?
<clever> joko: i just switch back to nix-build when i want that
<joko> clever: fair enough :D
orivej has quit [Ping timeout: 268 seconds]
pikajude has quit [Remote host closed the connection]
pikajude has joined #nixos
drakonis_ has quit [Remote host closed the connection]
DigitalKiwi has joined #nixos
asymmetric_ has quit [Ping timeout: 244 seconds]
erasmas has quit [Quit: leaving]
pie_ has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 2.2]
pie_ has joined #nixos
solaire has joined #nixos
heinrich5991 has quit [Quit: quit.]
ThatDocsLady has joined #nixos
heinrich5991 has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
solaire has quit [Remote host closed the connection]
solaire has joined #nixos
<luigy> what escaping do I need to actually insert newlines '\n' intead of the actual text `\n` in a `substituteInPlace`?
<ixxie> thanks clever
<{^_^}> [nixpkgs] @xeji merged pull request #45563 → lxc: 3.0.1 -> 3.0.2 → https://git.io/fAtB7
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « lxc: 3.0.1 -> 3.0.2 (#45563) »: https://git.io/fAsEe
<{^_^}> [nixpkgs] @xeji merged pull request #45561 → lxcfs: 3.0.1 -> 3.0.2 → https://git.io/fAt83
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « lxcfs: 3.0.1 -> 3.0.2 (#45561) »: https://git.io/fAsEU
<ixxie> hmm I found the docker registry module options, but does anybody know how I can grant myself access to push stuff up to it from my desktop?
<ixxie> I would consult docker's manuals but they all suppose deployment happens.... with docker xD
<elvishjerricco> luigy: Maybe it'd be easier to use `sed` for that?
<luigy> elvishjerricco: heh true!
mayhewluke has quit [Ping timeout: 268 seconds]
<fresheyeball> luigy: hiya!
mayhewluke has joined #nixos
booglewoogle has quit [Quit: Leaving]
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @qolii closed pull request #45713 → nbd: 3.17 -> 3.18. Also, add which to buildInputs (needed by test pha… → https://git.io/fAsn0
sigmundv has joined #nixos
<luigy> fresheyeball: hey!
exarkun__ has quit [Quit: Lost terminal]
<luigy> got the binary cache server working?
jD91mZM2 has quit [Quit: WeeChat 2.0]
kenshinC1 has quit [Ping timeout: 272 seconds]
doyougnu has quit [Ping timeout: 245 seconds]
<sphalerite> luigy: $'\n' should do it
<sphalerite> luigy: this is bash (or maybe posix sh? not sure) syntax for strings containing special characters
nbardiuk_ has joined #nixos
trcc has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.0]
wpcarro has joined #nixos
johanot has quit [Ping timeout: 272 seconds]
pi3r has joined #nixos
jperras has joined #nixos
trcc has quit [Remote host closed the connection]
__monty__ has quit [Ping timeout: 252 seconds]
trcc has joined #nixos
orivej has joined #nixos
logzet has joined #nixos
nikivi has quit [Quit: ZNC is awesome]
trcc has quit [Ping timeout: 245 seconds]
wpcarro has quit []
qyliss^work has quit [Ping timeout: 264 seconds]
Yardanico has quit [Quit: Quitting]
<elvishjerricco> How can I work around Nix running out of memory when I try to upload a path like GHC to a server with 1G of RAM?
<symphorien> add swap
<tilpner> Lots of swap, or try a newer Nix
qyliss^work has joined #nixos
<elvishjerricco> tilpner: Is this fixed in newer nixes? I'd be happy to upgrade
nikivi has joined #nixos
<tilpner> IIRC it is, but last I checked no channel had a sufficiently new Nix packaged
<hyper_ch> LnL: what is this about plex pass?
<elvishjerricco> tilpner: Is the fix unreleased? Or is 2.0.4 just not the latest version?
stanibanani has joined #nixos
<tilpner> elvishjerricco - When I checked, it wasn't released. I would have to run Nix master, and I wasn't brave enough for that
<elvishjerricco> tilpner: Any idea how I can check it now?
<LnL> hyper_ch: they have a version with extra features, but that's not free
<tilpner> Given that it only says "master", and 25 days ago...
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nixos
<{^_^}> [nixpkgs] @LnL7 closed pull request #45701 → Plex: 1.13.5.5291 -> 1.13.6.5339 → https://git.io/fA3o8
<{^_^}> [nixpkgs] @countingsort opened pull request #45714 → bunny: init at 1.1 → https://git.io/fAsaA
<{^_^}> [nixpkgs] @LnL7 merged pull request #45352 → vim_configurable: fix darwin build with guiSupport → https://git.io/fAvV5
<{^_^}> [nixpkgs] @LnL7 pushed 5 commits to master: https://git.io/fAsax
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
trcc has joined #nixos
<{^_^}> [nixpkgs] @xeji opened pull request #45716 → dwm-git: init at 20180602 → https://git.io/fAsVy
timj has quit [Ping timeout: 264 seconds]
Drakonis has joined #nixos
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
seanparsons has joined #nixos
ixxie has quit [Quit: Lost terminal]
booglewoogle has joined #nixos
mikky has quit [Quit: WeeChat 1.0.1]
hlolli has joined #nixos
nikivi has quit [Quit: ZNC is awesome]
nikivi has joined #nixos
<booglewoogle> hey! i want to change my vconsole keyboard layout to a custom one. the old way of specifying it in vconsole.conf doesn't work obviously, and I didn't find a corresponding option.. someone know this offhand?
<symphorien> booglewoogle: https://nixos.org/nixos/options.html#i18n+consolekey ?
<booglewoogle> this only looks in a predetermined read-only directory if i understand correctly, meaning i can't put my custom .map there
<symphorien> if you have your custom map in the correct format, then ${./custom.map} will do
timj has joined #nixos
nikivi has quit [Quit: ZNC is awesome]
<adamantium> hi, im in the process of writing some install scripts to bootstrap my personal nixos workstations. It handles filesystems and partitioning and things, to prep for bootstrap of my configuration.nix. I also use a modular configuration.nix, and I cannot figure out how to execute my files using "nixos-install" it does not seem to import my imports.
<adamantium> I guess I'm asking if anyone has run across this, this, nixos-install not importing your imports.
Mateon1 has quit [Remote host closed the connection]
<gchristensen> how are you pointing nixos-install to your imports?
nikivi has joined #nixos
woffs has quit [Ping timeout: 264 seconds]
<joko> adamantium: have you updated /mnt/etc/nixos/configuration.nix to import your files? Have you copied them to /mnt/etc/nixos?
<{^_^}> [nixpkgs] @edwtjo pushed to master « i2pd: 2.19.0 -> 2.20.0 »: https://git.io/fAsr5
teej has joined #nixos
<booglewoogle> symphorien: oh yeah, that seems to be exactly what i'm looking for! this is so awesome. gonna try that!
<booglewoogle> thanks!
another_ has joined #nixos
<another_> I'm looking to Nixify my Emacs configuration. Does anyone have a simple example of this? Would love to work from reference...
another_ is now known as wpcarro
<wpcarro> gchristensen: good to know it's even possible! Thanks for sharing
<{^_^}> wpcarro: 4 weeks, 17 hours ago <samueldr> hey welcome back, https://gist.github.com/samueldr/a8a0dfe08932fd12fc12c30b78dfc55b for a sample shell.nix
<gchristensen> :)
<samueldr> four weeks, 17 hours ago!
<adamantium> gchristensen: joko: I believe I did have things pointed corectly, But let me confirm with you guys that I understand the procedure corectly. You're saying that /mnt/etc/nixos/configuration.nix imports must point to imports that are within /mnt/ , and finally that nixos-install will be able to bootstrap it all in one-shot. correct?
<gchristensen> right
<adamantium> I will just have to keep trying then
<adamantium> thanks
stanibanani has quit [Ping timeout: 244 seconds]
<adamantium> do relative path imports matter?
Mateon1 has joined #nixos
<adamantium> Well they work on my already installed machine, so that must not be it.
<{^_^}> [nixpkgs] @jwiegley pushed 2 commits to master: https://git.io/fAsoN
<joko> adamantium: could you post your /mnt/etc/nixos/configuration.nix
<joko> ?
<gchristensen> and the error
gurmble has joined #nixos
grumble has quit [Quit: The world could be such a nice place, if it weren't for its inhabitants.]
gurmble is now known as grumble
asymmetric_ has joined #nixos
<adamantium> i cannot right now, this was last nights fail in a vm
<adamantium> the vm was a live disk and isn't running atm
<adamantium> i am really glad i have you guys though, if i can't quite get it, i'll be back and i'll be able to post that at that time.
<gchristensen> great!
<gchristensen> (though don't forget about the not-guys here who are excellent and valued members of our community!)
<hyper_ch> LnL: so plex pass doesn't work with latest plex?
asymmetric_ has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #45712 → nano: updated 'nixSyntaxHighlight' → https://git.io/fAsnk
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAsPT
<{^_^}> [nixpkgs] @Mic92 closed pull request #36156 → cpp_ethereum: mark as broken → https://git.io/vAMmp
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #45717 → treewide: Deprecate platform aliases for 18.09 → https://git.io/fAsP7
civodul has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #45415 → virtualbox: Change the virtualbox tests to not build the unfree tests by default → https://git.io/fAJwu
<{^_^}> [nixpkgs] @xeji pushed commit from @cdepillabout to master « virtualbox: Change the virtualbox tests to not build the unfree tests by default. (#45415) »: https://git.io/fAsX3
<LnL> hyper_ch: not sure what you mean
seku has joined #nixos
<{^_^}> [nixpkgs] @xeji closed pull request #35602 → consul: 0.9.3 -> 1.0.6 → https://git.io/vArwa
<manveru> finally everything working on the new SSD... so nice :)
<gchristensen> nice!
<manveru> my old one kept having more and more lockups for some reason...
<manveru> it's still kinda working, wonder if it just is worn out
nbardiuk_ has quit [Ping timeout: 245 seconds]
<LnL> colleague: you need to compile nginx to install a module, sigh...
<LnL> me: nginx.override { modules = [ nginxModules.vts ]; }
<LnL> dunno who added that, but it's already there :D
nbardiuk has quit [Ping timeout: 268 seconds]
nbardiuk has joined #nixos
booglewoogle has quit [Remote host closed the connection]
<gchristensen> :D
<{^_^}> [nixpkgs] @xeji closed pull request #37511 → miniupnpc_2: 2.0.20171212 -> 2.0.20180222 → https://git.io/vxcIH
_habnabit has left #nixos [#nixos]
jperras has quit [Ping timeout: 240 seconds]
tilpner has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @demyanrogozhin opened pull request #45718 → particl-core: 0.16.1 -> 0.16.2 → https://git.io/fAsMV
<{^_^}> [nixpkgs] @demyanrogozhin closed pull request #45279 → particl-core: 0.16.1 -> 0.16.2 → https://git.io/fAeTO
<{^_^}> [nixpkgs] @xeji closed pull request #38944 → rdnssd: fix service → https://git.io/vpeCR
<infinisil> LnL: There should be a compilation of "look how easy this is using nix"
<{^_^}> [nixpkgs] @jtojnar opened pull request #45719 → fwupd: do not wrap efi capsule → https://git.io/fAsDG
<LnL> yep look at that, working perfectly
<andi-> infinisil++
<{^_^}> infinisil's karma got increased to 21
<andi-> we need that
<LnL> vts includes prometheus output, if anybody else is interested in that
<philippD> isn't there an inverse function to listToAttrs in builtins or am I blind?
<globin> philippD: mapAttrsToList?
<andi-> but thats not builtins
<globin> philippD: ah that's in lib
<LnL> to get a list of name/value pairs?
<andi-> attrsNames / attValues
<andi-> *attrNames / attrValues
pi3r has quit [Quit: Leaving]
logzet has quit [Remote host closed the connection]
<nikivi> how can I make npm install -g work with nix?
<nikivi> I always get `Error: EACCES: permission denied, symlink '../lib/node_modules/yo/lib/cli.js' -> '/usr/local/bin/yo'` errors
teej has quit []
<LnL> --global installs to system directories which are not writable in nix
<nikivi> any way to override this behavior?
<nikivi> or I guess I can try change where -g installs
<philippD> ah thanks globin it's `mapAttrsToList nameValuePair`
<{^_^}> [nixpkgs] @vcunat opened pull request #45720 → coreutils: split a coreutils-full version → https://git.io/fAsSo
<{^_^}> [nixpkgs] @xeji merged pull request #45714 → bunny: init at 1.1 → https://git.io/fAsaA
<{^_^}> [nixpkgs] @xeji pushed commit from @countingsort to master « bunny: init at 1.1 (#45714) »: https://git.io/fAsS1
simukis has quit [Quit: simukis]
<{^_^}> [nixpkgs] @Mic92 opened pull request #45721 → hurd: cleanup unmaintained target → https://git.io/fAs9L
leotaku has joined #nixos
nbardiuk has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #45266 → armadillo: 8.600.0 -> 9.100.5 → https://git.io/fNjEy
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « armadillo: 8.600.0 -> 9.100.5 (#45266) »: https://git.io/fAs9V
nbardiuk has joined #nixos
<leotaku> When trying to deploy to my nixops-managed server I get an "unknown serve command 9" error, does anyone know how to fix something like that?
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jtojnar pushed to master « deadbeefPlugins.headerbar-gtk3: init at 1.2 »: https://git.io/fAsHX
<johnny101> Hi all. Simple question I'm probably overlooking the answer to or approaching wrong: for packages installed declaratively in a nixos user environment with config.nix and a buildEnv call, how can I check for available updates for the packages listed in that buildEnv similar to doing `nix-env -u --dry-run` to check for upgrades available for imperatively installed packages?
asymmetric_ has joined #nixos
<clever> johnny101: nix-env -iA nixos.thatbuildenv --dry-run
<nikivi> I cant find anything on how to go around the issue of not being able to globally install npm packages
<nikivi> I thought that nix only lived in /nix dir
<nikivi> Why can't I globally install npm packages?
trcc has quit [Remote host closed the connection]
nbardiuk has quit [Ping timeout: 245 seconds]
trcc has joined #nixos
<leotaku> nikivi: It's because the default location for that does not exist.
nbardiuk has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
trcc has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
<kalbasit[m]> nikivi: there's also some helpful information on the wiki page https://nixos.wiki/wiki/Node.js
<nikivi> npm config set prefix '~/.npm-global' worked
<nikivi> I was thinking it would be nice to have a tool that you can install anything with nix
<kalbasit[m]> personally, I use `npx` for temporary executions, and `shell.nix` combined with `direnv` for fixed project dependencies
<nikivi> since there is automation converion of npm with node2nix and go2nix and so on
<nikivi> its annoying to have to do it manually
<kalbasit[m]> nikivi: true, sometimes packages are not as simple as buildGoPackage that's why it's not automated
<leotaku> nikivi: yeah, the problem is that node packaging (python also) is somewhat nonstandard.
Drakonis has quit [Remote host closed the connection]
<leotaku> Does anyone here know what I could do to fix my problem with nixops?
__monty__ has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
<johnny101> clever: thank you! The output from that shows what derivs will be built and what paths will be fetched to replace outdated software, but it doesn't show a clear version comparison summary that `nix-env -u ...` does, such as "upgrading 'firefox-61.0.1 to firefox-61.0.2'. Any way to do that? Maybe not since it's rebuilding and not upgrading. That version summary info from the nix-env -u command is handy to
<johnny101> have.
__monty__ has quit [Quit: Lost terminal]
<clever> johnny101: there is no difference between installing and updating
ilikeheaps has joined #nixos
<clever> johnny101: but there is a change you can do to get that data back, use a bare set instead of a buildEnv
<clever> johnny101: just do mystuff = { inherit (pkgs) firefox chromium; }; in your override
<johnny101> ok, thanks -- will try. appreciate the feedback!
<clever> if you try to nix-env -iA a set, it will install every package in the set, and they are installed "normally" so they show up in nix-env -q and can be updated/removed seperately
<nikivi> kalbasit[m] how did you get npx installed?
<kalbasit[m]> nikivi: it's part of nodejs
<kalbasit[m]> `nix-shell -p nodejs-8_x`
<johnny101> clever: great, thanks. That should do it then.
rfold has quit [Ping timeout: 268 seconds]
coconnor has quit [Quit: leaving]
<{^_^}> nixos-weekly#63 (by domenkozar, 6 days ago, open): Call for Content: 2018/08
asymmetric_ has quit [Quit: Leaving]
solaire has quit [Quit: Leaving]
<Thra11> I don't understand this: https://github.com/NixOS/nixpkgs/commit/8ea7ad67fd19f3fc7866084c8648b6fd2d1c79e9 The url isn't updated, but the sha256 is changed.
<clever> Thra11: yeah, id say thats wrong, the url doesnt match the version
<leotaku> The problem I am having seems to be with nix-copy-closure, it copies some files fine, but after copying "(hash)-nixos-versoin" it fails with "error: unknown serve command 9"
v0|d has joined #nixos
<leotaku> *version
<Thra11> clever: indeed. I can only assume that the previous sha256 was wrong, as it seems to build with that url and the new sha256
<clever> leotaku: your nix version is too new, you need to temporarily put the same nix version as the remote end in PATH
<clever> Thra11: then why was the version= bumped?
<v0|d> hello, looking 4 a doc to encrypt swap, can't find it on wiki.
<clever> v0|d: do you want hibernation?
<v0|d> clever: nope, not a laptop:)
<clever> hmmm wait no
<Thra11> clever: I assume they meant to bump the version and assumed the url contained ${version} or something
<clever> Thra11: yeah
<v0|d> clever: any ideas why serpent is the default cipher?
<v0|d> 4x4 sboxs:)
<clever> v0|d: thats an example, not the default
<v0|d> see.
<v0|d> and I get a full list of ciphers from..
<v0|d> luks?
<ashkitten> uh, idk if there's a fontconfig channel or something but i figured i'd just ask here: `<edit name="pixelsize" mode="assign"><name>size</name></edit>` gives me `Fontconfig warning: ... saw range, expected number` but i can't figure out why? it works just fine so i guess it doesn't matter, but yeah.
<clever> v0|d: `Hint: Run "cryptsetup benchmark" to see which one is fastest on your machine`
<ashkitten> oh wait
<ashkitten> never mind
<ashkitten> sorry
<ashkitten> fml
aanderse has joined #nixos
* emily suggests not running "cryptsetup benchmark" to see which one is fastest, because that's a terrible way to pick.
* emily suggests keeping the default.
<samueldr> emily: depending on the attack surface, let's say I'm working against opportunistic thieves looking at the disk, why wouldn't I choose the fastest?
<samueldr> not knocking on the suggestion, genuinely curious as I chose it that way
<{^_^}> [nixpkgs] @Mic92 merged pull request #45721 → hurd: cleanup unmaintained target → https://git.io/fAs9L
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAsNe
<maurer> samueldr: Are you considering only theft, or is surrepetitions modification in your threat model?
<v0|d> um, how do I specify the keysize? with the -plainXXX suffix?
<emily> samueldr: they're all more than fast enough; there's no reason to compromise on security by making arbitrary performance metrics your criteria.
<samueldr> maurer, I'm stopping a opportunistic thieving
<emily> Serpent is probably a fine cipher.
<v0|d> lets say Im gonna use aes-xts with 256b keysize.
<emily> if you really want to use it, you can pick it because you like it, but performance on a synthetic microbenchmark is not a good reason.
<emily> and I wish such suggestions weren't included as part of documentation for security features :(
<v0|d> emily: what makes you think serpent is better than aes?
<emily> I don't.
<v0|d> see.
HarpoRoeder has joined #nixos
<leotaku> clever: thanks, that worked!
<maurer> imo aes if you gotta go fast (cpu acceleration), twofish or serpent if you don't trust the gubberment and/or intel
<v0|d> maurer: there was a serpent ext in cpu, am I wrong?
<maurer> twofish has the advantage of being by bruce schneier if you're a fanboy, serpent has a bit simpler construction
<v0|d> maurer: :) look for the author of serpent.
<emily> if you don't trust AES-NI you have much bigger problems
<maurer> v0|d: I am not aware of a serpent acceleration
<maurer> emily: Yeah, I use aes-xts-512
<v0|d> um how do I specify the keysize?
<v0|d> like aes-xts-512? or aes-xts-plain512?
goibhniu has quit [Ping timeout: 244 seconds]
<maurer> v0|d: Just use the default
<maurer> which will be aes-xts-plain64, 256-bit key
<maurer> Me using 512 was me being dumb, but it's a pain to change it
<maurer> You won't have more than 256-bits of entropy in your passphrase, so a bigger key won't help you
<{^_^}> [nixpkgs] @lopsided98 opened pull request #45722 → nixos/networkd: fix range assertions on 32 bit Nix → https://git.io/fAsNi
<seku> i wonder, is there ever a reason against AES?
<maurer> (unless you're intending to use a keyfile - I'm assuming you're going to use LUKS and a KDF
hamishmack has joined #nixos
<seku> i mean, China seems to be implementing their own stuff into their AMD/Power9 stuff.
<v0|d> maurer: I see. I am still not sure what plain64 means.
Thra11 has quit [Ping timeout: 240 seconds]
<emily> seku: if you don't have AES acceleration on your CPU then you might prefer ChaCha20 or such.
<emily> on non-Intel platforms, e.g.
<emily> it's a commonly used TLS cipher for that reason.
<maurer> v0|d: It refers to the IV generation mechanism
<seku> ofc. just curious why wireguard went for ChaCha20 instead of AES
nbardiuk has quit [Ping timeout: 245 seconds]
<emily> one is a block cipher and one is a stream cipher, so they're a bit different. but the nice thing about chacha20 is that it's fast without any CPU acceleration
<seku> (genuine curiosity, i suppose so lesser, without-AES acceleration stuff can do throughput)
<emily> and software implementations are less prone to side channels
<emily> software implementation of AES is non-trivial
<v0|d> maurer, emily wonderful help, I got it now.
<v0|d> emily: um, implementing AES in asm is pretty straight-forward, no?
<infinisil> There's #nixos-chat specifically for offtopic stuff btw :)
<seku> excuses, joined
<aanderse> looking for a third reviewer on https://github.com/NixOS/nixpkgs/pull/45638 if anyone can spare the time
<{^_^}> #45638 (by aanderse, 2 days ago, open): incron: init at 0.5.12
kisik21 has quit [Ping timeout: 245 seconds]
seku has quit [Read error: Connection reset by peer]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
witchof0x20 has quit [Ping timeout: 250 seconds]
<{^_^}> [nix] @aszlig opened pull request #2378 → libexpr: Use int64_t for NixInt → https://git.io/fAsxc
<v0|d> clever: thanks for the help, I was able to configure it, much appreciated.
<{^_^}> [nixpkgs] @xeji merged pull request #45718 → particl-core: 0.16.1 -> 0.16.2 → https://git.io/fAsMV
<{^_^}> [nixpkgs] @xeji pushed commit from @demyanrogozhin to master « particl-core: 0.16.1 -> 0.16.2 (#45718) »: https://git.io/fAsxB
<maurer> aanderse: Left some informal comments, I'm not an authority though
silver_ is now known as silver
<aanderse> maurer: comments appreciated! i keep hearing "im not an authority though"... /me wonders where the authorities are ;-)
<nefix> What type are the floats?
<clever> > builtins.typeOf 3.14
<{^_^}> "float"
<nefix> Oh
<nefix> It's not in the NixOS manual
<clever> it would be in the nix manual
<nefix> Thank you!
<clever> > builtins.isFloat 3.14
<{^_^}> true
<Mic92> double in c
<srk> I've also added type.float for option types recently
HarpoRoeder has quit [Remote host closed the connection]
aarvar has joined #nixos
koselig has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.4.152 -> 4.4.153 »: https://git.io/fAsh8
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.4.152 -> 4.4.153 »: https://git.io/fAshR
rawtaz has joined #nixos
rprije has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<koselig> I'm getting an error trying to run nixos-rebuild --upgrade boot but getting the error "cannot compare an integer with a string", anyone know if there's a known fix for this?
<koselig> using the unstable branch
<clever> koselig: what does it output if you use --show-trace and can you pastebin your configuration.nix?
<koselig> yep one second
<clever> koselig: and what does `sudo nix-channel --list` report?
<elvishjerricco> Is there a way to provision swap space as a resource with nixops? I can't deploy my config to a new machine because it only has 1G of memory. It'd be nice if I didn't have to bootstrap it by adding a swapfile manually.
ericsagnes has quit [Ping timeout: 264 seconds]
<clever> koselig: it looks like a bug within systemd.network, until its fixed you will want to set its enable to false
<koselig> clever: sweet, let me try that quick
<{^_^}> [nixpkgs] @xeji merged pull request #45722 → nixos/networkd: fix range assertions on 32 bit Nix → https://git.io/fAsNi
<{^_^}> [nixpkgs] @xeji pushed 2 commits to master: https://git.io/fAsjy
Lisanna has joined #nixos
<koselig> clever: looks like removing that fixed it, thanks!
leotaku has quit [Quit: WeeChat 2.1]
wpcarro has quit [Ping timeout: 244 seconds]
<clever> koselig: youll want to check for and maybe file a bug on nixpkgs then
nefix has quit [Quit: leaving]