moar options
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
{config, lib, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.kop.hardware.ssd;
|
||||
in
|
||||
{
|
||||
services.fstrim.enable = true;
|
||||
options.kop.hardware.ssd = {
|
||||
enable = mkEnableOption "Enables fstrim";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.fstrim.enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user