From 6a1244821e0d0caedb2525680e477d15ac0bea46 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Thu, 20 Feb 2025 11:09:17 +0200 Subject: [PATCH] add hastebin cli home module --- flake.lock | 6 +++--- home/common/default.nix | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 2941f13..984a2cf 100644 --- a/flake.lock +++ b/flake.lock @@ -400,11 +400,11 @@ ] }, "locked": { - "lastModified": 1739261575, - "narHash": "sha256-MRU+at2TEZ61G1bXJeVYIswJ8mVIaqVmXrKLBNs0lvU=", + "lastModified": 1740049565, + "narHash": "sha256-na1sifwetlnyx4eYiltRrDthcFXOMZSa0SZug7PkIQY=", "owner": "~repomaa", "repo": "hastebin", - "rev": "0400c9d3fcfe77dd4bd087c3f1f5ce06a8f29ad9", + "rev": "af433352560f6fdee38e782563dd49e83c9e17e7", "type": "sourcehut" }, "original": { diff --git a/home/common/default.nix b/home/common/default.nix index 0a23b8d..1cc8b3d 100644 --- a/home/common/default.nix +++ b/home/common/default.nix @@ -1,6 +1,12 @@ { config, lib, pkgs, inputs, self, ... }: { nixpkgs.config.allowUnfree = true; - imports = [ ../gnome ../custom-programs ./neovim ./dnote.nix ]; + imports = [ + ../gnome + ../custom-programs + ./neovim + ./dnote.nix + inputs.hastebin.nixosModules.hm + ]; # This value determines the Home Manager release that your configuration is # compatible with. This helps avoid breakage when a new Home Manager release @@ -64,6 +70,7 @@ imapsync nixfmt-rfc-style tree + virt-manager ]; programs = { @@ -285,6 +292,14 @@ fork = true; }; }; + hastebin = { + enable = true; + settings = { + host = "https://bin.freun.dev"; + auth_token_file = "${config.xdg.configHome}/hastebin/auth_token"; + clipboard_command = "${pkgs.wl-copy-both}/bin/wl-copy"; + }; + }; }; gnome = {