<infinisil>
(I'd put a comment to note that this can be replaced with the option once it's available)
<jackdk>
I have a nix expression that compiles my static site builder and runs it, and the derivations only contains generated html/images/css. However, any change to the site will trigger a reupload of all images, which is annoying. Is there a way to split the site into multiple derivations, so that a change doesn't force reuploads of everything?
Guest72641 has quit [Remote host closed the connection]
sinner has joined #nixos
sinner is now known as Guest38738
<mankyKitty>
yaasssssssssss <3 thank you infinisil
Fare has quit [Ping timeout: 255 seconds]
<infinisil>
Np :)
<infinisil>
jackdk: How do you want to split it?
<jackdk>
One derivation for CSS/HTML, 1-N of image directories seems like a good idea
<infinisil>
This might be a bit of a stretch, but maybe multiple outputs would work for you
<infinisil>
Just assign `outputs = [ "html" "images1" "images2" "whatever" ]` in your mkDerivation
<infinisil>
Then.. *looks up how it works*
josiah_sama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever>
infinisil: write files to $html, $images1, $images2, and $whatever
<clever>
out may be required
<infinisil>
Yeah that ^
<clever>
each one can be a file, directory, or symlink
<ekleog>
… there's definitely something I'm misunderstanding: `faketime '2000-01-01 00:00:00' sh -c 'date; sleep 5; date'` returns 5s diff while faketime was supposed to freeze the time
<noonien>
i'm running i3 with no DE, and some apps appear to have missing icons, how can i solve this?
<samueldr>
The wall clock will continue to run from this date and time unless specified otherwise (see advanced options). ekleog
haslersn[m] has joined #nixos
<samueldr>
which re-reading the manpage tells me maybe you're doing it right?
<ekleog>
samueldr: hmm looks like you were right and the manpage wrong
<samueldr>
ah
<samueldr>
use -f
<ekleog>
adding -f makes the test pass -- regardless of whether there was a '@' at the beginning
<samueldr>
nah, it's documented in a non-obvious way
<ekleog>
so either the code or the manpage is wrong I guess
<samueldr>
you need to use the "advanced timestamp format"
<samueldr>
which non-obiously using 'YYYY-MM-DD hh:mm:ss' makes it freeze the time using -f
<ekleog>
well at least the '@' option is documented as being “starts at” and `faketime -f '@2000-01-01 00:00:00' sh -c 'date; sleep 5; date'` makes it freeze
<noonien>
i think these might be GTK icons, like 'seek', 'play', 'network', etc
<shazow>
you probably need dbus-launch (see the thread i linked)
<noonien>
i'm unsure of qt icons, or how they work
<ekleog>
well at least the '@' option is documented as being “starts at” and `faketime -f '@2000-01-01 00:00:00' sh -c 'date; sleep 5; date'` makes it freeze
<ekleog>
oops
* ekleog
thought he was in his compilation shell and did 'up arrow&enter'
<shazow>
noonien: tldr replace `exec i3` with `exec dbus-launch i3`
<acowley>
I'm struggling to figure out how to make it happy
<acowley>
It's yet another instance of people assuming llvm and clang are being built as one big source tree, as far as I can tell
<noonien>
i'm not sure that's the issue, for example, running `gnomecast` which has missing icons, give me this: http://vpaste.net/osWCz
<CMCDragonkai>
@manveru No I'm not working on arduino stuff atm why would you think that?
<shazow>
noonien: yea not certain it's the same problem... fwiw my symptoms were similar (gtk icons didn't work, qt ones did for some reason)
<noonien>
i think qt has some fallbacks
<shazow>
yea probably
<noonien>
i have not explicitly installed any gnome themes, so that might be it
<noonien>
i've also not installed anything that helps me choose a theme, i might have to do both
<manveru>
CMCDragonkai: just some old gist I found
<noonien>
i'm curious if anyone is running i3 on top of plasma
<jackdk>
infinisil: Yeah, that's probably what I'll try to do. Recompiling the site compiler (hakyll) will probably trigger a rebuild of everything but that should be ok
<jackdk>
that will happen less and less often as the site stabilises
<shazow>
noonien: could try adding adwaita-icon-theme to satisfy the error messages, though i'm surprised it didn't include one by default (or maybe you have a userland config that overrides it?)
<noonien>
i've only got i3 installed, nothing else, don't think adwaita is a dependency of i3
<noonien>
or any other GUI apps
<shazow>
certainly not, seems more like a gtk/gnome thing
<shazow>
(i'm not very familiar with gnome, just guessing)
<shazow>
fwiw i also run i3 without a de, big fan of this setup :)
<Wulfsta>
So I have a Radeon VII, and finally realized I needed a newer version of linux for it to be recognized. That's working fine, but my monitor seems to be... zoomed in?
<Wulfsta>
No SLiM or SDDM enabled, just appear to be booting into tty1. Once the kernel loads the drivers during boot it stops showing the green part of the startup process because that's off the side of the screen
goibhniu has quit [Ping timeout: 246 seconds]
<Wulfsta>
I'm not sure how to fix this
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhjAg
<Wulfsta>
This is my first AMD card as well, so I'm even more lost
<DigitalKiwi>
worldofpeace: did i fix that right
Glider_IRC__ has quit [Ping timeout: 252 seconds]
Glider_IRC has joined #nixos
<DigitalKiwi>
i took (pkg-name | nixos/<module>): (from -> to | init at version | refactor | etc) a bit too literally >.>
<worldofpeace>
DigitalKiwi: Yep :)
<ar>
Wulfsta: i'm going to get my vii sometime this week, and this won't be my first radeon card on the amdgpu driver stack; afaiu they require very new firmware package, and kernel either 4.19 or 4.20
<DigitalKiwi>
dammit i pushed something i didn't mean to :|
<DigitalKiwi>
grr
<worldofpeace>
I think that means `->` is in english `from to`. TBH the formatting on that is a little to technical for everyone's taste
<Wulfsta>
ar: kernel 4.19 didn't work for me, I just used latest on the unstable channel
<worldofpeace>
*some people's
<DigitalKiwi>
worldofpeace: how do i get rid of that
iqubic` is now known as iqubic
<worldofpeace>
git commit --amend if you like?
<iqubic>
hellow
<iqubic>
Has anyone updated Discord to the new version?
fusion809 has quit [Remote host closed the connection]
<DigitalKiwi>
in the first amend i accidentally added that wrong file
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @Kiwi to master « pythonPackages.pdfminer: 20170720 -> 20181108 »: https://git.io/fhjAN
vk3wtf has joined #nixos
<Wulfsta>
Aha, so it appears I'm having a KMS problem!
jluttine has joined #nixos
mconstant has quit [Ping timeout: 252 seconds]
adetokunbo has quit [Ping timeout: 252 seconds]
sigmundv has quit [Ping timeout: 245 seconds]
thc202 has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @Ekleog opened pull request #57559 → iso-image: make reproducible by not relying on mcopy's readdir → https://git.io/fhjxf
slack1256 has quit [Remote host closed the connection]
<petersjt014>
anyone know what happened to the plans to use f2fs as the default filesystem for the aarch64 image? I've checked the latest 18.09 and 19.03 images and they're still ext4
<DigitalKiwi>
I'm a contributor :D
<petersjt014>
good job. I almost wrote a nixfile for a text editor but somebody beat me to it.. :|
<iqubic>
what text editor?
<petersjt014>
micro. nice little one that uses windows-style shortcuts. by the time I was gonna go for it I had learned vim too lol
pie__ has quit [Ping timeout: 252 seconds]
<petersjt014>
now I wanna try somethin more exotic. maybe vis.
<petersjt014>
structured regexes, multiple text cursors, buncha other neat stuff
<petersjt014>
gotta know what exactly you wanna do and test it before you can make something into a macro. besides, multiple cursors would help get you in the macro mindset I'd imagine.
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<Myhlamaeus>
I'd argue that one always has to know what exactly one wants to do to do it
<Myhlamaeus>
Would it make sense to treat suckless patches just like plugins in eg Chromium and Firefox?
<Wulfsta>
So can anyone point me in the right direction to configure an EDID for KMS in NixOS?
<worldofpeace>
DigitalKiwi: That looks like failure in the dependency chain, which I think should've been fixed for darwin IIRC
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @Kiwi to master « pythonPackages.weboob: fix build »: https://git.io/fhjxc
o1lo01ol1o has joined #nixos
<petersjt014>
Myhlamaeus: if they were specialized enough, maybe. I'm just saying that recording a macro to edit/save later might be easier with more advanced manual editing tools. Same prolly goes for other stuff metaphically
<{^_^}>
[nixpkgs] @ryantm pushed commit from @mfossen to master « moosefs: init at 3.0.103 »: https://git.io/fhjxC
<Myhlamaeus>
petersjt014: Macros can also be recorded into buffers and then replayed without saving them, which is IMO pretty much the same as multi-cursor
adetokunbo has joined #nixos
<Myhlamaeus>
Replayed without persisting them
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @Kiwi to release-19.03 « pythonPackages.weboob: fix build »: https://git.io/fhjxl
<{^_^}>
[nixpkgs] @ryantm merged pull request #57537 → glava: correctly display version information → https://git.io/fhj5Z
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhjx0
<petersjt014>
also good to know. in the meantime, I found the q/a page for vis where they explain their design choices. not gonna say their the best (I don't know enough to make that assertion), just that I find the approach interesting.
<therealwaphire[m>
Has anybody got filebot to run on NixOS?
<adetokunbo>
I have a question about nix-instantiate; if nix-instantiate succeeds for a nix-expression, does that mean that a nix-build for that expression has successfully determined all its dependencies?
<hyperfekt>
DigitalKiwi: The point is if you do nothing but patch a single file, not if you want to patch a whole package.
Guest99186 has joined #nixos
Guest99186 has quit [Changing host]
Guest99186 is now known as adamt
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
sigmundv has joined #nixos
ayerhart has joined #nixos
ilmu has joined #nixos
civodul has joined #nixos
AxiomaticEspress has quit [Quit: WeeChat 2.4]
AxiomaticEspress has joined #nixos
infinee has quit [Quit: WeeChat 2.3]
<adamt>
Something changed in 19.03, and it broke zookeeper: Apparently 19.03 hosts get a line like "127.0.1.1 $hostname" added to /etc/hosts. That's probably all good, except that zookeeper ends up binding to that address for its leader election port, instead of the external address.
AxiomaticEspress has quit [Client Quit]
<adamt>
Zookeeper apparently resolves the address to listen on based on the server-directives in the configuration file, so you can't really tell zookeeper to listen on a specific interface, except if you define the cluster based on IP-addresses
<adamt>
So does anybody know what triggers writing that extra line to /etc/hosts? I fear it might cause other problems as well
<yorick>
adamt: modules/config/networking.nix, line 219
Makaveli7 has quit [Ping timeout: 255 seconds]
Makaveli7 has joined #nixos
<adamt>
yorick: Thanks
<adamt>
Any idea whether this is actual normal behaviour? Our Debian hosts (pretty standard) doesn't have it. There we define the hostname in /etc/hosts as the actual IP-address of the hostname
Makaveli7 has quit [Max SendQ exceeded]
Makaveli7 has joined #nixos
<adamt>
I'm not even sure how to tackle this, because it seems like a very fundamental change, and it was done six months ago
jbgi has joined #nixos
slack1256 has joined #nixos
ilmu has quit [Ping timeout: 252 seconds]
mvnetbiz has joined #nixos
sinner has joined #nixos
sinner is now known as Guest80733
reallymemorable has joined #nixos
Guest38738 has quit [Ping timeout: 245 seconds]
reallymemorable has quit [Ping timeout: 252 seconds]
Makaveli7 has quit [Ping timeout: 252 seconds]
ng0 has joined #nixos
Makaveli7 has joined #nixos
<{^_^}>
[nixpkgs] @Kaali opened pull request #57565 → Use llvmPackages_7 explicitly for ccls → https://git.io/fjev1
<{^_^}>
[nixos-weekly] @domenkozar pushed 5 commits to production: https://git.io/fjefC
<{^_^}>
[nixpkgs] @danbst merged pull request #55224 → nixos/prometheus: use append instead of insert for opening firewalls → https://git.io/fhSxM
<{^_^}>
[nixpkgs] @danbst pushed commit from @thefloweringash to master « nixos/prometheus: use append instead of insert for opening firewalls (#55224) »: https://git.io/fjefW
zupo_ has joined #nixos
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Call for Content: 2019/06 »: https://git.io/fjefB
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #88 → Call for Content: 2019/06 → https://git.io/fjefR
zupo has quit [Ping timeout: 268 seconds]
Shouou has quit [Remote host closed the connection]
<kisik21>
You wanna have an ISO with networkd enabled?
<Guest43050>
my current install does not have internet access
<Guest43050>
ISO does
<kisik21>
dhcpcd handles network in ISO afaik
<woffs>
kisik21, yes, services.nix-serve.secretKeyFile is the right one
<kisik21>
it should be enabled by default
<kisik21>
woffs: thanks
<kisik21>
Guest43050: you may have some weird problems with drivers, is the network iface visible in `ip link` output when you're booted into the target system?
<woffs>
kisik21, welcome on the hard path to NixOS on 32bit :-)
<Guest43050>
im not sure
<Guest43050>
but ipconfig does show wlp1s0
<Guest43050>
ifconfig*
<kisik21>
you want wifi?
vidbina has quit [Ping timeout: 252 seconds]
<kisik21>
maybe NetworkManager will be enough for you? it's smart enough to figure things on its own and it's what Ubuntu and most distro giants use for user-friendly networking
<Guest43050>
where can i find my current configuration
<kisik21>
Guest43050: in /etc/nixos/configuration.nix? then you can edit it and run nixos-rebuild switch to apply your changes
<kisik21>
I'd recommend you to have /etc/nixos be a git repository
<Guest43050>
ok
countingsort is now known as buffet
nikivi has quit [Remote host closed the connection]
q6AA4FD has quit [Remote host closed the connection]
<fendor>
i am experiencing problems while trying to reinstall nixos, i am using the current 18.09 iso from nixos.org and I use dd to copy on the usb device. But when trying to boot, only grub is shown
<Guest43050>
this is my current configuration
<kisik21>
Does nixpkgs.libreoffice evaluate successfully on i686-linux? I have several i686-based machines I need to have libreoffice on
<kisik21>
because my professor needs it for some reason
<{^_^}>
[nixpkgs] @fgaz opened pull request #57573 → drawpile: add build options and split into multiple top-level attrs → https://git.io/fjefh
nikivi has joined #nixos
<woffs>
kisik21, no, I had no luck with libreoffice. Use gnunmeric and abiword.
<woffs>
gnumeric
<kisik21>
oops...
<kisik21>
:3
q6AA4FD has joined #nixos
rycwo has joined #nixos
<adamt>
Guest43050: You should use the "root" user as a normal user, like, using it for irc.
<adamt>
*should NOT*
<kisik21>
adamt: they're using the live iso probably
<adamt>
kisik21: Ah. Right. :P
<kisik21>
woffs: any ways to cross-compile? I'm ok with having two copies of some dependencies as long as I can have libreoffice on it
<kisik21>
I'm just not sure how to stuff it into the target machines
<kisik21>
s/just //
fendor has quit [Remote host closed the connection]
<Guest43050>
so what do i need to do in order to make wifi work in my OS
<Guest43050>
also how do i set up a user in the Configuration
<symphorien>
kisik21: you can use nix copy to move a cross-compile libreoffice from one computer to another
<woffs>
and even after applying the related PR to a custom nixpkgs there are many issues left, and getting more, because many upstream sources do not take care of 32bit anymore
<symphorien>
so you would launch the cross compilation on the i686 computer and it would be transparently offloaded elsewhere
simukis has joined #nixos
<woffs>
and will take some days to complete :-)
<noonien>
how can i push packages built during nixos-rebuild to cachix?
<noonien>
(just the ones that don't have a fixed ouput)
<musicmatze>
I thought that maybe you can install nix also on a sailfish device... maybe someone can test this? Because I am not sure whether my next device should be an android or an sailfish ...
<musicmatze>
also, maybe I can get LinageOS on my OPO and do not have to buy a new device, not sure yet.
slack1256 has quit [Remote host closed the connection]
<Church->
Gonna try this on my pixel
rycwo has quit [Ping timeout: 246 seconds]
<betaboon>
domenkozar: will any of the work from cachix flow back into hercules-ci or hydro of sorts? i like your cachix stuff but i realy would love to selfhost XD
<Church->
Okay nix on Droid is neat so far.
hamishmack has quit [Ping timeout: 272 seconds]
<domenkozar>
betaboon: I'm afraid not
<domenkozar>
hercules-ci will support cachix
<betaboon>
domenkozar: too bad but thanks for the info :)
<domenkozar>
but you can't host either
<domenkozar>
it's free for OSS? :)
<betaboon>
domenkozar: its not realy a question of pricing for me (i think the pricing model is fine) but more of philosophy :D
rycwo has joined #nixos
<Guest43050>
[11:36] <qyliss^work> Guest43050: you don't need the "home" line -- isNormalUser will take care of that
<Guest43050>
ok
<gchristensen>
betaboon: Nix can support any S3-like cache out of the box (wasabi, digital ocean spaces, minio), if you're wanting to do that
<kisik21>
btw what is an S3-like cache? I'm not familiar with amazon services stuff
<domenkozar>
betaboon: won't fight ideologies :)
<gchristensen>
S3-like means it provides the same API S3 provides
stepcut has joined #nixos
<kisik21>
is it different from nix-serve on port 5000?
<gchristensen>
ah, I mean the upload API
<betaboon>
gchristensen: i realy have find the time to setup hydra and figure out a setup XD
<gchristensen>
for download, Nix always uses a trivial http get/head API
<betaboon>
domenkozar: i might at some point still use cachix :D
<domenkozar>
I know everyone will that can do the math :)
socksy has joined #nixos
jbgi has joined #nixos
stepcut has quit [Remote host closed the connection]
<alj[m]>
Is anyone in here using nixops?
<betaboon>
alj[m]: me
<Guest43050>
so do i just do nixos-rebuild
Rusty1 has joined #nixos
<socksy>
hi there, I'm having difficulty using node-keytar in a nix shell and I was wondering if someone here could help. npm install works fine (even with gyp), but running it exclaims "Error: libsecret-1.so.0: cannot open shared object file: No such file or directory" despite the fact that libsecret is in the default.nix buildInputs
jD91mZM2 has quit [Quit: WeeChat 2.3]
<Guest43050>
or can i just redo nixos-install
<alj[m]>
betaboon : Cool, can nixops automatically switch an address to a second server when the first is knocked offline? Like with redundant servers, you know?
<alj[m]>
I'm planning on doing a redundant server setup in two locations and need it to switch the routing (or something, it's rough in my head right now)
<betaboon>
alj[m]: i doubt nixops can do what you want (everyone else please correct me if I'm wrong) as there is nothing doing orchestration in nixops.
<adamt>
alj[m]: Also i've heard the authors of morph hang out in #nixos
<johanot>
:P
ThatDocsLady has quit [Ping timeout: 246 seconds]
gfv has joined #nixos
Guest43050 has quit [Remote host closed the connection]
<alj[m]>
Oh nice! Do they use the same usernames as per github? I'll look for them
<alj[m]>
Wait. Hi johanot.
<johanot>
alj[m]: Hello :-) adamt is my partner in crime, regarding morph
<alj[m]>
Adamt you too? You got me.
<johanot>
hehe
<alj[m]>
Okay habe you read my thing about redundant servers and such? Can morph do that?
<adamt>
alj[m]: Not really. But wouldn't it be better to use something like keepalived, which takes care of moving an extra IP between servers?
<alj[m]>
Hm. I didn't know that existed, sorry the idea crossed my idea just today while doing errands.
<alj[m]>
I'll take a look.
<alj[m]>
But morph could manage my two (identical) servers right?
<adamt>
alj[m]: Yeah. We manage many servers that basically only change by hostname and such
erhandsome has quit [Quit: %null%]
<Church->
Yeah trying to figure out if I need to use keepalived with IP sharing on linode
<gfv>
hi! has anyone ever configured networkmanager-openvpn client using nix? i'd like to put certificates, hostnames and stuff into my configuration.nix and forget about it
<adamt>
alj[m]: Basically, with keepalived, you create a health check against your service, tell keepalived about the other servers in the cluster, give it an IP to manage, and then it'll just do its thing without too many problems
<kisik21>
Interesting. While building libreoffice, it gives an error: ${ld}/bin/ld: /build/libreoffice-6.0.7.3/workdir/CxxObject/sal/osl/unx/file.o: in function `FileHandle_Impl::readFileAt(long long, void*, unsigned int, unsigned long long*)': file.cxx:(.text+0xa98): undefined reference to `__divmoddi4'
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<gfv>
regarding keepalived, just make sure that your network is a proper IP network that knows about ARP
<adamt>
also make sure to specify the IP as CIDR (like 10.0.1.10/24)
<adamt>
Because if not, it can also create funny ARP cache issues.
Android has joined #nixos
<Android>
how do i install firefox
<Android>
as nix-env -i firefox just hangs
<gfv>
(most clouds don't have a proper network, Google Cloud actually sets up a /32 private IP address on an interface and you can't do any fancy stuff with it. that said, you would probably use your cloud vendor's load balancing tools instead of local daemons)
<kisik21>
Android: nix-env -i considered harmful, use nix-env -iA nixpkgs.firefox
<therealwaphire[m>
guys, is firefox-developer-edition not open source?
<etu>
therealwaphire[m: May be branding
<therealwaphire[m>
when I try to install `firefox-devedition-bin`, it asks me to allow Unfree
<therealwaphire[m>
wdym?
<kisik21>
It is, but the redistribution of packages with official branding is permittted only with binaries.
<therealwaphire[m>
oh
<kisik21>
So the binaries are considered unfree
<therealwaphire[m>
okay then
<therealwaphire[m>
thanks!
<Android>
ok
<kisik21>
You can build it from source or make a license exception (more preferable)
<__monty__>
therealwaphire[m: Nixpkgs actually got special permission for firefox itself.
<gfv>
kisik21: is there a list of harmful things? i'd love to take a look to make sure i don't do anything stupid
<therealwaphire[m>
woah
<therealwaphire[m>
gfv: you can always rollback ;)
<kisik21>
gfv: I think it's mostly csh, nix-env -i, Pascal and Windows :3
<therealwaphire[m>
lmao
<alj[m]>
Thanks guys! Will take a close look at keepalived and maybe use morph so thanks for that as well!
<gfv>
therealwaphire[m: i mean conceptually stupid, as in "editing files in /nix/store" :)
<therealwaphire[m>
oh :P
<therealwaphire[m>
well, afaik, you shouldn't touch anything that nix has already touched
<__monty__>
gfv: You shouldn't really install things using nix-env as if it's another package manager
<__monty__>
,declarative
<{^_^}>
There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<therealwaphire[m>
__monty__: is there anything else one should do for installing firefox other than `nix-env` ?
<therealwaphire[m>
oh, `home-manager`, yeah I'll look into it now
<{^_^}>
[nixpkgs] @dasJ opened pull request #57579 → exim: Fix build with LDAP (#56058) → https://git.io/fjeTL
<__monty__>
therealwaphire[m: You don't *have* to use home-manager but any of those three approaches is recommended over imperative nix-env'ing.
<kisik21>
How was the first Nix-based toolchain bootstrapped? It requires strict purity and compiler needs another compiler to be built. How can one bootstrap Nix from nothing?
<therealwaphire[m>
oh yeah, I said `home-manager` because I had already heard of it :P
<__monty__>
That and always use -A when appropriate/realize nix-env -u is *slow* because it needs to evaluate basically all of nixpkgs (same thing that happens when you don't use -A).
<__monty__>
I specify some buildEnvs in an overlay.
jasongrossman has joined #nixos
<{^_^}>
[nixpkgs] @dasJ opened pull request #57580 → exim: Fix build with LDAP (#56058) → https://git.io/fjeTG
<__monty__>
I'd probably try out home-manager if I wasn't too short on time to mess with system setup though : )
<therealwaphire[m>
I see
Shouou has joined #nixos
Android has quit [Quit: Konversation terminated!]
<therealwaphire[m>
well, I'm going out to eat rn, might as well multitask
waleee has joined #nixos
Erasmus has joined #nixos
<gfv>
home-manager is great, i've just discovered it yesterday while setting up my second laptop
Android has joined #nixos
<Android>
how do i enable a package globally
<gfv>
imperativity of nix-env -i has bugged me very much since very beginning
socksy has quit [Ping timeout: 256 seconds]
<Android>
kdeconnect-cli: command not found
<Myrl-saki>
How does systemd.user work?
AxiomaticEspress has joined #nixos
<clever>
Myrl-saki: it drops units into /etc/systemd/user/
<Myrl-saki>
Oh.
Makaveli7 has joined #nixos
<Myrl-saki>
I was reading the submodule option and it looked exactly the same.
<clever>
it has a lot of the same options
<clever>
but runs one instance per user, and only those that are signed in
<clever>
adamt: ahh, then the ipxe version will need to be updated, add src=fetchurl{...}; to the override
<adamt>
clever: Yeah, I had already prepared a PR to fix it. :-)
johanot has quit [Quit: WeeChat 2.4]
Guest80733 has quit [Read error: Connection reset by peer]
<clever>
adamt: something you could add to the PR, is to have the efi binaries enabled within nixpkgs
<clever>
then it will break for everybody, and is more likely to be noticed/fixed
sinner has joined #nixos
sinner is now known as Guest28943
Guest28943 has quit [Read error: Connection reset by peer]
iqubic has quit [Ping timeout: 246 seconds]
<adamt>
clever: And I wouldn't ever have to rebuild ipxe myself. That's a pretty good idea.
<clever>
adamt: yep
rauno has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskell-texmath: drop obsolete override »: https://git.io/fjeTD
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fjeTS
hyper_ch2 has quit [Quit: Page closed]
<alj[m]>
clever: so i could build my homeserver configuration on a fast server and pull everything onto the slow homeserver instead of building on the slow server or manually, right?
Glider_IRC has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
Android has quit [Remote host closed the connection]
<adamt>
alj[m]: And you can make it work by both pushing data to the server, or pulling the data with it.
rycwo has quit [Quit: WeeChat 2.2]
rycwo has joined #nixos
<alj[m]>
adamt: pushing?
Android has joined #nixos
<Android>
can anyone connect to the KDECONNECT app in kde-connect desktop on NixOS ?
<adamt>
alj[m]: Yeah, you can push an already built system to another host with `nix copy` (which is what morph and probably also nixops does behind the scenes)
<Android>
as i cant pick up my device at all in either of the apps
rycwo has quit [Client Quit]
<adamt>
Or you can built it, push to a cache, and then pull the packages from the cache on the slow host
rycwo has joined #nixos
<slabity>
Android: Are you using home-manager for enabling kdeconnect?
<Android>
whats that
<Android>
home-manager: command not found
stepcut has joined #nixos
<Android>
i just have these
<Android>
wget vim kate konversation firefox kdeconnect
rycwo has quit [Client Quit]
<slabity>
Android: It's a tool for configuring user-level nix configs.
rycwo has joined #nixos
<Myrl-saki>
Aaaa. It makes me sad that you can't import a config. ; ;
<slabity>
Rather than system-level
rycwo has joined #nixos
Neo-- has joined #nixos
<Myrl-saki>
error: infinite recursion encountered, at /etc/nixos/nixpkgs/lib/modules.nix:62:71
<Myrl-saki>
:C
<Android>
as long as my packages persist accross reboots and logouts/logins i dont care what level they are
<slabity>
Android: It's not necesary. It just makes it easier for some services. You should still be able to use kdeconnect without it
<slabity>
Does the kdeconnect process start up when you login?
<Android>
yup
<{^_^}>
[nixpkgs] @costrouc opened pull request #57583 → pythonPackages.sphinxcontrib-tikz: init at 0.4.6 → https://git.io/fjekZ
<Android>
environment.systemPackages = with pkgs; [ wget vim kate konversation firefox kdeconnect ];
<Android>
*
<Android>
aaand i cant take screenshots cus i dont have spectacle
stepcut has quit [Ping timeout: 246 seconds]
<alj[m]>
> Or you can built it, push to a cache, and then pull the packages from the cache on the slow host
<alj[m]>
awesome! thanks adamt
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):222:20
<Android>
{^_^}: XD best nick ever lmao
<{^_^}>
[nixpkgs] @TomSmeets opened pull request #57584 → lib/attrsets: add mapAttrsToString and mapAttrsToStringSep → https://git.io/fjekn
<Android>
oh, it a bot ;-;
evanm has joined #nixos
<Android>
anyway
<Android>
why cant pick up my device at all in either of the apps
<samueldr>
Android: did you open the port 1716 in the firewall (not sure if both TCP and UDP are required)
<samueldr>
I have that as a note in my configuration from when I tried kdeconnect
<Android>
i have no firewall x.x
<samueldr>
hmm, looks like it might be a bit of a larger range
<samueldr>
>> KDE Connect uses dynamic ports in the range 1714-1764 for UDP and TCP. So if you are behind a firewall, make sure to open this port range for both TCP and UDP. Otherwise, make sure your network is not blocking UDP broadcast packets.
<Android>
# Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false;
<samueldr>
Android: if you didn't disable it, you have a firewall
<samueldr>
NixOS has one enabled
stepcut has joined #nixos
<Android>
is there some kind of prebuilt configuration for KDE desktop
<Android>
that i can use
<Android>
that will set all this up for me
erictapen has joined #nixos
<goibhniu>
FWIW, I do use kdeconnect on NixOS and you do need to open the port for it
<azazel>
hi guys, how can I set the nixpkgs of a machine inside a nixOps deployment to a certain value? I've tried with nix.nixPath = ["nipkgs=<url>"] but it seems to dail working
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<goibhniu>
If I understand correctly, you expect there should be a "normal-kde-desktop.nix" that a community would maintain and which would include all the "normal" stuff you'd find in a standard distro.
rycwo has joined #nixos
<goibhniu>
I suspect there isn't a market for that, although it would not be difficult to do.
<clever>
and then on the more extreme end of things
<clever>
this will boot a haskell file, as /init, inside the initrd
<clever>
100% of the os, is a single haskell file (and the linux kernel)
<clever>
does that even count as a distro?
stepcut has joined #nixos
agander has quit [Ping timeout: 268 seconds]
<Android>
lol
<slabity>
Wow that's neat
<buffet>
when i upload linux to somewhere and distribute it, does that count as distro?
<adamt>
clever: Do you have any idea how to specifically add the efi outputs to ipxe? Looking at the docs i can only figure out how to either build very specific outputs, or predefined sets of outputs (like "all" and "everything", and "everything" sounds rather excessive just to add the efi stuff)
<slabity>
'Distro' is such an ambiguous term. I think of anything that creates a bootable environment a 'distro'
justan0theruser has quit [Ping timeout: 246 seconds]
<gchristensen>
not sure settling on the definition of distro is so helpful
<clever>
adamt: i think you want to add the names of the files to the makeFlags (the paths i was passing to make)
<clever>
adamt: and then in the installPhase, copy those to $out
<clever>
slabity: then my haskell-init, with only 2 files, is technically a distro, lol
elohmeier has quit [Ping timeout: 272 seconds]
<adamt>
clever: Yeah, then i'll have to add all the names of the files already included by the default target, basically copy/pasing them from the makefile, and that also feels hackish
elohmeier has joined #nixos
<clever>
adamt: you can just name the default target, which is the first target in the makefile
<slabity>
clever: I don't see why not. It is a distribution
<Android>
how do i search for packages
<adamt>
maybe i can do "make all bin-x86_64-efi/ipxe.efi" though
<clever>
adamt: yep
<clever>
adamt: and the buildPhase calls make $makeFlags, so you just need to add "all" and "bin-x86_64-efi/ipxe.efi" to makeFlags
<Shouou>
Sometimes if the package isn't obvious Google can be helpful with "nixpkgs <package>"
<slabity>
,locate nix-locate
<clever>
Android: you need to first install nix-index
<{^_^}>
Found in packages: nix-index
<slabity>
Android: Sorry, forgot it was in a different named package
elohmeier has quit [Ping timeout: 245 seconds]
jabranham has joined #nixos
<adamt>
What about just using `nix search firefox`?
<clever>
adamt: nix search only searches names/descriptions, nix-locate searches filenames within the pkg
rauno has quit [Ping timeout: 250 seconds]
<adamt>
clever: Sure, but Android asked how to search for packages, not for the files in them :-)
<buffet>
how do i get a dev version of a library under nix?
<clever>
ah
<clever>
,library buffet
<{^_^}>
buffet: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<adamt>
clever: But if I update the PR to build everything, I'll have to figure out which files that makes sense to include in $out by default, and due to the silly naming in ipxe i can't even just copy the content of all bin-dirs to $out
<clever>
adamt: ack!
<adamt>
I could of course copy the dirs themselfs, but eh, that feels really dirty as well. So maybe I should just keep the PR as is to get it bumped, and then keep building what I need myself. :P
cryptomonad has joined #nixos
Xal has joined #nixos
elohmeier has quit [Ping timeout: 272 seconds]
leat2 has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
reallymemorable has joined #nixos
leat1 has quit [Ping timeout: 240 seconds]
<mikky>
hi, base64 not decoding at my NixOs installation. executing `echo "dGVzdHRleHQ=" | base64 -d` results in empty string. seems like a library error because other apps don't decode base64 internaly, too
jD91mZM2 has joined #nixos
<mikky>
strange but only present in (my) NixOS. Anyone encoundered this?
sm has joined #nixos
<symphorien>
mikky: works for me
<vaibhavsagar>
mikky: which version of nixpkgs are you running?
<symphorien>
so it could be that your prompt overwrite non flushed lines with \r or something like that
reallymemorable has quit [Ping timeout: 245 seconds]
<slabity>
Is there a way to check what a variable is set to on a particular system configuration? For example if I set `services.xserver.enable` to true, then `hardware.opengl.enable` should be true even if I don't explicitly set that.
rcshm has joined #nixos
reallymemorable has joined #nixos
<octe>
i accidentally removed my /etc/nixos directory
<mikky>
symphorien: that would only explain why it does not work in shell
<octe>
i found a backup of configuration.nix, but how do i get hardware-configuration.nix back?
<slabity>
octe: nixos-generate-config
<adamt>
octe: You can just generate it again, if you didn't change anything in it. It should also pick up any active mounts
<octe>
thanks
<slabity>
As long as you didn't make manual changes to hardware-configuration.nix it should be fine
<mdash>
slabity: you can write "hardware.opengl.enable = config.services.xserver.enable;"
<octe>
afaik i didnt :)
<mikky>
but I'm getting a stronger feeling now that the app problem *might* just be unrelated...
<octe>
glad i had a backup of configuration.nix though
emacsomancer has quit [Read error: Connection reset by peer]
<octe>
would it be possible to generate that from the running system?
<mikky>
octe: there are generally two types of data. 1) backed up data, 2) data not lost yet ;)
<octe>
hehe
<slabity>
mdash: Not exactly what I'm looking for. I'd like to get the value of `hardware.opengl.enable` on my current system.
<waleee>
octe: I think the current configuration.nix is in the nix store
<octe>
i actually accidentally removed it due to organizing and moving it to git
<clever>
mikky: what about `echo -n foo` ?
<octe>
i rm -rf'ed on the wrong server
emacsomancer has joined #nixos
elohmeier has joined #nixos
<waleee>
octe: so your preferred search tool would find it in /nix/store
<clever>
octe: that will give you the .drv for the full nixos build
<octe>
mikky, i've seen it but i'm not sure i like it.. seems to be a binary thing, either you fully commit to nixops or not.. and that you need to secure and backup the state it uses
<octe>
seems easier to just have a git repo for configurations
<clever>
nix-instantiate '<nixos/nixos>' -A system
cyphase has quit [Ping timeout: 246 seconds]
<clever>
octe: and this will give the .drv for the current configuration.nix
<clever>
linda: one of your go binaries it trying to mess around with $HOME/.cache/go-build at build-time, but nix doesnt allow $HOME during builds
domogled has joined #nixos
endformationage has joined #nixos
<linda>
clever: how do I prevent the binaries from messing around with $HOME?
<clever>
linda: either pass it a config flag to put the cache elsewhere, or point $HOME to $TMPDIR
<therealwaphire[m>
thanks, guyts\
<therealwaphire[m>
really loving home-manager
<therealwaphire[m>
one question
<therealwaphire[m>
when creating symlinks with home-manager, is the state immutable?
rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<therealwaphire[m>
I mean, I'm using it to manage my emacs dotfiles and do I have to run `home-manager switch` everytime I update my dots?
<manveru>
therealwaphire[m: yeah, basically
<teto>
is there a way to run "apply" after the "merge" in the module system ? I now write my own "merging" function but I wonder if there is sthg more stands
<therealwaphire[m>
alright, uhh.. so is there a `collect-garbage` for `home-manager` ?
<manveru>
therealwaphire[m: if i want to test changes faster, i replace the symlink with a real file, after i'm done i remove it and run home-manager again
<linda>
clever: which file is nix-build looking in to know where to put the cache?
<therealwaphire[m>
I don't think I'd have use for those backups since I'm already using git
<manveru>
therealwaphire[m: `home-manager generations | awk '{print $5}' | xargs home-manager remove-generations`, after that run `sudo nix-collect-garbage --delete-older-than 10d` or similar
<therealwaphire[m>
manveru: oh yeah, that's also a cool alternative but I think I'd prefer running just `home-manager switch` :P
<therealwaphire[m>
awesome, thanks mate :)
Ariakenom has quit [Quit: Leaving]
<slabity>
nixos-option works well. But is there any way to get it to evaluate all variables in a set?
<clever>
linda: its not nix-build that is creating the cache, its a binary based on go
<slabity>
Or get a list of variables that are evaluated in the system? Doing something like `nixos-option --xml services` just gives me a bunch of `<unevaluated />` tags
<slabity>
I'd like to get a list of variables that are evaluated in the system
reallymemorable has joined #nixos
waleee has joined #nixos
drakonis has joined #nixos
rauno has joined #nixos
<ixxie>
is there an offtopic channel for NixOS?
<gchristensen>
#nixos-chat
<ixxie>
cool
erasmas has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
<therealwaphire[m>
what can I do about emacs trying to write into init.el ?
domogled has quit [Quit: domogled]
<Android>
how do i fix this
<Android>
error: The option `android_sdk' defined in `/etc/nixos/configuration.nix' does not exist.
<Android>
for error: You must accept the Android Software Development Kit License Agreement at https://developer.android.com/studio/terms by setting nixpkgs config option 'android_sdk.accept_license = true;'
rcshm has quit [Remote host closed the connection]
petersjt014 has joined #nixos
<waleee>
or simply nixpkgs.config.allowUnfree = true, to blanket-accept unfree licences
rcshm has joined #nixos
<musicmatze>
and there is even an option to for example allow only unfree for a single package
<musicmatze>
at least if it was not removed :-)
<Android>
ok o.o
<musicmatze>
I wrote that functionality because I needed a unfree ATI driver at the time but I wanted to only have that one package being unfree and now allow any other packages to be unfree on my system
<musicmatze>
luckily the OSS driver is now good enough so that I do not need that nixpkgs feature anymore :-)
<clever>
musicmatze: ah, ive seen that in the stdenv, but never looked at who added it
<slabity>
musicmatze: Does allowUnfree accept all licenses? I still need to include `oraclejdk.accept_license` to run oraclejdk
<matthewbauer[m]>
yeah specific licenses are not covered by allowUnfree
<musicmatze>
I don't know about the oraclejdk part, but I guess yes, allowUnfree allows all licensed (well, AFAIK we only differentiate between "free" and "unfree", so if you allow unfree you also allow free implicitely which would then be all licenses allowed). IANAL of course and I might be wrong as well, would need to peek at the code
<clever>
ilya-fedin: pkgconfig only works inside nix-shell or nix-build
<slabity>
Not to sound like a broken record, but is it possible to use nixos-option to evaluate an entire set? Or get the variables that have been set?
<ilya-fedin>
:(
<ilya-fedin>
Ok, thanks
stepcut_ has joined #nixos
<clever>
slabity: nix repl '<nixpkgs/nixos>' then eval config.services
<symphorien>
,libraries ilya-fedin
<{^_^}>
ilya-fedin: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<{^_^}>
[nixpkgs] @Zer0- opened pull request #57588 → paulstretch: init at 2.2-2 → https://git.io/fjeqW
<samueldr>
and now I'm like 99% this is wrong and shouldn't be copied like that
<therealwaphire[m>
how do you pair devices and change DPI?
<Android>
/home/Android/.nix-defexpr/channels_root/nixos/pkgs/development/tools/selenium/htmlunit-driver/default.nix: name = "htmlunit-driver-standalone-${version}";
<samueldr>
therealwaphire[m: haven't needed to pair and setup things since it was setup :)
<ilya-fedin>
clever: When I adding qt5 to buildInputs, nix-shell throws error `error: cannot coerce a set to a string, at /nix/store/rr56kzg83d1c6y25566cmralpqp2q0yq-nixos-19.09pre171786.34aa254f9eb/nixos/pkgs/build-support/trivial-builders.nix:7:14`
<clever>
Android: that is the derivation behind that storepath
<therealwaphire[m>
clever: let me try the second one
<samueldr>
services.udev.packages = [ pkgs.solaar ]; # in configuration.nix therealwaphire[m
<Android>
how do i find out what owns that package
clr_ has joined #nixos
<clever>
ilya-fedin: qt5 is a set of many packages
<therealwaphire[m>
samueldr: ah, alright but that ain't a solution though :P
<therealwaphire[m>
I have two devices that need to be connected to two receivers
<samueldr>
therealwaphire[m: yeah, I *thought* I was using solaar, apparently I wasn't :)
<therealwaphire[m>
samueldr: woah
<clever>
ilya-fedin: you want qt5.qtbase
<therealwaphire[m>
can you explain what that does?
<samueldr>
I'm not 100% positive it'll work, let me check
<therealwaphire[m>
I'm impressed that I could understand that instantly lol
<Android>
also how tf do i fix firefox
<Android>
"Unable to make the service Firefox executable, aborting execution"
drakonis has quit [Quit: WeeChat 2.3]
<jD91mZM2>
slabity: I don't know of any general way, but in your case you should be able to do `nix eval --raw '(builtins.concatStringsSep "\n" (builtins.attrNames (import <nixpkgs/nixos> {}).config.services))'`. Does that do what you wanted or did I misunderstand?
<Android>
when attempting to open an external link with firefox
stepcut has joined #nixos
elohmeier has quit [Ping timeout: 246 seconds]
<therealwaphire[m>
clever: is there a problem if /etc/nixos/configuration.nix is a symlink?
ixxie has joined #nixos
drakonis has joined #nixos
<clever>
therealwaphire[m: shouldnt be
<Android>
how do i find out what packages depend on X
drakonis_ has quit [Ping timeout: 246 seconds]
<infinisil>
Android: What is X?
<clever>
Android: that should be visible in the errors nix prints after X fails to download
Makaveli7 has joined #nixos
<clever>
Android: can you pastebin the entire error?
<Android>
wait does /selenium/htmlunit-driver/ mean that htmlunit-driver is a dependancy of selenium ? in which the package closest to that is selendroid
<clever>
Android: ah, that would make sense
josiah_sama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Android>
though that may be entirely incorrect
<Android>
as multiple packages can depend on the same package
<clever>
cannot build derivation '/nix/store/xjfakgdssdws7w16yl2dc81343hx5dls-android-ndk-r17c.drv': 1 dependencies couldn't be built
<samueldr>
clever: replied :)
<clever>
Android: android-ndk failed to build, because 1 dep (likely htmlunit-driver-standalone) failed to build
<samueldr>
I kinda felt bad about doing that, but this future-proofs addition of other rules
<samueldr>
and it ensures we only get rules
<therealwaphire[m>
you guys are fast
<clever>
samueldr: added another comment
<samueldr>
I'm always skittish about the rules of cp with globs, but yeah, I should
stepcut has joined #nixos
<clever>
samueldr: the globbing is handled by bash, so it turns into cp a b dest/
<samueldr>
yeah
stepcut has quit [Read error: Connection reset by peer]
<clever>
samueldr: and of note, the stdenv enables nullglob, which can cause weird bugs if somebody just does "echo do you want to install foo?"
stepcut has joined #nixos
<samueldr>
I don't remember what makes me always go with for :/
<samueldr>
(outside of nixpkgs)
<clever>
the ? is a glob character, and nullglob causes foo? to vanish
wfranzini has quit [Remote host closed the connection]
<joepie91>
slightly amended question: anybody here on 18.09 who could help me out by installing the `vscode` package in some way, and trying to run it as `code`? and telling me whether it shows a 'welcome' screen or whether the window remains blank with just a menubar showing
<slabity>
jD91mZM2: Unfortunately no. That appears to give all options instead of just the ones set in my system config
<joepie91>
(to rule out any packaging issues)
<samueldr>
joepie91: 18.09's vscode I guess?
gfv has quit [Ping timeout: 246 seconds]
<samueldr>
(doing it
<Android>
it isnt androidndk
<Android>
as nix-env -i android-ndk-r17c installs just fine
<catern>
hey #nixos, suppose the Nix daemon user can't access the configured binary cache for some reason, but I as a regular user do still have access to it, and I want to install something that's cached in it (and all the artifacts are signed)
stepcut has quit [Ping timeout: 245 seconds]
<joepie91>
samueldr: yeah, standard vscode from 18.09 without any patches or overrides
<catern>
so there's an obvious workaround: I can download the artifacts from the cache myself, then add them to the store manually
gfv has joined #nixos
Fare has quit [Ping timeout: 252 seconds]
<catern>
but is there an easy way to do this?
<joepie91>
(thanks!)
<therealwaphire[m>
guys please let me know when the PR is merged, haha
<joepie91>
samueldr: store path should end up being /nix/store/iqj0my863hi63s7jm03a0x1hwsl57hqj-vscode-1.32.1/bin/code
<therealwaphire[m>
for now I'll try clever's security wrapper example
<catern>
more generally, if I know the location of some binary cache whose signing key my Nix daemon trusts, but which isn't configured in my Nix daemon, what's the easiest way for me to install something from that binary cache?
<joepie91>
samueldr: right, not a packaging issue then I'm guessing
<samueldr>
note that this system should be vscode-free beforehand
<joepie91>
samueldr: time to nuke all state!
<joepie91>
samueldr: bizarrely, the failure mode is "fails to load a C++ Node extension"
<joepie91>
as far as I can tell
fosskers has quit [Remote host closed the connection]
stepcut has joined #nixos
<joepie91>
samueldr: hmmm. can you run it with `--verbose` and pastebin the output?
<joepie91>
minus sensitive data like env var dumps
<jD91mZM2>
slabity: Ah, my bad
<therealwaphire[m>
clever: even after that security wrapper, I'm getting permission denied
<clever>
therealwaphire[m: you might need to uninstall the solaar in home-manager
<therealwaphire[m>
I have
<therealwaphire[m>
I have it installed globally now
<samueldr>
joepie91: pm'd a gist
drakonis_ has joined #nixos
<clever>
therealwaphire[m: does solaar exist in `ls -lh /run/wrappers/bin/` ?
<therealwaphire[m>
oh wait, I have the home manager one intact but I don't think it's being used because I have it removed from home.nix and `which solaar` gives me the one under /run`
<therealwaphire[m>
yeah
elohmeier has joined #nixos
<clever>
therealwaphire[m: what does ls say about solaar?
<clever>
Android: ah, thats a haskell library, for speaking adb
<therealwaphire[m>
found a logitech device (/dev/hidrawo0) but did not have permission to open it
<clever>
Android: but not the CLI adb tool
drakonis has quit [Ping timeout: 252 seconds]
josiah_sama has joined #nixos
<clever>
Android: do you want the CLI adb tool, or the haskell library called adb?
Ariakenom_ has quit [Ping timeout: 246 seconds]
<clever>
Android: androidenv.androidPkgs_9_0.platform-tools has the CLI adb tool
<Android>
both
<avn>
may be haskell adb can work w/o android sdk? ;)
<clever>
Android: checking the haskell one...
<therealwaphire[m>
clever: tried adding the read permission to `user` but same result
<clever>
therealwaphire[m: it might be that solaar doesnt like being setuid root, setuid binaries are a bit weird, and have 2 uid's attached to them, and the app has to select which one to use at any given moment
<therealwaphire[m>
oh i see
josiah_sama has quit [Client Quit]
<clever>
so just blindly +s'ing something that isnt meant to be, wont actually give it full root
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
gfv has joined #nixos
bollu has quit [Ping timeout: 246 seconds]
endformationage has quit [Quit: WeeChat 2.3]
<therealwaphire[m>
on arch, `/usr/bin/soiaar` has -rwxr-xr-x
<clever>
Android: haskell.packages.ghc844.adb works
<clever>
therealwaphire[m: yeah, not setuid root, what about /dev/hidraw0 ?
<{^_^}>
[nixpkgs] @melchips opened pull request #57593 → parlatype: init at version 1.6-beta → https://git.io/fjeYs
<{^_^}>
[nixpkgs] @nyanloutre opened pull request #57594 → Electron cash update → https://git.io/fjeYG
<samueldr>
therealwaphire[m: archlinux uses the udev rules pretty sure (they did when I was using it back in the time)
<clever>
therealwaphire[m: this will copy a given storepath, from the local machine, to /mnt/nix/store on a remote machine
<therealwaphire[m>
yeah, copying is the problem :P
<clever>
therealwaphire[m: thats basically 80% of `nixops deploy`, but with a remote chroot
<clever>
and it almost replaces `nixos-install`
<therealwaphire[m>
oh
<therealwaphire[m>
I thought what nixops does is ssh onto the machine and downloads an image there or something
<therealwaphire[m>
because my local connection is slow
<clever>
nixops just uses `nix copy` to push a locally built copy to the remote machine
<clever>
and optionally, it lets the remote end use the nixos cache
<therealwaphire[m>
I see I see
stepcut has quit [Ping timeout: 272 seconds]
<therealwaphire[m>
but then, uh, is there any use of nixops after the deployment?
<gchristensen>
nixops is only involved at deploy time
<clever>
therealwaphire[m: updates are done by just re-running `nixops deploy`
<therealwaphire[m>
is it different from `autoUpgrade`?
<gchristensen>
don't use autoUpgrade with nixops
<clever>
therealwaphire[m: it only happens when you want to upgrade
jbgi has quit [Ping timeout: 250 seconds]
<therealwaphire[m>
no, no
<clever>
therealwaphire[m: and you can have the IP's of other machines in the nixops file, baked into eachothers config files
<therealwaphire[m>
I mean, having `autoUpgrade` in configuration.nix
<gchristensen>
don't use autoUpgrade with nixops
<therealwaphire[m>
clever: how does that help?
<clever>
he means the difference between using nixops, or using autoUpgrade
oida has joined #nixos
<therealwaphire[m>
gchristensen: no, man, I mean with
<clever>
therealwaphire[m: when you need to spin up 100 identical servers, and they all need to know eachothers IP's
<therealwaphire[m>
yeah
<therealwaphire[m>
what clever said
gfv has quit [Ping timeout: 246 seconds]
<therealwaphire[m>
I mean, first of all I'm not sure if I should have `autoUpgrade` in the first place? what do you guys do?
<clever>
i dont autoUpgrade anything
elohmeier has quit [Ping timeout: 246 seconds]
<gchristensen>
I've never used it
<therealwaphire[m>
I see
<infinisil>
I'd like to try it out at some point, would be neat
Ariakenom_ has joined #nixos
stepcut has joined #nixos
<therealwaphire[m>
clever: I still don't get why they need to know each others' IPs unless you're trying to form a cluster
Fare has joined #nixos
gfv has joined #nixos
<clever>
therealwaphire[m: yeah, it depends a lot on what your actually doing with the servers
<ixxie>
lets say I made a service with a web-based terminal that connects to a dedicated NixOS user environment in a VM shared accross users
<therealwaphire[m>
ah, well, I'll be on the safe side and not use `autoUpgrade` I guess
<clever>
therealwaphire[m: on my local network, i use nixops to manage both the router and nas, and it lets me update both with just `nixops deploy`, rather then having to ssh into each, git pull the cfg, and nixos-rebuild
<ixxie>
of course the system would be hardened as far as possible and users weakened in priveleges as much as necessary, would it be reasonable secure?
<therealwaphire[m>
clever: yeah, that's a good usecase tbh
drakonis has joined #nixos
<therealwaphire[m>
clever: can I use nixops to update servers with NixOS installed if I didn't use it for deployment?
<infinisil>
therealwaphire[m: clever: You can just use nixos-rebuild with --target-host to do the same though
<therealwaphire[m>
didn't know that :O
<clever>
therealwaphire[m: yep, both my nas and router started as normal nixos
<clever>
therealwaphire[m: the biggest issue, is that the cfg you deploy with nixops, must know how to make the machine boot
<clever>
so you have to get fileSystems."/" and boot.loader all set right
<therealwaphire[m>
in that case, isn't it easier to use `--target-host` with `nixos-rebuild` ?
<clever>
you still need to get that cfg right, when using --target-host
Dr8128 has quit [Ping timeout: 245 seconds]
<therealwaphire[m>
doesn't it use the cfg stored in the remote /etc/nixos/configuration.nix ?
drakonis_ has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @artemist opened pull request #57596 → nixos/nginx: add return option to location → https://git.io/fjeYP
<clever>
i think --target-host builds it locally, then copies it to the target host
<clever>
using the local cfg
<clever>
and you would likely want -I nixos-config=something.nix, or it will wind up being a clone of the local machine
<therealwaphire[m>
oh lol
<infinisil>
If you wanted to rebuild the remote machine with the remote config you could just do `ssh machine nixos-rebuild --switch`
<therealwaphire[m>
infinisil: yeah, true
<therealwaphire[m>
and I can repeat that once more since I only have two servers
thibm has joined #nixos
<therealwaphire[m>
or have them aliases
<therealwaphire[m>
aliased*
Glider_IRC has quit [Ping timeout: 252 seconds]
gfv has quit [Remote host closed the connection]
Shououo has quit [Remote host closed the connection]
Shouou has joined #nixos
rycwo has quit [Ping timeout: 250 seconds]
gfv has joined #nixos
Shouou has quit [Read error: Connection reset by peer]
alex`` has joined #nixos
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @orivej to master « cyrus-sasl: fix broken link when building without kerberos »: https://git.io/fjeYx
rycwo has joined #nixos
gfv has quit [Ping timeout: 245 seconds]
Fare has quit [Ping timeout: 246 seconds]
endformationage has joined #nixos
Fare has joined #nixos
gfv has joined #nixos
<{^_^}>
[nixops] @PsyanticY opened pull request #1112 → Vault Approle: fix default value of secretId → https://git.io/fjeYj
pie__ has quit [Remote host closed the connection]
elohmeier has joined #nixos
gfv has quit [Quit: Lost terminal]
pie__ has joined #nixos
Fare has quit [Ping timeout: 246 seconds]
<Izorkin>
How to need to merge this PR #51902 #56464
<makefu>
noonien: both options will then work for you :)
<noonien>
awesome
elohmeier has joined #nixos
rpg has joined #nixos
<makefu>
just imagine trying something similar with an ordinary distribution
<noonien>
yeah, i love nixos! :D
<noonien>
now i just have to make build-vm work :D
<noonien>
i get a kernel panic on boot
<cryptomonad>
Hi all. So this might not specifically be a nixos problem, but maybe you're kind enough to help anyway. I'm having an issue with dns; here are the symptoms: `ping <ipv4 of google>, ping <ipv6 of google>, nslookup google.com, host google.com` all work. `dig google.com, ping google.com` do not. resolv.conf seems to be ok.
<noonien>
i've got a bit of machine-specific configs, intel drivers, zfs, luks-encrypted root
<cryptomonad>
I'm not sure how to get more information that help me pinpoint the problem
<{^_^}>
kalbasit/shabka#161 (by kalbasit, 4 weeks ago, open): [Testing] build VM through nixos-rebuild
<yl>
maybe I'm wrong
<noonien>
cryptomonad: how does it not work?
<cryptomonad>
noonien: It times out and/or gives a "System error"
<noonien>
can you paste the output?
<cryptomonad>
Sure, give me a second
<Ariakenom_>
i got back into doing nix 7th pills and tried running "source ~/.nix-profile/etc/profile.d/nix.sh" but I don't have that file
<Ariakenom_>
was I supposed to have made that before and I forgot? or is it something else
<joepie91>
eh... I have a package in my Nix store that's remaining there despite having removed it from my system config, and having done a rebuild and a nix-collect-garbage --delete-old
<joepie91>
how do I find out why the package still exists?
rpg has quit [Ping timeout: 255 seconds]
<noonien>
joepie91: how have you removed it and where does it show up?
<joepie91>
by commenting it out in my systemPackages, and rebuilding + GCing
<joepie91>
not sure what you mean with "where does it show up"
<noonien>
you just `/nix/store/<path>`?
<noonien>
or are you trying to execute the command?
<joepie91>
and nix-store pointed at /nix/store/p2ckrws82dsh5hphw8dn2zpirbqr4wqy-nixos-system-desktop-home-18.09.2327.37694c8cc0e as the culprit
<joepie91>
which is a different revision
<joepie91>
isn't --delete-old supposed to delete all revisions except for the currently active one?
<noonien>
that's what the manual says
<Ariakenom_>
ah. from a previous pill I concluded that that doesn't apply when on nixos
<noonien>
sorry, i'm not much experienced with nix to help out any more. i'd try a reboot, but intuition says that wouldn't help
waleee has quit [Quit: WeeChat 2.4]
<Yaniel>
does fetchfromgithub fetch submodules?
<musicmatze>
Hey, I've just read the new nixos weekly newsletter... can we please stop posting articles like "Why you should never use NixOS" in the newsletter? It is mostly pushing bullshit to visibility and we really do not need that.
<joepie91>
`sudo nix-env -p /nix/var/nix/profiles/system --list-generations` only shows a single generation
samrose has joined #nixos
<musicmatze>
So please, whoever is in charge here, do not include such stuff in the newsletter... I really have better things to do than reading such rant articles.
<musicmatze>
I can open an issue on this in the nixos-weekly repo of course, if you want me to.
drakonis_ has joined #nixos
<joepie91>
that would probably be more effective
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<noonien>
Yaniel: it does if you specified `fetchSubmodules = true;`
<betawaffle>
is it an absolutely insane and bad idea to put the nix store on nfs?
<Yaniel>
nice
jbgi has joined #nixos
<musicmatze>
joepie91: Was your last message for me? :-)
<joepie91>
musicmatze: yeah
<Yaniel>
maybe this won't be completely terrible then
<noonien>
musicmatze: i also read the article before it was posted on the newsletter and found it to be a letdown (not because it's a rant, but because, IMHO, it's not a good one)
<symphorien>
betawaffle: you need a patch
<musicmatze>
Okay. Then I'll do that.
<betawaffle>
symphorien: what sort of patch? does that mean it isn't so crazy?
<musicmatze>
noonien: yes, I also think that it is not even well written, let alone researched properly
<symphorien>
betawaffle: I looking for it
<musicmatze>
I cannot speak for the AWS-specific stuff, but everything else is just bullshit (okay, we have really bad documentation, I get that... and I complain about it myself. But everything else is just bullshit).
<noonien>
i usually like criticisms of software i use, nix is not perfect, and without valid criticism, people might not be aware of its shortcomings
drakonis has quit [Ping timeout: 240 seconds]
<noonien>
documentation could be better, but it's not terrible
<noonien>
also, i would not compare nix with docker at all
<{^_^}>
nix#2357 (by wmertens, 30 weeks ago, open): Use sqlite dotfile vfs to allow use over NFS
o1lo01ol1o has quit [Remote host closed the connection]
<joepie91>
I think criticisms, even poorly informed ones, are useful because it shows how unfamiliar users perceive things, ie. where the sharp edges are UX-wise... however, that rant seemed to be particularly vitriolic, and not really with the intention to file genuine complaints
<symphorien>
then it works perfectly even with concurrent access from distinct hosts
<betawaffle>
symphorien: so i'm not the only one who had this idea, then
<joepie91>
it also had very little actionable feedback because it was 90% namecalling
<symphorien>
hehe :)
<betawaffle>
symphorien: any attempts to get this into nix proper?
<ddellacosta>
is there any sort of pattern-matching/destructuring kind of feature for sets in nix-lang?
rycwo has quit [Ping timeout: 268 seconds]
thibm has quit [Quit: WeeChat 2.2]
<ddellacosta>
oh I guess inherit is it?
<noonien>
i don't see why someone wouldn't run nixos in any "cloud" provider. i wouldn't run my services using it, but i'd probably let it run kubernetes for me
<symphorien>
betawaffle: not from me. I intend to put it on the wiki though at some point in the future
terlar has joined #nixos
<samrose>
Is there a way in partition schemes for nixos to split up partitions across 2 disks?
<musicmatze>
> i usually like criticisms of software i use, nix is not perfect, and without valid criticism, people might not be aware of its shortcomings
<musicmatze>
This. Constructive criticism - always! But this was not constructive at all.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):222:44
<musicmatze>
And Nix and Docker cannot be compared (note that the article compares nixOS and docker... which is even worse IMO)
<noonien>
ddellacosta: yes, it's used pretty much everywhere in nix
<noonien>
> ({x, y}: x + y}) {x = 3; y=7;}
<{^_^}>
error: syntax error, unexpected '}', expecting ')', at (string):222:15
<noonien>
({x, y}: x + y) {x = 3; y=7;}
<noonien>
GRR
<cryptomonad>
noonien: I'm not sure if I copied the right things, though... It's quite some manual labour :)
<noonien>
> ({x, y}: x + y) {x = 3; y=7;}
<{^_^}>
10
<joepie91>
okay, so I think I have a better description of why this particular rant bothered me (cc musicmatze): it wasn't so much that the author doesn't understand much about Nix, which is fine and can still be useful feedback, but rather that they seemed to assume that that MUST be a problem with Nix and it couldn't possibly be a lack of understanding on their part and therefore ranted about it as if they came from a place of understanding
rpg has joined #nixos
<ddellacosta>
noonien: oh cool, thanks! I think I saw that and then promptly forgot about it
<joepie91>
and that makes it particularly useless for the purpose of improving the tools
<musicmatze>
joepie91: I second this. May I quote you in the issue I just created?
<ddellacosta>
noonien: I wonder if that only works in the context of functions though?
<joepie91>
musicmatze: sure
<ddellacosta>
well, guess I'll just try it and see
<joepie91>
musicmatze: hold on, I also have a contrasting example
<noonien>
ddellacosta: yes, otherwhise you'd have to use inherit.
<ddellacosta>
noonien: gotcha, thanks
<noonien>
or, you can do something like
<noonien>
> { x = 3; y = 5; } // { z = 6; }
<{^_^}>
{ x = 3; y = 5; z = 6; }
reinhardt has joined #nixos
<ddellacosta>
musicmatze: leaving aside the rest of your comments, I'm curious why you say Docker and Nix can't be compared
<{^_^}>
nixos-weekly#89 (by matthiasbeyer, 1 minute ago, open): Please do not include rant articles
<musicmatze>
joepie91: ^
<joepie91>
musicmatze: https://www.youtube.com/watch?v=QujRHErFG4w -- this video is a review (sort of) of NixOS by somebody who doesn't really understand it, but because they acknowledge it as such and don't lash out at people, it's still useful feedback
<joepie91>
because it highlights unintuitive things
<noonien>
cryptomonad: try using something like ix.io or vpaste.net
<ddellacosta>
noonien: that's for merging two sets together though, right? I'm more looking for ways to split sets up, although I think with the function syntax you've given me along with `inherit`, I've got everything I need
<joepie91>
which contrasts nicely with the ranty potential of the nixos-weekly entry :)
o1lo01ol1o has joined #nixos
<cryptomonad>
noonien: I don't have network on the troubled machine :/. At least no dns
<joepie91>
musicmatze: I may post later, but I'm currently debuggiing an issue, heh
<noonien>
ddellacosta: yes, it's for merging sets, but, all `inherit (foo) bar;` does, is `bar = foo.bar;`
<musicmatze>
okay.
<cryptomonad>
noonien: let me see what I can do.
<noonien>
cryptomonad: oh, then pipe it to a file, and copy all the file, i'm just interested in the strace for dig, it should be a lot longer
<joepie91>
well shit. I think the VS Code build in nixpkgs is impure
<joepie91>
in that it produces a broken build under certain circumstances, and I *suspect* those circumstances to be "have nodejs-10_x installed in systemPackages"
technoidX has joined #nixos
Profpatsch has joined #nixos
Profpatsch has left #nixos ["WeeChat 0.4.3"]
<joepie91>
I'll have to test this later...
technoid- has quit [Remote host closed the connection]
<joepie91>
if anybody else has some spare time, feel free to take over that particular bit of work from me :D
M-Gregoire has quit [Quit: Ping timeout (120 seconds)]
<ddellacosta>
musicmatze: oh jeez I just actually looked at that article--I accidentally found the exact same piece searching for something else last week, and immediately left the page because it was clear that it was a pretty dumb rant without a lot of useful criticism. I'm disappointed it was actually promoted by anyone associated with Nix/NixOS itself. Maybe I'll comment on your github issue in support...
rev_strangehope has quit [Ping timeout: 240 seconds]
<joepie91>
hypothesis is that it works fine if the package is built (locally) with `nodejs` installed, but not with `nodejs-10_x` installed, at which point starting VS Code will greet you with a blank screen
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<ajs124>
Am I doing something wrong or are there some problems with haskell stuff on master (or rather nixos-unstable-small) right now?
Orbstheorem has quit [Ping timeout: 240 seconds]
<ajs124>
I'm getting this error: attribute 'pandoc' missing, at /nix/store/6f4vil37bcd9760rcwdzl5jx0fk8lggf-nixos-unstable-19.09pre172515.eb2a26f5c61/nixos-unstable/pkgs/top-level/all-packages.nix:4755:73
<noonien>
does `nixos-rebuild build-vm` work for anyone?
<betawaffle>
can i say something semi-related to that nixos-weekly ticket? actual constructive criticism
growpotkin has joined #nixos
<noonien>
cryptomonad: what does dig @1.1.1.1 google.com says?
<noonien>
say*
<noonien>
betawaffle: don't ask to say :D
ilmu has joined #nixos
growpotkin has quit [Client Quit]
<betawaffle>
well, i really love nix/nixos. but it does sometimes feel messy to work with
<cryptomonad>
noonien: same. "connection timed out; no servers could be reached"
<noonien>
betawaffle: compared to what? and while doing what?
<earldouglas>
This might not be the right channel for this, but does anyone know of anything akin to NixOps, but for smartphones? I want a way to manage my phone's configuration as code, rather than manually configuring it all the time.
<betawaffle>
noonien: well... tbh most OSes can feel pretty messy if you get into the guts. but with nixos, it *is* the guts, there isn't much else
<ajs124>
cryptomonad, how about dig +tcp @1.1.1.1 google.com
<cryptomonad>
noonien: well it says "; (1 server found)" after the banner, so that's different than "dig google.com"
<cryptomonad>
noonien: full normal answer
<noonien>
earldouglas: not yet :( there is a WIP of getting nix running in termux
<cryptomonad>
noonien: yup. with the +tcp flag i get normal answers
<noonien>
hehe, ajs124 suggested that
growpotkin has joined #nixos
<betawaffle>
noonien: but i like nixos so much, i can't really see myself not using it everywhere now
<noonien>
that might mean something is blocking port 53 UDP
iclanzan has quit [Quit: leaving]
<cryptomonad>
noonien: looking into iptables atm
<noonien>
betawaffle: same, i'm pretty new to it as well, had quite a few crashes (mostly due to not adding the right drivers), that resulted in an unbootable system 2 times, but having configuration.nix, i just reinstalled in ~20mins
domogled has joined #nixos
<noonien>
and my system was in the exact state it was before getting borked
<betawaffle>
you know what would be great... a series of articles walking through the internals of nixos. something like linux from scratch, nix edition
<noonien>
tooling doesn't seem as mature, but it's mature enough to consider my nixos installation as stable as my old, ubuntu one
<noonien>
the binary caches is what sold it for me
<noonien>
(along with the declarative configuration, of course)
<betawaffle>
i can't stand old-style linux anymore. i don't want non-declarative systems
Fare has joined #nixos
acarrico has quit [Ping timeout: 268 seconds]
<betawaffle>
i just don't know enough about how it goes from configuration -> actual system. i don't quite trust it yet
<noonien>
i do wish the cross-compilation would have been better, and there are some parts of the nix language i don't like that are too late to be changed imho
<betawaffle>
too much perl :P
<noonien>
you don't understand how derivations are realised? or how nixos-rebuild works?
<ddellacosta>
musicmatze: okay, added another comment in support. I had to go back and re-read that piece of garbage and it was even worse than I'd thought...
<betawaffle>
derivations mostly make sense to me at this point. but no, definitely don't understand nixos-rebuild yet
<ddellacosta>
I _am_ still curious why you don't think you can compare Nix and Docker though, seems like there is definitely overlap there that is worth exploring and comparing, even if they are somewhat orthogonal technologies
<ddellacosta>
to be clear, this piece is not what I'm talking about...haha
q6AA4FD has quit [Remote host closed the connection]
nikivi has quit [Read error: Connection reset by peer]
<noonien>
betawaffle: i'm not too sure either, but i see `vi $(which nixos-rebuild)` is readable
<betawaffle>
noonien: i have too many interests and not enough time to read all the internals myself
<terlar>
I am trying to install NixOS on a new machine, and see a lot of SQUASHFS errors, and can't even run commands such as lsblk, etc. Have anyone experienced this before? I have booted to the "live CD" via USB and at some point during the installation closed the laptop and removed the USB and wonder if that could cause this kind of error to appear. I have installed the same brand/make of laptop successfully before. As I don't have the boot
<terlar>
password, I cannot reboot, so it would be nice if there was a solution without rebooting. Otherwise I have to give it a go tomorrow when IT-support can provide the boot password again. However if there is a way I would like to get it working today :)
<noonien>
ddellacosta: nix is a package manager, nixos is an operating systemm, docker is an application container
<betawaffle>
i did poke around most of the nixpkgs repo, though
<noonien>
while you could say there is some overlap, the usage is quite different
<noonien>
ddellacosta: sure, I would use nix to create my containers, but docker is enough for e atm. i certainly would not use nixos to replace, for exammple, kubernetes
<simpson>
noonien: There's several incremental approaches; my favorite is `FROM nixos/nix`
<noonien>
it's unclear to me what advantage that might provide, i usually either use already existing docker images, or build my own, using multi-stage builds, ending in usually just a binary in a container, FROM nixos/nix doesn't help there, perhaps nix can help build that image though
rfold has joined #nixos
justan0theruser has quit [Ping timeout: 246 seconds]
<clever>
betawaffle: basically, nixos-rebuild is just `nix-build '<nixos/nixos>' -A system && ./result/bin/switch-to-configuration switch`
<clr_>
noonien: If you're just shipping binaries in containers, the main advantage may be reproducability of your containers (especially if you have nix build them).
<noonien>
i will try to use nix at work more, but the go build systemm is so easy, anything on top is just extra unneeded complication
<clr_>
But it all really depends on your setup.
<betawaffle>
clever: then i guess the switch-to-configuration script might be the part that boggles me
<betawaffle>
but i haven't figured out nix-build yet either
<noonien>
i do wish the nix language actually had sommething similar to go's import system, {..} on top looks like a hack to me
rauno has joined #nixos
<clever>
betawaffle: the switch-to-configuration script deals with updating symlinks in /etc/ and restarting systemd services, and updating the main /run/current-system symlink
<clever>
betawaffle: the nix expressions have already turned the config into a full system, which is living in /nix/store/
<betawaffle>
has anyone used nix to build embedded systems?
<clever>
betawaffle: not-os, haskell-init
<betawaffle>
haskell-init?
<cryptomonad>
noonien: Hmm.. doens't seem to be iptables. other hosts on the network work fine. what else could it be?
<clever>
betawaffle: https://github.com/cleverca22/not-os is based on nixos, but it strips out all the garbage like systemd, the entire rootfs is 47mb
<noonien>
clever liked a repo of his that had firmware for his thermometer that was built with nix, nothing fancy though
<noonien>
i am curious if anyone built OSes similar to how yocto does it, for example
<clever>
all 3 can be built using nix
growpotkin has quit [Quit: Page closed]
<betawaffle>
wow, that's the sort of thing i'm looking for. thanks clever
<noonien>
i'm unsure how much garbage is in /nix/store after a garbage collect, if any
growpotkin has joined #nixos
<clever>
noonien: if you run nix-collect-garbage with no args, then no garbage will remain, but there can be things that random result links hold onto, that is technically "not garbage"
Guest16366 has quit [Ping timeout: 246 seconds]
pie_ has joined #nixos
<Fare>
qiv is still unstable in the latest nixos 19.03 (or in unstable) :-/ I gotta do a git bisect in my copious free time.
<noonien>
can anyone try a quick `nixos-rebuild build-vm` and then running the vm please? i'm trying to figure out if this a bug or an issue with my config
<clever>
noonien: boots just fine
<noonien>
clever: thanks!
<noonien>
i'm guessing you don't have any weird config, like luks encrypted rootfs
xkapastel has quit [Quit: Connection closed for inactivity]
ddellacosta has quit [Ping timeout: 244 seconds]
elibrokeit has quit [Quit: A random quit message]
ddellacosta has joined #nixos
elibrokeit has joined #nixos
evanm has quit [Ping timeout: 256 seconds]
agander has joined #nixos
growpotkin has quit [Quit: Page closed]
grizwako has quit [Remote host closed the connection]
growpotkin has joined #nixos
<noonien>
interesting
<clever>
terlar: how did you write the nixos iso to the usb?
Ralith_ has quit [Quit: Lost terminal]
Ralith_ has joined #nixos
utdemir has joined #nixos
<noonien>
ah, i didn't run build-vm with sudo, nor did i run the VM with sudo, it seems to work just fine now :D
<clever>
noonien: the VM shouldnt need root
slack1256 has joined #nixos
<noonien>
build-vm ran just fine without root
<noonien>
no errors, running again with sudo seems to have done nothing
Glider_IRC has joined #nixos
growpotkin has quit [Quit: Page closed]
ihar has joined #nixos
<terlar>
clever: I wrote it with the dd command, the thing is I used the same USB to install the other computer, but that was like 2 months ago, so I guess the memory stick could have gone bad by then, but I doubt it
<clever>
terlar: it could also be that you just happened to bump into the stick and unplug it while the machine was running
<terlar>
Yes, would it be possible to reload/refresh the stick without rebooting?
nSeagull has joined #nixos
<terlar>
I did unplug it after I had booted into the nixos shell
<azazel>
is it possible to alter how processes started inside a nix-shell resolve hostnames?
<ajs124>
Can anyone here tell me if "nix-shell -I nixpkgs=https://nixos.org/channels/nixos-unstable-small/nixexprs.tar.xz -p pandoc" works on their system?
<clever>
terlar: not really, you have to be running from something else to image the usb
<ihar>
anonymous function at /home/ihar/git/nixpkgs/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'meta', at /home/ihar/git/nixpkgs/pkgs/build-support/fetchpatch/default.nix:10:1
<ihar>
without the patch to patchelf nix it works fine
<terlar>
What do you mean by image the USB?
<clever>
ihar: you must provide a valid sha256 to fetchpatch
NickSeagull has quit [Ping timeout: 245 seconds]
<clever>
terlar: write the iso to the usb again
<ihar>
clever: yes though in the past when I applied patches to other packages with the exact same method I left it empty then copied sha256 from the error output to speed things up. hence I left it empty there.
doyougnu has quit [Ping timeout: 246 seconds]
<terlar>
okay, but I would have to reboot again to boot from that one, there would be no way to repair the state
<pie_>
> nixos-container destroy cucko-contr
<{^_^}>
attempt to call something which is not a function but a set, at (string):222:1
<pie_>
/run/current-system/sw/bin/nixos-container: cannot destroy declarative container (remove it from your configuration.nix instead)
<clever>
ihar: there was a bug in nix, where an empty hash would allow network access, but never validate the output
<pie_>
well thats kind of misleading, because the problem was i ran it without sudo
<clever>
,tofu ihar
<{^_^}>
ihar: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever>
ihar: nix has been patched to not allow that anymore
<terlar>
Because IT support have to be the ones selecting the boot device, which is a bit annoying, so I can't try to reboot until tomorrow then. Although I am inside the booted nix install from the USB currently, which I guess is from memory since it loaded it
elohmeier has quit [Quit: Lost terminal]
<azazel>
pie_: seems stuff for a bug report
<pie_>
azazel, which github project?
<ihar>
clever: neat. but I've just copied a sha256 from another package and I still get same.
<noonien>
ajs124: i'm running, my internet is a bit slow so you'll have to bear with me
<azazel>
ajs124: it works
<clever>
terlar: yeah, the os is pretty much broken, because the root disk is missing, and its relying purely on what happens to be in the read cache
<terlar>
ah, I see :/
<ajs124>
azazel, thanks. So there's something wrong with my systems then -.-
<clever>
ihar: oh, patchelf is used by the stdenv, so patchelf gets a different fetchurl, and i think fetchpatch is passing meta to fetchurl
<clever>
ihar: try using just fetchurl directly?
<ihar>
clever: sorry, "directly"?
<clever>
ihar: just use fetchurl, rather then fetchpatch
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<pie_>
azazel, im trying to do it the "imperative containers" way though
<clever>
pie_: did you create it with nixos-container ?
<pie_>
clever, create what?
reilithion has joined #nixos
<pie_>
the log shows me creating it
<clever>
pie_: what does this output? `strace -f -e execve -s 3000 nixos-container ...`
ddellacosta has quit [Quit: WeeChat 2.2]
acarrico has joined #nixos
slack1256 has quit [Remote host closed the connection]
clstb has quit [Ping timeout: 256 seconds]
stepcut has quit [Ping timeout: 240 seconds]
<cryptomonad>
noonien: I figured it out. My initial diagnosis that the rest of the network works with UDP was wrong and I had to add "use-vc" to resolv.conf. dig still doesn't work without options but everything else does.
pie___ has joined #nixos
<pie___>
clever, my guess it its just dropping this in the container instead of evaliating the import outside it
<cryptomonad>
thank you very much! would have never figured it out :)
<noonien>
can the nixos installed be run from pxe?
<clever>
noonien: yep
<pie___>
clever, error: The unique option `networking.hostName' is defined multiple times, in `/home/nixos/stuff/nixapps/cuckoo/containers/cuck-contr.nix' and `/var/lib/containers/test/etc/nixos/configuration.nix'.
<pie___>
«derivation
drakonis_ has quit [Ping timeout: 252 seconds]
<clever>
pie___: oh, both files are setting the same option, at mkDefault level
<clever>
pie___: so they are colliding!
jbgi has quit [Ping timeout: 252 seconds]
<pie___>
clever, ok so maybe these are things im not supposed to set myself?
ddellacosta has joined #nixos
<clever>
pie___: you should set it without mkDefault
<pie___>
so i guess i cant just copy a configuration.nix out of an image and expect it to work?
<pie___>
hm ok
<noonien>
cool, any info on that? i convinced a friend to install nixos, but he doesn't have an usb stick, i remember there being a PXE app for android, but i need to provide nixos
<pie___>
idk why the mkdefault is there, i just copied it out of an existing vm
<{^_^}>
[nixpkgs] @worldofpeace pushed 6 commits to gnome-3.32: https://git.io/fjesw
<clever>
or not set it at all, and let nixos-container provide a default
<clever>
noonien: 3 will take the same basic nix expressions, and then mutate your laptop to behave more like a router, with full pxe booting configured
<ddellacosta>
is './.' used anywhere other than for `import`, and is it just shorthand for './default.nix'?
vk3wtf has quit [Ping timeout: 240 seconds]
<azazel>
ddellacosta: yes
pie___ has joined #nixos
pie___ has quit [Changing host]
<azazel>
ddellacosta: to the last ;-)
<ddellacosta>
azazel: you're responding to the second part of my question, right?
<ddellacosta>
jinx, haha
<ddellacosta>
azazel: thanks!
<symphorien>
ddellacosta: you can use src = ./.;
<symphorien>
then it is a shorthand for .
<symphorien>
the behavior of import on directories is to look for a default.nix in it
rcshm has quit [Remote host closed the connection]
<cryptomonad>
My laptop disconnects my usb-keyboard when I close the lid, which in turn makes the system wake up if it was suspended. Where do I control which events cause the system to wake up?
rcshm has joined #nixos
stepcut has joined #nixos
<azazel>
cryptomonad: I would look into acpi subsystem, but I don't know how to help you more precisely
<clever>
noonien: yeah, that will also build a vm, but it may also need a -I nixos-config= if you want to change the cfg it uses
<noonien>
yes, it does, i just went with your command just to be safe
doyougnu has joined #nixos
<sm[m]>
g'day all. Thanks for nix. A question: will nix-env -i THING-VERSION work, if THING-VERSION was added to the channel since the user last did a channel update ?
wfranzini has quit [Remote host closed the connection]
<infinisil>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<sm>
I thought there'd be a reasonably short command to "get the latest available version of one package from nix unstable", but maybe that's too alien to how nix works ?
<terlar>
Is anyone knowledgable in how the Emacs load-path is generated? It seems it is way too liberate in the paths it adds
<noonien>
`ls /nix/store | wc -l` -> 11
<noonien>
also, that file does not exist
<clever>
noonien: you want /mnt-root/nix/store/
<noonien>
oh
<noonien>
`-r-xr-xr-x 1 0 0 5127 Jan 1 1970 nix/store/yp1zk95186rqcvnnp3xl6lgbnvg00bnd-nixos-system-nomad-18.09.2327.37694c8cc0e/init`
<clever>
noonien: and what about the contents of /proc/mounts ?
<noonien>
all files in that derivation seems to be 0 sized
<noonien>
can check other derivations
<clever>
noonien: thats uid 0 group 0, size 5127 bytes
rprije has joined #nixos
<noonien>
oops, my bad
<noonien>
hmm
<clever>
/etc/passwd is missing, so it cant translate 0 -> root
drakonis_ has joined #nixos
<noonien>
cat does not work though, i get `cat: can't open 'nix/store/yp1zk95186rqcvnnp3xl6lgbnvg00bnd-nixos-system-nomad-18.09.2327.37694c8cc0e/init': Operation not permitted`
<noonien>
ill check procmounts
knupfer has quit [Ping timeout: 240 seconds]
<clever>
noonien: how is /nix/store setup on the host?
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
noonien: so qemu on the host is failing to open the init file, and forwarding the error down to the guest
<noonien>
cat-ing as the user works just fine
<noonien>
hmm, perhaps some missing caps?
Dr8128 has quit [Ping timeout: 272 seconds]
<clever>
noonien: cat /proc/<pid>/status on the host, with qemu's pid, then look at the uid: and gid:, what does it say?
<noonien>
http://vpaste.net/YRfsQ this is the content of `run-nomad-vm` if it helps with anything
<clever>
though is o+r, so it shouldnt matter
<ajs124>
Some of the jobsets in my hydra seem to be stuck evaluating, any ideas how to debug this? I already restarted the evaluator (and queue-runner), but that hasn't helped.
<clever>
ajs124: is there a hydra-eval-jobs process running for it?
<clever>
ajs124: what does the journal for hydra-evaluator say?
<noonien>
Uid:1000100010001000, Gid:100100100100
<noonien>
looks fine
<clever>
noonien: yep
<{^_^}>
[nixpkgs] @jtojnar opened pull request #57603 → wrapGAppsHook: add package’s own modules to GIO_EXTRA_MODULES → https://git.io/fjeZz
<sm>
is it normal for downloads from cache.nixos.org to be slow ? eg 10s of K/s
<noonien>
eh, anyway, i'll just sudo, it works so it's not a problem
<ajs124>
clever, there are two hydra-eval-jobs processes running for each of the two stuck jobsets. journal just says "starting evaluation of jobset" and then nothing related to those jobsets.
<clever>
noonien: that is a very weird issue, but i cant see anything obvious
<noonien>
is there a way of making the VM faster?
Nivpgir has joined #nixos
<noonien>
hmm, i can just pass flags to qemu right?
<clever>
noonien: kvm, but i believe you already have it
<noonien>
i can just increase cpus and memory
<ajs124>
noonien, you can give it more RAM, it defaults to 512M
<clever>
noonien: yeah, all args to the bash script get forwarded to qemu
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
<clever>
ajs124: are the hydra-eval-jobs processes using a lot of cpu?
<sm>
clever: I'm not seeing errors, it just seems unnecessarily slow
<Nivpgir>
hi all, complete newbie here... I'm having trouble with haskell related packages
<ajs124>
clever, not right now, no. They just seem stuck. I think they might use a lot of cpu initially. I'll restart them real quick.
<clever>
ajs124: are you doing any IFD?
<clever>
ajs124: IFD results in hydra having to build a lot of things just to eval, and it cant give status when doing so
<ajs124>
IFD?
pmiddend has quit [Ping timeout: 252 seconds]
<clever>
ajs124: import from derivation
<clever>
ajs124: can you pastebin the output of `ps -eH x` ?
<Nivpgir>
I'm trying to use xmonad with taffybar, xmonad works fine, defined in configuration.nix, using it right now, I have taffy bar, I have taffybar define in my home.nix file (using home-manager), for some reason when trying to compile my taffybar config it can't import anything under System.Taffybar, same for xmonads config, but when I open ghci and wr
<Nivpgir>
ite: import System.Taffybar, it imports just fine
<sm>
nix's online docs are great, but how would I get offline docs, on a mac ? I have only --help right now
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to master « pacman: 5.1.2 -> 5.1.3 (#57563) »: https://git.io/fjeZQ
<ajs124>
clever, it works now. I can't strace, because the process finished evaluating...
<ajs124>
I don't think I changed anything. Oh well.
<clever>
ajs124: often times, the first eval is fairly slow, as it builds up all of the .drv files
<{^_^}>
[nixpkgs] @dtzWill opened pull request #57606 → vttest: init at 20190105 → https://git.io/fjeZb
<noonien>
free reports more memory usage than i can find in htop processes
<noonien>
OH, hehe, might be zfs
josiah_sama has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
<sm>
infinisil: time will tell, but "nix-env -f channel:nixos-unstable -iA hledger hledger-ui hledger-web" seems like the right solution for me. Thanks!
nSeagull has quit [Quit: WeeChat 2.4]
<sm>
would it be fair to say that people running this can expect to see a lot of building of things not yet on the cache server ?
<{^_^}>
[nixpkgs] @xeji pushed commit from @aaronduino to master « sublimetext3: 3176 -> 3200 (#57600) »: https://git.io/fjenk
<clever>
noonien: ah, zfs usage doesnt show up in a lot of utils, but it will shrink on its own when needed, as long as you dont try to get too much at once
<noonien>
just did a `echo 2 | sudo tee /proc/sys/vm/drop_caches` which seems to have helped
<noonien>
i had enough, becausei have 16Gb on this laptop, but i wanted to make sure apps don't start crashing, since i don't hae a swap
<newhoggy>
I'm using MacOS
<clever>
noonien: 32gig of ram on my laptop&desktop
Fare has joined #nixos
<Nivpgir>
yeah... okay... I'll just come back tomorrow
<infinisil>
sm: Hmm that's odd, it works without building anything for me
<noonien>
yeah, i'm planning on buying a new laptop once USB4 becomes a thing
<sm>
also I'm surprised by the unpacked size being installed (2G, or 2.4G the second time). When I installed hledger using a previous nix-env command, there was only about 300M in /nix
<clever>
sm: it likely depends on ghc itself, which is massive
<avn>
noonien: I use small ssd to l2arc and swap with spinning disks full of zfs ;)
<infinisil>
clever: But why would it compile for them, but not for me
* sm
wonders how the earlier one worked.. didn't install ghc, because everything it needed was already built in cache ?
<noonien>
avn: this zfs is on a ssd, no extra drives
<noonien>
i'm mostly using zfs for snapshots
<clever>
newhoggy: you need a newer nixpkgs i believe
<noonien>
i LOVE 15min/1hour/daily/monthly snapshots
<ajs124>
clever, I get that evaluation can take some time, but we're talking about >45min here. Then again, what the jobset is building are 16-17 nixos systems.
<noonien>
jtojnar: i don't like rust
<DigitalKiwi>
worldofpeace: so the thing i've been packaging hits the same problems related to pybind11 as this https://github.com/NixOS/nixpkgs/pull/56082 basically i can't get it to work right without the same patches they made to pybind11 either ...so i don't know what to do heh
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « xosview2: 2.3.0 -> 2.3.1 (#57515) »: https://git.io/fjend
Nivpgir has joined #nixos
<sm>
infinisil: thank you, though that's above my nix level. I will test some more when the builder is healthy again.. may I ask what page you are watching to see its status
<DigitalKiwi>
worldofpeace: also i have questions about how to figure out what goes in propagatedbuildinputs vs buildinputs vs checkinputs for python stuff and how to figure out which
<gchristensen>
yeah, as dotlambda, from time to time
<infinisil>
sm: Even then, your darwin users wouldn't have a cached version, they'd have to build it themselves (with any variation of install commands)
<sm>
but I'm curious how I installed hledger with nix the first time without all this building
<{^_^}>
[nixpkgs] @dotlambda pushed 2 commits to release-19.03: https://git.io/fjecJ
<sm>
with "nix-env -i hledger hledger-ui hledger-web"
<ajs124>
I'm trying to figure out if there is a (good) way to incorporate secret build inputs into a nix build, without putting them into the store or making them available to all builders. More preciseley, I'm talking about (private) signing keys needed in a build.
<sm>
after installing from the website
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
Alternative: Fix the dependency build, and set up some way to be notified of breakage, i think even hydra can do that by sending emails
<sm>
unfortunately I have far too much of that already.. but I think peti might help me out here
<sm>
it seems like maybe I should have a waning note on the download page though
domogled has joined #nixos
jackdk has joined #nixos
<infinisil>
So you want it to use a fixed nixpkgs version?
Nivpgir has quit [Ping timeout: 250 seconds]
<sm>
("that" = dealing with haskell build breakages on various platforms)
<clever>
noonien: looks like #nixos-dev is already looking into your qemu problems
<sm>
s/waning/warning/
stepcut has quit [Ping timeout: 268 seconds]
<sm>
infinisil: not really, I guess want it to install the latest version of hledger quickly if possible, and to fail if it can't do that. So don't do a huge build if there's some transient breakage, and of course don't silently install an older version
justanotheruser is now known as biden
<sm>
I probably can't get it just right, so looking for the best command to recommend new users so they won't come away feeling unhappy
Fare has quit [Ping timeout: 272 seconds]
<infinisil>
Hmm yeah, so that's kind of annoying to do with Nix unfortunately, you'd have to manually mark the package as broken in nixpkgs to make it fail early
biden is now known as justanotheruser
Fare has joined #nixos
<sm>
fair enough. I think I'll pick one of the commands so far and add a note to try --dry-run and what sort of size to expect
<infinisil>
sm: I personally would recommend a pinned nixpkgs version, but if you don't want to do that, there's something else you can do, which will work very well
kholerabbi has quit [Quit: leaving]
<infinisil>
Namely, adding a default.nix file to your project, building the things yourself, then uploading the result to https://cachix.org/
<sm>
thanks, noted
<infinisil>
sm: Then users can get a cached version that doesn't depend on NixOS' hydra and they can always get the latest version
<sm>
what would the command look like with a pinned version ?