<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]
<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.
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.
<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]
<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?
<{^_^}>
[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.
<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…]
<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?
<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
<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`?
<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
<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>
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>
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
<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
<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?
<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.
<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
<{^_^}>
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
<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
<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>
(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
<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
<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
<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__>
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 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... ?
<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.
<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_>
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
<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. :/
<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?