Update nixpkgs to 25.11-beta
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.ahoviewer = { };
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.anki = { };
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.delta = {
|
||||
enableGitIntegration = true;
|
||||
options = {
|
||||
line-numbers = true;
|
||||
side-by-side = true;
|
||||
theme = "Monokai Extended Origin";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.element-desktop = { };
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.fastfetch = { };
|
||||
}
|
||||
@@ -18,9 +18,6 @@ lib.mkIf cfg.enable {
|
||||
{
|
||||
package = pkgs.gitFull;
|
||||
|
||||
userName = "h7x4";
|
||||
userEmail = "h7x4@nani.wtf";
|
||||
|
||||
signing = {
|
||||
key = "46B9228E814A2AAC";
|
||||
# format = "openpgp";
|
||||
@@ -31,86 +28,82 @@ lib.mkIf cfg.enable {
|
||||
|
||||
lfs.enable = true;
|
||||
|
||||
delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
line-numbers = true;
|
||||
side-by-side = true;
|
||||
theme = "Monokai Extended Origin";
|
||||
settings = {
|
||||
user = {
|
||||
name = "h7x4";
|
||||
email = "h7x4@nani.wtf";
|
||||
};
|
||||
};
|
||||
|
||||
aliases = {
|
||||
aliases = "!git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'";
|
||||
authors = "shortlog --summary --numbered --email";
|
||||
delete-merged = "!git branch --merged | grep -v -e '\\*' -e 'master' -e 'main' | xargs -n 1 git branch -d";
|
||||
ff = "fixup-fixup";
|
||||
fi = "fixup-interactive";
|
||||
forcepush = "push --force-with-lease --force-if-includes";
|
||||
git = "!git";
|
||||
pp = "post-pr";
|
||||
rebase-author = "rebase -i -x \"git commit --amend --reset-author -CHEAD\"";
|
||||
reset-to-upstream = "!git reset --hard \"origin/$(git rev-parse --abbrev-ref HEAD)\"";
|
||||
rf = "rebase-fixups";
|
||||
si = "switch-interactive";
|
||||
subs = "submodule update --init --recursive";
|
||||
} // (let
|
||||
c = c: s: "%C(${c})${s}%C(reset)";
|
||||
in {
|
||||
graph = let
|
||||
fmt = lib.concatStringsSep "" [
|
||||
" - "
|
||||
(c "bold blue" "%h")
|
||||
" - "
|
||||
(c "bold green" "(%ar)")
|
||||
" "
|
||||
(c "white" "> %s")
|
||||
" "
|
||||
(c "dim white" "- %an")
|
||||
(c "bold yellow" "%d")
|
||||
];
|
||||
in "log --graph --abbrev-commit --decorate --format=format:'${fmt}' --all";
|
||||
alias = {
|
||||
aliases = "!git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'";
|
||||
authors = "shortlog --summary --numbered --email";
|
||||
delete-merged = "!git branch --merged | grep -v -e '\\*' -e 'master' -e 'main' | xargs -n 1 git branch -d";
|
||||
ff = "fixup-fixup";
|
||||
fi = "fixup-interactive";
|
||||
forcepush = "push --force-with-lease --force-if-includes";
|
||||
git = "!git";
|
||||
pp = "post-pr";
|
||||
rebase-author = "rebase -i -x \"git commit --amend --reset-author -CHEAD\"";
|
||||
reset-to-upstream = "!git reset --hard \"origin/$(git rev-parse --abbrev-ref HEAD)\"";
|
||||
rf = "rebase-fixups";
|
||||
si = "switch-interactive";
|
||||
subs = "submodule update --init --recursive";
|
||||
} // (let
|
||||
c = c: s: "%C(${c})${s}%C(reset)";
|
||||
in {
|
||||
graph = let
|
||||
fmt = lib.concatStringsSep "" [
|
||||
" - "
|
||||
(c "bold blue" "%h")
|
||||
" - "
|
||||
(c "bold green" "(%ar)")
|
||||
" "
|
||||
(c "white" "> %s")
|
||||
" "
|
||||
(c "dim white" "- %an")
|
||||
(c "bold yellow" "%d")
|
||||
];
|
||||
in "log --graph --abbrev-commit --decorate --format=format:'${fmt}' --all";
|
||||
|
||||
graphv = let
|
||||
fmt = lib.concatStringsSep "" [
|
||||
(c "bold blue" "%h")
|
||||
" - "
|
||||
(c "bold cyan" "%aD")
|
||||
" "
|
||||
(c "bold green" "(%ar)")
|
||||
(c "bold yellow" "%d")
|
||||
"%n"
|
||||
" "
|
||||
(c "white" "%s")
|
||||
" "
|
||||
(c "dim white" "- %an")
|
||||
];
|
||||
in "log --graph --abbrev-commit --decorate --format=format:'${fmt}' --all";
|
||||
graphv = let
|
||||
fmt = lib.concatStringsSep "" [
|
||||
(c "bold blue" "%h")
|
||||
" - "
|
||||
(c "bold cyan" "%aD")
|
||||
" "
|
||||
(c "bold green" "(%ar)")
|
||||
(c "bold yellow" "%d")
|
||||
"%n"
|
||||
" "
|
||||
(c "white" "%s")
|
||||
" "
|
||||
(c "dim white" "- %an")
|
||||
];
|
||||
in "log --graph --abbrev-commit --decorate --format=format:'${fmt}' --all";
|
||||
|
||||
l = let
|
||||
fmt = lib.concatStringsSep "%n" (map (x: if builtins.isList x then lib.concatStringsSep " " x else x) [
|
||||
[ (c "bold yellow" "%H") (c "auto" "%d") ]
|
||||
[ (c "bold white" "Author:") (c "bold cyan" "%aN <%aE>") (c "bold green" "(%ah)") ]
|
||||
[ (c "bold white" "Committer:") (c "bold cyan" "%cN <%cE>") (c "bold green" "(%ah)") ]
|
||||
[ (c "bold white" "GPG: (%G?)") (c "bold magenta" "%GF") "-" (c "bold cyan" "%GS") (c "bold blue" "(%GT) ") ]
|
||||
""
|
||||
(c "bold white" "# %s")
|
||||
"%+b"
|
||||
(c "dim yellow" "%+N")
|
||||
]);
|
||||
# sedExpressions = let
|
||||
# colorExpr = "\\x1B\\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]";
|
||||
# colorEndExpr = "\\x1B\\[m";
|
||||
# colored = x: "${colorExpr}${x}${colorEndExpr}";
|
||||
# in lib.concatMapStringsSep " " (x: "-e '${x}'") [
|
||||
# "s|${colored "GPG: \\(N\\)"} ${colored "F3CDA86CC55A9F10D7A069819F2F7D8250F35146"} - ${colored "h7x4 <h7x4@nani.wtf>"} ${colored "\\(ultimate\\)"}|GPG: h7x4|"
|
||||
# "s|${colored "GPG: \\(N\\)"} ${colored ""} - ${colored ""} ${colored "\\(undefined\\)"}||"
|
||||
# ];
|
||||
in "log --decorate --format=tformat:'${fmt}'";
|
||||
# in "!git log --color=always --format=format:'${fmt}' | sed -E ${sedExpressions} | $PAGER";
|
||||
});
|
||||
l = let
|
||||
fmt = lib.concatStringsSep "%n" (map (x: if builtins.isList x then lib.concatStringsSep " " x else x) [
|
||||
[ (c "bold yellow" "%H") (c "auto" "%d") ]
|
||||
[ (c "bold white" "Author:") (c "bold cyan" "%aN <%aE>") (c "bold green" "(%ah)") ]
|
||||
[ (c "bold white" "Committer:") (c "bold cyan" "%cN <%cE>") (c "bold green" "(%ah)") ]
|
||||
[ (c "bold white" "GPG: (%G?)") (c "bold magenta" "%GF") "-" (c "bold cyan" "%GS") (c "bold blue" "(%GT) ") ]
|
||||
""
|
||||
(c "bold white" "# %s")
|
||||
"%+b"
|
||||
(c "dim yellow" "%+N")
|
||||
]);
|
||||
# sedExpressions = let
|
||||
# colorExpr = "\\x1B\\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]";
|
||||
# colorEndExpr = "\\x1B\\[m";
|
||||
# colored = x: "${colorExpr}${x}${colorEndExpr}";
|
||||
# in lib.concatMapStringsSep " " (x: "-e '${x}'") [
|
||||
# "s|${colored "GPG: \\(N\\)"} ${colored "F3CDA86CC55A9F10D7A069819F2F7D8250F35146"} - ${colored "h7x4 <h7x4@nani.wtf>"} ${colored "\\(ultimate\\)"}|GPG: h7x4|"
|
||||
# "s|${colored "GPG: \\(N\\)"} ${colored ""} - ${colored ""} ${colored "\\(undefined\\)"}||"
|
||||
# ];
|
||||
in "log --decorate --format=tformat:'${fmt}'";
|
||||
# in "!git log --color=always --format=format:'${fmt}' | sed -E ${sedExpressions} | $PAGER";
|
||||
});
|
||||
|
||||
extraConfig = {
|
||||
core = {
|
||||
whitespace = lib.concatStringsSep "," [
|
||||
"space-before-tab"
|
||||
@@ -278,7 +271,7 @@ lib.mkIf cfg.enable {
|
||||
];
|
||||
in lib.genAttrs organizations (org: map (uri-prefix: "${uri-prefix}${org}") uri-prefixes);
|
||||
in {
|
||||
extraConfig."url \"${lib.head uri-prefixes}\"".insteadOf = lib.tail uri-prefixes;
|
||||
settings."url \"${lib.head uri-prefixes}\"".insteadOf = lib.tail uri-prefixes;
|
||||
|
||||
includes = map (x: {
|
||||
contentSuffix = "pvv.gitconfig";
|
||||
|
||||
@@ -75,10 +75,10 @@ in
|
||||
];
|
||||
|
||||
bindl = [
|
||||
"$mod, p, exec, ${exe pkgs.mpc_cli} toggle"
|
||||
",XF86AudioPlay, exec, ${exe pkgs.mpc_cli} toggle"
|
||||
",XF86AudioPrev, exec, ${exe pkgs.mpc_cli} prev"
|
||||
",XF86AudioNext, exec, ${exe pkgs.mpc_cli} next"
|
||||
"$mod, p, exec, ${exe pkgs.mpc} toggle"
|
||||
",XF86AudioPlay, exec, ${exe pkgs.mpc} toggle"
|
||||
",XF86AudioPrev, exec, ${exe pkgs.mpc} prev"
|
||||
",XF86AudioNext, exec, ${exe pkgs.mpc} next"
|
||||
];
|
||||
|
||||
bindle = [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.less = {
|
||||
keys = ''
|
||||
config = ''
|
||||
#env
|
||||
LESS = -i -R
|
||||
LESSHISTSIZE=20000
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.meli = {
|
||||
package = pkgs.meli.overrideAttrs {
|
||||
doCheck = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.programs.neomutt;
|
||||
in lib.mkIf cfg.enable {
|
||||
programs.neomutt = {
|
||||
# vimKeys = true;
|
||||
# set mailcap_path = ~/.config/neomutt/mailcap
|
||||
# set header_cache = "~/.cache/mutt"
|
||||
# set message_cachedir = "~/.cache/mutt"
|
||||
# set tmpdir = /run/user/${uid}/mutt
|
||||
|
||||
# extraConfig = ''
|
||||
# # vim: filetype=muttrc
|
||||
# '';
|
||||
};
|
||||
|
||||
xdg.configFile."neomutt/mailcap".text = ''
|
||||
# vim: filetype=muttrc
|
||||
|
||||
text/plain; nvim %s
|
||||
|
||||
#PDFs
|
||||
application/pdf; zathura %s pdf
|
||||
|
||||
#Images
|
||||
image/png; feh %s
|
||||
image/jpeg; feh %s
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.nyxt = { };
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.obsidian = { };
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.rclone = { };
|
||||
}
|
||||
@@ -23,9 +23,11 @@ in
|
||||
"${config.home.homeDirectory}/.ssh/mutable_config"
|
||||
];
|
||||
|
||||
controlMaster = "auto";
|
||||
controlPersist = "10m";
|
||||
controlPath = "${controlMastersDir}/%n%C";
|
||||
matchBlocks."*" = {
|
||||
controlMaster = "auto";
|
||||
controlPersist = "10m";
|
||||
controlPath = "${controlMastersDir}/%n%C";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.user.tmpfiles.settings."10-ssh" = {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
});
|
||||
mpd-status = (pkgs.writeShellApplication {
|
||||
name = "tmux-mpd-status";
|
||||
runtimeInputs = with pkgs; [ mpc-cli gawk gnugrep ];
|
||||
runtimeInputs = with pkgs; [ mpc gawk gnugrep ];
|
||||
text = fileContentsWithoutShebang ./scripts/mpd-status.sh;
|
||||
});
|
||||
in ''
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i sh -p mpc-cli gawk gnugrep
|
||||
#!nix-shell -i sh -p mpc gawk gnugrep
|
||||
|
||||
while true; do
|
||||
MPC_OUTPUT=$(mpc --format '[[%artist% - ]%title%]|[%file%]')
|
||||
|
||||
@@ -12,7 +12,7 @@ in {
|
||||
];
|
||||
|
||||
mpd_status_script = pkgs.writeShellScript "mpd-status" ''
|
||||
MPD_STATUS=$(${pkgs.mpc-cli}/bin/mpc 2>/dev/null | sed -n '2{p;q}' | cut -d ' ' -f1)
|
||||
MPD_STATUS=$(${lib.getExe pkgs.mpc} 2>/dev/null | sed -n '2{p;q}' | cut -d ' ' -f1)
|
||||
case "$MPD_STATUS" in
|
||||
"[playing]")
|
||||
echo "<fn=2><fc=#00ff00>▶</fc></fn>"
|
||||
|
||||
@@ -3,18 +3,18 @@ let
|
||||
cfg = config.programs.zsh;
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
home.file."${cfg.dotDir}/.zshrc".onChange = ''
|
||||
${lib.getExe (pkgs.writeTextFile {
|
||||
name = "zsh-compinit-oneshot.zsh";
|
||||
executable = true;
|
||||
destination = "/bin/zsh-compinit-oneshot.zsh";
|
||||
text = ''
|
||||
#!${lib.getExe cfg.package}
|
||||
#home.file."${cfg.dotDir}/.zshrc".onChange = ''
|
||||
# ${lib.getExe (pkgs.writeTextFile {
|
||||
# name = "zsh-compinit-oneshot.zsh";
|
||||
# executable = true;
|
||||
# destination = "/bin/zsh-compinit-oneshot.zsh";
|
||||
# text = ''
|
||||
# #!${lib.getExe cfg.package}
|
||||
|
||||
autoload -Uz compinit && compinit -C -d "${config.xdg.cacheHome}/zsh/zcompdump-$ZSH_VERSION"
|
||||
'';
|
||||
})}
|
||||
'';
|
||||
# autoload -Uz compinit && compinit -C -d "${config.xdg.cacheHome}/zsh/zcompdump-$ZSH_VERSION"
|
||||
# '';
|
||||
# })}
|
||||
#'';
|
||||
|
||||
systemd.user.tmpfiles.settings."10-zsh"."${config.xdg.cacheHome}/zsh".d = {
|
||||
mode = "0770";
|
||||
@@ -22,7 +22,7 @@ lib.mkIf cfg.enable {
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
dotDir = ".config/zsh";
|
||||
dotDir = "${config.xdg.configHome}/zsh";
|
||||
# enableSyntaxHighlighting = true;
|
||||
defaultKeymap = "viins";
|
||||
enableCompletion = true;
|
||||
|
||||
Reference in New Issue
Block a user