| 11 Aug 2025 |
| Cherrybun 🍒 (they/them) changed their profile picture. | 01:14:59 |
| 12 Aug 2025 |
c4lliope | hi, I could really use help on a nix machine where I have many old packages in the store - mainly multiple copies of libreoffice and cef, which I haven't used in months. I run nix-collect-garbage a bunch and I finally ran dust on the root to see where the problem is:
1.3G │ ┌── libreoffice │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ┌─┴ lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ┌─┴ 24k8smf6i1fiq7x5zp1qkqhm4zy5kidh-libreoffice-7.6.7.2 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ │ ┌── libreoffice │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ │ ┌─┴ lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ├─┴ 8c43345jxrqkn74h3cqaiiakx5p2031w-libreoffice-7.6.7.2 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ │ ┌── libreoffice │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ │ ┌─┴ lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ├─┴ yxz4jmv9yn4qvmxg9za0jjymcpj3ngab-libreoffice-7.6.7.2 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.2G │ │ ┌── lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ├─┴ lasyr763kngl0njvcvzxcz1lylxkic4j-cef-binary-121.3.13 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.2G │ │ ┌── lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ├─┴ rm4lpai2xd1d35lbsvx3drvsp0g95n5j-cef-binary-121.3.13 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.2G │ │ ┌── lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ├─┴ dzsff307h34si4d6fxxnzrwj9rzbycjh-cef-binary-121.3.13 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.2G │ │ ┌── lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ├─┴ ic7wgx3fk2hsv111scp03pgfv6d8fm8r-cef-binary-121.3.13 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.2G │ │ ┌── lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ├─┴ gfvf13zm42ihkg772bphpydgk2slwqb1-cef-binary-121.3.13 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.2G │ │ ┌── lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ ├─┴ gba4zl0igykjxfdrrk2klffbmblswkvj-cef-binary-121.3.13 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ │ ┌── libreoffice │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ │ ┌─┴ lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ ├─┴ ap25q0f690fpmhgg957w0pwcb6k0m278-libreoffice-24.2.7.2│█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ │ ┌── libreoffice │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ │ ┌─┴ lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ ├─┴ yhmw5ffiz531z04sachzbhysjljcscya-libreoffice-24.2.7.2│█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ │ ┌── libreoffice │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ │ ┌─┴ lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ ├─┴ xlfxk2fpiz174g6a0iqcfkxi0yc8s0zn-libreoffice-24.2.7.2│█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ │ ┌── libcef.so │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.3G │ │ ┌─┴ Release │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ ├─┴ aq25mfhik3jbq8l0vf8l812jig5ym1r6-cef-binary-127.3.5 │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ │ ┌── libreoffice │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ │ ┌─┴ lib │█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
1.4G │ ├─┴ kfln3cfd26rgszjycrzs3nddxdlins3z-libreoffice-24.8.7.2│█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ │ 1%
181G │ ┌─┴ store │██████████████████████ │ 84%
181G ├─┴ nix │██████████████████████ │ 84%
215G ┌─┴ / │██████████████████████████ │ 100%
Is there any reason these would not be cleaned up by garbage collection? I really need to rebuild this machine because my store partition is far too small to handle this. Hope there is a reason or method to learn about the cache invalidation rules here.
| 00:57:09 |
c4lliope | *I'm sure libreoffice is unused, unsure if something depends on cef. | 00:58:51 |
hexa | active system closures that reference it | 00:58:52 |
hexa | set configurationLimit for your bootloader | 00:59:00 |
c4lliope | uh. | 00:59:13 |
hexa | the default is 100 | 00:59:20 |
c4lliope | I need a method of exploring the closures to see why | 00:59:22 |
hexa | nix why-depends | 00:59:47 |
hexa | or nix-tree | 01:00:12 |
c4lliope | Yeah! And I get the idea behind the configLimit but with nix-collect-garbage --old, there is only one configuration at all. | 01:00:27 |
hexa | ok, so your system closures are generally anchored by gcroots | 01:01:07 |
hexa | they are in /nix/var/nix/gcroots | 01:01:18 |
hexa | well, not only your system closures | 01:01:32 |
hexa | also result-symlinks that are still floating around | 01:01:53 |
c4lliope | oh dang there are so many gcroots. so damn many | 01:03:03 |
c4lliope | I'm on generation 1000+ so I should have learned this ages ago, thank you!
I can already see the difference, should plug in before the fan takes off. | 01:06:57 |
hexa | haha, enjoy | 01:08:15 |
hexa | 2005 here 😄 | 01:08:38 |
c4lliope | eh, configurationLimit=8 helped some but not too much. still a few libreoffices hanging around. I'll run through nix-tree, thanks for the quick help! | 01:12:05 |
c4lliope | ahhhhhhh libreoffice does not appear at all in sudo nix-tree. | 01:16:10 |
c4lliope | nor cef. | 01:16:28 |
hexa | nix-tree by default loads the current system closure | 01:17:36 |
c4lliope | I see... fan intensifies | 01:20:54 |
c4lliope | oh dang, I realize my current profile is 17 GB and my store is 186 GB | 01:22:49 |
c4lliope | I really assumed the gc would handle this. More to learn, yay. | 01:23:14 |
c4lliope | I've always been fascinated by these mechanisms so this is amazing. | 01:23:49 |
c4lliope | oh it's all dev shells:
➜ | ls /tmp/nix-
/tmp/nix-104175-0/ /tmp/nix-104180-0/ /tmp/nix-1512-0/ /tmp/nix-1521-0/
/tmp/nix-19751-0/ /tmp/nix-19756-0/ /tmp/nix-201408-0/ /tmp/nix-201413-0/
/tmp/nix-207111-0/ /tmp/nix-207119-0/ /tmp/nix-211432-0/ /tmp/nix-211437-0/
/tmp/nix-22878-0/ /tmp/nix-22883-0/ /tmp/nix-231193-0/ /tmp/nix-231198-0/
/tmp/nix-71082-0/ /tmp/nix-71107-0/ /tmp/nix-develop-101590-0/ /tmp/nix-develop-102057-0/
/tmp/nix-develop-102406-0/ /tmp/nix-develop-105737-0/ /tmp/nix-develop-106395-0/ /tmp/nix-develop-106774-0/
/tmp/nix-develop-10686-0/ /tmp/nix-develop-107029-0/ /tmp/nix-develop-10716-0/ /tmp/nix-develop-107259-0/
/tmp/nix-develop-107805-0/ /tmp/nix-develop-108268-0/ /tmp/nix-develop-108496-0/ /tmp/nix-develop-108521-0/
/tmp/nix-develop-108842-0/ /tmp/nix-develop-10900-0/ /tmp/nix-develop-109019-0/ /tmp/nix-develop-109291-0/
/tmp/nix-develop-109889-0/ /tmp/nix-develop-110375-0/ /tmp/nix-develop-11091-0/ /tmp/nix-develop-112557-0/
/tmp/nix-develop-11348-0/ /tmp/nix-develop-11434-0/ /tmp/nix-develop-114543-0/ /tmp/nix-develop-11457-0/
/tmp/nix-develop-11498-0/ /tmp/nix-develop-11549-0/ /tmp/nix-develop-11557-0/ /tmp/nix-develop-11564-0/
/tmp/nix-develop-117147-0/ /tmp/nix-develop-11717-0/ /tmp/nix-develop-11835-0/ /tmp/nix-develop-11876-0/
/tmp/nix-develop-120400-0/ /tmp/nix-develop-12069-0/ /tmp/nix-develop-120930-0/ /tmp/nix-develop-121094-0/
/tmp/nix-develop-12173-0/ /tmp/nix-develop-121744-0/ /tmp/nix-develop-121888-0/ /tmp/nix-develop-122456-0/
/tmp/nix-develop-12269-0/ /tmp/nix-develop-122763-0/ /tmp/nix-develop-123602-0/ /tmp/nix-develop-12544-0/
/tmp/nix-develop-125805-0/ /tmp/nix-develop-12676-0/ /tmp/nix-develop-127242-0/ /tmp/nix-develop-127499-0/
/tmp/nix-develop-12767-0/ /tmp/nix-develop-127811-0/ /tmp/nix-develop-128142-0/ /tmp/nix-develop-129319-0/
| 01:34:12 |
hexa | persistent tmp? 😲 | 01:36:15 |
c4lliope | uh no... there are 1664 tmp folders and the oldest is 2025-07-20 I prefix nearly all my commands with nd, nix develop | 01:40:16 |