refactor(nix): rename default.nix to package.nix

This commit is contained in:
tux
2026-09-07 21:15:50 +05:30
parent c1ba1e55d0
commit ad3792139d
2 changed files with 26 additions and 22 deletions

View File

@@ -2,10 +2,12 @@
description = "Simple tunneler in Go that exposes local ports to the internet";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = {
outputs =
{
self,
nixpkgs,
}: let
}:
let
systems = [
"x86_64-linux"
"aarch64-linux"
@@ -13,11 +15,13 @@
"aarch64-darwin"
];
forAllSystems = function: nixpkgs.lib.genAttrs systems (system: function nixpkgs.legacyPackages.${system});
in {
forAllSystems =
function: nixpkgs.lib.genAttrs systems (system: function nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (pkgs: rec {
default = trok;
trok = pkgs.callPackage ./default.nix {};
trok = pkgs.callPackage ./package.nix { };
});
nixosModules.default = ./module.nix;