citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 6da3060c9225550b97e07a6961c18e93ae59a678
parent f4fb464ef8a44f6617debde9275d90ae0830e5e6
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 29 Oct 2022 06:13:38 -0700

Merge branch 'laptop'

Diffstat:
Mbin/bcli | 2+-
Abin/bclip | 2++
Mbin/cols | 2+-
Mbin/findex | 2+-
Abin/fuzz-git-modified | 5+++++
Abin/fuzz-notmuch-gam | 15+++++++++++++++
Abin/fuzz-notmuch-ghpatch | 8++++++++
Abin/fx | 2++
Mbin/hist | 2+-
Mbin/nix-build-cache | 4+++-
Abin/notmuch-gam | 6++++++
Abin/notmuch-ghpatch | 7+++++++
Abin/notmuch-select-threads | 3+++
Mbin/plainweb | 13+++++++++++--
Abin/read-thread-later | 9+++++++++
Abin/readlater | 19+++++++++++++++++++
Mbin/relayer | 2+-
Abin/rq | 30++++++++++++++++++++++++++++++
Mbin/search-files | 2+-
Abin/show-nostr-msg | 7+++++++
Abin/tailrun | 9+++++++++
Mdotfiles/.bashrc | 3++-
Mdotfiles/.config/neomutt/neomuttrc | 16+++++++++++++---
Mdotfiles/.config/nvim/init.vim | 8++++++++
Mdotfiles/.gitconfig | 2--
Mdotfiles/.mail_aliases | 3+++
Mdotfiles/.mailcap | 1+
Mdotfiles/commands | 2++
Mdotfiles/rssfeeds | 15+++++++++------
Mjb55pkgs/default.nix | 8++++----
Mjb55pkgs/pkgs/hoogle-zen/default.nix | 2+-
Mjb55pkgs/pkgs/sharefile/default.nix | 2+-
Mjb55pkgs/pkgs/x11-rename/default.nix | 2+-
Mnix-config/environment/default.nix | 3++-
Mnix-config/environment/desktop/default.nix | 31+++++++++++++++++--------------
Mnix-config/machines/quiver/default.nix | 4+++-
Mnix-config/misc/imap-notifier/default.nix | 2+-
Mnix-config/nixpkgs/config.nix | 19+++++--------------
Mnix-config/services/desktop/default.nix | 6+++---
39 files changed, 218 insertions(+), 62 deletions(-)

diff --git a/bin/bcli b/bin/bcli @@ -3,6 +3,6 @@ if [ $(hostname) == "monad" ] then exec bitcoin-cli -rpcuser=rpcuser -rpcpassword=rpcpass -datadir=/zbig/bitcoin "$@" else - exec bitcoin-cli "$@" + ssh monad bcli "$@" fi diff --git a/bin/bclip b/bin/bclip @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +bcli -rpcwallet=personal "$@" diff --git a/bin/cols b/bin/cols @@ -1,4 +1,4 @@ #!/usr/bin/env sh -cols=${1:-$(tput cols)} +cols=${1:-73} shift fold -w $cols -s "$@" diff --git a/bin/findex b/bin/findex @@ -1,7 +1,7 @@ #!/usr/bin/env bash if [ -z "$1" ]; then - printf 'usage: find-example <rg query>\n' + printf 'usage: findex <rg query>\n' exit 1 fi diff --git a/bin/fuzz-git-modified b/bin/fuzz-git-modified @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +file=$(git status | grep modified: | awkp 2 | fzf) + +echo "edit $file" diff --git a/bin/fuzz-notmuch-gam b/bin/fuzz-notmuch-gam @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +#set -eou pipefail +slug=$(github-project-slug) +if [ slug == "" ]; then + slug="and subject:$slug" +fi +thread=$(notmuch search --format=json from:github $slug and subject:PR and date:month.. | +jq -r '.[] | "\(.timestamp) \(.subject)\t\(.thread)"' | +sort -nr | +datefmt --timeago | +fzf --no-sort -m | +cutt -f2 | +xargs -I{} printf 'thread:{}\n') + +echo "notmuch show $thread | mail-prpatch" diff --git a/bin/fuzz-notmuch-ghpatch b/bin/fuzz-notmuch-ghpatch @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e + +thread=$(notmuch search --format=json ${1:-tag:github and date:week..} | notmuch-select-threads) + +echo "notmuch show $thread | mail-prpatch" + diff --git a/bin/fx b/bin/fx @@ -0,0 +1 @@ +findex+ \ No newline at end of file diff --git a/bin/hist b/bin/hist @@ -10,4 +10,4 @@ for line in sys.stdin.readlines(): hist[x] = (hist.get(x) or 0) + 1 for key, count in hist.items(): - print "%s\t%s" % (count, key) + print("{}\t{}".format(count,key)) diff --git a/bin/nix-build-cache b/bin/nix-build-cache @@ -3,6 +3,8 @@ printf "building cache of nixpkgs\n" >&2 nix-env -f $NIXPKGS -qaP \* > /tmp/search1 & printf "building cache of haskellPackages\n" >&2 nix-env -f $NIXPKGS -qaPA haskellPackages > /tmp/search2 & +printf "building cache of perlPackages\n" >&2 +nix-env -f $NIXPKGS -qaPA perlPackages > /tmp/search3 & wait -cat /tmp/search1 /tmp/search2 | sort > ~/.nixenv.cache +cat /tmp/search{1,2,3} | sort > ~/.nixenv.cache rm -f /tmp/search1 /tmp/search2 diff --git a/bin/notmuch-gam b/bin/notmuch-gam @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -eou pipefail +cmd=$(fuzz-notmuch-gam) + +$cmd diff --git a/bin/notmuch-ghpatch b/bin/notmuch-ghpatch @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +thread=$(notmuch search --format=json ${1:-query:inbox and tag:github} | notmuch-select-threads) + +notmuch show $thread | mail-prpatch diff --git a/bin/notmuch-select-threads b/bin/notmuch-select-threads @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +cmd=$(fuzz-notmuch-select-threads) +eval "$cmd" diff --git a/bin/plainweb b/bin/plainweb @@ -2,6 +2,11 @@ USER_AGENT='User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/83.0.4103.122 Safari/537.36' +if [ "$1" = "-f" ]; then + FORCE=1 + shift +fi + if [ -z "$1" ]; then printf "usage: plainweb <url>\n" exit 1 @@ -10,9 +15,13 @@ fi HURL="/tmp/$(sha256sum <<<"$1" | awk '{print $1}').txt" OUT=${2:-$HURL} -if [ ! -f "$HURL" ]; then +if [[ $FORCE -eq 1 ]] || [[ ! -f "$HURL" ]]; then + printf "fetching...\n" >&2 #w3m -header "$USER_AGENT" -dump "$1" > "$HURL" - w3m -dump "$1" | par -w$(tput cols) > "$HURL" + #w3m -dump "$1" | par -w$(tput cols) > "$HURL" + w3m -dump "$1" > "$HURL" + #<"$HURL" par -w$(tput cols) > "$HURL.par" fi lessr "$HURL" +printf "$HURL\n" >&2 diff --git a/bin/read-thread-later b/bin/read-thread-later @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -e + +if [[ -z $1 ]] || [[ -z $2 ]]; then + printf "usage: read-thread-later <thread:threadid> filename.txt\n" >&2 + exit 1 +fi + +notmuch show --format=text "$1" | collapse | readlater "$2" diff --git a/bin/readlater b/bin/readlater @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -e + +tmp=$(mktemp) +cat > "$tmp" +fname="$1" + +if [ -z $1 ]; then + printf "usage: readlater fname.txt\n" + exit 2 +fi + +fname=${fname%.txt}.txt + +mkdir -p $HOME/docs/queue +mv "$tmp" "$HOME/docs/queue/$fname" +printf "Added '$fname' to read queue\n" >&2 +rm -f "$tmp" diff --git a/bin/relayer b/bin/relayer @@ -6,7 +6,7 @@ printf "using post '%s'\n" "$POST" >&2 for relay in $(cat ~/dotfiles/relays) do - echo "$POST" | websocat "$relay" & + <<<"$POST" jq -c '["EVENT", .]' | websocat "$relay" & done wait diff --git a/bin/rq b/bin/rq @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +set -e + +DOCS_DIR=${DOCS_DIR:-$HOME/docs} + +cmd=$(fuzz-reader $DOCS_DIR/queue) + +path=$(cut -f2 -d" " <<<"$cmd") +fname=$(basename "$path") + +$cmd + + +printf "Are you done with '$fname'?\n" >&2 +read -rep "(a)rchive, (d)elete, (q)uit: " reply + +case $reply in + [Dd]* ) + rm -f "$path" + printf 'Deleting %s\n' "$fname" >&2 + ;; + [Aa]* ) + mkdir -p "$DOCS_DIR/archive" + mv "$path" "$DOCS_DIR/archive" + mv "$DOCS_DIR/queue/.$fname.hst" "$DOCS_DIR/archive" || : + printf 'Archiving %s\n' "$fname" >&2 + ;; + * ) ;; +esac diff --git a/bin/search-files b/bin/search-files @@ -11,4 +11,4 @@ res=$(fzf --bind "change:reload:$RG_PREFIX {q} || true" --ansi --phony --query " file=$(cut -d: -f1 <<<"$res") line=$(cut -d: -f2 <<<"$res") -echo +$line \"$file\" "# $(cut -d: -f4- <<<"$res")" +echo +$line \"$file\" #"# $(cut -d: -f4- <<<"$res")" diff --git a/bin/show-nostr-msg b/bin/show-nostr-msg @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +content=$(jq -r '.[2] | "\(.pubkey):\n\n\(.content)"') + +notify-send -u critical "$content" diff --git a/bin/tailrun b/bin/tailrun @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +file=$1 + +shift + +while read line; do + echo "$line" | ${@//\{\}/$line} +done < <(tail -n0 -f $file) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc @@ -3,6 +3,7 @@ # for examples set -o vi +export LC_CTYPE="en_US.UTF-8" export NIXPKGS=$HOME/nixpkgs export NIX_PATH="nixpkgs=$NIXPKGS:$NIX_PATH" export NIX_PATH="nixos-config=$NIX_FILES:$NIX_PATH" @@ -22,7 +23,7 @@ export PS0='\033[0m' export HISTSIZE=50000 export HISTCONTROL=ignoredups # ... and ignore same sucessive entries. -export HISTCONTROL=ignoreboth +#export HISTCONTROL=ignoreboth # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. diff --git a/dotfiles/.config/neomutt/neomuttrc b/dotfiles/.config/neomutt/neomuttrc @@ -7,6 +7,7 @@ set wait_key=no set pager_stop=yes set from="jb55@jb55.com" set pipe_decode=yes +set pipe_split=no set envelope_from=yes set mime_forward=no unset markers @@ -16,8 +17,10 @@ set reverse_name=yes set reverse_realname=no alternates ^jb55@jb55.com$ ^will.casarin@steamoji.com$ -set sort = threads +#set sort = threads #set sort_aux = reverse-last-date-received +#set sort = reverse-last-date-received +set sort = last-date-received virtual-mailboxes \ "INBOX" "notmuch://?query=query:inbox" \ @@ -34,11 +37,11 @@ virtual-mailboxes \ "today" "notmuch://?query=query:today" \ "work" "notmuch://?query=query:work" -macro index,pager a "<modify-labels>-unread -inbox<enter>j<enter> +macro index,pager a "<modify-labels>-unread -inbox<enter> macro index,pager A "<create-alias>" "Create alias" macro index,pager F "<modify-labels>+filed" "File message" macro index,pager + "<modify-labels>+" -macro index,pager S "<modify-labels>+spam -unread -inbox<enter>j<enter> +macro index,pager S "<modify-labels>+spam -unread -inbox<enter> macro index c "<change-vfolder>?" "Change to vfolder overview" macro index \\\\ "<vfolder-from-query>" "Search mailbox" macro pager p "|delta --paging always<enter>" @@ -46,6 +49,7 @@ macro pager d "<next-page>" macro pager u "<previous-page>" macro pager c "|cols|less<enter>" macro pager t "|collapse|less<enter>" +macro attach h "|w3m -dump -T text/html | less<enter>" "View text/html with w3m" #macro pager P "|grep patch$ | xargs curl -sL | delta --paging always<enter>" macro pager P "| mail-prpatch | delta --paging always" @@ -64,4 +68,10 @@ color quoted9 blue default # Quoting Ebene 10 color header brightcyan default '^Subject:' +#collapse threads +folder-hook . "push \eV" +set collapse_unread=yes +set uncollapse_jump=yes + source ~/.mail_aliases + diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim @@ -29,6 +29,14 @@ nmap <C-s> ^D nmap <C-n> :tn<CR> nmap <C-p> :tp<CR> +" autoparens +"ino " ""<left> +"ino ' ''<left> +"ino ( ()<left> +"ino [ []<left> +"ino { {}<left> +"ino {<CR> {<CR>}<ESC>O + imap <A-j> { imap <A-k> } imap <A-n> [ diff --git a/dotfiles/.gitconfig b/dotfiles/.gitconfig @@ -93,8 +93,6 @@ hideCampaign = true [github] user = jb55 -[commit] - template = ~/.git-template [grep] lineNumber = true [credential "https://github.com"] diff --git a/dotfiles/.mail_aliases b/dotfiles/.mail_aliases @@ -1,8 +1,11 @@ alias hank Henry Horkoff <hank.horkoff@steamoji.com> alias owen Owen Hann <owen.hann@steamoji.com> +alias matt Matt Richards <matt.richards@steamoji.com> alias mikhail Mikhail Baiman <mikhail.baiman@steamoji.com> alias alex Alex Chunn <alex.chunn@steamoji.com> alias jesse Jesse Brydle <jesse.brydle@steamoji.com> alias v Vanessa Gray <vanessagray31@gmail.com> alias steam William Casarin <will.casarin@steamoji.com> alias rusty Rusty Russell <rusty@rustcorp.com.au> + +alias managers Kitsilano <kitsilano@steamoji.com>, Kerrisdale <kerrisdale@steamoji.com>, West Vancouver <westvancouver@steamoji.com> diff --git a/dotfiles/.mailcap b/dotfiles/.mailcap @@ -1,4 +1,5 @@ text/html; open %s; nametemplate=%s.html +#text/html; w3m -dump '%s'; copiousoutput text/csv; pcsv %s image/*; open %s video/*; open %s diff --git a/dotfiles/commands b/dotfiles/commands @@ -44,6 +44,7 @@ h run history fuzz-run-hist jt jump tag fuzz-jump-tag nai notmuch archive inbox fuzz-notmuch-archive-inbox nam notmuch am fuzz-notmuch-am +ng notmuch github patch fuzz-notmuch-gam nat notmuch archive fuzz-notmuch-archive Nc new command echo make-script ni notmuch inbox fuzz-notmuch-inbox @@ -72,6 +73,7 @@ wn work notes echo edit /home/jb55/projects/steamoji/doc/$(ls -1pt /home/jb55/pr wsg work service gql fuzzedit schema '^' wsm work service mutations fuzzedit mutation '^func ' wsq work service queries fuzzedit query '^func ' +wsp work service permissions fuzzedit permission.go '^"' wdq work dashboard queries fuzzedit queries '^' wtb work trello backlog fuzz-trello-sprint "^Backlog " wti work trello inprogress fuzz-trello-sprint "^In Progress " diff --git a/dotfiles/rssfeeds b/dotfiles/rssfeeds @@ -23,18 +23,21 @@ noagenda @pod http://feed.nashownotes.com/rss.xml peakpropsperity @blog,@busy https://feeds.feedburner.com/PeakProsperity portal @pod https://www.omnycontent.com/d/playlist/9b7dacdf-a925-4f95-84dc-ac46003451ff/1713c520-edb6-43a3-b1b9-acb8002fdae7/58e33a0c-f86b-41c5-a11c-acb8002fdaf5/podcast.rss quanta @blog https://api.quantamagazine.org/feed/ -quantapodcast @pod https://api.quantamagazine.org/feed/podcast/ sabine @yt https://www.youtube.com/feeds/videos.xml?channel_id=UC1yNl2E66ZzKApQdRuTQ4tw samharris @pod https://wakingup.libsyn.com/rss shitcoinchron @blog https://chainfail.substack.com/feed squarebitcoin @blog https://squareselfcustody.substack.com/feed.xml stackernews @busy https://stacker.news/rss -susskind @arxiv 'http://export.arxiv.org/api/query?search_query=au:susskind_l&sortBy=lastUpdatedDate&sortOrder=descending' thedrive @pod https://peterattiadrive.libsyn.com/rss -timferris @pod https://rss.art19.com/tim-ferriss-show veritasium @yt https://www.youtube.com/feeds/videos.xml?channel_id=UCHnyfMqiRRG1u-2MsSQLbXA -witten @arxiv 'http://export.arxiv.org/api/query?search_query=au:witten_e&sortBy=lastUpdatedDate&sortOrder=descending' -zvibern @arxiv 'http://export.arxiv.org/api/query?search_query=au:bern_zvi&sortBy=lastUpdatedDate&sortOrder=descending' -scott-aaronson @blog https://scottaaronson.blog/?feed=rss2 +susskind @arxiv @physics 'http://export.arxiv.org/api/query?search_query=au:susskind_l&sortBy=lastUpdatedDate&sortOrder=descending' +witten @arxiv @physics 'http://export.arxiv.org/api/query?search_query=au:witten_e&sortBy=lastUpdatedDate&sortOrder=descending' +zvibern @arxiv @physics 'http://export.arxiv.org/api/query?search_query=au:bern_zvi&sortBy=lastUpdatedDate&sortOrder=descending' +nielsen @arxiv @physics 'http://export.arxiv.org/api/query?search_query=au:nielsen_m_a&sortBy=lastUpdatedDate&sortOrder=descending' +maldacena @arxiv @physics 'http://export.arxiv.org/api/query?search_query=au:maldacena_j&sortBy=lastUpdatedDate&sortOrder=descending' +harlow @arxiv @physics 'http://export.arxiv.org/api/query?search_query=au:harlow_d&sortBy=lastUpdatedDate&sortOrder=descending' +bousso @arxiv @physics 'http://export.arxiv.org/api/query?search_query=au:bousso_r&sortBy=lastUpdatedDate&sortOrder=descending' +scott-aaronson @blog @physics https://scottaaronson.blog/?feed=rss2 dietterich-labs @yt https://www.youtube.com/feeds/videos.xml?channel_id=UCd02pSRrecAVFOPjB-bfv-Q allen-farrington @blog https://medium.com/feed/@allenfarrington +woit @blog https://www.math.columbia.edu/~woit/wordpress/?feed=rss2 diff --git a/jb55pkgs/default.nix b/jb55pkgs/default.nix @@ -67,8 +67,8 @@ in rec { zoom-link-opener = fetch { repo = "zoom-link-opener"; - rev = "0.1.1"; - sha256 = "013q814i7wcbl2ba5jpqkz00kpa1jaly53np30i4x01cfdfzywi3"; + rev = "0.1.2"; + sha256 = "sha256-sytjRdK+CVxnJU4EdVzZyK0c7TJJo+64kJfJTTrKwKM="; }; zebra = fetch { @@ -79,8 +79,8 @@ in rec { viscal = fetch-jb55 { repo = "viscal"; - rev = "4b87413babb4296d94ac8535f1160f7a0d507c4e"; - sha256 = "0lamxx6xh5b8f38sqyn2ghqplvvaaxwkmvd6gb3vwqyw2qr3vwga"; + rev = "b93b651522ca684e46603316df88b2c7241afecd"; + sha256 = "sha256-iOR3vztBqq+/7+tGDcRuU4HfsBuCLjPKKAflzAAsqOM="; }; datefmt = fetch { diff --git a/jb55pkgs/pkgs/hoogle-zen/default.nix b/jb55pkgs/pkgs/hoogle-zen/default.nix @@ -1,7 +1,7 @@ { pkgs ? import <nixpkgs> {}, stdenv ? pkgs.stdenv, bash ? pkgs.bash, - zenity ? pkgs.gnome3.zenity, + zenity ? pkgs.gnome.zenity, writeScript ? pkgs.writeScript }: stdenv.mkDerivation rec { diff --git a/jb55pkgs/pkgs/sharefile/default.nix b/jb55pkgs/pkgs/sharefile/default.nix @@ -9,7 +9,7 @@ , fetchFromGitHub }: let - inputs = [ perl perlPackages.URI rsync openssh coreutils ]; + inputs = [ perl perlPackages.URI perlPackages.AnyURIEscape rsync openssh coreutils ]; buildPaths = sep: fmt: "${lib.concatStringsSep sep (map fmt inputs)}"; in stdenv.mkDerivation rec { name = "sharefile-${version}"; diff --git a/jb55pkgs/pkgs/x11-rename/default.nix b/jb55pkgs/pkgs/x11-rename/default.nix @@ -3,7 +3,7 @@ fetchurl ? pkgs.fetchurl, bash ? pkgs.bash, xdotool ? pkgs.xdotool, - zenity ? pkgs.gnome3.zenity, + zenity ? pkgs.gnome.zenity, writeScript ? pkgs.writeScript }: let diff --git a/nix-config/environment/default.nix b/nix-config/environment/default.nix @@ -92,7 +92,8 @@ let jb55pkgs = import <jb55pkgs> { inherit pkgs; }; universal-ctags unixtools.xxd unzip - weechat + #weechat + websocat wget xonsh zip diff --git a/nix-config/environment/desktop/default.nix b/nix-config/environment/desktop/default.nix @@ -20,7 +20,7 @@ let gtk2rc = pkgs.writeText "gtk2rc" '' cmdtree zoom-link-opener x11-rename - hoogle-zen + #hoogle-zen viscal ]; @@ -35,8 +35,6 @@ let gtk2rc = pkgs.writeText "gtk2rc" '' mypkgs = (with pkgs; [ obs-studio - aerc - bitcoin clipmenu colorpicker dasht @@ -46,10 +44,9 @@ let gtk2rc = pkgs.writeText "gtk2rc" '' dynamic-colors feh getmail6 # for getmail-gmail-xoauth-tokens - gnome3.gnome-calculator + gnome.gnome-calculator gtk-engine-murrine - #hwi - khal + hwi lagrange lastpass-cli libnotify @@ -61,24 +58,22 @@ let gtk2rc = pkgs.writeText "gtk2rc" '' oathToolkit pandoc pavucontrol + pamixer pinentry postgresql # psql - #python37Packages.trezor qalculate-gtk qutebrowser - rxvt_unicode-with-plugins + rxvt-unicode signal-desktop simplescreenrecorder slock spotify - #steam sxiv - texlive.combined.scheme-full todo-txt-cli + tdesktop userConfig vdirsyncer w3m - #wine wmctrl xautolock xbindkeys @@ -90,7 +85,14 @@ let gtk2rc = pkgs.writeText "gtk2rc" '' zathura zoom-us - df + #aerc + #bitcoin --- probably don't want a binary substitute of this + #khal + #python37Packages.trezor + #texlive.combined.scheme-full + #steam + #wine + #df ]) ++ jbpkgs; in { @@ -116,14 +118,15 @@ in { VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json"; # radv }; - programs.steam.enable = true; + programs.steam.enable = false; environment.systemPackages = if extra.is-minimal then (with pkgs; [ #steam #steam-run #wine + lastpass-cli - rxvt_unicode-with-plugins + rxvt-unicode ]) else mypkgs; programs.slock.enable = true; diff --git a/nix-config/machines/quiver/default.nix b/nix-config/machines/quiver/default.nix @@ -17,6 +17,8 @@ extra: documentation.nixos.enable = false; + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.extraModprobeConfig = '' options thinkpad_acpi enabled=0 ''; @@ -226,7 +228,7 @@ extra: services.postgresql = { dataDir = "/var/db/postgresql/10/"; - enable = true; + enable = false; package = pkgs.postgresql_10; # extraPlugins = with pkgs; [ pgmp ]; authentication = pkgs.lib.mkForce '' diff --git a/nix-config/misc/imap-notifier/default.nix b/nix-config/misc/imap-notifier/default.nix @@ -61,7 +61,7 @@ with extra; { IMAP_NOTIFY_PORT = "12788"; }; - path = with pkgs; [ eject utillinux muchsync notmuch bash openssh ]; + path = with pkgs; [ eject util-linux muchsync notmuch bash openssh ]; serviceConfig.Type = "simple"; serviceConfig.Restart = "always"; diff --git a/nix-config/nixpkgs/config.nix b/nix-config/nixpkgs/config.nix @@ -21,7 +21,7 @@ in { smbdSupport = true; }; - mpv = super.mpv-with-scripts.override { + mpv = pkgs.wrapMpv pkgs.mpv-unwrapped { scripts = [ pkgs.mpvScripts.mpris ]; }; @@ -34,15 +34,6 @@ in { inherit pkgs; }; - less = pkgs.lib.overrideDerivation super.less (attrs: { - patches = [ - (super.fetchurl { - url = "https://jb55.com/s/0001-Fix-regression-where-lastmark-isn-t-saved-250.patch"; - sha256 = "0171f3c60406232fdd24a3c7a59fa7dd92b673b612998a545459d704ba922ca2"; - }) - ]; - }); - msmtp = pkgs.lib.overrideDerivation super.msmtp (attrs: { patches = [ (super.fetchurl { @@ -58,10 +49,10 @@ in { ''; }); - weechat = super.weechat.override {configure = {availablePlugins, ...}: { - scripts = with super.weechatScripts; [ wee-slack weechat-matrix ]; - }; - }; + #weechat = super.weechat.override {configure = {availablePlugins, ...}: { + # scripts = with super.weechatScripts; [ wee-slack weechat-matrix ]; + # }; + #}; dunst = pkgs.lib.overrideDerivation super.dunst (attrs: { src = pkgs.fetchFromGitHub { diff --git a/nix-config/services/desktop/default.nix b/nix-config/services/desktop/default.nix @@ -24,7 +24,7 @@ in }; services.pcscd.enable = true; - services.gnome3.gnome-keyring.enable = if extra.is-minimal then false else true; + services.gnome.gnome-keyring.enable = if extra.is-minimal then false else true; services.trezord.enable = true; @@ -198,10 +198,10 @@ in description = "RXVT-Unicode Daemon"; wantedBy = [ "graphical-session.target" ]; after = [ "graphical-session.target" ]; - path = [ pkgs.rxvt_unicode-with-plugins ]; + path = [ pkgs.rxvt-unicode ]; serviceConfig = { Restart = "always"; - ExecStart = "${pkgs.rxvt_unicode-with-plugins}/bin/urxvtd -q -o"; + ExecStart = "${pkgs.rxvt-unicode}/bin/urxvtd -q -o"; }; };