refactor: remove default.nix file in module dir

This commit is contained in:
Kiana Sheibani 2024-11-19 22:48:31 -05:00
parent c01d40b692
commit 4d05c0c645
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
3 changed files with 5 additions and 10 deletions

View file

@ -1,6 +1,8 @@
{ config, lib, pkgs, rpi5-kernel, ... }:
{
imports = [ ./hardware-configuration.nix ./modules ];
let modules = builtins.map (mod: modules/${mod}.nix);
in {
imports =
modules [ "acme" "fail2ban" "forgejo" ];
boot.kernelPackages = rpi5-kernel.legacyPackages.aarch64-linux.linuxPackages_rpi5;
boot.loader.systemd-boot.enable = true;

View file

@ -20,6 +20,7 @@ outputs = inputs@{ self, nixpkgs, agenix, ... }:
modules = [
{ _module.args = inputs; }
agenix.nixosModules.default
./hardware-configuration.nix
./config.nix
];
};

View file

@ -1,8 +0,0 @@
{ ... }:
{
imports = [
./acme.nix
./fail2ban.nix
./forgejo.nix
];
}