gchristensen changed the topic of #nixos to: NixCon live stream: https://www.youtube.com/c/NixCon/live https://nixcon2018.org/ || NixOS 18.09 released https://discourse.nixos.org/t/1076 || 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
<enleth> I guess they have one office floor full of cool kids playing with their node toys and another floor of actual engineers
acarrico has joined #nixos
<gchristensen> I think that is probably unfair
graphene has quit [Remote host closed the connection]
<enleth> yeah, I'd prefer to be in a separate building too if I were the latter
<gchristensen> I think that is probably unfair
graphene has joined #nixos
dslegends has quit [Quit: dslegends]
porrifolius has quit [Remote host closed the connection]
sanscoeur has quit [Ping timeout: 250 seconds]
cyounkins has joined #nixos
pie__ has joined #nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
hamishmack has quit [Quit: Textual IRC Client: www.textualapp.com]
<enleth> have you *seen* the ECMA language spec's section on typing?
graphene has quit [Remote host closed the connection]
<enleth> PHP has a simpler and less quirky type system and yet people want to use that language, the mind boggles
<gchristensen> it doesn't matter, a lot of people use and like javascript, including many people here -- you don't need to like it, I don't need to like it, I'm still happy to have them here
<pie__> hey guys, if i want to build somethng with musl, how do i do that? I haven't been able to find any docs on it.
graphene has joined #nixos
<jackdk> pie__ nix-build '<nixpkgs>' -A pkgsMusl.hello
<{^_^}> [nixpkgs] @samueldr opened pull request #51199 → iso-image: Verifies the FAT partition at build. → https://git.io/fpaQj
<jackdk> get ready to build multiple versions of binutils, gcc and perl
<enleth> gchristensen: I'd say if you decide to use some technologies, you should be prepared to sometimes be the butt monkey of an occasional joke
<pie__> jackdk: yeah sure :P thanks
<pie__> jackdk: thats an example script?
<{^_^}> [nixpkgs] @dtzWill merged pull request #51162 → z3: 4.8.1 -> 4.8.3 → https://git.io/fpgh0
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fpa7L
jtojnar has quit [Quit: jtojnar]
<jackdk> pie__ hello is the GNU hello world program, and it's coming from pkgsMusl, which is a version of nixpkgs with musl libc. basically the host and target systems can be specified as arguments to a nixpkgs import, and there are some convenience ones set up already.
klntsky has quit [Ping timeout: 256 seconds]
<pie__> jackdk: thanks, after poking at it a bit, i kind of figured out theres some environment stuff going on that i havent figured out, but i see what its doing roughly
<pie__> thanks
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
joehh has joined #nixos
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to release-18.09: https://git.io/fpa5f
hiroshi has quit [Quit: ZNC 1.7.1 - https://znc.in]
hiroshi- has joined #nixos
hiroshi- is now known as hiroshi
thc202 has quit [Ping timeout: 246 seconds]
vk3wtf has joined #nixos
<gchristensen> regarding using overlays, is there an established way to see if your override (which used to upgrade a package) has _downgraded_ that package?
<LnL> you can compare versions like nix-env does
<gchristensen> ah! builtins.compareVersions!
<LnL> lib.versionAtLeast (builtins.parseDrvName hello.name).version "2.11"
<gchristensen> LnL++
<LnL> oh, didn't know about that
<{^_^}> LnL's karma got increased to 8
goibhniu has quit [Ping timeout: 244 seconds]
<pie__> jackdk: sooo...would it be possible to switchthe whole system to musl?
porrifolius has joined #nixos
<porrifolius> Ok, kiosk-mode panel at login fixed... deleted all sorts of xfce config, none of which showed signs of the problems mentioned online but at least it worked.
<dmj`> Mic92: ping
<porrifolius> How do you suppress the inclusion of all ZFS mounts when regenerating your hardware.nix?
cyounkins has joined #nixos
<porrifolius> everything works great if I go in and delete all the canmount=on entries, except for /.
<porrifolius> but if I leave them there it won't boot properly.
<jackdk> pie__ I don't know, that's not something I've tried. Someone who knows how nixos-rebuild works may be able to help
<{^_^}> [nixos-org-configurations] @grahamc pushed to overlay « Add an 'upgrade' helper which helps enforce upgrades are upgrades »: https://git.io/fpadK
<gchristensen> LnL: https://github.com/NixOS/nixos-org-configurations/blob/369493ccc11a8390cd355bb97b4369b94e06fa3a/delft/overlay.nix "trace: Warning: nix-2.2pre6526_9f99d624 downgraded by overlay with nix-2.2pre6525_9f99d624."
<LnL> neat!
<pie__> jackdk: ok thanks anyway
porrifolius has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @costrouc to master « autospotting: init at unstable-2018-11-17 »: https://git.io/fpaFZ
porrifolius has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace closed pull request #50313 → autospotting: init at unstable-2018-11-17 → https://git.io/fpYKC
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
sigmundv_ has joined #nixos
jackdk has quit [Remote host closed the connection]
jackdk has joined #nixos
<porrifolius> Does anyone have gnome-keyring working properly?
<porrifolius> I have set security.pam.services.lightdm.enableGnomeKeyring = true; which now gets the login keyring unlocked when I log in but after closing the wallet I cannot re-open it. gnome-keyring and dbus daemons are running.
<gchristensen> LnL: thank you for your help putting that together
cyounkins has quit [Ping timeout: 250 seconds]
cyounkins has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
porrifolius has quit [Remote host closed the connection]
porrifolius has joined #nixos
Rusty1 has joined #nixos
<{^_^}> [nixpkgs] @eburimu opened pull request #51201 → libselinux: fix cross compilation → https://git.io/fpabZ
pkx3 has joined #nixos
arjen-jonathan has quit [Quit: WeeChat 2.3]
sigmundv_ has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fpabp
<{^_^}> [nixpkgs] @Ma27 merged pull request #51186 → rclone: 1.44 -> 1.45 → https://git.io/fpaWi
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fpabh
vk3wtf has quit [Ping timeout: 268 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<teto> how do you haskell guys generate tags for vim/goto definition ? I've been trying to use hasktags/haskdogs but it can't parse haskell packages in the ghc environment https://github.com/grwlf/haskdogs/issues/4#issuecomment-442359789
drakonis has joined #nixos
<Rusty1> df -h
<clever> Filesystem Size Used Avail Use% Mounted on
<clever> /dev/sdb1 3.7T 3.1T 580G 85% /media/videos/4tb
<v0|d> c'mon.
<v0|d> :)
<Rusty1> soz
<pie__> what does import ./. do? where in the docs would i look for this? a quick look in the nix manual didnt yield anything obvious
<pie__> nevermind...i accidentally found the right docs section...
<pie__> its under 15.5 built in functions section
<{^_^}> [nixpkgs] @Ma27 merged pull request #51188 → boohu: 0.10 -> 0.11 → https://git.io/fpa4Y
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fpaNa
<neonfuz> this might make it easier to store node modules in the nix store?
<neonfuz> pretty much rather than npm / yarn creating a node_modules folder, it knows how to pull from a global cache
<neonfuz> so in nixos terms, could make it pull from the nix store rather than, idk, node2nix or somehow symlinking packages from nix store to node_modules
<clever> neonfuz: yarn2nix is also an option
<neonfuz> oh that's a thing now?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #50471 → pythonPackages.fs-s3fs: init at 1.0.0 → https://git.io/fpnnG
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fpaNy
<clever> yeah
tomberek has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
ottidmes has quit [Quit: WeeChat 2.2]
<gchristensen> is there a nice way to give my systemd service basically no privileges?
<nisstyre> gchristensen: it's called systemctl --user
<gchristensen> I don't want there to be a user service, and I don't really even want a user
<nisstyre> gchristensen: where would the unit file be located?
<nisstyre> it has to know what user/group to run it as too
<nisstyre> you could maybe set up a user with no login shell
<clever> neonfuz: DynamicUser=true
georges has quit [Ping timeout: 268 seconds]
<clever> `man systemd.exec`, MountAPIVFS=true, DynamicUser=true, NoNewPrivileges=true, ProtectSystem=full, ProtectHome=tmpfs, maybe some TemporaryFileSystem, PrivateTmp=true, PrivateNetwork=true, PrivateUsers=true, PrivateDevices=true, ....
<clever> maybe even SystemCallFilter!!
<clever> gchristensen: that enough restrictions? :D
<nisstyre> gchristensen: people also suggest using sudo to allow a user to start/stop/restart the service
<nisstyre> I've done this before and it works
<gchristensen> O.o
<nisstyre> clever: I've never seen those options before, what does DynamicUser do?
<gchristensen> haven't seen you 'round much nisstyre :) nice to have you here!
<clever> nisstyre: DynamicUser makes systemd auto-generate a new unused uid for the service, and then destroy it at stop
<nisstyre> gchristensen: I'm starting to look more into NixOS :p
<nisstyre> clever: that seems like an interesting feature although I don't know what use there would be for it
<nisstyre> I guess if you don't want to clutter your system with users
<clever> nisstyre: non-root, and no need to make a dedicated user
<nisstyre> yeah
<nisstyre> it would reduce clutter on your system with a bunch of single purpose users
<clever> but also, no user to assign the state files it generates
<clever> so you cant use it with any service that has to own its configs
porrifolius has quit [Quit: Leaving]
<nisstyre> which a lot of them do
<nisstyre> off the top of my head, stunnel and minidlna are really picky about permissions
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos
<{^_^}> [nixpkgs] @eburimu opened pull request #51204 → f2fs-tools: fix cross compilation → https://git.io/fpaxL
rprije has quit [Ping timeout: 268 seconds]
<{^_^}> [nixos-org-configurations] @grahamc pushed to master « Add a queue runner status re-exporter in prom's format »: https://git.io/fpaxG
<{^_^}> [nixpkgs] @matthewbauer opened pull request #51205 → Add premake & imake setup hook → https://git.io/fpaxW
georges has joined #nixos
jsgrant has joined #nixos
hellrazor has joined #nixos
hellrazo1 has quit [Ping timeout: 240 seconds]
vk3wtf has joined #nixos
acarrico has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #51000 → tesseract_4: 4.00.00alpha-git-20170410 -> 4.0.0 → https://git.io/fp09U
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fpapv
drakonis has quit [Quit: WeeChat 2.2]
nbathum has left #nixos [#nixos]
jsgrant_ has joined #nixos
fusion809 has quit [Remote host closed the connection]
disasm has quit [Ping timeout: 240 seconds]
<hark> is there some nixos way to preconfigure wifi networks in networkmanager? or should i just write files to /etc/NetworkManager/system-connections myself?
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 250 seconds]
Mateon3 is now known as Mateon1
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
fresheyeball has joined #nixos
<fresheyeball> hey there
<fresheyeball> I have postgresql as a service and it's 9.5.14
<fresheyeball> and my nixos servers have 9.6.8
<fresheyeball> how can I match my nixos server locally?
hamishmack has joined #nixos
<joehh> hark: that is what I have done with 4g modem connections
<{^_^}> [nixpkgs] @Lassulus opened pull request #51206 → xmonad service: add .config option → https://git.io/fpah4
<jackdk> While chasing #51093, we found a failure in postgres's build system on macos and reported it upstream. A postgres dev suggests there might be something funky in the gmake or ranlib used: https://www.postgresql.org/message-id/28417.1543458718%40sss.pgh.pa.us
<{^_^}> https://github.com/NixOS/nixpkgs/issues/51093 (by endgame, 1 day ago, closed): postgresql parallel builds fail on Darwin
<jackdk> how would I determine the gmake or ar (ranlib) used in a build?
fresheyeball has quit [Quit: WeeChat 2.2]
jsgrant- has joined #nixos
<{^_^}> [nixpkgs] @samueldr opened pull request #51207 → sd-image: Slims the ext4 filesystem even more. → https://git.io/fpahK
halfbit has joined #nixos
pie__ has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #51194 → brave: 0.56.12 -> 0.56.15 (70.0.3538.77 -> 70.0.3538.110) → https://git.io/fpa6e
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fpajk
Neo-- has quit [Ping timeout: 252 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
mayhewluke has quit [Ping timeout: 250 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @aszlig pushed 3 commits to master: https://git.io/fpVeU
<{^_^}> [nixpkgs] @Moredread opened pull request #51209 → slic3r-prusa3d: 1.41.1 -> 1.41.2 → https://git.io/fpVeC
<{^_^}> [nixpkgs] @eburimu opened pull request #51210 → fix: gperf 3.0 cross compilation → https://git.io/fpVeB
lnikkila has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #50285 → python3Packages.async_generator: fix build on python3.5 → https://git.io/fpmr9
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fpVeX
<jackdk> when's the next staging -> master merge?
<ekleog> when staging-next will be stable it'll do staging->staging-next->master, and when the new staging-next will be stable what is currently staging will get in master
<v0|d> ekleog: staging->staging-next->master ?
<v0|d> flip?
<ekleog> v0|d: staging-next is merged into master and then staging is merged in staging-next
<ekleog> so once it will be repeated twice, current staging will be merged into master
<jackdk> thanks for the links
virus_dave has joined #nixos
epicmetal has quit [Quit: epicmetal]
nix` has quit [Ping timeout: 240 seconds]
<{^_^}> [hydra] @francesliang opened pull request #616 → Accept OAuth2 authentication in Hydra BitBucket plugins → https://git.io/fpVf8
jtojnar has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
orivej has joined #nixos
jtojnar has quit [Quit: jtojnar]
marusich has joined #nixos
vk3wtf has quit [Ping timeout: 252 seconds]
Diagon has joined #nixos
halfbit has quit [Ping timeout: 268 seconds]
emily has quit [Ping timeout: 252 seconds]
emily has joined #nixos
lnikkila has quit [Ping timeout: 240 seconds]
lord| has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #51213 → WIP lib: Better extensible attrsets → https://git.io/fpVUF
lord| has joined #nixos
perique has joined #nixos
endformationage has quit [Ping timeout: 272 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 250 seconds]
jackdk has quit [Ping timeout: 250 seconds]
Diagon has quit [Quit: Leaving]
worldofpeace has quit [Ping timeout: 246 seconds]
<tdeo> hi, can someone help me with trying to patch a package with overrides? i'm trying this https://pastebin.com/raw/YVzUFK7M but i get an error (in that page)
<tdeo> i think it's because i don't exactly know how to use writeText
<tdeo> it doesn't error if i put a filename instead of a writeText call
<v0|d> tdeo: try patches = [ (writeText ..) ];
<v0|d> parens.
<tdeo> aaaaaaaaaaaaaaa it was that simple the whole time
<tdeo> thanks
reinhardt has joined #nixos
<v0|d> :)
<tdeo> also: how do i switch to the unstable packages? i was trying to figure it out but i'm still confused
<tdeo> i accidentally deleted my main channel in the process somehow but fixed it
<v0|d> ,unstable
<tdeo> that works too
lnikkila has joined #nixos
vk3wtf has joined #nixos
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #51214 → winePackages.wine: add SDL support → https://git.io/fpVTQ
<tdeo> another question: trying to get this to add a second config file for mopidy
<tdeo> services.mopidy.extraConfigFiles = [ (pkgs.writeText "mopidy-private.conf" "stuff") ];
<tdeo> but it gives this error:
<tdeo> `services.mopidy.extraConfigFiles.[definition 1-entry 1]' in `/etc/nixos/private.nix' is not of type `string'.
<tdeo> what am i doing wrong here?
virus_dave has quit [Quit: virus_dave]
joehh has quit [Ping timeout: 250 seconds]
metastance has joined #nixos
hyper_ch2 has joined #nixos
<hyper_ch2> ah, there's git mv oldFilename newFilename that's what I was looking for
rauno has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 235 commits to staging-next: https://git.io/fpVkM
lnikkila has quit [Ping timeout: 250 seconds]
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
perique has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graphene has quit [Remote host closed the connection]
lnikkila has joined #nixos
graphene has joined #nixos
marusich has quit [Quit: Leaving]
metastance has quit [Quit: WeeChat 2.3]
Ariakenom has joined #nixos
civodul has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 250 seconds]
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 392 commits to staging: https://git.io/fpVtj
<{^_^}> [nixpkgs] @c0bw3b merged pull request #51193 → [18.03] libtiff: fix download url → https://git.io/fpaKA
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to release-18.03: https://git.io/fpVqG
<teto> Does anyone know how to fix "./settings: openFile: does not exist (No such file or directory)" when running ghc ?
<teto> the problem looks famous on the internet but couldn't find any solution
pie___ has quit [Remote host closed the connection]
pie___ has joined #nixos
palo1 is now known as palo
Neo-- has joined #nixos
jluttine has quit [Quit: WeeChat 2.2]
Tucky has joined #nixos
goibhniu has joined #nixos
jluttine has joined #nixos
<{^_^}> [nixpkgs] @locallycompact opened pull request #51216 → Update libpcap to 1.9.0 → https://git.io/fpVm2
<sphalerite> teto: running ghc how?
<teto> sphalerite: ghc is installed via shellFor
__monty__ has joined #nixos
<sphalerite> teto: nix-shell -p ghc --run 'ghc Main.hs' works fine for me
<sphalerite> what's shellFor?
<teto> sphalerite: it's a nixpkgs function to get a development environment for haskell
<sphalerite> oh ok, I don't know about that :/
<{^_^}> [nixpkgs] @globin opened pull request #51217 → set-source-date-epoch-to-latest: fix warning → https://git.io/fpVm7
lnikkila has quit [Ping timeout: 268 seconds]
rprije has joined #nixos
pi3r has joined #nixos
<pi3r> elvishjerricco: another reminder for GHC 8.4.4 in nixos-18.09-stable ;-)
ghasshee has joined #nixos
<Taneb> I'm getting perl warnings about locale variables not being set with some nix builds. Is there a way to fix or hide those?
pi3r has quit [Quit: Leaving]
thc202 has joined #nixos
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<palo> How to override goPackages ? I tried `terraform.overrideAttrs( old: rec { src = { ...... }; version = "0.11.10"; })` but this does not seem, to work.
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/fpVOX
<{^_^}> [nixpkgs] @volth opened pull request #51218 → tixati: 2.57 -> 2.58 → https://git.io/fpV3J
jw358 has joined #nixos
<palo> damn I was doing this in a list and forgot the () surrounding `terraform.overrideAttrs()` *facepalm*
<palo> worked very well thx
Izorkin has quit [Ping timeout: 268 seconds]
ThatDocsLady_ has joined #nixos
ng0 has joined #nixos
<jw358> is there already a nixpkgs function for making a derivation that will copy/setup binaries in the style of the normal stdenv.mkDerivation, but will handle either direct links to binaries and tarballs that don't produce directories?
vidbina has joined #nixos
Izorkin has joined #nixos
johanot has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #51209 → slic3r-prusa3d: 1.41.1 -> 1.41.2 → https://git.io/fpVeC
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fpVsg
srl295 has quit [Quit: Connection closed for inactivity]
Izorkin has quit [Ping timeout: 250 seconds]
pi3r has joined #nixos
__Sander__ has joined #nixos
Izorkin has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
ThatDocsLady_ has joined #nixos
tomberek has quit [Ping timeout: 256 seconds]
betaboon has quit [Quit: WeeChat 2.2]
betaboon has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed commit from @eburimu to master « fix jfsutils cross compilation »: https://git.io/fpVnq
<{^_^}> [nixpkgs] @Mic92 closed pull request #51145 → jfsutils: fix cross compilation → https://git.io/fpgVh
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
<ghasshee> hi, is there any good instrunctions about building haskell environment ?
<ghasshee> it seems so complicated because haskell allows cabal stack nix ..
<ghasshee> I can run /run/current..sw/ghci but cannot run stack ghci ...
<ghasshee> where to start the documentation ?
<ghasshee> I think the manual is not enough to understand the nix structure ..
<ghasshee> ( I am a minimalist
<sphalerit> jw358: direct links no, because you need a hash as well
<sphalerit> jw358: you can use a custom unpackPhase to deal with tarballs with no root dir
<ghasshee> I always feel like unfamiliar with syntax of nix packages manager .... , is there any thought behind the language ?
<srhb> ghasshee: It's very lightweight, simple and it's really good at manipulating attrsets, which is the "base unit" of most packages.
<srhb> ghasshee: I don't know what your background is, but my experience is that most people that come from FP languages absorb the language really quickly, syntax-wise and semantically.
<ghasshee> fmmmm
<ghasshee> Indeed , I am just a kid
<ghasshee> thanks , that fact really encourages me .
<srhb> ghasshee: Regarding stack: I find it doesn't really work very well with nix
<srhb> ghasshee: If you use it, you lose most of the advantages of Nix, specifically the binary caches.
<ghasshee> My philosophy is based on formality and distributed consensus
<srhb> I have no idea how that relates to the topic at hand.
<ghasshee> so, building from package, stack ?, seems really nice .
<ghasshee> Of course I love the binary cache as well
<ghasshee> Thanks ... learning nix language will do for me :)
<srhb> Well, if you like stack, by all means. :)
Synthetica has joined #nixos
<ghasshee> How about Rust ?
<ghasshee> Does the cargo package manager work well with nix ?
<srhb> I would guess "yes" since Mozilla uses it for their firefox rust stuff.
<ghasshee> Thanks :-)
<__monty__> ghasshee: Cabal works well with nix ime.
init_6 has joined #nixos
<__monty__> ghasshee: Have you read the nixpkgs manual? It has advice for quite a few languages.
<ghasshee> __monthy__: Thanks too!
<ghasshee> I did not orz
<ghasshee> I have been always just trying
<ghasshee> Should not I skip to the chapter 9 ?
<srhb> ghasshee: For throwaway stuff, cabal works really well inside a shell like: nix-shell -p 'haskellPackages.ghcWithPackages (ps: with ps; [ lens aeson wreq ])'
<{^_^}> [nixpkgs] @Mic92 opened pull request #51220 → nvidia_x11_legacy304: remove → https://git.io/fpVCT
<srhb> ghasshee: User's guide to the haskell infrastructure (9.5) is quite helpful, if not complete.
<ghasshee> srnb: Thank you, I will just try.. and it makes me so lazy ... OK, I will print out the whole tutorial !!!
<ghasshee> lots of papers...
<__monty__> Think of the trees...
<ghasshee> __monty__: I will do tea ceremony
<Synthetica> Is rootless Xorg available on NixOS?
<jw358> sphalerit: yeah, i prefetch the hashes and do a custom unpack and/or install phase now, but i would also like to not have to do this manually
<jw358> or as much manually, fetching the hashes is fine
<sphalerite> jw358: shouldn't be too hard to write the function yourself, and once you've done that you can open a PR to put it upstream :)
<sphalerit> Synthetica: as in running X as a non-root user?
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
<ghasshee> srnb: by the way is there Japanese documentation of Nixpkgs Manual ? I mean I have the ability to translate into Japanese.
hyper_ch2 has quit [Ping timeout: 256 seconds]
<srhb> ghasshee: As far as I know, the manuals only exist in English.
vidbina has quit [Ping timeout: 246 seconds]
<ghasshee> the manual exist in github document banches ?
<Synthetica> sphalerit: See https://wiki.ubuntu.com/X/Rootless
<ghasshee> if it does, I can fork it
<srhb> ghasshee: The NixOS and nixpkgs manuals live in-tree in the nixpkgs repo
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a18112a7e8f (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<ghasshee> srnb; thanks !
<srhb> ghasshee: A lot of the contents of especially the NixOS manual is autogenerated, so we'd require some additional work to get multilang working.
<{^_^}> [nixpkgs] @vbgl opened pull request #51222 → coqPackages.math-classes: 1.0.7 -> 8.8.1 → https://git.io/fpVWm
<sphalerit> Synthetica: so yes?
<ghasshee> ah, I see. maybe I do not have the idea of the additional work right now .
<Synthetica> sphalerit: I meant from configuration.nix
klntsky has joined #nixos
<sphalerit> Synthetica: there's no existing support for it in the relevant nixos modules, but it should be possible. `startx` might even work out of the box, but that's just an optimistic guess.
<{^_^}> [nixpkgs] @c0bw3b merged pull request #50685 → libngspice: 28 -> 29 → https://git.io/fpCTR
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « libngspice: 28 -> 29 »: https://git.io/fpVlJ
<sphalerite> ugh I should probably just give up on matrix
<tilpner> Too slow?
<sphalerite> I write a message, 5 minutes later it says "message was not send. Try again?"
Neo-- has quit [Remote host closed the connection]
<sphalerite> sent*
<sphalerite> I wrote one at 12:11 and it's not gone through yet
<tilpner> I wonder if we could host our own bridge
<tilpner> (And tell the matrixorg-freenode bridge to go away)
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #51223 → fusionio-vsl: remove → https://git.io/fpVli
<tilpner> When I set hardware.opengl.package, will packages that take { libGL, ... } as an argument link to the correct thing?
<sphalerite> tilpner: yes. They will also link to the correct thing when you don't set hardware.opengl.package. :p
<tilpner> That can't be true
<tilpner> If I don't set hardware.opengl.package, how could they link to these mali blobs I've never told the package about?
<sphalerite> tilpner: libGL is glvnd, which loads the right thing from /run/opengl-driver or something like that.
<sphalerite> not sure of the exact details but that's the basic gist of it.
<tilpner> I assumed /run/opengl-driver was set according to hardware.opengl.package
<sphalerite> yes
<tilpner> So if I don't set hardware.opengl.package to the correct thing, /run/opengl-driver will not be the correct thing, and the package will not link to the correct thing
<tilpner> And yet you say "They will also link to the correct thing when you don't set hardware.opengl.package". Which part is wrong?
<{^_^}> [nixpkgs] @dotlambda opened pull request #51224 → home-assistant: 0.82.1 -> 0.83.0 → https://git.io/fpV8n
<sphalerite> the correct thing for them to link to is glvnd, and they link to that regardless of hardware.opengl.package
<tilpner> Unless you understand "link to the correct thing" to mean "link to glvnd, which is always the correct thing"...
<tilpner> yeah, that
<sphalerite> as for which driver gets loaded/runtime-linked, yes, that depends on hardware.opengl.package
<tilpner> And glvnd then interacts with /run/opengl-driver, which might be the driver we want or not
<sphalerit> Sorry I wrote that message about 5min ago but Riot/Matrix/the IRC bridge/something along the line is a bit awful at actually delivering messages
metastance has joined #nixos
<tilpner> 9 minutes?
<tilpner> :/
ottidmes has joined #nixos
<tilpner> Oh wait, you said 12:11 :o
<sphalerite> yep
<sphalerite> three cheers for the matrix ecosystem!
<sphalerite> (not sure which bit to blame :p)
* etu tried to use Matrix for irc for a bit
* etu ended up not using Matrix for irc
<tilpner> sphalerite - I blame the slow and horribly overloaded matrix.org servers (and maybe Synapse)
<ottidmes> I must have forgotten, but what is the easiest way again to get from package name to out path, without building it? So far I have two I dont really like: nix-instantiate --eval --expr 'with import <nixpkgs> { }; toString hello' | jq --raw-output, and: nix-instantiate --eval --expr 'with import <nixpkgs> { }; /. + lib.substring 1 (-1) (builtins.unsafeDiscardStringContext (toString hello))'
<tilpner> > hello.outPath
<{^_^}> error: undefined variable 'hello' at (string):7:1
<tilpner> > pkgs.hello.outPath
<{^_^}> "/nix/store/hd32jhl2czwi60cmxx2f1295sgl7vwb9-hello-2.10"
<ottidmes> as a path though
<sphalerite> nix eval --json nixpkgs.hello.outPath | jq --raw-output
<ottidmes> if there is not, I will just go with one of the two workarounds converting it to a path
<sphalerite> I'd say
<tilpner> nix eval --raw -f '<nixpkgs>' hello.outPath
<sphalerite> oh there's --raw?
<sphalerite> nix eval --raw nixpkgs.hello.outPath :D
<sphalerite> -f '<nixpkgs>' is such a pain to type
<ottidmes> sphalerite++
<{^_^}> sphalerite's karma got increased to 39
<ottidmes> we have a winner! :P
<tilpner> That's why you alias niv='nix eval -f "<nixpkgs>"'
<sphalerite> what's wrong with using nixpkgs.foo?
<tilpner> It's longer, I guess
<tilpner> I don't have to type nixpkgs. or nixos. anywhere else, so it's also consistent
<sphalerite> nixpkgs. is consistent with the other `nix` commands ;)
<tilpner> Which I don't use, mostly because they don't print paths to stdout
<tilpner> (Or has that been fixed?)
<tilpner> Nope, not in my copy. But I think it's been merged and will arrive here at some point
<{^_^}> [nixpkgs] @basvandijk opened pull request #51225 → elk: 6.3.2 -> 6.5.1 → https://git.io/fpVBs
alienpirate5 has quit [Remote host closed the connection]
alienpirate5 has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.datadog: 0.23.0 -> 0.25.0 »: https://git.io/fpVBM
orivej has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #51226 → llvm: fix cross-compilation → https://git.io/fpVRe
<ghasshee> It seemed compiled my Japanese translation doc test with libxml.
<ghasshee> It has generated html and epub. I opened html one. and I can see the translation .
<ghasshee> fmm
<ottidmes> I am rebuilding and its trying to build firefox from source, I updated nixpkgs just in case, still wants to build it, so I am trying nix-diff, but its been a while, how do I get to the .drv of my currently running system (while my config and nixpkgs have changed)
klntsky has quit [Ping timeout: 256 seconds]
dslegends has joined #nixos
dramforever has joined #nixos
<tilpner> ottidmes - What channel did you update to?
<ottidmes> tilpner: 18.09
<tilpner> nix show-derivation $(readlink -f /run/current-system)
<ottidmes> tilpner: oeh nice, I see that I really ought to check out the nix command more!
<tilpner> Well, this one is actually quite useless if you intend to nix-diff it
<tilpner> But FWIW, nixos-18_09.firefox fetches from cache here
<ghasshee> Although I have the ability to translate the manual, I do not like the noise that means Japanese Language which is not always needed to use Nixpkgs...
<ottidmes> tilpner: thanks for checking, it seems to work, I just have to revert my rebase to the latest 18.09 for the diff to be useful
<ghasshee> For Japanese younger people, I always encourage to use English ...
<elvishjerricco> pi3r: Got that merged yesterday
pie__ has joined #nixos
pie___ has quit [Remote host closed the connection]
alienpirate5 has quit [Remote host closed the connection]
Lisanna has joined #nixos
<Rovanion> Not nix specific but what does the number in perenthesis after the name of the command on a man page mean?
Lisanna has quit [Client Quit]
<__monty__> Rovanion: It's the man page section. Was useful when it was still printed in binders rather than available digitally afaik.
<__monty__> Like, "file(1)" -> look in binder 1 for "file".
<Rovanion> Okey, so it has nothing to do whether it is a userspace program or a syscall for example?
<srhb> It does.
<__monty__> Rovanion: man man, it's near the top.
<dramforever> Rovanion: There's the names of sections in man man
<dramforever> or man(1)
<dramforever> 1 for programs, 2 for system calls, 3 for library functions, etc
<Rovanion> Ah, there it is. Thank you!
<srhb> Rovanion: contrast man (1) passwd vs man 5 passwd
<srhb> 1 is the command, 5 is the file
<srhb> Same goes for syscalls etc.
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/aacc0164222 (from 25 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<jasongrossman> elvishjerricco: I've been enjoying Pain Of Salvation a bit.
<Rovanion> Not many games that comes with a man page nowadays I'd wager.
<jasongrossman> elvishjerricco: So thanks.
<dramforever> sync(1) and sync(2)?
* srhb fondly remembers having to insert a certain cdrom to get a certain section
<ottidmes> tilpner: I should have heeded my own warning and not overwrite nodejs to a later version, it seems firefox depended on it, I guess I will just make an alias in my overlay nodejs-latest instead
<elvishjerricco> jasongrossman: Good :)
<tilpner> ottidmes - Yeah, I try not to overlay any nixpkgs items with dependencies
<tilpner> It usually goes wrong
the-kenny has joined #nixos
<jasongrossman> elvishjerricco and ottidmes: it's just occurred to me that you might not know The Butterfly Effect, because they're only Australian. https://www.youtube.com/results?search_query=the+butterfly+effect
<dramforever> :thinking: I can crash 'nix repl' on 2.1.3 (but not nixUnstable 2.2pre6526_9f99d624 with three lines reproducibly ':l <nixpkgs/nixos>' 'config.system.build' 'config.system.build.literallyAnythingHere'
<dramforever> But I don't know where it got fixed, reading https://github.com/NixOS/nix/compare/9f99d6...9011a85
<dramforever> Arrgh, that was my train wreak English
<pi3r> elvishjerricco: Thanks !
<dramforever> :thinking: I can crash 'nix repl' on 2.1.3 (but not nixUnstable 2.2pre6526_9f99d624) reproducibly with three lines: ':l <nixpkgs/nixos>' 'config.system.build' 'config.system.build.literallyAnythingHere'
<dramforever> This thing got fixed. I have no idea why.
<dramforever> Just a curious fact.
sigmundv_ has joined #nixos
jabranham has joined #nixos
<dramforever> ottidmes: Link isn't working...?
Neo-- has joined #nixos
Jackneill has quit [Ping timeout: 260 seconds]
mmlb has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #51223 → fusionio-vsl: remove → https://git.io/fpVli
<{^_^}> [nixpkgs] @globin pushed commit from @Mic92 to master « fusionio-vsl: remove »: https://git.io/fpVgr
muvlon has joined #nixos
<ottidmes> dramforever: line 885 of local-store.cc, but its just a guess
Rusty1 has joined #nixos
<dramforever> It's a segfault
<ottidmes> dramforever: than maybe one of the early returns that have been added
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2c848ea92d9 (from 23 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
rawreraw has joined #nixos
<dramforever> Also, curl updated from 7.61.0 to 7.62.0 (among other stuff, of course) and I need to re-download the whole world :|
<dramforever> #nixisbad
dramforever has quit [Quit: Page closed]
metastance has quit [Ping timeout: 268 seconds]
<muvlon> not sure if this question is nixos-specific enough, but here goes
<muvlon> I'm running a WiFi AP on NixOS with hostapd
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
civodul has quit [Ping timeout: 268 seconds]
<muvlon> I deliberately have not set up packet forwarding, since this is not a router
johanot has quit [Quit: WeeChat 2.2]
<muvlon> But I'd like the wireless interface to act as a switch, i.e. all devices connected to it can talk on layer 2
<muvlon> Can I accomplish this by making a bridge consisting just of this one interface? Or do I need to do something else?
mmlb has quit [Ping timeout: 246 seconds]
Jackneill has joined #nixos
<sphalerite> muvlon: you mean having the devices talk to each other without going through the AP?
mmlb has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fpVVn
<{^_^}> [nixpkgs] @c0bw3b merged pull request #50673 → ocamlPackages.opam-file-format: 2.0.0-rc2 -> 2.0.0 → https://git.io/fpCe3
<{^_^}> [nixpkgs] @marsam opened pull request #51228 → git-secrets: install manpage → https://git.io/fpVVc
<{^_^}> [nixpkgs] @Ma27 merged pull request #49409 → piexif: 1.0.13 -> 1.1.2 (and bunch of other packages) → https://git.io/fx7EB
<{^_^}> [nixpkgs] @Ma27 pushed 14 commits to master: https://git.io/fpVVl
<lejonet> muvlon: What is it that you want to accomplish? You want em to share subnet or so, and be able to talk to eachother without having to involve a router?
kisik21 has joined #nixos
<kisik21> any ways to skip test phase when nixos-rebuilding?
<sphalerite> kisik21: you mean checkPhase of package builds?
magnetophon has quit [Ping timeout: 250 seconds]
<kisik21> yeah
<gchristensen> I have a single user nix installation complaining about "error: opening lock file '/nix/var/nix/db/big-lock': Operation not permitted" -- I own that dir -- any ideas?
<{^_^}> [nixpkgs] @marsam opened pull request #51229 → fedpkg: remove unneeded patch → https://git.io/fpVVD
<kisik21> also how to see the why a certain package is being built on a system, assuming I haven't deployed that configuration yet?
<sphalerite> kisik21: you can use nix-store -q --graph on the system drv to dump the dependency graph then find out from there
<kisik21> or you can just `grep $drvname /nix/store/*.drv -rl`
<muvlon> sphalerite, no, they can go through the AP
<muvlon> lejonet, yes, one subnet
<sphalerite> muvlon: ah right just not have the AP handle IP
<sphalerite> kisik21: that's slower and will likely give a bunch of irrelevant results though ;)
<muvlon> they're already in the same subnet IP-wise (that is, the AP is a DHCP server and gives them the right prefix)
<sphalerite> muvlon: I think it should allow that by default
<muvlon> but no packets are coming through :(
<muvlon> it shouldn't matter, but i tried disabling the built-in firewall
<kisik21> sphalerite: actually it gave just one, and it was THE result
<sphalerite> although I'm not sure about that
jabranham has joined #nixos
<lejonet> muvlon: well, wlan, iirc, is unicast by default, you don't really get "switchness"
<muvlon> ah, I see
<sphalerite> kisik21: I did say likely not guaranteed ;)
<ottidmes> kisik21: check out nix-diff if you want to see the differences between two derivations, I used it just now to check why my system rebuild wanted to build firefox from source
<sphalerite> lejonet: really? How would DHCP work then?
<lejonet> sphalerite: the layer 2 is unicast, it doesn't matter whats above it
<muvlon> sooo, should I bite the bullet and enable IP forwarding (and set up a firewall)?
<kisik21> ottidmes: I'm on ARMv7, there are almost no binary packages for it even in specialized binary caches
<thefloweringash> hostapd has a flag for this, `ap_isolate`, which should default to allowing frames to pass between associated stations
<lejonet> muvlon: iirc that is the only way to get what you want to achieve (what I meant with unicast is that its point-to-point, i.e. not the same type of "shared medium" that switches give)
<muvlon> alright
<sphalerite> which is really silly because the air is inherently a shared medium x)
<muvlon> yeah
* sphalerite wants more mesh-mode support
jtojnar has joined #nixos
<lejonet> thefloweringash: ah, it was too long ago since I fiddled with hostapd, it would be neater with such an option
<muvlon> another nixos-networking question then, if you don't mind
<lejonet> sphalerite: lol, you want broadcasts? Go to radio :P
<ottidmes> kisik21: thats just one use case, it just gives you a diff, so if you want to know why its being built (which you asked), that is a great way to answer it
<thefloweringash> it's been a long time since I was messing with hostapd too, I hope it's still a thing!
<lejonet> sphalerite: wlan already has too much noise pollution due to active beacons and such :P
<kisik21> ok
<lejonet> thefloweringash: I doubt they'd remove such a feature if so :)
<sphalerite> lejonet: no, mostly just the ability for my devices to communicate locally regardless of whether I'm at home or not
<muvlon> I also have an ethernet interface on the same box, but it's usually not plugged in - only when updating/fixing stuff
<kisik21> any way to clean up /nix/store without GCing my half-built system?
<muvlon> that one is configured as a DHCP client and logically completely separate from wlan0
<sphalerite> ottidmes: thing with nix-diff is it's haskell, which makes getting it running on ARMv7 Not Fun™
<lejonet> sphalerite: uh? I fail to see how those 2 connects, that isn't a problem that layer 2 can handle... :P
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fpVw6
<{^_^}> [nixpkgs] @c0bw3b merged pull request #50683 → ocamlPackages.csv: 2.1 -> 2.2 → https://git.io/fpCJM
<muvlon> here's the problem: when booting, the networking target waits for DHCP on eth0, timing out after 30 seconds
<ottidmes> sphalerite: maybe copy the info over?
<muvlon> only then will it continue to properly boot
<{^_^}> [nixpkgs] @grahamc merged pull request #51090 → Revert "zfs cannot be distributed. Disabling it in the isos." → https://git.io/fpuxP
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/fpVwi
<muvlon> so i guess my question is: how do i control dependencies between systemd targets in nixos?
<sphalerite> lejonet: what I'm imagining is that the devices all associate amongst each other so it doesn't matter if what was previously the AP is in range or not, I can still run syncthing between the devices I have with me
<muvlon> I'd still like that interface to use dhcpcd, but the networking target should not depend on it
<sphalerite> lejonet: I don't see how layer 2 isn't capable of that
<{^_^}> [nixpkgs] @grahamc pushed to release-18.09 « Revert "zfs cannot be distributed. Disabling it in the isos." »: https://git.io/fpVwM
<lejonet> sphalerite: yeah, due to layer 3 addressing
<ottidmes> kisik21: probably: nix-collect-garbage --delete-older-than <period>
<sphalerite> ottidmes: no!!
<sphalerite> kisik21: not that
<kisik21> yeah
<lejonet> sphalerite: and syncthing relying on relays and introducers, through layer 3 addressing
<{^_^}> [nixpkgs] @c0bw3b merged pull request #50671 → ocamlPackages.visitors: 20171124 -> 20180513 → https://git.io/fpcjx
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fpVwQ
<kisik21> because I need to delete everything not tied to current system or not mentioned in a certain .drv file
<kisik21> 16G SD card, almost full, cannot continue the build
<sphalerite> lejonet: sure but the missing piece is having them connect to each other without an AP.
<ottidmes> sphalerite: could you eloborate? but anyway, it seems my advice in this matter is not useful, so I will leave it to you and others
<lejonet> sphalerite: yeah, and that'd require an ad-hoc mesh network technology that usually isn't that easy to achieve, at least not through wlan
<sphalerite> kisik21: based on my own experiences fiddling with ARMv7 stuff 16GB isn't going to get you much other than pain
<lejonet> sphalerite: wlan isn't really made to be used without an AP :(
<sphalerite> ottidmes: it's a UX problem with nix as usual. nix-collect-garbage conflates deleting old generations of stuff and the actual GCing
<kisik21> sphalerite: The only other way would be nixos-assimilate on my main SD card which equals A LOT of downtime probably
<kisik21> But I've built almost half of what's required, including the compiler
rauno has quit [Remote host closed the connection]
<kisik21> maybe I can continue the build somewhere else?
<sphalerite> kisik21: you can just copy all the files onto a bigger SD card
<lejonet> sphalerite: yeah, several techniques exist, but I have yet to see one that isn't full of packet loss or isn't a pain to setup
<{^_^}> [nixpkgs] @c0bw3b merged pull request #50655 → python-mnist: init at 0.6 → https://git.io/fpcbR
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fpVrk
<etu> sphalerite: What's wrong with nix-collect-garbage --delete-older-than?
<lejonet> sphalerite: luckily, the pace of getting wider support for ad-hoc meshing have increased a lot last few years :)
<kisik21> oh, wait, I only have one 8G partition on my 64G SD card. Hm, maybe I could make a temporary /nix/store on the other 48G?
<sphalerite> ottidmes: etu: nix-collect-garbage conflates deleting old generations with garbage collection. It can be useful, but what we want to avoid in kisik21 's case is a partly built profile (since it's not finished building, it doesn't have a GC root) being GC'd
ghasshee has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #50651 → pipenv: 2018.10.13 -> 2018.11.14 → https://git.io/fpcdD
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fpVr3
<etu> sphalerite: ah ok. :-)
<kisik21> sphalerite: running nix optimise-store now, maybe that will free up some space
<sphalerite> kisik21: there's nothing inherently wrong with it but it's very much the wrong thing for kisik21's case and would have deleted a day or two of compiling probably :p
<etu> sphalerite: Then it's right for the case I use it in. It's run every night using nix.gc.automatic stuff :-)
<sphalerite> oops highlight
<kisik21> sphalerite: better say: All the compiling. All of it.
<kisik21> Since it ran for... two days
ghasshee has joined #nixos
<sphalerite> etu: sure, as long as you don't mind losing previous generations :D
<kisik21> I guess I may have to switch SD cards, but I have a trick up in my sleeve - reformat the NixOS partition with f2fs, so switching SD cards would not waste my time and actually make it worth it
<etu> sphalerite: Well, that's kinda why I run it. To have a backlog of generations for so many days.
<sphalerite> etu: yeah it makes sense there
<etu> sphalerite: I also use system.autoUpgrade.enable :p
<etu> So I can log in to my system and have about 14 days of old profiles, but not more. And it upgrades itself and restarts services that needs restarting. It's actually very nice :-)
<sphalerite> lejonet: re increasing support for mesh/ad-hoc: is it? I'm interested! If you have time to talk about it some more, let's take this to #nixos-chat though :p
* lejonet should look into autoUpgrade for his desktop
* sphalerite is too scaredy to use autoUpgrade
<kisik21> does service autorestarting work nice on servers? from my experience on using NixOS on desktop I felt that it's more tailored for zero-downtime servers.
<etu> lejonet: I haven't had to touch my VPS since I upgraded from unstable to 18.09 (before it became stable) and enabled autoUpgrade. It has just worked :-)
<sphalerite> I wouldn't want to autoUpgrade zero-downtime stuff
<lejonet> sphalerite: yeah, for some "odd" reason, a lot of people would like to do routerless networking even for wireless :P (as its dead simple with a switch and ethernet cabling, why shouldn't it be for wireless?), sounds good! I should join #nixos-chat.... :P
<lejonet> sphalerite: I have hourly snapshots on my desktop, bring it! ;)
<lejonet> etu: :D
<etu> kisik21: I only use it on a personal vps and some home systems
<etu> kisik21: But my experience with doing "nixos-rebuild switch" is much better on headless systems than systems with desktops
<sphalerite> lejonet: I wouldn't enable autoUpgrade *as-is* for zero-downtime stuff, instead doing some sort of magic with two machines running the services and blue-green thingmies.
<sphalerite> Although maybe I'm taking zero-downtime too literally:D
lnikkila has joined #nixos
<etu> kisik21: But I wouldn't be brave enough to do autoUpgrades for any production systems for like work or so :)
<kisik21> Well, NixOS has rollbacks anyway
<etu> That's correct, but then I have to be there to do the rollback :p
<sphalerite> sure, but that's not enough to prevent downtime
<etu> and by default the autoUpgrade is at 04:40. And I'm usually not awake at that time
<sphalerite> haha
<kisik21> etu: If system is still available via ssh, nixos-rebuild switch --rollback. If not, well, log in the management console (and for me - enable the TV my RPi is plugged in) and choose another generation in the bootloader
<etu> kisik21: I use autoUpgrades on my kodi machine, that's lovely. But I don't think it restarts kodi automatically since it's a graphical desktop.
<sphalerite> kisik21: right, but the point really is that that doesn't avoid downtime, it just makes it shorter when something does go wrong :)
<muvlon> btw, I started using nixos just this week
<muvlon> gotta say it was easier than expected!
<gchristensen> yay!
<sphalerite> muvlon: and going straight for the ARMv7? brave :D
<muvlon> nope, that's another person
<sphalerite> muvlon: glad t ohear it!
<sphalerite> oops
<muvlon> kisik21 i believe
<muvlon> I'm going for the ARMv8 though lol
<muvlon> that one's a bit easier since there's kina official support
<kisik21> yeah, ARMv7 RPi2 (WIP) and my x86_64 laptop (full NixOS)
mmlb has quit [Read error: Connection reset by peer]
orivej has joined #nixos
mmlb has joined #nixos
<{^_^}> [nixpkgs] @costrouc opened pull request #51230 → Upgrade and fix few broken python packages → https://git.io/fpVoi
cyounkins has joined #nixos
<muvlon> RPi3 here
<muvlon> if it continues to work well, I might install it on my Jetson TX2 as well
<muvlon> there are some files for TX1 that may just work
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/3a393eecafb (from 5 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
jtcs has quit [Remote host closed the connection]
lnikkila_ has joined #nixos
steshaw has quit [Quit: Connection closed for inactivity]
lnikkila has quit [Ping timeout: 250 seconds]
<lejonet> sphalerite: my desktop isn't a zero-downtime thing xD
<lejonet> sphalerite: for such a service you would do as you suggest, with A-B switching and such
<etu> lejonet: My experience with running gnome on nixos and doing "nixos-rebuild switch" on it isn't that great because of bugs
<{^_^}> #47475 (by etu, 8 weeks ago, open): Restarts of accountservice crashes gnome3
<sphalerite> lejonet: yeah. Just kisik21 said it seemed more suitable for zero-downtime servers
<lejonet> etu: I'm running i3wm
<sphalerite> etu: I have the impression that gnome is generally quite buggy.
<lejonet> sphalerite: ah, yeah, please don't :P
<kisik21> half nix optimise-store, 1G saved
<kisik21> I may be able to continue the build
<etu> sphalerite: I have the impression that people on podcasts and other linux-media thingys on the internet state that Gnome is buggy and crashes all the time and that Plasma is perfect. But. From my own experience it's exactly the other way around. :D
<kisik21> Plasma is fairly OK. It sometimes glitches out, but it's fairly usable. GNOME... well, Wayland stuff didn't work and there were other strange things
<kisik21> but if I needed to choose something really stable, I choose XFCE
<lejonet> if I needed to choose something, I'd choose i3... :P
<etu> I haven't checked the plasma code. But I'm fairly sure that they have a line like this: if (user == "etu") do_random_crashes();
<kisik21> lejonet: the only thing I don't like about i3... let's go to #nixos-chat for that
<lejonet> kisik21: :P
vidbina has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
iyzsong has quit [Ping timeout: 250 seconds]
<kisik21> wait, why does my server setup requires GTK+?!
<kisik21> why it's so weird
<etu> kisik21: environment.noXlibs may help you, I've never used the flag myself though
<sphalerite> it's kind of half-baked though and won't prevent that many occurrences of gtk
reinhardt has quit [Quit: Leaving]
<kisik21> s/many/most/
<kisik21> it only blocks NetworkManagers and pinentry. Also gobjectIntrospection
civodul has joined #nixos
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
fendor has joined #nixos
jperras has joined #nixos
muvlon_ has joined #nixos
muvlon has quit [Ping timeout: 272 seconds]
graphene has quit [Remote host closed the connection]
crmlt has joined #nixos
graphene has joined #nixos
muvlon__ has joined #nixos
muvlon_ has quit [Ping timeout: 250 seconds]
halfbit has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #51231 → lit: 0.6.0 -> 0.7.0 → https://git.io/fpV1M
<{^_^}> [nixpkgs] @dtzWill opened pull request #51232 → vimb: 3.1.0 -> 3.3.0 → https://git.io/fpV1H
worldofpeace has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #51233 → inferno: remove → https://git.io/fpVMV
cyounkins has quit [Remote host closed the connection]
<gchristensen> Mic92: I didn't intend on sticking you with a big "clean up the kernel packages" project. Did I do that?
cyounkins has joined #nixos
<Mic92> gchristensen: I just did this, because I already had the data from nix-review.
muvlon__ has quit [Ping timeout: 250 seconds]
<Mic92> gchristensen: your change seems fine
<gchristensen> does it seem okay to backport?
<Mic92> gchristensen: it is a module, right?
<gchristensen> like does it appear as `foo=m`?
<Mic92> but I don't think it should cause issues
cyounkins has quit [Ping timeout: 250 seconds]
crmlt has quit [Remote host closed the connection]
johanot has joined #nixos
<kisik21> Freed 2 gigs of disk space (now I have around 3.5G), enabled noXlibs (thanks etu, I had this disabled for some reason), continuing the build.
<kisik21> Question: how much space does Spidermonkey need to build?
<Mic92> no one knows
crmlt has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #50620 → perlPackages.Imager: init at 1.006 → https://git.io/fpcPO
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @stigtsp to master « perlPackages.Imager: init at 1.006 »: https://git.io/fpVye
cyounkins has joined #nixos
endformationage has joined #nixos
<v0|d> Mic92: can you compile pkgs.perlPackages.DBDSQLite ?
<v0|d> I get Makefile:1086: *** missing separator. Stop.
crmlt has quit [Remote host closed the connection]
crmlt has joined #nixos
<azazel> what's the purpose of the imports attr in submodule declarations?
<qyliss^work> It expresses the dependencies of the module
<qyliss^work> So that, in theory, at least, you could import a single module, and it would bring in everything it needed to work
fusion809 has joined #nixos
erasmas has joined #nixos
<johanot> anyone using the Travis-CI nix environment running into sporadic "No space left on device". maybe this is more of a travis question? any way of requesting more builder disk space?
<{^_^}> [nixpkgs] @Ma27 merged pull request #36424 → nixos/i18n: add option for extra locale settings → https://git.io/vAbcl
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fpVSy
<{^_^}> [nixpkgs] @WhittlesJr opened pull request #51235 → nzbget: Fix script for copying default config file template → https://git.io/fpVSj
Profpatsch has quit [Ping timeout: 246 seconds]
klntsky has joined #nixos
<sphalerite> kisik21: noXlibs can rather oddly actually result in a larger system closure FWIW
<kisik21> how?
orivej has joined #nixos
<sphalerite> because it's so half-baked and results in some packages being included in duplicate iirc. I might be wrong about this though
Profpatsch has joined #nixos
<kisik21> it actually uses an overlay to override nixpkgs' default X lib inclusions
<kisik21> so the only problem is packages that are not overridden
<azazel> I'm currently struggling with the design of a configuration tree that will in turn add configuration to containers.* and services.nginx.* and I'm trying to separate each configuration "per type". However, appears to be impossible for a submodule to add something in another "branch", how to solve that? I'm trying to find out some existing configuration to study... I don't think it's possible to attach functions to config branches?
<qyliss^work> What do you mean by 'a submodule to add something in another "branch"'?`
<sphalerite> what do you mean by "branches"? :)
Ariakenom has quit [Ping timeout: 244 seconds]
<azazel> i mean, for a function handling configuration in mycompany.sites.<name> (a submodule) to add something to services.nginx.virtualHosts or containers or, if that is impossible, to produce a function that is then attached to mycompany.sites.<name> tree for later use by a global mycompany.sites module
<azazel> is it more clear now?
<qyliss^work> Can't you just set `services.nginx.virtualHosts` in that module?
crmlt has quit [Ping timeout: 250 seconds]
<azazel> so, the submodule for mycompany.sites.<name> contains an enum, a siteType which I would use as an extension point, and then subdivide the configuration of each "type" in it's own module
<azazel> Is this crazy?
dramforever has joined #nixos
<simpson> I thought that `services.nginx.virtualHosts` was one of those auto-concatenating lists.
johanot has quit [Quit: WeeChat 2.2]
<dramforever> TIL There's support for (QEMU I think) making Windows virtual machines in Nixpkgs
<simpson> The more things change, the more they stay the same: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/vm/windows/bootstrap.nix#L6
<dramforever> Yeah I was actually quite shocked when I first saw qemu in the build logs when i was playing with stuff
<dramforever> I think it was dockerTools
<dramforever> And this rabbit hole only gets deeper
<azazel> simpson: it's an auto-merging set
<infinisil> azazel: submodules can't set options outside of themselves
<joepie91> for those using VS Code for Rust: https://github.com/rust-lang/rls-vscode/pull/459 -- this will fix my rls-in-shell.sh hack for the rls-vscode extension, so that RLS builds can occur using your project's shell.nix
<{^_^}> rust-lang/rls-vscode#459 (by joepie91, 8 minutes ago, open): Run RLS with cwd set to crate root (fixes #448)
<azazel> infinisil: yes, I know..and so? Am I setting up this configuration tree in the wrong way, or there's a way for such sumodules to set something (an adhoc generated function maybe) so that a more global configuration module can set those "outside options"?
<joepie91> (use `npm run installDevExtension` after cloning from that PR branch to get it going for the time being)
<joepie91> (or `yarn installDevExtension` if that's your flavour, of course)
rihardsk has joined #nixos
<infinisil> azazel: Well you could have a submodule option that just exports some value it should set in the global configuration. Then the place where the submodule gets used will apply those
<Mic92> v0|d: hydra can, I have not tested cross-compiling
mmlb has quit [Read error: Connection reset by peer]
<azazel> infinisil: can you think of a minimal concrete example?
<{^_^}> [nixpkgs] @fgaz opened pull request #51236 → cht.sh: init at unstable-2018-11-02 → https://git.io/fpV59
mmlb has joined #nixos
<infinisil> azazel: Something like `submodule { options.virtualHosts = mkOption { ... }; }`, then `services.nginx.virtualHosts = cfg.virtualHosts` where you have the submodule
graphene has quit [Remote host closed the connection]
<infinisil> azazel: You probably want to use mkAliasDefinitions though
<infinisil> (check its docstring for what it does)
graphene has joined #nixos
<azazel> I checked that, but only usage I found was to keep deprecated submodules (linke users.extraUsers aliasing to users.users)
emacsomancer has quit [Ping timeout: 268 seconds]
<azazel> wow, this new 3D CAD is amazing, if will spare some time I'll try it out on nixos http://libregraphicsworld.org/blog/entry/introducing-antimony-free-graph-based-cad-system
<azazel> oh, is already in nixpkgs ;-)
emacsomancer has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #51237 → libosip_3: remove → https://git.io/fpVNk
fendor has quit [Remote host closed the connection]
Tucky has quit [Quit: WeeChat 2.2]
fendor has joined #nixos
<Mic92> does anyone uses these default.upstream files in nixpkgs?
<gchristensen> some old update tool made them I think?
<Mic92> what is the IRC nick of raskin?
<gchristensen> not MichaelRaskin?
emacsomancer has quit [Ping timeout: 246 seconds]
<Mic92> That one.
emacsomancer has joined #nixos
Neo-- has quit [Ping timeout: 252 seconds]
tathougies has joined #nixos
<tathougies> Is there any way to copy an already existing nix path from a binary cache?
<tathougies> (Because nix doesn't have fully reproducible builds?)
<bbarker> In what way are users in nixos containers related to host users? I seem to recall docker did some kind of UID mapping from container space into high UIDs in host space. But maybe I'm wrong. Are they totally isolated (other than, root, apparently?)
<infinisil> tathougies: Have you tried `nix copy`?
<tathougies> infinisil: no i have not, but by the sound of it it's what i want. Will that work even if there are references in the nix store?
<gchristensen> tathougies: can you clarify your question? Nix will automatically substitute prebuilt binaries when the cache has them available. binary cache substitution working is not dependent upon fully reproducible builds, so something else is going on if it isn't working.
mmlb has quit [Ping timeout: 246 seconds]
<fusion809> Hi folks, how do I installed octaveFull? nix search octave shows `* nixpkgs.octaveFull (octave)` as an option, but nix-env -i octaveFull doesn't install it. I need octaveFull because it provides the GUI of GNU Octave, or so I believe based on NixOS/nixpkgs#33160.
<dramforever> tathougies: Yes
<{^_^}> https://github.com/NixOS/nixpkgs/issues/33160 (by 8573, 47 weeks ago, closed): GNU Octave has lost its GUI?
<illegalprime> how should I package a shell script that contains dependencies? I can write the entire thing in a multi-line string and interpolate the packages but then I loose syntax highlighting & formatting. propagatedBuildInputs works but only in nix-shell and not when I add the package to environment.systemPackages. What should I do?
<tathougies> gchristensen: oh it's working. I'm just curious to see if I can get nix to copy over an already existing derivation output based on the output of the same derivation on another nix store
<tilpner> ,-A fusion809
<{^_^}> fusion809: You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<tathougies> nix copy does not work, because it stops once it sees the derivation output already exists
<tathougies> gchristensen: this allows nix to copy over the signatures from the other cache as well, which is what i'm most interested in (related to my questions on code signing yesterday)
<gchristensen> I see
<fusion809> tilpner: thanks, that worked.
<bbarker> is the nixos channel just a superset of the nixpkgs channel?
* dramforever has alias nixpkgs='nix-env -f <nixpkgs>'
dramforever has quit [Quit: Page closed]
sanscoeur has joined #nixos
<gchristensen> bbarker: the nixpkgs channel updates when a certain set of tests pass, and the nixos channel updates when a different set of tests pass
__Sander__ has quit [Quit: Konversation terminated!]
<bbarker> gchristensen, ah, so they both have the same attributes/packages
jw358 has quit [Ping timeout: 240 seconds]
lnikkila_ has quit [Quit: lnikkila_]
<gchristensen> the nixos and nixpkgs channel are both essentially a tarball of the git repository
jw358 has joined #nixos
<gchristensen> so yeah, same thing :)
jtcs has joined #nixos
Ariakenom has joined #nixos
dcol has joined #nixos
pointfourone has joined #nixos
jtcs has quit [Remote host closed the connection]
erratic has quit [Quit: this computer has gone to sleep...]
<v0|d> how do I add a tab in '' ''?
<v0|d> Is it like '' \t ''?
<infinisil> ,escape''
<{^_^}> '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
<v0|d> '' ''\t ''
<v0|d> ah I remember thnx infinisil
<infinisil> np
ghasshee has quit [Ping timeout: 250 seconds]
jtcs has joined #nixos
<{^_^}> [nixpkgs] @eburimu opened pull request #51239 → fix perl DBI package, missing \t in Makefile → https://git.io/fpVjH
<v0|d> remind me to never attempt to debug a perl packages in future.
<v0|d> infinisil++
<{^_^}> infinisil's karma got increased to 47
rprije has quit [Remote host closed the connection]
<azazel> so much, you feel it? ;-)
rprije has joined #nixos
cyounkins has quit [Remote host closed the connection]
<infinisil> "Are you feeling it now Mr. Krabs??"
cyounkins has joined #nixos
sanscoeur has quit [Remote host closed the connection]
erratic has joined #nixos
sanscoeur has joined #nixos
<azazel> so much violence
cyounkins has quit [Ping timeout: 250 seconds]
pi3r has quit [Quit: Leaving]
<azazel> incredible, someone spent time setting up a sponge(bob)pedia
<v0|d> staging is borkn
<jsgrant_> azazel: There's wikis for 'everything' man.
<simpson> azazel: An inevitable consequence of WP telling folks that they can't host fandoms on WP.
* jsgrant_ waits for Debian to change there release name to Spongebob Charecters when they eventually run out of Toy-Story. With the new movies coming out ... probably a non-issue
<azazel> eh :-)
<gchristensen> v0|d: tag @matthewbauer I think
<v0|d> he prob. notices, all pr's are red X'es now.
<gchristensen> maybe do it anyway just in case? :)
<v0|d> I can tag but where?
<v0|d> in a PR?
<gchristensen> yeah
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #nixos
<tilpner> home-manager does not seem to like being cross-compiled :/
<{^_^}> [nixpkgs] @Mic92 merged pull request #51233 → inferno: remove → https://git.io/fpVMV
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fpwfK
<jsgrant_> Btw, whoever worked on the Flatpak intergration (wherever you are) tyvm. Has made my movement to NixOS a lot more doable. Still have a bunch of niggles but can now justify myself going all-in without being "as afraid".
<gchristensen> woot jsgrant_!
<jsgrant_> gchristensen: Agreed; Lol. I kept dipping my toes in then retreating back to Fedora. Hopefully it won't take too long to fully convert to being fluentish enough with the 'nix way' where it's a non-issue but certainly a boon I think.
<{^_^}> [nixpkgs] @jtojnar pushed to master « python2.pkgs.gst-python: fix build »: https://git.io/fpwJf
<Mic92> samueldr: if you run low on RAM next year for the nixpkgs statistics script, I can help :)
<jsgrant_> Just need to try to figure out a decent Scala development conf, but finding sbt2nix (though looks like development has sadly stalled but seeems semi-workable now) I'm pretty optimistic. :^)
<{^_^}> [nixpkgs] @Mic92 merged pull request #51239 → fix perl DBI package, missing \t in Makefile → https://git.io/fpVjH
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/fpwJu
<v0|d> Mic92: so fast:)
<v0|d> Mic92++
<{^_^}> Mic92's karma got increased to 6
sanscoeur has quit [Remote host closed the connection]
sanscoeur has joined #nixos
fendor has quit [Ping timeout: 246 seconds]
sanscoeur has quit [Remote host closed the connection]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<bbarker> where is the nix-container code located? I assumed in the 'nix' repo but not seeing anything obvious
<bbarker> 'nixos-container', that is
<infinisil> bbarker: Where is nixos located?
<v0|d> bbarker: nixops?
<infinisil> v0|d: It has nothing to do with nixop
<infinisil> s
<v0|d> .k
<bbarker> nixos is in nixpkgs I thought but I'm looking for what I assume is the C++ or other code implementing it
<{^_^}> C's karma got increased to 2
<v0|d> lol
<infinisil> Hehe, I blacklisted c++, but I guess C++ still works
<{^_^}> C's karma got increased to 3
<v0|d> lol:))
<v0|d> we can't even discuss c++ in #nixos
<bbarker> lol
<kisik21> infinisil: C++ would be caught if you make your regex /i (ignore case)
<{^_^}> C's karma got increased to 4
<kisik21> but C is definitely good
<infinisil> kisik21: Not implemented with regex (the blacklist part)
<kisik21> ok then
<bbarker> ok, apparently they are pkgs/tools/virtualization/nixos-container/default.nix , and then winner is bash and perl, not sure if that is a win over C++ but I'll take it
<{^_^}> C's karma got increased to 5
sanscoeur has joined #nixos
<c00w> Just call c++ c - that won't be confusing at all :P
<dsx> Is there a way to access system configuration in ~/.nixpkgs/config.nix? Let's say, I want to know my current hostname as it is defined in networking.hostName, how do I do that?
WhittlesJr has joined #nixos
<infinisil> dsx: You mean /etc/nixos/configuration.nix?
<dsx> Yes
<infinisil> dsx: nix-instantiate --eval '<nixpkgs/nixos>' -A config.networking.hostName
<infinisil> Or nix eval -f '<nixpkgs/nixos>' config.networking.hostName
ninjin has quit [Quit: WeeChat 2.2]
<dsx> Sorry. I'm my mind is all over the place today, but not where it should be. I mean, part of my user config depends on hostname, and I want to somewhow know pass it to derivations in my ~/.nixpgks.
<tilpner> In your case, (import <nixpkgs/nixos {}).config.networking.hostName would work, but that's really slow
<infinisil> dsx: Ah, well then you can just use `let hostname = (import <nixpkgs/nixos> {}).config.networking.hostName; in` .
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<tilpner> Probably just use builtins.readFile /etc/hostanme
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a0c7949780b (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<dsx> That's ok if that's slow, I'm not rebuilding my profile too often :)
<dsx> Thanks!
<infinisil> (C++ is now blacklisted (I mean C), but you can still give karma to C++ (actual C++ now) via C++++)
<{^_^}> (C's karma got increased to 1, C++'s karma got increased to 2
ninjin has joined #nixos
<infinisil> Lol
<tilpner> {^_^}++
<v0|d> C++++++
<{^_^}> {^_^}'s karma got increased to 142
<{^_^}> C++++'s karma got increased to 1
<tilpner> C++
<{^_^}> [nixpkgs] @Mic92 pushed commit from @eburimu to master « fix reiserfsprogs cross compilation »: https://git.io/fpwkB
<{^_^}> [nixpkgs] @Mic92 closed pull request #51144 → reiserfsprogs: fix cross compilation → https://git.io/fpgV7
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @charles-dyfis-net opened pull request #51240 → buildMaven: Support metadata-only dependencies → https://git.io/fpwko
jabranham has joined #nixos
klntsky has quit [Quit: WeeChat 2.3]
sigmundv_ has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #51240 → buildMaven: Support metadata-only dependencies → https://git.io/fpwko
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fpwIJ
hke has quit [Ping timeout: 250 seconds]
mayhewluke has quit [Ping timeout: 250 seconds]
<jsgrant_> BBL. o/
jsgrant_ has quit [Remote host closed the connection]
halfbit has quit [Ping timeout: 252 seconds]
pointfourone has left #nixos ["Leaving"]
rprije has quit [Remote host closed the connection]
hke has joined #nixos
rprije has joined #nixos
<WhittlesJr> If my build machines are seemingly working correctly, what could cause the following: error: a 'aarch64-linux' is required to build '...', but I am a 'x86_64-linux'?
<gchristensen> probably a features problem. `nix show-derivation /nix/store/the-...drv` and then look for `features` in the output
sanscoeur has quit [Remote host closed the connection]
hke has quit [Ping timeout: 246 seconds]
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
hke has joined #nixos
dcol has quit [Ping timeout: 250 seconds]
<tathougies> Is there any way to get nix-build, nix copy, etc, to produce machine-readable output for progress? I see there's a JSON logger, but without modifying the nix source, i'm not sure if there's a way to enable it for these commands. Any ideas?
leothrix has quit [Ping timeout: 244 seconds]
sanscoeur has joined #nixos
init_6 has quit [Ping timeout: 250 seconds]
<steveeJ> tathougies: I think `nix build` (vs `nix-build`) does have build output
sanscoeur has quit [Remote host closed the connection]
random_yanek has quit [Ping timeout: 245 seconds]
<WhittlesJr> gchristensen: That looks like the culprit, thank you!
<gchristensen> WhittlesJr: do you know how to fix that?
<WhittlesJr> gchristensen: My solution was to just use an older channel (18.03). The linux kernel in 18.09 didn't seem to have cached binaries yet for aarch64 and was trying to build on my RPis.
phreedom_ has joined #nixos
<WhittlesJr> I think I've heard that I could also use qemu to cross-compile from my x86_64 though, is that true?
<clever> WhittlesJr: qemu.aarch64 = true; imports = [ ./qemu.nix ]; in configuration.nix, and it can just magically run aarch64 binaries (at reduced speed)
<gchristensen> if clever says it is, it is! :D
<gchristensen> clever: jeeeeze that is spooky stuff
<WhittlesJr> dag.
<clever> oops, qemu-user.aarch64 = true;
<WhittlesJr> I'll give that a shot...
mayhewluke has joined #nixos
<gchristensen> let's make all sorts of scary binfmt interpreters
<tilpner> It works really well though
<clever> gchristensen: i flipped it around one day, to run x86-64 on a raspberry pi!
<clever> it segfaulted somewhere in pulseaudio, and gdb was confused by the mix of arches
<gchristensen> haha
phreedom has quit [Ping timeout: 256 seconds]
grenade has quit [Remote host closed the connection]
random_yanek has joined #nixos
freeman42x]NixOS has joined #nixos
<samueldr> WhittlesJr: channels right now do not wait for complete successful aarch64 builds :/
<samueldr> WhittlesJr: https://hydra.nixos.org/jobset/nixos/release-18.09-aarch64#tabs-links from the "Links" tab, you can get a "Latest finished evaluation" for aarch64; once followed, the "Inputs" tab will show the revision ID
<samueldr> this is how I maximize the use of the binary cache
<samueldr> (using a nixpkgs checkout instead of using a channel)
* samueldr is partly wrong
<samueldr> it should have been the last successful link that I recommend
<samueldr> (hmm, then again I might have been confused just now)
grenade has joined #nixos
pie__ has quit [Remote host closed the connection]
sanscoeur has joined #nixos
pie__ has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
vidbina has quit [Ping timeout: 244 seconds]
sanscoeur has quit [Remote host closed the connection]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/a0c7949780b (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> [nixpkgs] @Anton-Latukha opened pull request #51242 → qbittorrent: 4.1.3 -> 4.1.4 → https://git.io/fpwmA
<WhittlesJr> samueldr: that seems like the best solution for me, as I'd rather not have to build any packages at all... thank you!
<cransom> it's that time of year again. i need to set flip the enable bit on `services.foldingAtHome.enable`
<gchristensen> cransom: get a bit chilly?
fusion809 has quit [Quit: Konversation terminated!]
<cransom> freezing over night, but hey, i can help cure cancer and add a few degrees to my room. the furnace doesn't do the former.
halfbit has joined #nixos
<gchristensen> my toasty systems are in the basement :(
<cransom> heat still rises.
Thra11 has quit [Quit: WeeChat 1.9.1]
fusion809 has joined #nixos
sanscoeur has joined #nixos
<cransom> hrm. folding seems to need some TLC. it's marked i686 and is also an ancient client.
sanscoeur has quit [Remote host closed the connection]
sigmundv_ has joined #nixos
sanscoeur has joined #nixos
<gchristensen> lmk how it goes, I could use a few more deg here
<cransom> it'll be pulling teeth, apparently. they only put out compiled clients. oh well, tonight i guess.
sanscoeur has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @vaibhavsagar opened pull request #51243 → Update developPackage → https://git.io/fpwOg
<{^_^}> [nixpkgs] @uri-canva opened pull request #51244 → perceptualdiff: init at 1.2 → https://git.io/fpwO2
sanscoeur has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
sanscoeur has quit [Remote host closed the connection]
leothrix has joined #nixos
rawreraw has quit [Ping timeout: 250 seconds]
sigmundv_ has quit [Ping timeout: 250 seconds]
cyounkins has joined #nixos
doyougnu has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
jsgrant has quit [Remote host closed the connection]
<WhittlesJr> Looks like infinisil ran into this recently as well: `warning: unable to download 'https://cache.nixos.org/....narinfo': Peer certificate cannot be authenticated with given CA certificates (60); retrying in 2280 ms`
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<infinisil> WhittlesJr: Just means your network has a problem
<gchristensen> maybe a captive portal
<infinisil> Wait, not sure if it was that error
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.{dev,canary}: 3.4.0.4 -> 3.4.0.5 »: https://git.io/fpwGC
<WhittlesJr> Well, I *am* on a very obnoxious corporate network, so maybe something changed on our end... All I know is that this did work at one time.
Neo-- has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice opened pull request #51247 → cockroachdb: 2.0.0 -> 2.1.1 → https://git.io/fpwGz
<{^_^}> [nixpkgs] @7c6f434c merged pull request #51237 → libosip_3: remove → https://git.io/fpVNk
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fpwGa
fendor has joined #nixos
<Neo--> hey all, build-vm can be envoked only from nixos right? or is there an easy way / tool already to create a virtualbox image out of conf.nix?
orivej has joined #nixos
rprije has quit [Remote host closed the connection]
goibhniu has quit [Ping timeout: 268 seconds]
rprije has joined #nixos
perique has joined #nixos
cyounkins has quit [Remote host closed the connection]
goibhniu has joined #nixos
cyounkins has joined #nixos
acarrico has joined #nixos
cyounkins has quit [Ping timeout: 244 seconds]
rawreraw has joined #nixos
<v0|d> Neo--: try (import <nixpkgs/nixos my-config).vm or vmWithBootLoader
<dmj`> So nixops export dumps json
<dmj`> But nixops import can't import the exported json?
<v0|d> Neo--: see nixpkgs/nixos/default.nix
vidbina has joined #nixos
<ottidmes> what is supposed to be in: /nix/var/nix/profiles/system/configuration-name (in my case it is empty)
irdr has quit [Ping timeout: 250 seconds]
alex`` has joined #nixos
<Neo--> v0|d, thanks, checking it out
<Neo--> basically what I'm trying to do is to have an easy way to build a VM even on e.g. mac if I have just configuration.nix for cases when a machine dies
danielrf has quit [Ping timeout: 252 seconds]
<WhittlesJr> infinisil: A few observations on my issue: 1. The deployment ends with "error: unexpected end-of-file." 2. If I try going to the .narinfo in a web browser, I get 404.
<WhittlesJr> May not be helpful or unusual information
steshaw has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #49385 → gitlab-shell: 8.3.3->8.4.1, fix hardcoded paths → https://git.io/fxQ5I
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/fpwcN
irdr has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #51217 → set-source-date-epoch-to-latest: fix warning → https://git.io/fpVm7
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/fpwCY
fendor has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @freepotion opened pull request #51248 → boohu: 0.11 -> 0.11.1 → https://git.io/fpwCi
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #51204 → f2fs-tools: fix cross compilation → https://git.io/fpaxL
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/fpwCb
jsgrant_ has joined #nixos
<ottidmes> to answer my own question, I just searched through nixpkgs and it is: nix eval -f '<nixpkgs/nixos>' config.boot.loader.grub.configurationName, which indeed is "" on my system
jsgrant- has quit [Remote host closed the connection]
doyougnu has quit [Ping timeout: 246 seconds]
rprije has quit [Remote host closed the connection]
<gchristensen> hodapp++
<{^_^}> hodapp's karma got increased to 5
<hodapp> yaaaaay!
rprije has joined #nixos
<hodapp> how many karma points till I can trade it in for a NixOS sticker?
<hodapp> 250 or something
<{^_^}> [nixpkgs] @uri-canva opened pull request #51249 → Perceptualdiff 2.1 → https://git.io/fpwlx
<gchristensen> ,loot
<{^_^}> [2018-05-26 20:24:58] <gchristensen> 25 points gets you a sticker, 100 points gets you a t-shirt, 1000 verified points gets you a free trip to nixcon *restrictions apply, must be verifiable points, given by grateful people, in channels I'm in
betaboon has quit [Quit: WeeChat 2.2]
<hodapp> o_O I was joking but apparently it's real...
astronavt has joined #nixos
<simpson> And if you get a million points then you can have a fighter jet~
<gchristensen> please, that is at least a billion
<timokau[m]> Hmm
<timokau[m]> timokau[m]++
<{^_^}> timokau[m]'s karma got decreased to -1
<LnL> lol
<gchristensen> haha
<timokau[m]> Damn, thought of everything
<simpson> Sometimes I love the USA: https://en.wikipedia.org/wiki/Leonard_v._Pepsico,_Inc.
<timokau[m]> timokau[m]--
<gchristensen> "No school would provide landing space for a student's fighter jet, or condone the disruption the jet's use would cause."
astronavt has quit [Quit: Leaving]
sanscoeur has joined #nixos
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/a18112a7e8f (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
lassulus_ has joined #nixos
markus1189 has quit [Ping timeout: 246 seconds]
<{^_^}> [mvn2nix-maven-plugin] @charles-dyfis-net opened pull request #18 → Avoid adding a / if a repo URL already ends with one (#10) → https://git.io/fpw4t
crmlt has joined #nixos
lassulus has quit [Ping timeout: 250 seconds]
lassulus_ is now known as lassulus
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #51247 → cockroachdb: 2.0.0 -> 2.1.1 → https://git.io/fpwGz
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « cockroachdb: 2.0.0 -> 2.1.1, aarch64 support »: https://git.io/fpw49
__monty__ has quit [Quit: leaving]
rihardsk has quit [Quit: rihardsk]
rihardsk has joined #nixos
crmlt has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 268 seconds]
doyougnu has joined #nixos
<{^_^}> [nixpkgs] @veprbl opened pull request #51250 → python3Packages.datrie: fix build → https://git.io/fpwB3
vk3wtf has quit [Ping timeout: 252 seconds]
rihardsk has quit [Quit: rihardsk]
rihardsk has joined #nixos
rihardsk has quit [Remote host closed the connection]
<Neo--> simpson, i'm disappointed a movie or at least an episode wasn't made after this
rihardsk has joined #nixos
<Neo--> :D
<{^_^}> [nixpkgs] @c0bw3b merged pull request #51218 → tixati: 2.57 -> 2.58 → https://git.io/fpV3J
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fpwBA
dslegends has quit [Ping timeout: 246 seconds]
astronavt has joined #nixos
<bbarker> Is there any conceivable way to run nixos-container using some advanced capabilities as a non-wheel user? I would like it if users that don't have sudo could use it, as a starting point
mayhewluke has quit [Ping timeout: 250 seconds]
<infinisil> bbarker: sudoers is the answer, I haven't really used it before, but you should find plenty of info online
<infinisil> security.sudo.extraConfig is the option you can use to add stuff to it
<infinisil> security.sudo.extraRules
rawreraw has quit [Quit: WeeChat 2.3]
<infinisil> preferable ^^
metastance has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #51169 → [18.09] jackett: 0.10.434 -> 0.10.471 → https://git.io/fp2mT
<{^_^}> [nixpkgs] @c0bw3b pushed 3 commits to release-18.09: https://git.io/fpwRH
metastance has quit [Client Quit]
metastance has joined #nixos
<aminechikhaoui> in sandboxed builds, from where is /bin/sh coming from, is it a bind mount of the current /bin/sh in the system ?
<bbarker> infinisil, thanks, forgot sudoers could be used for more subtle things than just giving users the right to run sudo
<{^_^}> [nixpkgs] @uri-canva closed pull request #51249 → [NOT READY TO MERGE] perceptualdiff: 1.2 -> 2.1 → https://git.io/fpwlx
<clever> aminechikhaoui: nix show-config | grep bin/sh
doyougnu has quit [Ping timeout: 252 seconds]
<aminechikhaoui> ah right, should have checked that
<aminechikhaoui> thanks clever
doyougnu has joined #nixos
<aminechikhaoui> clever any idea where this /bin/sh=/path/to/busybox is defined ?
<clever> aminechikhaoui: its likely a default baked into the nix binary at compile time
epicmetal has joined #nixos
<clever> aminechikhaoui: but you can also set sandbox-paths in nix.conf, or with --option
<aminechikhaoui> I know, I was just trying to understand why by default it's set to busybox instead of e.g bash
<clever> aminechikhaoui: the only thing that should ever be using /bin/sh, is the system() function in glibc
<clever> which runs /bin/sh -c "your cmd"
<clever> everything else should be using absolute paths when on nix
<clever> patchShebangs automates fixing the #!'s as well, to make them absolute
<aminechikhaoui> yeah but I've wasted some time figuring out that one of the tests has /bin/sh as shebang, and was just trying to understand how it ended up with a weird one
<aminechikhaoui> alright thanks, now things are a bit more clear :)
doyougnu has quit [Ping timeout: 252 seconds]
cyounkins has joined #nixos
mayhewluke has joined #nixos
<colemickens> Any thoughts on why pushing to cachix and then `nix-env`ing with the cache enabled is reliably considerably faster than `nix copy via ssh-ng` ?
<Ralith> how many store paths?
<tilpner> colemickens - I don't recall the details, but there was something about "nix copy" using fewer (1) download threads? Maybe?
<colemickens> Ralith: only 2 or 3 total, but one of them is ~2GB
shabius has joined #nixos
<Ralith> then it's probably not explainable by piplining
shabius has quit [Remote host closed the connection]
<Ralith> is either involved host CPU bound?
<Ralith> might be different types of compression being used, too
<colemickens> Good point. Shouldn't be CPU bound on either end.
<colemickens> I'm pushing to Cachix now, but I'll do an informal test here in a second and see if `rsync` and `nix copy` are noticeably different for this particular store path.
<Ralith> what do you mean by "shouldn't be"?
<colemickens> shouldn't be, as in my local machine never gets about 20% load and the remote machine is an idle 48 core EPYC machine.
<{^_^}> [nixpkgs] @c0bw3b merged pull request #51168 → jackett: 0.10.446 -> 0.10.471 → https://git.io/fp2qD
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fpwzZ
<Ralith> I doubt nix uses all available cores for compression
* colemickens maybe it's 24 core w/ hyperthreading, but either way :)
<colemickens> Ah, yeah. Another good point. It doesn't, from my observation.
<Ralith> iirc lzma is used by default and that gets very expensive
<{^_^}> [nixpkgs] @LnL7 merged pull request #51047 → Add the tychus application → https://git.io/fpElc
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fpwz0
<aminechikhaoui> yeah it doesn't by default but there should be a parallel-compression option for xz
<aminechikhaoui> e.g nix copy --from <binary-cache>?parallel-compression=1 <path>
<aminechikhaoui> ah wait that's --to <binary-cache>
<aminechikhaoui> don't remember if decompression can be made in parallel as well
<Ralith> decompression is much faster anyway
<colemickens> aminechikhaoui: hm, so does the parallel-compression not work if I'm "pulling" from my remote machine then?
<colemickens> actually, that's enough for me to go on, I can dig in more.
<colemickens> I apparently need to read up more on how store URIs are handled.
<aminechikhaoui> yeah won't happen unless you're copying to the binary cache
<aminechikhaoui> unfortunately those options aren't documented anywhere, we should probably add them to the manual
cyounkin_ has joined #nixos
cyounkins has quit [Ping timeout: 246 seconds]
<ottidmes> any way this script could be improved / be made faster, e.g. is there maybe a faster way to determine the .drv of an out path? https://gist.github.com/ottidmes/4708d005fa1feb018fbb1fa339cbd071
rihardsk has quit [Quit: rihardsk]
vk3wtf has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
endformationage has joined #nixos
graphene has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @c0bw3b opened pull request #51252 → iptables: 1.6.2 -> 1.8.2 → https://git.io/fpwgK
<{^_^}> [nixpkgs] @c0bw3b closed pull request #47780 → iptables: 1.6.2 -> 1.8.0 → https://git.io/fxLDX
graphene has joined #nixos
<aminechikhaoui> ottidmes nix path-info --json should return the deriver among other things
<aminechikhaoui> then you can probably pipe it to jq, not sure if that's faster
<clever> aminechikhaoui: there is also just nix-store --query --deriver
<clever> nix-store --query --deriver /run/current-system
<clever> /nix/store/jlrw67wfr4z2s7ikvfc87k16pjvxhgvn-nixos-system-system76-19.03pre158246.6141939d6e0.drv
<aminechikhaoui> that's better :-)
<{^_^}> [nixpkgs] @worldofpeace opened pull request #51253 → pythonPackages.pywbem: 0.10.0 -> 0.12.6 → https://git.io/fpwgb
<ottidmes> aminechikhaoui: clever: thanks! that should have speed it up a little, although of course the most time is spend in getting the new system out path
<clever> ottidmes: nix-instantiate can also be used there
<infinisil> ottidmes: Hehe, how about this: sudo sqlite3 -noheader /nix/var/nix/db/db.sqlite "select path from ValidPaths where path like '/nix/store/nax0kx5jdhf67bz4r6v4z03l1qdsiq3a%'"
<ottidmes> clever: even when you want an unquoted path?
<clever> ottidmes: nix-instantiate '<nixpkgs/nixos>' -A system
<ottidmes> infinisil: hah! straight to the source!
<gchristensen> it is very dangerous for me to be armed with Inkscape and also access to StickerMule :X
metastance has quit [Ping timeout: 268 seconds]
<gchristensen> I ran out of stickers. how do y'all like these? http://gsc.io/scratch/nix-snowflake-nixos.svg about 3" sticker
Ariakenom has quit [Quit: Leaving]
<clever> gchristensen: nice
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<infinisil> gchristensen: The NixOS text doesn't really fit there imo, it's really squished and too small
<gchristensen> yeah, I'm worried about that too. it is a bit ugly outside of the logo, unfortunately
vidbina has quit [Ping timeout: 250 seconds]
<ottidmes> clever: nix-instantiate --quiet '<nixpkgs/nixos>' -A system, is consistently faster by about a second, yay! thanks!
<Ralith> what about Nix❄S?
<{^_^}> [nixpkgs] @hedning opened pull request #51254 → balsa: switch from enchant to gtkspell3 → https://git.io/fpw2K
<gchristensen> :o
<clever> 01:58 <clever> [clever@amd-nixos:~]$ nix-diff $(nix-store -q --deriver /nix/var/nix/profiles/system-400-link) $(nix-store -q --deriver /nix/var/nix/profiles/system-401-link)
<clever> ottidmes: that was on https://logs.nix.samueldr.com/nixos, when i searched for "clever nix-diff", its back from 2018-04-28!
troydm has joined #nixos
<clever> 21:56 <clever> nix-diff $(readlink original) $(nix-instantiate -I nixpkgs=https://github.com/nixos/nixpkgs/archive/8bce347f02f6bd606ec1822f0ba9b94d7f139071.tar.gz '<nixpkgs/nixos>' -I nixos-config=./router.nix -A system)
<clever> ottidmes: another from match
<infinisil> Damn, I never knew how nice nix-diff looked
<ottidmes> clever: I thought better make it a function, because I its almost my only use case of nix-diff
<ottidmes> infinisil: its awesome in how effective it is
<clever> ottidmes: in the above case, i was moving a machine from one git repo to another, and re-arranging the nix files as i went, and turning it into nixops
<clever> and i wanted to go over it line to line to make sure no secrets wound up in the public repo, but also it had no real changes
jackdk has joined #nixos
c0bw3b_ has joined #nixos
<ottidmes> system-401-link, hah! on my desktop: /nix/var/nix/profiles/system -> system-1410-link :P
graphene has quit [Remote host closed the connection]
<c0bw3b_> Brave declares two `version` on staging and staging-next after a botched merge
<ottidmes> clever: yeah its indeed also very useful to verify just normal changes
m0rphism has quit [Quit: WeeChat 2.2]
<infinisil> I wish I knew this count on my laptop, I've had NixOS on it for about 1.5 years now, but I had to start from scratch a couple times
graphene has joined #nixos
<c0bw3b_> is it ok if I just remove the bad one directly?
<ottidmes> infinisil: this too is only from 2017 while I have been using it longer than that
m0rphism has joined #nixos
<clever> ottidmes: i try to keep the numbers low, nixos-rebuild test :P
<ottidmes> clever: the fact that I had to check the manpage says enough :P I knew about it but have forgotten it...
<ottidmes> clever: I do use dry-build to test from time to time
<{^_^}> [nixpkgs] @c0bw3b pushed to staging « brave: version is just 0.56.15 »: https://git.io/fpwaP
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<{^_^}> [nixpkgs] @c0bw3b pushed to staging-next « brave: version is just 0.56.15 »: https://git.io/fpwaS
troydm has joined #nixos
<ottidmes> clever: I really ought to make test part of my usage of nixos-rebuild, since its so much better than having to remember which link number was working when playing with video drivers and such
<dmj`> What is the point of nixops export to json if it can't be imported from json?
<clever> dmj`: it should import just fine
<dmj`> clever: it doesn't for me, I try nixops import -s /path/to/deployment.json
<dmj`> and even nixops import without the -s argument
<clever> dmj`: what error did it give?
<{^_^}> [nixpkgs] @vaibhavsagar opened pull request #51255 → pkgs/stdenv/generic/make-derivation.nix: s/targetPlatform/hostPlatform/ → https://git.io/fpwVR
<dmj`> clever: first error was, "the extension must end with .nixops", which means it's looking for the sqlite database
<dmj`> that's with the -s flag
<ottidmes> clever: about better CLI commands, do you have anything better than: nix-store --query --outputs $(nix-instantiate --quiet '<nixpkgs>' -A hello)
<clever> dmj`: the -s flag tells it where to find the sqlite db
<clever> your telling it to open the json with sqlite :P
<clever> dmj`: did you try `nixops import < deployment.json` ?
<dmj`> clever: right, because there is no option to import json, so I assumed the cli would be intuitive and detect it's json, but it's not
<dmj`> clever: ok using indirection worked
<dmj`> clever: how the hell was I supposed to know that
<dmj`> clever: thank you
<clever> dmj`: export prints to stdout, import reads from stdin
<dmj`> clever: makes sense now
<dmj`> clever: but that is documented nowhere
<clever> so you could just `ssh remote nixops export -d | nixops import`
<ottidmes> dmj`: it does say it in the manual: "The state is read from standard input."
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c1acb5ce6d8 (from 87 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<{^_^}> [nixpkgs] @timokau merged pull request #51248 → boohu: 0.11 -> 0.11.1 → https://git.io/fpwCi
<{^_^}> [nixpkgs] @timokau pushed commit from @freepotion to master « boohu: 0.11 -> 0.11.1 (#51248) »: https://git.io/fpwwe
<ottidmes> (but that is not to say the UX could be improved)
<dmj`> ottidmes: guess I'm in the wrong here then, its a RTFM situation
<dmj`> clever: that's pretty nice, but I'm just going to put the state in the repo encrypted for now with git crypt
<schmittlauch[m]> What is the best way to interrupt a running package build in the background? As these are not done by nixos-rebuild/ home-manager themselves but by the nix-daemon, CTRL+Z doesn't interrupt the builders.
WhittlesJr has quit [Quit: Page closed]
<ottidmes> schmittlauch[m]: wouldnt kill always be an option, not sure though what the "best way" is
<schmittlauch[m]> ottidmes: Yes, but which processes to kill? Wile typing the command, they might already have terminated.
init_6 has joined #nixos
<infinisil> schmittlauch[m]: Maybe check out how samueldr's nix-top determines the nix builds
<clever> dmj`: if you ever get merge conflicts on that state file, your in for some "fun"
<infinisil> I should implement anonymous {^_^} messages so somebody could correct clever's your/you're without having to be seen as the annoying grammar police :P
<clever> infinisil: just wait till i start typing acrosst :P
<clever> maybe it was something else, cant remember exactly
<infinisil> Haha what's acrosst?
<clever> infinisil: it might be another word, just a local dialect thing
<clever> i saw it without even noticing, and type it the normal way :P
<clever> it cant even remember which word it is, lol
<infinisil> I see
<infinisil> We should all just learn lojban already
<avn> ottidmes: sometimes (rarely, but..) you want definelly _suspend_/postpone long build, not breaking it away
<{^_^}> [nixpkgs] @basvandijk opened pull request #51256 → elasticsearch-curator: 5.5.4 -> 5.6.0 → https://git.io/fpwrE
<ottidmes> avn: true, interrupt != kill
halfbit has quit [Ping timeout: 268 seconds]
<avn> C-z in 1.x paused builds btw. If I remember user experience right. So if I need all cpu for anything, I'd like to postpone chromium build ;)
init_6 has quit []
<clever> avn: that depends more on if its single or multiuser
<avn> clever: nixos, so multiuser
<clever> avn: then ^Z will never pause the build, nix-daemon is doing the real work in the background
<avn> clever: it pause build somehow (I suspect when logging buffer full)
<clever> yeah, but that will take a while
<avn> clever: 1 min or so. But it something, what I like to do if I wait very-important-video-call etc.
<clever> 2.0 might have also made the buffering better
greymalkin has quit [Ping timeout: 246 seconds]
<infinisil> Maybe systemd has some dynamic CPU limiting
<clever> cgroups
<infinisil> I know you can set it statically in the unit file, but not sure if that works dynamically
lord| has quit [Ping timeout: 246 seconds]
<clever> i think systemd dynamically creates cgroups for each unit
<clever> and with the cgroup utils, you can then mutate them
arq1 has quit [Ping timeout: 246 seconds]
arq1 has joined #nixos
eeva has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @schmittlauch opened pull request #51257 → seafile-shared: backport newer minor version to fix build failures → https://git.io/fpwo4
<infinisil> clever: Neat
lord| has joined #nixos
greymalkin has joined #nixos
<gchristensen> omg there actually is a gradient on the nixos logo
<schmittlauch[m]> gchristensen: ?
<infinisil> Whaaa
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c1acb5ce6d8 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<gchristensen> http://gsc.io/scratch/nix-snowflake-nixos.svg vs gsc.io/scratch/nix-snowflake-nixos-nogradient.svg
<schmittlauch[m]> Ah, it's an optional layer (disabled by default) in the svg. But I can't really see any difference
<clever> i can see a slight difference if i switch between the 2 images
<worldofpeace> Ahh I see it now too :D Alt tab is helpful
<clever> ctrl+tab in my case, browser tabs
sigmundv_ has joined #nixos
KaliumXYZ has joined #nixos
<KaliumXYZ> Hello
<infinisil> gchristensen: Whoa neat
<gchristensen> I always thought it was my eye tricking me
c0bw3b_ has quit [Remote host closed the connection]
<KaliumXYZ> so how do I install nix to a drive without using an install medium?
<KaliumXYZ> nvm found it
<KaliumXYZ> my system has efi32 tho
fusion809 has quit [Remote host closed the connection]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fusion809 has joined #nixos
jtojnar has quit [Quit: jtojnar]