From 1a8cfbbfb63d78a4398e9402e0d0cb5adf36c6a1 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Wed, 15 Mar 2023 22:14:27 -0400 Subject: [PATCH] Add dw --- configs/home.nogui.nix | 5 +++-- packages/all-packages.nix | 3 +++ packages/dw.nix | 26 ++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 packages/all-packages.nix create mode 100644 packages/dw.nix diff --git a/configs/home.nogui.nix b/configs/home.nogui.nix index e9fe1ce..1d60106 100644 --- a/configs/home.nogui.nix +++ b/configs/home.nogui.nix @@ -1,4 +1,4 @@ -{pkgs, lib, ...}: { +{pkgs, lib, ...} @ nixpkgs: { imports = [ ../modules/parallel.nix ]; home.sessionVariables = { NNN_FIFO = "/tmp/nnn.fifo"; @@ -7,7 +7,7 @@ }; home.keyboard.layout = "us"; home.keyboard.variant = "3l"; - home.packages = with pkgs; [ + home.packages = with pkgs; with (import ../packages/all-packages.nix nixpkgs); [ restic ripgrep rclone @@ -17,6 +17,7 @@ qrencode libwebp bat + dw ] ++ (import ../system/home-manager.nix).extraPackages pkgs; editorconfig = { enable = true; diff --git a/packages/all-packages.nix b/packages/all-packages.nix new file mode 100644 index 0000000..8d3def9 --- /dev/null +++ b/packages/all-packages.nix @@ -0,0 +1,3 @@ +{pkgs, ...}: { + dw = pkgs.callPackage ./dw.nix {}; +} \ No newline at end of file diff --git a/packages/dw.nix b/packages/dw.nix new file mode 100644 index 0000000..91ca9c0 --- /dev/null +++ b/packages/dw.nix @@ -0,0 +1,26 @@ +{pkgs, lib, ...}: pkgs.rustPlatform.buildRustPackage rec { + pname = "dw"; + version = "0.1.0"; + + src = pkgs.fetchFromGitea { + domain = "fem.mint.lgbt"; + owner = "Emi"; + repo = "password-script"; + rev = "v0.1.0"; + sha256 = "0w/MOHG7oe1TZEiFmSOk+o34uxArF2DCjns7Tb6l9sw="; + }; + + cargoSha256 = "0oVTwNrE3Qoz+K+daBUwVKCKUxJkodqQYMz0TT4FpHg="; + + meta = { + description = "A simple diceware script, with defaults picked by Emi"; + homepage = "https://fem.mint.lgbt/Emi/password-script"; + #license = lib.licenses.cc-by-nc-40; + maintainers = [{ + email = "ember@corviform.gay"; + github = "Alch-Emi"; + githubId = 38897201; + name = "Ember Hearth"; + }]; + }; +} \ No newline at end of file