mirror of
https://github.com/davegallant/nix-config
synced 2025-10-09 15:16:02 +00:00
Compare commits
3 Commits
47794f6de9
...
a5eae0df83
Author | SHA1 | Date | |
---|---|---|---|
|
a5eae0df83 | ||
|
266401ceec | ||
|
755ba0ca57 |
@@ -8,7 +8,6 @@ in
|
|||||||
src = ./.;
|
src = ./.;
|
||||||
hooks = {
|
hooks = {
|
||||||
shellcheck.enable = true;
|
shellcheck.enable = true;
|
||||||
nixfmt.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -18,7 +18,6 @@ in
|
|||||||
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
||||||
targets = {
|
targets = {
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
tmux.enable = true;
|
|
||||||
vscode.enable = false; # overrides synced settings
|
vscode.enable = false; # overrides synced settings
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -145,6 +144,7 @@ in
|
|||||||
envExtra = ''
|
envExtra = ''
|
||||||
export PAGER=less
|
export PAGER=less
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
export DOCKER_CLI_HINTS=false
|
||||||
|
|
||||||
export PATH=$PATH:~/.cargo/bin
|
export PATH=$PATH:~/.cargo/bin
|
||||||
export PATH=$PATH:~/.local/bin
|
export PATH=$PATH:~/.local/bin
|
||||||
@@ -197,8 +197,7 @@ in
|
|||||||
m = "make";
|
m = "make";
|
||||||
nix-install = "nix-env -iA";
|
nix-install = "nix-env -iA";
|
||||||
ps = "procs";
|
ps = "procs";
|
||||||
t = "tms";
|
t = "cd-fzf";
|
||||||
ts = "tms switch";
|
|
||||||
tf = "terraform";
|
tf = "terraform";
|
||||||
tree = "eza --tree";
|
tree = "eza --tree";
|
||||||
v = "nvim";
|
v = "nvim";
|
||||||
@@ -213,64 +212,6 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
tmux = {
|
|
||||||
enable = true;
|
|
||||||
clock24 = true;
|
|
||||||
terminal = "tmux-256color";
|
|
||||||
customPaneNavigationAndResize = true;
|
|
||||||
plugins = with pkgs.tmuxPlugins; [
|
|
||||||
{
|
|
||||||
plugin = sessionist;
|
|
||||||
extraConfig = "set -g @plugin 'tmux-plugins/tmux-sessionist'";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
plugin = sensible;
|
|
||||||
extraConfig = "set -g @plugin 'tmux-plugins/tmux-sensible'";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
plugin = yank;
|
|
||||||
extraConfig = "set -g @plugin 'tmux-plugins/tmux-yank'";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
plugin = resurrect;
|
|
||||||
extraConfig = ''
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
{
|
|
||||||
plugin = continuum;
|
|
||||||
extraConfig = ''
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
||||||
set -g @continuum-restore 'on'
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
{
|
|
||||||
plugin = open;
|
|
||||||
extraConfig = ''
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-open'
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
extraConfig = ''
|
|
||||||
set-window-option -g automatic-rename on
|
|
||||||
set-window-option -g mode-keys vi
|
|
||||||
|
|
||||||
bind-key -T copy-mode-vi v send -X begin-selection
|
|
||||||
bind-key -T copy-mode-vi V send -X select-line
|
|
||||||
unbind-key -T copy-mode-vi MouseDragEnd1Pane
|
|
||||||
|
|
||||||
set-option -g set-titles on
|
|
||||||
set -g mouse on
|
|
||||||
set -g default-command "zsh"
|
|
||||||
set -g status-left-length 30
|
|
||||||
set -g status-right-length 150
|
|
||||||
set -g xterm-keys on
|
|
||||||
set -g monitor-activity on
|
|
||||||
set -g status-right '#(gitmux #{pane_current_path})'
|
|
||||||
set -g @yank_action 'copy-pipe'
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
@@ -473,9 +414,7 @@ in
|
|||||||
ms-kubernetes-tools.vscode-kubernetes-tools
|
ms-kubernetes-tools.vscode-kubernetes-tools
|
||||||
redhat.vscode-yaml
|
redhat.vscode-yaml
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.isLinux [
|
++ lib.optionals stdenv.isLinux [ ms-python.python ];
|
||||||
ms-python.python
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
firefox = {
|
firefox = {
|
||||||
|
@@ -114,7 +114,6 @@ in
|
|||||||
prismlauncher
|
prismlauncher
|
||||||
qemu
|
qemu
|
||||||
ryujinx
|
ryujinx
|
||||||
sbx-h6-rgb
|
|
||||||
strace
|
strace
|
||||||
unityhub
|
unityhub
|
||||||
unstable.burpsuite
|
unstable.burpsuite
|
||||||
@@ -256,9 +255,6 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = unstable.tailscale;
|
package = unstable.tailscale;
|
||||||
};
|
};
|
||||||
udev.extraRules = ''
|
|
||||||
ACTION=="add", ATTR{idVendor}=="041e", ATTR{idProduct}=="3255", RUN+="${pkgs.sbx-h6-rgb}/bin/sbx-h6-ctl -c c010ff 041e:3255"
|
|
||||||
'';
|
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
displayManager = {
|
displayManager = {
|
||||||
|
@@ -1,7 +1,4 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
|
||||||
checkBrew = "command -v brew > /dev/null";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
config = {
|
config = {
|
||||||
@@ -29,9 +26,6 @@ in
|
|||||||
users.users."dave.gallant".home = "/Users/dave.gallant";
|
users.users."dave.gallant".home = "/Users/dave.gallant";
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
extraInit = ''
|
|
||||||
${checkBrew} || >&2 echo "brew is not installed (install it via https://brew.sh)"
|
|
||||||
'';
|
|
||||||
variables = {
|
variables = {
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
17
overlays/cd-fzf/cd-fzf
Executable file
17
overlays/cd-fzf/cd-fzf
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
readarray -t directories < ~/.config/cd-fzf
|
||||||
|
|
||||||
|
if [[ $# -eq 1 ]]; then
|
||||||
|
selected=$1
|
||||||
|
else
|
||||||
|
selected=$(find "${directories[@]}" -mindepth 1 -maxdepth 1 -type d | fzf --exact)
|
||||||
|
fi
|
||||||
|
if [[ -z $selected ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$selected"
|
||||||
|
$SHELL
|
16
overlays/cd-fzf/default.nix
Normal file
16
overlays/cd-fzf/default.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ stdenv, lib, fetchurl, }:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "cd-fzf";
|
||||||
|
version = "0.0.1";
|
||||||
|
executable = ./cd-fzf;
|
||||||
|
phases = [ "unpackPhase" ]; # Remove all other phases
|
||||||
|
unpackPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp ${executable} $out/bin/cd-fzf
|
||||||
|
'';
|
||||||
|
meta = with lib; {
|
||||||
|
description =
|
||||||
|
"\n Fuzzy find change directory";
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@@ -1,4 +1,4 @@
|
|||||||
final: prev: {
|
final: prev: {
|
||||||
sbx-h6-rgb = prev.callPackage ./sbx-h6-rgb { };
|
cd-fzf = prev.callPackage ./cd-fzf { };
|
||||||
vpngate = prev.callPackage ./vpngate { };
|
vpngate = prev.callPackage ./vpngate { };
|
||||||
}
|
}
|
||||||
|
@@ -1,35 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
fetchFromGitHub,
|
|
||||||
pkgs,
|
|
||||||
stdenv,
|
|
||||||
}:
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
pname = "sbx-h6-rgb";
|
|
||||||
version = "95b4ef9788ef94e557a4d1e815079d5ea8a70943";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "Oscillope";
|
|
||||||
repo = "sbx-h6-rgb";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "sha256-tKKNdzijloBiGBHf5C604824B/BbxBxvCL/ms4orT9M=";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with pkgs; [ hidapi ];
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
make
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -D sbx-h6-ctl $out/bin/sbx-h6-ctl
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Creative SoundBlasterX RGB LED setter.";
|
|
||||||
license = licenses.gpl3;
|
|
||||||
maintainers = with maintainers; [ davegallant ];
|
|
||||||
platforms = platforms.linux;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@@ -22,6 +22,7 @@ in
|
|||||||
|
|
||||||
# modern cli
|
# modern cli
|
||||||
bat
|
bat
|
||||||
|
cd-fzf
|
||||||
doggo
|
doggo
|
||||||
eza
|
eza
|
||||||
fd
|
fd
|
||||||
@@ -34,7 +35,6 @@ in
|
|||||||
shellcheck
|
shellcheck
|
||||||
shfmt
|
shfmt
|
||||||
tldr
|
tldr
|
||||||
tmux-sessionizer
|
|
||||||
atuin
|
atuin
|
||||||
|
|
||||||
github-cli
|
github-cli
|
||||||
|
Reference in New Issue
Block a user