Move many server modules to basic
This commit is contained in:
parent
36a04eada8
commit
7247e543c0
6 changed files with 7 additions and 7 deletions
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
}
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
inherit (builtins) mapAttrs attrValues;
|
||||
inherit (lib) filterAttrs unique;
|
||||
btrfsFileSystems =
|
||||
filterAttrs (_k: v: v.fsType == "btrfs") config.fileSystems;
|
||||
btrfsDevices =
|
||||
unique (attrValues (mapAttrs (_: v: v.device) btrfsFileSystems));
|
||||
in
|
||||
{
|
||||
services.btrfs.autoScrub = {
|
||||
enable = btrfsDevices != [ ];
|
||||
fileSystems = btrfsDevices;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,9 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./fwupd.nix
|
||||
./fstrim.nix
|
||||
./btrfs-scrub.nix
|
||||
./automatic-upgrade.nix
|
||||
./automatic-garbage-collection.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
services.fstrim.enable = true;
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
services.fwupd.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue