Modularize flake outputs

This commit is contained in:
SebastianStork 2024-07-12 00:31:20 +02:00
parent 9b76581f82
commit 63f79df82b
4 changed files with 64 additions and 45 deletions

View file

@ -0,0 +1,30 @@
{
nixpkgs,
self,
inputs,
...
}:
{
flake = {
nixosConfigurations = {
north = inputs.nixpkgs.lib.nixosSystem {
specialArgs = {
inherit self inputs;
};
modules = [
"${self}/hosts/north"
"${self}/users/seb/@north"
];
};
inspiron = inputs.nixpkgs.lib.nixosSystem {
specialArgs = {
inherit self inputs;
};
modules = [
"${self}/hosts/inspiron"
"${self}/users/seb/@inspiron"
];
};
};
};
}