Server: manually load server modules
This commit is contained in:
parent
91aba83be1
commit
7e63b18eef
1 changed files with 7 additions and 8 deletions
|
|
@ -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
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue