Added minimal zfs config
Still want to add an option for zfs on root later on.
This commit is contained in:
parent
954d01d4fe
commit
8df356ad9c
22
modules/system/zfs/default.nix
Normal file
22
modules/system/zfs/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -32,6 +32,8 @@
|
|||
};
|
||||
|
||||
hardware.audio.enable = true;
|
||||
|
||||
system.zfs.enable = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
|
|
|
@ -54,9 +54,4 @@
|
|||
];
|
||||
};
|
||||
users.users.root.initialHashedPassword = "$6$VOzIHqv12iJGQIFl$NQf1GeiGhtdLfZFmtZl4vab.xvtVvI7.5ty9zbMFI2dpmHoFdc6XnGwTlClVe./CbcrsQjtPpt7NKf0dNttcw.";
|
||||
|
||||
services.zfs = {
|
||||
autoScrub.enable = true;
|
||||
autoSnapshot.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
};
|
||||
|
||||
hardware.audio.enable = true;
|
||||
|
||||
system.zfs.enable = true;
|
||||
};
|
||||
|
||||
boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"];
|
||||
|
|
Loading…
Reference in a new issue