From 14acd950610539b589bc358803fc06ff581db18e Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 27 Aug 2026 14:23:08 +0200 Subject: [PATCH] Remove flake to let just the NUR instructions Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- README.md | 21 ++++----------------- flake.lock | 27 --------------------------- flake.nix | 41 ----------------------------------------- 3 files changed, 4 insertions(+), 85 deletions(-) delete mode 100644 flake.lock delete mode 100644 flake.nix diff --git a/README.md b/README.md index 8da0803..77e0cad 100644 --- a/README.md +++ b/README.md @@ -62,25 +62,12 @@ go build -o usbguard-tui ./cmd/usbguard-tui
-Nix run +NUR (Nix/NixOS) + +Available via [NUR](https://github.com/nix-community/NUR), under the `anotherhadi` repo: ```sh -nix run github:anotherhadi/usbguard-tui -``` - -
- -
-NixOS: system installation - -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 ]; ```
diff --git a/flake.lock b/flake.lock deleted file mode 100644 index ff7718e..0000000 --- a/flake.lock +++ /dev/null @@ -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 -} diff --git a/flake.nix b/flake.nix deleted file mode 100644 index 5edcf86..0000000 --- a/flake.nix +++ /dev/null @@ -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; - }); - }; -}