Added the starts of a new Nixos Package

This commit is contained in:
Chris Mann
2026-04-19 11:33:53 +02:00
parent 265d5abaf8
commit fd4153b332
6 changed files with 583 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
{
description = "OxiCloud Nix flake with module";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux"];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (
system:
f (import nixpkgs {inherit system;})
);
in {
packages = forAllSystems (pkgs: {
oxicloud = pkgs.callPackage ./package.nix {};
});
nixosModules.oxicloud = import ./module.nix;
# optional default
defaultPackage.x86_64-linux = self.packages.x86_64-linux.oxicloud;
};
}