mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-22 05:43:11 +02:00
meow
Signed-off-by: Alex Stan <90788596+Ultra980@users.noreply.github.com>
This commit is contained in:
parent
745e5c60b8
commit
f41caae156
3 changed files with 77 additions and 20 deletions
|
@ -108,6 +108,7 @@ in {
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
"libvirtd"
|
"libvirtd"
|
||||||
|
"dialout"
|
||||||
];
|
];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
wezterm
|
wezterm
|
||||||
|
@ -126,6 +127,12 @@ in {
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
__NV_PRIME_RENDER_OFFLOAD = "1";
|
||||||
|
__VK_LAYER_NV_optimus = "NVIDIA_only";
|
||||||
|
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||||
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
|
|
@ -59,10 +59,54 @@
|
||||||
(evil-set-initial-state 'eat-mode 'emacs)
|
(evil-set-initial-state 'eat-mode 'emacs)
|
||||||
(setq evil-move-beyond-eol t)
|
(setq evil-move-beyond-eol t)
|
||||||
|
|
||||||
(setq eglot-server-programs
|
|
||||||
(cons '(c-mode) "/home/ultra/.nix-profile/bin/clangd"))
|
|
||||||
|
|
||||||
(recentf-mode 1)
|
(recentf-mode 1)
|
||||||
(setq recentf-max-menu-items 25)
|
(setq recentf-max-menu-items 25)
|
||||||
(setq recentf-max-saved-items 25)
|
(setq recentf-max-saved-items 25)
|
||||||
(keymap-global-set "C-x C-r" #'recentf)
|
(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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -29,23 +29,23 @@ let
|
||||||
(set-face-attribute 'default nil :height 120)
|
(set-face-attribute 'default nil :height 120)
|
||||||
'';*/
|
'';*/
|
||||||
extraEmacsPackages = epkgs: with epkgs; [
|
extraEmacsPackages = epkgs: with epkgs; [
|
||||||
epkgs.use-package
|
use-package
|
||||||
epkgs.nix-mode
|
nix-mode
|
||||||
epkgs.slime
|
slime
|
||||||
epkgs.parinfer-rust-mode
|
parinfer-rust-mode
|
||||||
epkgs.sly
|
sly
|
||||||
# epkgs.spacemacs-theme
|
# spacemacs-theme
|
||||||
epkgs.paredit
|
paredit
|
||||||
epkgs.evil
|
evil
|
||||||
epkgs.magit
|
magit
|
||||||
epkgs.org
|
org
|
||||||
epkgs.mastodon
|
mastodon
|
||||||
epkgs.eshell-z
|
eshell-z
|
||||||
epkgs.bshell
|
bshell
|
||||||
epkgs.eat
|
eat
|
||||||
epkgs.gruvbox-theme
|
gruvbox-theme
|
||||||
epkgs.uwu-theme
|
uwu-theme
|
||||||
epkgs.irony
|
irony
|
||||||
hotfuzz
|
hotfuzz
|
||||||
vertico
|
vertico
|
||||||
marginalia
|
marginalia
|
||||||
|
@ -53,6 +53,10 @@ let
|
||||||
corfu
|
corfu
|
||||||
bind-key
|
bind-key
|
||||||
highlight-indent-guides
|
highlight-indent-guides
|
||||||
|
doom-modeline
|
||||||
|
which-key
|
||||||
|
treesit-grammars.with-all-grammars
|
||||||
|
jabber
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
helix = inputs.helix.packages.${pkgs.system}.default;
|
helix = inputs.helix.packages.${pkgs.system}.default;
|
||||||
|
@ -244,6 +248,8 @@ in {
|
||||||
sbcl
|
sbcl
|
||||||
clang-tools
|
clang-tools
|
||||||
#emacs-package
|
#emacs-package
|
||||||
|
dino
|
||||||
|
cinny-desktop
|
||||||
];
|
];
|
||||||
file = {
|
file = {
|
||||||
"emacs.d/everblush-theme.el".source = ./configs/emacs/everblush-theme.el;
|
"emacs.d/everblush-theme.el".source = ./configs/emacs/everblush-theme.el;
|
||||||
|
|
Loading…
Reference in a new issue