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 = [
./pkgs.nix
./nixgl.nix
# wayland
./hyprlock.nix
./screen.nix
./wayvnc.nix
# From personal
@@ -27,7 +26,6 @@
../natto/dunst.nix
../natto/gtk.nix
../natto/cursor.nix
# wayland
../natto/wayland.nix
../natto/hypridle.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
wget
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";
utility.safeOps = false;
extraConfig = lib.mkBefore ''
export GREP_COLORS="ms=01;31"
export GREP_COLORS="mt=01;31"
'';
};
initContent = lib.mkAfter ''

View File

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

View File

@@ -20,6 +20,7 @@
(fringe-mode 0)
(global-display-line-numbers-mode 1)
(xterm-mouse-mode 1)
(electric-pair-mode)
(setq ring-bell-function 'ignore
gc-cons-threshold most-positive-fixnum
initial-major-mode 'fundamental-mode)
@@ -265,6 +266,8 @@ For autocomplete
** Languages
#+begin_src emacs-lisp
(use-package dts-mode
:mode ("\\.dts\\'" "\\.dtsi\\'" "\\.overlay\\'"))
(use-package lsp-haskell
:mode "\\.hs\\'")
(use-package lsp-latex
@@ -371,8 +374,6 @@ Do not use centaur tabs for now
(use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode))
(use-package flex-autopair)
#+end_src
** Org
@@ -483,15 +484,33 @@ Compilation shortcuts for standalone files
("rs" (concat "rustc " full " -o " file " && " file " && rm " file)))))
#+end_src
* Custom Functions
* LLMs
** gptel
#+begin_src emacs-lisp
(defun detach-process ()
"Run processes but detached from the parent"
(interactive)
(let ((command (read-string "Enter command:")))
(call-process-shell-command (concat command " &") nil 0)))
(use-package gptel
:config
(setq gptel-model 'claude-sonnet-4-20250514
gptel-backend (gptel-make-anthropic "Claude"
: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
** 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
** General
*** Colemak translations

View File

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