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