mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 09:43:50 -08:00
refactor: pointless abstraction for fun
This commit is contained in:
parent
01b1b13b6a
commit
c9024ba8b7
2 changed files with 25 additions and 22 deletions
34
flake.nix
34
flake.nix
|
@ -90,6 +90,9 @@
|
|||
flake-parts,
|
||||
...
|
||||
}:
|
||||
let
|
||||
buildLiminalOS = import ./lib/buildLiminalOS.nix;
|
||||
in
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
|
@ -98,30 +101,17 @@
|
|||
];
|
||||
flake = {
|
||||
nixosConfigurations = {
|
||||
demeter = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/demeter
|
||||
];
|
||||
demeter = buildLiminalOS {
|
||||
inherit inputs nixpkgs;
|
||||
systemModule = ./hosts/demeter;
|
||||
};
|
||||
|
||||
callisto = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/callisto
|
||||
];
|
||||
callisto = buildLiminalOS {
|
||||
inherit nixpkgs inputs;
|
||||
systemModule = ./hosts/callisto;
|
||||
};
|
||||
adrastea = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
./hosts/adrastea
|
||||
];
|
||||
adrastea = buildLiminalOS {
|
||||
inherit inputs nixpkgs;
|
||||
systemModule = ./hosts/adrastea;
|
||||
};
|
||||
};
|
||||
darwinConfigurations.phobos = nix-darwin.lib.darwinSystem {
|
||||
|
|
13
lib/buildLiminalOS.nix
Normal file
13
lib/buildLiminalOS.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
nixpkgs,
|
||||
inputs,
|
||||
systemModule,
|
||||
}:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {
|
||||
inherit inputs;
|
||||
};
|
||||
modules = [
|
||||
systemModule
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue