| 22 Nov 2024 |
K900 | You can override basically anything | 09:06:45 |
K900 | But the more you override, the further from a supported configuration you are | 09:07:40 |
K900 | There's even things like liminix that fit in tens of megabytes | 09:08:13 |
K900 | But they're not really NixOS anymore | 09:08:17 |
K900 | And barely even nixpkgs | 09:08:22 |
khartahk | hm, I'm starting with this config for now: https://github.com/khartahk/nixos-minimal/blob/main/etc/nixos/configuration.nix the hardware-configuration.nix just has the partitions specified and imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; | 09:27:53 |
khartahk | I'm willing to break things or remove stuff that I don't need. I'm really trying first to create as small image as I can. And in doing so i can that build on top of it by re-adding stuff that i need. I guess first thing is to know what I need ... kernel wise etc ... or can I just remove some other bloat that's just obvious and not required to run the OS? | 09:31:08 |
K900 | There's no turnkey solution for this | 09:47:50 |
K900 | You'll have to experiment | 09:47:57 |
khartahk | any suggestion, pointer, especially examples to remove non-essential things that you may perhaps know would be greatly appreciated. | 10:07:03 |
K900 | https://github.com/NixOS/nixpkgs/blob/1f8150661e78f70bda0b51893344326fc2ca264c/nixos/modules/profiles/minimal.nix#L4 could be a good start | 10:07:52 |
K900 | But that's still very far from how low you could push it if you wanted to | 10:08:15 |
khartahk | added that, and updated git repo, removed a couple of MB still at 2.1GB curretnly. I'm testing it using nixos-enter command on a USB drive that I know it boots so I can do it live on 1 computer - really nice and easy to chroot to nixos ... | 10:18:52 |