If you think flake registry is a crap, just add this to your system configuration:
{ inputs, ... }:
{
nix = {
settings.flake-registry = builtins.toFile "global-registry.json" (
builtins.toJSON { "flakes" = [ ]; "version" = 2; }
);
{ pkgs, lib, ... }: | |
let | |
doas-completion = pkgs.fetchurl { | |
url = "https://raw.githubusercontent.com/Duncaen/OpenDoas/51f126a9a56cda5a291d5652b0685967133d7b90/doas.completion"; | |
sha256 = "0lklm6nx3qbg4rlcszp5zsql8x7vzyx37yx92hsy037qflap482a"; | |
}; | |
blesh = pkgs.blesh.overrideAttrs (old: { | |
src = pkgs.fetchzip { | |
url = "https://github.com/akinomyoga/ble.sh/releases/download/v0.4.0-devel3/ble-0.4.0-devel3.tar.xz"; |
If you think flake registry is a crap, just add this to your system configuration:
{ inputs, ... }:
{
nix = {
settings.flake-registry = builtins.toFile "global-registry.json" (
builtins.toJSON { "flakes" = [ ]; "version" = 2; }
);
[a] 已经更新到v23前最后tag | |
[x] 已经更新到最新tag,主分支还未将api更新到v23 | |
[v] 已经更新到最新tag,主分支已经将api更新到v23 | |
[b] 无法更新,出现了构建问题 | |
[p] 无法更新,出现了运行时问题 | |
[u] 在更新计划上 | |
[e] 已经更新但构建文件不准确,需要修改 | |
[]? 没有检查 | |
[d] 仍在archlinux官方源,但已废弃 | |
[?] 对软件包的构建有疑问 |
#0 0x00007fcd4ef4613a in gtk_widget_destroy () from /nix/store/kv7ih63pn9hn8p00wwi1mvg400ahsrc2-gtk+3-3.24.36/lib/libgtk-3.so.0 | |
No symbol table info available. | |
#1 0x000000000050639d in destroy () | |
No symbol table info available. | |
#2 0x00007fcd4e7594e8 in g_closure_invoke (closure=closure@entry=0x1162010, return_value=return_value@entry=0x0, n_param_values=1, param_values=param_values@entry=0x7ffeeb8ac660, | |
invocation_hint=invocation_hint@entry=0x7ffeeb8ac5e0) at ../gobject/gclosure.c:832 | |
marshal = 0x7fcd4e757d70 <g_type_class_meta_marshal> | |
marshal_data = 0x98 | |
in_marshal = 1 | |
real_closure = 0x1161ff0 |
(process:109523): Timings-DEBUG: 15:43:50.596: 0.000002 (0.000000): Started | |
(process:109523): Timings-DEBUG: 15:43:50.597: 0.000913 (0.000913): ../source/rofi.c:main:883 | |
(process:109523): Timings-DEBUG: 15:43:50.597: 0.001200 (0.000287): ../source/rofi.c:main:933 | |
(process:109523): Timings-DEBUG: 15:43:50.597: 0.001220 (0.000020): ../source/rofi.c:main:956 Select Backend | |
(process:109523): Timings-DEBUG: 15:43:50.597: 0.001252 (0.000032): ../source/rofi.c:main:964 Setup Locale | |
(process:109523): Timings-DEBUG: 15:43:50.598: 0.001527 (0.000275): ../source/rofi.c:main:966 Collect MODES | |
(process:109523): Timings-DEBUG: 15:43:50.598: 0.001545 (0.000018): ../source/rofi.c:main:968 Setup MODES | |
(process:109523): Timings-DEBUG: 15:43:50.598: 0.001567 (0.000022): ../source/rofi.c:main:972 Setup mainloop | |
(process:109523): Timings-DEBUG: 15:43:50.598: 0.001665 (0.000098): ../source/rofi.c:main:975 NK Bindings | |
(process:109523): Timings-DEBUG: 15:43:50.610: 0.014079 (0.012414): ../source/rofi.c:main:982 Setup Display |
#!/bin/bash | |
# This is used by openssl to tell the type of the key | |
private_head="MC4CAQAwBQYDK2VuBCIEIA==" | |
public_head="MCowBQYDK2VuAyEA" | |
# generate one string (containing '\x0') from two base64 | |
b64join() { | |
echo -e "$(printf ${1} \ |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
if [[ ! -f $HOME/.zi/bin/zi.zsh ]]; then | |
print -P "%F{33}▓▒░ %F{160}Installing (%F{33}z-shell/zi%F{160})…%f" | |
command mkdir -p "$HOME/.zi" && command chmod g-rwX "$HOME/.zi" |