feat: add empty modules for btrfs and zfs filesystems
This commit is contained in:
parent
bd8fa8a9ae
commit
387086a698
16
modules/nixos/filesystems/btrfs.nix
Normal file
16
modules/nixos/filesystems/btrfs.nix
Normal 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 { };
|
||||||
|
}
|
7
modules/nixos/filesystems/default.nix
Normal file
7
modules/nixos/filesystems/default.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./btrfs.nix
|
||||||
|
./zfs.nix
|
||||||
|
];
|
||||||
|
}
|
16
modules/nixos/filesystems/zfs.nix
Normal file
16
modules/nixos/filesystems/zfs.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user