mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
23 lines
493 B
Nix
23 lines
493 B
Nix
{ inputs, self, ... }:
|
|
let
|
|
specialArgs = {
|
|
inherit inputs self;
|
|
};
|
|
modulesOf = hostname: [
|
|
{ networking.hostName = hostname; }
|
|
"${self}/hosts/${hostname}"
|
|
"${self}/users/seb/@${hostname}"
|
|
];
|
|
in
|
|
{
|
|
flake.nixosConfigurations = {
|
|
north = inputs.nixpkgs.lib.nixosSystem {
|
|
inherit specialArgs;
|
|
modules = modulesOf "north";
|
|
};
|
|
inspiron = inputs.nixpkgs.lib.nixosSystem {
|
|
inherit specialArgs;
|
|
modules = modulesOf "inspiron";
|
|
};
|
|
};
|
|
}
|