summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/profiles/common/nixpkgs/overlays.nix11
-rw-r--r--nixos/profiles/workstation/dev.nix2
-rw-r--r--user/zsh/zshrc-workstation.sh2
3 files changed, 13 insertions, 2 deletions
diff --git a/nixos/profiles/common/nixpkgs/overlays.nix b/nixos/profiles/common/nixpkgs/overlays.nix
index 63e9de9..2834325 100644
--- a/nixos/profiles/common/nixpkgs/overlays.nix
+++ b/nixos/profiles/common/nixpkgs/overlays.nix
@@ -3,6 +3,17 @@
[
# features
(final: prev: {
+ scc = prev.scc.overrideAttrs (old: {
+ # https://github.com/boyter/scc/pull/622
+ src = pkgs.fetchFromGitHub {
+ owner = "boyter";
+ repo = "scc";
+ rev = "b73ea06bdc5890821d03502a2cfc4224b19a9b67";
+ hash = "sha256-vcuoKrvludBE0KpXVLkKzB38n0mZJWVB8bYrgJDHKfY=";
+ };
+ });
+ })
+ (final: prev: {
skim = prev.skim.overrideAttrs (old: {
patches = old.patches ++ [
# https://github.com/skim-rs/skim/issues/803
diff --git a/nixos/profiles/workstation/dev.nix b/nixos/profiles/workstation/dev.nix
index 87e461b..2cad67b 100644
--- a/nixos/profiles/workstation/dev.nix
+++ b/nixos/profiles/workstation/dev.nix
@@ -14,7 +14,7 @@
jq
just
sqlite-interactive
- tokei
+ scc
fastmod
license-generator
diff --git a/user/zsh/zshrc-workstation.sh b/user/zsh/zshrc-workstation.sh
index e027208..93ac430 100644
--- a/user/zsh/zshrc-workstation.sh
+++ b/user/zsh/zshrc-workstation.sh
@@ -3,7 +3,7 @@
## Aliases
alias code='codium'
alias zed=zeditor
-alias tokei='tokei -s code -n commas'
+alias scc='scc --no-cocomo --no-size --no-gen --sort code'
## Environment variables
export CARGO_HOME="$HOME/.local/share/cargo"