Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ae9d451f5 | ||
|
|
3feb6d2367
|
||
|
|
41fbb67fc9 | ||
|
|
b15968b004
|
||
|
|
274c39b213 | ||
|
|
2a3c439993
|
||
|
|
a2e9ad6035 | ||
|
|
6fdde12804
|
||
|
|
32291e63bb | ||
|
|
0e681ec0e2
|
||
|
|
0ce944b327 | ||
|
|
046a17374b
|
||
|
|
626015db9f |
Generated
+15
-15
@@ -8,11 +8,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1778716662,
|
"lastModified": 1782949081,
|
||||||
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
|
"narHash": "sha256-vp6Y/Grm98ESt6ceOkWiHWyZRDV3J1RID4w+6NWK9yA=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
|
"rev": "17c9d6cdfc60c64f4ee8d306f9bc0b4ccb51481e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -28,11 +28,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1782522538,
|
"lastModified": 1784546264,
|
||||||
"narHash": "sha256-CvOaUvJ+mXlxU3m2cPWKcOAhtKETsPUYhq+Xa5ewBp4=",
|
"narHash": "sha256-jxVr5EHMYAOkFvS2k0abIvt6NqyshyWmiHHzV17sT2g=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "8d8a6cc50ddc60748791a14ee1163c865ec57635",
|
"rev": "e3dea8e4792b09a6c0eb5836b0284ad05b1acba0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -43,11 +43,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1782467914,
|
"lastModified": 1784497964,
|
||||||
"narHash": "sha256-pGvFkM8N0xEkIIXDe5YYfbEAvHrk4IxBrjB/x8OomhE=",
|
"narHash": "sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e73de5be04e0eff4190a1432b946d469c794e7b4",
|
"rev": "241313f4e8e508cb9b13278c2b0fa25b9ca27163",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -66,11 +66,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1782254890,
|
"lastModified": 1784057377,
|
||||||
"narHash": "sha256-kjsEECqhpPnJWqhooXp6tWh2qGQftCPAo2G1GvZtKdw=",
|
"narHash": "sha256-yycNej5//EsRbV10moBoh+/63vXEwZD1ZFEiRm6C9rQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "dbf9550dba8448b03e11d58e5695d6c44a464554",
|
"rev": "07180a087e4a00720dc0731cbcd8dec796974381",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -86,11 +86,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1782573487,
|
"lastModified": 1784556533,
|
||||||
"narHash": "sha256-7rbPIkOUkfieh00irAjub3j5eEOrPqygl4CF8Fd5YpY=",
|
"narHash": "sha256-tlcP2x7d+ldS3BypTcInqrsOhi6BPuSSTeubfBMmm8Y=",
|
||||||
"owner": "noctalia-dev",
|
"owner": "noctalia-dev",
|
||||||
"repo": "noctalia-shell",
|
"repo": "noctalia-shell",
|
||||||
"rev": "3b93fcff890da32b485e82ad72244b56d31cb326",
|
"rev": "815635cf7dc810616c9e6ecf4b9b4f4c54e69905",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -1,60 +1,129 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
# Powerline separators, U+E0B0..U+E0B3.
|
||||||
|
#
|
||||||
|
# Written as escapes rather than literal glyphs. These are Private Use Area
|
||||||
|
# codepoints: they render only with a patched font, they survive copy/paste
|
||||||
|
# badly, and when they get stripped the loss is invisible -- the config still
|
||||||
|
# parses, the status bar just quietly loses its separators. Nix has no \u
|
||||||
|
# escape of its own, but fromJSON does.
|
||||||
|
sep = builtins.fromJSON ''
|
||||||
|
{
|
||||||
|
"right": "\ue0b0",
|
||||||
|
"rightThin": "\ue0b1",
|
||||||
|
"left": "\ue0b2",
|
||||||
|
"leftThin": "\ue0b3"
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
prefix = "C-a";
|
prefix = "C-a";
|
||||||
keyMode = "vi";
|
keyMode = "vi";
|
||||||
mouse = true;
|
mouse = true;
|
||||||
terminal = "screen-256color";
|
|
||||||
|
# tmux-256color gives truecolor, italics and undercurl in nvim.
|
||||||
|
# screen-256color has none of them. No terminfo gymnastics needed here --
|
||||||
|
# unlike macOS, NixOS ships a current ncurses that has the entry.
|
||||||
|
terminal = "tmux-256color";
|
||||||
|
|
||||||
|
# Default is 500ms. That is the lag you feel leaving insert mode in nvim,
|
||||||
|
# because tmux is waiting to see whether Esc starts an escape sequence.
|
||||||
|
escapeTime = 10;
|
||||||
|
|
||||||
|
# nvim autoread / :checktime react to focus. home-manager defaults to false.
|
||||||
|
focusEvents = true;
|
||||||
|
|
||||||
|
# Default is 2000.
|
||||||
|
historyLimit = 50000;
|
||||||
|
|
||||||
|
# Window numbers matching the number row. Behaviour change, so opt in.
|
||||||
|
# baseIndex = 1;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# Status keys
|
# Status keys
|
||||||
set -g status-keys vi
|
set -g status-keys vi
|
||||||
|
|
||||||
|
# Tell tmux the outer terminal can do 24-bit colour (tmux >= 3.2).
|
||||||
|
set -sa terminal-features ",*:RGB"
|
||||||
|
|
||||||
|
# --- Shift+Enter / extended keys -----------------------------------
|
||||||
|
# Still the open topic; uncommenting these makes tmux forward CSI-u
|
||||||
|
# sequences unconditionally. Needs tmux >= 3.5 for the format option,
|
||||||
|
# and a `tmux kill-server` afterwards -- a config reload is not enough.
|
||||||
|
#set -s extended-keys always
|
||||||
|
#set -s extended-keys-format csi-u
|
||||||
|
#set -as terminal-features '*:extkeys'
|
||||||
|
|
||||||
# Status bar options
|
# Status bar options
|
||||||
set -g status-interval 1
|
set -g status-interval 5 # was 1; the clock only has minute resolution
|
||||||
set -g status on
|
|
||||||
set -g status-justify left
|
set -g status-justify left
|
||||||
|
|
||||||
# Clock mode
|
# Clock mode
|
||||||
setw -g clock-mode-colour cyan
|
setw -g clock-mode-colour cyan
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
set -g status-bg black
|
set -g status-bg black
|
||||||
set -g status-fg white
|
set -g status-fg white
|
||||||
|
|
||||||
# Key bindings
|
# Key bindings
|
||||||
# Reload configuration
|
# Reload configuration. tmux.conf is a read-only symlink into the nix
|
||||||
bind r source-file ~/.config/tmux/tmux.conf
|
# store, so this only picks up changes after `home-manager switch`.
|
||||||
# Panel split and selection
|
bind r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf reloaded"
|
||||||
|
|
||||||
|
# Panel split and selection -- new panes/windows inherit the cwd
|
||||||
unbind %
|
unbind %
|
||||||
unbind '"'
|
unbind '"'
|
||||||
bind v split-window -v
|
bind v split-window -v -c "#{pane_current_path}"
|
||||||
bind c split-window -h
|
bind c split-window -h -c "#{pane_current_path}"
|
||||||
bind i new-window
|
bind i new-window -c "#{pane_current_path}"
|
||||||
bind b previous-window
|
bind -r b previous-window
|
||||||
bind n next-window
|
bind -r n next-window
|
||||||
|
|
||||||
# Move around panes with hjkl
|
# Move around panes with hjkl
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
bind j select-pane -D
|
bind j select-pane -D
|
||||||
bind k select-pane -U
|
bind k select-pane -U
|
||||||
bind l select-pane -R
|
bind l select-pane -R
|
||||||
# Resize panes
|
|
||||||
bind H resize-pane -L 5
|
# Resize panes -- -r makes them repeatable, hold instead of re-prefixing
|
||||||
bind J resize-pane -D 5
|
bind -r H resize-pane -L 5
|
||||||
bind K resize-pane -U 5
|
bind -r J resize-pane -D 5
|
||||||
bind L resize-pane -R 5
|
bind -r K resize-pane -U 5
|
||||||
|
bind -r L resize-pane -R 5
|
||||||
|
|
||||||
# Wayland clipboard integration
|
# Wayland clipboard integration
|
||||||
# Copy selection to both clipboard (Ctrl+V / Shift+Insert) and primary (middle-click)
|
# Copy selection to both clipboard (Ctrl+V / Shift+Insert) and primary (middle-click)
|
||||||
|
# v/C-v added: you had no way to *start* a selection from the keyboard.
|
||||||
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||||
|
bind -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy && wl-copy --primary"
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy && wl-copy --primary"
|
||||||
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "wl-copy && wl-copy --primary"
|
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "wl-copy && wl-copy --primary"
|
||||||
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy && wl-copy --primary"
|
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy && wl-copy --primary"
|
||||||
|
# Uncomment if you want yanks to also travel over SSH via OSC52.
|
||||||
|
# Locally redundant with wl-copy above.
|
||||||
|
#set -g set-clipboard on
|
||||||
|
|
||||||
# Kill commands
|
# Kill commands
|
||||||
bind q kill-window
|
# Drop the `confirm-before -p "..."` part for the old single keystroke.
|
||||||
bind Q kill-session
|
bind q confirm-before -p "kill window #W? (y/n)" kill-window
|
||||||
|
bind Q confirm-before -p "kill session #S? (y/n)" kill-session
|
||||||
|
|
||||||
# Bars
|
# Bars
|
||||||
|
# This is the nord-tmux status line. #{prefix_highlight} came from that
|
||||||
|
# theme's tmux-prefix-highlight integration -- a plugin you never loaded,
|
||||||
|
# so the token expanded to nothing. tmux can do it natively. Commas inside
|
||||||
|
# #{?...} are argument separators and have to be escaped as #, hence the
|
||||||
|
# look of the style spec.
|
||||||
set -g status-left-length 24
|
set -g status-left-length 24
|
||||||
set -g status-left "#[fg=black,bg=blue,bold] #{=20:session_name} #[fg=blue,bg=black,nobold,noitalics,nounderscore]"
|
set -g status-left "#[fg=black,bg=blue,bold] #{=20:session_name} #[fg=blue,bg=black,nobold,noitalics,nounderscore]${sep.right}"
|
||||||
set -g status-right "#{prefix_highlight}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] %Y-%m-%d #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] %H:%M #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]#[fg=black,bg=cyan,bold] #H "
|
set -g status-right "#{?client_prefix,#[fg=black#,bg=yellow#,bold] ^A ,}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]${sep.left}#[fg=white,bg=brightblack] %Y-%m-%d #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]${sep.leftThin}#[fg=white,bg=brightblack] %H:%M #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]${sep.left}#[fg=black,bg=cyan,bold] #H "
|
||||||
|
|
||||||
# Windows
|
# Windows
|
||||||
set -g window-status-format "#[fg=black,bg=brightblack,nobold,noitalics,nounderscore] #[fg=white,bg=brightblack]#I #[fg=white,bg=brightblack,nobold,noitalics,nounderscore] #[fg=white,bg=brightblack]#W #F #[fg=brightblack,bg=black,nobold,noitalics,nounderscore]"
|
set -g window-status-format "#[fg=black,bg=brightblack,nobold,noitalics,nounderscore]${sep.right} #[fg=white,bg=brightblack]#I #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]${sep.rightThin} #[fg=white,bg=brightblack]#W #F #[fg=brightblack,bg=black,nobold,noitalics,nounderscore]${sep.right}"
|
||||||
set -g window-status-current-format "#[fg=black,bg=cyan,nobold,noitalics,nounderscore] #[fg=black,bg=cyan]#I #[fg=black,bg=cyan,nobold,noitalics,nounderscore] #[fg=black,bg=cyan]#W #F #[fg=cyan,bg=black,nobold,noitalics,nounderscore]"
|
set -g window-status-current-format "#[fg=black,bg=cyan,nobold,noitalics,nounderscore]${sep.right} #[fg=black,bg=cyan]#I #[fg=black,bg=cyan,nobold,noitalics,nounderscore]${sep.rightThin} #[fg=black,bg=cyan]#W #F #[fg=cyan,bg=black,nobold,noitalics,nounderscore]${sep.right}"
|
||||||
set -g window-status-separator ""
|
set -g window-status-separator ""
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# kernel options
|
# kernel options
|
||||||
boot.kernelParams = [ "quiet" "acpi.debug_level=0"];
|
boot.kernelParams = [ "quiet" "acpi.debug_level=0" ];
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
boot.consoleLogLevel = 2;
|
boot.consoleLogLevel = 2;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user