moar options

This commit is contained in:
Kopatz
2024-04-16 21:20:04 +02:00
parent a61bf01275
commit 9d79d01c5e
16 changed files with 132 additions and 57 deletions

15
modules/misc/tmpfs.nix Normal file
View File

@@ -0,0 +1,15 @@
{config, lib, ...}:
with lib;
let
cfg = config.kop.tmpfs;
in
{
options.kop.tmpfs = {
enable = mkEnableOption "Enables tmpfs";
};
config = mkIf cfg.enable {
boot.tmp.useTmpfs = true;
};
}