Update notes.sh and q.sh

This commit is contained in:
Konstantin Nazarov 2024-11-23 09:51:10 +00:00
parent 0e36aae721
commit bd87765fc4
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22
4 changed files with 24 additions and 13 deletions

View file

@ -129,6 +129,7 @@ in {
wayland wayland
xdg-utils xdg-utils
glib glib
bc
dracula-theme dracula-theme
adwaita-icon-theme adwaita-icon-theme
swaylock swaylock
@ -220,6 +221,9 @@ in {
networkmanagerapplet networkmanagerapplet
qpwgraph qpwgraph
bat
chafa
]; ];
services.blueman.enable = true; services.blueman.enable = true;
@ -473,6 +477,13 @@ in {
}; };
programs.bat = {
enable = true;
config = {
theme = "ansi";
};
};
programs.bash = { programs.bash = {
enable = true; enable = true;
bashrcExtra = '' bashrcExtra = ''
@ -485,7 +496,7 @@ in {
shellAliases = { shellAliases = {
nn = "notes.sh -n"; nn = "notes.sh -n";
ne = ne =
''notes.sh -l | fzf --tac --with-nth="2..-1" | xargs -o notes.sh -e''; ''notes.sh -l | fzf --tac --with-nth="2..-1" --preview "notes.sh -p {}" --print-query --bind 'alt-enter:print-query' | xargs -o -d "\n" -n 2 notes.sh -f'';
vim = "emacs -nw --no-splash"; vim = "emacs -nw --no-splash";
}; };

View file

@ -140,16 +140,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1696170164, "lastModified": 1731919109,
"narHash": "sha256-ew+zhK/okYJdOdl3yWcRzi0NHfVbnXzS+EjlOf8vN6k=", "narHash": "sha256-v2PcqyIHui4Nb5lZHs46CltQAJ8f+FjQR27L2fbNzS4=",
"owner": "~knazarov", "owner": "~knazarov",
"repo": "notes.sh", "repo": "notes2.sh",
"rev": "342615a128cf96f1d6cb69a9c09e408d9ff0ab11", "rev": "76038af8020ba4e5c4bf285fb75a127bfe335923",
"type": "sourcehut" "type": "sourcehut"
}, },
"original": { "original": {
"owner": "~knazarov", "owner": "~knazarov",
"repo": "notes.sh", "repo": "notes2.sh",
"type": "sourcehut" "type": "sourcehut"
} }
}, },
@ -160,11 +160,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1730676982, "lastModified": 1732088708,
"narHash": "sha256-U3CN8+gSAUl5WVHZl5PxgXufIJ3VzoqngL5NgYbQ0S4=", "narHash": "sha256-OPoY+eqXhMAxk49cMQiADK5xx1gEXA5XSWIaK1htVrI=",
"owner": "~knazarov", "owner": "~knazarov",
"repo": "q.sh", "repo": "q.sh",
"rev": "cc9cf1f36067bb5e5d1acbb5d9b8b2dbea6e7100", "rev": "0ebd7c228cf34a0f60789a2a957bba0dca8e2773",
"type": "sourcehut" "type": "sourcehut"
}, },
"original": { "original": {

View file

@ -16,7 +16,7 @@
sops-nix.inputs.nixpkgs-stable.follows = "nixpkgs-stable"; sops-nix.inputs.nixpkgs-stable.follows = "nixpkgs-stable";
q-sh.url = "sourcehut:~knazarov/q.sh"; q-sh.url = "sourcehut:~knazarov/q.sh";
q-sh.inputs.nixpkgs.follows = "nixpkgs"; q-sh.inputs.nixpkgs.follows = "nixpkgs";
notes-sh.url = "sourcehut:~knazarov/notes.sh"; notes-sh.url = "sourcehut:~knazarov/notes2.sh";
notes-sh.inputs.nixpkgs.follows = "nixpkgs"; notes-sh.inputs.nixpkgs.follows = "nixpkgs";
knazarovcom.url = "sourcehut:~knazarov/knazarov.com"; knazarovcom.url = "sourcehut:~knazarov/knazarov.com";
knazarovcom.inputs.nixpkgs.follows = "nixpkgs"; knazarovcom.inputs.nixpkgs.follows = "nixpkgs";

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nil_cli"; pname = "nil_cli";
version = "2024.11.06"; version = "2024.11.20";
src = fetchzip { src = fetchzip {
url = "https://github.com/NilFoundation/nil_cli/releases/download/2024.10.15/nil-linux-x64.zip"; url = "https://github.com/NilFoundation/nil_cli/releases/download/2024.11.20/nil-linux-x64.zip";
sha256 = "sha256-KAPvRDo++q2g6vWPOrJcksVyBjEoNznjQlKGweD6rVg="; sha256 = "sha256-7WaUzsxe3u/0pu4cqvLvH7JESBpTixLu5GhBx0dLEsE=";
}; };
phases = ["installPhase" "patchPhase"]; phases = ["installPhase" "patchPhase"];