aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-02-01 15:17:32 +0530
committerAkshay Nair <phenax5@gmail.com>2026-02-01 15:17:32 +0530
commit1d0c01a06c33b2d0dd869cb8b203574b1d149c0a (patch)
tree755c72e22020bafc82eb4240fd3568664374818f
parent7bdc3fe961cee0c195e6f9e969ed8c947faf6305 (diff)
downloadnixos-config-1d0c01a06c33b2d0dd869cb8b203574b1d149c0a.tar.gz
nixos-config-1d0c01a06c33b2d0dd869cb8b203574b1d149c0a.zip
Clipmenu setup
-rw-r--r--config/zsh/aliases/git.zsh10
-rw-r--r--config/zsh/zshrc2
-rw-r--r--configuration.nix26
-rw-r--r--packages.nix9
m---------packages/shotkey/source0
5 files changed, 39 insertions, 8 deletions
diff --git a/config/zsh/aliases/git.zsh b/config/zsh/aliases/git.zsh
index 9611a16..f85ff22 100644
--- a/config/zsh/aliases/git.zsh
+++ b/config/zsh/aliases/git.zsh
@@ -108,3 +108,13 @@ ghpr() {
xdg-open "$(gh pr view --json url -q .url)"
}
+# rename a git branch interactively
+gbrn() {
+ branch=$(git rev-parse --abbrev-ref HEAD);
+ tmp=$(mktemp -u /tmp/__git_branch_rename.XXXX);
+ trap "rm -rf $tmp" EXIT;
+ echo -n "$branch" > "$tmp";
+ $EDITOR "$tmp";
+ new_branch="$(cat $tmp)"
+ [ -z "$new_branch" ] || git branch -m "$new_branch";
+}
diff --git a/config/zsh/zshrc b/config/zsh/zshrc
index 806697d..0f73495 100644
--- a/config/zsh/zshrc
+++ b/config/zsh/zshrc
@@ -3,7 +3,7 @@ setopt auto_cd;
setopt inc_append_history;
export LESS="-R --chop-long-lines" # less no wrapping
-export MANPAGER="nvim +Man\!" # man pager with nvim
+# export MANPAGER="nvim +Man\!" # man pager with nvim
export SAVEHIST=10000
# export HISTSIZE=50000
diff --git a/configuration.nix b/configuration.nix
index e2e54a6..7f94e62 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ pkgs, lib, ... }:
{
imports = [
@@ -15,7 +15,7 @@
./modules/sound
./modules/notifications
./modules/kakoune
- ./modules/ai
+ # ./modules/ai
];
nixpkgs.config = {
@@ -23,6 +23,14 @@
allowBroken = false;
};
+ services.clipmenu = {
+ enable = true;
+ };
+ systemd.user.services.clipmenu = {
+ wantedBy = lib.mkForce [ "default.target" ];
+ after = lib.mkForce [ "default.target" ];
+ };
+
services.udisks2.enable = true;
programs.dconf.enable = true;
@@ -49,8 +57,17 @@
hostName = "smartfridge";
firewall = {
enable = true;
- allowedTCPPorts = [ 3000 3001 80 443 ];
- allowedUDPPorts = [ 41641 80 443 ];
+ allowedTCPPorts = [
+ 8081
+ 3000
+ 3001
+ 22000 # Syncthing
+ ];
+ allowedUDPPorts = [
+ 41641 # Tailscale
+ 22000 # Syncthing
+ 21027 # Syncthing (discovery)
+ ];
};
nameservers = [ "100.100.100.100" "1.1.1.1" "8.8.8.8" ];
search = [ "resolve.construction" ];
@@ -115,6 +132,7 @@
};
};
fonts.packages = with pkgs; [
+ # nerd-fonts._3270
nerd-fonts.jetbrains-mono
cozette
noto-fonts-color-emoji
diff --git a/packages.nix b/packages.nix
index 6681561..f55bf7c 100644
--- a/packages.nix
+++ b/packages.nix
@@ -28,7 +28,6 @@ let
# gh
just
difftastic
- gemini-cli
yq-go
babashka
# hurl
@@ -43,8 +42,10 @@ let
# bspwm
# sxhkd
+ android-tools
nixd
+ nixfmt
lua-language-server
((fennel-ls.override { lua = lua5_1; luaPackages = lua51Packages; }).overrideAttrs (self: {
version = "0.2.2";
@@ -94,6 +95,8 @@ let
# xonotic
# openarena
# chiaki # PS remote play
+ # rpcs3
+ # rusty-psn
remind
dunst
@@ -152,6 +155,7 @@ let
# url = "https://github.com/NixOS/nixpkgs/archive/21808d22b1cda1898b71cf1a1beb524a97add2c4.tar.gz";
# }
# ) {}).wineWowPackages.stable
+ wineWowPackages.stable
# X stuff
picom
@@ -174,6 +178,7 @@ let
libdrm
pkg-config
+ fatsort
lsof
virt-manager
virt-viewer
@@ -199,8 +204,6 @@ in
# CURL_DIR = lib.makeLibraryPath [pkgs.curl];
# };
- programs.adb.enable = true;
-
programs.steam.enable = true;
hardware.steam-hardware.enable = true;
programs.gamemode.enable = true;
diff --git a/packages/shotkey/source b/packages/shotkey/source
-Subproject dfdf18b5ac8dc0b2568bed2456c47acc823bceb
+Subproject 3171811effe9bbf01d920effd6ba41227bdb48b