Compare commits

...

5 Commits

Author SHA1 Message Date
Amneesh Singh
4a18ae77fc home: emacs: update config
remove auto flexpair and use electric mode instead
add gptel
add aidermacs

Signed-off-by: Amneesh Singh <amneesh@ti.com>
2025-10-17 17:41:56 +05:30
Amneesh Singh
5ebf3c9c5e home: amneesh: pkgs: add libreoffice and git-repo
Signed-off-by: Amneesh Singh <amneesh@ti.com>
2025-10-17 11:55:12 +05:30
Amneesh Singh
f4e5628238 home: amneesh: use overlay for standalone home-manager
Signed-off-by: Amneesh Singh <amneesh@ti.com>
2025-10-17 11:54:45 +05:30
Amneesh Singh
bf00621b02 home: amneesh: add screen config
Signed-off-by: Amneesh Singh <amneesh@ti.com>
2025-10-17 11:53:28 +05:30
Amneesh Singh
ec8d9fafdd home: common: fix zsh GREP_COLORS
Signed-off-by: Amneesh Singh <amneesh@ti.com>
2025-10-17 11:52:29 +05:30
9 changed files with 66 additions and 39 deletions

View File

@@ -16,8 +16,7 @@
imports = [ imports = [
./pkgs.nix ./pkgs.nix
./nixgl.nix ./nixgl.nix
# wayland ./screen.nix
./hyprlock.nix
./wayvnc.nix ./wayvnc.nix
# From personal # From personal
@@ -27,7 +26,6 @@
../natto/dunst.nix ../natto/dunst.nix
../natto/gtk.nix ../natto/gtk.nix
../natto/cursor.nix ../natto/cursor.nix
# wayland
../natto/wayland.nix ../natto/wayland.nix
../natto/hypridle.nix ../natto/hypridle.nix
../natto/hyprlock.nix ../natto/hyprlock.nix

View File

@@ -1,17 +0,0 @@
{
lib,
pkgs,
...
}:
let
standalonePam = pkgs.linux-pam.overrideAttrs (oa: {
postPatch = ''
substituteInPlace modules/module-meson.build \
--replace "sbindir / 'unix_chkpwd'" "'/usr/bin/unix_chkpwd'"
'';
});
in
{
programs.hyprlock.package = lib.mkForce (pkgs.hyprlock.override { pam = standalonePam; });
}

View File

@@ -23,5 +23,7 @@
thunderbird thunderbird
wget wget
xfce.thunar xfce.thunar
libreoffice
git-repo
]; ];
} }

12
home/amneesh/screen.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
home = {
packages = [ pkgs.screen ];
file = {
".screenrc".text = ''
defscrollback 10000
'';
};
};
}

View File

@@ -17,7 +17,7 @@
autosuggestions.color = "fg=yellow,bold"; autosuggestions.color = "fg=yellow,bold";
utility.safeOps = false; utility.safeOps = false;
extraConfig = lib.mkBefore '' extraConfig = lib.mkBefore ''
export GREP_COLORS="ms=01;31" export GREP_COLORS="mt=01;31"
''; '';
}; };
initContent = lib.mkAfter '' initContent = lib.mkAfter ''

View File

@@ -14,7 +14,7 @@ let
]; ];
mkPkgs = mkPkgs =
system: system: overlays:
import inputs.nixpkgs { import inputs.nixpkgs {
inherit system; inherit system;
config = { config = {
@@ -22,7 +22,7 @@ let
allowBroken = true; allowBroken = true;
allowInsecure = true; allowInsecure = true;
}; };
overlays = [ self.overlays.default ]; overlays = overlays ++ [ self.overlays.default ];
}; };
extraSpecialArgs = globalArgs; extraSpecialArgs = globalArgs;
@@ -37,7 +37,7 @@ in
{ isLaptop = true; } { isLaptop = true; }
] ]
++ common; ++ common;
pkgs = mkPkgs "x86_64-linux"; pkgs = mkPkgs "x86_64-linux" [ ];
}; };
natto = inputs.home-manager.lib.homeManagerConfiguration { natto = inputs.home-manager.lib.homeManagerConfiguration {
@@ -47,7 +47,7 @@ in
./common/fonts ./common/fonts
] ]
++ common; ++ common;
pkgs = mkPkgs "x86_64-linux"; pkgs = mkPkgs "x86_64-linux" [ ];
}; };
spark = inputs.home-manager.lib.homeManagerConfiguration { spark = inputs.home-manager.lib.homeManagerConfiguration {
@@ -62,7 +62,7 @@ in
} }
] ]
++ common; ++ common;
pkgs = mkPkgs "aarch64-linux"; pkgs = mkPkgs "aarch64-linux" [ ];
}; };
bat = inputs.home-manager.lib.homeManagerConfiguration { bat = inputs.home-manager.lib.homeManagerConfiguration {
@@ -77,7 +77,7 @@ in
} }
] ]
++ common; ++ common;
pkgs = mkPkgs "x86_64-linux"; pkgs = mkPkgs "x86_64-linux" [ ];
}; };
spin = inputs.home-manager.lib.homeManagerConfiguration { spin = inputs.home-manager.lib.homeManagerConfiguration {
@@ -92,7 +92,7 @@ in
} }
] ]
++ common; ++ common;
pkgs = mkPkgs "x86_64-linux"; pkgs = mkPkgs "x86_64-linux" [ ];
}; };
kero = inputs.home-manager.lib.homeManagerConfiguration { kero = inputs.home-manager.lib.homeManagerConfiguration {
@@ -107,7 +107,7 @@ in
} }
] ]
++ common; ++ common;
pkgs = mkPkgs "aarch64-linux"; pkgs = mkPkgs "aarch64-linux" [ ];
}; };
amneesh = inputs.home-manager.lib.homeManagerConfiguration { amneesh = inputs.home-manager.lib.homeManagerConfiguration {
@@ -116,7 +116,7 @@ in
./amneesh ./amneesh
] ]
++ common; ++ common;
pkgs = mkPkgs "x86_64-linux"; pkgs = mkPkgs "x86_64-linux" [ (import ./overlays/standalone.nix) ];
}; };
}; };
} }

View File

@@ -20,6 +20,7 @@
(fringe-mode 0) (fringe-mode 0)
(global-display-line-numbers-mode 1) (global-display-line-numbers-mode 1)
(xterm-mouse-mode 1) (xterm-mouse-mode 1)
(electric-pair-mode)
(setq ring-bell-function 'ignore (setq ring-bell-function 'ignore
gc-cons-threshold most-positive-fixnum gc-cons-threshold most-positive-fixnum
initial-major-mode 'fundamental-mode) initial-major-mode 'fundamental-mode)
@@ -265,6 +266,8 @@ For autocomplete
** Languages ** Languages
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package dts-mode
:mode ("\\.dts\\'" "\\.dtsi\\'" "\\.overlay\\'"))
(use-package lsp-haskell (use-package lsp-haskell
:mode "\\.hs\\'") :mode "\\.hs\\'")
(use-package lsp-latex (use-package lsp-latex
@@ -371,8 +374,6 @@ Do not use centaur tabs for now
(use-package rainbow-delimiters (use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode)) :hook (prog-mode . rainbow-delimiters-mode))
(use-package flex-autopair)
#+end_src #+end_src
** Org ** Org
@@ -483,15 +484,33 @@ Compilation shortcuts for standalone files
("rs" (concat "rustc " full " -o " file " && " file " && rm " file))))) ("rs" (concat "rustc " full " -o " file " && " file " && rm " file)))))
#+end_src #+end_src
* Custom Functions * LLMs
** gptel
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun detach-process () (use-package gptel
"Run processes but detached from the parent" :config
(interactive) (setq gptel-model 'claude-sonnet-4-20250514
(let ((command (read-string "Enter command:"))) gptel-backend (gptel-make-anthropic "Claude"
(call-process-shell-command (concat command " &") nil 0))) :stream t
:protocol "https"
:key (getenv "ANTHROPIC_API_KEY")
:host (getenv "ANTHROPIC_API_BASE_DOMAIN")))
(setq gptel-default-mode 'org-mode)
:bind (("C-c g" . gptel)))
#+end_src #+end_src
** Aidermacs
#+begin_src emacs-lisp
(use-package aidermacs
:bind (("C-c a" . aidermacs-transient-menu))
:custom
; See the Configuration section below
(aidermacs-default-chat-mode 'architect)
(aidermacs-default-model "sonnet"))
#+end_src
* Keybinds * Keybinds
** General ** General
*** Colemak translations *** Colemak translations

View File

@@ -8,7 +8,7 @@
font = "Fira Mono:style=Regular:pixelsize=18"; font = "Fira Mono:style=Regular:pixelsize=18";
font-bold = "Fira Mono:style=Bold:pixelsize=18"; font-bold = "Fira Mono:style=Bold:pixelsize=18";
}; };
scrollback.lines = 4000; scrollback.lines = 10000;
colors = with conf.colors.default; { colors = with conf.colors.default; {
inherit foreground background; inherit foreground background;
regular0 = surface1; regular0 = surface1;

View File

@@ -0,0 +1,13 @@
final: prev:
let
pam = prev.pam.overrideAttrs (oa: {
postPatch = ''
substituteInPlace modules/module-meson.build \
--replace "sbindir / 'unix_chkpwd'" "'/usr/bin/unix_chkpwd'"
'';
});
in
{
hyprlock = prev.hyprlock.override { inherit pam; };
swaylock = prev.swaylock.override { inherit pam; };
}