mirror of
https://github.com/anotherhadi/usbguard-tui.git
synced 2026-10-05 10:18:25 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04c9e7f835 | ||
|
|
14acd95061 |
+1
-1
@@ -1 +1 @@
|
||||
ko_fi: anotherhadi
|
||||
custom: ["https://hadi.icu/donate"]
|
||||
|
||||
@@ -62,25 +62,12 @@ go build -o usbguard-tui ./cmd/usbguard-tui
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Nix run</summary>
|
||||
<summary>NUR (Nix/NixOS)</summary>
|
||||
|
||||
Available via [NUR](https://github.com/nix-community/NUR), under the `anotherhadi` repo:
|
||||
|
||||
```sh
|
||||
nix run github:anotherhadi/usbguard-tui
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>NixOS: system installation</summary>
|
||||
|
||||
Add the flake input and include the package in your configuration:
|
||||
|
||||
```nix
|
||||
# flake.nix
|
||||
inputs.usbguard-tui.url = "github:anotherhadi/usbguard-tui";
|
||||
|
||||
# configuration.nix / home.nix
|
||||
environment.systemPackages = [ inputs.usbguard-tui.packages.${system}.default ];
|
||||
environment.systemPackages = [ nur.repos.anotherhadi.default-creds-tui ];
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
Generated
-27
@@ -1,27 +0,0 @@
|
||||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1777268161,
|
||||
"narHash": "sha256-bxrdOn8SCOv8tN4JbTF/TXq7kjo9ag4M+C8yzzIRYbE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "1c3fe55ad329cbcb28471bb30f05c9827f724c76",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
{
|
||||
description = "A terminal UI for managing USB devices via usbguard.";
|
||||
|
||||
inputs = {nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
||||
|
||||
forAllSystems = f:
|
||||
nixpkgs.lib.genAttrs supportedSystems
|
||||
(system: f system (import nixpkgs {inherit system;}));
|
||||
|
||||
pname = "usbguard-tui";
|
||||
version = "1.3.0";
|
||||
|
||||
ldflags = ["-s" "-w" "-X main.version=${version}"];
|
||||
in {
|
||||
packages = forAllSystems (system: pkgs: let
|
||||
pkg = pkgs.buildGoModule {
|
||||
inherit pname version ldflags;
|
||||
|
||||
src = ./.;
|
||||
outputs = ["out"];
|
||||
|
||||
vendorHash = "sha256-O9DG0pxRKt8VwpZdyvoQ4wsfEbsh5npmwocmtcm2IfA=";
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "A terminal UI for managing USB devices via usbguard.";
|
||||
homepage = "https://github.com/anotherhadi/usbguard-tui";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
};
|
||||
in {
|
||||
"${pname}" = pkg;
|
||||
default = pkg;
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user