1
0
Fork 0
mirror of https://git.oat.zone/dark-firepit/dotfiles synced 2024-04-28 08:45:04 +02:00
git.oat.zone--dark-firepit-.../modules/hardware/fs.nix
System administrator ec00c09f2e Dotfiles
2022-01-11 17:44:40 +00:00

30 lines
496 B
Nix

{ config, options, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.hardware.fs;
in {
options.modules.hardware.fs = {
enable = mkOption {
type = types.bool;
default = false;
};
ssd.enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable (mkMerge [
{
environment.systemPackages = with pkgs; [
sshfs
];
}
(mkIf cfg.ssd.enable {
services.fstrim.enable = true;
})
]);
}