Server: manually load server modules

This commit is contained in:
Filippo Berto 2024-03-03 16:32:51 +01:00
parent 91aba83be1
commit 7e63b18eef
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -1,10 +1,9 @@
{ lib, ... }:
let
src = ./.;
files = builtins.readDir src;
nixFiles = builtins.attrNames (lib.attrsets.filterAttrs (name: type: type != "directory" && lib.hasSuffix ".nix" name && !(lib.hasSuffix "default.nix" name)) files);
imports = builtins.map (path: src + ("/" + path)) nixFiles;
in
{
inherit imports;
imports = [
./fwupd.nix
./fstrim.nix
./btrfs-scrub.nix
./automatic-upgrade.nix
./automatic-garbage-collection.nix
];
}