This commit is contained in:
Tim Schubert 2024-12-28 19:28:24 +01:00
commit e206547823
Signed by: dadada
SSH key fingerprint: SHA256:bFAjFH3hR8zRBaJjzQDjc3o4jqoq5EZ87l+KXEjxIz0
4 changed files with 45 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

6
Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "pam-honeypot"
version = "0.1.0"
edition = "2021"
[dependencies]

35
flake.nix Normal file
View file

@ -0,0 +1,35 @@
{
description = "a653rs-router";
inputs = {
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { fenix, flake-utils, nixpkgs, ... }: flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; };
rustToolchain = with fenix.packages.${system}; combine [
latest.rustc
latest.cargo
latest.clippy
latest.rustfmt
latest.rust-src
latest.rust-analyzer
targets.aarch64-unknown-uefi.latest.rust-std
targets.i686-unknown-uefi.latest.rust-std
targets.x86_64-unknown-uefi.latest.rust-std
];
in
{
devShells.default = pkgs.mkShell {
packages = [
rustToolchain
];
};
}
);
}

3
src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}