refactor: remove default.nix
file in module dir
This commit is contained in:
parent
c01d40b692
commit
4d05c0c645
|
@ -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;
|
||||
|
|
|
@ -20,6 +20,7 @@ outputs = inputs@{ self, nixpkgs, agenix, ... }:
|
|||
modules = [
|
||||
{ _module.args = inputs; }
|
||||
agenix.nixosModules.default
|
||||
./hardware-configuration.nix
|
||||
./config.nix
|
||||
];
|
||||
};
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./acme.nix
|
||||
./fail2ban.nix
|
||||
./forgejo.nix
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue