<eyJhb>
Can I get fetchFromGithub to NOT remove the .git dir?
<matthewcroughan>
Hey hey, do y'all think you could help me? I was wanting to make a video on Alpine but turns out it's just not set up for what I wanted to do in a lot of ways.
<matthewcroughan>
"Lightweight Audio Workstation with Alpine Linux" was going to be the video title, but as I dug into it, it's just so much harder than I thought it was going to be for lots of reasons, regarding not using standard linux stuff like linux-pam.
<matthewcroughan>
Not using linux-pam meant I couldn't set limits.conf, could never figure that out. A lot of set up and state was therefore required to be enstated by the user. So it's not exactly lightweight if it requires so much mental work/.
<matthewcroughan>
The benefit of alpine however was that I could pre-generate it using a tool called pmbootstrap, which means I can generate the OS on my laptop, then flash it to an SD card, and boot it on the machine. How can I do this with NixOS?
justanotheruser has quit [Ping timeout: 244 seconds]
<wucke13>
matthewcroughan: It is possible to generate an iso for nixos from nixos with any confige baked into it.
<wucke13>
And there is musnix, which is a nixos tailored to audio mixing needs
<ivan>
my hydra-unstable + missing signature problem yesterday may have been caused by `store_uri = daemon`
<wucke13>
I'd suggest that you start of by giving musnix a try. IIRC is already includes quite some deep changes for good audio behaviour, like realtime patches and so on
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJwuo
<hexa->
eyJhb: fetchgit has leaveDotGit, I don't see anything similiar for fetchFromGitHub
<matthewcroughan>
That is so incredibly interesting x_x
<cole-h>
eyJhb: AFAIK that isn't possible, because fetchFromGitHub just pulls the tarball from GitHub -- GitHub would need to add the .git to the tarball
<clever>
cole-h: but if you tell fetchFromGitHub to fetchSubmodules, it cheats and uses fetchgit instead
<cole-h>
Right
<eyJhb>
cole-h and hexa- almost correct! You can get fetchFromGithub to have the .git, if you use fetchSubmodules, as it will then use fetchGit
<eyJhb>
But then might delete it
<eyJhb>
But I was using fetchFromGitlab with even LESS options....
<eyJhb>
So ended with fetchGit
<eyJhb>
Another app down
<eyJhb>
I think I can start to pretty up the build process by now
<eyJhb>
Night! 02:30 here
<eyJhb>
I am a idiot.
<colemickens>
I'll say.
<colemickens>
Not really, of course :P.
<cole-h>
colemickens: You've switched to flakes, right? How pain{less,ful} was it?
<colemickens>
cole-h: I love flakes. I have a number of friction points with the Nix CLI. I kept my custom system and flakes side-by-side for a week, but it quickly became obvious that it was pointless.
<colemickens>
I am still on the fence about certain other aspects of flakes (url syntax, registries) but the core concept is a big step forward for Nix project composability.
<colemickens>
All in all, once I got the hang of what a flake.nix should look like (thanks bqv, and others), it was painless.
<cole-h>
Do you have your config public somewhere?
<colemickens>
I've converted my personal repo, nixpkgs-wayland, started flake-firefox-nightly and two other private new flake-based projects. :)
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/JJwuD
<colemickens>
each machine loads a profile/{gui/interactive/base.nix} which then load mixins/*.nix for gpg/sway/bash/etc config
<colemickens>
more or less you should be able to write a flake.nix and leave most of your existing config in place (upgrading your overlay usages to consume them via their flake input instead). There are examples of that in my config. I'm happy to point out anything more specifically too if it would help at all :)
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #91293 → treewide: Get rid of `cc.gcc` → https://git.io/JfA7m
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/JJwuQ
<cole-h>
colemickens: Ah, I didn't even look at your GH at all because of your "my GitHub will transition to being a mirror of my own Git repos" :P
<cole-h>
Thanks, I'll have a look.
<colemickens>
cole-h: once upon a time that was higher on my priority list
<cole-h>
Heh
higemaru has quit [Ping timeout: 245 seconds]
<cole-h>
colemickens: Immediate feedback: it's cool to see all the channels being able to be declared at once (master, stable, unstable, etc)
<cole-h>
colemickens: Also, probably want to update your nix.url, now that flakes is in master ;)
<colemickens>
I think it's time to give ti the boot. I never actually wound up consuming anything from that flake.
<colemickens>
There's a #????????? line later on that's commented out :P
<cole-h>
hahaha, I see it
<colemickens>
Other cool things: flake evals are fast, just a nice thing every time.
<cole-h>
Yeah, that's one of the reasons I wanna switch
<cole-h>
No more 1038219083 seconds after running a command before I get feedback
<bqv>
colemickens: it works for me (nix)
<bqv>
But theres always nixUnstable
<cole-h>
colemickens: Is your home input pointing to your fork because your fork has some flakes integration that ryc*e doesn't yet?
<colemickens>
this reminds me zimbatm gave me some awesome tips/feedback that I want to re-inspect and apply to my repos.
<colemickens>
cole-h: H-M master doesn't have flakes merged in, and yes, I'm carrying the waybar PR on top of bqv-flakes on top of master right now.
<cole-h>
Got it
<colemickens>
I've seen other people be cooler and more sophisticated about keeping a clean channel and then pulling patches from PRs for specific patches, but... I'm happy with the level of complexity I have now.
<colemickens>
(pulling the patches with more nix in the flake.nix, that is)
<bqv>
I spent most of today thinking of ways to clean up my flake.nix…
<bqv>
It's a mess
<colemickens>
It's very non-trivial. I don't know if I mean that as praise or just an observation or ... :)
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #94582 → clang, cc-wrapper: Move `--gcc-toolchain` logic into CC wrapper → https://git.io/JJwzJ
<bqv>
Heh
BaD_CrC has quit [Quit: Leaving]
Rusty1 has joined #nixos
simba1 has quit [Ping timeout: 260 seconds]
codygman has quit [Ping timeout: 240 seconds]
codygman has joined #nixos
<cole-h>
colemickens: So, how do overlays work with flakes? Is my ~/.config/nixpkgs/overlays now defunct, and I have to import pkgs with `overlays = [ ... ]`?
<colemickens>
I guess you were using the trick from the wiki to have your overlays apply to both nix-env and nixos-rebuild ?
<colemickens>
I think you would need to stop doing that, yes.
<cole-h>
Is that a trick? Never knew :P
<colemickens>
I don't think nix will let you do that in pure eval mode.
<colemickens>
I think having your system config load a bunch of stuff from ~/.config/nixpkgs at build time is weird IMO. It means if you clone your nixcfg on some other machien and do a build you're not guaranteed to get teh same result
Neo--- has quit [Ping timeout: 260 seconds]
<colemickens>
Hence why I called it a trick, but there's not anything necessarily tricky or bad about it, no.
<cole-h>
Unless I commit the entirety of ~/.config/nixpkgs :P
<colemickens>
well, that is a strategy and I don't think you'd be alone. also not what I would do :P
<cole-h>
Anyway, my overlays are basically in one large file, so it wouldn't be that hard to make it be `overlays = [ (final: super: { ... }) ]`
<matthewcroughan>
wucke13 can you join #musnix for a discussion? :D
<colemickens>
but actually I don't really have a good story for what I do if I need to nix-env something from an overlay. I guess I just don't.
<cole-h>
I don't ever plan on invoking nix-env manually, anyways, so no problems there :P
<colemickens>
I think what I would do, is move the overlays into my nixcfg, and then have ~/.config/nixpkgs/* symlink to my config, if I needed to nix-env.
<superbaloo>
is there a way to get rid of those messages or eanble the features in nix-unstable builds? "experimental Nix feature 'nix-command' is disabled; use '--experimental-features nix-command' to override"
<colemickens>
cole-h: for sure, that's what I was going to say about hte fast eval times. It's so nice to just "always rebuild my whole system, why not" even when I'm just updating a single package sha256.
<cole-h>
add `experimental-features = nix-command` to your nix.conf
<cole-h>
I guess I'll have to experiment with the nixops flakes story, though. It merged a while ago, but I dunno if there's anything special I need to do
<matthewcroughan>
I am making a video about NixOS, because I want to make an embedded DAW on a small X86 computer and run some piano samples on it. I feel Nix is probably the best way to go about doing this.
<matthewcroughan>
Musnix exists, but I want to generate it, I don't want an installer step.
<matthewcroughan>
Installation of NixOS would be a waste of time if it could be generated by a nixos-generator into an iso that is flashed, without an installer. How can we do this without a NixOS machine to utilise?
<superbaloo>
cole-h: that woks, thank you!
<matthewcroughan>
Maybe we can run this in Docker, for example? Or is Nix all that is required?
<superbaloo>
works*
<cole-h>
superbaloo: Darn, I thought you were going to make me a dish with that wok :P
<superbaloo>
haha
<colemickens>
matthewcroughan: you can build the installer iso, sure, and even do it from a Nix container, but you're going to need KVM, if I recall.
<colemickens>
*do it with Nix from a (docker) container
<superbaloo>
cole-h: I could, but I'm not sure that'd be a good idea
* cole-h
is patiently waiting for the kernel to finish building, so he can begin experimenting with flakes
<matthewcroughan>
colemickens So all that people will require is Nix? O.o
<colemickens>
I think I actually did this for someone a few weeks ago in #nixos. Let me see if I can find the command again.
<matthewcroughan>
So I don't even need docker?
<colemickens>
matthewcroughan: if they can install Nix, then yeah, no need for Docker.
markus1199 has joined #nixos
<matthewcroughan>
Ideally this is the flow I want. 1. People install one tool that requires no configuration to their laptop 2. They apply my changes to musnix.nix 3. They run it against musnix.nix 4. They get a .ISO to flash to SD 5. They boot the SD and it is configured, they can SSH in, etc. 6. Done
<matthewcroughan>
Is there a flaw in this plan?
<colemickens>
I don't really know anything about musnix, so 1-3 is fuzzy.
<superbaloo>
"nix-instantiate -E 'with import <nixpkgs> {}; tmux.out'" and "nix eval --impure --raw --expr 'with import <nixpkgs> {}; tmux.out'" do not give similar results. The first one yields the derivation, the second one gives the out output
<colemickens>
And there's a similar command for an SD Card image (or the ISO image burned to an SD Card will likely work)
<matthewcroughan>
Why does it being an SD card change matters?
simba1 has joined #nixos
<colemickens>
matthewcroughan: it's mostly that we configure the SD Card images differently (it's more of a stateful-in-place install vs a readonly installer image).
<superbaloo>
matthewcroughan: the sd card builder embeds a script that resizes the partition on first boot
<colemickens>
and/or some of it is based around the SD Card images being targeted at SBCs as well.
<matthewcroughan>
Again, I want to eliminate the installer step. No installer, just a rootfs on a disk, all choices made in the .nix, 0 interactivity. Just flash the SD, done, all has hopefully been configured by the user in .nix via their laptop keyboard :P
<colemickens>
matthewcroughan: I don't know about MacOS (darwin), and not natively on Win10, but maybe with WSL2, I'm not sure.
<matthewcroughan>
Yes, for sure it will run in the WSL2
<matthewcroughan>
but the problem here you must see is that the other stuff is appealing since you can actually interface with it, without Linux.
<matthewcroughan>
I'm aiming to make this appear the *simplest* possible way of doing this in 2020.
<bqv>
superbaloo: `nix eval --impure --expr 'with import <nixpkgs> {}; tmux.out.outPath'` this works
<matthewcroughan>
Nix is simple, when you are shown how it works. But it's a broad topic otherwise. I just want to show people how they can deterministically generate a system, and was hoping this could be done on any platform due to qemu.
<superbaloo>
yeah, this is the only on that works for me
<bqv>
Or, use `nix repl '<nixpkgs>'` and then tmux.out.outPath will work
<superbaloo>
but I'm unsure about the "stability" between nix-version
<superbaloo>
nix versions
<colemickens>
matthewcroughan: Hm, I don't quite have all the context you have for what you're building. I don't know what "the other stuff" or "interfacing without linux" means.
<colemickens>
matthewcroughan: I shouldn't have distracted us with the qemu talk, we should forget it in this context.
<colemickens>
Currently, Nix doesn't use virtualization for sandboxing or doing builds.
<matthewcroughan>
colemickens "interfacing without linux" means that they can do all these things without any Linux experience, just by following my steps. That includes not running Linux on their laptop.
* colemickens
nods
<matthewcroughan>
Kind of like how one can flash raspbian, modify the boot partition, make a file on it called "ssh" to enable ssh.
<matthewcroughan>
even on windows, that's possible, since their boot partition is fat32.
nixy has joined #nixos
<matthewcroughan>
connect to the wifi by making a file called wpa_supplicant.conf and filling in the details.
<colemickens>
I guess to give more advice I'd have to understand what your goal is.
<matthewcroughan>
Yknow, these are nice ways of operating. And it's exactly how nix operates with the .nix files. It's declarative.
<colemickens>
Are you trying to make an easy to follow tutorial, or are you trying to build like a product-like thing out of it or?
<matthewcroughan>
I just wish that it was possible to generate the OS image on any platform, but you need nix-build.
<matthewcroughan>
I'm trying to make an easy to follow tutorial, that does not require linux
<matthewcroughan>
If it's not possible, I'll give up, but if it's possible I'm interested :P
<colemickens>
I just don't know.
<colemickens>
You say it's possible in WSL2. I think it's possible on Darwin.
<colemickens>
Someone else might be able to confirm, or I can go read the source and give you a better guess on Darwin.
<matthewcroughan>
Yeah at this stage, redirecting to WSL2 seems sensible.
<stankenfrein>
Noob question here (I've been learning nix for about a week): the purpose and function of the 'options' and 'config' arguments don't fully make sense to me. How are they related to one another/where are they defined? I've looked through the docs for quite some time now and I haven't had much luck finding more info on this. Would anyone be willing to direct my to some relevant documentation or explain
<matthewcroughan>
I want to make a decent SPHINX Doc per video I make, so this will be no exception. Redirecting to WSL2 should be the simple solution.
<colemickens>
matthewcroughan: I'm just skimming but I think you can build the iso image on Darwin with nix-build, yeah.
<colemickens>
matthewcroughan: wow, that's pretty cool, I didn't know if wsl2 was really capable enough of being a good Linux VM, but that's convincing.
<matthewcroughan>
I run MacOS, Linux and Win10 in QEMU with PCI-E passthrough. This reddit post tells me I can run MacOS on that Win10 VM I have.
<matthewcroughan>
So it gets worse, and worse, and worse.
nixy37179 has joined #nixos
nixy37179 has quit [Client Quit]
nixy has joined #nixos
nixy37179 has joined #nixos
nixy37179 has quit [Client Quit]
nixy has quit [Client Quit]
bbennett371 has joined #nixos
stankenfrein has quit [Quit: leaving]
cr4y1 has joined #nixos
cr4y1 has quit [Remote host closed the connection]
nixy has joined #nixos
terribleArtist has joined #nixos
<terribleArtist>
howdy, im getting an error building python2.7 when i nixos-rebuild switch --upgrade, which i believe is related to lightdm. i dont care for having lightdm, so i disabled it in my config, but its telling me theres a conflict with that option in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/services/x11/xserver.nix', im not sure how to go about resolving this conflict, any ideas?
<matthewcroughan>
colemickens yeah no, the ArchWiki instructions do not work
<matthewcroughan>
error: the group 'nixbld' specified in 'build-users-group' does not exist
<matthewcroughan>
no matter what order things are ran in, it just fails at every stage, it's just bad
<matthewcroughan>
e.g archlinux-nix install even fails with sha hash mismatch for some reason
<cole-h>
bqv: Do you know if there's a reason the flakes branch isn't merged into h-m master yet?
<bqv>
owner hasn't had time to dig into flakes yet, for the most part
<cole-h>
Got it.
<bqv>
Theres also a few flake-related efforts still vaguely in progress afaik
<matthewcroughan>
colemickens got it working, just playing, man my root partition is surely going to burst into flames at some point this year from playing with scripts like this :P
<matthewcroughan>
however, my nix-build still aint working haha
<cole-h>
I just updated nixos-unstable, and apparently the fontconfig update made it through, because my Firefox fonts changed lol
<matthewcroughan>
colemickens yes, though it was not explained that they were steps 1 and 2 lol so I ran them in the wrong order thinking one was optional
<matthewcroughan>
it's also not explained that the daemon is required
<matthewcroughan>
it's also not explained whether you need to run nix-channel --update either.
<colemickens>
idk, all of that is on the wiki page afaict
<matthewcroughan>
All in all a terrible experience. We don't want people running Nix on Non-NixOS distros lol.
<colemickens>
I'm also not affiliate with that page and havent touched arch in years so idk.
<matthewcroughan>
This is just asking for trouble. Docker is certainly the way forward for this.
<cole-h>
I dunno about that.
<colemickens>
I mean, I'm pretty sure if you run each of the commands on htat page, in order, it will work.
<cole-h>
I ran Nix on Arch for a while perfectly fine.
<matthewcroughan>
Ya, but the setup is more than you'd want.
<matthewcroughan>
it's not just a package, right? Think about it.
<colemickens>
The page could use some copy-edit and some more text for someone unfamiliar with nix.
<matthewcroughan>
It's asking for trouble, believe me :D
<matthewcroughan>
Unless it's JUST a package and position independent, it's just troublesome.
<cole-h>
A while being from March -> May-ish?
<matthewcroughan>
Yes, you can get it to work. But I can't make a youtube video about all cases.
<matthewcroughan>
Installing it on every distribution is very different per distribution. It's troublesome.
<matthewcroughan>
It's non polynomial. It's a problem.
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
raoul has quit [Read error: Connection reset by peer]
raoul has joined #nixos
nonickname has quit [Ping timeout: 264 seconds]
nonickname has joined #nixos
judson has joined #nixos
<colemickens>
Alright, I took a pass at the wiki page. It's more explicit and the order of the steps is more clear.
benedikt93 has joined #nixos
bbennett371 has joined #nixos
growpotk- has quit [Ping timeout: 256 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
bbennett371 has quit [Ping timeout: 272 seconds]
orivej has joined #nixos
<matthewcroughan>
colemickens even following all those steps, I still get this
<matthewcroughan>
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
<matthewcroughan>
Ah, I didn't do the source step
<matthewcroughan>
Seems to be doing something now that I've done that
<{^_^}>
[nixpkgs] @zowoq opened pull request #94584 → .github/workflows/wait-ofborg.yml: double timeout if base branch is staging → https://git.io/JJwa3
WRMilling has quit [Remote host closed the connection]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
spacefrogg has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
<colemickens>
https://github.com/grahamc/netboot.nix I think I understand that this avoids rebuilding initrd every time something in the stage-2+ changes.
<colemickens>
But I don't understand why recursive nix is needed to achieve it (is it, or is it just how it is built ?)
justanotheruser has joined #nixos
pjt_tmp has joined #nixos
<colemickens>
Oh I think I see it now. It's using nix recursively so that nix-build can be called inside another derivation build in effect to sort of cache build steps when composing the initrd. And then splits the store path in the manifest to prevent initrd being tainted by other system changes.
WRMilling has joined #nixos
proofofkeags has quit [Remote host closed the connection]
orivej has quit [Quit: No Ping reply in 180 seconds.]
proofofkeags has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
pjt_tmp has quit [Ping timeout: 246 seconds]
pjt_tmp has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 246 seconds]
Supersonic112 is now known as Supersonic
<cole-h>
emily: Any chance you could share your font-related config, please? After the recent fontconfig bump, my color emoji are all messed up :( (in mako, numbers show up as their emoji counterpart, and in Firefox, they show up black and white)
<cole-h>
Since just copying that into my `~/.config/fontconfig/fonts.conf` did not help
<cole-h>
No matter what I do, `fc-match -s monospace | head -1` always returns the emoji font first >:(
<cole-h>
(That said, I hate XML so I haven't tried much)
devalot has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed 3 commits to gyp-mac: https://git.io/JJww8
<colemickens>
I promised myself I wouldn't touch those files manually and would only do it with nix so there'd be no risk of having to do it twice or ever again
kalbasit has joined #nixos
justanotheruser has quit [Quit: WeeChat 2.7.1]
<colemickens>
I had gotten myself tripped up once where I had fontconfig in the legacy spot, the new spot, and fontconfig.d and was so confused. A messy affair all around.
justanotheruser has joined #nixos
<cole-h>
I touched it once manually (back on Arch) and never had to do anything again... until fontconfig 2.13.92 rolled around x) Something changed enough that I'd rather have b&w emoji than `123` show up as emoji.
<cole-h>
(Aside from changing my fonts every once in a while, the rest of the stuff is mostly untouched)
<{^_^}>
[nixpkgs] @matthewbauer pushed 0 commits to gyp-mac: https://git.io/JJwwu
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #94587 → Fix nss on macOS → https://git.io/JJwwz
mrosenbe has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
mukayu[m] has joined #nixos
leungbk has joined #nixos
Fare has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
CodeSpelunker has quit [Quit: CodeSpelunker]
zupo has joined #nixos
pmwhite has quit [Ping timeout: 244 seconds]
acarrico has quit [Ping timeout: 240 seconds]
mrosenbe has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
mrosenbe has quit [Ping timeout: 264 seconds]
mrosenbe has joined #nixos
mrosenbe has quit [Ping timeout: 265 seconds]
bbennett371 has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit pushed to add-swm « swm: init at 0.4.0-alpha1 »: https://git.io/JJwrg
bbennett371 has quit [Ping timeout: 246 seconds]
zyklotomic has quit [Quit: WeeChat 2.7.1]
<{^_^}>
[nix] @Ericson2314 opened pull request #3885 → `addToStore` in terms of `addToStoreFromDump` is not local-store-specific → https://git.io/JJwri
<{^_^}>
[nixpkgs] @kalbasit opened pull request #94588 → swm: init at 0.4.0-alpha1 → https://git.io/JJwrX
jonringer has quit [Remote host closed the connection]
simba1 has quit [Read error: Connection reset by peer]
fendor has quit [Read error: Connection reset by peer]
Jonas15 has joined #nixos
ManiacOfMadness has joined #nixos
__monty__ has joined #nixos
craftyguy has joined #nixos
kreyren has quit [Remote host closed the connection]
mrosenbe has joined #nixos
asymptotically has joined #nixos
kreyren has joined #nixos
<Jonas15>
Hey there, quick question: How do I actually configure the conf object of element-web? It is passed as a module argument into the derivation module [1]
<Jonas15>
but I'm unsure how to specify it in my system configuration.
<Jonas15>
In all-packages.nix it gets pulled from config.element-web.conf, so I tried putting element-web.conf into my system config but that config option can't be found.
<asbachb>
immae: I wonder if there should be an entry in `coredumpctl list`?!
<immae>
that will depend on your configuration
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
CMCDragonkai1 has joined #nixos
qyliss has joined #nixos
<{^_^}>
[nixpkgs] @liff opened pull request #94600 → nixos/manual: Fix reference to send_key → https://git.io/JJw5S
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
kreyren has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
polezaivsani has joined #nixos
knupfer1 has joined #nixos
<srxl>
Is it possible to change the python interpreter buildPythonPackage wraps command-line tools with? I have a withPackages python environment I want the script to use.
<polezaivsani>
Hey folks! Not sure if it belongs here - on ~1w old NixOS unstable, running Haskell's `cabal build` said it's missing ar(1) from binutils; adding that to my env solved it, but how do i proceed towards a proper fix?
malook has quit [Ping timeout: 265 seconds]
knupfer1 has joined #nixos
<kloenk>
I'm trying to use a function to create inputs of a flake. but i get the error: "expected a set but got a thunk at /nix/store/gm5xswrcxv5cl4j564mafyf0n0rrvxvz-source/flake.nix:4:3"
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
o1lo01ol1o has joined #nixos
<kloenk>
any idea what the problem is? is it not supported?
<manveru>
kloenk: you cannot use any functions there
<kloenk>
manveru: thats unfortuned. why? why is it not allowed?
<manveru>
i assume to ensure fast evaluation
orivej has quit [Ping timeout: 240 seconds]
<kloenk>
I'm not a fan of that xD
<manveru>
:)
cjpbirkbeck has joined #nixos
orivej has joined #nixos
<manveru>
i also tried generating flake files instead... but i guess a few thousand inputs were too much for it to handle
<lejonet>
srhb: Have you gotten this message when compiling ceph? "error: boost::bad_format_string: format-string is ill-formed"
<srhb>
lejonet: I have gotten every possible error message while building ceph. :P
<srhb>
lejonet: Is it broken in master?
<lejonet>
I'm trying to install the 14.2.10 that you backported, and it just refuses, and I was thinking before I dig into making it use another boost or so, see if you had any neat fix for it first :P
<srhb>
huh, 20.03?
<lejonet>
I've run it from both 20.03 and master (or more correctly, checking out just the ceph nix-files from master in another-wise release-20.03 checkout)
<srhb>
lejonet: It builds for me without overlays.
<srhb>
Let me check if I have an impurity in my test...
<lejonet>
and let me check if I set any weird deps... not impossible either :P
cfricke has quit [Quit: WeeChat 2.9]
cfricke has joined #nixos
<lejonet>
Hmm, weird, I don't override anything with it, shouldn't it just fetch it from cache.nixos.org then?
<lejonet>
srhb: then it just fetched it from cache.nixos.org O.o
<srhb>
lejonet: Try omitting explicit config and overlays then
<lejonet>
still just points to the one it just downloaded
<srhb>
lejonet: Or if you want to be more systematic about it, compare the nix-diffs of that derivation and the one you got :)
<srhb>
lejonet: Which nixpkgs commit are you on?
<lejonet>
I'm on the release-20.03 tag
<srhb>
lejonet: That's the commit above ^
<glomorg>
Hello, I'm trying NixOS for the first time and I'm wondering about the boot setup of NixOS. I am currently using debian, so I'd like to try NixOS alongside it on a separate partition as the documentation suggests you can do. I have four existing partitions on debian: /dev/nvme0n1p1, /dev/nvme0n1p2, /dev/nvme0n1p3, /dev/nvme0n1p4 for a GPT setup
<glomorg>
with the EFI mount, root filesystem, swap and home partitions respectively. My plan was to use the swap partition as a try-out space for nixos, so I converted that to an ext filesystem. Now my issue is regarding the boot mount. The installation manual seems to suggest this is possible, but I obviously have no existing /boot partition on my debian,
<glomorg>
only /boot/efi. It also mentions that you need a FAT filesystem for /boot, which I obviously do not have. Can I somehow re-use the /dev/nvme0n1p1 (mounted on /boot/efi in debian) partition for NixOS?
<clever>
lejonet: use nix-instantiate instead of nix-build on what srhb last gave, then `nix-instantiate -A ceph` against your release-20.03 tag
<srhb>
lejonet: (Just making sure: You usually want nixos-20.03, not release-20.03. The former is the tested version.)
<clever>
lejonet: and nix-diff the 2 drv files
<srhb>
But that's head of release-20.03, so it should be fine :)
<lejonet>
srhb: ah, I am on release-20.03, tbh I don't remember why I'm on that instead of nixos-20.03
Jonas15 has quit [Remote host closed the connection]
bbennett371 has quit [Ping timeout: 272 seconds]
<srhb>
I have to go for a bit, but nix-diff should make the difference clear :)
bbennett371 has joined #nixos
cfricke has quit [Quit: WeeChat 2.9]
<glomorg>
anyone?
cfricke has joined #nixos
<lejonet>
clever: nix-diff doesn't show any difference in the ceph derivation when I nix-diff what I got from nix-instantiate from what nixops tried to build
<srhb>
lejonet: Oh, I have an idea of what's wrong.
<lejonet>
srhb: do tell :)
<srhb>
lejonet: Try nix-building ceph.doc ?
<srhb>
Eh no, just checked, that's not it. I was thinking one of the outputs didn't get built by hydra and your system was pulling it in
<clever>
lejonet: can you pastebin the full output from `nixops deploy --build-only` ?
glomorg has left #nixos [#nixos]
<lejonet>
clever: will do, I'm more and more thinking it might be some crap in my NIX_PATH var
<clever>
lejonet: oh, `nixops info -d FOO --no-eval` into a pastebin
cizra has quit [Quit: leaving]
<lejonet>
clever: https://dpaste.com/BRVEFV695 it would seem that even if I point nixops with -I nixpkgs=/path/to/checkout/nixpkgs, it still tries to build
<lejonet>
and even locally I don't do any packageOverrides for ceph O.o
<clever>
lejonet: where is ceph being referenced in the nixos configs?
<lejonet>
clever: I pull it in with environment.systemPackages for the machine in question
<lejonet>
and libvirt and qemu enables the ceph support
<clever>
lejonet: do you have the .drv thats failing?
sangoma has joined #nixos
<lejonet>
so like, I can understand why it builds libvirt and qemu but not ceph
<lejonet>
This puts me in an annoying catch 22 tho, because I want sssd support in sudo, but that is stopping me from deploying ceph apparently
<srhb>
lejonet: Not stopping, you just need to rebuild if you want it.
arjen-jonathan has joined #nixos
<clever>
you could override zfs-user, and force it to use the old sudo
<srhb>
lejonet: Or you can pass it an unaltered version of zfs, but think carefully when breaking the chain :)
<clever>
so zfs-user wont rebuild, and then ceph wont rebuild either
<srhb>
Right..
<lejonet>
srhb: well, effectively stopping, because the build fails :P
<srhb>
oh, right, sorry
<srhb>
I forgot about that :P
<lejonet>
Otherwise this would be a none issue :P
<lejonet>
but as I don't get any of the build log messages that caused the error in the ceph build, I don't know more precisely what is breaking in ceph
<srhb>
Right, do what clever suggested then :)
<lejonet>
maybe it is a stupid thing about zfs or sudo using another boost version than the one that ceph forces (boost167 is given it in all-packages.nix)
<srhb>
lejonet: No, it's literally the addition of sssd. The diff tells you so.
<lejonet>
Hmm yeah, that could work, I wonder what in sudo that ZFS depends on
<lejonet>
srhb: I'm thinking about the error message from the build
<clever>
lejonet: this will apply your sudo override, and force zfs to not depend on sudo, then you can use -A to pick any package, and see what the effect is
alp has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<lejonet>
Worth a shot
<lejonet>
clever: well, it gave me another ceph drv than the first nix-instatiate and nixops (doing -A ceph)
<clever>
yep, because you changed zfs-user in a different way
<clever>
but now you can try building that one
__monty__ has quit [Quit: leaving]
<lejonet>
Weird note, doing the same override for the nixops machine, made it want to build the same ceph drv still (but doing it with a packageOverride instead of an overlay)
codygman has quit [Ping timeout: 256 seconds]
<lejonet>
I'm currently building the ceph drv that instatiate gave me tho, so hopefully we'll know in like 15 min s:P
<clever>
lejonet: id recomend always using overlays
codygman has joined #nixos
<lejonet>
clever: what is the practical difference? I have some machines that have overlays, but that is to add packages from a private git and such
meh` has quit [Ping timeout: 265 seconds]
<clever>
lejonet: overlays let you easily access super (the previous pkgs tree) and self (the final, after applying every overlay)
<clever>
lejonet: overlays also let you specify multiple, in different nixos modules, and they chain together sanely
<clever>
packageOverrides, can only be set once
johnnyfive has quit [Quit: I quit now.]
<lejonet>
clever: and you showed how overlays can be done in pure nix without having to setup the whole filesystem part (that is why I've used packageOverride, cuz lazy) so I guess I'll just switch to that then :P
<evanjs>
based on what I'm seeing from other package expressions in handling these locale errors... 🤮
jb55 has quit [Ping timeout: 240 seconds]
jb55 has joined #nixos
itshaydendev has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
smatting_ has joined #nixos
<evanjs>
though... nothing changed with the package since then. what in the world.
<evanjs>
lemme grab the output for pb
<voidless>
hey there, I hope this is the right place for my question... I have patched a binary with the help of the guide in the nixos wiki. Unfortunately it runs into a debug trap. With steam run I have no Problem in getting it running. Does someone know a method to find out which shared object causes the problem?
<evanjs>
some things that immediately come to mind are LD_DEBUG=all (might be too verbose), `patchelf --print-needed` and then ldd, make sure it has the right interpreter, etc
knupfer1 has joined #nixos
<evanjs>
and then of course there is strace :P though I often find ltrace helpful in this sort of case, IIRC
<evanjs>
but clever and others would probably have a better idea of what to check
<voidless>
I was trying to step by step exchange shared objects from using steam run to other ones. I hoped to isolate the problem that way although im not sure how to do this exactly.
<srxl>
Nix is giving me stack overflow errors when I reference a package in a local flake from a different flake. Any ideas what's up there?
julm has joined #nixos
<srxl>
ie. flake1 has `inputs.flake2.url = "/path/to/flake/directory";` and I'm trying to add `flake2.packages.x68_64.package` to a `mkShell` derivation in `devShell.x86_64-linux`
<infinisil>
exarkun: You can also assign `systemd.services.foo.preStart`
<infinisil>
All the assignments to that option are joined together to a single script which is then used in ExecStartPre
<exarkun>
they can only be merged if they're defined in different modules, right? this is illegal or nonsense: `foo = { preStart = a; preStart = b; };`?
sigmundv has quit [Read error: Connection reset by peer]
<dminuoso>
Mmm, is there a way to control the merging strategy of nixos options?
sigmundv has joined #nixos
<dminuoso>
Say, if multiple foo.bar are specified, could I configure the option with some fold over all overlapping foo.bar options?
<evanjs>
oh thank God it's not in the rs modules :P
lejonet has quit [Ping timeout: 256 seconds]
<dminuoso>
evanjs: Mmm not quite. Let's say I want to combine two settings with some elaborate merging strategy.
<evanjs>
oh so like priorities but with logic or something lol
<dminuoso>
As a contrived example, let's say `foo.color = "Red";` and `foo.color = "Yellow";` to produce "foo.color = "Orange"; as determined by some `mixColors = l: r: ...`
<dminuoso>
(Imagine those options being set in two separate places, of course)
<evanjs>
and false alarm on the python locale error.... I was putting the preCheck stuff in the parent application, not the dep that was failing... 😪
<exarkun>
dminuoso: random googling tells me `mkTypeOption` accepts a `merge` parameter
proofofkeags has quit [Remote host closed the connection]
<evanjs>
alright... so a few weird things... sclack (#72994) seems to be running the tests for urwid/urwid_readline..? I'm not sure if I am seeing that correctly
<evanjs>
mmmnope. doesn't seem to be that, either :D
<angerman>
,locate hexdump
albakham has joined #nixos
sigmundv has quit [Read error: Connection reset by peer]
<{^_^}>
Found in packages: wcc, busybox, hexdump, utillinux, factor-lang, libuuid.bin, utillinux.bin, unixtools.utillinux, perl528Packages.DataHexDump, perl530Packages.DataHexDump
domogled has quit [Remote host closed the connection]
sigmundv has joined #nixos
<kloenk>
Is nix on mac realy so slow? or is that because of my old setup?
domogled has joined #nixos
<polezaivsani>
I feel stupid, but how do you query packages installed in system profile in NixOS? `nix-env -q -p /nix/var/nix/profiles/system` produces no output
<srhb>
polezaivsani: There isn't really a concept of "installed" for nixos system profiles, but you can get all the dependencies of your system profile with nix-store -qr /nix/var/nix/profiles/system
<srhb>
polezaivsani: This includes all indirect dependencies due to services etc. too thoug
cyraxjoe has quit [Ping timeout: 264 seconds]
<srhb>
polezaivsani: nix-env, in imperative mode, does some special tracking of installed packages to support the imperative workflow.
<srhb>
polezaivsani: Another answer may be nixos-option environment.systemPackages
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<polezaivsani>
srhb: thanks! is system profile somehow special in that it doesn't have a concept of installed packages?
<srhb>
polezaivsani: It's actually more like nix-env is special.
oldsk00l has quit [Remote host closed the connection]
proofofkeags has joined #nixos
oldsk00l has joined #nixos
<albakham>
It's been a few weeks that my keyboard and touchpad stopped working on my laptop. I'm using libinput...
oldsk00l has quit [Remote host closed the connection]
<albakham>
if I don't enable libinput, the keyboard works again (not the touchpad though, that's expected since I would need libinput for that)
oldsk00l has joined #nixos
<polezaivsani>
srhb: i wanted to check out what packages (or rather versions thereof) got installed via `environment.systemPackages`, just following along the manual
gv has quit [Remote host closed the connection]
<polezaivsani>
srhb: `nix-store -qR` does it nicely
<{^_^}>
[nixpkgs] @1000101 opened pull request #94609 → nixos/dokuwiki: drop SSL forcing and document incompatibility → https://git.io/JJrBG
<adyatlov>
Anyone using KiCAD on NixOS and also getting these errors? Failed to retrieve file times for '/nix/store/c1qv0knv8h7cp3ya089pjcmdzvrgs2dv-kicad-5.1.2/share/kicad/library/nix/store/fb7aigyh7fsnpkhzp2lvb2bxw41xc73k-kicad-symbols-5.1.2/share/kicad/library/Battery_Management.lib' (error 2: No such file or directory)
<adyatlov>
All my paths are configures correctly, I have no clue
<{^_^}>
slackapi/python-slackclient#471 (by dewei12138, 1 year ago, closed): not found slack
wfranzini has joined #nixos
whald_ has quit [Remote host closed the connection]
domogled has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
knupfer has joined #nixos
<evanjs>
mmmyup. rename seems to work. yay different errors
dermetfan has joined #nixos
itshaydendev has joined #nixos
pamplemousse has joined #nixos
fendor has joined #nixos
knupfer1 has joined #nixos
leungbk has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
wfranzini has quit [Quit: wfranzini]
orivej has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
maier has quit [Ping timeout: 246 seconds]
matthewcroughan has joined #nixos
CMCDragonkai1 has quit [Quit: CMCDragonkai1]
knupfer1 has joined #nixos
o1lo01ol1o has joined #nixos
work__ has joined #nixos
ManiacOfMadness has quit [Ping timeout: 272 seconds]
knupfer has quit [Ping timeout: 264 seconds]
knupfer1 is now known as knupfer
<nbathum>
with poetry2nix, how can I add a python library that is not currently packaged? the app I'm trying to build is missing a dep. I have added it to pyproject.toml, but how can I add the python derivation for it?
<nbathum>
all of the examples show overriding (a package that is already present)
<evanjs>
adisbladis: ^ nbathum
domogled1 has joined #nixos
knupfer1 has joined #nixos
domogled has quit [Ping timeout: 240 seconds]
domogled1 is now known as domogled
fendor_ has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
fendor has quit [Ping timeout: 246 seconds]
alp has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 246 seconds]
fendor_ has quit [Quit: Leaving]
<patagonicus>
I have a few machines and set them up to use each other as builders and substituters, but now if one machine is down, doing any nix building on the others fails with "error: unexpected end-of-file". Is there a way to have nix just ignore unreachable builders/substituters?
erasmas has joined #nixos
waleee-cl has joined #nixos
itshaydendev has quit [Ping timeout: 260 seconds]
<evanjs>
lolll okay I'm disabling these tests. They prompt for user input for an api token... >.>
zupo has joined #nixos
alp has joined #nixos
<{^_^}>
[nixpkgs] @Ma27 pushed to master « nixos/tests/systemd-networkd-vrf: add comment about trailing whitespaces in test script »: https://git.io/JJrP0
asymptotically has quit [Remote host closed the connection]
growpotkin has joined #nixos
codygman has quit [Ping timeout: 256 seconds]
Heirlung has joined #nixos
codygman has joined #nixos
zupo has joined #nixos
proofofkeags has quit [Remote host closed the connection]
ManiacOfMadness has quit [Ping timeout: 272 seconds]
knupfer has joined #nixos
cole-h has joined #nixos
asymptotically has joined #nixos
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo2_ has quit [Ping timeout: 260 seconds]
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
knupfer1 is now known as knupfer
jakob_rs has joined #nixos
teto has quit [Ping timeout: 256 seconds]
<jakob_rs>
Does NixOS support Intel RST?
<jakob_rs>
It's not too important since I can just set it to AHCI in the firmware setup, but it would be interesting to know if it's possible to get it to work without this workaround.
codygman has quit [Read error: Connection reset by peer]
knupfer1 has joined #nixos
codygman has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
kreyren_ has joined #nixos
<jakob_rs>
knupfer: You're probably aware, but you've been disconnecting and reconnecting constantly for some time now.
alp has quit [Ping timeout: 264 seconds]
drakonis has quit [Quit: WeeChat 2.8]
kreyren has quit [Ping timeout: 240 seconds]
dermetfan has quit [Ping timeout: 246 seconds]
knupfer1 has joined #nixos
justanotheruser has joined #nixos
<zimbatm>
betaboon: sorry I don't have another idea, except to change the deploy_nixos module
<zimbatm>
you can try and edit the script directly, it should be under .terraform/modules/terraform-nixos/deploy_nixos/
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
drakonis has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
<jakob_rs>
,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
nixuser has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @r-ryantm to master « fwupd: 1.4.4 -> 1.4.5 »: https://git.io/JJrHO
<bqv>
cole-h: to be honest, i think this is as clean as it might get, i can't think of ways to sensibly shrink it, and i don't think it's *too* wacky anymore
<cole-h>
:shipit:
<bqv>
heh
gustavderdrache has joined #nixos
knupfer has joined #nixos
<cole-h>
Hey, that looks pretty neat :P
adyatlov has quit [Ping timeout: 245 seconds]
<bqv>
:D
<cole-h>
bqv: If ryc*e were to merge home-manager#1420, what would change for the bqv-flakes branch, if anything?
<{^_^}>
[nixpkgs] @tfc merged pull request #93413 → nixosTests.taskserver: Port to python → https://git.io/JJnCz
<{^_^}>
rycee/home-manager#1420 (by rycee, 3 days ago, open): nixpkgs: take Nixpkgs path from argument
<bqv>
oh awesome, that'd make it simpler in at least one case
<bqv>
i think there's other <nixpkgs>s around, iirc
<bqv>
but that looks like the main one that was preventing the nixos module from working
noudle has quit []
<cole-h>
bqv: They only default to `import <nixpkgs> {}`, e.g. in home-manager/home-manager.nix, default.nix, and tests/default.nix
knupfer1 has joined #nixos
<cole-h>
(`pkgs ? import <nixpkgs> {}`)
orivej has quit [Ping timeout: 240 seconds]
<bqv>
yeah, seems so, guess that works then
orivej has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
pareidolia has joined #nixos
<porphyrogenetos>
Does anyone know what the proper way to get dockerTools.buildImage to work on a multiuser nix installation (on a non-NixOS distro)? It fails currently because of some permission problem for the nixbld users. It worked fine before I switched to a multi-user installation. The failure it gives is: "qemu-system-x86_64: failed to initialize kvm: Permission denied"
<lejonet>
Where would I find the meaning of the exit code from switch-to-configuration? I'm getting exit code 3 error when deploying a nixops machine, but the activation seems to have gone just fine. There is nothing in the logs that have errored out or anything
<lejonet>
porphyrogenetos: that sounds like a permission issue with /dev/kvm or similar, aka the user doesn't have read/write rights to the hardware assisted virtualisation
<lejonet>
its not uncommon for that device to be owned by root:kvm
knupfer1 has joined #nixos
<lejonet>
what does ls -la /dev/kvm give you?
<{^_^}>
[nixpkgs] @magnetophon opened pull request #94615 → mamba: init at 1.1 → https://git.io/JJrQe
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<porphyrogenetos>
Right, I figured it had something to do with that, its owned on my system by root:kvm. Is there a nixy way to rectify that? not sure if the best solution is adding the nixbld users to the kvm group or changing perms of /dev/kvm
<lejonet>
porphyrogenetos: I think the "more correct" way would be to add the nixbld user to the kvm group
<lejonet>
iirc the whole point of /dev/kvm being owned by root:kvm, was so that you can give non-root users access to it, without having to give em root access in any form
<porphyrogenetos>
That makes sense. Is there a way to add them to additional groups via /etc/nix.conf? Or is a manual usermod -aG the way to go
knupfer1 has joined #nixos
<lejonet>
users.users.<user>.extraGroups = [ <space delimited list of groups> ] but that is nixos, I don't think nix on a non-nixos system can do that
ManiacOfMadness has quit [Ping timeout: 264 seconds]
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
sikmir has joined #nixos
stephaneyfx_ has joined #nixos
sikmir has quit [Read error: Connection reset by peer]
stephaneyfx has quit [Read error: Connection reset by peer]
<cole-h>
bqv: does the "specialArgs" stuff add to the top level args of e.g. configuration.nix?
HackerFoo has joined #nixos
m_hackerfoo has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
<bqv>
cole-h: it'll add to any module called, configuration.nix is a weird one and i'm still not sure how it works
<bqv>
guess i'm kinda flake-native
<cole-h>
So `specialArgs = { sadf = 123; };` makes `{ sadf, ... }` work?
<bqv>
yeah
noudle has joined #nixos
<cole-h>
Awright.
alexherbo2_ has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 246 seconds]
spudly- has joined #nixos
spudly- has joined #nixos
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
turion has joined #nixos
spudly- is now known as spudly
ericnoan has joined #nixos
ericnoan has joined #nixos
ericnoan has quit [Changing host]
ManiacOfMadness has joined #nixos
<bqv>
wait, what
<bqv>
nixexprs.tar.xz is just nixpkgs
pr06lefs has joined #nixos
<bqv>
well that's easy then
alp has joined #nixos
codygman has quit [Read error: Connection reset by peer]
<LouisDK>
If a package needs an open port in the firewall to work it's possible to make an option like "openFirewall". However I want to hear whatever it is bad practice to open the port by default when installing the package or the option should be set to false?
cosimone has quit [Quit: Quit.]
seku has joined #nixos
arjen-jonathan has quit [Ping timeout: 244 seconds]
<makefu>
LouisDk: the option should default to false imho. there may be different ways the firewall is "opened", be it nginx proxyPass or vpn setup or whatnot
kreyren_ has quit [Remote host closed the connection]
knupfer has joined #nixos
<bqv>
why is programs.sqlite so thin?
kreyren_ has joined #nixos
<numkem>
,locate sd-journal.h
<{^_^}>
Found in packages: elogind, libudev.dev, systemd_with_lvm2.dev
zeta_0 has joined #nixos
<bqv>
what even generates it...
<zeta_0>
i just installed `wine` in order to use `kindle for pc`, but how do i install `kindle for pc` the `nix way` ?
<zeta_0>
on amazon, i downloaded `kindle for pc`, and selected to run it with `wine`, but a runtime error was thrown, have any of you ran into a similar situation ?
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
<bqv>
infinisil: ok, that looks remarkably simple, which explains why there's only like 174 unique packages in the db
alp has joined #nixos
<infinisil>
Why would that explain it?
<bqv>
well, i expected it to be crawling the tree but it doesn't look like it is
<bqv>
or am i misunderstanding how it works
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
moet has joined #nixos
<bqv>
oh, is this because it's unstable
<bqv>
the 20.03 one is 8* the size
<infinisil>
bqv: Look closer. It calls a binary to do all the work
<LouisDK>
It seems to be best practice to just include a comment in the nix file if a program requires an open port to work and the nix file is not a service.
<Fare>
The packing and unpacking involved in buildImage fromImage makes it O(N^2).
<Fare>
Meh.
gthm has quit [Ping timeout: 265 seconds]
zupo has joined #nixos
knupfer1 has joined #nixos
xAndy has joined #nixos
sputny has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
knupfer1 has joined #nixos
<fionera>
Any idea what I have to add to my nix-env to build smth with qtmultimediaplugins dependencies? I always get `defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"`
<Mic92>
fionera: usually this is described in some .desktop files.
<Mic92>
They are looked up in a in the nix profile
<fionera>
everything I find just tells me to install libqt5multimedia5-plugins :D Tho thats not an option
<fionera>
what do you mean by that?
<fionera>
It is missing a mediaplayer provider
knupfer has quit [Ping timeout: 260 seconds]
knupfer1 is now known as knupfer
rgrau has joined #nixos
shabius has quit [Remote host closed the connection]
<Fare>
Looks my nix images contains everything double... once in / the other time in /nix/store (!)
shabius has joined #nixos
<Fare>
why isn't it using symlinks from one to the other?
knupfer1 has joined #nixos
lordcirth__ has quit [Ping timeout: 244 seconds]
<christianbundy>
I couldn't get an answer on how to build packages from source, so I've pointed cache.nixos.org at 127.0.0.1 in /etc/hosts. Now all of my installs fail. Is there no way to build from source?
<Fare>
or is it tar not being called in a way that preserves some symlinks or hardlinks?
codygman has quit [Read error: Connection reset by peer]
knupfer has quit [Ping timeout: 246 seconds]
knupfer1 is now known as knupfer
jb55 has quit [Ping timeout: 240 seconds]
codygman has joined #nixos
knupfer1 has joined #nixos
<matthewcroughan>
colemickens hey again!
<Fare>
... not for everything, since /nix/store is 1.4G but / is 2G.
<Fare>
I'm baffled by the behavior
boxscape has joined #nixos
<matthewcroughan>
I got a T480 thinkpad for work, the last remaining thinkpad with good construction. Gonna put NixOS on it.
yilin has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
pmwhite has quit [Remote host closed the connection]
<matthewcroughan>
Stage 1 takes a veeeeery long time haha
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
nature has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @ehmry pushed commit from @KarlJoad to release-20.03 « tor-browser-bundle-bin: 9.5 -> 9.5.3 »: https://git.io/JJrNz
dermetfan has joined #nixos
<christianbundy>
infinisil: sorry to @ you, but you helped me last time I was here -- how do I build packages from source?
<crazazy[m]>
nix-build '' -A {your package name}
<infinisil>
christianbundy: Oh to build from source just disable substituters with `--option substitute false`
<crazazy[m]>
won't build the dependencies from source tho
<zerocostabstrac4>
guys how do you manage bash/zsh functions inside your configuration.nix
<zerocostabstrac4>
if at all
<crazazy[m]>
oh matrix formatted something for me
<infinisil>
christianbundy: See `man nix.conf` for more info
<infinisil>
Well there's not that much more info there for that option, but still
knupfer1 has joined #nixos
<DigitalKiwi>
zerocostabstrac4: sphalerite wrote something for me maybe it'll be helpful start i'll find it. the real answer you probably want is home manager though
<matthewcroughan>
no matter what hardware I run this on, I always get the error "The resulting partition is not properly aligned for best performance"
<matthewcroughan>
how do I resolve this warning?
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<ryantm>
I think that's just a warning which you can ignore. If you really want to align stuff perfectly, you'd have to learn about the underlying disk alignment and change the partition sizes to line up with that.
b1000101 has joined #nixos
<{^_^}>
[nixpkgs] @risicle opened pull request #94622 → pythonPackages.bsdiff4: init at 1.2.0 → https://git.io/JJrA8
knupfer has quit [Ping timeout: 260 seconds]
<daddy_james[m]>
I got the ignored warning, it didn't cause any noticeably decreased performance
<zerocostabstrac4>
<infinisil "ZeroCostAbstraction: programs.zs"> oh i have tried those, but since they treat newline differently, it got really weird to fit a 30 line function into one line :/
<matthewcroughan>
daddy_james[m] ryantm do you think it would be beneficial on an NVME drive to use f2fs for the root fs?
<{^_^}>
[nixpkgs] @NeQuissimus pushed 6 commits to release-20.03: https://git.io/JJrAu
boxscape has quit [Quit: Connection closed]
higemaru has joined #nixos
<daddy_james[m]>
I don't know anything about f2fs so idk
<matthewcroughan>
Ya, I'm just gonna use Ext4 unless I could benefit from ZFS in some way, which I think I could, but NixOS is particularly strange regarding ZFS ain't it?
smatting_ has joined #nixos
<higemaru>
anyone familiar with connecting ios devices in nixos? I've installed `libimobiledevice` and `usbmuxd` as system packages, but it doesn't look like the usbmuxd systemd service is starting when I plug in my device. trying to follow the arch wiki guide for ios here, https://wiki.archlinux.org/index.php/IOS#Connecting_to_a_device
<ryantm>
matthewcroughan: I believe f2fs is designed specifically for flash memory, so it might be better, but it is also less battle-tested than ext4.
<zerocostabstrac4>
<infinisil "Well add another one after '' th"> ah that was just me missing a line while copy pasting, the syntax error is complaining about the: in the second line of the function for some reason
LouisDK has joined #nixos
<LouisDK>
Can someone give me an example of a nixpkgs where optional patches can be applied prior to compiling?
user_0x58 has quit [Remote host closed the connection]
<infinisil>
zerocostabstrac4: Can you correct the paste?
<infinisil>
zerocostabstrac4: Ideally just paste the whole file
<DigitalKiwi>
ostensibly at that step i would add flags to add encryption and passphrase
<DigitalKiwi>
so: at pool creation
<matthewcroughan>
ya but I want to use F2FS because of performance
<matthewcroughan>
so I'm not using ZFS on a single disk, because I don't value it for a single disk atm
sangoma has quit [Ping timeout: 246 seconds]
<DigitalKiwi>
i don't have problems with performance
drakonis has joined #nixos
<matthewcroughan>
Nor do I. I just want the most of it.
<DigitalKiwi>
ok
<matthewcroughan>
It's quite a bit better, if you look at the phoronix graphs I sent you :D
knupfer1 has joined #nixos
<DigitalKiwi>
they didn't bench zfs?
<matthewcroughan>
They didn't. But I know ZFS will not be better. Intuitively.
teto has quit [Quit: WeeChat 2.9]
<DigitalKiwi>
ok
<matthewcroughan>
IDK actually.. Hmm
<matthewcroughan>
If you think about it, won't it cache it in ram via the L2 arc?
<DigitalKiwi>
yes
dermetfan has quit [Ping timeout: 240 seconds]
<DigitalKiwi>
zfs performance is generally quite good
knupfer has quit [Ping timeout: 246 seconds]
knupfer1 is now known as knupfer
<Mic92>
well according to those stats, xfs seems the fastest in the trustworthy benchmarks
<Mic92>
like fio
<DigitalKiwi>
zfs has a lot more to offer than just lots of disks or performance. and i value my data a lot more than i value a fraction of a second startup time from phoronix benchmarks...
<Mic92>
Was f2fs not designed for storage without FTL?
<Mic92>
I value zfs robustness w.r.t. crashes and snapshots
<DigitalKiwi>
zfs auto snapshots have saved me a number of times from oopses
knupfer1 has joined #nixos
<matthewcroughan>
DigitalKiwi Yes but the benefit of that is lost on a single disk
<DigitalKiwi>
no
<Mic92>
it's human error mostly
<matthewcroughan>
It's going to be no better at keeping my data integrity than any other FS, measurably
<matthewcroughan>
It is *slightly* better
<matthewcroughan>
You can add the copies property to a dataset, therefore increasing the chance of recovery on a single disk, but cmon
<matthewcroughan>
it's a single disk, you can only do so much.
<Mic92>
also snaphots make it easier to make backups that are consistent
<DigitalKiwi>
yeah i'm not talking about disk failures
<Mic92>
because data can change while the backup is made
<matthewcroughan>
Alright, I'm convinced. Now I have already set up my disk for F2FS, so God Dang it y'all better help me out :P
<DigitalKiwi>
i'm talking about i delete a file or modify it in a way i don't like or inkscape corrupts something i'm working on for hours when it coredumps...
knupfer has quit [Ping timeout: 256 seconds]
knupfer1 is now known as knupfer
<DigitalKiwi>
and syncoid/sanoid/znapzend (though znapzend i guess won't work for my setup) help with backups
<DigitalKiwi>
or just regular zfs send/recv
<DigitalKiwi>
...when you do them right *grumbles*
<matthewcroughan>
> That's a fair complaint, but is a problem with lack of freespace, not partition size. ZFS, btrfs, and several other file systems struggle when the partition surpasses a certain level of full, even on several TB arrays. These file systems have their place, but that place is usually "kept below 50% utilization." I do disagree with SuSe and Ubuntu
<matthewcroughan>
choosing this file system as default for desktop users, but it's a great fit for my home server.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):318:24
seanparsons has joined #nixos
<DigitalKiwi>
i've only heard 15% for zfs
<matthewcroughan>
Yes. I get it. But maybe you shouldn't use ZFS on an SD card for example.
<DigitalKiwi>
anyway you could always do your f2fs root ans zfs home if you wanted
<matthewcroughan>
I mean, God knows I've tried, it was insane.
<DigitalKiwi>
i primarily use it on my laptop, file server, and external drives. not sd cards :P
<matthewcroughan>
DigitalKiwi that soundsm ore reasonable!
<{^_^}>
[nixpkgs] @dadada opened pull request #94624 → nixos/dokuwiki: fix path to ACL → https://git.io/JJrhC
<matthewcroughan>
Do you use ZFS on Root?
<DigitalKiwi>
yes
numkem7 has joined #nixos
<DigitalKiwi>
i have snapshots disabled on root
<matthewcroughan>
Has it been a pain for you when upgrading or doing anything with the system?
<DigitalKiwi>
no
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
knupfer1 is now known as knupfer
<DigitalKiwi>
the only time i had an issue was pebcak as i had sync=always and it was incredibly slow to do say nix-collect-garbage and it took a while for me to realize why it was so much worse than my other systems
<DigitalKiwi>
sync=standard = happy kiwi
<Ashy>
I was caught out when the latest kernel broke zfs a couple years ago
smatting_ has joined #nixos
numkem7 is now known as numkem
<Ashy>
I swapped to btrfs soon after that
<noonien>
is there a way to compile a C package statically?
<noonien>
settings CFLAGS or LDFLAGS to "-static" does not seem to work
<DigitalKiwi>
and if you have the ram you can tune the cache to give a lot of cache hits ;D
<matthewcroughan>
Ah man you're right. I love ZFS. I forgot about the compression. DigitalKiwi
<matthewcroughan>
cransom Oh that's an install guide? I shoved it off thinking it was all about other stuff like configuration.
<cransom>
i don't think there's really that much difference between installation versus configuration on nixos. installation is formatting some drives, then it's all configuration.
stephaneyfx has quit [Remote host closed the connection]
stephaneyfx has joined #nixos
<{^_^}>
[nixpkgs] @herrwiese opened pull request #94625 → bpytop: init at 1.0.0 → https://git.io/JJrjU
<{^_^}>
[nixpkgs] @LouisDK1 opened pull request #94626 → ephemeral: Patch to disable paid and native infobars → https://git.io/JJrjT
<matthewcroughan>
cransom There's subtle stuff that I can't wrap my head around since I'm not a professional on filesystem quirks.
<DigitalKiwi>
matthewcroughan: oh yeah compression is <3
<matthewcroughan>
For example, in order to utilise f2fs, you need boot.initrd.supportedFilesystems = [ "f2fs" ]; and boot.supportedFilesystems = [ "f2fs" ];
<matthewcroughan>
This is not going to be explained to people in a nice guide, but it really ought to be.
<matthewcroughan>
I bet there's things like this that I'm just not considering.
<noonien>
are flakes in a stable branch of nix?
<matthewcroughan>
Has anyone got any ReiserFS benchmarks?
<Fare>
Is there a good reason why the cp -dR ... command in pkgs/build-support/docker/default.nix isn't using the -l flag?
proofofkeags has quit [Remote host closed the connection]
<ryantm>
matthewcroughan: I've used f2fs on my NixOS laptop for a couple years now without issue. I haven't noticed it to be honest.
<ryantm>
noonien: No.
<noonien>
i see, thank you
eoli3n has joined #nixos
__monty__ has quit [Quit: leaving]
arjen-jonathan has quit [Ping timeout: 260 seconds]
<matthewcroughan>
DigitalKiwi I don't quite understand Themelios
<matthewcroughan>
Should I copy the configuration.nix from the default nixOS install guide? Then use it against themelios?
<DigitalKiwi>
i use an older revision of it i modified slightly
<DigitalKiwi>
mostly i used it to get zfs working because i had trouble figuring it out
<matthewcroughan>
in the configuration.sh example there is `zfs_encrypt_home="false"` what does this mean?
<matthewcroughan>
Does this mean the whole disk is not encrypted?
<DigitalKiwi>
i don't think it uses whole disk encryption
<matthewcroughan>
You said you had your whole disk encrypted?
<DigitalKiwi>
the version i have had overlays for the zpool and i modified it (it's essentially that line i showed earlier)
<DigitalKiwi>
right i don't use themelios exactly as is/was
<noonien>
this is what i used to setup a zfs root with full disk encryption: http://ix.io/2t7J
<noonien>
matthewcroughan: ^
<matthewcroughan>
Very nice
<DigitalKiwi>
the first time i used it for this laptop i just used it to get something started
<matthewcroughan>
So I should just copy the configuration.nix from the default install guide?
<noonien>
i'm not using zfs anymore, it had some stability issues
<matthewcroughan>
See, I knew it :D
<matthewcroughan>
Finally someone that will admit it!
<DigitalKiwi>
i haven't had issues so there's nothing to admit :|
<DigitalKiwi>
i did say that it's not recommended to zfs on root though ;)
<noonien>
i used to experience some lockups
<DigitalKiwi>
did you use swap on zfs
<noonien>
however, i would prefer to have zfs on my /home, but i've not set that up yet
<noonien>
no, i don't like swap
<DigitalKiwi>
oh
<noonien>
using swap*
<DigitalKiwi>
that can cause lockups
<noonien>
a zfs kernel thread used to lockup, i'm not sure what caused it
<DigitalKiwi>
huh
<DigitalKiwi>
how long ago was that
orivej has joined #nixos
<noonien>
it's on a laptop, 5G arc ram was probably not enough
<noonien>
hmm, i think a few months ago, on the latest stable brannch
<noonien>
i didn't get the lockups that often, maybe 2-3 times a month, but they always required a reboot
<jasom>
For future reference, let's say I run 'nix-env -u' while online, then later while offline, I try to run a nix-shell that worked before the 'nix-env -u' was run and it fails because it wants newer versions of various derivations. Is there a way to run with the old versions of the derivations (assuming they haven't been cleaned up yet)?
<noonien>
`ping -c1 google.com && nix-env -u` will not solve your issue, but will test for an internet connection before updating
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @magnetophon to master « real_time_config_quick_scan:unstable-2020-08-03 -> unstable-2020-07-23 »: https://git.io/JJrjj
<DigitalKiwi>
also lorri may be of use
christianbundy has quit [Quit: WeeChat 2.9]
<jasom>
noonien: yeah, I ran nix-env -u successfully a few days before, but I didn't fetch all of the inputs for one of the shells for when I was offline
<ryantm>
jasom: You could try rolling back your user environment.
quinn has joined #nixos
<jasom>
slight brain-fart it probably wasn't the nix-env -u that caused problems, but updating the channel.
<jasom>
can I roll back the channel?
proofofkeags has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 240 seconds]
<pikajude>
can i share the nix store with a qemu image?
<pikajude>
i'm running another OS in qemu and i don't want to copy a ton of build products into the qemu disk image when they already exist on the host fs
<noonien>
i will updated it at some point, but i need to figure out a way to keep secrets i like, and have some time to implement it
<DigitalKiwi>
well, all of it
<DigitalKiwi>
it's just annoying
proofofkeags has joined #nixos
<noonien>
i never need to reinstall, so i don't have a script for that
<matthewcroughan>
DigitalKiwi >I'd like to say it should be set by default, but so far I don't think there's any way to declaratively set ZFS attributes.
<{^_^}>
#16954 (by Baughn, 4 years ago, closed): journalctl refuses to read user logs
<matthewcroughan>
See it's things like this. What exactly is the recourse when these issues are fixed?
<noonien>
and, unless you're planning a buggy system, i suggest you don't waste much time to do it either. it's just a one time thing. just make sure you take a note of what you did in case something breaks
<matthewcroughan>
zfs set refreservation=none zroot/reserved
<DigitalKiwi>
i didn't write the script so i don't know
proofofkeags has quit [Ping timeout: 260 seconds]
eoli3n has quit [Ping timeout: 240 seconds]
<matthewcroughan>
When you run out of space, you are going to be unable to delete files.
<noonien>
each zfs system is configured differently, depending on what the user needs, that might not be a useful feature to the person that wrote that script
<DigitalKiwi>
oh i don't run out of space
<matthewcroughan>
Do we care about atime?
<DigitalKiwi>
but i should probably have that just in case eh ;P
<noonien>
there you go. i actually started writing my own fs, because i don't particularly like the features of any available one. sadly that's on pause because of lack of resources
<cole-h>
emily++ Thanks, I'll take a look. With your config, if you look up "joy emoji", are all the results color emoji, or are some B&W?
<{^_^}>
emily's karma got increased to 31
<matthewcroughan>
noonien what kind of resources do you need? Protein?
<noonien>
hehe, time and manpower
<cransom>
i had a freenas machine, from iX even. but, i miss nothing of it after moving my storage stuff onto nixos.
<noonien>
a fs is not an easy thing to implement, even a higher level one
<cransom>
from what i remember from undergrad, even a low level one sucks real hard.
<noonien>
depends on what you need, really
<matthewcroughan>
cransom friend from iX says "we'll sell him machines for nixos too if he wants :wink:"
alp has quit [Ping timeout: 246 seconds]
<cransom>
i worked at at a place, many years ago that was entirely an ix customer. the service was great. even after i left that company, i would still check in with them for quotes/purchases on stuff.
<noonien>
i don't care that much about performance for my FS, machines are REALLY fast these days. i would prefer to have a non-slow fs as long as it was distributed, encrypted, and had some must-have features like snapshots and deduplication with content defined chunking
<noonien>
sadly, i couldn't find a CDC that performed very well, but there are some that preform decently
<noonien>
perform*
<noonien>
and, distributed anything is a PITA to develop and architect
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JJofP
<matthewcroughan>
noonien yeah, have you ever tried to use syncthing for anything more than basic stuff on multiple systems
<matthewcroughan>
a big mess
<matthewcroughan>
noonien Anyway, your script is straight forward.
<noonien>
it is. concurrent changes are hard to implement. my fs has branches, more like a git repo, it's not really like syncthing or dropbox. this makes for a simple implementation, and it still allows easy read-only sharing. read-write sharing can be solved at a different level, even for simple concurrent edits
<matthewcroughan>
The problem with your script is that it doesn't cover *everything* outlined in the guide.
<matthewcroughan>
So, what do I have to setup at creation time, and what do I not have to set up at creation time?
<matthewcroughan>
What can I set up *after* the fact
<matthewcroughan>
Should I use your script, then install NixOS, then tweak ZFS?
<matthewcroughan>
I need a path forward here, I'm getting nothing done :D
maier has joined #nixos
<noonien>
well, the script i gave you should get you from a partitioned disk, to a state in which you should be able to just run `nixos-generate-config --root /mnt` and `nixos-install`
<noonien>
yes, you can do any tweaks you want, after that
<matthewcroughan>
at which point I can go in and start figuring out what bits of the nixos guide I want to enable right?
<matthewcroughan>
like the reservations
<matthewcroughan>
or snapshotting
<noonien>
yup
<noonien>
i had some more tweaks, for zfs, i think, but they usually evolve over time
xd1le has joined #nixos
<DigitalKiwi>
as long as you don't want to change things that have to be set at pool creation time a lot(most?) zfs settings can be changed later
<DigitalKiwi>
or some settings are data set creation time...in which case if you have the space...
<DigitalKiwi>
like say you wanted to enable dedup
<DigitalKiwi>
it's only on writes
maier has quit [Ping timeout: 264 seconds]
b1000101 has quit [Quit: Lost terminal]
<matthewcroughan>
DigitalKiwi that's the hard part
<matthewcroughan>
It's why I can't move forward
<matthewcroughan>
I don't know what cannot be set after this creation time
<DigitalKiwi>
i think there's a wiki
<noonien>
don't worry about it too much
<noonien>
you can reinstall your system a few times
<noonien>
you're installing nixos anyway
<matthewcroughan>
is atime a creation time option?
<noonien>
once you have your configuration.nix, getting nixos up and running again is nothing
<matthewcroughan>
Oh no way
<bqv>
is graalvm not cached?
<matthewcroughan>
so you're saying my disk configuration is now 100% beside the point
<noonien>
no, i'm saying that once you setup your configuration.nix, you can install nixos however many times you want, fast and easy, you can wipe your disk, and, as long as you have your configuration.nix, you can get your nixos install 1:1 like it was before (with the exception that you will lose any data not directly specified in configuration.nix, like, your /home folder)
philr has joined #nixos
<matthewcroughan>
haha noonien ix.io/2t7g
<matthewcroughan>
I accidentally put g instead of j
<matthewcroughan>
and I got someone's armbian dmesg lmfao
<noonien>
once you have your configuration.nix file, you can install nixos on as many machines as you like, with exact same configuration/packages
<matthewcroughan>
yes, but I did not realise that disk state was outside of .nix
<matthewcroughan>
I didn't realise the disk was not a part of configuration.nix
<noonien>
yeah, it's crazy what you can find in some pastebins
<noonien>
mount points are, but nixos does not manage your disk apart from that
<noonien>
some people even wipe their entire nixos root on every bood
<matthewcroughan>
ya, that's a jump in learning for me
<matthewcroughan>
I think it'd do people good to learn this earlier
<noonien>
hehe, my first install of nixos was on zfs with FHE as well :D
<matthewcroughan>
you're taught by the traditional paradigm to worry a lot about your disk state
<matthewcroughan>
FHE?
<noonien>
but i did it in a VM first, then just did the same on my laptop
<matthewcroughan>
FDE you mean?
<noonien>
yes, sorry
<eyJhb>
I have this - https://termbin.com/i58v where I declaue a testingOverrides = {}; but then I get this error cannot coerce a set to a string, at /etc/nixos/channels/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11 . I am not using it any places in my Nix code
<matthewcroughan>
my laptop is way too slow to handle a VM
<matthewcroughan>
just slow as tits
<matthewcroughan>
lol got too comfy, sorry for swearing :D
<noonien>
well, you have to worry about your disk state, but, nixos is easy to get up and running again, with basically the same state
proofofkeags has quit [Ping timeout: 260 seconds]
<noonien>
nixos takes care of most of your system configuration, but it doesn't do anything with persistent data
<noonien>
so, if you install mysql for example, and you nuke your drive, and install nixos again, you'll have the same mysql installed, but no data in it
cosimone has quit [Ping timeout: 260 seconds]
<matthewcroughan>
I'm very used to this concept with docker.
<matthewcroughan>
but this is baremetal, so the concept doesn't map over 1:!
<matthewcroughan>
1:1*
<noonien>
think of your configuration.nix as basically a Dockerfile, but on steroids
<matthewcroughan>
I understand at a high level, but I still don't understand the full scope of the config.nix
<matthewcroughan>
e.g I understand that .nix is MyComputer. And just like you'd compile a c++ app with gcc, you're compiling your computer.
<DigitalKiwi>
bqv: it also fails because it is too big
<bqv>
that seems expressly dumb
<matthewcroughan>
Alright, so is it more comparable to Yocto/OpenEmbedded or Buildroot?
<noonien>
you basically give it a recipe (the .nix file), and it has an output, that output, in the case of nixos, is an OS
<noonien>
yes, exactly
sigmundv has joined #nixos
<matthewcroughan>
I'm working for a company now that deals with Yocto/OE
<matthewcroughan>
And I'm a JR Engineer, so learning still, a lot of learning to do. But I unconditionally love Nix, before I've even used it. Is that normal? :P
euandreh has joined #nixos
<matthewcroughan>
It just seems like an unbeatable concept.
<bqv>
it's not even built on stable
<noonien>
it appears to be, but it's not something i'm fond of :D
<eyJhb>
bqv , DigitalKiwi any ideas?
<noonien>
i prefer people to like stuff they've tried. i can't say i like nix/nixos, but out of all the other OSs/build systems, it's, by far, the one i hate the least
<matthewcroughan>
Installing Nix and using Nix-Build has been a dream. Good luck doing the same for OE.
<noonien>
s/like/love
<bqv>
eyJhb: ?
<matthewcroughan>
>The one I hate the least
<matthewcroughan>
We can't love anything, not even our children. We can only hate them less than other things.
<noonien>
i don't think i could even go back to an OS that doesn't have a build system similar to nix
<eyJhb>
Hoped you cold be a Nix ninja bqv , having a weird issue
<eyJhb>
error: while evaluating the attribute 'testingOverrides' of the derivation 'Signal-unspecified' at /etc/nixos/channels/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11:
<eyJhb>
cannot coerce a set to a string, at /etc/nixos/channels/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11
euandreh has quit [Remote host closed the connection]
euandreh has joined #nixos
<bqv>
eyJhb: `args //`
<bqv>
testingOverrides ends up being a derivation attr
<bqv>
which means the builder will try and stringify it
<Fare>
noonien, what would you like?
m0rphism has quit [Ping timeout: 256 seconds]
<eyJhb>
Soo, filterargs, or is there a better way bqv ?
<noonien>
hmm, right now, perhaps a revamped nix/nixpkgs that learned from all of its experiences so far?
devalot has joined #nixos
<bqv>
eyJhb: easy fix, set testingOverrides manually in that derivation. medium fix, use `removeAttrs args [ "testingOverrides" ] //` instead of `args //`, hard fix, remove the need for args or testingOverrides entirely
<noonien>
nix could take a bit of inspiration from dhall, but, i still prefer nix, by a lot. i think the nixpkgs developers would do a lot of improvements if they had a clean slate
<eyJhb>
`removeAttrs` seems like the best
<eyJhb>
Thanks! :D
<Fare>
noonien, what *kind* of changes / learnings / etc. ?
<eyJhb>
I just noticed when you wrote it
<Fare>
examples?
<Fare>
how do you compare GUIX?
<daddy_james[m]>
so that firmware I tried yesterday didn't work so I decided to just take the debian firmware and plop it into nixpkgs
<daddy_james[m]>
how would I test that?
<matthewcroughan>
GUIX is like HURD
<matthewcroughan>
Ongoing.
<daddy_james[m]>
I'd imagine ```nix-build -A libfoo``` wouldn't work since it's firmware
<matthewcroughan>
It doesn't have the community nix has, even if it's competent. All my friends in the middle of the Wales countryside are using Nix haha.
<daddy_james[m]>
so how would I include my version of nixpkgs in my configuration.nix
<noonien>
i've not used GUIX. i find lisp hard to read. as far as what kind of changes would make me like nix/nixpkgs more, i'm not sure i could comment on that. i know architecture is hard. and nix/nixpkgs is more than decent at doing what it's supposed to be doing. perhaps a bit more decoupling? nixpkgs is a pretty big monolith. flakes will help with this. perhaps a bit of type safety?
<infinisil>
noonien: I have a ton of ideas for how nixpkgs could look if we started clean
<infinisil>
There's definitely a lot of potential there
<noonien>
i'd also perhaps prefer to have more of nixpkgs lib in nix itself. and have cross-compilation be a walk in the park (perhaps i don't understand it perfectly, but deps* is pretty hard to get, imho)
<M0-[m]>
is anyone here using flakes? I want to know if it's worth using despite being experimental
<emily>
cole-h: unfortunately my nixos laptop is currently dead so I can't check :/ but e.g. pretty much everything on emojipedia that wasn't from the most recent unicode update looked fine, as did emoji in UI elements, random webpages, etc.
<cole-h>
emily: :( Alright, thanks. I'll experiment with what you have sometime soon-ish.
yui79 has joined #nixos
<emily>
cole-h: I used noto color emoji before switching to twemoji so it should work fine as long as you replace the relevant bits
<emily>
it's just kind of a monolithic config
<noonien>
i'm also not very fond of everyone translating every config file into nix options, i get why that helps sometimes, but i think it's better to just let nix tie things together, instead of re implementing every configuration mechanism for every program. i'm talking about all nix -> [yaml, json, ini, toml, etc] implemented in nix, especially those that aren't used in nixos modules.
<infinisil>
noonien: Check out rfcs#42, #75584 and #82743