migrate impermanent home to subvolumes

This commit is contained in:
♥ Minnie ♥ 2024-09-07 15:48:27 +08:00
parent 2fce9fd507
commit c1a5ed1d4f
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
8 changed files with 15 additions and 77 deletions

View file

@ -6,10 +6,17 @@
imports = [
inputs.home-manager.nixosModules.home-manager
];
users.users.spectre = {
isNormalUser = true;
shell = pkgs.zsh;
hashedPassword = "$y$j9T$eCJ0MDPsx3tww9LP0LU8..$sE8u5keO7QNKNAR1t2R6GqsDzvGD0Xn9Fi3to14Gf9/";
};
users.mutableUsers = false;
fileSystems."/home/spectre" = {
device = "/dev/disk/by-label/data";
fsType = "btrfs";
options = ["subvol=spectre" "compress=zstd"];
};
}