flutter shell u. emacs

This commit is contained in:
Nico
2024-11-10 16:53:41 +01:00
parent 2d73f4c713
commit 740c47e610
153 changed files with 5857 additions and 219 deletions

View File

@@ -2,11 +2,13 @@
{
imports = [
# ./ags
./other
./sway
./waybar
./wpaperd
./nvim
./emacs
# ./kitty
./kitty
# ./hyprland
# ./vscode
];

View File

@@ -10,13 +10,30 @@ in {
(global-display-line-numbers-mode 1)
(telephone-line-mode 1)
(setq evil-want-C-u-scroll t)
(menu-bar-mode -1)
(require 'which-key)
(which-key-mode)
(require 'evil-god-state)
(evil-define-key 'normal global-map "," 'evil-execute-in-god-state)
(which-key-enable-god-mode-support)
(require 'nix-mode)
(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode))
(require 'evil)
(evil-mode 1)
(global-flycheck-mode 1)
(evil-define-key 'god global-map [escape] 'evil-god-state-bail)
(require 'smex)
(smex-initialize)
@@ -26,7 +43,6 @@ in {
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
(add-hook 'dart-mode-hook 'lsp)
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
(setq gc-cons-threshold (* 100 1024 1024)
@@ -44,8 +60,6 @@ in {
++ (with epkgs.melpaPackages; [
evil
nix-mode
dart-mode
lsp-dart
lsp-treemacs
flycheck
lsp-mode
@@ -56,6 +70,9 @@ in {
telephone-line
smex
ranger
evil-god-state
which-key
magit
])
++ (with epkgs.elpaPackages; [
undo-tree
@@ -64,3 +81,4 @@ in {
};
}

View File

@@ -7,14 +7,51 @@ in {
enable = true;
extraConfig = ''
(load-theme 'catppuccin :no-confirm)
(global-display-line-numbers-mode 1)
(telephone-line-mode 1)
(menu-bar-mode -1)
(require 'which-key)
(which-key-mode)
(require 'evil-god-state)
(evil-define-key 'normal global-map "," 'evil-execute-in-god-state)
(which-key-enable-god-mode-support)
(require 'nix-mode)
(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode))
(setq evil-want-C-u-scroll t)
(require 'evil)
(evil-mode 1)
(global-flycheck-mode 1)
(evil-define-key 'god global-map [escape] 'evil-god-state-bail)
(require 'smex)
(smex-initialize)
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
;; This is your old M-x.
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode)
(setq gc-cons-threshold (* 100 1024 1024)
read-process-output-max (* 1024 1024))
;;Exit insert mode by pressing j and then k quickly
(setq key-chord-two-keys-delay 0.5)
(key-chord-define evil-insert-state-map "jk" 'evil-normal-state)
(key-chord-mode 1)
'';
package = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
catppuccin-theme
@@ -22,11 +59,25 @@ in {
++ (with epkgs.melpaPackages; [
evil
nix-mode
lsp-treemacs
flycheck
lsp-mode
company
rainbow-delimiters
undo-fu
key-chord
telephone-line
smex
ranger
evil-god-state
which-key
magit
])
++ (with epkgs.elpaPackages; [
undo-tree
])
++ [ pkgs.notmuch ]);
};
}

View File

@@ -5,10 +5,133 @@
];
home.file =
lib.mkMerge [
{
".config/kitty/kitty.conf".source = ./kitty.conf;
}
];
programs.starship = {
enable = true;
settings = {
};
};
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initExtra = ''
eval "$(starship init zsh)"
'';
shellAliases = {
update = "sudo nixos-rebuild switch --flake /etc/nixos/#my-nixos";
emacs = "emacs -nw";
femacs = "emacs -nw --load /home/n/Documents/Shells/flutter/init.el";
pemacs = "emacs -nw --load /home/n/Documents/Shells//python/init.el";
};
zplug = {
enable = true;
plugins = [
{ name = "zsh-users/zsh-autosuggestions"; } # Simple plugin installation
];
};
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "agnoster";
};
};
programs.kitty = {
enable = true;
extraConfig = ''
# vim:ft=kitty
## name: Catppuccin Kitty Mocha
## author: Catppuccin Org
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #cdd6f4
background #1e1e2e
selection_foreground #1e1e2e
selection_background #f5e0dc
# Cursor colors
cursor #f5e0dc
cursor_text_color #1e1e2e
# URL underline color when hovering with mouse
url_color #f5e0dc
# Kitty window border colors
active_border_color #b4befe
inactive_border_color #6c7086
bell_border_color #f9e2af
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #11111b
active_tab_background #cba6f7
inactive_tab_foreground #cdd6f4
inactive_tab_background #181825
tab_bar_background #11111b
# Colors for marks (marked text in the terminal)
mark1_foreground #1e1e2e
mark1_background #b4befe
mark2_foreground #1e1e2e
mark2_background #cba6f7
mark3_foreground #1e1e2e
mark3_background #74c7ec
# The 16 terminal colors
# black
color0 #45475a
color8 #585b70
# red
color1 #f38ba8
color9 #f38ba8
# green
color2 #a6e3a1
color10 #a6e3a1
# yellow
color3 #f9e2af
color11 #f9e2af
# blue
color4 #89b4fa
color12 #89b4fa
# magenta
color5 #f5c2e7
color13 #f5c2e7
# cyan
color6 #94e2d5
color14 #94e2d5
# white
color7 #bac2de
color15 #a6adc8
'';
};
}

View File

@@ -5,6 +5,12 @@
];
programs.neovim = {
enable = true;
vimAlias = true;
};
programs.neovim.plugins = [
pkgs.vimPlugins.lazy-nvim
];

View File

@@ -0,0 +1,33 @@
{ pkgs, config, lib,... }:
{
home.packages = with pkgs; [
];
programs.ranger = {
enable = true;
extraConfig = ''
set preview_images true
set preview_images_method kitty
'';
};
programs.git = {
enable = true;
userName = "Nico";
userEmail = "nicovessen@gmail.com";
extraConfig = {
safe.directory = "/etc/nixos";
};
};
services.kdeconnect = {
enable = true;
indicator = true;
};
}

55
packages/sway/default.nix Normal file
View File

@@ -0,0 +1,55 @@
{ config, pkgs, inputs, ... }:
{
wayland.windowManager.sway = {
enable = true;
config = rec {
modifier = "Mod4";
# Use kitty as default terminal
terminal = "kitty";
bars = [
{command = "waybar";}
];
startup = [
# Launch Firefox on start
{command = "wpaperd";}
];
};
extraConfig = ''
## Input configuration
input "type:keyboard" {
xkb_layout de
xkb_variant "nodeadkeys"
}
input "type:touchpad" {
tap enabled # enables click-on-tap
tap_button_map lrm # tap with 1 finger = left click, 2 fingers = right click, 3 fingers = middle click
dwt disabled # disable (touchpad) while typing
dwtp disabled # disable (touchpad) while track pointing
}
# Brightness
bindsym XF86MonBrightnessDown exec light -U 10
bindsym XF86MonBrightnessUp exec light -A 10
# Volume
bindsym XF86AudioRaiseVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ +1%'
bindsym XF86AudioLowerVolume exec 'pactl set-sink-volume @DEFAULT_SINK@ -1%'
bindsym XF86AudioMute exec 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
# app launcher
bindsym Mod4+m exec 'kickoff'
bindsym Mod4+BackSpace kill
# disable window border
default_border pixel 2
font pango:monospace 0.001
titlebar_padding 1
titlebar_border_thickness 0
'';
};
}