Signed-off-by: Alex Stan <90788596+Ultra980@users.noreply.github.com>
This commit is contained in:
Alex Stan 2024-04-07 23:18:48 +03:00
parent 745e5c60b8
commit f41caae156
3 changed files with 77 additions and 20 deletions

View file

@ -108,6 +108,7 @@ in {
"networkmanager"
"wheel"
"libvirtd"
"dialout"
];
packages = with pkgs; [
wezterm
@ -126,6 +127,12 @@ in {
shell = pkgs.fish;
};
environment.variables = {
__NV_PRIME_RENDER_OFFLOAD = "1";
__VK_LAYER_NV_optimus = "NVIDIA_only";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;

View file

@ -59,10 +59,54 @@
(evil-set-initial-state 'eat-mode 'emacs)
(setq evil-move-beyond-eol t)
(setq eglot-server-programs
(cons '(c-mode) "/home/ultra/.nix-profile/bin/clangd"))
(recentf-mode 1)
(setq recentf-max-menu-items 25)
(setq recentf-max-saved-items 25)
(keymap-global-set "C-x C-r" #'recentf)
(use-package lambda-line
:straight (:type git :host github :repo "lambda-emacs/lambda-line")
:custom
(lambda-line-line-position 'bottom)
(lambda-line-abbrev t)
(lambda-line-hspace " ")
(lambda-line-prefix t)
(lambda-line-prefix-padding nil)
(lambda-line-status-invert nil)
(lambda-line-gui-ro-symbol "") ;; symbols
(lambda-line-gui-mod-symbol "")
(lambda-line-gui-rw-symbol "")
:config
(lambda-line-mode)
(when (eq lambda-line-position 'top)
(setq-default mode-line-format (list "%_"))
(setq mode-line-format (list "%_"))))
;; tab bar
(setq-default tab-bar-show 1)
(tab-bar-mode)
;; doom-modeline
(doom-modeline-mode 1)
(setq doom-modeline-height 15)
;; treesitter
(add-hook 'c-mode-hook (c-ts-mode))
(add-hook 'c++-mode-hook (c++-ts-mode))
;; eglot
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(c-mode "/home/ultra/.nix-profile/bin/clangd")
'(c++-mode "/home/ultra/.nix-profile/bin/clangd")))
(add-hook 'c-mode-hook 'eglot-ensure)
(add-hook 'c-ts-mode-hook 'eglot-ensure)
(add-hook 'c++-ts-mode-hook 'eglot-ensure)
;; which-key
(which-key-setup-minibuffer)
(setq which-key-idle-delay 2000)
(setq which-key-idle-secondary-delay 0.05)
(which-key-mode)

View file

@ -29,23 +29,23 @@ let
(set-face-attribute 'default nil :height 120)
'';*/
extraEmacsPackages = epkgs: with epkgs; [
epkgs.use-package
epkgs.nix-mode
epkgs.slime
epkgs.parinfer-rust-mode
epkgs.sly
# epkgs.spacemacs-theme
epkgs.paredit
epkgs.evil
epkgs.magit
epkgs.org
epkgs.mastodon
epkgs.eshell-z
epkgs.bshell
epkgs.eat
epkgs.gruvbox-theme
epkgs.uwu-theme
epkgs.irony
use-package
nix-mode
slime
parinfer-rust-mode
sly
# spacemacs-theme
paredit
evil
magit
org
mastodon
eshell-z
bshell
eat
gruvbox-theme
uwu-theme
irony
hotfuzz
vertico
marginalia
@ -53,6 +53,10 @@ let
corfu
bind-key
highlight-indent-guides
doom-modeline
which-key
treesit-grammars.with-all-grammars
jabber
];
});
helix = inputs.helix.packages.${pkgs.system}.default;
@ -244,6 +248,8 @@ in {
sbcl
clang-tools
#emacs-package
dino
cinny-desktop
];
file = {
"emacs.d/everblush-theme.el".source = ./configs/emacs/everblush-theme.el;