update: add tlp and fstrim services
This commit is contained in:
parent
edc2f1cfb6
commit
6f0f2ccb0d
4 changed files with 29 additions and 4 deletions
9
nixosModules/services/fstrim.nix
Normal file
9
nixosModules/services/fstrim.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, ... }: {
|
||||
options = {
|
||||
settings.services.fstrim.enable = lib.mkEnableOption "enables fstrim";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.settings.services.fstrim.enable {
|
||||
services.fstrim.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue