chore: nix fmt
This commit is contained in:
parent
a80bd4ed3b
commit
7266fff06e
128 changed files with 3402 additions and 2013 deletions
|
@ -1,20 +1,28 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.global.fs;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.global.fs.bcachefs = {
|
||||
options = mkOption {
|
||||
type = with types; listOf str;
|
||||
default = [ "noatime" "compression=zstd" ];
|
||||
default = [
|
||||
"noatime"
|
||||
"compression=zstd"
|
||||
];
|
||||
description = "bcachefs mount options";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.type == "bcachefs") {
|
||||
fileSystems."/nix" =
|
||||
{ inherit (cfg.bcachefs) options;
|
||||
fileSystems."/nix" = {
|
||||
inherit (cfg.bcachefs) options;
|
||||
device = "/dev/disk/by-uuid/${cfg.store}";
|
||||
fsType = "bcachefs";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue