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": { "locked": {
"lastModified": 1739261575, "lastModified": 1740049565,
"narHash": "sha256-MRU+at2TEZ61G1bXJeVYIswJ8mVIaqVmXrKLBNs0lvU=", "narHash": "sha256-na1sifwetlnyx4eYiltRrDthcFXOMZSa0SZug7PkIQY=",
"owner": "~repomaa", "owner": "~repomaa",
"repo": "hastebin", "repo": "hastebin",
"rev": "0400c9d3fcfe77dd4bd087c3f1f5ce06a8f29ad9", "rev": "af433352560f6fdee38e782563dd49e83c9e17e7",
"type": "sourcehut" "type": "sourcehut"
}, },
"original": { "original": {

View File

@@ -1,6 +1,12 @@
{ config, lib, pkgs, inputs, self, ... }: { { config, lib, pkgs, inputs, self, ... }: {
nixpkgs.config.allowUnfree = true; 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 # This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release # compatible with. This helps avoid breakage when a new Home Manager release
@@ -64,6 +70,7 @@
imapsync imapsync
nixfmt-rfc-style nixfmt-rfc-style
tree tree
virt-manager
]; ];
programs = { programs = {
@@ -285,6 +292,14 @@
fork = true; 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 = { gnome = {