diff options
author | Felix Buehler | 2024-08-24 22:05:44 +0200 |
---|---|---|
committer | Felix Buehler | 2024-08-30 23:00:49 +0200 |
commit | 301dbd7fdf0ee5a16a619510ded9dd160b1869e4 (patch) | |
tree | dfbde1b0adf6ed0f29844c4d2d71b6ad3b2138ba /nixos | |
parent | 1c84189d821daf6c296bbeec242074f8837e721a (diff) |
nixos/services.fstrim: remove `with lib;`
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/fstrim.nix | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/nixos/modules/services/misc/fstrim.nix b/nixos/modules/services/misc/fstrim.nix index 10dced2c4e64..8ead4a645f7c 100644 --- a/nixos/modules/services/misc/fstrim.nix +++ b/nixos/modules/services/misc/fstrim.nix @@ -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 ]; |