Declare shared modules

This commit is contained in:
ItsDrike 2024-03-21 22:33:38 +01:00
parent 8dc12c0ae7
commit 442d00a82a
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -1,13 +1,17 @@
{self, inputs, ...}: let {self, inputs, ...}: let
inherit (inputs.nixpkgs) lib; inherit (inputs.nixpkgs) lib;
# A list of shared modules that ALL systems need
shared = [
../system
../options
];
in { in {
vboxnix = lib.nixosSystem { vboxnix = lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./vbox_nix ./vbox_nix
../system
../options
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
]; ] ++ shared;
}; };
} }