this post was submitted on 05 Aug 2024
9 points (100.0% liked)

Nix / NixOS

1670 readers
9 users here now

Main links

Videos

founded 1 year ago
MODERATORS
9
Changing Hardware config (programming.dev)
submitted 1 month ago* (last edited 1 month ago) by adept@programming.dev to c/nix@programming.dev
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] adept@programming.dev 2 points 1 month ago

Thanks for your response.

That's exactly what i had in mind. I just wasn't quite sure it would work out as i imagined.

Since i asked this question i have already prepared a second (empty) disk and a disko config to make it all declarative. Before i actually apply this config to my second disk i'm looking into creating a VM to test the disko-partitions