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 = { sue = {
imports = [ imports = [
(import ./machines).sue.module (import ./machines).sue.nixosModule
./nixos ./nixos
]; ];
}; };
gamepc = { gamepc = {
imports = [ imports = [
(import ./machines).gamepc.module (import ./machines).gamepc.nixosModule
./nixos ./nixos
]; ];
}; };

View file

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

View file

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