Proper disko module import
This commit is contained in:
parent
b556e0ad88
commit
ded281babf
|
@ -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;
|
||||||
|
|
|
@ -39,6 +39,7 @@
|
||||||
zpool = {
|
zpool = {
|
||||||
zroot = {
|
zroot = {
|
||||||
type = "zpool";
|
type = "zpool";
|
||||||
|
mountpoint = "/";
|
||||||
|
|
||||||
postCreateHook = ''
|
postCreateHook = ''
|
||||||
zfs snapshot zroot@blank
|
zfs snapshot zroot@blank
|
||||||
|
|
Loading…
Reference in a new issue