add osc for copy paste over ssh

This commit is contained in:
Noah Masur 2024-11-16 23:47:26 +00:00
parent ae43d24f62
commit ca1c7cc23f
No known key found for this signature in database
4 changed files with 41 additions and 0 deletions

View File

@ -598,6 +598,22 @@
"type": "github"
}
},
"osc": {
"flake": false,
"locked": {
"lastModified": 1731356260,
"narHash": "sha256-SvuHH/HfvQfK1Ob+aTjyvKnd1N2jaszpeTQ5SVHz9Mw=",
"owner": "theimpostor",
"repo": "osc",
"rev": "8a313c60d67353669509e9461d22b403df72b5e7",
"type": "github"
},
"original": {
"owner": "theimpostor",
"repo": "osc",
"type": "github"
}
},
"ren": {
"flake": false,
"locked": {
@ -659,6 +675,7 @@
"nvim-lspconfig-src": "nvim-lspconfig-src",
"nvim-tree-lua-src": "nvim-tree-lua-src",
"nvim-treesitter-src": "nvim-treesitter-src",
"osc": "osc",
"ren": "ren",
"rep": "rep",
"snipe-nvim-src": "snipe-nvim-src",

View File

@ -179,6 +179,7 @@
# Fixes: https://github.com/martinvonz/jj/issues/4784
jujutsu = {
url = "github:martinvonz/jj";
inputs.nixpkgs.follows = "nixpkgs";
};
# Ren and rep - CLI find and replace
@ -196,6 +197,12 @@
flake = false;
};
# Clipboard over SSH
osc = {
url = "github:theimpostor/osc";
flake = false;
};
# Nextcloud Apps
nextcloud-news = {
# https://github.com/nextcloud/news/releases
@ -274,6 +281,7 @@
(import ./overlays/nextcloud-apps.nix inputs)
(import ./overlays/betterlockscreen.nix)
(import ./overlays/gh-collaborators.nix inputs)
(import ./overlays/osc.nix inputs)
(import ./overlays/ren-rep.nix inputs)
];

View File

@ -31,6 +31,7 @@ in
jo # JSON output
jq # JSON manipulation
lf # File viewer
osc # Clipboard over SSH
qrencode # Generate qr codes
rsync # Copy folders
ren # Rename files

15
overlays/osc.nix Normal file
View File

@ -0,0 +1,15 @@
inputs: _final: prev: {
osc = prev.buildGoModule {
pname = "osc";
version = "v0.4.4";
src = inputs.osc;
vendorHash = "sha256-VEzVd1LViMtqhQaltvGuupEemV/2ewMuVYjGbKOi0iw=";
ldflags = [
"-s"
"-w"
];
};
}