Source fetched by Nix from Forgejo, build runs on server with DB access for prerendering. No manual git clone/pull needed.
26 lines
610 B
Nix
26 lines
610 B
Nix
{
|
|
description = "NixOS configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
website = {
|
|
url = "git+ssh://forgejo@git.ily.rs:4201/lew/website.git";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, sops-nix, website, ... }: {
|
|
nixosConfigurations.lab = nixpkgs.lib.nixosSystem {
|
|
system = "aarch64-linux";
|
|
specialArgs = { inherit website; };
|
|
modules = [
|
|
sops-nix.nixosModules.sops
|
|
./hosts/lab
|
|
];
|
|
};
|
|
};
|
|
}
|