2023-04-26 14:26:39 +02:00
|
|
|
{
|
2023-04-26 17:36:36 +02:00
|
|
|
inputs = {
|
2023-04-28 11:18:37 +02:00
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-04-26 17:36:36 +02:00
|
|
|
agenix.url = "github:ryantm/agenix";
|
|
|
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
2023-11-06 17:50:38 +01:00
|
|
|
bscpkgs.url = "git+https://git.sr.ht/~rodarima/bscpkgs";
|
2023-09-02 23:37:59 +02:00
|
|
|
bscpkgs.inputs.nixpkgs.follows = "nixpkgs";
|
2023-04-26 17:36:36 +02:00
|
|
|
};
|
2023-04-26 14:26:39 +02:00
|
|
|
|
2023-06-14 17:28:00 +02:00
|
|
|
outputs = { self, nixpkgs, agenix, bscpkgs, ... }:
|
|
|
|
let
|
|
|
|
mkConf = name: nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit nixpkgs bscpkgs agenix; theFlake = self; };
|
|
|
|
modules = [ "${self.outPath}/m/${name}/configuration.nix" ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2023-04-26 14:26:39 +02:00
|
|
|
nixosConfigurations = {
|
2023-06-16 17:16:05 +02:00
|
|
|
hut = mkConf "hut";
|
|
|
|
owl1 = mkConf "owl1";
|
|
|
|
owl2 = mkConf "owl2";
|
|
|
|
eudy = mkConf "eudy";
|
2023-07-21 10:34:19 +02:00
|
|
|
koro = mkConf "koro";
|
2023-07-28 19:49:48 +02:00
|
|
|
bay = mkConf "bay";
|
2023-08-24 12:30:46 +02:00
|
|
|
lake2 = mkConf "lake2";
|
2023-04-26 14:26:39 +02:00
|
|
|
};
|
2023-06-14 17:28:00 +02:00
|
|
|
|
2023-09-15 11:58:10 +02:00
|
|
|
packages.x86_64-linux = self.nixosConfigurations.hut.pkgs // {
|
|
|
|
bscpkgs = bscpkgs.packages.x86_64-linux;
|
|
|
|
nixpkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
};
|
2023-04-26 14:26:39 +02:00
|
|
|
};
|
|
|
|
}
|