Compare commits
5 Commits
539b46393e
...
4a18ae77fc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a18ae77fc | ||
|
|
5ebf3c9c5e | ||
|
|
f4e5628238 | ||
|
|
bf00621b02 | ||
|
|
ec8d9fafdd |
@@ -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
|
||||
|
||||
@@ -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; });
|
||||
}
|
||||
@@ -23,5 +23,7 @@
|
||||
thunderbird
|
||||
wget
|
||||
xfce.thunar
|
||||
libreoffice
|
||||
git-repo
|
||||
];
|
||||
}
|
||||
|
||||
12
home/amneesh/screen.nix
Normal file
12
home/amneesh/screen.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home = {
|
||||
packages = [ pkgs.screen ];
|
||||
|
||||
file = {
|
||||
".screenrc".text = ''
|
||||
defscrollback 10000
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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 ''
|
||||
|
||||
@@ -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) ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
13
home/overlays/standalone.nix
Normal file
13
home/overlays/standalone.nix
Normal 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; };
|
||||
}
|
||||
Reference in New Issue
Block a user