add hastebin cli home module

This commit is contained in:
Joakim Repomaa
2025-02-20 11:09:17 +02:00
parent 484d68c776
commit 6a1244821e
2 changed files with 19 additions and 4 deletions

6
flake.lock generated
View File

@@ -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": {

View File

@@ -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 = {