| 12 Sep 2022 |
mei 🌒& | there's tvix rewriting it | 17:24:59 |
k0kada (he/him) | In reply to @ckie:ckie.dev there's tvix rewriting it Did they write anything about this? | 17:25:26 |
mei 🌒& | https://tvl.fyi/blog/rewriting-nix | 17:25:37 |
k0kada (he/him) | In reply to @ckie:ckie.dev https://tvl.fyi/blog/rewriting-nix Ah ok, I saw this one | 17:26:07 |
k0kada (he/him) | In reply to @ckie:ckie.dev there's tvix rewriting it Read tweag for some reason instead of tvix | 17:26:19 |
k0kada (he/him) | In reply to @k0kada:matrix.org Ah ok, I saw this one This one is the one that I think they didn't got really far | 17:26:31 |
k0kada (he/him) | At least I remember looking at their repo and looking kinda of abandoned | 17:26:42 |
mei 🌒& | maybe I will try to poke it soon | 17:26:59 |
mei 🌒& | oh hey, there's a default.nix for the docs, lets hit that | 17:28:55 |
mei 🌒& | here, look | 17:29:47 |
mei 🌒& | abscurd | 17:29:48 |
mei 🌒& | ckie@cookiemonster ~/git/nixfiles -> time c eval build nodes.cookiemonster.config.system.build.
trace: warning: cookie.secrets.irlgmail-nix: runtime is deprecated
trace: warning: Enabling both boot.enableContainers & virtualisation.containers on system.state
trace: warning: Using config.services.logrotate.paths.nginx is deprecated and will become unsup
Please use services.logrotate.settings instead.
these 11 derivations will be built:
/nix/store/1w8sy6f3jialx0aa6b64hj5chcrwx951-system-path.drv
/nix/store/2xv62lrsjb0dcp7qm4r2zxm3462qdqs5-unit-accounts-daemon.service.drv
/nix/store/prwrc12gyz37xq5wnapd5ycjnswchb1s-dbus-1.drv
/nix/store/8rsf5r7ikl7zxyfh88krai1va5jy4mgs-unit-dbus.service.drv
/nix/store/aj4j69pahwxrcyd48lh90gsqh56ldx19-unit-systemd-fsck-.service.drv
/nix/store/ak26lnh7kxf949pp0sdxb2x1m1aj16ji-unit-polkit.service.drv
/nix/store/bx1x9h3nan5clfyql62iy0ki6s0p6lnb-unit-dbus.service.drv
/nix/store/kjk6kznzbdzb14q25s6l6hax46iigsm0-system-units.drv
/nix/store/vs0f4fw5ww13bxn4vg7h4f083mbwdys7-user-units.drv
/nix/store/f3d34xj8b6f75svaxxllwnapjakl29sd-etc.drv
/nix/store/ss3ffafjjcxvxq062sanp8idar3grq6m-nixos-system-cookiemonster-22.11pre-git.drv
building '/nix/store/1w8sy6f3jialx0aa6b64hj5chcrwx951-system-path.drv'...
warning: collision between `/nix/store/w057vspjjm159cb318b0xd8m44gzm2ir-net-tools-2.10/bin/host
warning: collision between `/nix/store/w057vspjjm159cb318b0xd8m44gzm2ir-net-tools-2.10/bin/ifco
warning: collision between `/nix/store/w057vspjjm159cb318b0xd8m44gzm2ir-net-tools-2.10/bin/dnsd
warning: collision between `/nix/store/w057vspjjm159cb318b0xd8m44gzm2ir-net-tools-2.10/share/ma
man/man1/dnsdomainname.1.gz'
warning: collision between `/nix/store/w057vspjjm159cb318b0xd8m44gzm2ir-net-tools-2.10/share/ma
an1/hostname.1.gz'
created 8754 symlinks in user environment
gtk-update-icon-cache: Cache file created successfully.
building '/nix/store/prwrc12gyz37xq5wnapd5ycjnswchb1s-dbus-1.drv'...
building '/nix/store/2xv62lrsjb0dcp7qm4r2zxm3462qdqs5-unit-accounts-daemon.service.drv'...
building '/nix/store/ak26lnh7kxf949pp0sdxb2x1m1aj16ji-unit-polkit.service.drv'...
building '/nix/store/aj4j69pahwxrcyd48lh90gsqh56ldx19-unit-systemd-fsck-.service.drv'...
building '/nix/store/8rsf5r7ikl7zxyfh88krai1va5jy4mgs-unit-dbus.service.drv'...
building '/nix/store/bx1x9h3nan5clfyql62iy0ki6s0p6lnb-unit-dbus.service.drv'...
building '/nix/store/vs0f4fw5ww13bxn4vg7h4f083mbwdys7-user-units.drv'...
building '/nix/store/kjk6kznzbdzb14q25s6l6hax46iigsm0-system-units.drv'...
building '/nix/store/f3d34xj8b6f75svaxxllwnapjakl29sd-etc.drv'...
building '/nix/store/ss3ffafjjcxvxq062sanp8idar3grq6m-nixos-system-cookiemonster-22.11pre-git.drv'...
/nix/store/z54fd8xzi68hks2rs6afp4a18dkhkzb7-nixos-system-cookiemonster-22.11pre-git
real 3m52.745s
user 0m14.353s
sys 0m1.142s
| 17:29:51 |
mei 🌒& | real 3m52.745s for a basically-noop eval | 17:29:58 |
k0kada (he/him) | Ohhh, 4min is really bad | 17:31:02 |
k0kada (he/him) | I think my config takes 5~10s for a noop eval | 17:31:17 |
k0kada (he/him) | Unless, of course, I am using macOS | 17:31:49 |
mei 🌒& | i am not sure how to profile this | 17:31:50 |
k0kada (he/him) | macOS+nix is painful | 17:32:07 |
k0kada (he/him) | I just use it because everything else is even worse | 17:32:17 |
mei 🌒& | maybe i can give nix a tracy integration | 17:32:40 |
mei 🌒& | okay then..
ckie@cookiemonster ~/git/depot/tvix/docs -> nix-build -E 'with import <nixpkgs>{}; callPackage ./.{}'
these 7 derivations will be built:
/nix/store/iafxs9q0hl90whn3iknkd60vb66hmr5n-numeric.csl.drv
/nix/store/jdrjzfp0ypib6a546dl1nir75jqmr9zs-hyphens.sed.drv
/nix/store/mkm3qpqnklxlc1p9d6033f7dxk72lsy2-plantuml-1.2022.6.drv
/nix/store/w5rw0jnhak0mkby2ckjbwzp0025ahs8b-hyphens.lua.sed.drv
/nix/store/yxqcqkq6zc2p4k48ikbapqf03f3i4rfi-fmtutil.sed.drv
/nix/store/nw4ysxi7513xczpsgkfmb7f11g19kcb4-texlive-combined-2021.drv
/nix/store/jw8lghsjfds2d492fc5ywcaigjpi6mzv-tvix-doc-0.1.drv
these 1078 paths will be fetched (357.13 MiB download, 818.90 MiB unpacked):
| 17:35:26 |
k0kada (he/him) | $ time sudo nixos-rebuild switch
building the system configuration...
leaving systemd-boot 250.4 in place (250.4 is not newer)
activating the configuration...
setting up /etc...
reloading user units for thiagoko...
setting up tmpfiles
sudo nixos-rebuild switch 1.07s user 0.29s system 35% cpu 3.817 total
| 17:37:16 |
mei 🌒& | wow.. i want that | 17:37:28 |
k0kada (he/him) | This was just after a build so it is not exactly fair | 17:37:32 |
k0kada (he/him) | Probably on cold cache it would take longer | 17:37:43 |
mei 🌒& | mine was too | 17:37:57 |
mei 🌒& | just a commit rev change | 17:38:05 |
mei 🌒& | wow, all of that and I just got this puny little .html | 17:39:00 |
k0kada (he/him) | On macOS, with a much smaller config (since my config in macOS is just Home-Manager), it takes 30s+ | 17:39:13 |
k0kada (he/him) | And it is why I hate macOS | 17:39:17 |