1
Fork 0

Import disko as module

This commit is contained in:
Matei Adriel 2023-07-17 18:54:31 +02:00
parent cc57b5ddbf
commit 9075130cc8
No known key found for this signature in database
4 changed files with 17 additions and 1 deletions
hosts/nixos/lapetus

View file

@ -28,9 +28,14 @@
# zfs rollback -r zroot@blank
# '';
disko.devices = import ./partitions.nix {
devices = [ "/dev/sda" ];
};
# Boot
boot.loader.grub = {
enable = true;
version = 2;
device = "/dev/sda";
};
}

View file

@ -56,15 +56,21 @@
# {{{ Datasets
datasets = {
"root/persist/data" = {
type = "zfs_fs";
mountpoint = "/persist/data";
options."com.sun:auto-snapshot" = "true";
};
"root/persist/state" = {
type = "zfs_fs";
mountpoint = "/persist/state";
options."com.sun:auto-snapshot" = "true";
};
"root/local/nix" = { mountpoint = "/nix"; };
"root/local/nix" = {
type = "zfs_fs";
mountpoint = "/nix";
};
"root/local/cache" = {
type = "zfs_fs";
mountpoint = "/persist/local/cache";
};
};