From 2ab73ed7f0cecb3d8fcc3539fdaa64d534f19136 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 20 Jan 2024 11:26:28 -0800 Subject: [PATCH] Added flake.nix --- flake.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..9d0a67d --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "Lemmy running in a container"; + + inputs = { + nixpkgs.url = "nixpkgs/nixos-23.11"; + arion.url = "github:hercules-ci/arion"; + }; + + outputs = { self, nixpkgs, arion, ... }: { + nixosModules = rec { + default = lemmyContainer; + lemmyContainer = { ... }: { + imports = [ arion.nixosModules.arion ./lemmy-container.nix ]; + }; + }; + }; +}