1
Fork 0

Proper disko module import

This commit is contained in:
Matei Adriel 2023-07-17 19:31:40 +02:00
parent b556e0ad88
commit ded281babf
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,9 @@
{ config, ... }:
let
device = "/dev/sda";
disko = import ./partitions.nix {
devices = [ device ];
};
in
{
imports = [
@ -9,6 +12,7 @@ in
../common/optional/slambda.nix
./hardware-configuration.nix
disko
];
# Set the name of this machine!
@ -31,10 +35,6 @@ in
# zfs rollback -r zroot@blank
# '';
disko.devices = import ./partitions.nix {
devices = [ device ];
};
# Boot
boot.loader.grub = {
inherit device;

View file

@ -39,6 +39,7 @@
zpool = {
zroot = {
type = "zpool";
mountpoint = "/";
postCreateHook = ''
zfs snapshot zroot@blank