mirror of
https://codeberg.org/privacy1st/nix-git
synced 2025-02-02 07:45:16 +01:00
separate btrfsFileSystems
This commit is contained in:
parent
24c5c9f86b
commit
5017248af4
@ -2,6 +2,7 @@
|
||||
{
|
||||
imports = [
|
||||
# Filesystem settings.
|
||||
./btrfsFileSystems.nix
|
||||
./btrfs-mount-options.nix
|
||||
|
||||
# Shell settings.
|
||||
|
@ -4,7 +4,7 @@
|
||||
./base-minimal.nix
|
||||
|
||||
# Filesystem settings.
|
||||
./btrfs-scrub.nix
|
||||
./btrfsScrub.nix
|
||||
|
||||
# DNS settings.
|
||||
#
|
||||
|
17
modules/btrfsFileSystems.nix
Normal file
17
modules/btrfsFileSystems.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ lib, config, options, pkgs, modulesPath, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.yoda.btrfsMounts;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
yoda.btrfsFileSystems = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = ["/"];
|
||||
example = ["/" "/mnt/data"];
|
||||
description = ''
|
||||
List containing each mounted BTRFS filesystem once.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
@ -17,16 +17,17 @@
|
||||
{ lib, config, options, pkgs, modulesPath, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.yoda.btrfsFileSystems;
|
||||
cfg = config.yoda.btrfsScrub;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
yoda.btrfsFileSystems = mkOption {
|
||||
yoda.btrfsScrub = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = ["/"];
|
||||
default = config.yoda.btrfsFileSystems;
|
||||
example = ["/" "/mnt/data"];
|
||||
description = ''
|
||||
List containing each mounted BTRFS filesystem once.
|
||||
This should usually be left at its default value to regularly scrub all BTRFS file systems.
|
||||
'';
|
||||
};
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user