.: module imports cleanup
CI / nixos-x86_64-linux (push) Successful in 0s Details
CI / nixos-aarch64-linux (push) Successful in 35s Details

main
Robert Gerus 2023-10-20 00:59:20 +02:00
parent faf53b3040
commit 1d7d232d4a
11 changed files with 31 additions and 38 deletions

View File

@ -70,23 +70,16 @@
overlays = import ./overlays;
nixosModules = {
nibylandia-boot.imports = [ ./modules/boot.nix ];
nibylandia-secureboot.imports = [ ./modules/secureboot.nix ];
nibylandia-common.imports = [ ./modules/common.nix ];
nibylandia-graphical.imports = [ ./modules/graphical.nix ];
nibylandia-laptop.imports = [ ./modules/laptop.nix ];
nibylandia-gaming.imports = [ ./modules/gaming.nix ];
nibylandia-monitoring.imports = [ ./modules/monitoring.nix ];
nibylandia-ci-runners.imports = [ ./modules/ci-runners.nix ];
};
nixosModules = nixpkgs.lib.genAttrs [
"boot"
"secureboot"
"common"
"graphical"
"laptop"
"gaming"
"monitoring"
"ci-runners"
] (modname: { imports = [ (./modules/. + "/${modname}.nix") ]; });
nixosConfigurations = builtins.mapAttrs (name: value:
nixpkgs.lib.nixosSystem {

View File

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }:
let cfg = config.nibylandia-boot;
let cfg = config.boot;
in {
options.nibylandia-boot = {
options.boot = {
uefi.enable = lib.mkEnableOption "Boot via UEFI";
ryzen.enable = lib.mkEnableOption "Enable AMD Ryzen-specific options";
};

View File

@ -8,7 +8,7 @@ in {
microvm.nixosModules.host
self.nixosModules.nibylandia-boot
self.nixosModules.boot
];
deployment = {

View File

@ -1,7 +1,7 @@
{ config, lib, pkgs, inputs, ... }:
{
imports = [ inputs.self.nixosModules.nibylandia-common ];
imports = [ inputs.self.nixosModules.common ];
boot = {
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];

View File

@ -13,5 +13,5 @@
privateKeyFile = config.age.secrets.secureboot-key.path;
};
nibylandia-boot.uefi.enable = lib.mkForce false;
boot.uefi.enable = lib.mkForce false;
}

View File

@ -7,10 +7,10 @@
imports = with inputs.self.nixosModules; [
./hardware-configuration.nix
nibylandia-graphical
nibylandia-laptop
nibylandia-secureboot
nibylandia-gaming
graphical
laptop
secureboot
gaming
];
boot.kernelPatches = with lib.kernel; [{

View File

@ -2,7 +2,7 @@
{
hardware.enableAllFirmware = true;
nibylandia-boot.ryzen.enable = true;
boot.ryzen.enable = true;
boot.initrd.availableKernelModules =
[ "nvme" "ehci_pci" "xhci_pci" "rtsx_pci_sdmmc" ];

View File

@ -7,9 +7,9 @@
imports = with inputs.self.nixosModules; [
./hardware-configuration.nix
nibylandia-graphical
nibylandia-gaming
nibylandia-secureboot
graphical
gaming
secureboot
];
age.secrets.ar-password.file = ../../secrets/microlith-ar.age;

View File

@ -23,11 +23,11 @@ in {
imports = with inputs.self.nixosModules; [
./hardware-configuration.nix
nibylandia-common
nibylandia-ci-runners
common
ci-runners
];
nibylandia-boot.uefi.enable = true;
boot.uefi.enable = true;
boot = {
kernelPackages = pkgs.linuxPackages_latest;

View File

@ -2,10 +2,10 @@
{
imports = with inputs.self.nixosModules; [
nibylandia-common
nibylandia-secureboot
nibylandia-monitoring
nibylandia-ci-runners
common
secureboot
monitoring
ci-runners
inputs.simple-nixos-mailserver.nixosModule

View File

@ -9,7 +9,7 @@
boot.zfs.enableUnstable = true;
boot.supportedFilesystems = [ "zfs" ];
nibylandia-boot.ryzen.enable = true;
boot.ryzen.enable = true;
networking.hostId = "7999af7c";