migrate impermanent home to subvolumes
This commit is contained in:
parent
2fce9fd507
commit
c1a5ed1d4f
8 changed files with 15 additions and 77 deletions
|
@ -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"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue