Restructure machine files

This commit is contained in:
Pim Kunis 2024-11-17 23:03:19 +01:00
parent adbea68c91
commit 93816b76bb
5 changed files with 6 additions and 6 deletions

View file

@ -16,14 +16,14 @@ inputs @ {
sue = {
imports = [
(import ./machines).sue.module
(import ./machines).sue.nixosModule
./nixos
];
};
gamepc = {
imports = [
(import ./machines).gamepc.module
(import ./machines).gamepc.nixosModule
./nixos
];
};

View file

@ -1,11 +1,11 @@
{
sue = {
system = "x86_64-linux";
module = import ./sue;
nixosModule = import ./sue/configuration.nix;
};
gamepc = {
system = "x86_64-linux";
module = import ./gamepc;
nixosModule = import ./gamepc/configuration.nix;
};
}

View file

@ -5,11 +5,11 @@ inputs @ {
}: {
nixosConfigurations = nixpkgs.lib.mapAttrs (name: {
system,
module,
nixosModule,
}:
nixpkgs.lib.nixosSystem {
inherit system;
modules = [./nixos module];
modules = [./nixos nixosModule];
specialArgs = {
inherit inputs system self;