Added minimal zfs config

Still want to add an option for zfs on root later on.
This commit is contained in:
Alejandro Angulo 2023-03-25 10:16:14 -07:00
parent 954d01d4fe
commit 8df356ad9c
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
4 changed files with 26 additions and 5 deletions

View file

@ -0,0 +1,22 @@
{
options,
config,
pkgs,
lib,
...
}:
with lib; let
cfg = config.aa.system.zfs;
in {
options.aa.system.zfs = with types; {
enable = mkEnableOption "zfs";
# TODO: Introduce a zfsOnRoot option
};
config = mkIf cfg.enable {
services.zfs = {
autoScrub.enable = true;
autoSnapshot.enable = true;
};
};
}

View file

@ -32,6 +32,8 @@
};
hardware.audio.enable = true;
system.zfs.enable = true;
};
networking = {

View file

@ -54,9 +54,4 @@
];
};
users.users.root.initialHashedPassword = "$6$VOzIHqv12iJGQIFl$NQf1GeiGhtdLfZFmtZl4vab.xvtVvI7.5ty9zbMFI2dpmHoFdc6XnGwTlClVe./CbcrsQjtPpt7NKf0dNttcw.";
services.zfs = {
autoScrub.enable = true;
autoSnapshot.enable = true;
};
}

View file

@ -39,6 +39,8 @@
};
hardware.audio.enable = true;
system.zfs.enable = true;
};
boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"];