mirror of
https://github.com/sstent/vmimages.git
synced 2026-03-06 13:06:37 +00:00
snyc
This commit is contained in:
50
flake.lock
generated
50
flake.lock
generated
@@ -112,6 +112,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-utils_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1676283394,
|
||||||
|
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -207,6 +222,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_2": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1659914493,
|
||||||
|
"narHash": "sha256-lkA5X3VNMKirvA+SUzvEhfA7XquWLci+CGi505YFAIs=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "022caabb5f2265ad4006c1fa5b1ebe69fb0c3faf",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-21.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
@@ -214,7 +245,24 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"trivial-flake": "trivial-flake"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"trivial-flake": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils_2",
|
||||||
|
"nixpkgs": "nixpkgs_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1,
|
||||||
|
"narHash": "sha256-KRbXLHhUv+dSb8ykuuuQOL/fLKe9IUHllMHuBfdB7Tk=",
|
||||||
|
"path": "pkgs/npiperelay",
|
||||||
|
"type": "path"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"path": "pkgs/npiperelay",
|
||||||
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"utils": {
|
"utils": {
|
||||||
|
|||||||
@@ -28,10 +28,11 @@
|
|||||||
nixos-wsl.url = github:nix-community/NixOS-WSL;
|
nixos-wsl.url = github:nix-community/NixOS-WSL;
|
||||||
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
|
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
npiperelay.url = "path:pkgs/npiperelay";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, home-manager, nixos-generators, nixos-wsl,deploy-rs
|
outputs = inputs@{ self, nixpkgs, home-manager, nixos-generators, nixos-wsl,deploy-rs
|
||||||
, agenix, ... }:
|
, agenix, npiperelay, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
myData = import ./data.nix;
|
myData = import ./data.nix;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
[ pkgs.socat];
|
[ pkgs.socat pkgs.npiperelay];
|
||||||
|
|
||||||
|
|
||||||
systemd.user.services.ssh-proxy = {
|
systemd.user.services.ssh-proxy = {
|
||||||
@@ -43,4 +43,4 @@ systemd.user.services.ssh-proxy = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#pkgs.callPackage ./npiperelay.nix {};
|
#pkgs.callPackage ./npiperelay.nix {};
|
||||||
}
|
}
|
||||||
|
|||||||
29
pkgs/npiperelay/flake.nix
Normal file
29
pkgs/npiperelay/flake.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
description = "A flake for building My Hello World";
|
||||||
|
|
||||||
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
|
||||||
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
packageName = "npiperelay";
|
||||||
|
in {
|
||||||
|
packages.${packageName} = pkgs.stdenv.mkDerivation {
|
||||||
|
name = "${packageName}";
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url =
|
||||||
|
"https://github.com/rupor-github/wsl-ssh-agent/releases/download/v1.6.3/wsl-ssh-agent.zip";
|
||||||
|
sha256 = "sha256-A1ykYteoNZi6QACkYHSxa1hY55GfqgClIFZFX2GuLMU=";
|
||||||
|
};
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp $src $out/bin/npiperelay.exe
|
||||||
|
chmod +x $out/bin/npiperelay.exe
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
defaultPackage = self.packages.${system}.${packageName};
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user