Compare commits
13 Commits
th3r00t-pa
...
2d2799ebdf
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d2799ebdf | |||
| 761525421d | |||
| 1564a9f1ec | |||
| 2e2d7f679b | |||
| 9ac155a7e2 | |||
| e31d00c7bf | |||
| 14bdf543be | |||
| ac5652f1ca | |||
| 7aa0e7334b | |||
| b566e93b18 | |||
| a906bcce3d | |||
| 16b1ad9724 | |||
| 8e9b4c3a66 |
17
flake.lock
generated
17
flake.lock
generated
@@ -240,6 +240,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-hardware": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1755330281,
|
||||||
|
"narHash": "sha256-aJHFJWP9AuI8jUGzI77LYcSlkA9wJnOIg4ZqftwNGXA=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"rev": "3dac8a872557e0ca8c083cdcfc2f218d18e113b0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1752596105,
|
"lastModified": 1752596105,
|
||||||
@@ -294,6 +310,7 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
"neovim-nightly-overlay": "neovim-nightly-overlay",
|
||||||
"nix-index-database": "nix-index-database",
|
"nix-index-database": "nix-index-database",
|
||||||
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"sops-nix": "sops-nix"
|
"sops-nix": "sops-nix"
|
||||||
}
|
}
|
||||||
|
|||||||
18
flake.nix
18
flake.nix
@@ -13,8 +13,13 @@
|
|||||||
disko.url = "github:nix-community/disko";
|
disko.url = "github:nix-community/disko";
|
||||||
sops-nix.url = "github:Mic92/sops-nix";
|
sops-nix.url = "github:Mic92/sops-nix";
|
||||||
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, home-manager, nix-index-database, sops-nix, disko, ... }@inputs:
|
outputs = {
|
||||||
|
self, nixpkgs, home-manager, nix-index-database, sops-nix, disko,
|
||||||
|
nixos-hardware, ...
|
||||||
|
}@inputs:
|
||||||
let
|
let
|
||||||
overlays = [
|
overlays = [
|
||||||
inputs.neovim-nightly-overlay.overlays.default
|
inputs.neovim-nightly-overlay.overlays.default
|
||||||
@@ -35,7 +40,9 @@
|
|||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs.overlays = overlays; }
|
{ nixpkgs.overlays = overlays; }
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
./xps13-hardware-configuration.nix.nix
|
./modules/configuration-xps13.nix
|
||||||
|
./modules/hardware-configuration-xps13.nix
|
||||||
|
nixos-hardware.nixosModules.dell-xps-13-9370
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
# home-manager.useGlobalPkgs = true;
|
# home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
@@ -46,20 +53,19 @@
|
|||||||
nix-index-database.homeModules.nix-index
|
nix-index-database.homeModules.nix-index
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# home-manager.users.th3r00t = import ./home.nix;
|
|
||||||
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
# Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nixosConfigurations.server = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.Titan = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = { inherit overlays; };
|
specialArgs = { inherit overlays; };
|
||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs.overlays = overlays; }
|
{ nixpkgs.overlays = overlays; }
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
sops-nix.nixosModules.sops
|
sops-nix.nixosModules.sops
|
||||||
./hardware-configuration.nix
|
./modules/hardware-configuration.nix
|
||||||
./configuration-server.nix
|
./modules/configuration-server.nix
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
# home-manager.useGlobalPkgs = true;
|
# home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
home.file.".config/nvim" = {
|
home.file.".config/nvim" = {
|
||||||
source = ./home/config/nvim;
|
source = ./home/.config/nvim;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
@@ -38,67 +38,6 @@
|
|||||||
PLATFORMTHEME = "kde";
|
PLATFORMTHEME = "kde";
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
autossh
|
|
||||||
fastfetch
|
|
||||||
ranger
|
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
xz
|
|
||||||
p7zip
|
|
||||||
ripgrep
|
|
||||||
jq
|
|
||||||
ripgrep
|
|
||||||
eza
|
|
||||||
fzf
|
|
||||||
tmux
|
|
||||||
cowsay
|
|
||||||
lolcat
|
|
||||||
fortune
|
|
||||||
gnused
|
|
||||||
gnutar
|
|
||||||
gnupg
|
|
||||||
hugo
|
|
||||||
bat
|
|
||||||
which
|
|
||||||
nix-output-monitor
|
|
||||||
devenv
|
|
||||||
irssi
|
|
||||||
luarocks
|
|
||||||
lua5_1
|
|
||||||
lua-language-server
|
|
||||||
go
|
|
||||||
nodejs
|
|
||||||
uv
|
|
||||||
readline
|
|
||||||
cachix
|
|
||||||
sqlite
|
|
||||||
vifm-full
|
|
||||||
ranger
|
|
||||||
zoxide
|
|
||||||
(
|
|
||||||
python313.withPackages (
|
|
||||||
python-pkgs:
|
|
||||||
[
|
|
||||||
python-pkgs.prompt_toolkit
|
|
||||||
python-pkgs.pygments
|
|
||||||
python-pkgs.pynvim
|
|
||||||
python-pkgs.pudb
|
|
||||||
python-pkgs.ptpython
|
|
||||||
python-pkgs.ipython
|
|
||||||
]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
neovim
|
|
||||||
zig
|
|
||||||
syncthing
|
|
||||||
lazygit
|
|
||||||
wofi
|
|
||||||
gopls
|
|
||||||
pyright
|
|
||||||
ncurses
|
|
||||||
rustup
|
|
||||||
wayvnc
|
|
||||||
gvfs
|
|
||||||
];
|
];
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|||||||
103
home-xps13.nix
103
home-xps13.nix
@@ -13,7 +13,7 @@
|
|||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
home.file.".config/nvim" = {
|
home.file.".config/nvim" = {
|
||||||
source = ./home/config/nvim;
|
source = ./home/.config/nvim;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
@@ -23,17 +23,17 @@
|
|||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
home.file.".config/dosbox-x" = {
|
home.file.".config/dosbox-x" = {
|
||||||
source = ./home/config/dosbox-x;
|
source = ./home/.config/dosbox-x;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
home.file.".config/waybar/power_menu.xml" = {
|
home.file.".config/waybar/power_menu.xml" = {
|
||||||
source = ./home/config/waybar/power_menu.xml;
|
source = ./home/.config/waybar/power_menu.xml;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
home.file.".config/qutebrowser/blocked-hosts" = {
|
home.file.".config/qutebrowser/blocked-hosts" = {
|
||||||
source = ./home/config/qutebrowser/blocked-hosts;
|
source = ./home/.config/qutebrowser/blocked-hosts;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
@@ -53,86 +53,59 @@
|
|||||||
PLATFORMTHEME = "kde";
|
PLATFORMTHEME = "kde";
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
autossh
|
|
||||||
mesa-demos
|
mesa-demos
|
||||||
bluez
|
bluez
|
||||||
bluez-tools
|
bluez-tools
|
||||||
bluez-alsa
|
bluez-alsa
|
||||||
fastfetch
|
|
||||||
ranger
|
|
||||||
kdePackages.dolphin
|
kdePackages.dolphin
|
||||||
zip
|
|
||||||
unzip
|
|
||||||
xz
|
|
||||||
p7zip
|
|
||||||
ripgrep
|
|
||||||
jq
|
|
||||||
ripgrep
|
|
||||||
eza
|
|
||||||
fzf
|
|
||||||
tmux
|
|
||||||
cowsay
|
|
||||||
lolcat
|
|
||||||
fortune
|
|
||||||
gnused
|
|
||||||
gnutar
|
|
||||||
gnupg
|
|
||||||
hugo
|
|
||||||
bat
|
|
||||||
which
|
|
||||||
nix-output-monitor
|
|
||||||
devenv
|
|
||||||
irssi
|
|
||||||
luarocks
|
|
||||||
lua5_1
|
|
||||||
gimp
|
gimp
|
||||||
lua-language-server
|
|
||||||
go
|
|
||||||
nodejs
|
|
||||||
uv
|
|
||||||
readline
|
|
||||||
cachix
|
|
||||||
sqlite
|
|
||||||
rofi
|
rofi
|
||||||
qutebrowser
|
qutebrowser
|
||||||
foot
|
foot
|
||||||
vifm-full
|
|
||||||
ranger
|
|
||||||
zoxide
|
|
||||||
hyprsysteminfo
|
hyprsysteminfo
|
||||||
(
|
|
||||||
python313.withPackages (
|
|
||||||
python-pkgs:
|
|
||||||
[
|
|
||||||
python-pkgs.prompt_toolkit
|
|
||||||
python-pkgs.pygments
|
|
||||||
python-pkgs.pynvim
|
|
||||||
python-pkgs.pudb
|
|
||||||
python-pkgs.ptpython
|
|
||||||
python-pkgs.ipython
|
|
||||||
]
|
|
||||||
)
|
|
||||||
)
|
|
||||||
neovim
|
|
||||||
zig
|
|
||||||
nodejs
|
|
||||||
go
|
|
||||||
syncthing
|
|
||||||
dosbox-x
|
dosbox-x
|
||||||
lazygit
|
|
||||||
wofi
|
wofi
|
||||||
qutebrowser
|
qutebrowser
|
||||||
waybar
|
waybar
|
||||||
uwsm
|
uwsm
|
||||||
gopls
|
|
||||||
pyright
|
|
||||||
ncurses
|
|
||||||
rustup
|
|
||||||
wayvnc
|
|
||||||
power-profiles-daemon
|
power-profiles-daemon
|
||||||
wpa_supplicant_gui
|
wpa_supplicant_gui
|
||||||
gvfs
|
gvfs
|
||||||
|
nemo-with-extensions
|
||||||
|
wayvnc
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
|
exfatprogs
|
||||||
|
neovide
|
||||||
];
|
];
|
||||||
|
services.udiskie = {
|
||||||
|
enable = false;
|
||||||
|
settings = {
|
||||||
|
program_options = {
|
||||||
|
file_manager = "${pkgs.nemo-with-extensions}/bin/nemo";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
programs.neovide = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
fork = false;
|
||||||
|
frame = "full";
|
||||||
|
idle = true;
|
||||||
|
maximized = false;
|
||||||
|
neovim-bin = "${pkgs.neovim}/bin/nvim";
|
||||||
|
no-multigrid = false;
|
||||||
|
srgb = false;
|
||||||
|
tabs = true;
|
||||||
|
title-hidden = true;
|
||||||
|
vsync = true;
|
||||||
|
wsl = false;
|
||||||
|
|
||||||
|
font = {
|
||||||
|
normal = "SauceCodePro Nerd Font Mono";
|
||||||
|
size = 8;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.wofi = {
|
programs.wofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -1,30 +1,48 @@
|
|||||||
local vim = vim
|
local vim = vim
|
||||||
require("options") -- ~/.nixos/home/config/nvim/lua/options.lua
|
local host = vim.loop.os_gethostname()
|
||||||
require("plugins") -- ~/.nixos/home/config/nvim/lua/plugins.lua
|
require("options") -- /etc/nixos/home/.config/nvim/lua/options.lua
|
||||||
require("utils.t3_functions") -- ~/.nixos/home/config/nvim/lua/utils/t3_functions.lua
|
require("plugins") -- /etc/nixos/home/.config/nvim/lua/plugins.lua
|
||||||
require("utils.t3_overrides") -- ~/.nixos/home/config/nvim/lua/utils/t3_overrides.lua
|
require("utils.t3_functions") -- /etc/nixos/home/.config/nvim/lua/utils/t3_functions.lua
|
||||||
require("utils.reload") -- ~/.nixos/home/config/nvim/lua/utils/reload.lua
|
require("utils.t3_overrides") -- /etc/nixos/home/.config/nvim/lua/utils/t3_overrides.lua
|
||||||
require("vimwiki") -- ~/.nixos/home/config/nvim/lua/vimwiki.lua
|
require("utils.reload") -- /etc/nixos/home/.config/nvim/lua/utils/reload.lua
|
||||||
require("keymaps") -- ~/.nixos/home/config/nvim/lua/keymaps.lua
|
require("vimwiki") -- /etc/nixos/home/.config/nvim/lua/vimwiki.lua
|
||||||
require("lsp") -- ~/.nixos/home/config/nvim/lua/lsp.lua
|
require("keymaps") -- /etc/nixos/home/.config/nvim/lua/keymaps.lua
|
||||||
require("completion") -- ~/.nixos/home/config/nvim/lua/completion.lua
|
require("lsp") -- /etc/nixos/home/.config/nvim/lua/lsp.lua
|
||||||
require("treesitter") -- ~/.nixos/home/config/nvim/lua/treesitter.lua
|
require("completion") -- /etc/nixos/home/.config/nvim/lua/completion.lua
|
||||||
require("autocmds") -- ~/.nixos/home/config/nvim/lua/autocmds.lua
|
require("treesitter") -- /etc/nixos/home/.config/nvim/lua/treesitter.lua
|
||||||
require("diagnostics") -- ~/.nixos/home/config/nvim/lua/diagnostics.lua
|
require("autocmds") -- /etc/nixos/home/.config/nvim/lua/autocmds.lua
|
||||||
|
require("diagnostics") -- /etc/nixos/home/.config/nvim/lua/diagnostics.lua
|
||||||
|
require('telescope_configuration') -- /etc/nixos/home/.config/nvim/lua/telescope_configuration.lua
|
||||||
|
|
||||||
require('tokyonight').setup({
|
if host == "xps13" then
|
||||||
style = "moon", -- "storm", "moon", "day", "night"
|
require('tokyonight').setup({
|
||||||
transparent = true, -- Enable transparent background
|
style = "moon", -- "storm", "moon", "day", "night"
|
||||||
terminal_colors = true, -- Enable terminal colors
|
transparent = true, -- Enable transparent background
|
||||||
styles = {
|
terminal_colors = true, -- Enable terminal colors
|
||||||
comments = { italic = true }, -- Italic comments
|
styles = {
|
||||||
keywords = { italic = true }, -- Italic keywords
|
comments = { italic = true }, -- Italic comments
|
||||||
functions = { bold = true }, -- Bold functions
|
keywords = { italic = true }, -- Italic keywords
|
||||||
variables = {}, -- No special style for variables
|
functions = { bold = true }, -- Bold functions
|
||||||
sidebars = "dark", -- Dark sidebars
|
variables = {}, -- No special style for variables
|
||||||
floats = "dark", -- Dark floating windows
|
sidebars = "dark", -- Dark sidebars
|
||||||
},
|
floats = "dark", -- Dark floating windows
|
||||||
})
|
},
|
||||||
|
})
|
||||||
|
elseif host == "Titan" then
|
||||||
|
require('tokyonight').setup({
|
||||||
|
style = "storm", -- "storm", "moon", "day", "night"
|
||||||
|
transparent = false, -- Enable transparent background
|
||||||
|
terminal_colors = true, -- Enable terminal colors
|
||||||
|
styles = {
|
||||||
|
comments = { italic = true }, -- Italic comments
|
||||||
|
keywords = { italic = true }, -- Italic keywords
|
||||||
|
functions = { bold = true }, -- Bold functions
|
||||||
|
variables = {}, -- No special style for variables
|
||||||
|
sidebars = "dark", -- Dark sidebars
|
||||||
|
floats = "dark", -- Dark floating windows
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
local function is_linux_console()
|
local function is_linux_console()
|
||||||
return vim.env.TERM == "linux"
|
return vim.env.TERM == "linux"
|
||||||
@@ -64,6 +64,33 @@ vim.keymap.set("n", "<A-8>", "<Cmd>BufferGoto 8<CR>", { desc = "Go to Buffer 8"
|
|||||||
vim.keymap.set("n", "<A-9>", "<Cmd>BufferGoto 9<CR>", { desc = "Go to Buffer 9" })
|
vim.keymap.set("n", "<A-9>", "<Cmd>BufferGoto 9<CR>", { desc = "Go to Buffer 9" })
|
||||||
vim.keymap.set("n", "<A-0>", "<Cmd>BufferLast<CR>", { desc = "Go to Last Buffer" })
|
vim.keymap.set("n", "<A-0>", "<Cmd>BufferLast<CR>", { desc = "Go to Last Buffer" })
|
||||||
|
|
||||||
|
-- Meta X Maps
|
||||||
|
vim.keymap.set("n", "<M-x><M-x>", ":Telescope commands<CR>", { desc = "Commands"})
|
||||||
|
vim.keymap.set("n", "<M-x>b", ":Telescope buffers<CR>", { desc = "Buffers"})
|
||||||
|
vim.keymap.set("n", "<M-x>f", ":Telescope find_files<CR>", { desc = "Find Files"})
|
||||||
|
vim.keymap.set("n", "<M-x>g", ":Telescope live_grep<CR>", { desc = "Live Grep"})
|
||||||
|
vim.keymap.set("n", "<M-x>h", ":Telescope help_tags<CR>", { desc = "Help Tags"})
|
||||||
|
vim.keymap.set("n", "<M-x>p", ":Telescope project<CR>", { desc = "Projects"})
|
||||||
|
vim.keymap.set("n", "<M-x>l", ":Telescope resume<CR>", { desc = "Resume Last Search"})
|
||||||
|
vim.keymap.set("n", "<M-x>c", ":Telescope colorscheme<CR>", { desc = "Colorschemes"})
|
||||||
|
vim.keymap.set("n", "<M-x>n", ":enew<CR>", { desc = "New File"})
|
||||||
|
vim.keymap.set("n", "<M-x>s", ":w<CR>", { desc = "Save File"})
|
||||||
|
vim.keymap.set("n", "<M-x>q", ":q<CR>", { desc = "Quit"})
|
||||||
|
vim.keymap.set("n", "<M-x>w", ":bd<CR>", { desc = "Close Buffer"})
|
||||||
|
vim.keymap.set("n", "<M-x>a", "ggVG", { desc = "Select All"})
|
||||||
|
vim.keymap.set("n", "<M-x>z", "u", { desc = "Undo"})
|
||||||
|
vim.keymap.set("n", "<M-x>y", "<C-r>", { desc = "Redo"})
|
||||||
|
vim.keymap.set("n", "<M-x>/", ":nohlsearch<CR>", { desc = "Clear Search Highlight"})
|
||||||
|
vim.keymap.set("n", "<M-x>=", ":vertical resize +5<CR>", { desc = "Increase Window Width"})
|
||||||
|
vim.keymap.set("n", "<M-x>-"," :vertical resize -5<CR>", { desc = "Decrease Window Width"})
|
||||||
|
vim.keymap.set("n", "<M-x>+", ":resize +5<CR>", { desc = "Increase Window Height"})
|
||||||
|
vim.keymap.set("n", "<M-x>_", ":resize -5<CR>", { desc = "Decrease Window Height"})
|
||||||
|
vim.keymap.set("n", "<M-x>Left", ":vertical resize -5<CR>", { desc = "Decrease Window Width"})
|
||||||
|
vim.keymap.set("n", "<M-x>Right"," :vertical resize +5<CR>", { desc = "Increase Window Width"})
|
||||||
|
vim.keymap.set("n", "<M-x>Up", ":resize +5<CR>", { desc = "Increase Window Height"})
|
||||||
|
vim.keymap.set("n", "<M-x>Down", ":resize -5<CR>", { desc = "Decrease Window Height"})
|
||||||
|
vim.keymap.set("n", "<M-x>Enter", ":ToggleTerm<CR>", { desc = "Toggle Terminal"})
|
||||||
|
|
||||||
|
|
||||||
-- CTRL X Maps
|
-- CTRL X Maps
|
||||||
vim.keymap.set("n", "<C-x><C-b>", ":Pick buffers<CR>", { desc = "Buffer Picker"})
|
vim.keymap.set("n", "<C-x><C-b>", ":Pick buffers<CR>", { desc = "Buffer Picker"})
|
||||||
@@ -72,10 +99,6 @@ vim.keymap.set("n", "<C-x><C-h>", ":Pick help<CR>", { desc = "Help Picker"})
|
|||||||
vim.keymap.set("n", "<C-x><C-g>", "", { desc = "Grep"})
|
vim.keymap.set("n", "<C-x><C-g>", "", { desc = "Grep"})
|
||||||
vim.keymap.set("n", "<C-x><C-g>g", ":Pick grep<CR>", { desc = "Grep"})
|
vim.keymap.set("n", "<C-x><C-g>g", ":Pick grep<CR>", { desc = "Grep"})
|
||||||
vim.keymap.set("n", "<C-x><C-g>l", ":Pick grep_live<CR>", { desc = "Live Grep"})
|
vim.keymap.set("n", "<C-x><C-g>l", ":Pick grep_live<CR>", { desc = "Live Grep"})
|
||||||
vim.keymap.set("v", "<C-x><C-c>", ":'<,'>SnipRun<CR>", { silent = true, desc = "Run Selection" })
|
|
||||||
vim.keymap.set("n", "<C-x><C-c>", ":<Plug>SnipRun<CR>", { desc = "Run Current Line" })
|
|
||||||
vim.keymap.set("n", "<C-x><C-b>", ":%SnipRun<CR>", { desc = "Run Buffer" })
|
|
||||||
vim.keymap.set("n", "<C-x><C-k>", "<Plug>SnipReset<CR>", { desc = "Run Buffer" })
|
|
||||||
vim.keymap.set("n", "<C-x><C-n>", "", { desc = "Notes"})
|
vim.keymap.set("n", "<C-x><C-n>", "", { desc = "Notes"})
|
||||||
vim.keymap.set("n", "<C-x><C-n>e", "<cmd>TWEditTask<cr>", { desc = "TaskWarrior Edit", noremap = true, silent = true })
|
vim.keymap.set("n", "<C-x><C-n>e", "<cmd>TWEditTask<cr>", { desc = "TaskWarrior Edit", noremap = true, silent = true })
|
||||||
vim.keymap.set("n", "<C-x><C-n>v", "<cmd>TWView<cr>", { desc = "View Tasks", noremap = true, silent = true })
|
vim.keymap.set("n", "<C-x><C-n>v", "<cmd>TWView<cr>", { desc = "View Tasks", noremap = true, silent = true })
|
||||||
@@ -83,3 +106,7 @@ vim.keymap.set("n", "<C-x><C-n>u", "<cmd>TWUpdateCurrent<cr>", { desc="Update Ta
|
|||||||
vim.keymap.set("n", "<C-x><C-n>s", "<cmd>TWSyncTasks<cr>", { desc = "Sync Tasks", noremap = true, silent = true })
|
vim.keymap.set("n", "<C-x><C-n>s", "<cmd>TWSyncTasks<cr>", { desc = "Sync Tasks", noremap = true, silent = true })
|
||||||
vim.keymap.set("n", "<C-x><C-n><c-space>", "<cmd>TWToggle<cr>", { desc = "Toggle Taskwarrior", silent = true })
|
vim.keymap.set("n", "<C-x><C-n><c-space>", "<cmd>TWToggle<cr>", { desc = "Toggle Taskwarrior", silent = true })
|
||||||
|
|
||||||
|
vim.keymap.set("v", "<C-;><C-c>", ":'<,'>SnipRun<CR>", { silent = true, desc = "Run Selection" })
|
||||||
|
vim.keymap.set("n", "<C-;><C-c>", ":<Plug>SnipRun<CR>", { desc = "Run Current Line" })
|
||||||
|
vim.keymap.set("n", "<C-;><C-b>", ":%SnipRun<CR>", { desc = "Run Buffer" })
|
||||||
|
vim.keymap.set("n", "<C-;><C-k>", "<Plug>SnipReset<CR>", { desc = "Run Buffer" })
|
||||||
@@ -12,14 +12,14 @@ vim.o.wildmode = "longest:full,full"
|
|||||||
vim.o.wildoptions = "pum"
|
vim.o.wildoptions = "pum"
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.o.termguicolors = true
|
vim.o.termguicolors = true
|
||||||
vim.o.winborder = "double"
|
vim.o.winborder = "shadow"
|
||||||
vim.o.clipboard = "unnamedplus"
|
vim.o.clipboard = "unnamedplus"
|
||||||
vim.o.completeopt = "menuone"
|
vim.o.completeopt = "menuone"
|
||||||
-- vim.o.completeopt = "menuone,noinsert,noselect"
|
-- vim.o.completeopt = "menuone,noinsert,noselect"
|
||||||
vim.o.cursorline = true
|
vim.o.cursorline = true
|
||||||
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
|
||||||
vim.g.netrw_keepdir = 1
|
vim.g.netrw_keepdir = 1
|
||||||
vim.g.netrw_winsize = 15
|
vim.g.netrw_winsize = 20
|
||||||
vim.g.netrw_banner = 0
|
vim.g.netrw_banner = 0
|
||||||
vim.g.netrw_localcopydircmd = 'cp -avr'
|
vim.g.netrw_localcopydircmd = 'cp -avr'
|
||||||
vim.g.netrw_liststyle = 3
|
vim.g.netrw_liststyle = 3
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
local vim = vim
|
local vim = vim
|
||||||
|
local host = vim.loop.os_gethostname()
|
||||||
|
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
{ src = "https://github.com/folke/tokyonight.nvim" },
|
{ src = "https://github.com/folke/tokyonight.nvim" },
|
||||||
{ src = "https://github.com/nvim-tree/nvim-web-devicons" },
|
{ src = "https://github.com/nvim-tree/nvim-web-devicons" },
|
||||||
@@ -25,9 +27,6 @@ vim.pack.add({
|
|||||||
{ src = "https://github.com/saadparwaiz1/cmp_luasnip" },
|
{ src = "https://github.com/saadparwaiz1/cmp_luasnip" },
|
||||||
{ src = "https://github.com/github/copilot.vim" },
|
{ src = "https://github.com/github/copilot.vim" },
|
||||||
{ src = "https://github.com/pysan3/pathlib.nvim" },
|
{ src = "https://github.com/pysan3/pathlib.nvim" },
|
||||||
-- { src = "https://github.com/nvim-orgmode/orgmode" },
|
|
||||||
-- { src = "https://github.com/chipsenkbeil/org-roam.nvim" },
|
|
||||||
-- { src = "https://github.com/danilshvalov/org-modern.nvim" },
|
|
||||||
{ src = "https://github.com/nvim-orgmode/org-bullets.nvim" },
|
{ src = "https://github.com/nvim-orgmode/org-bullets.nvim" },
|
||||||
{ src = "https://github.com/lukas-reineke/headlines.nvim" },
|
{ src = "https://github.com/lukas-reineke/headlines.nvim" },
|
||||||
{ src = "https://github.com/michaelb/sniprun", run = "bash install.sh 1" },
|
{ src = "https://github.com/michaelb/sniprun", run = "bash install.sh 1" },
|
||||||
@@ -49,8 +48,18 @@ vim.pack.add({
|
|||||||
{ src = "https://github.com/rmagatti/logger.nvim" },
|
{ src = "https://github.com/rmagatti/logger.nvim" },
|
||||||
{ src = "https://github.com/rmagatti/goto-preview" },
|
{ src = "https://github.com/rmagatti/goto-preview" },
|
||||||
{ src = "https://github.com/norcalli/nvim-colorizer.lua" },
|
{ src = "https://github.com/norcalli/nvim-colorizer.lua" },
|
||||||
|
{ src = "https://github.com/nvim-lua/plenary.nvim" },
|
||||||
|
{ src = "https://github.com/nvim-telescope/telescope.nvim" },
|
||||||
|
{ src = "https://github.com/nvim-telescope/telescope-project.nvim"},
|
||||||
|
{ src = "https://github.com/nvim-telescope/telescope-ui-select.nvim" },
|
||||||
|
{ src = "https://github.com/luckasRanarison/nvim-devdocs" },
|
||||||
|
{ src = "https://github.com/folke/noice.nvim" },
|
||||||
|
{ src = "https://github.com/mbbill/undotree.git" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if host == "xps13" then
|
||||||
|
end
|
||||||
|
|
||||||
require('mini.icons').setup({})
|
require('mini.icons').setup({})
|
||||||
require('mini.pick').setup({})
|
require('mini.pick').setup({})
|
||||||
require('mini.pairs').setup({})
|
require('mini.pairs').setup({})
|
||||||
@@ -82,12 +91,6 @@ require('todo-comments').setup({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
require('trouble').setup({})
|
require('trouble').setup({})
|
||||||
-- require('orgmode').setup({
|
|
||||||
-- org_agenda_files = { '~/org/*' },
|
|
||||||
-- org_default_notes_file = '~/org/notes.org',
|
|
||||||
-- })
|
|
||||||
-- require('org-roam').setup({ directory = '~/org/roam' })
|
|
||||||
-- require("orgmode").setup({})
|
|
||||||
require('org-bullets').setup({})
|
require('org-bullets').setup({})
|
||||||
require('headlines').setup({})
|
require('headlines').setup({})
|
||||||
require('sniprun').setup({
|
require('sniprun').setup({
|
||||||
@@ -114,3 +117,22 @@ require("auto-session").setup({
|
|||||||
require('barbar').setup({})
|
require('barbar').setup({})
|
||||||
require('goto-preview').setup({ default_mappings = true })
|
require('goto-preview').setup({ default_mappings = true })
|
||||||
require('colorizer').setup({})
|
require('colorizer').setup({})
|
||||||
|
require('telescope').setup({})
|
||||||
|
require('nvim-devdocs').setup({})
|
||||||
|
require('noice').setup({
|
||||||
|
lsp = {
|
||||||
|
override = {
|
||||||
|
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
|
||||||
|
["vim.lsp.util.stylize_markdown"] = true,
|
||||||
|
["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp
|
||||||
|
},
|
||||||
|
},
|
||||||
|
presets = {
|
||||||
|
bottom_search = true, -- use a classic bottom cmdline for search
|
||||||
|
command_palette = true, -- position the cmdline and popupmenu together
|
||||||
|
long_message_to_split = true, -- long messages will be sent to a split
|
||||||
|
inc_rename = false, -- enables an input dialog for inc-rename.nvim
|
||||||
|
lsp_doc_border = false, -- add a border to hover docs and signature help
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
32
home/.config/nvim/lua/telescope_configuration.lua
Normal file
32
home/.config/nvim/lua/telescope_configuration.lua
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
local vim = vim
|
||||||
|
local host = vim.loop.os_gethostname()
|
||||||
|
|
||||||
|
require('telescope').load_extension('project')
|
||||||
|
require('telescope').load_extension('ui-select')
|
||||||
|
|
||||||
|
require('telescope').setup{
|
||||||
|
defaults = {
|
||||||
|
mappings = {
|
||||||
|
i = {
|
||||||
|
["<C-u>"] = false,
|
||||||
|
["<C-d>"] = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pickers = {
|
||||||
|
-- Default configuration for builtin pickers goes here:
|
||||||
|
-- picker_name = {
|
||||||
|
-- picker_config_key = value,
|
||||||
|
-- ...
|
||||||
|
-- }
|
||||||
|
-- Now the picker_config_key will be applied every time you call this
|
||||||
|
-- builtin picker
|
||||||
|
},
|
||||||
|
extensions = {
|
||||||
|
["ui-select"] = {
|
||||||
|
require("telescope.themes").get_dropdown {
|
||||||
|
-- even more opts
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
51
modules/configuration-common.nix
Normal file
51
modules/configuration-common.nix
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[
|
||||||
|
./shares.nix
|
||||||
|
./sops.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
|
LC_NAME = "en_US.UTF-8";
|
||||||
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
|
LC_PAPER = "en_US.UTF-8";
|
||||||
|
LC_TELEPHONE = "en_US.UTF-8";
|
||||||
|
LC_TIME = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hosts = {
|
||||||
|
"10.0.0.76" = [ "nas nas.lan" ];
|
||||||
|
"10.0.0.125" = [ "git" "git.lan" ];
|
||||||
|
"10.0.0.153" = [ "samphone" "samphone.lan" ];
|
||||||
|
"10.0.0.223" = [ "pve" "pve.lan" ];
|
||||||
|
"10.0.0.39" = [ "chronos" "chronos.lan" ];
|
||||||
|
"10.0.0.78" = [ "pyshelf" "pyshelf.lan" ];
|
||||||
|
"10.0.0.121" = [ "titan" "titan.lan" ];
|
||||||
|
"10.0.0.107" = [ "psql" "psql.lan" ];
|
||||||
|
"10.0.0.99" = [ "jelly" "jelly.lan" ];
|
||||||
|
"10.0.0.207" = [ "sync" "sync.lan" ];
|
||||||
|
"10.0.0.14" = [ "radios" "radios.lan" ];
|
||||||
|
"10.0.0.172" = [ "vault" "vault.lan" ];
|
||||||
|
"10.0.0.109" = [ "adguard" "adguard.lan" ];
|
||||||
|
"10.0.0.50" = [ "dashy" "dashy.lan" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -6,13 +6,14 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./server-partitioning.nix
|
./server-partitioning.nix
|
||||||
./modules/shares.nix
|
./configuration-common.nix
|
||||||
./modules/sops.nix
|
|
||||||
];
|
];
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
nix.settings.trusted-users = [ "root" "th3r00t" ];
|
||||||
|
networking.hostName = "Titan"; # Define your hostname.
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
@@ -120,8 +121,8 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [ 21 22 80 443 5900 8080 ];
|
networking.firewall.allowedTCPPorts = [ 21 22 80 443 5900 8080 8384];
|
||||||
networking.firewall.allowedUDPPorts = [ 21 22 80 443 5900 8080 ];
|
networking.firewall.allowedUDPPorts = [ 21 22 80 443 5900 8080 8384];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
@@ -6,14 +6,16 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[
|
||||||
./xps13-hardware-configuration.nix
|
./configuration-common.nix
|
||||||
./modules/shares.nix
|
./laptop.nix
|
||||||
./modules/sops.nix
|
|
||||||
./modules/laptop.nix
|
|
||||||
];
|
];
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
nix.settings.trusted-users = [ "root" "th3r00t" ];
|
||||||
|
nix.extraOptions = ''
|
||||||
|
extra-substituters = https://devenv.cachix.org
|
||||||
|
extra-trusted-public-keys = devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=
|
||||||
|
'';
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
initrd.availableKernelModules = [
|
initrd.availableKernelModules = [
|
||||||
@@ -23,50 +25,18 @@
|
|||||||
initrd.kernelModules = [ "ath10k_pci" ];
|
initrd.kernelModules = [ "ath10k_pci" ];
|
||||||
loader.systemd-boot.enable = true;
|
loader.systemd-boot.enable = true;
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
supportedFilesystems = [ "vfat" "ext4" "cifs" ];
|
supportedFilesystems = [ "vfat" "ext4" "cifs" "exfat" ];
|
||||||
extraModulePackages = [ ];
|
extraModulePackages = [ ];
|
||||||
extraModprobeConfig = ''
|
extraModprobeConfig = ''
|
||||||
options ath10k_pcs irq_mode=1
|
options ath10k_pcs irq_mode=1
|
||||||
options ath10k_core rawmode=1
|
options ath10k_core rawmode=1
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# Set your time zone.
|
services.udisks2.enable = false;
|
||||||
time.timeZone = "America/New_York";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "en_US.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
||||||
LC_MEASUREMENT = "en_US.UTF-8";
|
|
||||||
LC_MONETARY = "en_US.UTF-8";
|
|
||||||
LC_NAME = "en_US.UTF-8";
|
|
||||||
LC_NUMERIC = "en_US.UTF-8";
|
|
||||||
LC_PAPER = "en_US.UTF-8";
|
|
||||||
LC_TELEPHONE = "en_US.UTF-8";
|
|
||||||
LC_TIME = "en_US.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
|
||||||
# You can disable this if you're only using the Wayland session.
|
|
||||||
# services.xserver.enable = true;
|
|
||||||
|
|
||||||
# Enable the KDE Plasma Desktop Environment.
|
|
||||||
# services.displayManager.sddm.enable = true;
|
|
||||||
# services.desktopManager.plasma6.enable = true;
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
# services.xserver.xkb = {
|
|
||||||
# layout = "us";
|
|
||||||
# variant = "";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
programs.uwsm.enable = true;
|
programs.uwsm.enable = true;
|
||||||
programs.hyprland.withUWSM = true;
|
programs.hyprland.withUWSM = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
services.pulseaudio.enable = false;
|
services.pulseaudio.enable = false;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
@@ -76,24 +46,14 @@
|
|||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
|
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
||||||
# no need to redefine it in your config for now)
|
|
||||||
#media-session.enable = true;
|
#media-session.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
fonts = {
|
fonts = {
|
||||||
enableDefaultPackages = true;
|
enableDefaultPackages = true;
|
||||||
fontDir.enable = true;
|
fontDir.enable = true;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
# nerd-fonts.fira-code
|
|
||||||
# nerd-fonts.space-mono
|
|
||||||
# nerd-fonts.sauce-code-pro
|
|
||||||
# nerd-fonts.monofur
|
|
||||||
# nerd-fonts.noto
|
|
||||||
# nerd-fonts.fira-mono
|
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk-sans
|
noto-fonts-cjk-sans
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
@@ -101,7 +61,6 @@
|
|||||||
material-design-icons
|
material-design-icons
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
]++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
]++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
@@ -122,11 +81,9 @@
|
|||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
programs.hyprland.enable = true;
|
programs.hyprland.enable = true;
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.variables.EDITOR = "nvim";
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
# wget
|
# wget
|
||||||
@@ -139,10 +96,6 @@
|
|||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
programs.mtr.enable = true;
|
programs.mtr.enable = true;
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ ];
|
boot.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
networking.hostName = "Titan"; # Define your hostname.
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
@@ -3,6 +3,72 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
];
|
];
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
autossh
|
||||||
|
fastfetch
|
||||||
|
ranger
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
xz
|
||||||
|
p7zip
|
||||||
|
ripgrep
|
||||||
|
jq
|
||||||
|
ripgrep
|
||||||
|
eza
|
||||||
|
fzf
|
||||||
|
tmux
|
||||||
|
cowsay
|
||||||
|
lolcat
|
||||||
|
fortune
|
||||||
|
gnused
|
||||||
|
gnutar
|
||||||
|
gnupg
|
||||||
|
hugo
|
||||||
|
bat
|
||||||
|
which
|
||||||
|
nix-output-monitor
|
||||||
|
devenv
|
||||||
|
direnv
|
||||||
|
irssi
|
||||||
|
luarocks
|
||||||
|
lua5_1
|
||||||
|
lua-language-server
|
||||||
|
go
|
||||||
|
nodejs
|
||||||
|
uv
|
||||||
|
readline
|
||||||
|
cachix
|
||||||
|
sqlite
|
||||||
|
vifm-full
|
||||||
|
ranger
|
||||||
|
zoxide
|
||||||
|
(
|
||||||
|
python313.withPackages (
|
||||||
|
python-pkgs:
|
||||||
|
[
|
||||||
|
python-pkgs.prompt_toolkit
|
||||||
|
python-pkgs.pygments
|
||||||
|
python-pkgs.pynvim
|
||||||
|
python-pkgs.pudb
|
||||||
|
python-pkgs.ptpython
|
||||||
|
python-pkgs.ipython
|
||||||
|
]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
pyenv
|
||||||
|
neovim
|
||||||
|
zig
|
||||||
|
nodejs
|
||||||
|
go
|
||||||
|
syncthing
|
||||||
|
lazygit
|
||||||
|
gopls
|
||||||
|
pyright
|
||||||
|
ncurses
|
||||||
|
rustup
|
||||||
|
wayvnc
|
||||||
|
gvfs
|
||||||
|
];
|
||||||
|
|
||||||
programs.neovim.plugins = [
|
programs.neovim.plugins = [
|
||||||
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
|
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
|
||||||
@@ -12,6 +78,7 @@
|
|||||||
};
|
};
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
guiAddress = "0.0.0.0:8384";
|
||||||
};
|
};
|
||||||
programs.ranger = {
|
programs.ranger = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -90,24 +157,26 @@
|
|||||||
tmuxPlugins.vim-tmux-navigator
|
tmuxPlugins.vim-tmux-navigator
|
||||||
tmuxPlugins.vim-tmux-focus-events
|
tmuxPlugins.vim-tmux-focus-events
|
||||||
tmuxPlugins.urlview
|
tmuxPlugins.urlview
|
||||||
|
tmuxPlugins.tmux-fzf
|
||||||
{
|
{
|
||||||
plugin = tmuxPlugins.tokyo-night-tmux;
|
plugin = tmuxPlugins.tokyo-night-tmux;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set -g @tokyo-night-tmux_window_id_style digital
|
set -g @tokyo-night-tmux_window_id_style digital
|
||||||
set -g @tokyo-night-tmux_pane_id_style hsquare
|
set -g @tokyo-night-tmux_pane_id_style hsquare
|
||||||
set -g @tokyo-night-tmux_zoom_id_style dsquare
|
set -g @tokyo-night-tmux_zoom_id_style dsquare
|
||||||
set -g @tokyo-night-tmux_show_netspeed 1
|
|
||||||
set -g @tokyo-night-tmux_netspeed_iface "wlp2s0" # Detected via default route
|
|
||||||
set -g @tokyo-night-tmux_netspeed_showip 1 # Display IPv4 address (default 0)
|
|
||||||
set -g @tokyo-night-tmux_netspeed_refresh 1 # Update interval in seconds (default 1)
|
|
||||||
set -g @tokyo-night-tmux_show_path 1
|
set -g @tokyo-night-tmux_show_path 1
|
||||||
set -g @tokyo-night-tmux_path_format relative # 'relative' or 'full'
|
set -g @tokyo-night-tmux_path_format relative # 'relative' or 'full'
|
||||||
set -g @tokyo-night-tmux_show_battery_widget 1
|
if-shell "[[ $(hostname) = 'xps13' ]]" {
|
||||||
set -g @tokyo-night-tmux_battery_name "BAT0" # some linux distro have 'BAT0'
|
set -g @tokyo-night-tmux_show_netspeed 1
|
||||||
set -g @tokyo-night-tmux_battery_low_threshold 21 # default
|
set -g @tokyo-night-tmux_netspeed_iface 'wlp2s0'
|
||||||
|
set -g @tokyo-night-tmux_netspeed_showip 1
|
||||||
|
set -g @tokyo-night-tmux_netspeed_refresh 1
|
||||||
|
set -g @tokyo-night-tmux_show_battery_widget 1
|
||||||
|
set -g @tokyo-night-tmux_battery_name "BAT0"
|
||||||
|
set -g @tokyo-night-tmux_battery_low_threshold 21
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
tmuxPlugins.tmux-fzf
|
|
||||||
# {
|
# {
|
||||||
# plugin = tmuxPlugins.tilish;
|
# plugin = tmuxPlugins.tilish;
|
||||||
# extraConfig = ''
|
# extraConfig = ''
|
||||||
@@ -125,11 +194,18 @@
|
|||||||
# terminal = "xterm-kitty:RGB";
|
# terminal = "xterm-kitty:RGB";
|
||||||
tmuxinator.enable = true;
|
tmuxinator.enable = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
if-shell "[[ $(hostname) = 'xps13' ]]" {
|
||||||
|
set-option -as terminal-features 'foot:RGB'
|
||||||
|
}
|
||||||
|
if-shell "[[ $(hostname) = 'Titan' ]]" {
|
||||||
|
set-option -as terminal-features 'xterm-256color:RGB'
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
set -g terminal-overrides ",xterm-256color:RGB"
|
||||||
|
}
|
||||||
set-option -g update-environment "DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_RUNTIME_DIR HYPRLAND_INSTANCE_SIGNATURE"
|
set-option -g update-environment "DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_RUNTIME_DIR HYPRLAND_INSTANCE_SIGNATURE"
|
||||||
set -g focus-events on
|
set -g focus-events on
|
||||||
set -g escape-time 3
|
set -g escape-time 3
|
||||||
set-option -g status-position top
|
set-option -g status-position top
|
||||||
set-option -as terminal-features 'foot:RGB'
|
|
||||||
set -g default-terminal 'tmux-256color'
|
set -g default-terminal 'tmux-256color'
|
||||||
bind-key b choose-tree -Z "run-shell 'tmux swap-pane -s %%'"
|
bind-key b choose-tree -Z "run-shell 'tmux swap-pane -s %%'"
|
||||||
# bind C-p display-popup -E -w 60% -h 70% 'tmuxsessions.sh'
|
# bind C-p display-popup -E -w 60% -h 70% 'tmuxsessions.sh'
|
||||||
@@ -139,6 +215,7 @@
|
|||||||
# bind C-c display-popup -E -w 50% -h 50% 'nvim +":cd ~/org" ~/org/refile.norg'
|
# bind C-c display-popup -E -w 50% -h 50% 'nvim +":cd ~/org" ~/org/refile.norg'
|
||||||
# bind C-c display-popup -E -w 50% -h 50% 'nvim +"VimwikiIndex"
|
# bind C-c display-popup -E -w 50% -h 50% 'nvim +"VimwikiIndex"
|
||||||
bind C-c display-popup -E -w 60% -h 60% "pytui -n"
|
bind C-c display-popup -E -w 60% -h 60% "pytui -n"
|
||||||
|
bind m display-popup -E -w 60% -h 60% "pytui -m"
|
||||||
# bind C-w display-popup -E -w 40% -h 60% "pytui -D"
|
# bind C-w display-popup -E -w 40% -h 60% "pytui -D"
|
||||||
|
|
||||||
bind C-o display-popup -E -w 50% -h 50% 'igrep ~/wiki/notes'
|
bind C-o display-popup -E -w 50% -h 50% 'igrep ~/wiki/notes'
|
||||||
@@ -152,7 +229,7 @@
|
|||||||
# bind-key -n C-e split-window -v -c '\
|
# bind-key -n C-e split-window -v -c '\
|
||||||
#{pane_current_path}' 'vifm\'
|
#{pane_current_path}' 'vifm\'
|
||||||
bind-key -n C-f split-window 'ranger .'
|
bind-key -n C-f split-window 'ranger .'
|
||||||
bind F3 send-keys 'igrep .' C-m
|
bind F3 send-keys 'igrep .'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
programs.git = {
|
programs.git = {
|
||||||
@@ -177,6 +254,28 @@ bind F3 send-keys 'igrep .' C-m
|
|||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
Host *
|
||||||
|
ServerAliveInterval 30
|
||||||
|
ServerAliveCountMax 3
|
||||||
|
AddKeysToAgent yes
|
||||||
|
'';
|
||||||
|
matchBlocks = {
|
||||||
|
samphone = {
|
||||||
|
host = "10.0.0.153";
|
||||||
|
user = "u0_a771";
|
||||||
|
port = 8022;
|
||||||
|
identityFile = "~/.ssh/id_ed25519";
|
||||||
|
};
|
||||||
|
git = {
|
||||||
|
host = "10.0.0.125";
|
||||||
|
user = "git";
|
||||||
|
identityFile = "~/.ssh/id_ed25519";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# custom settings
|
# custom settings
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
decoration = {
|
decoration = {
|
||||||
rounding = "10";
|
rounding = "0";
|
||||||
rounding_power = "2";
|
rounding_power = "2";
|
||||||
active_opacity = "1";
|
active_opacity = "1";
|
||||||
inactive_opacity = ".7";
|
inactive_opacity = ".7";
|
||||||
@@ -45,8 +45,8 @@
|
|||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
general {
|
general {
|
||||||
gaps_in = 5
|
gaps_in = 0
|
||||||
gaps_out = 5
|
gaps_out = 0
|
||||||
border_size = 1
|
border_size = 1
|
||||||
col.active_border = rgb(b000b5)
|
col.active_border = rgb(b000b5)
|
||||||
col.inactive_border = rgb(1f2335)
|
col.inactive_border = rgb(1f2335)
|
||||||
|
|||||||
Reference in New Issue
Block a user