2024-08-30 23:04:47 +02:00
|
|
|
{
|
|
|
|
description = "Lyns flake";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
2024-08-31 00:23:59 +02:00
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
2024-09-06 05:01:21 +02:00
|
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2024-08-30 23:04:47 +02:00
|
|
|
};
|
2024-09-06 06:04:32 +02:00
|
|
|
outputs = {self, nixpkgs, nixpkgs-unstable, sops-nix }@inputs: let
|
2024-09-16 00:10:42 +02:00
|
|
|
imports = [
|
|
|
|
./meta
|
|
|
|
];
|
2024-09-06 06:04:32 +02:00
|
|
|
passInputs = ({lib,config,...}:{
|
|
|
|
options.inputs = lib.mkOption{type = lib.types.attrs;};
|
|
|
|
config.inputs = inputs;
|
|
|
|
options.pkgsInstances = lib.mkOption{type = lib.types.attrs;};
|
|
|
|
config.pkgsInstances = {
|
|
|
|
unstable = import inputs.nixpkgs-unstable{system = config.nixpkgs.system;};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
nixosConfigurations = {
|
|
|
|
"forgejo" = nixpkgs.lib.nixosSystem {
|
2024-08-30 23:04:47 +02:00
|
|
|
system = "x86_64-linux";
|
2024-09-06 06:04:32 +02:00
|
|
|
modules = [
|
2024-09-16 00:10:42 +02:00
|
|
|
./meta
|
2024-09-06 05:01:21 +02:00
|
|
|
./hosts/forgenite
|
2024-08-31 00:23:59 +02:00
|
|
|
sops-nix.nixosModules.sops
|
2024-09-06 06:04:32 +02:00
|
|
|
passInputs
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"forgejo-ci" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
./hosts/forgejo-ci
|
2024-09-16 00:10:42 +02:00
|
|
|
./meta
|
2024-09-06 06:04:32 +02:00
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
passInputs
|
2024-08-30 23:04:47 +02:00
|
|
|
];
|
2024-09-06 06:04:32 +02:00
|
|
|
};
|
2024-08-30 23:04:47 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|