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

View file

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