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

@ -8,6 +8,7 @@
imports = [
inputs.home-manager.nixosModules.home-manager
];
users.users.sajenim = {
isNormalUser = true;
extraGroups = ["audio" "docker" "networkmanager" "wheel" "adbusers"];
@ -26,4 +27,10 @@
};
backupFileExtension = "bak";
};
fileSystems."/home/sajenim" = {
device = "/dev/disk/by-label/data";
fsType = "btrfs";
options = ["subvol=sajenim" "compress=zstd"];
};
}