oops, forgot the flake.nix :3c

This commit is contained in:
Lyn 2024-02-16 01:05:07 +01:00
parent c368829c53
commit dadf4c0b64

23
flake.nix Normal file
View file

@ -0,0 +1,23 @@
{
description = "Forgejo flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
};
outputs = { self, nixpkgs }@inputs: {
nixosConfigurations = {
"forgejo" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Import the configuration.nix here, so that the
# old configuration file can still take effect.
# Note: configuration.nix itself is also a Nixpkgs Module,
./configuration.nix
];
specialArgs = {
inherit inputs;
flake = self;
};
};
};
};
}