feat: add empty modules for btrfs and zfs filesystems

This commit is contained in:
Dmitriy Kholkin 2025-03-10 18:42:32 +03:00
parent bd8fa8a9ae
commit 387086a698
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
config,
lib,
...
}:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.ataraxia.filesystems.btrfs;
in
{
options.ataraxia.filesystems.btrfs = {
enable = mkEnableOption "Root on btrfs";
};
config = mkIf cfg.enable { };
}

View File

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./btrfs.nix
./zfs.nix
];
}

View File

@ -0,0 +1,16 @@
{ config, lib, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.ataraxia.filesystems.zfs;
in
{
options.ataraxia.filesystems.zfs = {
enable = mkEnableOption "Root on zfs";
};
config = mkIf cfg.enable {
persist.state.files = [
"/etc/zfs/zpool.cache"
];
};
}