adept

joined 2 years ago
[–] [email protected] 3 points 2 months ago (1 children)

I don't really like flake-parts or flakelight. I think that part of this is sheer brutalism (I don't mind writing bare Nix) but part of it is a desire to not rely on flakes which don't carry their own weight, following Wirth's principle for compilers.

How can you say this and still use flake-utils? All it does is manage your systems. You can write your own one-liner for that

eachSystem = f: lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});

Where systems is automatically supplied as a flake input (I think), or you can supply your own list of systems to support. You can then use it like this:

devShells = eachSystem (pkgs: {
    default = # your devshell
}

You can of course modify eachSystem to have more function parameters other than pkgs.

See this blog which initially inspired me not to use flake-utils

[–] [email protected] 2 points 4 months ago

Related, and I cannot help but read "bcachefs" as "bitch café"

[–] [email protected] 2 points 7 months ago

When it was on sale recently I didn't buy it. Instead I removed all Sony games from my wishlist, knowing they would require PSN even for single player games.

1
Changing Hardware config (programming.dev)
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]
 

I want to change my hardware config from 2 btrfs partitions to 1 partition with subvolumes for root, /nix, /home, and maybe some other like /log.

I mainly want to optimize the /nix/store. And possibly being ready to integrate the impermanence module down the line

What would be the easiest way to accomplish this without reinstalling or breaking too much?

Alternativly I thought about using disko and nixos-install the overwrite my second disk

Thank you