1
0
Fork 0
nix-config/modules/nixos/services/btrfs/default.nix
Philipp 39fb8c64dc
add chatterino, plasma-config, kitty, runelite, eza
fix formatting, fix btrfs being enabled by default update flake
2025-02-08 23:19:59 +01:00

24 lines
398 B
Nix

{
lib,
config,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.services.btrfs;
in
{
options.${namespace}.services.btrfs = {
enable = mkBoolOpt false "BTRFS";
};
config = mkIf cfg.enable {
services.btrfs.autoScrub.enable = true;
services.fstrim.enable = true;
environment.systemPackages = with pkgs; [ btrfs-progs ];
};
}