This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import requests | |
| import matplotlib.pyplot as plt | |
| import json | |
| import time | |
| import threading | |
| from datetime import datetime | |
| import pytz | |
| import numpy as np | |
| from matplotlib.animation import FuncAnimation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| flake.modules.nixos.services-silverbullet = | |
| { | |
| config, | |
| lib, | |
| pkgs, | |
| ... | |
| }: | |
| let | |
| cfg = config.features.services.silverbullet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| pkgs, | |
| lib, | |
| config, | |
| ... | |
| }: | |
| let | |
| cfg = config.programs.language-servers; | |
| allLanguageServers = with pkgs; [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| fetch_tmux_sessions() { | |
| # list session ids and names, each on a new line, ordered by session_id | |
| tmux list-sessions -F "#{session_id} #{session_name}" | sort -n | |
| } | |
| # read tmux sessions into an array | |
| mapfile -t SESSIONS < <(fetch_tmux_sessions) | |
| declare -A KEY_SESSION_ID_MAP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # include https://github.com/NixOS/nixpkgs/pull/439751 | |
| # include https://github.com/nix-community/home-manager/pull/7757 | |
| { | |
| config, | |
| pkgs, | |
| lib, | |
| ... | |
| }: | |
| let | |
| version = "26.20.1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { pkgs, lib, ... }: | |
| let | |
| patched-dwm = pkgs.dwm.overrideAttrs { | |
| src = pkgs.fetchFromGitHub { | |
| owner = "kesor"; | |
| repo = "dwm"; | |
| rev = "c4609547ecb9d8330d56e903690532fd43a001f7"; | |
| sha256 = "sha256-iY+v36I4l+wX8N940S2T/wxlwKxWeGtrO1t1CheltG4="; | |
| }; | |
| prePatch = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "Home Manager configuration"; | |
| inputs = { | |
| # nixpkgsUnstable.url = "github:nixos/nixpkgs/nixos-unstable"; | |
| nixpkgs.url = "github:nixos/nixpkgs/release-24.11"; | |
| systems.url = "github:nix-systems/default"; | |
| catppuccin.url = "github:catppuccin/nix"; | |
| ghostty.url = "github:ghostty-org/ghostty"; | |
| homeManager = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # CHANGE THIS | |
| ACTUAL_EZA=/usr/local/bin/_eza | |
| display_time="modified" | |
| sort_time="" | |
| args=() | |
| while [ "$#" -gt 0 ]; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { lib, pkgs, ... }: | |
| let | |
| # Function to wrap a package with custom environment variables | |
| makeWrappedPackage = pkg: envVars: pkgs.symlinkJoin { | |
| name = "env-wrap-${pkg.pname or pkg.name}"; | |
| paths = [ pkg ]; # Symlink all files form the original | |
| buildInputs = [ pkgs.makeWrapper ]; | |
| postBuild = '' | |
| for exe in ${lib.getExe pkg}; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { lib, pkgs, ... }: | |
| let | |
| # Function to wrap a package with custom environment variables | |
| makeWrappedPackage = pkg: envVars: pkgs.stdenv.mkDerivation { | |
| name = "env-wrap-${pkg.name}"; | |
| nativeBuildInputs = [ pkgs.makeWrapper ]; | |
| buildCommand = '' | |
| mkdir -p $out/bin | |
| for exe in ${lib.getExe pkg}; do |
NewerOlder