From a10a543cf28e2ae4972a806ad0fa86b5ac2cd273 Mon Sep 17 00:00:00 2001 From: Lyn Date: Fri, 16 Feb 2024 01:05:07 +0100 Subject: [PATCH] oops, forgot the flake.nix :3c --- flake.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..22a192b --- /dev/null +++ b/flake.nix @@ -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; + }; + }; + }; +}; +}