refactor pleione drives

This commit is contained in:
Gabriel Fontes
2022-02-06 02:03:05 -03:00
parent 0be4ee6302
commit bb3b41d185
2 changed files with 14 additions and 46 deletions
+1 -1
View File
@@ -129,7 +129,7 @@
packages = pkgs // { inherit home-manager; };
devShell = pkgs.mkShell {
buildInputs = with pkgs; [ nixUnstable nixfmt rnix-lsp home-manager ];
buildInputs = with pkgs; [ nixUnstable nixfmt rnix-lsp home-manager git ];
};
});
}
+13 -45
View File
@@ -15,53 +15,9 @@
fileSystems = {
"/" = {
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=4G" "mode=755" ];
};
"/boot" = {
device = "/dev/disk/by-label/ESP";
fsType = "vfat";
};
"/data/etc" = {
device = "/dev/mapper/pleione";
fsType = "btrfs";
options = [ "subvol=data/etc" "compress=zstd" ];
neededForBoot = true;
};
"/data/games" = {
device = "/dev/mapper/pleione";
fsType = "btrfs";
options = [ "subvol=data/games" "compress=zstd" ];
};
"/data/home" = {
device = "/dev/mapper/pleione";
fsType = "btrfs";
options = [ "subvol=data/home" "compress=zstd" ];
neededForBoot = true;
};
"/data/srv" = {
device = "/dev/mapper/pleione";
fsType = "btrfs";
options = [ "subvol=data/srv" "compress=zstd" ];
};
"/data/var" = {
device = "/dev/mapper/pleione";
fsType = "btrfs";
options = [ "subvol=data/var" "compress=zstd" ];
neededForBoot = true;
};
"/dotfiles" = {
device = "/dev/mapper/pleione";
fsType = "btrfs";
options = [ "subvol=dotfiles" "compress=zstd" ];
options = [ "subvol=root" "compress=zstd" ];
};
"/nix" = {
@@ -70,11 +26,23 @@
options = [ "subvol=nix" "noatime" "compress=zstd" ];
};
"/persist" = {
device = "/dev/mapper/pleione";
fsType = "btrfs";
options = [ "subvol=persist" "compress=zstd" ];
neededForBoot = true;
};
"/swap" = {
device = "/dev/mapper/pleione";
fsType = "btrfs";
options = [ "subvol=swap" "noatime" "compress=lzo" ];
};
"/boot" = {
device = "/dev/disk/by-label/ESP";
fsType = "vfat";
};
};
swapDevices = [{