feat(fruitbook): init
This commit is contained in:
20
hosts/fruitbook/filesystems.nix
Normal file
20
hosts/fruitbook/filesystems.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ ... }:
|
||||
|
||||
let
|
||||
device = "/dev/disk/by-id/ata-APPLE_SSD_SM0512G_S29ANYAH526520-part5";
|
||||
subvol = subvol-name: {
|
||||
inherit device;
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=${subvol-name}" ];
|
||||
};
|
||||
in {
|
||||
fileSystems = {
|
||||
"/" = subvol "rootfs";
|
||||
"/persist" = subvol "persist" // { neededForBoot = true; };
|
||||
"/persist/home" = subvol "persist/home";
|
||||
"/nix" = subvol "nix";
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-id/ata-APPLE_SSD_SM0512G_S29ANYAH526520-part3";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user