nixos/services.fstrim: remove with lib;

This commit is contained in:
Felix Buehler
2024-08-30 23:00:49 +02:00
parent 1c84189d82
commit 301dbd7fdf
+4 -7
View File
@@ -1,7 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.fstrim;
@@ -11,10 +8,10 @@ in {
options = {
services.fstrim = {
enable = mkEnableOption "periodic SSD TRIM of mounted partitions in background";
enable = lib.mkEnableOption "periodic SSD TRIM of mounted partitions in background";
interval = mkOption {
type = types.str;
interval = lib.mkOption {
type = lib.types.str;
default = "weekly";
description = ''
How often we run fstrim. For most desktop and server systems
@@ -28,7 +25,7 @@ in {
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
systemd.packages = [ pkgs.util-linux ];