mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
fix(lint): nixfmt the whole tree
This commit is contained in:
parent
643b136863
commit
bf219a30c2
69 changed files with 2605 additions and 1726 deletions
|
|
@ -1,12 +1,19 @@
|
|||
{ config, pkgs, lib, myLib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
myLib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.aviallon.filesystems.btrfs;
|
||||
#fsCfg = config.fileSystems;
|
||||
btrfsPaths = [ "/" ];
|
||||
# btrfsPaths = filterAttrs (n: v: v.fsType == "btrfs") fsCfg;
|
||||
# btrfsPaths = filterAttrs (n: v: v.fsType == "btrfs") fsCfg;
|
||||
generalCfg = config.aviallon.general;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.aviallon.filesystems.btrfs = {
|
||||
enable = mkEnableOption "BTRFS support";
|
||||
autoScrub = {
|
||||
|
|
@ -57,11 +64,11 @@ in {
|
|||
};
|
||||
systemd.services.duperemove = {
|
||||
script = ''
|
||||
mkdir -p $DATA_DIR
|
||||
exec ${pkgs.duperemove}/bin/duperemove \
|
||||
--io-threads=${toString cfg.autoDedup.ioThreads} --cpu-threads=${toString cfg.autoDedup.cpuThreads} \
|
||||
--dedupe-options=same \
|
||||
--hashfile=$DATA_DIR/hashes.db -h -v -rd "$@"
|
||||
mkdir -p $DATA_DIR
|
||||
exec ${pkgs.duperemove}/bin/duperemove \
|
||||
--io-threads=${toString cfg.autoDedup.ioThreads} --cpu-threads=${toString cfg.autoDedup.cpuThreads} \
|
||||
--dedupe-options=same \
|
||||
--hashfile=$DATA_DIR/hashes.db -h -v -rd "$@"
|
||||
'';
|
||||
scriptArgs = concatStringsSep " " cfg.autoDedup.paths;
|
||||
# %S : state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue