mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Modularize flake outputs
This commit is contained in:
parent
9b76581f82
commit
63f79df82b
4 changed files with 64 additions and 45 deletions
30
flake/nixosConfigurations.nix
Normal file
30
flake/nixosConfigurations.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue