gchristensen changed the topic of #nixos to: 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 ... nixcon videos: https://tinyurl.com/nixcon2018
shibboleth has quit [Quit: shibboleth]
cyounkins has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
cyounkins has quit [Ping timeout: 240 seconds]
<leotaku> Does anyone here know what the "speedFactor" option in "nix.buildMachines" achieves?
<jackdk_> I believe it's a rough measure of how fast your build machines are relative to each other, so the distributed build shares work fairly
<leotaku> jackdk_: What value does the local system have then?
<jackdk_> *shrug* my experience was that remote builds would be preferred until remote machines are "busy", then local builds would start
<exarkun1> I seem to have forgotten something important about packaging python for nix: https://gist.github.com/exarkun/d9e532ee98f8888e39793da70e28ea83
<jackdk_> I may have set something up wrong
<exarkun1> anyone tell me what I'm doing wrong?
shpx has joined #nixos
jackdk_ has quit [Remote host closed the connection]
doyougnu has quit [Ping timeout: 252 seconds]
<Church_> samueldr: I am so damn close to this app working. It might literally be what kills me. :P
<simpson> Church_: Don't worry. The real fun is when you look back and realize that you've only written a few hundred lines of Nix.
<simpson> Or maybe you're past that point. I'm not sure.
<samueldr> the fun is when you delete lines of nix you didn't need :)
<Church_> simpson: I haven't even written most of this, was samueldr and manveru helping me out.
<Church_> All I've got is the service wrapping around this damn thing.
<Church_> Ugh.
<Church_> samueldr: It's up and running but something is fracky with unicorn
<samueldr> Church_: still the "doesn't listen on a tcp socket"?
<Church_> samueldr: No that's fixed
<samueldr> ooh
<Church_> samueldr: Wanna look? Got tmate?
<samueldr> I do not have tmate
<Church_> Some weird unicorn worker error.
<samueldr> though, describe the issue
Uma_ has quit [Quit: leaving]
<Church_> Let me just shoot the error paste
<samueldr> nothing else around that?
<samueldr> check in the logs the rails app probably makes?
<samueldr> this looks like only a stack trace, generally there would be an error or a message, I hope
<Church_> samueldr: So it creates a log file now in /tmp/lobsters/log/
<Church_> But it doesn't fill it with anything. >_>
<samueldr> what creates the log dirs? unicorn itself, systemd? are the rights right?
<Church_> Okay and I found the error!
<Church_> BrB
betaboon has quit [Quit: WeeChat 2.2]
betaboon has joined #nixos
betaboon has quit [Client Quit]
betaboon has joined #nixos
betaboon has quit [Client Quit]
betaboon has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Synthetica has quit [Quit: Connection closed for inactivity]
Guanin has joined #nixos
Guanin has quit [Client Quit]
<Church_> For anybody who's written a service. I need to set up the db for my application on first start which involves running rake db:schema:load. Is there a way to run that once and only once on the first ever run of a systemd service?
freeman42x[nix] has quit [Ping timeout: 268 seconds]
<samueldr> yes and no
jtojnar has quit [Quit: jtojnar]
cnidario has quit [Read error: Connection reset by peer]
<samueldr> the preferred way to handle that is through `preStart` in the service definition
<samueldr> it will always run, so you have to handle the initialization there, but this is also where you would run the migrations on update
<samueldr> (gitlab here isn't a bad example as it's rails-based, even though it has its magic sauce)
<samueldr> so "yes you can run things at start" and "no, not at first start, you have to deal with it yourself"
<samueldr> nixos (and systemd) has no concept of "first start
<Church_> Yeah thought I'd have to do preStart
<samueldr> I think it's also the least surprising way to handle that for other nixos users
<Church_> samueldr: I really hate typos in my nixos config
<Church_> Especially errors aren't verbose
<samueldr> --show-trace might help
<Church_> "error: syntax error, unexpected ',', expecting '.' or '=', at /etc/nixos/configuration.nix:6:9"
<Church_> Isn't helpful
<Church_> When line six is: { config, pkgs, ... }:
<Church_> samueldr: Not very helpful
<Church_> The --show-trace
<samueldr> syntax errors are directly propagated from the underlying parser AFAIK
<samueldr> (and yeah they're not the best at first)
<{^_^}> [nixpkgs] @ryantm merged pull request #52836 → matomo: 3.6.1 -> 3.7.0 → https://git.io/fhUb5
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fhkS9
ajs124 has quit [Quit: Gateway shutdown]
ajs124 has joined #nixos
<exarkun1> why aren't buildInputs given to buildPythonPackage available during the `pip install *.whl` executed by the default installPhase?
Dedalo has joined #nixos
Havvy has quit [Remote host closed the connection]
Havvy has joined #nixos
Myrl-saki has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhk9V
<Church_> Okay this I assume db issue is driving me mad
<elvishjerricco> Church_: What's the issue?
<Church_> elvishjerricco: Eh just trying to get a db working correctly with my rails app
<Church_> Already got the main dev helping, just bitching. Such an annoyance
tyang has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @marsam opened pull request #52996 → python27: add patch for CVE-2018-14647 → https://git.io/fhkHU
marsam has joined #nixos
kisonecat has joined #nixos
Rusty1 has joined #nixos
<{^_^}> [nixpkgs] @KAction opened pull request #52997 → tup: 0.7.5 -> 0.7.8 → https://git.io/fhkHO
Anton-Latukha has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52876 → detect-secrets: init at 0.11.0 → https://git.io/fhTIt
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fhkHE
shpx has quit [Ping timeout: 250 seconds]
kisonecat has quit [Ping timeout: 244 seconds]
acarrico has joined #nixos
orbekk has quit [Ping timeout: 246 seconds]
thc202 has quit [Read error: Connection reset by peer]
aanderse has joined #nixos
<Guest17278> Is there a way to allow arbitrary packages to be built outside of the sandboxed build environment?
ensyde has joined #nixos
<clever> Guest17278: which also requires __noChroot = true; on the derivation itself
<Guest17278> clever: so if I'm parsing this right, setting that option to relaxed, and adding `__noChroot = true` will grant my derivation network access?
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
sigmundv_ has quit [Ping timeout: 250 seconds]
<Guest17278> awesome, it does
<Guest17278> thanks clever
<clever> yep
{`-`}_ has joined #nixos
kisonecat has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
kyren has quit [Ping timeout: 250 seconds]
<pie__> clever, i only see tmpfs in the stuff you mentioned a while back?
<clever> pie__: i linked the unionfs setup, which does the same thing as overlayfs
<pie__> ah wait yeah ok its just mount stuff like anything else probably
<clever> yeah
<pie__> ahhh, didnt look for union
<pie__> clever, ok now im in a bit of a conceptual bind
<pie__> having something mounted is a runtime thing, and not a static filesystem thing
<pie__> well...i guess i could wrap the program im calling with code that sets up the appropriate overlays...
<clever> pie__: why not just rsync the data to ~/.something/ on first start?
<pie__> i guesssss i could do that
<pie__> i think i want to pre-do as much work as i can?
<pie__> "BIG FILES" (tm)
<clever> there was several attempts to package windows stuff in nixpkgs, and it has been rejected repeatedly
<pie__> clever, i know *shrug* i peeked at a few of the issues, didnt look too deep yet, but i figured it would probably have to be outside nixpkgs anyway
<pie__> im probably going to be doing too much copying anyway, maybe some hardlinking will help with that but eh.
marsam has quit [Ping timeout: 252 seconds]
<clever> pie__: you can also symlink things in $HOME
<clever> but that depends on how wine overwrites things, either open(foo), or open(foo.tmp) + rename foo.tmp -> foo
<clever> or open, delete dest, and rename
<pie__> oh yeah good point i could just use symlinks for files that are supposed to be static anyway
<pie__> hum.
lokado has joined #nixos
<pie__> the whole thing is probably ill conceived anyway but i want to give it a shot. i had the "great" idea that when installing multiple applications (say something + plugins later), i could require the wine prefix of the previous one, copy it into the build directory, and then run the install there
<pie__> havent gotten to implementing it yet
<clever> pie__: trying to dockerize wine? lol
<pie__> uhhh? xD
<pie__> dont see the connection to docker
<pie__> maybe?
<clever> docker layers do the same kind of thing
<pie__> i mean i dont really use docker
<pie__> ah.
<pie__> now that you mention it that sounds a little bit familiar. is the docker layers thing something nixos did or is it a docker thing
<clever> docker thing
<Church_> Man this sounds like a specialized quemu + wine we had on open pandora a few years back
<clever> basically, you take a list of layers, merge them into a single fs, then run a command like "apt-get install build-essentials"
<clever> docker will then tar up the changes, and create a new layer for those changes
{`-`}_ has joined #nixos
<avn> pie__: wine works well with unionfs+bindfs (bindfs need to strip RO if your .wine come from /nix/store)
<pie__> clever, now that we discussed this, thats actually probably a good way to concisely describe it, but with immutability dumped in
<pie__> avn, huh. do you know this from experience?
<avn> pie__: yep, I have near-production setup
<pie__> i patched out the "is wineprefix owned by a different user" thing the other day
<pie__> avn, is it published somewhere?
<avn> pie__: nope. I done it for customer, who pay my bills. But I can give some clues -- unionfs, bindfs, pam_mount to bring it to user's session.
lawlesseel has joined #nixos
<vaibhavsagar> why is Nix trying to download from a binary cache that hasn't been in my config for months now?
<avn> pie__: how you plan to access your wine apps? ssh+x11?
<{^_^}> [nixpkgs] @ivan opened pull request #52998 → kernel/patches.nix: remove hard tabs → https://git.io/fhk7t
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pie__> avn, aww, ok thanks
<pie__> avn, how much work went into it?
<pie__> (which is to say: how much i will possibly need to work to come up with something reasonable if i might end up going down thesame path)
<clever> pie__: look into nix_user_chroot from nix-bundle, that lets you setup mount namespaces without root
<pie__> clever, hm ok thanks
<avn> pie__: depends how much you need from app, is just app, or you need control app from linux side, etc.
<avn> I spent a lot of time on this part, as well as on control whole system
<pie__> avn, tbh i have no clue :D
paulvictor has quit [Quit: WeeChat 2.3]
<pie__> probably the former
<pie__> ah, i have to run off in a few minutes
<pie__> answer to how i plan to access them: just local gui stuff?
{`-`} has quit [Remote host closed the connection]
<pie__> almost missed you asking that
{`-`}_ is now known as {`-`}
<avn> pie__: my setup is part of bigger system, so most complicated stuff I done -- was done just for integration purposes
<pie__> makes sense
<pie__> i guess im aiming for things limited to just the dependencies of running things
<pie__> a la packages as usual
<avn> I barely touched this, all wine stuff come as series of git repos, and melted down basedir producted
<pie__> ok im off, bbl
ensyde has quit [Ping timeout: 244 seconds]
pie__ has quit [Ping timeout: 244 seconds]
sir_guy_carleton has joined #nixos
miaoski_tw has quit [Quit: Connection closed for inactivity]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 268 seconds]
lassulus_ is now known as lassulus
justanotheruser has quit [Ping timeout: 264 seconds]
mepholic has joined #nixos
mepholic has left #nixos ["WeeChat 2.1"]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Church_> Hey when defining a nixos module/service, I can define systemd timers to go with it yeah>
<elvishjerricco> vaibhavsagar: That sounds odd. Are you building derivations that maybe you had built back when that cache *was* active? It's possible (though I'd hope it wouldn't be this way) that the cache in `~/.cache/nix/binary-cache-v5.sqlite` is remembering that it can get a build from an old cache, and Nix isn't realizing that it shouldn't use it?
<elvishjerricco> vaibhavsagar: Otherwise, double check that it's *actually* not added anywhere using `nix show-config | grep substituters`
<Church_> I can work around it if not, but it'd be handy if I could set default timers/cron jobs for stuff for the module I'm writing.
<elvishjerricco> Church_: Yea, you can do timers with NixOS. https://nixos.org/nixos/options.html#systemd.timers
<elvishjerricco> Btw, that page is useful for finding all NixOS options
<Church_> elvishjerricco: Sorry, I meant more. When writing a service module like so: https://nixos.wiki/wiki/NixOS:extend_NixOS
<elvishjerricco> Church_: There's also: https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E.startat
<Church_> Can I include timers as part of my service/module?
justanotheruser has joined #nixos
<elvishjerricco> I guess I don't understand the question. Your module can *also* define timers in addition to a service, sure
<Church_> Yeah was a badly worded question. Thinking about it now, yeah I'd obviously be able to do it.
<Church_> Stupid of me to ask.
<elvishjerricco> No stupid questions :)
<elvishjerricco> Happy to help
<Church_> Thanks
fusion809 has quit [Remote host closed the connection]
fusion809 has joined #nixos
ddellacosta has joined #nixos
tzemanovic has joined #nixos
<{^_^}> [nix-pills] @workflow opened pull request #101 → Fix typo in Pill 12 → https://git.io/fhk5G
ddellacosta has quit [Ping timeout: 250 seconds]
tzemanovic has quit [Ping timeout: 250 seconds]
ddellacosta has joined #nixos
lokado has quit [Quit: Connection closed for inactivity]
kisonecat has quit [Ping timeout: 250 seconds]
justanotheruser has quit [Ping timeout: 252 seconds]
Dedalo has joined #nixos
<infinisil> ,timer
<Ralith> does anyone know how to get a musl stdenv in nix-shell yet?
Church_ has quit [Ping timeout: 244 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
Aleksejs has quit [Ping timeout: 268 seconds]
stew_ has quit [Ping timeout: 268 seconds]
stew has joined #nixos
paulvictor has joined #nixos
Aleksejs has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
tzemanovic has joined #nixos
tzemanov_ has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
tzemanovic has quit [Ping timeout: 252 seconds]
tzemanov_ has quit [Ping timeout: 252 seconds]
lokado has joined #nixos
[rg] has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #52957 → check-esxi-hardware: 20161013 -> 20181001 → https://git.io/fhkJ1
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/fhkFU
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #52999 → virtmanager-qt: 0.60.88 -> 0.70.91 → https://git.io/fhkFZ
<{^_^}> [nixos-hardware] @yegortimoshenko merged pull request #88 → lenovo x1 carbon gen6: update S3 suspend → https://git.io/fhkXU
<{^_^}> [nixos-hardware] @yegortimoshenko pushed 2 commits to master: https://git.io/fhkFW
Makaveli7 has quit [Quit: Leaving]
endformationage has quit [Ping timeout: 244 seconds]
lawlesseel has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @andrew-d opened pull request #53000 → vala_0_38, vala_0_40, vala_0_42: add configuration to disable graphviz (to reduce closure size) → https://git.io/fhkbT
hamishmack has joined #nixos
[rg] has left #nixos ["WeeChat 2.3"]
<{^_^}> Channel nixos-18.09 advanced to https://github.com/NixOS/nixpkgs/commit/76aafbf4bf4 (from 17 hours ago, history: https://channels.nix.gsc.io/nixos-18.09)
hedning has quit [Quit: hedning]
lokado has quit [Quit: WeeChat 2.3]
filterfish has joined #nixos
filterfish has left #nixos [#nixos]
sir_guy_carleton has quit [Quit: WeeChat 2.2]
immae has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @FRidh merged pull request #52998 → kernel/patches.nix: remove hard tabs → https://git.io/fhk7t
<{^_^}> [nixpkgs] @FRidh pushed commit from @ivan to master « kernel/patches.nix: remove hard tabs »: https://git.io/fhkNL
tdbgamer has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
dermetfan1 has joined #nixos
miaoski_tw has joined #nixos
immae has joined #nixos
Makaveli7 has joined #nixos
hamishmack has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Remote host closed the connection]
periklis has joined #nixos
Synthetica has joined #nixos
niksnut has quit [Ping timeout: 250 seconds]
niksnut has joined #nixos
justanotheruser has joined #nixos
<{^_^}> [nix-pills] @workflow opened pull request #102 → Fix typo in Pill 13 → https://git.io/fhkAz
Makaveli7 has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
imdoor has joined #nixos
joepie91_ccc has joined #nixos
thc202 has joined #nixos
LysergicDreams has quit [Ping timeout: 246 seconds]
LysergicDreams has joined #nixos
Ariakenom_ has joined #nixos
Makaveli7 has joined #nixos
Tucky has quit [Quit: WeeChat 2.2]
robstr has joined #nixos
<robstr> Hi, trying to create a derivation for clustal https://gist.github.com/rsoeldner/b3a0b1160dd1176c515e68d831bf3d5e , there is a missing header file `argtable2.h` I found https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/argtable/default.nix but it is the wrong version, what is the way to handle this ?
hotfuzz_ has joined #nixos
hotfuzz has quit [Ping timeout: 268 seconds]
Tucky has joined #nixos
laerling has joined #nixos
juhe has joined #nixos
__monty__ has joined #nixos
<sphalerite> robstr: package the right version
<robstr> sphalerite: trying to do right now, https://gist.github.com/rsoeldner/9316559c0a36b45b4205555c3b36f30a but currently no argtable2 is build
miaoski_tw has quit [Quit: Connection closed for inactivity]
<robstr> sphalerite: should be possible to build argtable2 with cmake, can you help out a bit ?
ddellacosta has joined #nixos
ddellacosta has quit [Read error: Connection reset by peer]
<sphalerite> robstr: this works for me, the only change I made is to use fetchurl instead of builtins.fetchTarball
<sphalerite> with mirror URLs and adjusting the hashes as appropriate
miaoski_tw has joined #nixos
<robstr> sphalerite: thank you ... didn't know there is a difference between fetchurl and fetchTarball :P
<{^_^}> [nixpkgs] @delroth opened pull request #53002 → nginx-sso: init at 0.12.0 (+ nixos service/test) → https://git.io/fhkjT
<sphalerite> robstr: fetchurl is in nixpkgs and handles stuff like downloads from annoying websites like sourceforge, and generates derivations which are built (downloaded) at build time
<sphalerite> while builtins.fetchTarball runs before build time, and unpacks tarballs in addition to downloading them, and generates non-drv store paths
<sphalerite> builtins.fetchTarball isn't allowed in nixpkgs
<robstr> sphalerite: I see, thanks
iyzsong has joined #nixos
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon3 is now known as Mateon1
Makaveli7 has quit [Read error: Connection reset by peer]
Makaveli7 has joined #nixos
Ariakenom__ has joined #nixos
simukis has joined #nixos
Dedalo has joined #nixos
Ariakenom_ has quit [Ping timeout: 252 seconds]
slyfox has quit [Ping timeout: 272 seconds]
Notkea has joined #nixos
slyfox has joined #nixos
Ariakenom__ is now known as Ariakenom
morr has quit [Quit: WeeChat 2.3]
psy3497 has joined #nixos
<psy3497> Can anyone help me understand why xmobar(through xmonad) under NixOS does not find terminus font?
<psy3497> I have the terminus font under NixOS config's 'fonts.fonts'
<psy3497> And I can see terminus font under `fc-list`
<psy3497> And urxvt does use terminus font successfully.
<psy3497> But for some reason xmobar fails finding it and displays squares. If I don't specify any font it uses some default font and shows english letters just fine.
<psy3497> Also the same xmobar config (with terminus font) on debian works, so I know it's not a syntactical error in xmobar's config.
<psy3497> I also tried using `xfontsel` to make sure that the string passed as font to xmobar is correct.
jonaswouters has joined #nixos
vidbina has joined #nixos
<psy3497> I just realised it does find terminus.
<psy3497> If I pass a non-existent font it uses a default font. But in terminus case it displays squares so it does find the font. Just uses unexpected characters.
<psy3497> Perhaps something to do with locale configuration...
<jonaswouters> I'm trying to get vfio working, but I'm having trouble with using the integrated intel card. I've got 2 displays connected to it (hdmi + DP) but they are not correctly detected. When using my nvidia, both screens work without issues. With the intel driver, I'm getting a mirrored screen with a basic resolution. I've tried the "modesetting" driver but that results in xserver not starting. Any tips on where to look next?
<jonaswouters> this is not related to vfio yet though. Just giving a reason why I'm blocking the nvidia card.
<infinisil> psy3497: I doubt it's gonna help, but I can link you to how I specify fonts for xmobar: https://github.com/Infinisil/system/blob/master/config/new-modules/x/xmobar.nix#L8
morr has joined #nixos
<psy3497> infinisil: Thanks! Anything can help! I'll take a look
<jonaswouters> Coffee lake processor. 9th generation
<jonaswouters> *8th sorry
tzemanovic has joined #nixos
<manveru> jonaswouters: you use xrandr for config?
<jonaswouters> yes
<psy3497> infinisil: it did not work, but you have a very elaborate config! I'm gonna have a good time reading through it. Thanks!
<jonaswouters> manveru: it does not detect the screens when using intel
<manveru> is the intel card using the same outputs?
<manveru> something like optimus?
<jonaswouters> does not seem like it (it's a desktop, I think optimus is often used in laptops?)
<manveru> on desktop you'd have a separate card, no?
<manveru> or do you plug the monitors into the intel sockets?
<jonaswouters> yes the monitors are plugged in on the motherboard for the intel integrated graphics.
<jonaswouters> the nvidia is a separate card
<psy3497> Other fonts work fine for me, so it seems to be a problem with terminus-font. I'll try to use the package from nixos stable as I am currently on nixos unstable
<psy3497> But on the other hand urxvt displays terminus just fine...
fusion809 has quit [Remote host closed the connection]
laerling has quit [Ping timeout: 252 seconds]
dermetfan1 has quit [Ping timeout: 250 seconds]
laerling has joined #nixos
init_6 has joined #nixos
<psy3497> Anyone knows if it's possible to find out what commit ID my current nixpkgs is derived from?
<psy3497> Is it written inside nixpkgs or nixos repo?
dermetfan1 has joined #nixos
<psy3497> I'm guessing it isn't but it wouldn't hurt to ask.
rain2 has joined #nixos
rain1 has quit [Ping timeout: 245 seconds]
paulvictor has quit [Quit: WeeChat 2.3]
<jonaswouters> Manuveru: the lspci command tells me that there are no kernel modules loaded for the intel chipset. But i915 is available.
orivej has quit [Ping timeout: 272 seconds]
<ivan> psy3497: are you using a channel?
<ivan> nixos-version has an abbreviated git commit here
<psy3497> ivan: I am not using channels :(
<psy3497> I usually specify the revision in a nix expression.
<psy3497> But this time I used fetchTarball and took the latest.
<psy3497> It was 2 days ago, so I'm gonna look at the github repo and try to guess which one it was.
<{^_^}> [nixpkgs] @timokau opened pull request #53005 → fflas-ffpack: add patch to fix flaky test → https://git.io/fhIfA
<{^_^}> [nixpkgs] @timokau opened pull request #53006 → fflas-ffpack: add patch to fix flaky test → https://git.io/fhIfx
ddellacosta has joined #nixos
dermetfan1 has quit [Ping timeout: 250 seconds]
ddellacosta has quit [Ping timeout: 240 seconds]
vidbina has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @timokau merged pull request #52767 → Fix vim-plugin dependencies → https://git.io/fhUnS
<{^_^}> [nixpkgs] @timokau pushed 9 commits to master: https://git.io/fhIJR
vidbina has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #53006 → fflas-ffpack: add patch to fix flaky test → https://git.io/fhIfx
<{^_^}> [nixpkgs] @timokau pushed to release-18.09 « fflas-ffpack: add patch to fix flaky test (#53006) »: https://git.io/fhIJg
vidbina has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @rsoeldner opened pull request #53007 → argtable: init at 2.13 → https://git.io/fhIJK
vidbina has joined #nixos
<{^_^}> [nixpkgs] @nyanloutre opened pull request #53008 → obs-studio: apply fix for fdk-aac v2.0.0 → https://git.io/fhIJP
vidbina has quit [Ping timeout: 250 seconds]
vidbina has joined #nixos
<{^_^}> [nixpkgs] @timokau merged pull request #53005 → fflas-ffpack: add patch to fix flaky test → https://git.io/fhIfA
<{^_^}> [nixpkgs] @timokau pushed to master « fflas-ffpack: add patch to fix flaky test (#53005) »: https://git.io/fhIJh
robstr has quit [Ping timeout: 256 seconds]
orbekk has joined #nixos
<jonaswouters> manveru:
<jonaswouters> manveru: fixed it by upgrading kernel :)
laerling_ has joined #nixos
laerling has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @makefu opened pull request #53009 → mupdf: fix CVE-2018-18662 → https://git.io/fhIUC
vidbina has quit [Ping timeout: 240 seconds]
ottidmes has joined #nixos
das_j has joined #nixos
<das_j> Hey, is switching to the small channel worth it? Like how much faster does it update?
laerling_ has quit [Quit: Leaving]
b has joined #nixos
<psy3497> It seems that nix-collect-garbage -d deletes .drv files. Is there a setting so that I never delete drv files?
<obadz> psy3497: out of curiosity, why would you care to keep them?
Anton-Latukha has joined #nixos
<psy3497> Sometimes I upgrade an application and it's broken. I don't want just to rollback and go on in life, I'd like to compare the derivations and see what changed.
<psy3497> For that I need my previous version .drv to still be there. Of course If I check immediately after upgrading, it's still there.
<psy3497> But sometimes it's broken in a more subtle way and I only find it out a couple of days after upgrading.
<obadz> isn't it nicer to rollback the nix files in this case?
<obadz> and invoke nix-instantiate on the previous nix files to recreate the old drvs?
<obadz> when I observe a regression in general I git bisect nixpkgs..
<symphorien> if you still have the output, you can use nix-store --query --deriver iirc
<psy3497> symphorien: it shows me the derivation file path, but it does not help me if it does not exist anymore. Or am I missing something?
imdoor has quit [Quit: imdoor]
<symphorien> hum possible, even though it has never happened to me
frigate_freedom has joined #nixos
juhe has quit [Remote host closed the connection]
frigate_freedom has left #nixos [#nixos]
wucke13 has joined #nixos
ambro718 has joined #nixos
<wucke13> For a pkgs, what is the prefered way of creating a simple start script?
lokado has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #52994 → iverilog: 2017.08.12 -> 2018.12.15 → https://git.io/fhk1Q
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @andrey-komarov to master « iverilog: 2017.08.12 -> 2018.12.15 »: https://git.io/fhIkC
<psy3497> I think I've given up. Can't get terminus to display correctly with xmobar...
<psy3497> Looking at debian, there are a lot more terminus-related files in /usr/share/fonts/X11/misc, compared to the Nix package, but it's too complicated for me to understand why there's a difference.
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « cockroachdb: 2.1.1 -> 2.1.3 »: https://git.io/fhIIC
hotfuzz_ is now known as hotfuzz
vidbina has joined #nixos
sigmundv_ has joined #nixos
Makaveli7 has quit [Quit: Leaving]
<manveru> jonaswouters: cool :)
hedning has joined #nixos
<ottidmes> psy3497: you did have fonts.enableFontDir = true; ?
ryantrinkle has quit [Ping timeout: 250 seconds]
<ottidmes> wucke13: when that package is part of a NixOS module, you generally use a systemd service
<wucke13> ottidmes: No, its just a simple package. But as it is a nwjs app, it must be started via a `nw $out/fold-to-my-app`.
<wucke13> So I want to have a neat way of creating this oneliner script in `$out/bin/`, that simply launches nwjs in the givens application directory
<exarkun1> https://nixos.wiki/wiki/NixOS_on_ARM/QEMU is great for armv7l. But anyone know how to boot an armv6l nix image w/ QEMU? AFAICT these instructions aren't applicable because "virt" is a 64 bit machine and armv6l is a 32 bit architecture. Also, QEMU gets mad about all of the AHCI stuff because I-don't-know-why.
iyzsong has quit [Ping timeout: 250 seconds]
jtojnar has joined #nixos
civodul has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyounkins has joined #nixos
Ariakenom has quit [Ping timeout: 252 seconds]
kisonecat has joined #nixos
<{^_^}> [nixpkgs] @osmano807 opened pull request #53010 → picoLisp 16.12 -> 18.12 → https://git.io/fhImq
cyounkins has quit [Ping timeout: 240 seconds]
b has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @volth opened pull request #53011 → perlPackages: cpan2nix updates → https://git.io/fhImG
<{^_^}> [nixpkgs] @volth closed pull request #52504 → perlPackages: cpan2nix updates → https://git.io/fph2B
ddellacosta has joined #nixos
<ottidmes> wucke13: then if it is just a small script I would use a heredoc, if it is a bigger file but static, I would just add it to the package folder and copy it over: cp ${./script.sh} $out/bin/script.sh, and if it contains dynamic stuff you could use substituteAll instead
<ottidmes> wucke13: if substituteAll is not a good fit, another way would be to first copy and then use substituteInPlace (the shell function provided in the build environment) or sed -i for more complex stuff
<ottidmes> got to go now, good luck!
ddellacosta has quit [Ping timeout: 244 seconds]
<kisonecat> How might I ignore the exit code in patchPhase?
psy3497 has quit [Quit: WeeChat 1.9.1]
<exarkun1> kisonecat: x || true
<{^_^}> [nixpkgs] @Anton-Latukha opened pull request #53012 → Couple of media conteiner descriptions → https://git.io/fhIYE
b has joined #nixos
<das_j> kisonecat: Probably `set +e` at the beginning
<duairc> I remember seeing a function somewhere that converts lists of {name=,value=} sets into sets, does anyone know what it's called?
<ottidmes> duairc: listToAttrs
<das_j> duairc: listToAttrs
<das_j> well...
<ottidmes> > builtins.listToAttrs [ { name = "foo"; value = 5; } { name = "bar"; value = 10; } ]
<{^_^}> { bar = 10; foo = 5; }
<duairc> ottidmes: das_j: Thanks! Don't know how I didn't see it.
periklis has quit [Ping timeout: 250 seconds]
kisonecat has quit [Ping timeout: 250 seconds]
orivej has joined #nixos
freeman42x[nix] has joined #nixos
<wucke13> ottidmes: Then I'm going to go for heredoc. How would you recommend to do the shebang?
<hyper_ch2> !shebang > wucke13
<hyper_ch2> oh... not #bash channel :9
<wucke13> How does that work? hyper_ch2
<delroth> #!${stdenv.shell} seems like a common way of doing it in nixpkgs
<delroth> if that's your question
<hyper_ch2> wucke13: I thought I was in #bash
<hyper_ch2> and !shebang points there ot use #!/usr/bin/env bash
<hyper_ch2> but that's not applicable for nixos
<wucke13> Thanks a lot, that works fine hyper_ch2 delroth
<wucke13> Ok, one last question regarding that package. The source does not come with a .desktop file. How would I go about creating one in nix?
<sphalerite> there's a makeDesktopItem function in nixpkgs which results in a derivation containing a desktop file in $out/share/applications
kisonecat has joined #nixos
<wucke13> sphalerite: Can you point me to an example where that is used in a pkg build?
<sphalerite> ,find flightgear/default.nix
<sphalerite> wucke13: ^
<wucke13> A thanks!
jonaswouters has quit [Quit: Connection closed for inactivity]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/7dae9a4ddd2 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
mmlb has joined #nixos
dermetfan1 has joined #nixos
<exarkun1> https://nixos.wiki/wiki/NixOS_on_ARM/QEMU is great for armv7l. But anyone know how to boot an armv6l nix image w/ QEMU? AFAICT these instructions aren't applicable because "virt" is a 64 bit machine and armv6l is a 32 bit architecture. Also, QEMU gets mad about all of the AHCI stuff because I-don't-know-why.
endformationage has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @wucke13 opened pull request #53013 → betaflight-configurator: init at 10.4.0 → https://git.io/fhIsa
sidpatil has joined #nixos
sidpatil has left #nixos [#nixos]
<{^_^}> [nixpkgs] @CrazedProgrammer opened pull request #53014 → urn: 0.7.1 -> 0.7.2 → https://git.io/fhIsQ
Tucky has quit [Quit: WeeChat 2.2]
ashkitten has quit [Quit: WeeChat 2.2]
<ldlework> Are there any better instructions for steam on nixos than this? https://nixos.wiki/wiki/Steam
<wucke13> What exactly are you looking for? ldlework
<ldlework> Well, I installed the steam package but don't have any steam executable I can see.
<simpson> ldlework: Those instructions are pretty decent. Maybe we should have a game list ala WineHQ since so many games seem to be picky on a per-game basis.
<ldlework> OK well I'm not sure where I went wrong then.
<wucke13> ldlework: What happens if you start a new terminal and enter `steam`?
<ldlework> steam: command not found
<wucke13> How did you install steam?
<ldlework> nix-env -iA nixos.steam
<{^_^}> [nixpkgs] @CrazedProgrammer opened pull request #53015 → [18.09] urn: 0.7.1 -> 0.7.2 → https://git.io/fhIGU
<wucke13> What does `nix-env -q steam` output?
vidbina has quit [Ping timeout: 244 seconds]
<ldlework> sorry what I said before was a red-herring
<BlessJah> gchristensen: another case of channel going back in time: nixos-18.09-small at 18.09.1814.33000fe7cab while nixos-18.09 was at 18.09.1819.76aafbf4bf4
cyounkins has joined #nixos
<palo> where can I find this mysterious sd-image-armv7l-linux.img the wiki is talking about https://nixos.wiki/wiki/NixOS_on_ARM ?
<ldlework> wucke13: when I use an unstable overlay for the steam package, nixos-rebuild complains that it is an unfree package - but I have nixpkgs.config.allowUnfree = true; in my config
<wucke13> ldlework: `cat ~/.config/nixpkgs/config.nix` You should enable unfree packages for the user environment there?
<wucke13> Enabling unfree in the system configuration does not enable it for the user
<ldlework> Sure, but I'd like to just put it into my config anyway
<ldlework> I added steam to systemPackages
marsam has joined #nixos
<simpson> ldlework: Huh, it appears to be grabbing no-longer-stored DEB packages from Valve's repo. Maybe something in the Steam derivation is outdated?
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
<exarkun1> Okay. Peeked inside the armv6l image, stole the init args from the extlinux.conf, passed those to qemu, got it to boot. Wonder why qemu failed to do that itself. Maybe it doesn't understand extlinux... or I just failed to find the right flags to tell it to do that.
<ldlework> simpson: sure but when I then use a more recent version of nixpkgs the rebuild complains that I don't have unfree packages enabled but I definitely do
<exarkun1> this will be annoying since the proper args will change a bunch ... oh well.
<ldlework> config = mkIf config.mine.workstation.steam.enable { nixpkgs.config.allowUnfree = true; environment.systemPackages = [ pkgs.unstable.steam ]; };
<ldlework> error: Package ‘steam’ in /nix/store/cf7f6mkss8xnd7q3in9k792vxqa6h1l5-source/pkgs/games/steam/steam.nix:33 has an unfree license (‘unfreeRedistributable’), refusing to evaluate.
<ldlework> oh!
<ldlework> I'm enabling unfree on the stable nixpkgs
<ldlework> then installing the unstable one
<ldlework> heh
vidbina has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
<ldlework> simpson: but yeah looks like the normal 19.03 one is referring to stuff that doesn't exist anymore
ryantrinkle has joined #nixos
<arianvp> euhmmm
marsam has quit [Remote host closed the connection]
delroth has quit [Quit: WeeChat 2.3]
ashkitten has joined #nixos
delroth has joined #nixos
ashkitten has quit [Client Quit]
kisonecat has quit [Ping timeout: 250 seconds]
ma9e has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
hotfuzz has quit [Ping timeout: 244 seconds]
hotfuzz has joined #nixos
<{^_^}> [nixpkgs] @jtojnar opened pull request #53016 → gnome3.gvfs: Add TLS support → https://git.io/fhIno
vidbina has quit [Ping timeout: 250 seconds]
klntsky has joined #nixos
vidbina has joined #nixos
kyren has joined #nixos
vidbina has quit [Ping timeout: 252 seconds]
dermetfan1 has quit [Ping timeout: 245 seconds]
<samueldr> BlessJah: there are no guarantees that *-small channels will update in step with not *-small and vice versa; here you see different evaluations having successfully finished
<samueldr> *-small will eval then update quicker than the non-small equivalent since they do not wait for everything to finish
klntsky has quit [Remote host closed the connection]
vidbina has joined #nixos
sanscoeur has joined #nixos
<samueldr> exarkun1: I belive you're right that qemu doesn't handle extlinux.conf; our ARM images all use u-boot to then boot the kernel (allowing to choose a generation)
klntsky has joined #nixos
niksnut has quit [Remote host closed the connection]
<exarkun1> crud and the kernel I got doesn't have user ns enabled so builds don't actually work.
<samueldr> exarkun1: I did something you could get inspiration from for armv7l: add the .img as a loopdevice, mount the FAT32 partition, and then in there you should see the kernel + initrd you can copy and use
<samueldr> (I automated nothing though :/)
<Church-> Hey folks
kisonecat has joined #nixos
<Church-> Heya samueldr
<exarkun1> samueldr: I managed to get something fairly automatic working for armv7l (by copy/pasting stuff from the internet, I don't really know what any of it means)
klntsky has quit [Client Quit]
<samueldr> can you gist them?
<samueldr> (I had another solution, the copying files was temporary for me)
klntsky has joined #nixos
<Church-> What's the sitch?
<samueldr> (I have a WIP fork for armv7l which builds uefi-bootable isos and images with grub)
<samueldr> (qemu likes those)
<Church-> Nixos on armv7?
<exarkun1> https://gist.github.com/exarkun/b696ba562054a23e43b69f0323cbdc88 is the command I use to boot my armv7l qemu nixos
<samueldr> there's even nixos on aarch64 Church-
<Church-> Okay that's cool
<Church-> Time to put nixos on my pixel
<Church-> And not have a phone anymore
<samueldr> Church-: that won't really work
<exarkun1> like I said I have no idea how/why it works, but I don't have to know about the kernel/initrd outside of the vm to be able to start it up
<samueldr> exarkun1: ah, right, but that doesn't work on qemu-kvm for aarch64 (but uefi booting does)
<samueldr> I lost the use of the phone I was using to develop that
<samueldr> the battery has gone rogue
<samueldr> so I'm 100% stuck
klntsky has quit [Client Quit]
lucus16 has quit [Quit: lucus16]
obfusk has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<samueldr> but if I could get my hands on an actually-running-aarch64 recent unlockable phone with kernel sources I could probably start it up again
<exarkun1> hmm I copied the kernel and initrd out of the running system (since I was able to boot it with a different kernel) and told qemu-system-arm about those ... and it fails to boot :L(
kisonecat has quit [Ping timeout: 240 seconds]
<samueldr> my current phone has an aarch64 CPU, but the folks at motorola thought it would be a good idea to run armv7l instead :(
<samueldr> and the aarch64 build of the kernel can't see some hardware
<samueldr> though it boots an initrd with graphical output and usb networking working
<Church-> samueldr: Just grab a og pixel
<Church-> It's aarch64
<samueldr> Church-: "just"
<Church-> Still runs beautifully after three years
<samueldr> I'd have to track one down, and I really hate used things, it's almost a compulsion
<Church-> samueldr: Amazon it's $200~ for a cert refurbed
<samueldr> right, maybe where you live :)
pie__ has joined #nixos
<Church-> Not US I assume?
<samueldr> not us
<samueldr> my real solution right now is I think to get a bench power supply to supply power to my existing known-good device
<Church-> Aye
<Church-> Oh cool, borrowing from postmarket
<samueldr> pixel is a good idea, but there are so many unknowns, I *know* for a fact that the bootloader is way different, and there are many assumptions that won't hold du to treble
pie__ has quit [Remote host closed the connection]
<Church-> Did some work on that project
pie__ has joined #nixos
<Church-> Fair enough. Was just a unlocked aarch64 device
<samueldr> initially, but I found out when porting for addison that there's few bits left of actually borrowable things :(
<samueldr> Church-: nah, that's a fair suggestion, but turns out those devices are not made to run third-party OS :)
<samueldr> so the fewer unknowns the easier it will be
<Church-> Yeah sadly
<samueldr> OH, right, one important part is I kinda need SD card support
<samueldr> because playing with the partition is extremely spooky since there is no official way to re-partition most devices if you somehow break them
<samueldr> I *think* xiaomi has a windows utility for their phones; which apparently works for phones with the same CPUs with modified files, but that's something I cannot really explore
klntsky has joined #nixos
<samueldr> Church-: documented here https://github.com/samueldr/mobile-nixos/blob/master/doc/partitions.md#partitions what I had found at the time
<Church-> Hmm good point on the SD card
<Church-> And it won't work on my pixel anyway
<samueldr> why?
tdbgamer has joined #nixos
lawlesseel has joined #nixos
pie__ has quit [Ping timeout: 245 seconds]
<Church-> samueldr: OG Pixel panics under postmarket
<samueldr> eh, I do a bunch of things differently than postmarket, (and I'm not to the point of having stage-2)
<samueldr> are their build using mainline?
<samueldr> they try hard to use mainline or forks trying to mainline instead of going with the downstream OEM kernels, which I found to be working adequately
<tolt> Is there a way to set a different shell option in my nix config file?
<samueldr> (but would prefer mainline!)
schopp0r has joined #nixos
<schopp0r> hi. is there a possibility to get a shell after the build of a nix-shell failed? some configure script fails to detect M4, and I want to check whether the $PATH is set correctly
Ryan has joined #nixos
Ryan is now known as Guest68420
Guest68420 has quit [Client Quit]
<schopp0r> currently I added an instruction to write $PATH to some /tmp-file in preConfigure, but that takes a lot of time
<BlessJah> samueldr: I observe phenomenon from quite some time, some channel updates are actually downdates(?)
<samueldr> any in the past month or so?
<samueldr> and not across different channels
<samueldr> BlessJah: because yes there was that issue, but I think it was fixed finally (the fix was a bit older, but if memory serves, it was pushed way after being merged)
vidbina has quit [Ping timeout: 250 seconds]
tzemanovic has quit [Read error: No route to host]
tzemanov_ has joined #nixos
<BlessJah> it's first time in a while
<samueldr> yeah, though this time that's not one, it'd have to be release-18.09 only, or release-18.09-small only; the way channels are made, they are independent; when they end up on the same commit, it's mostly luck, or lack of activity
vidbina has joined #nixos
kisonecat has joined #nixos
dermetfan1 has joined #nixos
zukaboo has joined #nixos
ryantrinkle has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #52918 → qogir-theme: init at 2018-11-12 → https://git.io/fhTBJ
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @romildo to master « qogir-theme: init at 2018-11-12 (#52918) »: https://git.io/fhIl0
kisonecat has quit [Ping timeout: 246 seconds]
<georgyo> I have been debugging this error message too long. I can't seem to get to the bottom of it.
<georgyo> All my builds from show that error message, but the pages that link to them work just fine
<georgyo> Would anyone have some insight on why that page is broken. It has been broken for several months. I hoped switching to 18.09 would help, but it did not.
aanderse has quit [Ping timeout: 264 seconds]
ryantrinkle has joined #nixos
<schopp0r> lol. this thing is building when I add a preConfigure that just saves $PATH somewhere …
Ariakenom has joined #nixos
kisonecat has joined #nixos
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
ddellacosta has joined #nixos
<Laalf> can someone with hybrid graphics send me their config?
niksnut has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Profpatsch merged pull request #52824 → pythonPackages.update-copyright: init at 0.6.2 → https://git.io/fhUQO
<{^_^}> [nixpkgs] @Profpatsch pushed to master « pythonPackages.update-copyright: init at 0.6.2 »: https://git.io/fhI4V
ma9e has quit [Quit: Lost terminal]
JosW has joined #nixos
b has quit [Quit: Lost terminal]
pie__ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1c8fea18e26 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
kisonecat has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #52443 → libaom: create shared libraries, fix version reported in aom.pc → https://git.io/fpANc
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to master: https://git.io/fhIBi
<zukaboo> `loginLimits` does not work and I have no idea why.
<{^_^}> [nixpkgs] @dtzWill opened pull request #53017 → strace: 4.25 -> 4.26 → https://git.io/fhIBF
vidbina has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #53018 → zstd: 1.3.7 -> 1.3.8 → https://git.io/fhIRU
erictapen has joined #nixos
erictapen has quit [Client Quit]
erictapen has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #53019 → wget: 1.20 -> 1.20.1 → https://git.io/fhIRq
ma9e has joined #nixos
Ariakenom has quit [Ping timeout: 252 seconds]
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa> Hello! I am trying to build Emacs with Imagemagick support. I see that imagemagick is a buildinput to the default recipe, but imagemagick functions are not bound.
<selfsymmetric-pa> From scratch I'd compile using `--with-imagemagick`
<selfsymmetric-pa> However this does not work: `emacs-unstable = unstablePkgs.emacs.override{ withXwidgets = true; withImagemagick = true; };`
<selfsymmetric-pa> It seems like `withXwidgets` and `withImagemagick` are different sorts of things.
<tilpner> Well, yes :)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f2c99c61cff (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tilpner> withXwidgets is defined in the argument set, withImagemagick is not
<tilpner> You can try .overrideAttrs (old: { configureFlags = old.configureFlags ++ [ "--with-imagemagick" ]; }) if you think just passing that flag has any chance of helping
<tilpner> Note that imagemagick is not included by the expression if you're on darwin
pie__ is now known as [redacted]
[redacted] is now known as pie__
travelion has quit [Ping timeout: 250 seconds]
alex`` has joined #nixos
sigmundv_ has quit [Ping timeout: 244 seconds]
pie__ has quit [Ping timeout: 252 seconds]
pie_ has joined #nixos
<ottidmes> zukaboo: just in case that is your problem, know that * excludes root, so if you want to set the values for everything you have to do so for both * and root seperately
<ottidmes> zukaboo: and /etc/security/limits.conf does not exist for me either, but it does work for me
ashkitten has joined #nixos
<zukaboo> How do I check whether it works?
ashkitten has quit [Client Quit]
<ottidmes> zukaboo: in my case I had an application that ran into issues if I had not configured it, do you have such a test case?
Anton-Latukha has quit [Ping timeout: 244 seconds]
Ridout has joined #nixos
<zukaboo> There seems to be realtime issues with jack2.
<ottidmes> zukaboo: BTW I just checked, limits.conf is just located in the Nix store and specified explicitly in pam.nix
ashkitten has joined #nixos
<ottidmes> zukaboo: is the domain correct then? would you not need to configure jack2 user/group rather than the audio users (like yourself)?
Anton-Latukha has joined #nixos
<zukaboo> ...but maybe it actually works and the problem is different
<zukaboo> > Cannot lock down 82280346 byte memory area (Cannot allocate memory)
<{^_^}> undefined variable 'Cannot' at (string):214:1
<zukaboo> Like this one.
erictapen has quit [Ping timeout: 250 seconds]
<ottidmes> zukaboo: https://wiki.archlinux.org/index.php/JACK_Audio_Connection_Kit#%22Cannot_lock_down_memory_area_(Cannot_allocate_memory)%22_message_on_startup
Church_ has joined #nixos
<ottidmes> (not sure if that solution also applies to NixOS though)
<zukaboo> It says to configure /etc/security/limits.conf...
ashkitten has quit [Quit: WeeChat 2.2]
<zukaboo> The user is in @audio, but memlock doesn't work.
ashkitten has joined #nixos
<palo> samueldr: thank you
<ottidmes> zukaboo: this might be it, if it is run through systemd then it is ignored: https://bugzilla.redhat.com/show_bug.cgi?id=754285
<palo> but it looks that uboot are already available in the pkgs.
<palo> sweet sweet
<samueldr> palo: what do you mean?
<zukaboo> I'll try to replace `*` with `-`.
zukaboo has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
ajs124 has quit [Quit: Gateway shutdown]
<{^_^}> [nixpkgs] @samueldr pushed commit from @r-ryantm to release-18.09 « matomo: 3.6.1 -> 3.7.0 »: https://git.io/fhI0p
Ariakenom has joined #nixos
<Church_> Okay... what was I going to do later.
<Church_> samueldr: Was I going to show you something? Feel like I was?
ajs124 has joined #nixos
<samueldr> Church-: no idea, I don't think so
<samueldr> last we spoke was about linux on android devices :)
<Church_> I feel like there was something before that...
<Church_> samueldr: Oh is there a linter for .nix files?
<Church_> Or a formatter?
erictapen has joined #nixos
<Church_> Wanna make sure my lobsters.nix file looks pretty before I shoot it off as a PR
<samueldr> AFAIK there's no canonical linter nor formatter
<simpson> Church_: There's https://github.com/Synthetica9/nix-linter but I haven't had a chance to give it a test drive.
<ottidmes> Church_: also hnix can be used as a formatter, but it does not support comments
<Church_> That's fine.
<samueldr> but I think the recent hnix and jD91mZM2 rnix can be used as formatters
<Church_> No comments.
<samueldr> ottidmes: hm, I thought there was comments support added recently *checks*
jomik has joined #nixos
<Synthetica> Comments in hnix? Hype!
<Church_> We should create a formatter.
justanotheruser has quit [Quit: WeeChat 2.2]
<samueldr> or maybe I'm confusing it with a WIP thing?
<Synthetica> If hnix supports comments, a formatter is trivial
<Church_> I feel like that's mandatory now a days.
<samueldr> Church-: sure, do it then :)
<Church_> Python, Go, Rust, etc have them
<Church_> samueldr: Heheheheh
<Church_> I just might.
zukaboo has joined #nixos
<ottidmes> Church_: this is how I use it to format my Nix code: hnix --eval --strict --expr "$nix_expr" 2>/dev/null || echo "$nix_expr"
<palo> samueldr: pkgs.ubootRaspberryPi3_64bit this is what I mea n
<Church_> I do like compiler design
<samueldr> and then hold your hat for the bikeshedding
<zukaboo> Yes, using `-` instead of `*` solves the issue.
<Synthetica> samueldr: I did see the issue, but I didn't see that it was actually implemented
<samueldr> palo: use aarch64 for raspberry pi 3, if you can
<samueldr> palo: you'll be able to use the binary cache
<Church_> samueldr: Oh no doubt.
<Synthetica> (I should honestly switch nix-linter up to use hnix from master, so many improvements since the last release)
justanotheruser has joined #nixos
<palo> samueldr: yes the one uboot for aarch64 should also exist in the pkgs
<ottidmes> zukaboo: great to hear, do not forget to document / PR it, because it seems useful to others as well!
ashkitten has quit [Quit: WeeChat 2.2]
<infinisil> Discussion for hnix comments: https://github.com/haskell-nix/hnix/issues/57
<samueldr> palo: https://hydra.nixos.org/build/85927294 check the "Help" button under "Actions" in the "Build products" section
<{^_^}> hnix#57 (by Profpatsch, 1 year ago, open): Comment constructor
ashkitten has joined #nixos
<Profpatsch> infinisil: I have been summoned!
<samueldr> (it could also be done using nix-store --realise and the same path)
<infinisil> :P
<Profpatsch> infinisil: It’s a frequent comment. I kinda have the opinion that languages should add comments to their AST.
<Profpatsch> s/comment/problem/
<infinisil> Profpatsch: I think both variants should be possible
simukis has quit [Ping timeout: 250 seconds]
<palo> yes
<samueldr> it all depends on what you want to do with them :/
<infinisil> AST only if you need speed, with comments if you need an iso
<Profpatsch> infinisil: But in a “comments can go wherever” setting you can’t have both.
<Profpatsch> As I discuss in the issue.
simukis has joined #nixos
<infinisil> Profpatsch: Wouldn't having (AST, Comments) as the result of parsing allow for that?
<infinisil> Having comments completely separate from the AST doesn't constrain it in any way
<infinisil> I should probably post this as a comment there
erictapen has quit [Ping timeout: 250 seconds]
<Synthetica> infinisil: How do you imagine doing that?
erictapen has joined #nixos
<infinisil> Synthetica: Every parser would just return (<AST part>, Comments), and propagate the comment bits
<Church_> Hey if I write a script to a service cfg via pkgs.writeText/writeScript. Can I call it in a systemd service's ExecStart via just ${cfg.scriptName}
<infinisil> Synthetica: And Comments is just a list (or so) of comment segments with location information, [] by default
init_6 has quit []
mr_noobs has quit [Quit: ZNC 1.7.1 - https://znc.in]
<ottidmes> infinisil: I am doing my first ZFS setup for root, looking at your config, you seem to use mountpoint=legacy, what is the benefit of doing so? Or is it not even optional in NixOS when using it as your root?
<infinisil> ottidmes: Yeah it's got something to do with filesystem ordering
<ghostyy> where do i put files in nixos that arent home files nor generated by nixos
<ghostyy> i have a slim display manager theme
<infinisil> ottidmes: There's some issue about it, in nixpkgs and zfs
<{^_^}> zfsonlinux/zfs#7329 (by aerusso, 40 weeks ago, merged): systemd.mount integration
emily has quit [Quit: leaving]
<Synthetica> infinisil: This looks promsising: https://www.oilshell.org/blog/2017/02/11.html
ddellacosta has joined #nixos
<ottidmes> infinisil: ok thanks for the pointer, I will be using mountpoint=legacy to let it play nicely with the rest
<infinisil> Synthetica: That does indeed look promising
<selfsymmetric-pa> tilpner: Thanks! I've just decided to do without imagemagick, rather than try to hack it in.
<Synthetica> Could probably store that in the Annotation of an NExprLoc
<ottidmes> infinisil: this is how I plan to create it, any thing I might be missing: zpool create -o ashift=12 -o altroot=/mnt -O atime=off -O compression=lz4 ${cfg.poolName} $root_dev
ddellacosta has quit [Ping timeout: 240 seconds]
<infinisil> Synthetica: Hold on, let's go to #nix-lang or hnix gitter
<Church_> Ah good old oil shell
erictapen has quit [Ping timeout: 268 seconds]
<Synthetica> infinisil: I'll join nix-lang
<infinisil> ottidmes: altroot isn't needed, and you only want atime=off on the nix store, other than that looks good to me
<ottidmes> infinisil: ok thanks!
Xyliton has joined #nixos
<Xyliton> What package can I find the ADB binary in?
<Church_> ,locate adb
<{^_^}> Found in packages: axis2, oh-my-zsh, androidndk, metasploit, metasploit, bashCompletion, python27Packages.pwntools, python27Packages.pwntools
<samueldr> (this output is not "right")
<samueldr> Xyliton: you probably want to enable the `programs.adb.enable` option
<Church_> Heh I wonder how many tools we have from kali
<samueldr> >> Whether to configure system to use Android Debug Bridge (adb). To grant access to a user, it must be part of adbusers group: users.users.alice.extraGroups = ["adbusers"];
<infinisil> ,locate bin adb
<Xyliton> oh, it is an option
<{^_^}> Found in packages: adbfs-rootless
<samueldr> Xyliton: otherwise you wouldn't have the udev rules setup right
<samueldr> infinisil: still not right :)
<samueldr> it's part of a non-recursed-into attrset
<infinisil> I see
<samueldr> > pkgs.androidenv.platformTools
<{^_^}> attribute 'platformTools' missing, at (string):214:1
<samueldr> > pkgs.androidenv.androidPkgs_9_0.platform-tools
<samueldr> (it seemingly changed between 18.09 and current master)
<ghostyy> will anything bad happen if i dont have a filesystems.* defined? i have a manual shell script in bootpostcommands that does the mounting, i just want to know if nixos will try to do anything "clever" like notice that i have supportedFilesystems set to ["zfs"] and think it doesnt need to load the zfs module or something
pie__ has joined #nixos
<Xyliton> >>You must accept the Android Software Development Kit License Agreement at
<Xyliton> by setting nixpkgs config option 'android_sdk.accept_license = true;'
<Xyliton> what a meme
pie_ has quit [Ping timeout: 252 seconds]
erictapen has joined #nixos
<Xyliton> great, that doesn't even work
<Xyliton> samueldr: do you happen to know _where_ I should set this option?
<samueldr> your nixos configuration
<samueldr> oh sorry, no
<samueldr> I didn'T read the previous lines
<samueldr> I assumed you were talking about the nixos option
<Xyliton> I mean the nixpkgs one
<samueldr> Xyliton: no idea, on 18.09 it just works :/
<Xyliton> huh
<Xyliton> doing `nixpkgs.android_sdk.accept_license = true;` in my configuration.nix errors claiming that `nixpkgs.android_sdk` doesn't exist FML
zukaboo has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<samueldr> what the heck, this was apparently backported to 18.09, my system should have it, but I didn't have to do anything?
selfsymmetric-pa has quit [Remote host closed the connection]
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
_giskard has joined #nixos
<Profpatsch> infinisil: Sorry, was offline.
<tilpner> Xyliton: If anything, it's nixpkgs-config.android_sdk...
<infinisil> Profpatsch: We're in #nix-lang
<tilpner> Uhh, nixpkgs.config.android...
<Profpatsch> { abc/*comment*/def = bla; } is perfectly valid nix code
<Profpatsch> Okay, forget that, it isn’t
<Profpatsch> but abcd/*foo*/ = bar; is
<Xyliton> tilpner: Thanks a lot, that fixed it!
<infinisil> Profpatsch: #nix-lang!
kisik21 has quit [Ping timeout: 245 seconds]
<Profpatsch> infinisil: Meh, don’t want to join that channel
<Profpatsch> I believe I’ve said everything in the issue already.
<infinisil> ??
<infinisil> No idea what's your problem
<Profpatsch> But I’d like people to work out an 80% solution.
<Profpatsch> infinisil: No problem, just don’t want to join yet another channel for an issue I have only tangential interest in at the moment.
<infinisil> Alright then, but if you do want to discuss this (and you seem to?) then I'm doing it there
<Profpatsch> I mean the result of the discussion is hopefully going to land in the Github issue anyway.
kisik21 has joined #nixos
<Profpatsch> Nope, not really. :P
<Profpatsch> As I said, I think everything I have to contribute to that discussion is already in the issue anyway.
<Profpatsch> But I know there’s an 80% solution that could work well enough, just no idea how that would look like.
<samueldr> oh, Xyliton, the platform tools do not require that license thing, it's the only thing I'm using from androidenv, this explains why I didn't have to enable anything
johnnyfive has quit [Quit: I go now.]
<samueldr> and adding `nixpkgs.config.android_sdk.accept_license = true;` works for `androidenv.androidsdk_latest` which triggers the warning... ONLY if installed as a system package
<samueldr> same caveats apply as with allowUnfree
<Xyliton> samueldr: Ohh
<Xyliton> that kinda makes sense
<samueldr> (though there's no "temporary allowing")
<infinisil> Profpatsch: All right :P
<{^_^}> [nixpkgs] @adisbladis opened pull request #53022 → fish: 2.7.1 -> 3.0.0 → https://git.io/fhIzb
vidbina has joined #nixos
nDuff has joined #nixos
<nDuff> What's the bar for folks getting access to review/merge PRs in nixpkgs?
<nDuff> There's a pretty significant backlog, and my impression is that even reviewing only simple PRs would be helpful.
<adisbladis> nDuff: There has been some discussion here: https://github.com/NixOS/nixpkgs/issues/50105
<{^_^}> #50105 (by Infinisil, 6 weeks ago, open): New nixpkgs committers requirements/process
<adisbladis> nDuff: You can start by joining #nixos-dev
waif has quit [Ping timeout: 250 seconds]
erictapen has quit [Ping timeout: 240 seconds]
waif has joined #nixos
vidbina has quit [Ping timeout: 252 seconds]
<nDuff> Heh -- reading that ticket is useful. I didn't know about nixbot, despite being listed as a package maintainer. :)
bagus has joined #nixos
<infinisil> That nixbot hasn't been working for a while now, not sure why. Meanwhile my* IRC bot here is also called nixbot :P https://github.com/infinisil/nixbot
shabius has quit [Quit: Leaving]
IRCsum has quit [Read error: Connection reset by peer]
IRCsum has joined #nixos
shabius has joined #nixos
shabius has quit [Remote host closed the connection]
Xyliton has quit [Quit: Lost terminal]
<samueldr> with the cross compilers infra, how would I get e.g. gcc as `arm-linux-gnueabi-gcc`?
shabius has joined #nixos
<samueldr> my knowledge with cross-compilation isn't the best, but here I'm trying to compile a project which assumes the cross-related tools will be prefixed, while having unprefixed native
ddellacosta has joined #nixos
<samueldr> and doing it outside of nix (in a nix-shell) at first
Church_ has quit [Ping timeout: 246 seconds]
<symphorien> samueldr: run nix-shell on a file like the one in https://github.com/NixOS/nixpkgs/issues/49526#issue-375977003
<jomik> Why is our services.emacs type set to forking, seems like the examples and such says it should be simple?
<samueldr> thanks symphorien, at first glance it looks right
alex`` has quit [Quit: WeeChat 2.3]
philippD has joined #nixos
tzemanov_ has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @ajs124 opened pull request #53024 → sshd: Add user options for ForceCommand and ChrootDirectory → https://git.io/fhI2m
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
alex`` has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
johnnyfive has joined #nixos
tzemanovic has quit [Remote host closed the connection]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<pie__> so, I want to get a shell for compiling nix but if i do nix-shell -p nix , i dont have unpackPhase for example
tzemanovic has joined #nixos
<pie__> whats the correct way to do it?
tzemanovic has quit [Remote host closed the connection]
<{^_^}> [nix-pills] @elben opened pull request #103 → Fix darwin hello.nix. → https://git.io/fhI22
<nDuff> pie__, unpackPhase is defined as a function -- if you look at declare -f output, you should see it.
<nDuff> Oh. Wait, you want a build environment with nix, not a shell with nix installed? ''nix-shell -f ~/VC/nixpkgs -A nix'' does that for me, such that a following genericBuild invocation does the right thing.
<pie__> nDuff, oh sorry, brain fart: i reflexively dropped into a fish shell because i dont have this machine properly configured
<pie__> unpackphase does exist in the bash i get
<ldlework> Hmm I just realized I never tried a gpu related thing since I updated to 19.03 glxgears doesn't work, and optirun glxgears doesn't work either https://gist.github.com/dustinlacewell/5366ef9356381f3f87faf729d34f4eb3 I never know how to debug this stuff
<pie__> though now that i think about it what im doing with -p seems kind of strange, because what if i pass -p multiple things and then try to call unpackphase
ddellacosta has quit [Remote host closed the connection]
<pie__> nDuff, I want a build environment *for* nix
<nDuff> *nod* -- as I understand it, -p is the wrong thing for that. Using -A works for me -- if I run the command I gave above, and then invoke genericBuild it downloads and builds the Nix source tree.
<pie__> ok thanks
jomik has quit [Ping timeout: 250 seconds]
jomik has joined #nixos
<ldlework> Hmm well I got glxgears working by updating it
orivej has joined #nixos
<ldlework> But "optirun steam" complains that: OpenGL GLX extension not supported by displayMain.cpp (332) : Assertion Failed: Fatal Error: OpenGL GLX extension not supported by display
shpx has joined #nixos
kisonecat has joined #nixos
<ldlework> Hmm it actually says that whether I run it in optirun or not
<ldlework> wtf is going on :(
<ldlework> at least webgl seems to work in qutebrowser still
<{^_^}> [nix-pills] @kalbasit merged pull request #101 → Fix typo in Pill 12 → https://git.io/fhk5G
<{^_^}> [nix-pills] @kalbasit pushed commit from @workflow to master « Fix typo in Pill 12 #12 »: https://git.io/fhIaG
Church_ has joined #nixos
kisonecat has quit [Ping timeout: 244 seconds]
sigmundv__ has joined #nixos
<jomik> I think I have misunderstood how assertions work... I am getting an error because I am using a property that is not defined, but, the assertion should catch that beforehand, and give that error... ?
<ldlework> Man I really screwed the pooch lol
<jomik> Oh. I had my assertion inverted... :D
* jomik erases his message.
<jomik> NAH, what.
johnnyfive has quit [Quit: I quit now.]
<{^_^}> [nixpkgs] @johnae opened pull request #53025 → Add systemd suspend-then-hibernate target + service. → https://git.io/fhIa2
johnnyfive has joined #nixos
<jomik> Why does this trigger a "option is used but not defined" here? https://gist.github.com/Jomik/a5b36f8891d559a8442a014460ddb3d5#file-emacs-nix-L6
<jomik> It should be caught by the assertion, IIUC?
<jomik> If I actually enable programs.emacs, then it will build correctly..
taohansen has joined #nixos
<jomik> How can I get this attribute from another module? https://github.com/rycee/home-manager/blob/master/modules/programs/emacs.nix#L56
justanotheruser has quit [Ping timeout: 264 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/19894adb770 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jperras has joined #nixos
<taohansen> I use eshell in Emacs. For some binaries, like `gopass`, I receive `-e: command not found` when invoking them. My $PATH is `/home/taohansen/bin:/run/wrappers/bin:/home/taohansen/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user/taohansen/bin` which does contain `gopass`.
<taohansen>
<jomik> nvm, I will just define it in the programs module.
jomik has quit [Quit: WeeChat 2.2]
jperras has quit [Client Quit]
johnnyfive has quit [Quit: I quit now.]
johnnyfive has joined #nixos
<makefu> /grep unstable
<makefu> ,unstable makefu
Ariakenom has quit [Ping timeout: 252 seconds]
johnnyfive has quit [Remote host closed the connection]
sir_guy_carleton has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
Xyliton has joined #nixos
<Xyliton> tried to rebuild my system and got `Encountered missing dependencies: tasty >=0.11 && <1.2` while building pandoc
<Xyliton> any idea what I might have messed up?
johnnyfive has joined #nixos
<lassulus> why can't I define files with a leading . in nix? for example "${/tmp/.test}" I get the error: illegal name: '.test'
<Church_> So there's no way to run a single command only once for a service right? I need to set some db's up for this on first run and only first run
<Church_> Can't exactly run rake db:setup on preStart every time.
fusion809 has joined #nixos
ddellacosta has joined #nixos
<tilpner> lassulus: Dots are not allowed in derivation names. You can work around this with builtins.path { name = "foo"; path = ./.foo; }
shpx has quit [Ping timeout: 244 seconds]
<tilpner> Church_: Check if $HOME/db-created exists, only do setup if it doesn't, and touch db-created after you've done setup once
<tilpner> If you grep for db-created, you'll see plenty of examples: https://search.nix.gsc.io/?q=db-created&i=nope&files=&repos=
bagus has quit [Ping timeout: 272 seconds]
<Xyliton> looks like lots of haskell packages don't compile because of missing dependencies :thinking:
sigmundv__ has quit [Ping timeout: 268 seconds]
jomik has joined #nixos
<pie__> all of the directories in this exist, does anyone have any ideas what the problem could be?:
<pie__> > sudo mount -t overlay ~/overlaymount -o lowerdir="/nix/store/681gf98gpsm87jvz0zyy3h7j06k6dib8-wineprefix",upperdir=~/wineoverlay,workdir=~/work ~/mount
<pie__> mount: /home/cccac/mount: mount(2) system call failed: No such file or directory.
<{^_^}> error: syntax error, unexpected '=', expecting ')', at (string):214:49
<Church_> samueldr: manveru: So I can access my rails app locally via either localhost or the external ip. However trying to curl it from an outside ip or web browser doesn't work. Any thoughts? Firewall?
<Church_> tilpner: That's... that's awful
<samueldr> Church-: there's indeed a default firewall
<samueldr> nothing except ssh has exceptions automated and built-in
<Church_> Even for outbound?
<samueldr> inbound only I think
<ldlework> Is anyone here using a ps3 controller?
<samueldr> (I'm not the networking expert though)
_0mpts has joined #nixos
<samueldr> but if you can from the same computer, access the rails app with localhost AND the external IP, the rails app is served successfully, AFAIK, and it's being blocked by the firewall
<Church_> Oh yeah doy.
<Church_> samueldr: I have seen some hacky hacky shite today
<Church_> Yep, it was the firewall.
<Church_> Woot
<nDuff> pie__, using ~ is always a bit dicey in a position other than the very start of a shell word. Better practice to lean on $HOME.
<Church_> samueldr: 71.19.144.163:8080
<Church_> Woot
jomik has quit [Quit: WeeChat 2.2]
<nDuff> pie__, ...to figure out if that's really the problem, you can use set -x to tell the shell to log commands it runs, so you can see if the expansion is *really* taking place in the upperdir=, workdir=, and other mid-string cases.
<samueldr> just "echoing" the command also could help
<nDuff> *shudder*
<samueldr> it becomes obvious what's expanding and not
* nDuff has a whole rant about echo being misleading and nonportable.
<samueldr> (but here it's fine since it's bash anyways)
<nDuff> even in bash, it behaves differently depending on runtime and compile-time options
<samueldr> the shell does the expansion here
<nDuff> look at the xpg_echo flag in the manual.
<samueldr> sure, you can get bad results, and the only way to get the right one is to exec in place
<nDuff> (?)
<samueldr> you can treat your shell as a repl, like you would in other languages, but as in any languages, results in the repl can differ
<{^_^}> [nixpkgs] @dtzWill merged pull request #52921 → editline: add redisplay patch → https://git.io/fhTza
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fhIwz
<pie__> nDuff, ah ok
<nDuff> printf '%q ' "${array[@]}" && printf '\n' gives you an accurate readout on what words your array expands to
<samueldr> now I see with `xpg_echo` how echo is bad
<samueldr> nDuff: why not \n in the printf?
<pie__> i would never do anything actualyl advanced with absh
<pie__> bash
<samueldr> ah, I see
<nDuff> samueldr, ...you can certainly put it there if you want your output split out one line per array element.
<samueldr> yeah, just saw
<pie__> nDuff, ahh ok i guess that explains it: sudo mount -t overlay /home/cccac/overlaymount -o lowerdir=/nix/store/681gf98gpsm87jvz0zyy3h7j06k6dib8-wineprefix,upperdir=~/wineoverlay,workdir=~/work /home/cccac/mount
vidbina has joined #nixos
ryantrinkle has quit [Ping timeout: 246 seconds]
__monty__ has quit [Quit: leaving]
<pie__> nDuff, thanks
<pie__> nDuff, this is kind of frustrating. i keep running into "things like this" and think to myself how could i know this without wasting a huge amount of time
<pie__> i guess thats just how engineering works?
Rusty1 has joined #nixos
<nDuff> Engineering on top of a legacy of decades of backwards compatibility, at least. :/
ottidmes has quit [Ping timeout: 240 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
<_0mpts> pie__: the error we are getting is here: https://paste.debian.net/1057831/
<pie__> thx
<Aleksejs> Hello, I have a laptop with nixos and windows. I installed nixos with UEFI boot manager and everything worked fine for about a year. But today UEFI manager just died and I cannot boot in nixos and windows now. I can see nixos grub in efi mode but it fails to boot
<Aleksejs> Is there any way to repair UEFI manager?
<avn> Aleksejs: is a simple FAT partition with files, so just copy should work for backup
<Aleksejs> avn: I don't see that partition
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<nDuff> Aleksejs, ...how are you looking at/for it?
<nDuff> Also, at what point does it fail to boot? Does grub successfully load? Can you drop to the GRUB command line?